/* Panca — Dunia petualangan. Tata letak baru untuk versi 2. */
@font-face {
    font-family: Baloo;
    src: url('assets/fonts/baloo-extra-bold.ttf') format('truetype');
    font-weight: 700 900;
    font-display: swap
}

:root {
    --bg: #f0f9fc;
    --paper: #fff;
    --ink: #173d52;
    --muted: #527488;
    --green: #0d8998;
    --line: #d6e9f0;
    --gold: #ffd15b;
    --coral: #eb754a;
    --accent: #098a9b;
    --accent-soft: #e7f8fa;
    --radius: 24px;
    --shadow: 0 9px 0 #c9e0e54d, 0 17px 30px #28496007
}

body {
    background: radial-gradient(circle at 95% 6%, #fff7df 0, transparent 25%), var(--bg)
}

h1,
h2,
h3 {
    font-family: Baloo, Nunito, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -.6px
}

button {
    font-weight: 700
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #e78420;
    outline-offset: 4px
}

.site-header {
    border: 0;
    background: #f9fdfee6
}

.header-inner {
    max-width: 1280px;
    padding: 18px 32px;
    gap: 22px
}

.brand {
    font-family: Baloo, Nunito, sans-serif;
    font-size: 36px;
    line-height: .95;
    letter-spacing: -1.5px;
    gap: 10px;
    color: #174c64
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #149aa4;
    color: #ffdc76;
    box-shadow: 0 4px 0 #087b87;
    font-family: Nunito;
    font-size: 33px;
    transform: rotate(-6deg)
}

.brand-dot {
    color: #f59a40
}

.brand small {
    display: block;
    font-family: Nunito;
    font-size: 7px;
    letter-spacing: 1.2px;
    color: #5b8695;
    line-height: 1;
    margin: 5px 0 0 2px
}

.header-inner nav {
    gap: 9px
}

.nav-link {
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 12px;
    color: #4e7184
}

.nav-link.active {
    background: #e2f3f7;
    color: #0b788b
}

.nav-link.active:after {
    display: none
}

.nav-link:hover {
    background: #eaf6f8
}

.header-tools {
    gap: 8px
}

.grade-label {
    font-size: 11px;
    background: #fff2d0;
    color: #98651d;
    border: 1px solid #f1dca7;
    border-radius: 9px;
    padding: 7px 10px;
    margin-right: 6px
}

.icon-button {
    background: white;
    border: 1.5px solid #d5e7ed;
    box-shadow: 0 2px 0 #d5e7ed;
    color: #37667c
}

.icon-button:hover {
    background: #e5f6fa;
    transform: translateY(-2px)
}

.icon-button:active {
    transform: translateY(2px);
    box-shadow: none
}

main {
    max-width: 1280px;
    padding: 0 32px
}

.page-view {
    animation: page-in .4s ease both
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 0;
    align-items: center;
    min-height: 465px;
    margin: 16px 0 0;
    padding: 20px 22px 22px 45px;
    border: 3px solid white;
    border-radius: 32px;
    background: radial-gradient(ellipse at 70% 17%, #f0fdff88, transparent 46%), linear-gradient(150deg, #d2f3fa 0%, #bceaf4 52%, #98dce9 100%);
    box-shadow: 0 10px 0 #d4e8ec6b, 0 15px 40px #1e697014;
    isolation: isolate;
    overflow: hidden
}

.hero-copy {
    z-index: 3;
    min-width: 0;
    padding: 10px 0 20px
}

.hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.05px;
    font-weight: 900
}

.hero-badge {
    background: #ffffffc9;
    padding: 9px 12px;
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 3px 0 #9dcfd73b;
    color: #2d6074
}

.indonesia-flag {
    height: 13px;
    width: 19px;
    border-radius: 3px;
    background: linear-gradient(#e95c53 50%, white 50%);
    border: 1px solid #a4c0c93b;
    display: inline-block;
    box-shadow: 0 1px 2px #24546512
}

.hero h1 {
    font-size: clamp(48px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -1.6px;
    margin: 22px 0 18px;
    color: #153f5d;
    width: auto;
    text-shadow: 0 3px 0 #fff8
}

.hero h1>span {
    color: #ed8840;
    text-shadow: 0 3px 0 #ffddac;
    position: relative
}

.hero h1>span:after {
    display: none
}

.hero-copy>p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: #36647b
}

.hero-actions {
    gap: 13px;
    margin: 25px 0 23px;
    flex-wrap: wrap
}

.button {
    border-radius: 14px;
    min-height: 51px;
    padding: 13px 22px;
    font-size: 14px;
    gap: 9px;
    font-weight: 900
}

.button.primary {
    color: #67461e;
    background: #ffd05a;
    box-shadow: 0 5px 0 #d9a32f, 0 11px 20px #c18e2424;
    border: 1px solid #f3bd43
}

.button.primary:hover {
    background: #ffda77;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #d9a32f, 0 14px 22px #c18e2429
}

.button.primary:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #d9a32f
}

.hero-actions .primary {
    min-height: 55px;
    font-size: 15px;
    padding-inline: 24px
}

.hero-actions .primary svg {
    fill: currentColor;
    width: 17px;
    height: 17px
}

.hero-actions .quiet {
    font-size: 13px;
    padding-inline: 8px;
    color: #24516b
}

.button.quiet:hover {
    background: #ffffff69
}

.button.secondary {
    border: 1.5px solid #cbdfe7;
    box-shadow: 0 3px 0 #dceaf0;
    color: #345e72
}

.hero-note {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #507c8c;
    font-size: 11px
}

.hero-note svg {
    width: 14px;
    height: 14px;
    color: #198c9d
}

.hero-art {
    position: relative;
    min-width: 0;
    width: 100%;
    align-self: center;
    z-index: 2
}

.world {
    position: relative;
    height: 415px;
    border-radius: 0;
    touch-action: pan-y
}

.world:before {
    inset: 40px 16px 40px 3px;
    background: radial-gradient(ellipse, #e1ffff77 0, #e5fcff33 50%, transparent 72%);
    border-radius: 50%
}

.world:after {
    display: none
}

.world canvas {
    z-index: 1;
    position: relative
}

.world-fallback {
    inset: 20px 0;
    width: 100%;
    height: 88%;
    z-index: 0
}

.world-caption {
    top: 4px;
    left: 10px;
    transform: rotate(-5deg);
    color: #30748b;
    background: #fffc;
    border: 1px solid #fff;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 8px;
    letter-spacing: 1.2px;
    box-shadow: 0 3px 0 #7ab7c126;
    z-index: 3
}

.caption-dot {
    background: #29b2a4
}

.world-controls {
    bottom: 3px;
    left: 0;
    width: 70%;
    font-size: 9px;
    color: #3d7c8e;
    gap: 7px;
    z-index: 4
}

.world-controls .icon-button {
    width: 30px;
    height: 30px;
    background: #e9fbff;
    border-color: #a1d4df;
    box-shadow: 0 2px 0 #a9d5de;
    font-size: 22px
}

.hero-mascot {
    position: absolute;
    width: clamp(150px, 18vw, 220px);
    height: auto;
    bottom: 5px;
    right: -3px;
    z-index: 4;
    filter: drop-shadow(0 9px 7px #24587918);
    pointer-events: none;
    animation: mascot-bob 4.5s ease-in-out infinite;
    transform-origin: 50% 100%
}

.mascot-greeting {
    position: absolute;
    right: 7px;
    bottom: 232px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transform: rotate(4deg);
    padding: 10px 13px;
    background: #fff;
    border: 2px solid #e6f3f3;
    border-radius: 14px 14px 5px 14px;
    box-shadow: 0 5px 0 #92c8d43b;
    pointer-events: none
}

.mascot-greeting strong {
    font-family: Baloo;
    font-size: 17px;
    line-height: 1.1;
    color: #25546c
}

.mascot-greeting span {
    font-size: 9px;
    color: #6a8793
}

.hero-waves {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none
}

.hero-waves svg {
    width: 100%;
    height: 100%
}

.sky-cloud {
    position: absolute;
    background: #ffffff85;
    border-radius: 60px;
    width: 110px;
    height: 20px;
    pointer-events: none;
    z-index: 0;
    animation: cloud-drift 9s ease-in-out infinite
}

.sky-cloud:before,
.sky-cloud:after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%
}

.sky-cloud:before {
    height: 45px;
    width: 45px;
    left: 22px;
    bottom: 5px
}

.sky-cloud:after {
    height: 33px;
    width: 33px;
    right: 15px;
    bottom: 4px
}

.cloud-one {
    top: 84px;
    left: 49%;
    transform: scale(.65)
}

.cloud-two {
    right: 20px;
    top: 65px;
    transform: scale(.8);
    animation-delay: -4s
}

.hero-spark {
    position: absolute;
    color: #fff8d1;
    pointer-events: none;
    z-index: 1
}

.spark-one {
    left: 45%;
    bottom: 55px;
    font-size: 37px;
    transform: rotate(15deg)
}

.spark-two {
    right: 30px;
    top: 29px;
    font-size: 28px
}

.adventures {
    padding: 35px 0 0
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px
}

.section-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #118b9c
}

.section-heading h2 {
    font-size: 30px;
    letter-spacing: -.5px;
    line-height: 1.15;
    margin-top: 7px;
    max-width: none
}

.section-heading>div>p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px
}

