:root {
    --navy: #051225;
    --navy-deep: #020814;
    --gold: #d9aa55;
    --gold-soft: #fff0bc;
    --cream: #fff7e4;
    --ink: #071832;
    --line: rgba(255, 217, 141, 0.42);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--cream);
    font-family: "Noto Sans KR", system-ui, sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 220, 142, 0.2), transparent 34rem),
        radial-gradient(circle at 15% 24%, rgba(103, 145, 206, 0.16), transparent 20rem),
        linear-gradient(180deg, #061529 0%, #020814 100%);
}

button,
a {
    font: inherit;
}

.app {
    width: min(100%, 520px);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

@keyframes neonPulseGold {
    0%, 100% {
        box-shadow:
            0 0 8px 2px rgba(242, 188, 97, 0.55),
            0 0 22px 6px rgba(242, 188, 97, 0.30),
            0 0 50px 12px rgba(242, 188, 97, 0.12),
            var(--shadow);
    }
    50% {
        box-shadow:
            0 0 14px 4px rgba(242, 188, 97, 0.85),
            0 0 36px 10px rgba(242, 188, 97, 0.50),
            0 0 70px 20px rgba(242, 188, 97, 0.22),
            var(--shadow);
    }
}

@keyframes neonPulseTeal {
    0%, 100% {
        box-shadow:
            0 0 8px 2px rgba(80, 200, 200, 0.50),
            0 0 22px 6px rgba(80, 200, 200, 0.28),
            0 0 50px 12px rgba(80, 200, 200, 0.10),
            var(--shadow);
    }
    50% {
        box-shadow:
            0 0 14px 4px rgba(80, 200, 200, 0.80),
            0 0 36px 10px rgba(80, 200, 200, 0.45),
            0 0 70px 20px rgba(80, 200, 200, 0.20),
            var(--shadow);
    }
}

/* ====================================================
   LANDING
   ==================================================== */

.landing {
    min-height: 100svh;
    padding: 34px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    isolation: isolate;
}

.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("img/main.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.34)),
        linear-gradient(180deg, rgba(5, 18, 37, 0.05), rgba(2, 8, 20, 0.84) 86%);
}

/* ====================================================
   LOGO & HERO
   ==================================================== */

.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo h1 {
    margin: 0;
    color: #f4c87a;
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    line-height: 0.9;
    letter-spacing: 0.08em;
}

.logo p {
    margin: 10px 0 0;
    color: var(--gold-soft);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.36em;
}

.eyebrow {
    margin: 0 0 10px;
    color: #f0bd69;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* ====================================================
   LIBRARY CHOICE CARDS
   ==================================================== */

.library-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.choice-card {
    aspect-ratio: 3 / 4;
    border: 1.5px solid rgba(242, 188, 97, 0.8);
    border-radius: 28px;
    padding: 18px 14px 42px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--cream);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.choice-card.jia {
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.10) 50%, rgba(0, 0, 0, 0.70) 100%),
        url("img/lib.png");
    animation: neonPulseGold 3s ease-in-out infinite;
    border-color: rgba(242, 188, 97, 0.8);
}

.choice-card.multi {
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.10) 50%, rgba(0, 0, 0, 0.70) 100%),
        url("img/multi.png");
    animation: neonPulseTeal 3s ease-in-out infinite;
    border-color: rgba(80, 200, 200, 0.75);
}

