
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #070b20;
    --blue: #123a6b;
    --blue2: #245c8b;
    --lightblue: #78a8c8;
    --gold: #f2d66d;
    --cream: #f8edc4;
    --purple: #8c72bd;
    --white: #f5f5ec;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--white);
    background: #06091a;
    overflow-x: hidden;
}


/* ==================================================
   VAN GOGH PAINTED SKY
================================================== */

.sky {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(40, 100, 145, .65),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(25, 69, 110, .8),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 15%,
            rgba(81, 60, 125, .4),
            transparent 28%
        ),
        #06091a;
}


/* huge swirling brush strokes */

.sky::before {
    content: "";

    position: absolute;

    width: 160%;
    height: 160%;

    left: -30%;
    top: -30%;

    opacity: .7;

    background:
        repeating-radial-gradient(
            ellipse at 50% 50%,

            transparent 0px,
            transparent 24px,

            rgba(50, 112, 160, .55) 27px,
            rgba(50, 112, 160, .55) 38px,

            transparent 42px,
            transparent 63px,

            rgba(27, 67, 113, .7) 66px,
            rgba(27, 67, 113, .7) 78px
        );

    transform: rotate(-12deg);

    animation: swirl 35s linear infinite;
}

@keyframes swirl {

    from {
        transform: rotate(-12deg) scale(1);
    }

    to {
        transform: rotate(348deg) scale(1.08);
    }
}


/* secondary paint */

.sky::after {
    content: "";

    position: absolute;

    width: 120%;
    height: 120%;

    left: -10%;
    top: -10%;

    opacity: .3;

    background:
        repeating-radial-gradient(
            ellipse at 70% 35%,
            transparent 0 30px,
            rgba(123, 164, 188, .5) 33px 40px,
            transparent 43px 65px
        );

    animation: swirl2 45s linear infinite;
}

@keyframes swirl2 {

    to {
        transform: rotate(-360deg);
    }
}


/* ==================================================
   STARS
================================================== */

.star-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.star {
    position: absolute;

    width: 3px;
    height: 3px;

    background: #fff7c7;

    border-radius: 50%;

    box-shadow:
        0 0 6px #fff7c7,
        0 0 15px rgba(255,235,130,.7);

    animation: blink 2s infinite alternate;
}

@keyframes blink {

    from {
        opacity: .2;
        transform: scale(.6);
    }

    to {
        opacity: 1;
        transform: scale(1.5);
    }
}


/* ==================================================
   NAVIGATION
================================================== */

nav {

    position: fixed;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    width: 92%;
    max-width: 1150px;

    padding: 15px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(5,10,30,.72);

    border: 1px solid rgba(248,237,196,.25);

    border-radius: 22px;

    backdrop-filter: blur(15px);

    z-index: 100;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}

.logo {

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: 16px;

    letter-spacing: 4px;

    font-weight: 700;
}

.logo span {
    color: var(--gold);
}

.nav-links {

    display: flex;

    gap: 8px;
}

.nav-links a {

    text-decoration: none;

    color: #ddd;

    padding: 9px 14px;

    border-radius: 12px;

    font-size: 13px;

    transition: .3s;
}

.nav-links a:hover {

    color: var(--gold);

    background: rgba(255,255,255,.08);
}


/* ==================================================
   HERO
================================================== */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 130px 20px 70px;
}

.hero-content {

    max-width: 900px;

    position: relative;

    z-index: 3;
}

.small-title {

    color: var(--gold);

    font-size: 12px;

    letter-spacing: 7px;

    text-transform: uppercase;

    margin-bottom: 22px;
}

.hero h1 {

    font-family: "Cinzel", serif;

    font-size: clamp(55px, 10vw, 125px);

    line-height: .85;

    color: var(--cream);

    letter-spacing: 5px;

    text-shadow:
        0 10px 40px rgba(0,0,0,.5);
}

.hero h1 span {

    display: block;

    font-family: "Playfair Display", serif;

    font-style: italic;

    font-size: .38em;

    color: var(--gold);

    letter-spacing: 3px;

    margin-top: 30px;
}

.hero-text {

    max-width: 620px;

    margin: 35px auto;

    color: #d0d5e1;

    line-height: 1.8;

    font-size: 15px;
}

.explore-btn {

    display: inline-block;

    padding: 15px 27px;

    border-radius: 50px;

    color: #101528;

    background: var(--cream);

    text-decoration: none;

    font-weight: 700;

    transition: .3s;

    box-shadow:
        0 10px 40px rgba(242,214,109,.25);
}

.explore-btn:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 50px rgba(242,214,109,.4);
}


/* ==================================================
   MOON
================================================== */

.moon {

    position: absolute;

    width: 115px;
    height: 115px;

    right: 16%;
    top: 20%;

    border-radius: 50%;

    background: #f5e36e;

    box-shadow:
        0 0 35px rgba(245,227,110,.7),
        0 0 100px rgba(245,227,110,.25);

    z-index: 1;
}

.moon::after {

    content: "";

    position: absolute;

    width: 105px;
    height: 105px;

    background: #172b55;

    border-radius: 50%;

    left: 35px;
    top: -12px;
}


/* ==================================================
   STAR MAP
================================================== */

.map-section {

    min-height: 100vh;

    padding: 120px 5%;

    max-width: 1400px;

    margin: auto;
}

.section-label {

    text-align: center;

    color: var(--gold);

    letter-spacing: 5px;

    font-size: 12px;
}

.section-title {

    text-align: center;

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: clamp(35px,6vw,65px);

    margin-top: 12px;
}