.overall-progress {
    border: 1.5px solid #d9e9ed;
    background: #fff;
    padding: 11px 15px;
    border-radius: 15px;
    box-shadow: 0 3px 0 #d7e7ed6b;
    gap: 10px;
    min-width: 224px
}

.progress-ring {
    width: 43px;
    height: 43px;
    background: conic-gradient(#16a5ab var(--progress, 0%), #e5eff1 0)
}

.progress-ring>span {
    background: white;
    width: 34px;
    height: 34px;
    color: #438092;
    font-size: 11px
}

.overall-progress b {
    font-size: 11px
}

.overall-progress small {
    font-size: 10px;
    color: #688b9c
}

.mission-map {
    position: relative
}

.map-trail {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 0;
    pointer-events: none
}

.level-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.level-card,
.level-card:nth-child(2),
.level-card:nth-child(3) {
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
    border-radius: 23px;
    border: 2px solid #fff;
    background: #fff;
    box-shadow: 0 6px 0 #cfdee755, 0 0 0 1px #dce8ed;
    overflow: hidden;
    min-width: 0;
    transition: transform .22s, box-shadow .22s
}

.level-card:hover,
.level-card:nth-child(2):hover,
.level-card:nth-child(3):hover {
    transform: translateY(-6px);
    border-color: #fff;
    box-shadow: 0 10px 0 #cfdee755, 0 0 0 2px #6fc5d5, 0 18px 30px #20475712
}

.level-card:active {
    transform: translateY(1px)
}

.level-top {
    position: absolute;
    left: 14px;
    top: 13px;
    right: 14px;
    z-index: 3;
    font-size: 9px;
    letter-spacing: 1px
}

.level-number {
    background: #ffffffcf;
    color: #247787;
    font-size: 9px;
    border: 1px solid #fff;
    border-radius: 7px;
    padding: 5px 8px;
    box-shadow: 0 2px 0 #679eae12
}

.level-state {
    padding: 4px 6px;
    font-size: 9px;
    color: #528798;
    gap: 2px
}

.level-state.star-status {
    font-size: 14px;
    color: #e5aa2b;
    letter-spacing: 2px;
    filter: drop-shadow(0 1px 0 #fff8)
}

.mission-scene {
    position: relative;
    height: 170px;
    width: 100%;
    background: linear-gradient(#d5f4f3, #bde9e7);
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0
}

.level-card:nth-child(2) .mission-scene {
    background: linear-gradient(#ffedcf, #ffe0af)
}

.level-card:nth-child(3) .mission-scene {
    background: linear-gradient(#e9e5ff, #d7d1f9)
}

.scene-sun {
    position: absolute;
    top: 40px;
    right: 35px;
    width: 38px;
    height: 38px;
    background: #fff5c1;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #fff4c02b
}

.level-card:nth-child(2) .scene-sun {
    background: #ffd88c;
    box-shadow: 0 0 0 8px #ffce6c27
}

.level-card:nth-child(3) .scene-sun {
    background: #fff9df
}

.scene-cloud {
    position: absolute;
    width: 62px;
    height: 12px;
    background: #fffc;
    border-radius: 20px;
    left: 29px;
    top: 62px
}

.scene-cloud:before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 11px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: inherit
}

.scene-cloud:after {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: inherit
}

.scene-cloud.cloud-small {
    left: auto;
    right: 17px;
    top: 113px;
    transform: scale(.6);
    opacity: .75
}

.mini-island {
    position: absolute;
    left: calc(50% - 80px);
    bottom: 20px;
    width: 160px;
    height: 33px;
    background: linear-gradient(#83c98c 5%, #75bd7b 65%, #c79c62 65%, #b78958 85%, #936d4b 85%);
    border-radius: 50%;
    box-shadow: 0 9px 0 -2px #a37c56, 0 21px 12px -10px #40847744;
    transform: rotate(-4deg);
    z-index: -1
}

.level-card:nth-child(2) .mini-island {
    background: linear-gradient(#efcb7e 0%, #e2b766 65%, #cf9758 65%, #bd864e 85%, #a37448 85%);
    box-shadow: 0 9px 0 -2px #b48351, 0 21px 12px -10px #be9a5444
}

.level-card:nth-child(3) .mini-island {
    background: linear-gradient(#b4a3e3 0%, #9f8ed0 65%, #ad95c4 65%, #997fb7 85%, #80699f 85%);
    box-shadow: 0 9px 0 -2px #9679b2, 0 21px 12px -10px #74649544
}

.mission-scene .level-art {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    height: 101px;
    margin: 0;
    gap: 5px;
    z-index: 1;
    isolation: auto;
    animation: prop-float 5s ease-in-out infinite
}

.level-card:nth-child(2) .level-art {
    animation-delay: -1.5s
}

.level-card:nth-child(3) .level-art {
    animation-delay: -3s
}

.level-art:before {
    display: none
}

.level-art img {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 7px 3px #24636a23)
}

.level-art img:first-child {
    transform: rotate(-14deg) translateY(2px)
}

.level-art img:last-child {
    transform: rotate(11deg) translateY(-7px)
}

.level-art .art-arrow {
    display: flex;
    width: 20px;
    justify-content: center;
    color: #bb8045;
    font-size: 25px
}

.card-mini {
    height: 82px;
    width: 58px;
    border: 4px solid #fffd;
    border-radius: 11px;
    box-shadow: 0 5px 0 #b4a1ce44, 0 9px 9px #665d7f22;
    background: #6e8dd4;
    color: #fff4ac;
    font-size: 34px;
    transform: rotate(-18deg) translateY(-4px);
    flex-shrink: 0
}

.card-mini.second {
    height: 82px;
    width: 58px;
    background: #fff9e7;
    transform: rotate(2deg);
    margin-top: 7px;
    margin-left: -16px
}

.card-mini.second img {
    height: 45px;
    width: 45px;
    transform: none
}

.card-mini.third {
    display: grid;
    transform: rotate(20deg);
    background: #a080cd;
    margin-left: -17px
}

.mission-copy {
    display: block;
    padding: 18px 20px 0;
    flex: 1
}

.mission-copy .mission-category {
    display: block;
    font-size: 9px;
    color: #2494a1;
    letter-spacing: 1.4px;
    font-weight: 900;
    margin-bottom: 5px
}

.level-card:nth-child(2) .mission-category {
    color: #cf8a3d
}

.level-card:nth-child(3) .mission-category {
    color: #9272c3
}

.level-card h3 {
    font-size: 25px;
    color: #224a60;
    line-height: 1.1;
    letter-spacing: -.4px;
    margin: 0
}

.mission-copy p {
    font-size: 12px;
    line-height: 1.6;
    color: #678393;
    margin: 8px 0 17px;
    max-width: none
}

.level-bottom {
    padding: 13px 0;
    margin: 0 20px;
    border-top: 1px solid #e5eff2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    gap: 10px
}

.level-bottom>span:first-child {
    font-size: 10px;
    color: #7a94a2;
    gap: 4px;
    font-weight: 700
}

.level-play {
    padding: 6px 11px;
    border-radius: 8px;
    background: #e6f6f7;
    color: #0d8698;
    gap: 6px;
    min-height: 31px;
    font-size: 11px
}

.level-card:nth-child(2) .level-play {
    background: #fff0d9;
    color: #b77329
}

.level-card:nth-child(3) .level-play {
    background: #f0eafa;
    color: #8264b4
}

.level-bottom svg {
    width: 13px;
    height: 13px
}

.symbol-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 29px 0 32px;
    background: linear-gradient(110deg, #fff5d7, #fff9e9);
    border: 1.5px solid #f3e6bf;
    border-radius: 21px;
    padding: 19px 25px;
    box-shadow: 0 4px 0 #ecddb62b
}

.ribbon-title {
    display: flex;
    align-items: center;
    gap: 14px
}

.ribbon-star {
    font-size: 32px;
    color: #e4ac32;
    transform: rotate(12deg)
}

.ribbon-title h2 {
    font-size: 23px;
    line-height: 1.1;
    color: #755829
}

.ribbon-title p {
    font-size: 11px;
    color: #9c8256;
    margin-top: 5px
}

.ribbon-symbols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    max-width: 410px;
    width: 46%
}

.ribbon-symbols button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border-radius: 12px;
    transition: transform .22s
}

.ribbon-symbols button:hover {
    transform: translateY(-5px)
}

.ribbon-symbols img {
    height: 49px;
    width: 49px
}

.ribbon-symbols span {
    font-size: 8px;
    line-height: 1.2;
    color: #937547;
    text-align: center;
    font-weight: 800
}

.site-footer {
    max-width: 1216px;
    margin: 0 auto;
    padding: 19px 0 25px;
    border-top: 1px solid #dcecf2;
    gap: 20px;
    font-size: 10px;
    color: #819aa8
}

.site-footer b {
    font-family: Baloo;
    font-size: 23px;
    color: #42768a
}

.site-footer button,
.site-footer .download-link {
    font-size: 10px;
    color: #608396
}

.site-footer>div {
    flex-wrap: wrap
}

.site-footer button:hover,
.download-link:hover {
    color: #0b8294
}

/* Each mission receives its own accent while keeping the same stable layout. */
body[data-level="2"] {
    --accent: #c57c2e;
    --accent-soft: #fff4e2
}

body[data-level="3"] {
    --accent: #8265bd;
    --accent-soft: #f2ebfc
}

#game-view {
    padding-top: 4px
}

.game-breadcrumb {
    margin: 22px 0
}

.text-button {
    color: #528093;
    font-size: 12px
}

.text-button:hover {
    color: #d2892e
}

.level-steps {
    gap: 7px
}

.step {
    background: #fff;
    border: 1.5px solid #d7e7ed;
    border-radius: 10px;
    box-shadow: 0 3px 0 #dce9ef;
    min-width: 47px;
    min-height: 40px;
    padding: 7px 13px;
    color: #7096a6
}

.step.current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 3px 0 color-mix(in srgb, var(--accent), #16424d 25%)
}

.game-heading {
    margin-bottom: 20px
}

.game-heading .eyebrow {
    color: var(--accent);
    font-size: 10px
}

.game-heading h1 {
    font-size: 42px;
    line-height: 1.1;
    margin: 9px 0;
    color: #22475c
}

.game-heading p {
    font-size: 14px;
    color: #658394
}

.game-stats {
    padding: 12px 17px;
    border: 1.5px solid #dce9ef;
    border-radius: 18px;
    box-shadow: 0 4px 0 #d5e5ed66;
    gap: 20px;
    background: #fff
}

.game-stats b {
    font-family: Baloo;
    font-size: 25px;
    line-height: 1.1;
    color: #28546a
}

.game-stats small {
    font-size: 10px;
    color: #7998a5
}

.game-stats [data-icon] {
    color: #eab341
}

.game-stats>div:nth-child(2) [data-icon] {
    color: var(--accent)
}

.game-stats .icon-button {
    width: 38px;
    height: 38px
}

.game-progress {
    height: 9px;
    background: #dcebf0;
    border: 2px solid #dcebf0;
    margin-bottom: 24px
}

.game-progress>span {
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent), white 30%));
    box-shadow: inset 0 1px 0 #fff5
}

.game-surface {
    padding: 0 25px 24px;
    border-radius: 26px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #dfeaf0, 0 7px 0 #dce9ef88;
    background: #fff
}

.surface-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 2px 18px;
    margin-bottom: 21px;
    border-bottom: 1px dashed #d9e9ed;
    min-height: 98px
}