.choice-card .content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.choice-card h3 {
    margin: 0;
    font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
    font-size: 28px;
    line-height: 1.24;
    word-break: keep-all;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.choice-card p {
    margin: 14px 0 20px;
    color: rgba(255, 247, 228, 0.88);
    font-size: 15px;
    line-height: 1.55;
}

.enter-btn {
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink);
    background: linear-gradient(135deg, #f5d49a, #fff3d2 55%, #d89f4f);
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 0 14px 2px rgba(242, 188, 97, 0.45);
}

.multi .enter-btn {
    color: white;
    background: linear-gradient(135deg, #073a53, #0c6d86);
    box-shadow: 0 0 14px 2px rgba(80, 200, 200, 0.40);
}

/* ====================================================
   STORE SECTION
   ==================================================== */

.store-section {
    margin-top: 20px;
    text-align: center;
}

.store-card {
    border: 1.5px dashed rgba(244, 194, 108, 0.85);
    border-radius: 22px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(2, 8, 20, 0.72);
    text-decoration: none;
    color: var(--cream);
}

.ticket {
    color: #f3bf6d;
    font-size: 30px;
    text-align: center;
}

.store-card-text strong {
    display: block;
    color: #f7c572;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.store-card-text span {
    display: block;
    color: rgba(255, 247, 228, 0.68);
    font-size: 12px;
    line-height: 1.4;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5d49a, #fff3d2 55%, #d89f4f);
    color: #071832;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 0 12px 2px rgba(242, 188, 97, 0.40);
}

.source-note,
.bottom-note {
    margin: 18px 0 0;
    text-align: center;
    color: rgba(255, 226, 168, 0.78);
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

/* ====================================================
   LIBRARY PAGES
   ==================================================== */

.library-app {
    padding: 0 18px 44px;
}

.jia-page {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 224, 157, 0.22), transparent 12rem),
        radial-gradient(circle at 80% 18%, rgba(117, 139, 215, 0.18), transparent 14rem),
        linear-gradient(180deg, #17254b 0%, #081a35 34%, #041024 100%);
}

.multi-page {
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 248, 208, 0.9), transparent 12rem),
        radial-gradient(circle at 24% 20%, rgba(103, 193, 219, 0.28), transparent 15rem),
        linear-gradient(180deg, #bcecff 0%, #fff5dd 30%, #fff8ed 100%);
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0;
}

.mini-btn {
    border: 1px solid rgba(255, 226, 168, 0.36);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--cream);
    background: rgba(4, 17, 35, 0.58);
    backdrop-filter: blur(14px);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.multi-page .mini-btn {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(8, 30, 58, 0.14);
}

.page-title {
    margin: 116px 0 22px;
    border: 2px solid rgba(255, 212, 137, 0.85);
    border-radius: 30px;
    padding: 22px 16px;
    text-align: center;
    color: var(--ink);
    background: rgba(255, 244, 216, 0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.multi-page .page-title {
    margin-top: 178px;
    border-color: rgba(233, 165, 49, 0.5);
    background: rgba(255, 250, 239, 0.94);
}

.page-title h1 {
    margin: 0;
    font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
    font-size: 31px;
    line-height: 1.3;
    word-break: keep-all;
}

.page-title p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.55;
}

.section-box {
    border: 1.5px solid rgba(255, 208, 117, 0.78);
    border-radius: 26px;
    padding: 16px;
    background: rgba(7, 24, 48, 0.84);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    margin-top: 14px;
}

.multi-page .section-box {
    border-color: rgba(221, 175, 86, 0.28);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 34px rgba(42, 24, 6, 0.08);
}

.section-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #ffd77d;
    font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
    font-size: 25px;
    line-height: 1.25;
}

.multi-page .section-label {
    color: var(--ink);
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 900;
}

.section-label small {
    color: rgba(255, 247, 228, 0.76);
    font-family: "Noto Sans KR", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.multi-page .section-label small {
    color: rgba(7, 24, 50, 0.58);
}

.video-card {
    border: 1.5px solid rgba(255, 224, 156, 0.72);
    border-radius: 22px;
    overflow: hidden;
    background: #071832;
    cursor: pointer;
}

.video-art {
    min-height: 170px;
    display: grid;
    place-items: center;
}

.jia-art {
    background:
        radial-gradient(circle at 26% 28%, rgba(255, 229, 168, 0.68), transparent 4rem),
        radial-gradient(circle at 72% 38%, rgba(96, 130, 199, 0.42), transparent 8rem),
        linear-gradient(180deg, #273e68 0%, #102441 62%, #071832 100%);
}

.multi-art {
    background:
        radial-gradient(circle at 48% 38%, rgba(255, 245, 199, 0.9), transparent 6rem),
        radial-gradient(circle at 70% 50%, rgba(76, 173, 195, 0.42), transparent 8rem),
        linear-gradient(180deg, #c6f0ff 0%, #fff4d8 56%, #4c9aad 100%);
}

.play {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 28px;
}

.video-text {
    padding: 14px;
}

.video-text h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.video-text p {
    margin: 7px 0 0;
    color: rgba(255, 247, 228, 0.7);
    font-size: 13px;
    line-height: 1.55;
}

.multi-page .video-text p {
    color: rgba(7, 24, 50, 0.58);
}

.selector-grid,
.topic-grid,
.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.selector-card {
    border: 1px solid rgba(255, 212, 137, 0.54);
    border-radius: 17px;
    padding: 12px 10px;
    min-height: 78px;
    color: var(--cream);
    background: radial-gradient(circle at 20% 15%, rgba(255, 232, 174, 0.18), transparent 4rem), rgba(11, 40, 72, 0.82);
    cursor: pointer;
    text-align: left;
}

.selector-card.active {
    background: linear-gradient(135deg, rgba(255, 221, 151, 0.32), rgba(11, 40, 72, 0.9));
}

.selector-card strong,
.selector-card span {
    display: block;
}

.selector-card strong {
    font-size: 15px;
    line-height: 1.3;
}

.selector-card span {
    margin-top: 6px;
    color: rgba(255, 247, 228, 0.62);
    font-size: 12px;
    line-height: 1.35;
}

.locked {
    opacity: 0.62;
}

.topic-card {
    border: 1px solid rgba(7, 24, 50, 0.12);
    border-radius: 18px;
    padding: 13px;
    min-height: 140px;
    background: linear-gradient(180deg, #ffe8ef, #fff8f1);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(20, 20, 20, 0.08);
}

.topic-card:nth-child(2) { background: linear-gradient(180deg, #ffe6a9, #fff8ed); }
.topic-card:nth-child(3) { background: linear-gradient(180deg, #c8efd4, #f7fff7); }
.topic-card:nth-child(4) { background: linear-gradient(180deg, #d6f2ed, #f8fffc); }
.topic-card:nth-child(5) { background: linear-gradient(180deg, #e2ceff, #fff8ff); }
.topic-card:nth-child(6) { background: linear-gradient(180deg, #c8ecff, #f8fcff); }

.topic-icon {
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 34px;
}

.topic-card strong,
.topic-card span {
    display: block;
    text-align: center;
}

.topic-card strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.topic-card span:last-child {
    margin-top: 6px;
    color: rgba(7, 24, 50, 0.68);
    font-size: 12px;
    line-height: 1.45;
}

.language-btn {
    min-height: 56px;
    border: 1px solid rgba(7, 24, 50, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    cursor: pointer;
}

.flag {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    font-size: 21px;
}

/* ====================================================
   MODAL
   ==================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(1, 5, 12, 0.84);
    backdrop-filter: blur(16px);
}

.modal.active {
    display: flex;
}

.modal-inner {
    width: min(100%, 520px);
    border: 1px solid rgba(255, 218, 141, 0.34);
    border-radius: 24px;
    background: #061226;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
}

.modal-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gold-soft);
    font-size: 15px;
}

.close {
    border: 1px solid rgba(255, 218, 141, 0.3);
    border-radius: 999px;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.frame {
    aspect-ratio: 16 / 9;
    background: black;
}

.frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

@media (max-width: 520px) {
    .app {
        width: 100%;
    }

    .landing {
        min-height: 100svh;
    }

    .landing::before {
        background-image: url("img/mainmobile.png");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        image-rendering: auto;
    }

    .landing::after {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
            linear-gradient(180deg, rgba(5, 18, 37, 0), rgba(2, 8, 20, 0.58) 88%);
    }
}



@media (max-width: 490px) {
    .landing {
        padding: 40px 14px 20px;
    }

    .logo {
        margin-bottom: 8px;
    }

    .logo h1 {
        font-size: 58px;
    }

    .logo p {
        font-size: 17px;
        letter-spacing: 0.34em;
    }

    .eyebrow {
        font-size: 17px;
    }

    .library-choice {
        gap: 9px;
        margin-top: -70px;
    }

    .choice-card {
        aspect-ratio: unset;
        height: clamp(280px, 44vh, 380px);
        border-radius: 22px;
        padding: 14px 10px 34px;
        background-position: center center;
    }

    .choice-card h3 {
        font-size: 22px;
    }

    .choice-card p {
        margin: 8px 0 12px;
        font-size: 13px;
    }

    .enter-btn {
        height: 48px;
        font-size: 18px;
    }

    .store-section {
        margin-top: 12px;
    }

    .store-card {
        padding: 14px 14px;
        gap: 10px;
    }

    .ticket {
        font-size: 26px;
    }

    .store-card-text strong {
        font-size: 12px;
    }

    .store-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .source-note,
    .bottom-note {
        margin-top: 12px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .landing {
        padding-inline: 12px;
    }

    .logo h1 {
        font-size: 50px;
    }

    .logo p {
        font-size: 15px;
    }

    .eyebrow {
        font-size: 15px;
    }

    .choice-card {
        height: clamp(240px, 38vh, 300px);
        padding-inline: 8px;
    }

    .choice-card h3 {
        font-size: 20px;
    }

    .choice-card p {
        font-size: 12px;
    }

    .enter-btn {
        height: 44px;
        font-size: 16px;
    }
}

@media (min-width: 760px) {
    .app {
        width: min(100%, 760px);
    }

    .landing {
        padding-inline: 42px;
        justify-content: center;
        gap: 28px;
    }

    .choice-card {
        aspect-ratio: unset;
        min-height: 480px;
        height: auto;
    }

    .selector-grid,
    .topic-grid,
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}




.company-footer {
  margin-top: 36px;
  text-align: center;
  color: #f7d28a;
  padding-bottom: 32px;
}

.footer-line {
  width: 70%;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(247, 210, 138, 0.7),
    transparent
  );
}

.company-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(247, 210, 138, 0.45);
}

.company-en {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: rgba(247, 210, 138, 0.8);
}