.section-subtitle {

    text-align: center;

    color: #b9bfd2;

    max-width: 600px;

    margin: 18px auto 60px;

    line-height: 1.7;
}


/* THE MAP */

.star-map {

    position: relative;

    width: 100%;

    height: 680px;

    overflow: hidden;

    border-radius: 45px;

    border: 1px solid rgba(248,237,196,.22);

    background:

        radial-gradient(
            circle at center,
            rgba(47,100,143,.55),
            rgba(7,13,38,.8) 65%
        );

    box-shadow:
        0 40px 100px rgba(0,0,0,.45),
        inset 0 0 100px rgba(0,0,0,.5);
}


/* painted swirls INSIDE map */

.star-map::before {

    content: "";

    position: absolute;

    inset: -30%;

    background:
        repeating-radial-gradient(
            ellipse at 50% 50%,

            transparent 0 25px,

            rgba(65,132,171,.3) 28px 38px,

            transparent 41px 60px,

            rgba(25,65,112,.5) 63px 75px
        );

    transform: rotate(-10deg);

    animation: mapSwirl 30s linear infinite;
}

@keyframes mapSwirl {

    to {
        transform: rotate(350deg) scale(1.1);
    }
}


/* constellation paths */

.constellation-line {

    position: absolute;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(245,224,119,.65),
            transparent
        );

    transform-origin: left center;

    z-index: 2;
}


/* map title */

.map-title {

    position: absolute;

    top: 30px;

    left: 35px;

    z-index: 10;

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: 15px;

    letter-spacing: 3px;
}


/* ==================================================
   PLANETS / NODES
================================================== */

.node {

    position: absolute;

    z-index: 10;

    width: 105px;
    height: 105px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    cursor: pointer;

    transition: .4s;
}

.node::before {

    content: "";

    position: absolute;

    inset: -12px;

    border: 1px solid rgba(248,237,196,.35);

    border-radius: 50%;

    animation: orbit 5s linear infinite;
}

@keyframes orbit {

    to {
        transform: rotate(360deg);
    }
}

.node::after {

    content: "";

    position: absolute;

    inset: -30px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(242,214,109,.2),
        transparent 65%
    );

    z-index: -1;
}

.node:hover {

    transform: scale(1.18);

    filter: brightness(1.2);
}

.node span {

    position: relative;

    font-family: "Cinzel", serif;

    font-size: 11px;

    letter-spacing: 1px;

    color: #fff8d8;

    z-index: 3;
}


/* center */

.center-node {

    left: 50%;
    top: 50%;

    transform: translate(-50%,-50%);

    width: 170px;
    height: 170px;

    background:
        repeating-radial-gradient(
            ellipse,
            #173b6e 0 12px,
            #39749f 14px 22px,
            #1a4778 24px 34px
        );

    box-shadow:
        0 0 70px rgba(89,162,203,.4);
}

.center-node:hover {

    transform:
        translate(-50%,-50%)
        scale(1.08);
}

.center-node span {

    font-size: 16px;

    letter-spacing: 3px;
}


/* individual nodes */

.node-star {

    background:
        radial-gradient(
            circle at 35% 30%,
            #fff3a6,
            #e1bf54 45%,
            #856a2f 100%
        );

    box-shadow:
        0 0 30px rgba(242,214,109,.5);
}

.node-blue {

    background:
        repeating-radial-gradient(
            ellipse,
            #3979a6 0 8px,
            #183e70 10px 17px,
            #6d9db8 19px 24px
        );

    box-shadow:
        0 0 30px rgba(90,165,211,.4);
}

.node-purple {

    background:
        repeating-radial-gradient(
            ellipse,
            #75609e 0 8px,
            #27265a 10px 17px,
            #b398d0 19px 24px
        );

    box-shadow:
        0 0 30px rgba(164,131,211,.4);
}


/* node positions */

.node-1 {
    left: 13%;
    top: 25%;
}

.node-2 {
    left: 32%;
    top: 16%;
}

.node-3 {
    right: 14%;
    top: 25%;
}

.node-4 {
    right: 25%;
    top: 55%;
}

.node-5 {
    left: 17%;
    top: 61%;
}

.node-6 {
    left: 40%;
    bottom: 12%;
}

.node-7 {
    right: 9%;
    bottom: 12%;
}


/* ==================================================
   INFO PANEL
================================================== */

.map-info {

    position: absolute;

    left: 30px;
    bottom: 28px;

    z-index: 20;

    max-width: 260px;

    padding: 18px;

    border-radius: 18px;

    background: rgba(5,10,27,.7);

    border: 1px solid rgba(248,237,196,.18);

    backdrop-filter: blur(12px);
}

.map-info h3 {

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: 14px;

    margin-bottom: 7px;
}

.map-info p {

    color: #adb4ca;

    font-size: 12px;

    line-height: 1.6;
}


/* ==================================================
   CONSTELLATIONS
================================================== */

.constellations {

    max-width: 1200px;

    margin: auto;

    padding: 120px 6%;
}

.constellation-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 45px;
}

.constellation-card {

    min-height: 270px;

    padding: 28px;

    position: relative;

    overflow: hidden;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(24,57,94,.8),
            rgba(8,12,34,.9)
        );

    border: 1px solid rgba(248,237,196,.18);

    transition: .35s;
}

.constellation-card:hover {

    transform: translateY(-8px);

    border-color: rgba(242,214,109,.45);
}

.constellation-card::before {

    content: "✦";

    position: absolute;

    right: 25px;

    top: 20px;

    font-size: 55px;

    color: var(--gold);

    opacity: .6;
}