.buddy-instruction {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0
}

.buddy-instruction>img {
    width: 62px;
    height: 65px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 2px #40798414);
    transform: rotate(-4deg)
}

.buddy-instruction>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.buddy-instruction small {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: var(--accent);
    font-weight: 900
}

.buddy-instruction #play-instruction {
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
    color: #4f758a
}

.surface-toolbar .text-button {
    padding: 8px 11px;
    border: 1px solid #dfecf0;
    border-radius: 9px;
    min-height: 37px;
    font-size: 11px;
    flex-shrink: 0;
    color: #568699
}

.symbol-tray {
    gap: 13px;
    margin-bottom: 25px;
    max-width: 740px
}

.symbol-choice {
    padding: 12px 6px;
    border: 2px solid #e1edf1;
    border-radius: 18px;
    background: #fbfdfe;
    box-shadow: 0 4px 0 #e5edf0;
    gap: 7px
}

.symbol-choice img {
    width: 73px;
    height: 73px
}

.symbol-choice span {
    font-size: 12px;
    color: #51778a
}

.symbol-choice:hover:not(:disabled) {
    border-color: #a4d9e0;
    background: #f2fafb;
    transform: translateY(-4px)
}

.symbol-choice.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 4px 0 color-mix(in srgb, var(--accent), white 35%);
    transform: translateY(-4px)
}

.symbol-choice.done {
    opacity: .4
}

.symbol-choice.done:after {
    background: var(--accent)
}

.slots-grid {
    gap: 13px;
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

.drop-slot {
    display: flex;
    min-height: 257px;
    padding: 18px 12px;
    border: 2px dashed #bddae3;
    border-radius: 19px;
    background: linear-gradient(#f7fcfd, #edf8fb);
    box-shadow: 0 3px 0 #e2edf0;
    gap: 0
}

.slot-art {
    margin: 14px 0;
    width: 68px;
    height: 68px;
    border: 2px dashed #c2dce5;
    background: #e8f4f8;
    color: #99c5d2;
    font-size: 29px;
    border-radius: 18px
}

.slot-art img {
    width: 68px;
    height: 68px
}

.sila-tag {
    color: #6d9aa9;
    font-size: 10px;
    letter-spacing: 1.1px
}

.drop-slot .sila-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4a7387;
    margin: 0;
    font-weight: 700
}

.drop-slot:hover:not(:disabled),
.drop-slot.drag-over {
    border-color: var(--accent);
    background: #e6f6f9;
    transform: translateY(-3px)
}

.drop-slot.done {
    border: 2px solid #78c3a3;
    background: #effbf3;
    box-shadow: 0 3px 0 #cae7d5
}

.drop-slot.done .slot-art {
    background: none;
    border: 0
}

.matched-check {
    right: 10px;
    top: 10px;
    background: #3daa81;
    color: white;
    border-radius: 50%;
    height: 19px;
    width: 19px;
    display: grid;
    place-items: center
}

.feedback {
    border: 1px solid #dcecf2;
    background: #f0f8fc;
    padding: 14px 17px;
    border-radius: 13px;
    min-height: 58px;
    color: #578197;
    font-size: 12px;
    margin-top: 24px
}

.feedback.correct {
    background: #effbf0;
    border-color: #cae7ce;
    color: #438b58
}

.feedback.wrong {
    background: #fff6e4;
    border-color: #f1dfb5;
    color: #9d743a
}

.game-bottom {
    margin: 21px 0 30px
}

.game-bottom p {
    font-size: 11px;
    color: #8099a7
}

.game-bottom p svg {
    color: #dfa144
}

.scenario-grid {
    gap: 13px
}

.scenario-card {
    background: #fffcf6;
    border: 2px solid #f0e4d2;
    border-radius: 16px;
    padding: 18px;
    min-height: 109px;
    box-shadow: 0 4px 0 #efe4d34d;
    gap: 12px
}

.scenario-card:hover:not(:disabled) {
    border-color: #d9b47c;
    background: #fff5e1;
    transform: translateY(-2px)
}

.scenario-number {
    height: 37px;
    width: 37px;
    border-radius: 12px;
    background: #ffedc9;
    color: #b68642;
    font-family: Baloo;
    font-size: 17px
}

.scenario-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #796b53
}

