::-webkit-scrollbar {
    width: 5px;   
    height: 5px;  
}

::-webkit-scrollbar-track {
    background: rgb(0, 0, 0);  
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5); 
}

:root{
    --header-height: 76px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #272727 100%);
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 19, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-sizing: border-box;
}

.nav a {
    color: black;
    margin-left: 20px;
    text-decoration: none;
    opacity: 0.9;
}
.nav a:hover { opacity: 1; }
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.invite-btn {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.hero-section{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-slider {
    position: relative;
    min-height: 62vh;
    overflow: visible;
    margin-top: var(--header-height);
    box-sizing: border-box;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bottom{
  flex: 1;               /* 남은 영역 전부 */
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 18px 0 26px;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; 
    background-size: cover;           
    background-position: center center; 
    background-repeat: no-repeat;
    padding-bottom: 100px;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    box-sizing: border-box;
    transform: translateY(-50%);
    z-index: 20;                   
    text-align: center;
    opacity: 0;               
    transition: opacity 1.2s ease-in-out; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;       
}

.hero-content * {
    pointer-events: auto;  
}

.slide.active .hero-content {
    opacity: 1;
}

.hero-content.align-left {
    left: 0;
    text-align: left;
    transform: translateY(-50%);
}

.hero-content.align-center {
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.hero-content.align-right {
    right: 0;
    text-align: right;
    transform: translateY(-50%);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;                 
    transition: opacity 1.2s ease-in-out; 
    z-index: 1;                     
    background: rgba(0, 0, 0, 0.4);
}

.overlay-center {
    background: rgba(0, 0, 0, 0.4);
}

.overlay-left {
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.overlay-right {
    background: linear-gradient(to left,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.slide.active .slide-overlay {
    opacity: 1;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 5px; }
.hero-content p { font-size: 1.5rem; opacity: 0.9; margin-top: 0px; margin-bottom: 40px; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .hero-content { padding: 0 20px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content.align-left, .hero-content.align-right { text-align: center; transform: translateY(-50%); left: 50%; right: auto; transform: translate(-50%, -50%); }
}

/* 카운터 */
.stats-counter{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  z-index: 3;
  width: min(900px, 92vw);
  flex-wrap: wrap;
}

.stat-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(100px);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    min-width: 180px;
}

.hero-bottom-cta{
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  text-align: center;
  z-index: 10;
}

.hero-bottom-cta .lookup-title{
  font-size: 2.2rem;
  margin: 0 0 10px;
}

.hero-bottom-cta .lookup-desc{
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.arrow {
    font-size: 19px;
    line-height: 1;
    margin: 7px 0;
    opacity: 0;
    animation: arrowDown 2.4s infinite ease-out;
}

.arrow {
    font-weight: 300;
    opacity: 0.85;
}

.arrow:nth-child(1) { animation-delay: 0s; }
.arrow:nth-child(2) { animation-delay: 0.4s; }
.arrow:nth-child(3) { animation-delay: 0.8s; }

@keyframes arrowDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.side-menu {
    position: fixed;
    top: 50vh;
    left: -100px;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, left 0.6s ease, visibility 0.6s;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ★ 등장 상태 */
.side-menu.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: 50px;
}

.side-menu.sticky {
    position: fixed !important;
    top: 50% !important;
    left: 50px !important;
    transform: translateY(-50%) !important;
}

.side-menu li {
    margin: 16px 0;
}

.side-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    display: block;
}

.side-menu a:hover,
.side-menu li.active a {
    color: white;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.side-menu.sticky {
    position: fixed !important;
    top: 50% !important;
    left: 50px !important;
    transform: translateY(-50%) !important;
}

/* 모바일 숨김 */
@media (max-width: 992px) {
    .side-menu {
        display: none;
    }
}

.main-content {
    max-width: 1200px;
    margin: 0px auto 150px;
    padding: 0 40px;
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
}

.content-section {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 60px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 첫 번째 섹션(홈)은 바로 보이게 */
#home {
    opacity: 1;
    transform: translateY(0);
}

.lead {
    font-size: 1.4rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* 홈 하이라이트 그리드 */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    padding-bottom: 40px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-10px);
}

.highlight-item h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* 기능 리스트 */
.feature-list {
    font-size: 1.3rem;
    line-height: 2.2;
    margin: 40px 0;
}

.feature-list li {
    margin: 16px 0;
}

/* 명령어 그리드 */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.command-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
}

.command-item code {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

#home {
    text-align: center;
    padding: 80px 20px;
}

.invite-btn-large {
    display: inline-block;
    background: linear-gradient(45deg, #5865F2, #7289da);
    color: white;
    padding: 18px 50px;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    transition: all 0.4s ease;
    margin: 50px auto 0;   /* 상단 여백 + 좌우 auto로 중앙 정렬 */
}

.invite-btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 20px;
        margin: 60px auto 100px;
    }
    .content-box {
        padding: 40px 30px;
    }
    .content-box h2 {
        font-size: 2.4rem;
    }
    .highlight-grid, .commands-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   캐릭터 카드 조회(드롭존)
========================= */
.lookup-section {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 20px 120px;
    box-sizing: border-box;
}

.lookup-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.lookup-title {
    font-size: 2.2rem;
    margin: 0 0 10px;
    text-align: center;
}

.lookup-desc {
    text-align: center;
    opacity: 0.85;
    margin: 0 0 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lookup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

@media (max-width: 900px) {
    .lookup-grid {
        grid-template-columns: 1fr;
    }
}

.dropzone {
    background: rgba(0, 0, 0, 0.18);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    overflow: hidden;
}

.dropzone:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45);
}

.dropzone.dragover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
}

.dropzone-inner{
  position: relative;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
}

.dropzone-hint{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  opacity: 0.85;
  pointer-events: none;
}

.dropzone.has-preview .dropzone-hint{
  display: none !important;
}

.dropzone-big {
    font-size: 1.5rem;
    font-weight: 700;
}

.dropzone-small {
    margin-top: 8px;
    opacity: 0.75;
}

.card-preview {
    display: none;
    max-width: 100%;
    max-height: 520px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
}

.lookup-result {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 18px 18px 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.result-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.result-meta {
    font-size: 0.95rem;
    opacity: 0.75;
    text-align: right;
}

.result-error {
    display: none;
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.25);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 520px;
    overflow: auto;
}

.event-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 4px;
}

.event-title {
    font-weight: 600;
    color: #d4d4d4;
}

.event-date {
    font-size: 12px;
    color: #b1b1b1;
}

.event-item {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.event-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.event-type {
    font-weight: 700;
}

.event-time {
    opacity: 0.7;
    font-size: 0.92rem;
    white-space: nowrap;
}

.event-payload {
    opacity: 0.9;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
}

.event-empty {
    opacity: 0.75;
    padding: 14px 10px;
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto;
}