.constellation-card h3 {

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: 24px;

    margin-top: 60px;
}

.constellation-card p {

    color: #aeb6ca;

    font-size: 13px;

    line-height: 1.7;

    margin-top: 12px;
}

.open {

    display: inline-block;

    margin-top: 18px;

    color: var(--gold);

    font-size: 12px;

    text-decoration: none;

    letter-spacing: 1px;
}


/* ==================================================
   VAN GOGH SECTION
================================================== */

.van-gogh {

    max-width: 1200px;

    margin: auto;

    padding: 100px 6%;

    text-align: center;
}

.van-gogh h2 {

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: clamp(35px,5vw,60px);
}

.van-gogh p {

    max-width: 700px;

    margin: 25px auto;

    color: #bac1d2;

    line-height: 1.8;
}

.quote {

    font-family: "Playfair Display", serif;

    font-style: italic;

    font-size: 24px;

    color: var(--gold);

    margin-top: 40px;
}


/* ==================================================
   MODAL
================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 300;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background: rgba(3,6,20,.82);

    backdrop-filter: blur(14px);
}

.modal.show {

    display: flex;
}

.modal-box {

    width: 100%;

    max-width: 600px;

    padding: 35px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #173b67,
            #080d25
        );

    border: 1px solid rgba(248,237,196,.3);

    box-shadow:
        0 30px 100px rgba(0,0,0,.6);

    position: relative;
}

.close {

    position: absolute;

    right: 20px;
    top: 15px;

    border: none;

    background: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}

.modal-label {

    color: var(--gold);

    letter-spacing: 4px;

    font-size: 11px;
}

.modal-box h2 {

    font-family: "Cinzel", serif;

    color: var(--cream);

    font-size: 36px;

    margin-top: 10px;
}

.modal-box p {

    color: #bbc2d4;

    line-height: 1.7;

    margin-top: 12px;
}

.modal-btn {

    margin-top: 25px;

    padding: 13px 22px;

    border: none;

    border-radius: 30px;

    background: var(--cream);

    color: #11172c;

    font-weight: bold;

    cursor: pointer;
}


/* ==================================================
   FOOTER
================================================== */

footer {

    padding: 45px 7%;

    border-top:
        1px solid rgba(255,255,255,.08);

    display: flex;

    justify-content: space-between;

    color: #858da6;

    font-size: 12px;
}

footer strong {

    color: var(--cream);

    font-family: "Cinzel", serif;

    letter-spacing: 3px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:900px) {

    .constellation-grid {

        grid-template-columns: 1fr 1fr;
    }

    .star-map {

        height: 600px;
    }

}

@media(max-width:650px) {

    .nav-links a:nth-child(-n+2) {

        display: none;
    }

    .constellation-grid {

        grid-template-columns: 1fr;
    }

    .star-map {

        height: 570px;
    }

    .node {

        width: 75px;
        height: 75px;
    }

    .center-node {

        width: 125px;
        height: 125px;
    }

    .node span {

        font-size: 8px;
    }

    .center-node span {

        font-size: 11px;
    }

    .moon {

        right: 8%;
        top: 18%;

        width: 75px;
        height: 75px;
    }

    .moon::after {

        width: 70px;
        height: 70px;
    }

    footer {

        display: block;

        text-align: center;
    }

    footer span {

        display: block;

        margin-top: 10px;
    }
}