.scenario-card.done {
    background: #f2f9ee;
    border-color: #a6ce93
}

.scenario-card .pair-label {
    font-size: 11px;
    margin-top: 7px;
    color: #71975f
}

.memory-note {
    font-size: 12px;
    color: #9d8aaf;
    margin: 0 0 18px
}

.memory-grid {
    gap: 15px
}

.memory-card {
    min-height: 215px
}

.memory-face {
    border-radius: 18px;
    padding: 13px 11px
}

.memory-front {
    background: radial-gradient(circle at 25% 20%, #b7a1e3, transparent 50%), repeating-linear-gradient(45deg, transparent, transparent 20px, #ffffff07 20px, #ffffff07 21px), linear-gradient(145deg, #9b84cf, #8065b7);
    border: 4px solid #f5efff;
    box-shadow: 0 5px 0 #c9b9e6, 0 8px 15px #755c9912;
    color: #fff2b3;
    gap: 13px
}

.memory-front .memory-emblem {
    width: 63px;
    height: 63px;
    background: #ffffff0a;
    border: 2px solid #d7c5ef7a;
    font-size: 42px;
    transform: rotate(-8deg)
}

.memory-front small {
    font-family: Baloo;
    font-size: 12px;
    letter-spacing: 2.5px;
    color: #f0e8ff;
    line-height: 1
}

.memory-card:nth-child(3n+1) .memory-front {
    background: radial-gradient(circle at 25% 20%, #b7a1e3, transparent 60%), #9275c5
}

.memory-card:hover:not(.flipped) .memory-front {
    filter: brightness(1.07)
}

.memory-back {
    background: #fffef9;
    border: 2px solid #e6d8f1;
    box-shadow: 0 5px 0 #e2d6ed
}

.memory-back img {
    width: 78px;
    height: 78px
}

.memory-back strong {
    font-size: 12px;
    line-height: 1.5;
    color: #5d5273
}

.memory-back .memory-sila {
    font-family: Baloo;
    font-size: 33px;
    color: #ab8e5b
}

.memory-back small {
    font-size: 10px;
    color: #9e8da9
}

.memory-card.done .memory-back {
    background: #f2fbef;
    border-color: #a4d091;
    box-shadow: 0 5px 0 #b2d4a5
}

.memory-card.done .memory-back:after {
    background: #83b96a;
    color: #fff;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: grid;
    place-items: center;
    font-size: 12px
}

.explore-heading h1 {
    font-size: 41px;
    color: #28556d
}

.explore-heading p {
    font-size: 14px
}

.library-card {
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dce9ef, 0 4px 0 #dce9ef7a;
    border-radius: 21px;
    padding: 25px;
    grid-template-columns: 94px 1fr 1fr;
    gap: 25px
}

.library-card>img {
    width: 94px;
    height: 94px
}

.library-card h2 {
    font-size: 25px;
    color: #285b72
}

.library-card .principle {
    font-size: 14px
}

.library-example {
    border-color: #dfedf0;
    font-size: 12px
}

.library-example b {
    color: #c39445
}

.explore-cta {
    background: linear-gradient(120deg, #d8f4f8, #e9f8fc);
    border: 2px solid white;
    box-shadow: 0 5px 0 #d9eaf0;
    gap: 20px;
    padding: 20px 25px;
    overflow: hidden
}

.explore-cta>img {
    width: 106px;
    height: 113px;
    object-fit: contain;
    transform: rotate(-5deg)
}

.explore-cta h2 {
    font-size: 29px
}

.explore-cta p {
    font-size: 13px
}

.symbol-detail {
    text-align: center
}

.symbol-detail>img {
    width: 111px;
    height: 111px;
    margin: 0 auto 13px;
    filter: drop-shadow(0 6px 3px #344b5915)
}

.symbol-detail .eyebrow {
    justify-content: center;
    color: #1c8ea1
}

.symbol-detail h2 {
    font-size: 31px;
    padding: 0;
    margin-top: 8px
}

.symbol-detail .symbol-principle {
    font-size: 15px;
    line-height: 1.55;
    color: #4c7589;
    font-weight: 800;
    margin: 12px 0 18px
}

.symbol-detail .symbol-meaning {
    text-align: left;
    font-size: 13px;
    color: #608293;
    line-height: 1.65
}

.symbol-example {
    background: #fff6df;
    padding: 15px 17px;
    border-radius: 13px;
    text-align: left;
    margin: 15px 0
}

.symbol-example strong {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: #b59148;
    margin-bottom: 6px
}

.symbol-example p {
    font-size: 13px;
    color: #8c7852
}

.symbol-detail .dialog-actions {
    flex-wrap: wrap
}

dialog {
    border: 3px solid white;
    border-radius: 28px;
    background: linear-gradient(#faffff, #fff);
    box-shadow: 0 7px 0 #7b9aa024, 0 30px 100px #0f415247;
    width: min(560px, calc(100% - 28px))
}

dialog::backdrop {
    background: #173d527d;
    backdrop-filter: blur(7px)
}

.dialog-shell {
    padding: 34px
}

.dialog-shell h2 {
    font-size: 32px;
    color: #28536b
}

.dialog-subtitle {
    font-size: 13px
}

.dialog-close {
    width: 37px;
    height: 37px;
    background: #f2f9fb;
    border: 1.5px solid #dcebf0
}

.help-list li {
    border-color: #e6eff2
}

.help-list .help-no {
    background: #e4f6f9;
    color: #1c95a4;
    font-family: Baloo;
    font-size: 19px;
    box-shadow: 0 3px 0 #cce9ee
}

.help-note {
    background: #eef7fa;
    color: #608596
}

.victory>img {
    width: 139px;
    height: 139px
}

.victory h2 {
    font-size: 34px;
    color: #2b6479
}

.victory .eyebrow {
    color: #1b9b9d
}

.result-stats {
    background: #e9f8f8;
    border: 1px solid #d0edef;
    padding: 17px
}

.result-stats b {
    font-family: Baloo;
    font-size: 35px;
    line-height: 1.1;
    color: #278f9d
}

.result-stars {
    font-size: 39px;
    color: #eaba3d;
    filter: drop-shadow(0 2px 0 #be91283b)
}

.result-hint {
    font-size: 12px
}

.profile-avatar {
    background: #e4f6fa;
    color: #4292a6;
    box-shadow: 0 4px 0 #c8e5ed;
    overflow: hidden
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit
}

.toast {
    background: #28586e;
    color: #fff;
    box-shadow: 0 5px 0 #173b4c22, 0 14px 30px #173b4c22;
    border: 1px solid #fff3
}

.score-pop {
    animation: score-pop .45s ease
}

.surface-complete {
    animation: complete-glow .8s ease
}

@keyframes mascot-bob {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg)
    }

    50% {
        transform: translateY(-7px) rotate(1deg)
    }
}

@keyframes cloud-drift {

    0%,
    100% {
        translate: 0
    }

    50% {
        translate: 14px
    }
}

@keyframes prop-float {

    0%,
    100% {
        translate: 0
    }

    50% {
        translate: 0 -4px
    }
}

@keyframes score-pop {
    50% {
        transform: scale(1.27);
        color: #e6a637
    }
}

@keyframes complete-glow {
    50% {
        box-shadow: 0 0 0 4px #8ad3ad88, 0 7px 0 #dce9ef88
    }
}

@media(min-width:1440px) {
    .hero {
        padding-top: 25px;
        padding-bottom: 25px
    }

    .world {
        height: 430px
    }

    .hero h1 {
        font-size: 70px
    }

    .hero-mascot {
        width: 235px
    }

    .mascot-greeting {
        bottom: 247px
    }
}

@media(max-width:1100px) {
    .header-inner {
        padding-inline: 25px;
        gap: 16px
    }

    main {
        padding-inline: 25px
    }

    .header-inner nav {
        gap: 3px
    }

    .nav-link {
        padding-inline: 12px
    }

    .hero {
        padding-left: 32px;
        padding-right: 15px;
        grid-template-columns: 1fr 1fr;
        min-height: 430px
    }

    .hero h1 {
        font-size: 57px
    }

    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: .8px
    }

    .hero-copy>p {
        font-size: 14px
    }

    .hero-actions {
        gap: 10px
    }

    .hero-actions .primary {
        font-size: 13px;
        padding-inline: 18px;
        min-height: 51px
    }

    .hero-actions .quiet {
        font-size: 12px;
        padding-inline: 5px
    }

    .hero-mascot {
        width: 184px;
        bottom: 5px
    }

    .mascot-greeting {
        bottom: 199px;
        right: 0;
        padding: 9px 10px
    }

    .mascot-greeting strong {
        font-size: 15px
    }

    .mascot-greeting span {
        font-size: 8px
    }

    .world {
        height: 375px
    }

    .world-caption {
        top: 0;
        font-size: 7px;
        padding: 7px 9px
    }

    .level-grid {
        gap: 20px
    }

    .mission-copy {
        padding: 17px 18px 0
    }

    .level-card h3 {
        font-size: 23px
    }

    .level-bottom {
        margin-inline: 18px
    }

    .ribbon-title h2 {
        font-size: 21px
    }

    .ribbon-symbols {
        gap: 7px;
        width: 48%
    }

    .site-footer {
        margin-inline: 25px
    }

    .drop-slot {
        padding: 17px 8px;
        min-height: 265px
    }

    .drop-slot .sila-text {
        font-size: 12px
    }

    .symbol-choice img {
        width: 65px;
        height: 65px
    }

    .library-card {
        grid-template-columns: 78px 1fr 1fr;
        gap: 20px
    }

    .library-card>img {
        width: 78px;
        height: 78px
    }

    .library-card h2 {
        font-size: 22px
    }
}

@media(max-width:850px) {
    .header-inner {
        padding: 16px 22px
    }

    .grade-label {
        display: none
    }

    .header-tools {
        gap: 6px
    }

    .header-tools .icon-button {
        height: 36px;
        width: 36px
    }

    .brand {
        font-size: 32px
    }

    .brand-mark {
        height: 40px;
        width: 40px;
        font-size: 29px
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        padding-left: 25px;
        min-height: 397px
    }

    .hero h1 {
        font-size: 49px
    }

    .hero-badge {
        padding: 8px 10px;
        max-width: 95%;
        font-size: 7px !important;
        letter-spacing: .6px !important;
        gap: 6px
    }

    .hero-copy>p {
        font-size: 13px
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 21px 0 15px
    }

    .hero-actions .primary {
        min-height: 47px;
        font-size: 13px
    }

    .hero-actions .quiet {
        padding-block: 8px;
        min-height: 35px
    }

    .hero-note {
        font-size: 9px
    }

    .hero-mascot {
        width: 158px;
        right: -2px;
        bottom: 9px
    }

    .mascot-greeting {
        bottom: 172px;
        right: 1px;
        padding: 8px 10px
    }

    .mascot-greeting strong {
        font-size: 14px
    }

    .mascot-greeting span {
        font-size: 8px
    }

    .world {
        height: 340px
    }

    .world-caption {
        top: 0;
        left: 0;
        letter-spacing: .7px;
        font-size: 7px
    }

    .world-controls {
        font-size: 8px;
        width: 65%;
        gap: 4px;
        bottom: 0
    }

    .world-controls .icon-button {
        height: 27px;
        width: 27px;
        font-size: 20px
    }

    .world:before {
        inset: 30px 0
    }

    .cloud-one {
        left: 41%;
        top: 67px
    }

    .cloud-two {
        top: 50px;
        right: 5px
    }

    .section-heading h2 {
        font-size: 27px
    }

    .section-heading>div>p {
        font-size: 11px
    }

    .overall-progress {
        min-width: 0;
        padding: 10px 12px;
        gap: 8px
    }

    .overall-progress b {
        font-size: 10px
    }

    .overall-progress small {
        font-size: 9px
    }

    .level-grid {
        gap: 14px
    }

    .mission-scene {
        height: 156px
    }

    .mission-copy {
        padding: 15px 15px 0
    }

    .level-card h3 {
        font-size: 21px
    }

    .mission-copy p {
        font-size: 11px
    }

    .mission-copy .mission-category {
        font-size: 8px
    }

    .level-top {
        left: 11px;
        right: 11px;
        top: 11px
    }

    .level-number {
        font-size: 8px
    }

    .level-state {
        font-size: 8px
    }

    .level-state.star-status {
        font-size: 12px
    }

    .level-bottom {
        margin-inline: 15px;
        font-size: 10px;
        gap: 5px
    }

    .level-bottom>span:first-child {
        font-size: 9px
    }

    .level-play {
        font-size: 10px;
        padding: 6px 8px
    }

    .level-art img {
        width: 65px;
        height: 65px
    }

    .mission-scene .level-art {
        top: 37px;
        height: 96px
    }

    .mini-island {
        width: 137px;
        left: calc(50% - 68px);
        bottom: 17px;
        height: 28px
    }

    .card-mini {
        height: 72px;
        width: 50px;
        font-size: 31px
    }

    .card-mini.second {
        height: 72px;
        width: 50px
    }

    .card-mini.second img {
        height: 40px;
        width: 40px
    }

    .scene-cloud {
        left: 15px;
        top: 53px;
        transform: scale(.8)
    }

    .scene-sun {
        right: 23px;
        top: 39px;
        width: 32px;
        height: 32px
    }

    .scene-cloud.cloud-small {
        right: 6px
    }

    .symbol-ribbon {
        padding: 18px 19px;
        gap: 18px
    }

    .ribbon-star {
        font-size: 25px
    }

    .ribbon-title {
        gap: 9px
    }

    .ribbon-title h2 {
        font-size: 20px
    }

    .ribbon-title p {
        font-size: 10px
    }

    .ribbon-symbols {
        width: 49%;
        gap: 7px
    }

    .ribbon-symbols img {
        width: 44px;
        height: 44px
    }

    .ribbon-symbols span {
        font-size: 7px
    }

    .game-heading h1 {
        font-size: 36px
    }

    .game-heading p {
        font-size: 13px
    }

    .game-stats {
        padding: 10px 12px;
        gap: 12px
    }

    .game-stats b {
        font-size: 22px
    }

    .game-stats small {
        font-size: 9px
    }

    .game-surface {
        padding: 0 19px 20px
    }

    .buddy-instruction #play-instruction {
        font-size: 12px
    }

    .buddy-instruction>img {
        height: 57px;
        width: 54px
    }

    .surface-toolbar {
        gap: 12px
    }

    .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .drop-slot,
    .drop-slot:last-child {
        display: grid;
        grid-template-columns: 64px 1fr;
        align-content: center;
        column-gap: 13px;
        text-align: left;
        min-height: 145px;
        padding: 16px
    }

    .drop-slot .slot-art {
        grid-column: 1;
        grid-row: 1/3;
        width: 62px;
        height: 62px;
        margin: 0
    }

    .slot-art img {
        width: 62px;
        height: 62px
    }

    .drop-slot .sila-tag {
        grid-column: 2;
        align-self: end;
        font-size: 9px
    }

    .drop-slot .sila-text {
        grid-column: 2;
        align-self: start;
        margin-top: 6px;
        font-size: 12px
    }

    .drop-slot:last-child {
        grid-column: 1/-1;
        min-height: 112px
    }

    .memory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px
    }

    .memory-card {
        min-height: 213px
    }

    .memory-face {
        padding: 12px 9px
    }

    .memory-back strong {
        font-size: 11px
    }

    .memory-back img {
        width: 66px;
        height: 66px
    }

    .scenario-card {
        padding: 15px;
        min-height: 110px
    }

    .scenario-card p {
        font-size: 12px
    }

    .library-card {
        grid-template-columns: 78px 1fr;
        gap: 20px
    }

    .library-example {
        grid-column: 2;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid #dfedf0
    }

    .explore-cta h2 {
        font-size: 25px
    }
}

@media(max-width:650px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px 10px
    }

    .brand {
        font-size: 31px;
        gap: 9px
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        font-size: 29px;
        border-radius: 13px
    }

    .brand small {
        font-size: 6.5px;
        letter-spacing: .9px
    }

    .header-tools {
        margin-left: auto;
        gap: 7px
    }

    .header-tools .icon-button {
        width: 35px;
        height: 35px
    }

    .fullscreen-button {
        display: none
    }

    .header-inner nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding-top: 8px;
        border-top: 1px solid #e0eff5;
        justify-content: center;
        gap: 5px
    }

    .nav-link {
        font-size: 11px;
        padding: 8px 16px;
        border-radius: 9px
    }

    .header-tools .icon-button svg {
        width: 16px;
        height: 16px
    }

    main {
        padding: 0 18px
    }

    .hero {
        margin-top: 13px;
        grid-template-columns: 1fr;
        border-radius: 26px;
        padding: 27px 21px 8px;
        min-height: 0;
        gap: 0
    }

    .hero-copy {
        text-align: center;
        padding: 0;
        min-width: 0
    }

    .hero-badge {
        margin: auto;
        max-width: none;
        font-size: 8px !important;
        letter-spacing: .7px !important;
        padding: 8px 10px
    }

    .hero h1 {
        font-size: clamp(44px, 10.8vw, 61px);
        line-height: 1.02;
        letter-spacing: -.8px;
        margin: 19px 0 14px
    }

    .hero-copy>p {
        font-size: 14px;
        line-height: 1.55
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 11px;
        margin: 21px 0 17px;
        flex-wrap: wrap
    }

    .hero-actions .primary {
        min-height: 48px;
        font-size: 13px;
        padding: 12px 18px
    }

    .hero-actions .quiet {
        font-size: 11px;
        padding: 10px 5px;
        min-height: 42px;
        gap: 7px
    }

    .hero-actions .quiet svg {
        width: 17px;
        height: 17px
    }

    .hero-note {
        font-size: 9px;
        justify-content: center;
        gap: 5px
    }

    .hero-art {
        max-width: 420px;
        justify-self: center;
        margin: 21px 0 5px
    }

    .world {
        height: 290px
    }

    .world-caption {
        top: 6px;
        left: 2px;
        letter-spacing: .9px;
        font-size: 7px;
        transform: rotate(-6deg);
        padding: 6px 9px
    }

    .world:before {
        inset: 25px -10px 20px
    }

    .world-controls {
        width: 69%;
        bottom: 2px;
        font-size: 8px;
        gap: 7px
    }

    .world-controls .icon-button {
        width: 27px;
        height: 27px;
        font-size: 20px
    }

    .hero-mascot {
        width: 145px;
        bottom: 7px;
        right: -12px
    }

    .mascot-greeting {
        right: -7px;
        bottom: 161px;
        padding: 8px 10px;
        border-radius: 12px 12px 4px 12px;
        border-width: 1px
    }

    .mascot-greeting strong {
        font-size: 14px
    }

    .mascot-greeting span {
        font-size: 7.5px
    }

    .cloud-one {
        top: 127px;
        left: auto;
        right: -37px;
        opacity: .6
    }

    .cloud-two {
        top: 260px;
        right: auto;
        left: -38px;
        opacity: .6
    }

    .spark-one {
        left: 8%;
        bottom: 260px;
        font-size: 25px
    }

    .spark-two {
        right: 14px;
        top: 100px;
        font-size: 24px
    }

    .hero-waves {
        height: 50px
    }

    .adventures {
        padding-top: 29px
    }

    .section-heading {
        gap: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 19px
    }

    .section-heading h2 {
        font-size: 28px;
        max-width: none;
        line-height: 1.15
    }

    .section-heading .eyebrow {
        font-size: 8px;
        letter-spacing: 1.3px
    }

    .section-heading>div>p {
        font-size: 11px;
        margin-top: 5px
    }

    .overall-progress {
        width: 100%;
        padding: 9px 12px;
        gap: 10px;
        min-width: 0;
        border-radius: 13px
    }

    .overall-progress b {
        font-size: 11px
    }

    .overall-progress small {
        font-size: 10px
    }

    .progress-ring {
        height: 35px;
        width: 35px
    }

    .progress-ring>span {
        height: 27px;
        width: 27px;
        font-size: 9px
    }

    .level-grid {
        grid-template-columns: 1fr;
        gap: 21px
    }

    .level-card,
    .level-card:nth-child(2),
    .level-card:nth-child(3) {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        border-radius: 20px;
        padding: 0;
        column-gap: 0;
        min-height: 204px
    }

    .level-top {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        left: auto;
        right: auto;
        top: auto;
        padding: 14px 15px 0;
        gap: 5px;
        z-index: 3
    }

    .level-number {
        background: #f2f8fa;
        color: #638998;
        border: 0;
        padding: 3px 6px;
        font-size: 8px;
        box-shadow: none
    }

    .level-state {
        font-size: 8px;
        color: #7a9aa8
    }

    .level-state.star-status {
        font-size: 12px;
        letter-spacing: 1px
    }

    .mission-scene {
        grid-column: 1;
        grid-row: 1/-1;
        align-self: stretch;
        height: auto;
        min-height: 204px;
        border-radius: 17px 0 0 17px
    }

    .scene-sun {
        right: 15px;
        top: 34px;
        width: 29px;
        height: 29px;
        box-shadow: 0 0 0 6px #fff4c02b
    }

    .scene-cloud {
        left: -2px;
        top: 61px;
        transform: scale(.65)
    }

    .scene-cloud.cloud-small {
        right: -13px;
        top: 161px;
        transform: scale(.55)
    }

    .mini-island {
        width: 103px;
        left: calc(50% - 51px);
        height: 24px;
        bottom: 45px;
        transform: rotate(-8deg)
    }

    .mission-scene .level-art {
        top: calc(50% - 43px);
        height: 84px;
        left: 0;
        right: 0;
        gap: 0
    }

    .level-art img {
        width: 53px;
        height: 53px;
        flex-shrink: 0
    }

    .level-art img:first-child {
        transform: rotate(-19deg) translate(5px, 7px)
    }

    .level-art img:last-child {
        transform: rotate(13deg) translate(-3px, -4px)
    }

    .level-art .art-arrow {
        position: absolute;
        left: 46px;
        top: 67px;
        font-size: 15px;
        width: 15px;
        z-index: 2
    }

    .card-mini {
        height: 65px;
        width: 44px;
        font-size: 29px;
        transform: rotate(-15deg) translate(0, -6px)
    }

    .card-mini.second {
        height: 65px;
        width: 44px;
        transform: rotate(12deg) translate(-2px, 0);
        margin-left: -15px;
        margin-top: 5px
    }

    .card-mini.second img {
        width: 35px;
        height: 35px;
        transform: none
    }

    .card-mini.third {
        display: none
    }

    .mission-copy {
        grid-column: 2;
        grid-row: 2;
        padding: 12px 15px 0;
        align-self: center
    }

    .mission-copy .mission-category {
        font-size: 7px;
        letter-spacing: 1px;
        margin-bottom: 5px
    }

    .level-card h3 {
        font-size: 23px;
        line-height: 1.1
    }

    .mission-copy p {
        font-size: 11px;
        line-height: 1.5;
        margin: 7px 0 11px
    }

    .level-bottom {
        grid-column: 2;
        grid-row: 3;
        padding: 9px 0;
        margin: 0 15px;
        gap: 7px
    }

    .level-bottom>span:first-child {
        font-size: 8px;
        gap: 3px
    }

    .level-bottom>span:first-child svg {
        height: 11px;
        width: 11px
    }

    .level-play {
        font-size: 9px;
        gap: 4px;
        padding: 5px 8px;
        min-height: 28px
    }

    .level-play svg {
        width: 11px;
        height: 11px
    }

    .map-trail {
        width: 180px;
        height: 100%;
        top: 0;
        left: -30px;
        opacity: .6;
        transform: rotate(12deg)
    }

    .symbol-ribbon {
        flex-direction: column;
        gap: 17px;
        align-items: stretch;
        padding: 21px 19px;
        margin: 26px 0 28px;
        border-radius: 20px
    }

    .ribbon-title {
        gap: 11px
    }

    .ribbon-title h2 {
        font-size: 23px
    }

    .ribbon-title p {
        font-size: 11px
    }

    .ribbon-star {
        font-size: 29px
    }

    .ribbon-symbols {
        width: 100%;
        max-width: none;
        gap: 9px
    }

    .ribbon-symbols img {
        width: 48px;
        height: 48px
    }

    .ribbon-symbols span {
        font-size: 8px
    }

    .site-footer {
        margin: 0 18px;
        padding: 17px 0 22px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 9px
    }

    .site-footer>span {
        gap: 8px
    }

    .site-footer b {
        font-size: 22px
    }

    .site-footer>div {
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: wrap
    }

    .site-footer button,
    .site-footer .download-link {
        font-size: 9px
    }

    .footer-dot {
        display: none
    }

    .game-breadcrumb {
        margin: 15px 0 18px;
        gap: 7px
    }

    .game-breadcrumb .text-button {
        font-size: 11px
    }

    .step {
        padding: 7px 10px;
        min-height: 36px;
        min-width: 36px;
        font-size: 10px
    }

    .level-steps {
        gap: 6px
    }

    .game-heading {
        gap: 17px;
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 17px
    }

    .game-heading h1 {
        font-size: 36px;
        line-height: 1.1;
        margin: 9px 0 6px
    }

    .game-heading .eyebrow {
        font-size: 8px;
        letter-spacing: 1.1px
    }

    .game-heading p {
        font-size: 12px;
        max-width: none
    }

    .game-stats {
        width: 100%;
        padding: 11px 13px;
        gap: 13px;
        justify-content: flex-start
    }

    .game-stats>div {
        padding-right: 20px
    }

    .game-stats b {
        font-size: 25px
    }

    .game-stats small {
        font-size: 9px
    }

    .game-stats .icon-button {
        height: 35px;
        width: 35px;
        margin-left: auto
    }

    .game-progress {
        height: 8px;
        margin-bottom: 19px
    }

    .game-surface {
        padding: 0 13px 17px;
        border-radius: 21px
    }

    .surface-toolbar {
        gap: 10px;
        padding: 13px 0 15px;
        margin-bottom: 18px;
        min-height: 91px;
        flex-wrap: wrap;
        align-items: center
    }

    .buddy-instruction {
        gap: 9px;
        flex: 1;
        min-width: 170px
    }

    .buddy-instruction>img {
        height: 52px;
        width: 49px
    }

    .buddy-instruction small {
        font-size: 8px;
        letter-spacing: .9px
    }

    .buddy-instruction #play-instruction {
        font-size: 11px;
        line-height: 1.55
    }

    .surface-toolbar .text-button {
        min-height: 31px;
        padding: 6px 8px;
        font-size: 9px;
        gap: 4px;
        align-self: flex-end;
        margin-left: auto
    }

    .surface-toolbar .text-button svg {
        width: 13px;
        height: 13px
    }

    .symbol-tray {
        gap: 6px;
        margin-bottom: 23px
    }

    .symbol-choice {
        padding: 8px 3px 10px;
        gap: 6px;
        border-radius: 12px;
        border-width: 1.5px;
        box-shadow: 0 3px 0 #e0ebef
    }

    .symbol-choice img {
        height: 45px;
        width: 45px
    }

    .symbol-choice span {
        font-size: 9px;
        line-height: 1.25
    }

    .symbol-choice.selected {
        box-shadow: 0 3px 0 color-mix(in srgb, var(--accent), white 35%)
    }

    .symbol-choice.done:after {
        width: 15px;
        height: 15px;
        right: 2px;
        top: 2px;
        font-size: 9px
    }

    .slots-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .drop-slot,
    .drop-slot:last-child {
        min-height: 107px;
        padding: 14px 13px;
        grid-template-columns: 57px minmax(0, 1fr);
        column-gap: 13px;
        border-width: 1.5px;
        border-radius: 15px
    }

    .drop-slot .slot-art,
    .slot-art img {
        width: 57px;
        height: 57px;
        border-radius: 14px
    }

    .drop-slot .sila-tag {
        font-size: 8px
    }

    .drop-slot .sila-text {
        font-size: 12px;
        line-height: 1.5;
        padding-right: 4px;
        margin-top: 5px
    }

    .matched-check {
        width: 16px;
        height: 16px;
        right: 8px;
        top: 8px;
        font-size: 10px
    }

    .feedback {
        padding: 12px 11px;
        font-size: 11px;
        gap: 8px;
        margin-top: 20px;
        border-radius: 12px
    }

    .feedback svg {
        width: 18px;
        height: 18px
    }

    .game-bottom {
        margin: 18px 0 26px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start
    }

    .game-bottom p {
        font-size: 10px;
        line-height: 1.5
    }

    .game-bottom .text-button {
        font-size: 11px
    }

    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .scenario-card {
        min-height: 102px;
        padding: 14px 12px;
        gap: 10px;
        border-width: 1.5px
    }

    .scenario-card p {
        font-size: 12px
    }

    .scenario-number {
        width: 29px;
        height: 29px;
        font-size: 15px;
        border-radius: 9px
    }

    .scenario-card img {
        width: 43px;
        height: 43px
    }

    .scenario-card .pair-label {
        font-size: 9px
    }

    .memory-note {
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 15px
    }

    .memory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px
    }

    .memory-card {
        min-height: 222px
    }

    .memory-face {
        padding: 10px 7px;
        border-radius: 13px
    }

    .memory-front {
        border-width: 3px;
        gap: 10px
    }

    .memory-front .memory-emblem {
        width: 43px;
        height: 43px;
        font-size: 29px;
        border-width: 1px
    }

    .memory-front small {
        font-size: 10px;
        letter-spacing: 1px
    }

    .memory-back strong {
        font-size: 10.5px;
        line-height: 1.5
    }

    .memory-back img {
        height: 57px;
        width: 57px
    }

    .memory-back .memory-sila {
        font-size: 27px
    }

    .memory-back small {
        font-size: 8px
    }

    .memory-card.done .memory-back:after {
        width: 15px;
        height: 15px;
        font-size: 9px;
        top: 6px;
        right: 6px
    }

    .explore-page {
        padding-top: 20px
    }

    .explore-heading {
        margin-top: 18px
    }

    .explore-heading h1 {
        font-size: 34px;
        line-height: 1.15;
        margin-top: 12px
    }

    .explore-heading p {
        font-size: 12px
    }

    .library-card {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 18px;
        gap: 14px;
        border-radius: 19px
    }

    .library-card>img {
        height: 64px;
        width: 64px
    }

    .library-card h2 {
        font-size: 23px;
        margin: 5px 0 7px;
        line-height: 1.1
    }

    .library-card .principle {
        font-size: 12px
    }

    .library-card .eyebrow {
        font-size: 8px
    }

    .library-example {
        grid-column: 1/-1;
        font-size: 12px;
        padding-top: 12px
    }

    .explore-cta {
        gap: 12px;
        padding: 18px;
        flex-wrap: wrap
    }

    .explore-cta>img {
        width: 79px;
        height: 87px
    }

    .explore-cta h2 {
        font-size: 23px;
        line-height: 1.15
    }

    .explore-cta p {
        font-size: 11px;
        line-height: 1.6;
        margin-top: 7px
    }

    .explore-cta .button {
        width: 100%;
        margin-top: 3px
    }

    .dialog-shell {
        padding: 28px 23px
    }

    .dialog-shell h2 {
        font-size: 29px
    }

    .dialog-subtitle {
        font-size: 12px
    }

    .help-list li {
        font-size: 12px
    }

    .help-note {
        font-size: 11px
    }

    .dialog-actions .button {
        font-size: 12px;
        padding-inline: 17px;
        min-height: 46px
    }

    .victory>img {
        width: 115px;
        height: 115px
    }

    .result-stats b {
        font-size: 31px
    }

    .result-hint {
        font-size: 11px
    }

    .symbol-detail>img {
        width: 93px;
        height: 93px
    }

    .symbol-detail .symbol-principle {
        font-size: 13px
    }

    .symbol-detail .symbol-meaning,
    .symbol-example p {
        font-size: 12px
    }
}

@media(max-width:370px) {
    .header-inner {
        padding-inline: 16px
    }

    .brand {
        font-size: 29px
    }

    .brand small {
        font-size: 6px
    }

    .header-tools {
        gap: 5px
    }

    .header-tools .icon-button {
        width: 33px;
        height: 33px
    }

    .header-inner nav {
        gap: 3px
    }

    .nav-link {
        padding-inline: 13px;
        font-size: 10px
    }

    main {
        padding: 0 13px
    }

    .hero {
        padding: 24px 14px 8px;
        border-radius: 23px
    }

    .hero-badge {
        font-size: 6.7px !important;
        letter-spacing: .5px !important;
        padding: 8px 9px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-copy>p {
        font-size: 12px
    }

    .hero-actions {
        gap: 7px;
        flex-wrap: wrap;
        margin-top: 19px
    }

    .hero-actions .primary {
        font-size: 12px;
        padding-inline: 13px
    }

    .hero-actions .quiet {
        font-size: 10px;
        padding-inline: 2px;
        gap: 5px
    }

    .hero-actions .quiet svg {
        width: 15px;
        height: 15px
    }

    .hero-note {
        font-size: 8px
    }

    .world {
        height: 256px
    }

    .hero-mascot {
        width: 126px;
        right: -8px
    }

    .mascot-greeting {
        bottom: 140px;
        right: -5px;
        padding: 7px 8px
    }

    .mascot-greeting strong {
        font-size: 12px
    }

    .mascot-greeting span {
        font-size: 6.5px
    }

    .world-caption {
        font-size: 6px;
        letter-spacing: .6px
    }

    .world-controls {
        font-size: 7px;
        gap: 4px;
        width: 64%
    }

    .world-controls .icon-button {
        width: 24px;
        height: 24px;
        font-size: 18px
    }

    .section-heading h2 {
        font-size: 25px
    }

    .level-card,
    .level-card:nth-child(2),
    .level-card:nth-child(3) {
        grid-template-columns: 98px minmax(0, 1fr);
        min-height: 211px
    }

    .mission-scene {
        min-height: 211px
    }

    .level-top {
        padding: 13px 11px 0
    }

    .mission-copy {
        padding: 10px 11px 0
    }

    .level-card h3 {
        font-size: 21px
    }

    .mission-copy p {
        font-size: 10px
    }

    .level-bottom {
        margin-inline: 11px;
        gap: 5px
    }

    .level-bottom>span:first-child {
        font-size: 7px
    }

    .level-play {
        font-size: 8px;
        padding: 5px 6px;
        gap: 3px
    }

    .level-art img {
        width: 45px;
        height: 45px
    }

    .mini-island {
        width: 87px;
        left: calc(50% - 43px);
        bottom: 52px
    }

    .scene-cloud {
        left: -11px
    }

    .scene-sun {
        right: 12px;
        width: 25px;
        height: 25px
    }

    .level-art .art-arrow {
        left: 39px;
        top: 63px
    }

    .card-mini {
        height: 59px;
        width: 39px;
        font-size: 25px
    }

    .card-mini.second {
        height: 59px;
        width: 39px;
        margin-left: -14px
    }

    .card-mini.second img {
        height: 31px;
        width: 31px
    }

    .ribbon-title h2 {
        font-size: 21px
    }

    .ribbon-symbols {
        gap: 5px
    }

    .ribbon-symbols img {
        width: 43px;
        height: 43px
    }

    .ribbon-symbols span {
        font-size: 7px
    }

    .symbol-ribbon {
        padding: 18px 15px
    }

    .site-footer {
        margin-inline: 13px
    }

    .symbol-choice img {
        width: 39px;
        height: 39px
    }

    .symbol-choice span {
        font-size: 8px
    }

    .symbol-tray {
        gap: 4px
    }

    .game-surface {
        padding-inline: 10px
    }

    .buddy-instruction {
        min-width: 165px
    }

    .surface-toolbar {
        gap: 5px
    }

    .surface-toolbar .text-button {
        margin-top: 2px
    }

    .game-heading h1 {
        font-size: 33px
    }

    .game-breadcrumb .text-button {
        font-size: 10px
    }

    .step {
        min-width: 33px;
        padding-inline: 8px
    }

    .memory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .memory-card {
        min-height: 198px
    }

    .memory-back strong {
        font-size: 11px
    }

    .memory-back img {
        height: 63px;
        width: 63px
    }
}

@media(prefers-reduced-motion:reduce) {

    .hero-mascot,
    .sky-cloud,
    .mission-scene .level-art {
        animation: none
    }
}

.hero-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #38768d;
    font-size: 10px;
    font-weight: 800;
    padding: 12px 0 0;
    margin-top: 5px;
    min-height: 40px;
    text-decoration: underline;
    text-decoration-color: #75b7c7;
    text-underline-offset: 4px
}