/* Vietnamese learning interface, based on 123.html. */
body{isolation:isolate}button,input{font:inherit}button{cursor:pointer}a{color:inherit}:focus-visible{outline:3px solid var(--gold);outline-offset:5px}section{scroll-margin-top:115px}.logo{text-decoration:none;white-space:nowrap}.motion-toggle{width:36px;height:36px;border:1px solid #f8edc433;border-radius:50%;background:transparent;color:var(--gold);font-size:24px;flex-shrink:0}.motion-toggle[aria-pressed=true]{background:#f8edc420}
.hero{min-height:max(830px,100svh)}.hero h1{font-size:clamp(58px,8.8vw,112px);line-height:1.13;font-weight:600}.hero h1 span{font-size:clamp(24px,3.6vw,43px);line-height:1.5;letter-spacing:1px;margin-top:17px}.hero-text{margin:24px auto 30px}.hero-footnote{margin-top:28px;color:#b8c7dc;font-size:11px;letter-spacing:3px}.explore-btn{font-size:12px;letter-spacing:1px}.explore-btn span{margin-left:9px}.moon{right:13%;top:19%}.scroll-cue{position:absolute;bottom:25px;left:calc(50% - 19px);display:grid;place-items:center;width:38px;height:45px;border:1px solid #f8edc433;border-radius:30px;text-decoration:none;color:var(--cream)}
.map-section{padding-top:105px;padding-bottom:50px}.section-title{font-size:clamp(30px,4.8vw,56px);line-height:1.4}.section-label{line-height:1.9;letter-spacing:3px}.map-title{font-size:13px;letter-spacing:2px}.map-title span{display:block;margin-top:10px;font:12px "DM Sans",sans-serif;color:#b9bfd2;letter-spacing:.5px}.map-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.map-connections path{fill:none;stroke:#f5e07777;stroke-width:1;stroke-dasharray:4 6}.node{border:1px solid #f8edc455;font:inherit}.node span{line-height:1.8;font-weight:700;text-shadow:0 2px 8px #05091e}.node-star span{color:#271e08;text-shadow:0 1px 7px #fff3a699}
.node-1{left:calc(18% - 52px);top:calc(32.35% - 52px)}.node-2{left:calc(37% - 52px);top:calc(24.26% - 52px)}.node-3{left:calc(81% - 52px);top:calc(32.35% - 52px);right:auto}.node-4{left:calc(69.5% - 52px);top:calc(62.5% - 52px);right:auto}.node-5{left:calc(22% - 52px);top:calc(68.38% - 52px)}.node-6{left:calc(45% - 52px);top:calc(80.14% - 52px);bottom:auto}.node-7{left:calc(85% - 52px);top:calc(80.14% - 52px);right:auto;bottom:auto}.map-info{max-width:220px;padding:14px 18px}
.constellations{padding-top:95px;padding-bottom:90px}.card-index{font-size:10px;letter-spacing:2px;color:#aebbd0}.constellation-card{display:flex;flex-direction:column;min-height:290px}.constellation-card h3{font-size:22px;margin-top:48px;line-height:1.5}.constellation-card p{flex:1}.open{background:none;border:none;text-align:left;width:fit-content;line-height:1.8}.open:hover{color:var(--cream);text-decoration:underline;text-underline-offset:5px}
.dictionary-section{max-width:1200px;margin:auto;padding:70px 6% 100px}.dictionary-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.search-field{flex:1;min-width:230px;display:flex;align-items:center;gap:12px;padding:0 18px;background:#080e28d9;border:1px solid #f8edc433;border-radius:16px}.search-field span{color:var(--gold);font-size:28px}.search-field input{width:100%;min-width:0;padding:16px 0;background:transparent;color:var(--cream);border:none;font-size:14px}.search-field input::placeholder{color:#b9bfd2}.filter-group{display:flex;gap:7px}.filter-group button,.secondary-btn{border:1px solid #f8edc440;padding:12px 16px;background:#080e28cc;color:#d6ddeb;border-radius:30px;font-size:12px}.filter-group button[aria-pressed=true]{background:var(--cream);color:var(--navy);border-color:var(--cream)}.result-count{color:#b9bfd2;font-size:12px;margin:20px 0}.dictionary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.sign-card{position:relative;padding:10px 10px 15px;border:1px solid #f8edc433;border-radius:20px;background:linear-gradient(145deg,#18395ee6,#080c22ee);color:var(--cream);text-align:left;transition:transform .2s,border-color .2s}.sign-card:hover{transform:translateY(-5px);border-color:var(--gold)}.sign-card img{width:100%;height:145px;object-fit:contain;display:block;background:#fff;border-radius:12px}.sign-card b{display:block;padding:13px 3px 2px;font-weight:500;font-size:14px}.sign-card small{display:block;padding-left:3px;color:#aebbd0;font-size:11px}.seen-mark{position:absolute;top:15px;right:15px;background:#f8edc4;color:#172b55;width:22px;height:22px;border-radius:50%;text-align:center;line-height:22px}.empty-state{grid-column:1/-1;text-align:center;border:1px solid #f8edc433;border-radius:20px;padding:35px;color:#c0cadb;line-height:1.8}
.van-gogh{padding-top:70px}.van-gogh h2{line-height:1.5;margin-top:18px;font-size:clamp(30px,4.5vw,52px)}.van-gogh .about-note{font-size:13px;color:#aebbd0;max-width:630px}.van-gogh>.open{margin-top:35px}footer{gap:25px;line-height:1.8}footer strong{font-size:12px;letter-spacing:2px}
.learning-dialog{border:none;padding:0;background:transparent;color:var(--white);width:min(620px,calc(100% - 32px));max-height:calc(100svh - 40px);margin:auto;border-radius:30px}.learning-dialog::backdrop{background:#030614dd;backdrop-filter:blur(14px)}.learning-dialog .modal-box{max-width:none;padding:32px;box-shadow:none}.learning-dialog h2{padding-right:18px;font-size:clamp(24px,4vw,34px);line-height:1.45}.learning-dialog .close{top:13px;right:15px;width:36px;height:36px;border-radius:50%}.learning-dialog .close:hover{background:#ffffff1a}.modal-label{font-size:10px;letter-spacing:2px;padding-right:20px;line-height:1.8}.lesson-image{display:block;width:100%;height:min(34svh,280px);object-fit:contain;background:#fff;border-radius:18px;margin:20px 0 0}.lesson-meta{font-size:12px;color:#bbc2d4}.lesson-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:24px}.modal-btn{margin:0;font-size:13px;font-family:"DM Sans",sans-serif}.modal-btn:disabled,.secondary-btn:disabled{opacity:.4;cursor:default}.lesson-counter{color:var(--gold);font-size:12px}.answer-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.answer-options button{border:1px solid #f8edc444;border-radius:14px;background:#0a1732;color:var(--cream);padding:13px;text-align:center}.answer-options button:hover:not(:disabled){border-color:var(--gold)}.answer-options button.correct{background:#154a41;border-color:#89d5af;color:#deffef}.answer-options button.incorrect{background:#57283a;border-color:#e7a0ae}.feedback{min-height:28px;font-size:14px}.progress-summary{display:flex;gap:14px;margin:24px 0}.progress-summary>div{flex:1;background:#080e2888;border:1px solid #f8edc42b;border-radius:18px;padding:19px 12px;text-align:center}.progress-summary strong{display:block;color:var(--gold);font:30px "Cinzel",serif}.progress-summary span{display:block;color:#c0cadb;margin-top:7px;font-size:12px}.progress-meter{height:8px;border-radius:20px;background:#ffffff1a;overflow:hidden}.progress-meter>span{display:block;height:100%;background:var(--gold)}.flash-answer{min-height:36px;text-align:center;margin-top:18px;font-size:23px;color:var(--gold)}
.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:400;background:var(--cream);color:#101528;border-radius:16px;padding:14px 22px;font-size:13px;box-shadow:0 10px 35px #0005;opacity:0;pointer-events:none;transition:.2s;width:max-content;max-width:calc(100vw - 32px)}.toast.show{opacity:1;transform:translate(-50%,0)}.skip-link{position:fixed;top:-100px;left:15px;z-index:200;background:var(--cream);color:var(--navy);padding:15px;border-radius:12px}.skip-link:focus{top:15px}html.motion-paused{scroll-behavior:auto}.motion-paused *,.motion-paused *::before,.motion-paused *::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:900px){.dictionary-grid{grid-template-columns:repeat(4,1fr)}.map-info{max-width:190px;left:20px;bottom:18px}.map-info h3{font-size:12px}.hero h1{font-size:clamp(60px,11vw,100px)}}
@media(max-width:650px){nav{top:12px;padding:12px 14px;gap:8px;border-radius:18px;width:calc(100% - 24px)}.logo{font-size:13px;letter-spacing:2px}.nav-links{gap:2px}.nav-links a{padding:8px;font-size:12px}.nav-links a:nth-child(1),.nav-links a:nth-child(4){display:none}.nav-links a:nth-child(2){display:block}.motion-toggle{width:30px;height:30px;font-size:20px}.hero{min-height:max(730px,100svh);padding:160px 20px 95px}.hero h1{font-size:clamp(45px,11.7vw,72px);letter-spacing:2px;line-height:1.25}.hero h1 span{font-size:clamp(22px,5.5vw,30px);letter-spacing:0;margin-top:17px}.small-title{font-size:10px;letter-spacing:3px;margin-bottom:22px}.hero-text{font-size:14px;margin:24px auto}.desktop-break{display:none}.hero-footnote{font-size:10px;letter-spacing:2px}.moon{top:15%;right:12%;width:60px;height:60px;opacity:.85}.moon::after{width:56px;height:56px;left:20px;top:-9px}.map-section{padding:70px 16px 30px}.section-label{font-size:10px;letter-spacing:2px}.section-title{font-size:29px}.section-subtitle{font-size:14px;margin-bottom:35px}.star-map{height:650px;border-radius:28px}.map-title{left:24px;top:24px;font-size:12px}.node{width:74px;height:74px}.node span{font-size:9px;letter-spacing:.4px}.node::before{inset:-7px}.center-node{width:106px;height:106px;top:47%}.center-node span{font-size:14px}.node-1{left:calc(22% - 37px);top:calc(25% - 37px)}.node-2{left:calc(70% - 37px);top:calc(23% - 37px)}.node-3{left:calc(81% - 37px);top:calc(43% - 37px)}.node-4{left:calc(74% - 37px);top:calc(63% - 37px)}.node-5{left:calc(18% - 37px);top:calc(48% - 37px)}.node-6{left:calc(27% - 37px);top:calc(69% - 37px)}.node-7{left:calc(66% - 37px);top:calc(81% - 37px)}.map-info{max-width:140px;left:16px;bottom:16px;padding:12px}.map-info p{font-size:10px}.map-info h3{font-size:11px}.constellations,.dictionary-section{padding:65px 20px}.constellation-card{min-height:255px;padding:26px}.constellation-card h3{margin-top:38px}.dictionary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sign-card img{height:145px}.filter-group{width:100%}.filter-group button{flex:1;padding:11px 9px}.search-field{min-width:0;flex-basis:100%}.learning-dialog .modal-box{padding:27px 20px}.lesson-actions{gap:8px}.modal-btn,.secondary-btn{padding:12px 14px;font-size:12px}.van-gogh{padding:65px 24px}.quote{font-size:21px;line-height:1.7}footer{padding:35px 20px}}
@media(max-width:360px){.logo{font-size:11px;letter-spacing:1px}.nav-links a{padding:7px 5px;font-size:11px}.node{width:64px;height:64px;margin:5px}.center-node{width:90px;height:90px;margin:0}}
/* Preserve Cinzel letterforms while supplying missing Vietnamese characters locally. */
@font-face{font-family:"Ky Viet Display";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/ky-viet-display-500.woff2") format("woff2")}
@font-face{font-family:"Ky Viet Display";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/ky-viet-display-600.woff2") format("woff2")}
@font-face{font-family:"Ky Viet Display";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/ky-viet-display-700.woff2") format("woff2")}
.logo,.hero h1,.section-title,.map-title,.node span,.map-info h3,.constellation-card h3,.van-gogh h2,.modal-box h2,footer strong,.progress-summary strong{font-family:"Ky Viet Display","Cinzel",serif}
.hero h1 span{font-family:"Playfair Display",serif}
/* Alphabet reference and long-sentence studio. */
.alphabet-jump{display:flex;flex-wrap:wrap;gap:7px;margin:23px 0 15px}.alphabet-jump button{min-width:34px;padding:8px 10px;border:1px solid #f8edc433;background:#0a1534;color:var(--cream);border-radius:9px}.alphabet-jump button:hover{background:var(--cream);color:var(--navy)}.source-note{font-size:12px;line-height:1.9;color:#bcc9dd}.source-note a{color:var(--gold);text-underline-offset:3px}.filter-group{flex-wrap:wrap}.sentence-section{max-width:1200px;margin:auto;padding:85px 5% 105px}.sentence-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:start}.sentence-editor,.sentence-player{border:1px solid #f8edc433;border-radius:26px;background:linear-gradient(145deg,#153456ef,#090e25f5);padding:26px}.sentence-editor label{display:block;color:var(--cream);font-size:14px;margin-bottom:12px}.sentence-editor textarea,.sentence-editor select{width:100%;font:14px 'DM Sans',sans-serif;color:var(--white);background:#080f28;border:1px solid #f8edc440;border-radius:13px;padding:14px;line-height:1.8}.sentence-editor textarea{resize:vertical;min-height:175px;max-height:450px}.sentence-editor textarea::placeholder{color:#9eafc8}.sentence-input-meta{display:flex;justify-content:space-between;gap:10px;margin:10px 0 24px;font-size:11px;color:#aebdd2}.sentence-help,.sentence-source{font-size:12px;color:#c1ccdc;line-height:1.9;margin:12px 0 20px}.sentence-build{width:100%;margin-top:3px}.sentence-message{font-size:12px;color:var(--gold);line-height:1.8;min-height:22px;margin-top:14px;overflow-wrap:anywhere}.sample-label{font-size:10px;letter-spacing:2px;color:#b7c6da;margin:24px 0 12px}.sentence-samples{display:flex;flex-wrap:wrap;gap:8px}.sentence-samples button{font-size:12px;color:#e5dfbf;border:1px solid #f8edc433;border-radius:25px;background:#ffffff08;padding:9px 13px}.sentence-samples button:hover{border-color:var(--gold)}.sentence-source{margin-bottom:0}.sentence-source summary{cursor:pointer;color:#dce4f1}.sentence-source p{margin:9px 0}.sentence-source a{color:var(--gold)}.player-topline{display:flex;justify-content:space-between;gap:15px;font-size:11px;letter-spacing:1px;color:var(--gold);margin:0 0 18px}.player-topline span:first-child{overflow-wrap:anywhere;min-width:0}.player-topline span:last-child{white-space:nowrap}.sentence-stage{height:300px;background:#fff;border-radius:18px;display:grid;place-items:center;overflow:hidden;color:#132e50}.sentence-sign-image{width:100%;height:100%;object-fit:contain;min-height:0}.sentence-placeholder{text-align:center;padding:22px}.sentence-placeholder>span{font-size:50px;color:#ad8333}.sentence-placeholder h3{font-family:'Ky Viet Display',serif;font-size:22px;margin:16px 0}.sentence-placeholder p{font-size:13px;line-height:1.8;color:#44546a}.sentence-symbol{font-size:62px;font-family:'Ky Viet Display',serif;overflow-wrap:anywhere;max-width:100%;padding:20px}.sentence-symbol.unsupported{color:#8a5130}.sentence-caption{min-height:105px;margin:20px 0 8px}.sentence-caption h3{font-family:'Ky Viet Display',serif;font-size:24px;color:var(--cream);line-height:1.5}.sentence-caption p{font-size:12px;color:#bac8dc;line-height:1.8;margin-top:7px}.sentence-seek{width:100%;accent-color:var(--gold);margin:12px 0 22px}.sentence-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.sentence-controls button{min-height:42px}.speed-control{display:flex;align-items:center;gap:8px;font-size:11px;color:#b4c4dc}.speed-control select{background:#0b1530;color:var(--cream);border:1px solid #f8edc440;border-radius:9px;padding:9px}.playback-status{font-size:12px;color:#becce1;line-height:1.8;margin-top:18px;min-height:24px}.sentence-reading{margin-top:22px;border-radius:18px;line-height:2.25;max-height:215px;overflow:auto;overflow-wrap:anywhere;background:#081129d9}.sentence-reading:not(:empty){padding:18px}.sentence-reading button{background:transparent;color:#d1dbea;border:1px solid transparent;border-radius:7px;padding:2px 5px;font-size:14px;max-width:100%;overflow-wrap:anywhere}.sentence-reading button[aria-current=true]{background:var(--cream);color:var(--navy)}.sentence-timeline{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:18px}.timeline-range{font-size:11px;color:#b3c5dd;margin-right:7px}.timeline-token{font-size:12px;background:#0b1831;color:#cbd8e9;border:1px solid #f8edc42b;border-radius:10px;padding:9px 11px}.timeline-token[aria-current=true]{background:var(--cream);color:var(--navy);border-color:var(--cream)}.timeline-token.tone{border-color:#ba9ade66}.timeline-token.unsupported{border-style:dashed;border-color:#e5ae65}.timeline-token.pause{color:#99adc9}textarea,select{font-family:inherit}button:disabled{cursor:default}
@media(max-width:900px){.sentence-layout{grid-template-columns:1fr}.sentence-stage{height:360px}.sentence-caption{min-height:80px}}
@media(max-width:650px){.sentence-section{padding:65px 20px}.sentence-editor,.sentence-player{padding:20px;border-radius:20px}.sentence-stage{height:260px}.sentence-controls{gap:7px}.sentence-controls .modal-btn{flex:1;white-space:nowrap}.speed-control{flex-basis:100%;margin-top:8px}.sentence-editor textarea{font-size:16px}.sentence-editor select{font-size:13px}.filter-group button{flex:1 0 auto}.nav-links a:nth-child(4){display:block}.nav-links a:nth-child(2){display:none}.sentence-sign-image{padding:3px}}
/* Day and night theme switcher. */
html,body,nav,.sky,.sky::before,.sky::after,.star-map,.constellation-card,.sign-card,.sentence-editor,.sentence-player,.search-field,.filter-group button,.secondary-btn,.sentence-editor textarea,.sentence-editor select,.speed-control select,.sentence-reading,.learning-dialog .modal-box,.map-info,footer{transition:background-color .55s ease,color .45s ease,border-color .55s ease,box-shadow .55s ease,filter .55s ease}
.theme-toggle{position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;overflow:hidden;flex:none;border:1px solid rgba(248,237,196,.28);border-radius:50%;background:rgba(5,10,30,.34);color:var(--gold);box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 4px 18px rgba(0,0,0,.17);transition:background .45s ease,border-color .45s ease,transform .25s ease,color .45s ease}.theme-toggle:hover{transform:translateY(-2px) rotate(8deg);border-color:rgba(242,214,109,.82)}.theme-toggle:active{transform:scale(.92)}.theme-toggle span{position:absolute;display:grid;place-items:center;line-height:1;font-size:21px;transition:transform .55s cubic-bezier(.22,.9,.25,1),opacity .35s ease}.theme-toggle-sun{opacity:0;transform:rotate(-100deg) scale(.35)}.theme-toggle-moon{opacity:1;transform:rotate(0) scale(1)}
.theme-ripple{position:fixed;z-index:1000;inset:0;pointer-events:none;opacity:0;background:radial-gradient(circle at var(--theme-x,50%) var(--theme-y,50%),rgba(255,252,232,.96),rgba(249,227,147,.68) 29%,rgba(243,212,109,.08) 58%,transparent 72%);clip-path:circle(0 at var(--theme-x,50%) var(--theme-y,50%));}.theme-ripple.is-playing{animation:theme-ripple .82s cubic-bezier(.18,.68,.27,1) both}@keyframes theme-ripple{0%{opacity:0;clip-path:circle(0 at var(--theme-x,50%) var(--theme-y,50%))}12%{opacity:.9}100%{opacity:0;clip-path:circle(150vmax at var(--theme-x,50%) var(--theme-y,50%))}}
html[data-theme=light]{--navy:#18374f;--blue:#b5d7ec;--blue2:#78b5d5;--lightblue:#437b9e;--gold:#bf7b1c;--cream:#173550;--purple:#8065ae;--white:#18334b;color-scheme:light}html[data-theme=light] body{background:#dceef8;color:#18334b}html[data-theme=light] .sky{background:radial-gradient(circle at 51% 42%,rgba(255,242,190,.88),transparent 25%),radial-gradient(circle at 21% 22%,rgba(148,208,239,.83),transparent 34%),radial-gradient(circle at 82% 15%,rgba(236,190,233,.46),transparent 30%),#c8e7f5}html[data-theme=light] .sky::before{opacity:.42;background:repeating-radial-gradient(ellipse at 50% 50%,transparent 0,transparent 24px,rgba(76,153,197,.4) 27px,rgba(76,153,197,.4) 38px,transparent 42px,transparent 63px,rgba(52,121,171,.45) 66px,rgba(52,121,171,.45) 78px)}html[data-theme=light] .sky::after{opacity:.18}html[data-theme=light] .star-field{opacity:.25}html[data-theme=light] .star{background:#fffdf1;box-shadow:0 0 6px #fff7c7,0 0 15px rgba(248,201,80,.55)}html[data-theme=light] nav{background:rgba(246,252,255,.73);border-color:rgba(44,102,136,.24);box-shadow:0 20px 60px rgba(32,90,124,.16)}html[data-theme=light] .logo{color:#153b58}html[data-theme=light] .nav-links a{color:#28465b}html[data-theme=light] .nav-links a:hover{color:#9c5813;background:rgba(37,105,145,.09)}html[data-theme=light] .theme-toggle{background:rgba(255,255,255,.75);border-color:rgba(70,128,160,.34);color:#d28519;box-shadow:0 7px 20px rgba(66,132,165,.16)}html[data-theme=light] .theme-toggle-sun{opacity:1;transform:rotate(0) scale(1)}html[data-theme=light] .theme-toggle-moon{opacity:0;transform:rotate(100deg) scale(.35)}html[data-theme=light] .theme-ripple{background:radial-gradient(circle at var(--theme-x,50%) var(--theme-y,50%),rgba(13,31,65,.96),rgba(21,64,101,.7) 29%,rgba(22,65,103,.08) 58%,transparent 72%)}html[data-theme=light] .hero h1,html[data-theme=light] .section-title,html[data-theme=light] .van-gogh h2{color:#173d5b;text-shadow:0 10px 34px rgba(255,255,255,.44)}html[data-theme=light] .hero h1 span{color:#b76f18}html[data-theme=light] .small-title,html[data-theme=light] .section-label{color:#a76319}html[data-theme=light] .hero-text,html[data-theme=light] .section-subtitle,html[data-theme=light] .van-gogh p{color:#315a74}html[data-theme=light] .hero-footnote{color:#54778d}html[data-theme=light] .explore-btn,html[data-theme=light] .modal-btn{background:#164766;color:#fffdf4;box-shadow:0 10px 36px rgba(33,104,144,.24)}html[data-theme=light] .moon{background:#ffd54c;box-shadow:0 0 40px rgba(255,202,56,.75),0 0 110px rgba(255,215,93,.42)}html[data-theme=light] .moon::after{opacity:0;transform:translate(35px,-20px) scale(.3);transition:opacity .5s ease,transform .55s ease}html[data-theme=light] .scroll-cue{border-color:rgba(26,81,111,.35);color:#164766}html[data-theme=light] .star-map{background:radial-gradient(circle at center,rgba(202,237,249,.94),rgba(86,167,205,.86) 64%,rgba(33,102,146,.92));border-color:rgba(26,86,119,.25);box-shadow:0 35px 80px rgba(47,123,161,.24),inset 0 0 90px rgba(255,255,255,.3)}html[data-theme=light] .star-map::before{opacity:.32}html[data-theme=light] .map-connections path{stroke:#93591699}html[data-theme=light] .map-title{color:#153d59}html[data-theme=light] .map-title span,html[data-theme=light] .map-info p{color:#39637b}html[data-theme=light] .map-info{background:rgba(244,252,255,.73);border-color:rgba(32,93,129,.24)}html[data-theme=light] .map-info h3{color:#184665}html[data-theme=light] .node{border-color:rgba(255,255,255,.8)}html[data-theme=light] .node span{color:#173d59;text-shadow:0 1px 7px rgba(255,255,255,.82)}html[data-theme=light] .node-star span{color:#3b2a0c;text-shadow:0 1px 7px rgba(255,255,255,.65)}html[data-theme=light] .constellation-card,html[data-theme=light] .sign-card,html[data-theme=light] .sentence-editor,html[data-theme=light] .sentence-player{background:linear-gradient(145deg,rgba(241,251,255,.9),rgba(189,224,241,.91));border-color:rgba(38,104,140,.23);box-shadow:0 16px 45px rgba(50,126,161,.12)}html[data-theme=light] .constellation-card p,html[data-theme=light] .sign-card small,html[data-theme=light] .card-index,html[data-theme=light] .result-count,html[data-theme=light] .source-note,html[data-theme=light] .sentence-help,html[data-theme=light] .sentence-source,html[data-theme=light] .sentence-input-meta,html[data-theme=light] .sentence-caption p,html[data-theme=light] .playback-status{color:#40677d}html[data-theme=light] .constellation-card h3,html[data-theme=light] .sign-card b,html[data-theme=light] .sentence-editor label,html[data-theme=light] .sentence-caption h3{color:#173d59}html[data-theme=light] .open,html[data-theme=light] .source-note a,html[data-theme=light] .sentence-source a{color:#a76114}html[data-theme=light] .search-field,html[data-theme=light] .filter-group button,html[data-theme=light] .secondary-btn,html[data-theme=light] .sentence-editor textarea,html[data-theme=light] .sentence-editor select,html[data-theme=light] .speed-control select,html[data-theme=light] .sentence-reading,html[data-theme=light] .timeline-token{background:rgba(255,255,255,.72);border-color:rgba(38,104,140,.24);color:#254a62}html[data-theme=light] .search-field input,html[data-theme=light] .sentence-editor textarea,html[data-theme=light] .sentence-editor select{color:#183d57}html[data-theme=light] .search-field input::placeholder,html[data-theme=light] .sentence-editor textarea::placeholder{color:#7291a5}html[data-theme=light] .filter-group button[aria-pressed=true],html[data-theme=light] .sentence-reading button[aria-current=true],html[data-theme=light] .timeline-token[aria-current=true]{background:#174b6b;color:#fffdf7;border-color:#174b6b}html[data-theme=light] .sentence-reading button{color:#274f68}html[data-theme=light] .player-topline,html[data-theme=light] .sentence-message,html[data-theme=light] .lesson-counter{color:#a76114}html[data-theme=light] .sentence-stage{box-shadow:inset 0 0 0 1px rgba(33,105,145,.15)}html[data-theme=light] .learning-dialog .modal-box{background:linear-gradient(145deg,#e8f8ff,#bddff0);border-color:rgba(34,94,130,.3);box-shadow:0 30px 100px rgba(22,75,108,.3)}html[data-theme=light] .learning-dialog{color:#173d59}html[data-theme=light] .modal-box p,html[data-theme=light] .lesson-meta,html[data-theme=light] .feedback{color:#41677e}html[data-theme=light] .answer-options button{background:#f9feff;color:#224a64;border-color:rgba(38,104,140,.25)}html[data-theme=light] footer{border-color:rgba(28,86,120,.2);color:#4e7186}html[data-theme=light] footer strong{color:#174662}html[data-theme=light] .toast{background:#174b6b;color:#fffdf6}
@media (prefers-reduced-motion:reduce){.theme-ripple.is-playing{animation:none}.theme-toggle,.theme-toggle span{transition:none}}
@media(max-width:650px){.theme-toggle{width:32px;height:32px}.theme-toggle span{font-size:17px}}
/* Sound controls. */
.nav-controls{display:flex;align-items:center;gap:9px}.sound-toggle{position:relative;width:42px;height:42px;padding:0;display:grid;place-items:center;overflow:hidden;flex:none;border:1px solid rgba(248,237,196,.28);border-radius:50%;background:rgba(5,10,30,.34);color:var(--gold);box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 4px 18px rgba(0,0,0,.17);transition:background .45s ease,border-color .45s ease,transform .25s ease,color .45s ease}.sound-toggle:hover{transform:translateY(-2px);border-color:rgba(242,214,109,.82)}.sound-toggle:active{transform:scale(.92)}.sound-toggle span{position:absolute;display:grid;place-items:center;font:700 20px/1 'DM Sans',sans-serif;transition:transform .32s ease,opacity .25s ease}.sound-on{opacity:1;transform:scale(1)}.sound-off{opacity:0;transform:scale(.2) rotate(-25deg)}.sound-toggle.is-muted .sound-on{opacity:0;transform:scale(.2) rotate(25deg)}.sound-toggle.is-muted .sound-off{opacity:1;transform:scale(1)}html[data-theme=light] .sound-toggle{background:rgba(255,255,255,.75);border-color:rgba(70,128,160,.34);color:#d28519;box-shadow:0 7px 20px rgba(66,132,165,.16)}@media(max-width:650px){.nav-controls{gap:6px}.sound-toggle{width:32px;height:32px}.sound-toggle span{font-size:16px}}