.hero-download svg {
    width: 14px;
    height: 14px
}

.hero-download:hover {
    color: #136881
}

.hero-download>span:last-child {
    display: none
}

.download-dialog>.eyebrow {
    color: #248d9e;
    margin: 13px 0 7px
}

.download-dialog-icon {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    background: #e5f6fa;
    border-radius: 17px;
    color: #1990a2;
    box-shadow: 0 4px 0 #cce9ef
}

.download-dialog-icon svg {
    width: 28px;
    height: 28px
}

.download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 15px;
    border: 1.5px solid #cbe5ed;
    background: #f3fbfd;
    border-radius: 15px;
    margin-top: 12px;
    color: #2c637b;
    text-decoration: none;
    box-shadow: 0 3px 0 #d7e9ef;
    transition: transform .2s, background .2s
}

.download-option:hover {
    background: #e7f7fb;
    transform: translateY(-2px)
}

.download-option>span:nth-child(2) {
    flex: 1;
    min-width: 0
}

.download-option strong {
    font-size: 14px;
    display: block
}

.download-option small {
    font-size: 11px;
    line-height: 1.5;
    display: block;
    color: #7897a5;
    margin-top: 4px
}

.download-option>svg {
    height: 20px;
    width: 20px;
    flex-shrink: 0
}

.download-option-icon {
    width: 37px;
    height: 42px;
    background: #dcf1f6;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.download-option-icon svg {
    width: 21px;
    height: 21px
}

.download-option-icon.asset-option {
    background: #ffedc9;
    color: #c5913d
}

@media(max-width:650px) {
    .hero-download {
        font-size: 9px;
        margin-top: 4px;
        padding-top: 10px
    }

    .download-option {
        gap: 10px;
        padding: 15px 12px
    }

    .download-option strong {
        font-size: 12px
    }

    .download-option small {
        font-size: 10px
    }
}