/* Forest Grove — play-first world (html[data-evo-theme="ink"]) */

html[data-evo-theme="ink"] {
    --forest-moss: #85b46d;
    --forest-moss-deep: #517b3f;
    --forest-moss-dim: rgba(133, 180, 109, 0.28);
    --forest-leaf: #9fcf93;
    --forest-bark: #7a5633;
    --forest-bark-deep: #4f341e;
    --forest-cream: #fff6e6;
    --forest-cream-dim: rgba(255, 246, 230, 0.34);
    --forest-sun: #efc270;
    --forest-sun-deep: #c88847;
    --forest-sky: #b9ddbe;
    --forest-bg: #e9f5dd;
    --forest-panel: rgba(255, 244, 221, 0.96);
    --forest-border: rgba(157, 121, 78, 0.36);
    --forest-border-soft: rgba(255, 237, 197, 0.62);
    --forest-radius: 30px;
    --forest-radius-sm: 20px;
    --forest-radius-pill: 999px;
    --forest-shadow: 0 16px 34px rgba(80, 59, 31, 0.22);
    --forest-font: 'Nunito', 'Noto Sans SC', system-ui, sans-serif;
    --forest-display: 'Ma Shan Zheng', 'ZCOOL KuaiLe', 'Fredoka', cursive;
    --forest-hand: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
    --forest-fairy: #cdaef4;
    --forest-fairy-dim: rgba(205, 174, 244, 0.3);
    --forest-mushroom: #e58b7f;
    --forest-mushroom-deep: #b25a4f;
    --forest-lantern: #f7d896;
    --forest-firefly: rgba(255, 241, 176, 0.75);
    --forest-dock-h: 78px;
    --evo-sidebar-w: 100%;
    --evo-cyan: var(--forest-moss);
    --evo-cyan-dim: var(--forest-moss-dim);
    --evo-blue: var(--forest-sky);
    --evo-gold: var(--forest-sun);
    --evo-bg: var(--forest-bg);
    --evo-bg-elevated: rgba(255, 248, 232, 0.98);
    --evo-surface: #f1e2c5;
    --evo-panel: var(--forest-panel);
    --evo-border: var(--forest-border);
    --evo-border-subtle: var(--forest-border-soft);
    --evo-text: #2f2a1c;
    --evo-muted: #5d624b;
    --evo-muted-strong: #3e4a31;
    --evo-radius: var(--forest-radius);
    --evo-radius-sm: var(--forest-radius-sm);
    --evo-font: var(--forest-font);
    --evo-display: var(--forest-display);
    --evo-mono: var(--forest-font);
    --evo-transition: 0.28s cubic-bezier(0.34, 1.25, 0.64, 1);
}

html[data-evo-theme="ink"] body.evo-body {
    font-family: var(--forest-font);
    background-color: var(--forest-bg);
    background-image:
        radial-gradient(ellipse 100% 56% at 50% -10%, rgba(158, 217, 154, 0.11), transparent 62%),
        radial-gradient(ellipse 45% 35% at 95% 90%, rgba(240, 200, 120, 0.08), transparent 55%);
}

html[data-evo-theme="ink"] .evo-app {
    flex-direction: column;
    min-height: 100dvh;
}

/* ── Bottom dock shell (replaces left sidebar) ── */
html[data-evo-theme="ink"] .evo-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0.45rem 0.75rem max(0.55rem, env(safe-area-inset-bottom));
    border: none;
    border-top: 1px solid var(--forest-border-soft);
    border-radius: 26px 26px 0 0;
    background:
        linear-gradient(180deg, rgba(8, 18, 12, 0.72), rgba(8, 18, 12, 0.96)),
        url('/images/themes/forest/fairy-dock-wood.svg?v=3') center / cover;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
    z-index: 60;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

html[data-evo-theme="ink"] .evo-sidebar-brand,
html[data-evo-theme="ink"] .evo-sidebar-utils,
html[data-evo-theme="ink"] .evo-sidebar-footer,
html[data-evo-theme="ink"] .hub-legal-strip,
html[data-evo-theme="ink"] .evo-nav-menu-btn,
html[data-evo-theme="ink"] #hubNavDrawer {
    display: none !important;
}

html[data-evo-theme="ink"] .evo-sidebar-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
}

html[data-evo-theme="ink"] .evo-sidebar-nav__layer--classic {
    display: none !important;
}

html[data-evo-theme="ink"] .evo-sidebar-nav__layer--edu {
    display: flex !important;
    flex: 1;
    align-items: stretch;
}

html[data-evo-theme="ink"] .evo-main {
    flex: 1;
    width: 100%;
    padding: 1rem 1rem calc(var(--forest-dock-h) + 1.25rem);
}

html[data-evo-theme="ink"] .evo-wrap {
    max-width: 880px;
}

html[data-evo-theme="ink"] .evo-hud-chip,
html[data-evo-theme="ink"] .evo-hub-sound-toggle {
    border-radius: var(--forest-radius-pill);
    border: 1px solid var(--forest-border-soft);
    background: rgba(10, 20, 14, 0.82);
    backdrop-filter: blur(8px);
    font-family: var(--forest-font);
    font-size: 0.75rem;
}

html[data-evo-theme="ink"] #energyRegenHint {
    display: none;
}

html[data-evo-theme="ink"] .evo-onboarding-banner,
html[data-evo-theme="ink"] .mentor-hub-bar {
    display: none !important;
}

html[data-evo-theme="ink"] .evo-hub-topbar {
    position: fixed;
    top: max(0.45rem, env(safe-area-inset-top));
    right: 0.55rem;
    left: auto;
    z-index: 40;
    margin: 0;
    padding: 0;
    gap: 0.35rem;
}

html[data-evo-theme="ink"] .evo-hub-topbar-hud {
    display: none;
}

/* ── Forest dock ── */
.forest-dock {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: 0.35rem;
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 0.25rem 0.25rem 0;
    isolation: isolate;
}

.forest-dock::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78%;
    border-radius: 26px 26px 16px 16px;
    background:
        linear-gradient(180deg, rgba(22, 44, 30, 0.95), rgba(12, 22, 15, 0.96)),
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.18), transparent 48%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    z-index: -2;
}

.forest-dock::after {
    content: '';
    position: absolute;
    inset: 6px 18px auto;
    height: 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--forest-firefly) 0 28%, transparent 36%) 0 0 / 24px 14px repeat-x;
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}

.forest-dock__item {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.35rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--forest-muted);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--forest-font);
    transition: transform var(--evo-transition), color var(--evo-transition);
    z-index: 1;
}

.forest-dock__item:hover,
.forest-dock__item.is-active {
    color: var(--forest-cream);
    transform: translateY(-2px);
}

.forest-dock__item--play {
    position: relative;
    margin-top: -1.15rem;
    padding: 0.65rem 0.5rem 0.35rem;
    border-radius: 22px 22px 16px 16px;
    background:
        radial-gradient(140% 120% at 50% 0%, rgba(255, 255, 255, 0.3), transparent 52%),
        linear-gradient(180deg, var(--forest-mushroom), var(--forest-mushroom-deep));
    border: 1px solid rgba(255, 230, 212, 0.52);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.32),
        inset 0 -10px 18px rgba(54, 20, 20, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.forest-dock__item--play.is-active {
    border-color: var(--forest-sun);
}

.forest-dock__item--play::after {
    content: '';
    position: absolute;
    inset: auto 18% -8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(2px);
}

.forest-dock__glyph {
    font-size: 1.35rem;
    line-height: 1;
}

.forest-dock__glyph--play {
    font-size: 1.65rem;
}

.forest-dock__lib-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2px rgba(250, 244, 232, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.22);
}

.forest-dock__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
}

.forest-dock__item--play .forest-dock__label {
    font-family: var(--forest-hand);
    font-size: 0.9375rem;
    color: var(--forest-cream);
}

.forest-dock__item--library.is-active,
.forest-dock__item--library.is-open,
.forest-dock__item--library[aria-expanded="true"] {
    color: var(--forest-sun);
}

.forest-dock__item--library.is-active .forest-dock__lib-icon,
.forest-dock__item--library.is-open .forest-dock__lib-icon,
.forest-dock__item--library[aria-expanded="true"] .forest-dock__lib-icon {
    box-shadow:
        0 0 0 2px var(--forest-sun),
        0 0 16px var(--forest-moss-dim);
    transform: scale(1.08);
}

/* ── Wooden plank buttons ── */
.forest-plank {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.65rem;
    border: 2px solid rgba(61, 42, 24, 0.55);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12)),
        var(--forest-plank-bg, linear-gradient(180deg, #c49a62, #9a6f3f));
    background-size: cover;
    background-position: center;
    color: var(--forest-bark-deep);
    font-family: var(--forest-hand);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.22);
    transition: transform var(--evo-transition), box-shadow var(--evo-transition);
}

.forest-plank:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.forest-plank--mega {
    min-width: min(100%, 280px);
    padding: 1rem 2rem;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    border-radius: 22px;
}

.forest-plank--soft {
    background: rgba(18, 32, 22, 0.72);
    border-color: var(--forest-border);
    color: var(--forest-cream);
    font-family: var(--forest-font);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.forest-plank--library {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(50, 86, 58, 0.95), rgba(28, 50, 34, 0.98));
    border-color: var(--forest-border);
    color: var(--forest-cream);
    font-family: var(--forest-font);
    font-size: 1rem;
    font-weight: 700;
}

.forest-plank__shine {
    position: absolute;
    inset: 2px 8px auto 8px;
    height: 35%;
    border-radius: 14px 14px 40% 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
    pointer-events: none;
}

.forest-plank--go,
.forest-plank--go-soft {
    overflow: hidden;
}

.forest-plank__stones {
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: 0.24rem;
    align-items: center;
}

.forest-plank__stones i {
    display: inline-block;
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 50%;
    border: 1px solid rgba(78, 56, 30, 0.26);
    box-shadow: 0 1px 2px rgba(40, 25, 11, 0.24);
}

.forest-plank__stones i:first-child {
    background: radial-gradient(circle at 34% 28%, rgba(160, 160, 160, 0.55), rgba(28, 28, 28, 0.94) 62%);
}

.forest-plank__stones i:last-child {
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.98), rgba(230, 222, 201, 0.95) 58%);
}

.forest-plank__stones--mini i {
    width: 0.7rem;
    height: 0.7rem;
}

.forest-plank__text {
    position: relative;
    z-index: 1;
}

/* ── Play-first hub hero ── */
.forest-world--play {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 1rem;
}

.forest-world--play::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 8% 16%, rgba(255, 236, 187, 0.18), transparent 28%),
        radial-gradient(circle at 88% 28%, rgba(255, 210, 210, 0.14), transparent 26%),
        radial-gradient(circle at 68% 72%, rgba(173, 223, 183, 0.12), transparent 32%);
}

.forest-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(320px, 58vh, 500px);
    border-radius: calc(var(--forest-radius) + 8px);
    border: 2px solid rgba(255, 244, 220, 0.34);
    background-image: var(--forest-hero-bg);
    background-size: cover;
    background-position: center 35%;
    box-shadow:
        var(--forest-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.forest-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 22%, var(--forest-firefly) 0 5px, transparent 8px) 0 0 / 180px 150px repeat,
        radial-gradient(circle at 72% 70%, rgba(255, 222, 161, 0.38) 0 4px, transparent 7px) 0 0 / 210px 170px repeat;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.forest-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 16, 11, 0.22) 0%, rgba(8, 16, 11, 0.08) 42%, rgba(8, 16, 11, 0.74) 100%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(158, 217, 154, 0.12), transparent 70%);
    pointer-events: none;
}

.forest-hero__top {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.9rem 0;
}

.forest-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.4rem 0.65rem 0.4rem 0.4rem;
    border-radius: var(--forest-radius-pill);
    border: 1px solid var(--forest-border-soft);
    background: rgba(8, 18, 12, 0.62);
    backdrop-filter: blur(8px);
    color: var(--forest-cream);
    text-decoration: none;
    font-size: 0.75rem;
}

.forest-hero__chip--claim {
    border: none;
    background: linear-gradient(180deg, #d8f2d4, var(--forest-moss));
    color: var(--forest-bark-deep);
    font-weight: 800;
    cursor: pointer;
}

.forest-hero__chip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--forest-sun);
    object-fit: cover;
}

.forest-hero__chip-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.forest-hero__chip-text strong {
    font-size: 0.8125rem;
}

.forest-hero__center {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.15rem 1.35rem;
    text-align: center;
}

.forest-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-moss);
}

.forest-hero__title {
    margin: 0;
    font-family: var(--forest-hand);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--forest-cream);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.forest-hero__sub {
    margin: 0.55rem auto 0;
    max-width: 30ch;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(250, 244, 232, 0.88);
}

.forest-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.forest-focus-strip {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--forest-radius) - 2px);
    border: 2px solid rgba(255, 244, 220, 0.25);
    box-shadow: var(--forest-shadow);
}

.forest-focus-strip__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}

.forest-focus-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 16, 11, 0.08), rgba(8, 16, 11, 0.34)),
        radial-gradient(circle at 82% 24%, rgba(255, 226, 170, 0.28), transparent 38%);
}

/* ── Whisper panel (storybook side notes) ── */
.forest-whisper {
    overflow: hidden;
    border-radius: var(--forest-radius);
    border: 1px solid rgba(255, 244, 220, 0.24);
    background:
        linear-gradient(165deg, rgba(20, 38, 25, 0.76), rgba(12, 22, 15, 0.78)),
        radial-gradient(circle at 12% 0%, rgba(255, 224, 170, 0.18), transparent 45%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.forest-whisper__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--forest-font);
    font-weight: 700;
    color: rgba(233, 244, 230, 0.86);
}

.forest-whisper__summary::-webkit-details-marker {
    display: none;
}

.forest-whisper[open] .forest-whisper__summary {
    color: var(--forest-cream);
    border-bottom: 1px solid rgba(255, 244, 220, 0.2);
    background: rgba(8, 16, 11, 0.22);
}

.forest-whisper__chev::after {
    content: '＋';
    color: var(--forest-moss);
}

.forest-whisper[open] .forest-whisper__chev::after {
    content: '－';
}

.forest-whisper__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem 0.9rem;
}

.forest-whisper__panel {
    position: relative;
    padding: 0.65rem 0.7rem;
    border-radius: var(--forest-radius-sm);
    background:
        linear-gradient(165deg, rgba(11, 22, 14, 0.76), rgba(7, 14, 9, 0.72)),
        radial-gradient(circle at 100% 0%, rgba(236, 172, 172, 0.14), transparent 48%);
    border: 1px solid rgba(255, 244, 220, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.forest-whisper__panel::before {
    content: '';
    position: absolute;
    inset: 10px 10px auto auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 241, 176, 0.95), rgba(255, 241, 176, 0));
    opacity: 0.72;
}

.forest-whisper__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.forest-whisper__title {
    margin: 0;
    font-family: var(--forest-hand);
    font-size: 1rem;
    color: var(--forest-cream);
}

.forest-whisper__link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--forest-moss);
    text-decoration: none;
}

.forest-home-library-hint {
    margin: 0;
    text-align: center;
    padding: 0.15rem 0.5rem 0;
    font-size: 0.75rem;
    color: var(--forest-muted);
    line-height: 1.45;
    opacity: 0.85;
}

html[data-evo-theme="ink"] body.hub-page .hub-module-grid .evo-card--visual {
    border: 1px solid rgba(255, 244, 220, 0.24);
    background:
        linear-gradient(160deg, rgba(18, 34, 22, 0.9), rgba(10, 18, 12, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

html[data-evo-theme="ink"] body.hub-page .hub-module-grid .evo-card-cover-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5, 10, 7, 0.78));
}

html[data-evo-theme="ink"] body.hub-page .hub-module-grid .evo-card-head h3 {
    color: var(--forest-cream);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

html[data-evo-theme="ink"] body.hub-page .hub-module-grid .evo-card-num {
    border: 1px solid rgba(255, 244, 220, 0.34);
    background: rgba(9, 18, 12, 0.68);
    color: var(--forest-lantern);
}

html[data-evo-theme="ink"] body.hub-page .hub-activity {
    border-color: rgba(255, 244, 220, 0.25);
    background:
        linear-gradient(160deg, rgba(18, 36, 23, 0.9), rgba(10, 18, 12, 0.94)),
        radial-gradient(circle at 90% 0%, rgba(216, 184, 255, 0.16), transparent 44%);
}

/* ── Forest bubbles (treasure nook) ── */
.forest-bubbles[hidden] {
    display: none !important;
}

.forest-bubbles {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
}

body.forest-library-open .forest-bubbles {
    pointer-events: auto;
}

.forest-bubbles__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9001;
    background: rgba(4, 10, 7, 0.62);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.forest-bubbles__stage {
    position: fixed;
    left: 50%;
    bottom: calc(var(--forest-dock-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    transform: translateX(-50%);
    z-index: 9002;
    width: min(calc(100% - 1.25rem), 440px);
    max-height: min(72dvh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.55rem 0.85rem 0.35rem;
    border-radius: calc(var(--forest-radius) + 4px);
    border: 2px solid rgba(255, 244, 220, 0.35);
    background:
        linear-gradient(180deg, rgba(12, 24, 16, 0.92), rgba(8, 16, 11, 0.96)),
        url('/images/themes/forest/fairy-library-stage.svg?v=3') center / cover;
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    text-align: center;
}

.forest-bubbles__stage::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 241, 176, 0.16), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(216, 184, 255, 0.16), transparent 32%);
}

body.forest-library-open {
    overflow: hidden;
}

body.forest-library-open .evo-main,
body.forest-library-open .evo-topbar,
body.forest-library-open .page-content,
body.forest-library-open .forest-world,
body.forest-library-open .dojo-main,
body.forest-library-open .dojo-review-boards {
    pointer-events: none;
}

body.forest-library-open .evo-sidebar {
    pointer-events: none;
    z-index: 8990;
}

body.forest-library-open .forest-chrome--standalone {
    pointer-events: none;
    z-index: 9100;
}

body.forest-library-open .forest-dock {
    position: relative;
    z-index: 9003;
    pointer-events: auto;
}

.forest-bubbles__dismiss {
    position: absolute;
    top: -0.15rem;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--forest-border-soft);
    background: rgba(8, 16, 11, 0.75);
    color: var(--forest-cream);
    cursor: pointer;
    font-size: 0.95rem;
    z-index: 3;
}

.forest-bubbles__layer[hidden] {
    display: none !important;
}

.forest-bubbles__layer {
    position: relative;
    padding: 0.35rem 0 0.15rem;
}

.forest-bubbles__mascot {
    display: block;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--forest-moss-dim), 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: forest-bubble-float 3.2s ease-in-out infinite;
}

.forest-bubbles__title {
    margin: 0;
    font-family: var(--forest-hand);
    font-size: 1.55rem;
    color: var(--forest-cream);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.forest-bubbles__hint,
.forest-bubbles__layer-title {
    margin: 0.25rem 0 0.65rem;
    font-size: 0.8125rem;
    color: var(--forest-muted);
}

.forest-bubbles__layer-title {
    font-family: var(--forest-hand);
    font-size: 1.25rem;
    color: var(--forest-sun);
}

.forest-bubbles__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--forest-radius-pill);
    border: 2px solid var(--forest-border-soft);
    background: rgba(8, 16, 11, 0.72);
    color: var(--forest-cream);
    font-family: var(--forest-font);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.forest-bubbles__cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0.85rem;
    padding: 0.25rem 0 0.5rem;
}

.forest-bubbles__cluster--root {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
    max-width: 360px;
    margin: 0 auto;
    padding-bottom: 0.35rem;
}

.forest-bubble {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.forest-bubble--cat,
.forest-bubble--item,
.forest-bubble--text {
    width: 100%;
    max-width: 82px;
    margin: 0 auto;
}

.forest-bubble--cat .forest-bubble__emoji,
.forest-bubble--text .forest-bubble__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 1.65rem;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 42%),
        linear-gradient(145deg, rgba(200, 240, 196, 0.95), rgba(90, 150, 108, 0.92));
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28),
        inset 0 -4px 10px rgba(0, 0, 0, 0.12),
        0 0 0 3px var(--forest-moss-dim);
    transition: transform var(--evo-transition), box-shadow var(--evo-transition);
    animation: forest-bubble-float 4s ease-in-out infinite;
    animation-delay: calc(var(--bubble-i, 0) * 0.35s);
}

.forest-bubble--sparkle .forest-bubble__emoji {
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.4), transparent 42%),
        linear-gradient(145deg, rgba(232, 210, 255, 0.95), rgba(180, 140, 220, 0.9));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28),
        0 0 18px var(--forest-fairy-dim);
}

.forest-bubble--staff .forest-bubble__emoji {
    background:
        linear-gradient(145deg, rgba(255, 210, 180, 0.95), rgba(200, 120, 90, 0.88));
}

.forest-bubble__art {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28),
        0 0 0 3px var(--forest-moss-dim);
    transition: transform var(--evo-transition);
    animation: forest-bubble-float 4.5s ease-in-out infinite;
    animation-delay: calc(var(--bubble-i, 0) * 0.28s);
}

.forest-bubble__label {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--forest-cream);
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    max-width: 88px;
}

.forest-bubble:hover .forest-bubble__emoji,
.forest-bubble:hover .forest-bubble__art,
.forest-bubble:focus-visible .forest-bubble__emoji,
.forest-bubble:focus-visible .forest-bubble__art {
    transform: scale(1.1) translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.32),
        0 0 0 4px rgba(158, 217, 154, 0.45);
}

.forest-bubble:active .forest-bubble__emoji,
.forest-bubble:active .forest-bubble__art {
    transform: scale(0.92) translateY(2px);
    transition-duration: 0.05s;
}

.forest-bubbles__layer.is-active .forest-bubble--cat .forest-bubble__emoji,
.forest-bubbles__layer.is-active .forest-bubble--item .forest-bubble__art,
.forest-bubbles__layer.is-active .forest-bubble--text .forest-bubble__emoji {
    animation:
        forest-bubble-pop 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) backwards,
        forest-bubble-float 4s ease-in-out 0.5s infinite;
    animation-delay: calc(0.05s + var(--bubble-i, 0) * 0.07s), calc(0.5s + var(--bubble-i, 0) * 0.35s);
}

.forest-bubbles__nest {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    margin: 0 auto;
    max-width: 280px;
    border-radius: var(--forest-radius);
    border: 2px solid var(--forest-border-soft);
    background: rgba(8, 16, 11, 0.78);
    backdrop-filter: blur(8px);
    text-align: left;
}

.forest-bubbles__nest .evo-theme-switcher__select,
.forest-bubbles__nest .evo-lang-select {
    border-radius: var(--forest-radius-sm);
    border: 2px solid var(--forest-border-soft);
    background: rgba(10, 20, 14, 0.9);
    color: var(--forest-cream);
    font-family: var(--forest-font);
}

.forest-bubbles__logout {
    display: block;
    margin-top: 0.25rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--forest-muted);
    text-decoration: none;
}

.forest-bubbles__logout:hover {
    color: var(--forest-cream);
}

@keyframes forest-bubble-pop {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    65% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes forest-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ── Forest wave-3 storybook depth (hub/dock/library) ── */
html[data-evo-theme="ink"] .forest-world--play {
    gap: 1.05rem;
}

html[data-evo-theme="ink"] .forest-world--play::before {
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 228, 172, 0.24), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(212, 184, 255, 0.18), transparent 36%),
        radial-gradient(circle at 50% 72%, rgba(144, 214, 163, 0.16), transparent 42%);
}

html[data-evo-theme="ink"] .forest-hero {
    min-height: clamp(360px, 62vh, 560px);
    border: 2px solid rgba(255, 246, 224, 0.44);
    border-radius: 34px;
    background-image:
        linear-gradient(180deg, rgba(10, 20, 13, 0.06), rgba(10, 20, 13, 0.5)),
        var(--forest-hero-bg);
    background-size: cover;
    background-position: center 30%;
    box-shadow:
        0 24px 56px rgba(4, 9, 6, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-evo-theme="ink"] .forest-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.015) 0 2px,
            transparent 2px 10px
        );
    mix-blend-mode: screen;
    opacity: 0.32;
}

html[data-evo-theme="ink"] .forest-hero__scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

html[data-evo-theme="ink"] .forest-hero__canopy {
    position: absolute;
    inset: 0;
    background: var(--forest-hero-canopy) center top / cover no-repeat;
    opacity: 0.34;
    mix-blend-mode: screen;
}

html[data-evo-theme="ink"] .forest-hero__board {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 14%;
    height: 46%;
    background: var(--forest-go-board, url('/images/themes/forest/fairy-go-board-texture.svg?v=3')) center / cover no-repeat;
    transform: perspective(780px) rotateX(48deg);
    transform-origin: center bottom;
    opacity: 0.62;
    filter: saturate(0.94) drop-shadow(0 20px 24px rgba(55, 38, 18, 0.32));
}

html[data-evo-theme="ink"] .forest-hero__stones {
    position: absolute;
    right: 8%;
    bottom: 19%;
    width: min(38%, 230px);
    aspect-ratio: 10 / 6;
    background: var(--forest-go-stones, url('/images/themes/forest/fairy-go-stones-cluster.svg?v=3')) center / contain no-repeat;
    opacity: 0.86;
}

html[data-evo-theme="ink"] .forest-hero__bowl {
    position: absolute;
    left: 7%;
    bottom: 11%;
    width: min(30%, 180px);
    aspect-ratio: 3 / 2;
    background: var(--forest-go-bowl, url('/images/themes/forest/fairy-go-bowl.svg?v=3')) center / contain no-repeat;
    opacity: 0.88;
}

html[data-evo-theme="ink"] .forest-hero__scroll {
    position: absolute;
    right: 26%;
    bottom: 27%;
    width: min(36%, 220px);
    aspect-ratio: 26 / 11;
    background: var(--forest-go-scroll, url('/images/themes/forest/fairy-go-scroll.svg?v=3')) center / contain no-repeat;
    opacity: 0.78;
}

html[data-evo-theme="ink"] .forest-hero__mist {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

html[data-evo-theme="ink"] .forest-hero__mist--rear {
    width: 70%;
    height: 42%;
    left: -6%;
    top: 4%;
    opacity: 0.28;
}

html[data-evo-theme="ink"] .forest-hero__mist--mid {
    width: 64%;
    height: 34%;
    right: -12%;
    bottom: 28%;
    opacity: 0.24;
}

html[data-evo-theme="ink"] .forest-hero__mushrooms {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 120px;
    background:
        radial-gradient(44px 30px at 8% 92%, rgba(219, 113, 113, 0.55), transparent 75%),
        radial-gradient(52px 34px at 28% 92%, rgba(234, 150, 131, 0.54), transparent 78%),
        radial-gradient(48px 32px at 48% 90%, rgba(193, 113, 147, 0.45), transparent 78%),
        radial-gradient(56px 34px at 70% 90%, rgba(229, 131, 131, 0.52), transparent 78%),
        radial-gradient(40px 28px at 88% 92%, rgba(214, 120, 156, 0.44), transparent 75%);
    opacity: 0.42;
}

html[data-evo-theme="ink"] .forest-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 236, 188, 0.33), transparent 26%),
        radial-gradient(circle at 82% 24%, rgba(248, 214, 166, 0.26), transparent 30%),
        radial-gradient(circle at 64% 66%, rgba(210, 186, 255, 0.2), transparent 36%);
}

html[data-evo-theme="ink"] .forest-hero__veil {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(8, 16, 11, 0.16) 0%, rgba(8, 16, 11, 0.04) 40%, rgba(8, 16, 11, 0.7) 100%),
        radial-gradient(ellipse 84% 54% at 50% 100%, rgba(255, 222, 162, 0.18), transparent 74%);
}

html[data-evo-theme="ink"] .forest-hero__top {
    z-index: 3;
    justify-content: flex-start;
    padding: 0.95rem 1rem 0;
}

html[data-evo-theme="ink"] .forest-hero__chip {
    background:
        linear-gradient(155deg, rgba(13, 28, 18, 0.86), rgba(7, 16, 10, 0.74));
    border-color: rgba(255, 243, 216, 0.28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

html[data-evo-theme="ink"] .forest-hero__center {
    z-index: 4;
    padding: 1.15rem 1.1rem 1.35rem;
}

html[data-evo-theme="ink"] .forest-story-card {
    position: relative;
    overflow: hidden;
    max-width: min(100%, 530px);
    margin: 0 auto;
    padding: 1.08rem 1.08rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 238, 205, 0.38);
    background:
        linear-gradient(150deg, rgba(16, 30, 20, 0.84), rgba(8, 16, 11, 0.9));
    backdrop-filter: blur(8px);
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-evo-theme="ink"] .forest-story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 28%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 52%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 28%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px);
    opacity: 0.36;
}

html[data-evo-theme="ink"] .forest-story-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(87, 67, 39, 0.08) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(0deg, rgba(87, 67, 39, 0.07) 0 1px, transparent 1px 18px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2) 36%, rgba(0, 0, 0, 0));
}

html[data-evo-theme="ink"] .forest-hero__title {
    text-shadow: 0 8px 26px rgba(2, 8, 4, 0.8);
}

html[data-evo-theme="ink"] .forest-hero__sub {
    color: rgba(252, 246, 233, 0.94);
}

html[data-evo-theme="ink"] .forest-plank {
    border-radius: 20px;
    border: 2px solid rgba(72, 49, 24, 0.65);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.32),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -10px 16px rgba(48, 24, 10, 0.24);
}

html[data-evo-theme="ink"] .forest-plank:active {
    transform: translateY(2px) scale(0.985);
}

html[data-evo-theme="ink"] .forest-plank--soft {
    border-color: rgba(255, 243, 216, 0.26);
    background:
        linear-gradient(160deg, rgba(33, 60, 42, 0.88), rgba(14, 29, 19, 0.9));
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-evo-theme="ink"] .forest-focus-strip {
    border-radius: 30px;
    border-color: rgba(255, 241, 210, 0.34);
    box-shadow: 0 18px 36px rgba(2, 8, 4, 0.32);
}

html[data-evo-theme="ink"] .forest-focus-strip::after {
    background:
        linear-gradient(180deg, rgba(8, 16, 11, 0.03), rgba(8, 16, 11, 0.56)),
        radial-gradient(circle at 82% 24%, rgba(255, 226, 170, 0.36), transparent 42%);
}

html[data-evo-theme="ink"] .forest-focus-strip__caption {
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.8rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

html[data-evo-theme="ink"] .forest-focus-strip__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 241, 210, 0.38);
    background: rgba(9, 18, 12, 0.62);
    color: var(--forest-lantern);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

html[data-evo-theme="ink"] .forest-focus-strip__line {
    color: rgba(250, 244, 232, 0.93);
    font-size: 0.72rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.52);
}

html[data-evo-theme="ink"] .forest-whisper {
    border-radius: 28px;
    border-color: rgba(255, 241, 210, 0.28);
    background:
        linear-gradient(165deg, rgba(20, 38, 25, 0.84), rgba(10, 19, 13, 0.84)),
        radial-gradient(circle at 12% 0%, rgba(255, 224, 170, 0.2), transparent 48%);
}

html[data-evo-theme="ink"] .forest-whisper__summary {
    padding: 0.95rem 1.05rem;
    font-size: 0.88rem;
    color: rgba(240, 248, 232, 0.92);
}

html[data-evo-theme="ink"] .forest-whisper__grid {
    gap: 0.9rem;
    padding: 0.9rem 0.95rem 1.05rem;
}

html[data-evo-theme="ink"] .forest-whisper__panel {
    padding: 0.82rem;
    border-radius: 20px;
    border-color: rgba(255, 241, 210, 0.22);
    background: linear-gradient(165deg, rgba(12, 24, 16, 0.88), rgba(8, 16, 11, 0.86));
}

html[data-evo-theme="ink"] .forest-whisper__panel--paths::before {
    display: none;
}

html[data-evo-theme="ink"] .forest-whisper__paths {
    display: grid;
    gap: 0.45rem;
}

html[data-evo-theme="ink"] .forest-whisper__path {
    display: grid;
    gap: 0.08rem;
    padding: 0.58rem 0.68rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 241, 210, 0.16);
    text-decoration: none;
    background: rgba(9, 18, 12, 0.58);
    color: inherit;
    transition: transform var(--evo-transition), border-color var(--evo-transition), background var(--evo-transition);
}

html[data-evo-theme="ink"] .forest-whisper__path:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 140, 0.38);
    background: rgba(15, 29, 19, 0.78);
}

html[data-evo-theme="ink"] .forest-whisper__path-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--forest-cream);
}

html[data-evo-theme="ink"] .forest-whisper__path-meta {
    font-size: 0.7rem;
    line-height: 1.38;
    color: rgba(230, 241, 222, 0.9);
}

html[data-evo-theme="ink"] .forest-home-library-hint {
    font-size: 0.8rem;
    color: rgba(236, 246, 230, 0.94);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

html[data-evo-theme="ink"] .forest-dock {
    width: min(100%, 560px);
    gap: 0.45rem;
    padding: 0.32rem 0.38rem 0.08rem;
}

html[data-evo-theme="ink"] .forest-dock::before {
    height: 100%;
    border-radius: 30px 30px 22px 22px;
    background:
        linear-gradient(180deg, rgba(29, 52, 37, 0.94), rgba(11, 22, 14, 0.96)),
        url('/images/themes/forest/fairy-dock-wood.svg?v=3') center / cover;
    border-color: rgba(255, 241, 210, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

html[data-evo-theme="ink"] .forest-dock::after {
    inset: 8px 20px auto;
    height: 16px;
    opacity: 0.82;
}

html[data-evo-theme="ink"] .forest-dock__item {
    position: relative;
    padding: 0.45rem 0.35rem 0.42rem;
    border-radius: 18px;
    color: rgba(231, 241, 224, 0.9);
    background: linear-gradient(180deg, rgba(10, 21, 14, 0.72), rgba(10, 21, 14, 0.36));
    border: 1px solid rgba(255, 241, 210, 0.16);
    transition:
        transform var(--evo-transition),
        color var(--evo-transition),
        border-color var(--evo-transition),
        box-shadow var(--evo-transition);
}

html[data-evo-theme="ink"] .forest-dock__item:hover,
html[data-evo-theme="ink"] .forest-dock__item.is-active {
    transform: translateY(-3px);
    border-color: rgba(255, 230, 173, 0.38);
    box-shadow: 0 12px 20px rgba(2, 8, 4, 0.32);
}

html[data-evo-theme="ink"] .forest-dock__orb {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 239, 188, 0.94), rgba(255, 239, 188, 0));
    opacity: 0.75;
    transform: translateX(-50%);
}

html[data-evo-theme="ink"] .forest-dock__mushroom {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 38px;
    height: 14px;
    border-radius: 999px 999px 80% 80%;
    background:
        radial-gradient(circle at 28% 45%, rgba(255, 250, 245, 0.42), rgba(255, 250, 245, 0) 45%),
        linear-gradient(180deg, rgba(250, 162, 162, 0.9), rgba(180, 76, 76, 0.92));
    transform: translateX(-50%);
}

html[data-evo-theme="ink"] .forest-dock__item--play {
    margin-top: -1.35rem;
    padding-top: 0.72rem;
    border-radius: 24px 24px 18px 18px;
    border-color: rgba(255, 226, 197, 0.52);
    background:
        radial-gradient(150% 130% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 54%),
        linear-gradient(180deg, #ef8b8f, #914547);
}

html[data-evo-theme="ink"] .forest-dock__item--play .forest-dock__mushroom {
    opacity: 0.95;
}

html[data-evo-theme="ink"] .forest-dock__item--play::after {
    bottom: -9px;
}

html[data-evo-theme="ink"] .forest-dock__lib-icon {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    border: 1px solid rgba(255, 241, 210, 0.28);
    background: rgba(8, 16, 11, 0.52);
}

html[data-evo-theme="ink"] .forest-dock__label {
    font-size: 0.74rem;
    color: var(--forest-cream);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-evo-theme="ink"] .forest-bubbles__backdrop {
    background: rgba(3, 8, 5, 0.8);
    backdrop-filter: blur(5px);
}

html[data-evo-theme="ink"] .forest-bubbles__stage {
    width: min(calc(100% - 1.2rem), 520px);
    max-height: min(76dvh, 680px);
    padding: 0.9rem 1rem 0.72rem;
    border-radius: 30px;
    border-color: rgba(255, 239, 203, 0.42);
    background:
        linear-gradient(180deg, rgba(14, 28, 18, 0.93), rgba(8, 16, 11, 0.96)),
        url('/images/themes/forest/fairy-library-stage.svg?v=3') center / cover;
    box-shadow:
        0 -12px 52px rgba(0, 0, 0, 0.52),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-evo-theme="ink"] .forest-bubbles__intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
    text-align: left;
}

html[data-evo-theme="ink"] .forest-bubbles__intro-copy {
    min-width: 0;
}

html[data-evo-theme="ink"] .forest-bubbles__title {
    font-size: 1.65rem;
}

html[data-evo-theme="ink"] .forest-bubbles__hint {
    margin: 0.18rem 0 0;
    font-size: 0.78rem;
    line-height: 1.42;
    color: rgba(230, 241, 222, 0.92);
}

html[data-evo-theme="ink"] .forest-bubbles__dismiss {
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(10, 18, 12, 0.86);
    border-color: rgba(255, 239, 203, 0.38);
}

html[data-evo-theme="ink"] .forest-bubbles__back {
    margin-bottom: 0.5rem;
    border-color: rgba(255, 239, 203, 0.32);
    background: rgba(11, 20, 14, 0.82);
}

html[data-evo-theme="ink"] .forest-bubbles__cluster--root {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 0.58rem;
    padding-top: 0.45rem;
    padding-bottom: 0.35rem;
}

html[data-evo-theme="ink"] .forest-bubbles__cluster--leaf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    justify-content: stretch;
    align-items: stretch;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card,
html[data-evo-theme="ink"] .forest-bubble--item-card {
    max-width: none;
    width: 100%;
    min-height: 98px;
    padding: 0.58rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 239, 203, 0.24);
    background:
        linear-gradient(160deg, rgba(14, 30, 19, 0.9), rgba(7, 15, 10, 0.9));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    justify-items: start;
    align-content: start;
    text-align: left;
    transition:
        transform var(--evo-transition),
        border-color var(--evo-transition),
        box-shadow var(--evo-transition);
}

html[data-evo-theme="ink"] .forest-bubble--cat-card .forest-bubble__emoji,
html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__emoji {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.3rem;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.24),
        inset 0 -4px 10px rgba(0, 0, 0, 0.15);
    animation: none;
}

html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__art {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.24),
        0 0 0 2px rgba(158, 217, 154, 0.2);
    animation: none;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card .forest-bubble__label,
html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__label {
    max-width: none;
    font-size: 0.8rem;
    margin-top: 0.28rem;
    color: #3e2d20;
    text-shadow: none;
}

html[data-evo-theme="ink"] .forest-bubble__meta {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.67rem;
    line-height: 1.42;
    font-weight: 700;
    color: rgba(226, 239, 219, 0.94);
}

html[data-evo-theme="ink"] .forest-bubble--cat-card:hover,
html[data-evo-theme="ink"] .forest-bubble--item-card:hover,
html[data-evo-theme="ink"] .forest-bubble--cat-card:focus-visible,
html[data-evo-theme="ink"] .forest-bubble--item-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 220, 146, 0.42);
    box-shadow:
        0 14px 24px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 220, 146, 0.18);
}

html[data-evo-theme="ink"] .forest-bubble--cat-card:hover .forest-bubble__emoji,
html[data-evo-theme="ink"] .forest-bubble--cat-card:focus-visible .forest-bubble__emoji,
html[data-evo-theme="ink"] .forest-bubble--item-card:hover .forest-bubble__art,
html[data-evo-theme="ink"] .forest-bubble--item-card:focus-visible .forest-bubble__art,
html[data-evo-theme="ink"] .forest-bubble--item-card:hover .forest-bubble__emoji,
html[data-evo-theme="ink"] .forest-bubble--item-card:focus-visible .forest-bubble__emoji {
    transform: none;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.26),
        0 0 0 2px rgba(255, 220, 146, 0.24);
}

html[data-evo-theme="ink"] .forest-bubble--cat-card:active,
html[data-evo-theme="ink"] .forest-bubble--item-card:active {
    transform: translateY(1px) scale(0.985);
}

html[data-evo-theme="ink"] .forest-bubbles__nest {
    max-width: 320px;
    border-color: rgba(255, 239, 203, 0.28);
    background: rgba(9, 17, 11, 0.8);
}

/* ── Guest landing ── */
.forest-landing {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 2.5rem;
    background-image: var(--forest-landing-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.forest-landing__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% 15%, rgba(142, 200, 232, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(8, 16, 11, 0.25), rgba(8, 16, 11, 0.9));
    pointer-events: none;
}

.forest-landing__float-tools {
    position: absolute;
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* Tester #001: on Android the floating language/theme switchers overlapped the
   Forest logo. On narrow screens move them into normal flow at the top so they
   sit above the gate instead of covering it. */
@media (max-width: 560px) {
    .forest-landing {
        justify-content: flex-start;
    }
    .forest-landing__float-tools {
        position: static;
        align-self: stretch;
        justify-content: flex-end;
        margin: 0 0 0.6rem;
    }
}

.forest-landing__gate {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    padding: 1.75rem 1.35rem 1.5rem;
    border-radius: calc(var(--forest-radius) + 10px);
    border: 3px solid var(--forest-border-soft);
    background: rgba(14, 26, 18, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: var(--forest-shadow);
    text-align: center;
}

.forest-landing__logo {
    display: block;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    border: 3px solid var(--forest-moss);
    box-shadow: 0 0 0 8px var(--forest-moss-dim);
}

.forest-landing__realm {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-moss);
}

.forest-landing__title {
    margin: 0.25rem 0 0;
    font-family: var(--forest-hand);
    font-size: clamp(2.2rem, 9vw, 3.1rem);
    line-height: 1.1;
    color: var(--forest-cream);
}

.forest-landing__sub,
.forest-landing__playline {
    margin: 0.65rem auto 0;
    max-width: 34ch;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--forest-muted);
}

.forest-landing__playline {
    font-family: var(--forest-hand);
    font-size: 1.2rem;
    color: var(--forest-sun);
}

.forest-landing__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.forest-landing__more {
    margin-top: 1rem;
    text-align: left;
    color: var(--forest-muted);
    font-size: 0.8125rem;
}

.forest-landing__more summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--forest-cream);
    list-style: none;
}

.forest-landing__more summary::-webkit-details-marker {
    display: none;
}

.forest-landing__paths {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.forest-landing__path {
    padding: 0.55rem 0.65rem;
    border-radius: var(--forest-radius-sm);
    border: 1px solid var(--forest-border-soft);
    background: rgba(8, 16, 11, 0.45);
}

.forest-landing__path-label {
    font-family: var(--forest-hand);
    font-size: 1rem;
    color: var(--forest-cream);
}

.forest-landing__tagline {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: var(--forest-muted);
}

html[data-evo-theme="ink"] .evo-landing--visual {
    display: none;
}

html[data-evo-theme="ink"] .forest-landing {
    display: flex;
}

html:not([data-evo-theme="ink"]) .forest-landing {
    display: none;
}

html[data-evo-theme="ink"] .mentor-hub-bar {
    border-radius: var(--forest-radius);
    border: 2px solid var(--forest-border-soft);
    background: linear-gradient(90deg, rgba(36, 58, 42, 0.92), rgba(20, 34, 24, 0.95));
    box-shadow: var(--forest-shadow);
}

html[data-evo-theme="ink"] .mentor-hub-bar__name {
    font-family: var(--forest-hand);
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-world--play {
        gap: 0.95rem;
    }

    html[data-evo-theme="ink"] .forest-hero {
        min-height: 420px;
        border-radius: 26px;
        display: flex;
        flex-direction: column;
    }

    html[data-evo-theme="ink"] .forest-hero__top {
        padding: 0.75rem 0.75rem 0;
    }

    html[data-evo-theme="ink"] .forest-hero__chip {
        width: 100%;
        max-width: 100%;
    }

    html[data-evo-theme="ink"] .forest-hero__center {
        position: relative;
        padding: 0.75rem 0.75rem 0.95rem;
    }

    html[data-evo-theme="ink"] .forest-hero__board {
        left: -8%;
        right: -8%;
        bottom: 17%;
        height: 42%;
        opacity: 0.52;
    }

    html[data-evo-theme="ink"] .forest-hero__stones {
        right: 4%;
        bottom: 20%;
        width: min(44%, 190px);
        opacity: 0.8;
    }

    html[data-evo-theme="ink"] .forest-hero__bowl {
        left: 4%;
        bottom: 10%;
        width: min(36%, 132px);
        opacity: 0.82;
    }

    html[data-evo-theme="ink"] .forest-hero__scroll {
        right: 24%;
        bottom: 30%;
        width: min(40%, 150px);
        opacity: 0.72;
    }

    html[data-evo-theme="ink"] .forest-story-card {
        padding: 0.88rem 0.86rem 0.98rem;
        border-radius: 20px;
    }

    html[data-evo-theme="ink"] .forest-hero__title {
        font-size: clamp(1.86rem, 10vw, 2.5rem);
    }

    html[data-evo-theme="ink"] .forest-hero__sub {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    html[data-evo-theme="ink"] .forest-hero__cta-row {
        gap: 0.5rem;
    }

    html[data-evo-theme="ink"] .forest-plank--mega {
        min-width: 100%;
        padding: 0.88rem 1rem;
        font-size: clamp(1.2rem, 7.2vw, 1.5rem);
    }

    html[data-evo-theme="ink"] .forest-plank--soft {
        width: 100%;
    }

    html[data-evo-theme="ink"] .forest-plank__stones i {
        width: 0.68rem;
        height: 0.68rem;
    }

    html[data-evo-theme="ink"] .forest-focus-strip {
        border-radius: 22px;
    }

    html[data-evo-theme="ink"] .forest-focus-strip__img {
        max-height: 150px;
    }

    html[data-evo-theme="ink"] .forest-focus-strip__caption {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.55rem;
    }

    html[data-evo-theme="ink"] .forest-focus-strip__line {
        font-size: 0.65rem;
    }

    html[data-evo-theme="ink"] .forest-whisper__grid {
        grid-template-columns: 1fr;
    }

    html[data-evo-theme="ink"] .forest-whisper__path {
        padding: 0.46rem 0.52rem;
    }

    html[data-evo-theme="ink"] .forest-dock {
        width: 100%;
        grid-template-columns: 1fr 1.22fr 1fr;
        gap: 0.28rem;
        padding: 0.26rem 0.26rem 0.05rem;
    }

    html[data-evo-theme="ink"] .forest-dock__item {
        border-radius: 14px;
        padding: 0.36rem 0.26rem 0.32rem;
    }

    html[data-evo-theme="ink"] .forest-dock__item--play {
        margin-top: -1rem;
        padding-top: 0.62rem;
    }

    html[data-evo-theme="ink"] .forest-dock__label {
        font-size: 0.67rem;
    }

    html[data-evo-theme="ink"] .forest-dock__glyph--play {
        font-size: 1.45rem;
    }

    html[data-evo-theme="ink"] .forest-bubbles__stage {
        width: calc(100% - 0.8rem);
        max-height: min(78dvh, 640px);
        bottom: calc(var(--forest-dock-h) + env(safe-area-inset-bottom, 0px) + 0.45rem);
        padding: 0.72rem 0.7rem max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    html[data-evo-theme="ink"] .forest-bubbles__intro {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }

    html[data-evo-theme="ink"] .forest-bubbles__title {
        font-size: 1.35rem;
    }

    html[data-evo-theme="ink"] .forest-bubbles__cluster--root,
    html[data-evo-theme="ink"] .forest-bubbles__cluster--leaf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.48rem;
    }

    html[data-evo-theme="ink"] .forest-bubble--cat-card,
    html[data-evo-theme="ink"] .forest-bubble--item-card {
        min-height: 88px;
        padding: 0.48rem;
    }

    html[data-evo-theme="ink"] .forest-bubble--cat-card .forest-bubble__emoji,
    html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__emoji,
    html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__art {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    html[data-evo-theme="ink"] .forest-bubble--cat-card .forest-bubble__label,
    html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__label {
        font-size: 0.72rem;
    }

    html[data-evo-theme="ink"] .forest-bubble__meta {
        font-size: 0.64rem;
    }
}

/* ── Forest fairy-world overhaul (wave-4) ── */
html[data-evo-theme="ink"] body.evo-body:not(.myroom-body):not(.pa-body):not(.play-shell):not(.replay-page):not(.puzzle-page):not(.hub-page):not(.stats-page):not(.school-page):not(.dojo-page):not(.store-page):not(.lounge-page):not(.go-nexus-page):not(.games-page):not(.album-page):not(.friends-page):not(.guild-page):not(.profile-shell):not(.onboarding-page):not(.legal-page):not(.arena-shell):not(.evo-auth-page):not(.admin-shell):not(.supervisor-page) {
    background-color: var(--forest-bg);
    background-image:
        url('/images/themes/forest/fairy-depth-bg.svg?v=3'),
        radial-gradient(ellipse 90% 56% at 50% 0, rgba(255, 240, 188, 0.38), transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 86%, rgba(210, 182, 255, 0.24), transparent 62%);
    background-size: cover, auto, auto;
    background-position: center top, center, center;
    color: var(--evo-text);
}

html[data-evo-theme="ink"] .evo-sidebar {
    border-top: 2px solid rgba(126, 92, 52, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 239, 207, 0.88), rgba(231, 205, 158, 0.9)),
        var(--forest-dock-bg, url('/images/themes/forest/fairy-dock-wood.svg?v=3')) center / cover;
    box-shadow: 0 -14px 34px rgba(62, 44, 23, 0.28);
}

html[data-evo-theme="ink"] .forest-dock {
    --forest-dock-bg: url('/images/themes/forest/fairy-dock-wood.svg?v=3');
}

html[data-evo-theme="ink"] .forest-dock::before {
    background:
        linear-gradient(180deg, rgba(255, 238, 204, 0.9), rgba(221, 189, 143, 0.9)),
        var(--forest-dock-bg) center / cover;
    border-color: rgba(126, 92, 52, 0.45);
    box-shadow: 0 12px 26px rgba(67, 45, 23, 0.34);
}

html[data-evo-theme="ink"] .forest-dock::after {
    background:
        radial-gradient(circle, rgba(255, 241, 186, 0.9) 0 32%, transparent 40%) 0 0 / 26px 14px repeat-x;
    opacity: 0.88;
}

html[data-evo-theme="ink"] .forest-dock__item {
    color: #4b3b2a;
    background: linear-gradient(180deg, rgba(255, 245, 221, 0.72), rgba(255, 230, 184, 0.4));
    border: 1px solid rgba(132, 98, 56, 0.28);
}

html[data-evo-theme="ink"] .forest-dock__item:hover,
html[data-evo-theme="ink"] .forest-dock__item.is-active {
    color: #2f2218;
    border-color: rgba(126, 86, 44, 0.55);
    box-shadow: 0 10px 20px rgba(85, 56, 28, 0.25);
}

html[data-evo-theme="ink"] .forest-dock__item--play {
    background:
        radial-gradient(140% 120% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 52%),
        linear-gradient(180deg, #efa39b, #ca7060);
    border-color: rgba(136, 68, 58, 0.55);
}

html[data-evo-theme="ink"] .forest-dock__label {
    color: #3b2f22;
    text-shadow: 0 1px 0 rgba(255, 251, 242, 0.9);
}

html[data-evo-theme="ink"] .forest-dock__item--play .forest-dock__label {
    color: #fff7ec;
    text-shadow: 0 2px 6px rgba(78, 31, 22, 0.42);
}

html[data-evo-theme="ink"] .forest-dock__lib-icon {
    border-color: rgba(119, 88, 52, 0.38);
    background: rgba(255, 244, 221, 0.64);
}

html[data-evo-theme="ink"] .forest-hero {
    border-color: rgba(172, 130, 81, 0.45);
    background-image:
        linear-gradient(180deg, rgba(255, 248, 226, 0.08), rgba(90, 61, 30, 0.24)),
        var(--forest-hero-bg, url('/images/themes/forest/fairy-hero-scene.svg?v=3'));
    box-shadow:
        0 24px 56px rgba(78, 56, 30, 0.28),
        inset 0 0 0 1px rgba(255, 247, 232, 0.34);
}

html[data-evo-theme="ink"] .forest-hero__canopy {
    background: var(--forest-hero-canopy, url('/images/themes/forest/fairy-canopy-lights.svg?v=3')) center top / cover no-repeat;
    opacity: 0.72;
    mix-blend-mode: normal;
}

html[data-evo-theme="ink"] .forest-hero__veil {
    background:
        linear-gradient(180deg, rgba(255, 246, 222, 0.12) 0%, rgba(255, 246, 222, 0.04) 45%, rgba(64, 44, 23, 0.42) 100%),
        radial-gradient(ellipse 84% 54% at 50% 100%, rgba(255, 229, 165, 0.2), transparent 76%);
}

html[data-evo-theme="ink"] .forest-hero__board {
    opacity: 0.7;
    filter: saturate(1) drop-shadow(0 18px 24px rgba(92, 63, 32, 0.28));
}

html[data-evo-theme="ink"] .forest-hero__stones {
    opacity: 0.94;
}

html[data-evo-theme="ink"] .forest-hero__bowl {
    opacity: 0.9;
}

html[data-evo-theme="ink"] .forest-hero__scroll {
    opacity: 0.82;
}

html[data-evo-theme="ink"] .forest-story-card {
    border-color: rgba(177, 129, 75, 0.48);
    background:
        linear-gradient(165deg, rgba(255, 247, 227, 0.9), rgba(239, 219, 181, 0.9)),
        var(--forest-panel-bg, url('/images/themes/forest/fairy-panel-parchment.svg?v=3')) center / cover;
    box-shadow:
        0 18px 36px rgba(81, 58, 30, 0.28),
        inset 0 1px 0 rgba(255, 251, 244, 0.78);
}

html[data-evo-theme="ink"] .forest-story-card::before {
    opacity: 0.44;
}

html[data-evo-theme="ink"] .forest-story-card::after {
    opacity: 0.5;
}

html[data-evo-theme="ink"] .forest-story-card > * {
    position: relative;
    z-index: 1;
}

html[data-evo-theme="ink"] .forest-hero__kicker {
    color: #6f8447;
}

html[data-evo-theme="ink"] .forest-hero__title {
    color: #3f2b1d;
    text-shadow: 0 3px 10px rgba(255, 248, 229, 0.6);
}

html[data-evo-theme="ink"] .forest-hero__sub {
    color: #4f4331;
}

html[data-evo-theme="ink"] .forest-focus-strip {
    border-color: rgba(171, 130, 83, 0.45);
    box-shadow: 0 14px 32px rgba(74, 53, 29, 0.24);
}

html[data-evo-theme="ink"] .forest-focus-strip::after {
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.04), rgba(61, 43, 21, 0.42)),
        radial-gradient(circle at 82% 24%, rgba(255, 226, 170, 0.42), transparent 42%);
}

html[data-evo-theme="ink"] .forest-focus-strip__chip {
    color: #5f4a2f;
    background: rgba(255, 245, 220, 0.82);
    border-color: rgba(145, 108, 66, 0.42);
}

html[data-evo-theme="ink"] .forest-focus-strip__line {
    color: #fff7e9;
    text-shadow: 0 2px 8px rgba(67, 44, 23, 0.46);
}

html[data-evo-theme="ink"] .forest-plank {
    border-color: rgba(117, 77, 40, 0.6);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(90, 56, 24, 0.12)),
        var(--forest-plank-bg, url('/images/themes/forest/fairy-btn-wood-main.svg?v=3')) center / cover;
    color: #3b2617;
    box-shadow:
        0 14px 24px rgba(89, 58, 29, 0.3),
        inset 0 2px 0 rgba(255, 248, 232, 0.6);
}

html[data-evo-theme="ink"] .forest-plank--go {
    border-color: rgba(122, 78, 40, 0.7);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(90, 56, 24, 0.16)),
        var(--forest-plank-bg, url('/images/themes/forest/fairy-btn-go-wood.svg?v=3')) center / cover;
}

html[data-evo-theme="ink"] .forest-plank--go::after {
    content: '';
    position: absolute;
    inset: 18% 10%;
    border-radius: 14px;
    border: 1px solid rgba(99, 64, 31, 0.24);
    z-index: 0;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-plank__text {
    text-shadow: 0 1px 0 rgba(255, 248, 233, 0.65);
}

html[data-evo-theme="ink"] .forest-plank--soft,
html[data-evo-theme="ink"] .forest-plank--vine {
    border-color: rgba(95, 129, 61, 0.56);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(80, 105, 52, 0.18)),
        var(--forest-plank-bg, url('/images/themes/forest/fairy-btn-vine-soft.svg?v=3')) center / cover;
    color: #2f3d24;
    font-family: var(--forest-font);
    text-shadow: 0 1px 0 rgba(246, 255, 229, 0.72);
}

html[data-evo-theme="ink"] .forest-plank--go-soft {
    border-color: rgba(92, 127, 62, 0.58);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(80, 105, 52, 0.18)),
        var(--forest-plank-bg, url('/images/themes/forest/fairy-btn-go-vine.svg?v=3')) center / cover;
}

html[data-evo-theme="ink"] .forest-plank--go .forest-plank__stones i {
    border-color: rgba(84, 53, 25, 0.28);
    box-shadow: 0 1px 3px rgba(59, 36, 13, 0.3);
}

html[data-evo-theme="ink"] .forest-plank--go .forest-plank__stones i:first-child,
html[data-evo-theme="ink"] .forest-plank--go-soft .forest-plank__stones i:first-child {
    background: radial-gradient(circle at 35% 30%, rgba(182, 182, 182, 0.62), rgba(25, 25, 25, 0.97) 62%);
}

html[data-evo-theme="ink"] .forest-plank--go .forest-plank__stones i:last-child,
html[data-evo-theme="ink"] .forest-plank--go-soft .forest-plank__stones i:last-child {
    background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.99), rgba(241, 233, 211, 0.95) 60%);
}

html[data-evo-theme="ink"] .forest-whisper {
    border-color: rgba(169, 126, 78, 0.36);
    background:
        linear-gradient(165deg, rgba(255, 248, 230, 0.88), rgba(235, 217, 180, 0.88)),
        url('/images/themes/forest/fairy-panel-parchment.svg?v=3') center / cover;
    box-shadow: 0 12px 28px rgba(78, 55, 28, 0.22);
}

html[data-evo-theme="ink"] .forest-whisper__summary {
    color: #4a3b2a;
}

html[data-evo-theme="ink"] .forest-whisper[open] .forest-whisper__summary {
    color: #352819;
    border-bottom-color: rgba(143, 102, 60, 0.3);
    background: rgba(255, 240, 210, 0.44);
}

html[data-evo-theme="ink"] .forest-whisper__chev::after {
    color: #5f8a42;
}

html[data-evo-theme="ink"] .forest-whisper__panel {
    border-color: rgba(157, 114, 69, 0.32);
    background:
        linear-gradient(165deg, rgba(255, 252, 240, 0.86), rgba(241, 229, 201, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.74);
    color: #443624;
}

html[data-evo-theme="ink"] .forest-whisper__title,
html[data-evo-theme="ink"] .forest-whisper__path-label {
    color: #422d1d;
}

html[data-evo-theme="ink"] .forest-whisper__path-meta {
    color: #5a503e;
}

html[data-evo-theme="ink"] .forest-whisper__path {
    border-color: rgba(165, 122, 75, 0.26);
    background: rgba(255, 248, 232, 0.82);
}

html[data-evo-theme="ink"] .forest-whisper__path:hover {
    border-color: rgba(176, 131, 79, 0.52);
    background: rgba(255, 242, 212, 0.96);
}

html[data-evo-theme="ink"] .forest-home-library-hint {
    color: #5f523f;
    text-shadow: 0 1px 0 rgba(255, 248, 232, 0.84);
}

html[data-evo-theme="ink"] .forest-bubbles__backdrop {
    background: rgba(56, 38, 19, 0.42);
    backdrop-filter: blur(6px);
}

html[data-evo-theme="ink"] .forest-bubbles__stage {
    border-color: rgba(175, 128, 75, 0.45);
    background:
        linear-gradient(180deg, rgba(255, 247, 227, 0.92), rgba(233, 213, 177, 0.92)),
        var(--forest-library-bg, url('/images/themes/forest/fairy-library-stage.svg?v=3')) center / cover;
    box-shadow:
        0 -12px 52px rgba(64, 44, 21, 0.48),
        inset 0 0 0 1px rgba(255, 251, 243, 0.72);
}

html[data-evo-theme="ink"] .forest-bubbles__title {
    color: #3d291b;
    text-shadow: 0 1px 0 rgba(255, 248, 234, 0.84);
}

html[data-evo-theme="ink"] .forest-bubbles__hint,
html[data-evo-theme="ink"] .forest-bubbles__layer-title,
html[data-evo-theme="ink"] .forest-bubble__meta {
    color: #5f523f;
}

html[data-evo-theme="ink"] .forest-bubbles__dismiss,
html[data-evo-theme="ink"] .forest-bubbles__back {
    border-color: rgba(145, 105, 63, 0.42);
    background: rgba(255, 245, 220, 0.88);
    color: #4f3b29;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card,
html[data-evo-theme="ink"] .forest-bubble--item-card {
    border-color: rgba(156, 113, 68, 0.26);
    background:
        linear-gradient(160deg, rgba(255, 252, 241, 0.92), rgba(241, 229, 200, 0.9));
    box-shadow: 0 10px 22px rgba(86, 61, 30, 0.22);
}

html[data-evo-theme="ink"] .forest-bubble__label {
    color: #3e2d20;
    text-shadow: none;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card .forest-bubble__emoji,
html[data-evo-theme="ink"] .forest-bubble--item-card .forest-bubble__emoji {
    box-shadow:
        0 8px 16px rgba(86, 61, 30, 0.2),
        inset 0 -4px 10px rgba(91, 66, 35, 0.16);
}

/* Forest story RPG uplift (wave-6) */
html[data-evo-theme="ink"] {
    --forest-candy-pink: #f3a5a9;
    --forest-candy-amber: #f4c77a;
    --forest-candy-mint: #a8d78b;
    --forest-ink-main: #3a291a;
    --forest-ink-secondary: #5d4a33;
}

html[data-evo-theme="ink"] body.evo-body:not(.myroom-body):not(.hub-page):not(.stats-page):not(.school-page):not(.dojo-page):not(.store-page):not(.lounge-page):not(.go-nexus-page):not(.games-page):not(.album-page):not(.friends-page):not(.guild-page):not(.profile-shell):not(.onboarding-page):not(.legal-page):not(.arena-shell):not(.evo-auth-page):not(.admin-shell):not(.supervisor-page) {
    background-image:
        var(--forest-rpg-sky-layer, url('/images/themes/forest/forest-rpg-sky-layer.svg?v=4')),
        url('/images/themes/forest/fairy-depth-bg.svg?v=4'),
        radial-gradient(ellipse 82% 48% at 50% -12%, rgba(255, 234, 180, 0.36), transparent 60%),
        radial-gradient(ellipse 64% 46% at 88% 90%, rgba(212, 184, 255, 0.24), transparent 58%);
    background-size: cover, cover, auto, auto;
    background-position: center top, center top, center, center;
}

html[data-evo-theme="ink"] .forest-world--play::before {
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 230, 173, 0.3), transparent 32%),
        radial-gradient(circle at 84% 14%, rgba(239, 179, 203, 0.24), transparent 38%),
        radial-gradient(circle at 56% 78%, rgba(163, 221, 150, 0.24), transparent 42%);
}

html[data-evo-theme="ink"] .forest-hero {
    border-color: rgba(163, 113, 62, 0.42);
    background-image:
        linear-gradient(180deg, rgba(255, 252, 240, 0.14), rgba(105, 68, 34, 0.28)),
        var(--forest-rpg-sky-layer, var(--forest-hero-bg, url('/images/themes/forest/fairy-hero-scene.svg?v=4'))),
        var(--forest-hero-bg, url('/images/themes/forest/fairy-hero-scene.svg?v=4'));
    background-size: cover, cover, cover;
    background-position: center top, center 22%, center 36%;
    box-shadow:
        0 24px 52px rgba(74, 52, 26, 0.3),
        inset 0 0 0 1px rgba(255, 247, 230, 0.44);
}

html[data-evo-theme="ink"] .forest-hero__veil {
    background:
        linear-gradient(180deg, rgba(255, 247, 227, 0.06) 0%, rgba(255, 247, 227, 0.04) 38%, rgba(70, 47, 23, 0.5) 100%),
        radial-gradient(ellipse 84% 54% at 50% 100%, rgba(255, 228, 162, 0.26), transparent 76%);
}

html[data-evo-theme="ink"] .forest-story-card {
    border-color: rgba(167, 117, 64, 0.52);
    background:
        linear-gradient(165deg, rgba(255, 249, 230, 0.9), rgba(236, 214, 176, 0.9)),
        var(--forest-rpg-quest-panel, url('/images/themes/forest/forest-rpg-panel-quest.svg?v=4')) center / cover;
    box-shadow:
        0 20px 36px rgba(85, 58, 29, 0.3),
        inset 0 1px 0 rgba(255, 252, 244, 0.8);
}

html[data-evo-theme="ink"] .forest-story-card::after {
    opacity: 0.3;
}

html[data-evo-theme="ink"] .forest-story-card__crest {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 3;
    width: 68px;
    height: 68px;
    margin-left: -34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 243, 213, 0.88);
    background: rgba(255, 250, 238, 0.9);
    box-shadow: 0 10px 20px rgba(86, 61, 31, 0.28);
    overflow: hidden;
    animation: forest-soft-bob 4.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-story-card__crest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-evo-theme="ink"] .forest-hero__kicker {
    color: #62834b;
}

html[data-evo-theme="ink"] .forest-hero__title {
    color: var(--forest-ink-main);
    text-shadow: 0 2px 0 rgba(255, 249, 236, 0.86);
}

html[data-evo-theme="ink"] .forest-hero__sub {
    color: var(--forest-ink-secondary);
    font-weight: 700;
}

html[data-evo-theme="ink"] .forest-plank {
    border-color: rgba(121, 81, 43, 0.6);
    color: #3d2a1a;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(90, 56, 24, 0.12)),
        var(--forest-rpg-btn-main, var(--forest-plank-bg, url('/images/themes/forest/forest-rpg-button-main.svg?v=4'))) center / cover;
    box-shadow:
        0 14px 22px rgba(90, 60, 31, 0.28),
        inset 0 2px 0 rgba(255, 249, 234, 0.72);
}

html[data-evo-theme="ink"] .forest-plank--go {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(87, 52, 23, 0.12)),
        var(--forest-plank-bg, var(--forest-rpg-btn-main, url('/images/themes/forest/forest-rpg-button-main.svg?v=4'))) center / cover;
}

html[data-evo-theme="ink"] .forest-plank--soft,
html[data-evo-theme="ink"] .forest-plank--go-soft {
    border-color: rgba(87, 122, 58, 0.54);
    color: #304221;
    text-shadow: 0 1px 0 rgba(248, 255, 232, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(84, 110, 56, 0.12)),
        var(--forest-plank-bg, var(--forest-rpg-btn-soft, url('/images/themes/forest/forest-rpg-button-soft.svg?v=4'))) center / cover;
}

html[data-evo-theme="ink"] .forest-plank__text {
    text-shadow: 0 1px 0 rgba(255, 246, 226, 0.74);
}

html[data-evo-theme="ink"] .forest-focus-strip {
    border-color: rgba(165, 116, 65, 0.44);
}

html[data-evo-theme="ink"] .forest-focus-strip__line {
    color: #fff8ed;
}

html[data-evo-theme="ink"] .forest-dock::before {
    background:
        linear-gradient(180deg, rgba(255, 239, 206, 0.92), rgba(225, 190, 140, 0.92)),
        var(--forest-dock-rpg, var(--forest-dock-bg, url('/images/themes/forest/forest-rpg-dock-shell.svg?v=4'))) center / cover;
    border-color: rgba(133, 91, 50, 0.42);
}

html[data-evo-theme="ink"] .forest-dock__item {
    color: #4a3926;
    background: linear-gradient(180deg, rgba(255, 247, 230, 0.78), rgba(247, 225, 184, 0.58));
    border-color: rgba(142, 99, 56, 0.26);
}

html[data-evo-theme="ink"] .forest-dock__item--play {
    background:
        radial-gradient(150% 130% at 50% 0%, rgba(255, 255, 255, 0.4), transparent 56%),
        linear-gradient(180deg, #f3a9a3, #cf7568);
    border-color: rgba(136, 73, 64, 0.56);
}

html[data-evo-theme="ink"] .forest-dock__item--play .forest-dock__label {
    color: #fff8ef;
}

html[data-evo-theme="ink"] .forest-dock__label {
    color: #3f2f20;
}

html[data-evo-theme="ink"] .forest-dock__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-evo-theme="ink"] .forest-dock__glyph-art {
    display: block;
    width: 1.36rem;
    height: 1.36rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(79, 53, 26, 0.26);
}

html[data-evo-theme="ink"] .forest-dock__glyph-art--play {
    width: 1.62rem;
    height: 1.62rem;
    box-shadow: 0 6px 12px rgba(84, 34, 28, 0.32);
    animation: forest-soft-bob 3.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-bubbles__stage {
    border-color: rgba(170, 121, 70, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.94), rgba(232, 210, 172, 0.9)),
        var(--forest-rpg-quest-panel, var(--forest-library-bg, url('/images/themes/forest/forest-rpg-panel-quest.svg?v=4'))) center / cover;
}

html[data-evo-theme="ink"] .forest-bubbles__title {
    color: #3c2919;
    font-weight: 700;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card,
html[data-evo-theme="ink"] .forest-bubble--item-card {
    border-color: rgba(158, 112, 66, 0.28);
    background:
        linear-gradient(160deg, rgba(255, 252, 240, 0.94), rgba(241, 226, 194, 0.9));
}

html[data-evo-theme="ink"] .forest-bubble__emoji--art {
    padding: 0;
    overflow: hidden;
}

html[data-evo-theme="ink"] .forest-bubble__emoji-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

html[data-evo-theme="ink"] .forest-bubble__label {
    color: #3e2e20;
}

@keyframes forest-soft-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-story-card__crest {
        width: 58px;
        height: 58px;
        margin-left: -29px;
    }

    html[data-evo-theme="ink"] .forest-dock__glyph-art--play {
        width: 1.45rem;
        height: 1.45rem;
    }
}

/* Forest wave-7 fairy animation uplift */
html[data-evo-theme="ink"] .forest-hero__clouds,
html[data-evo-theme="ink"] .forest-hero__fireflies,
html[data-evo-theme="ink"] .forest-hero__vines,
html[data-evo-theme="ink"] .forest-hero__go-banner,
html[data-evo-theme="ink"] .forest-hero__go-bowls,
html[data-evo-theme="ink"] .forest-hero__kifu-charms,
html[data-evo-theme="ink"] .forest-hero__go-stamp,
html[data-evo-theme="ink"] .forest-dock__trim,
html[data-evo-theme="ink"] .forest-dock__fireflies,
html[data-evo-theme="ink"] .forest-dock__stamp,
html[data-evo-theme="ink"] .forest-dock__bowls,
html[data-evo-theme="ink"] .forest-bubbles__lanterns,
html[data-evo-theme="ink"] .forest-bubbles__trim,
html[data-evo-theme="ink"] .forest-bubbles__clouds {
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-hero__clouds {
    position: absolute;
    inset: -6% -4% auto;
    height: 54%;
    background: var(--forest-rpg-clouds) center top / cover no-repeat;
    opacity: 0.54;
    mix-blend-mode: screen;
    animation: forest-cloud-drift 42s linear infinite;
}

html[data-evo-theme="ink"] .forest-hero__vines {
    position: absolute;
    inset: -2% -4% auto;
    height: 50%;
    background: var(--forest-rpg-vines) center top / cover no-repeat;
    opacity: 0.58;
    transform-origin: 50% 0;
    animation: forest-vine-sway 9s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-hero__fireflies {
    position: absolute;
    inset: 0;
    background: var(--forest-rpg-fireflies) center / cover no-repeat;
    opacity: 0.52;
    mix-blend-mode: screen;
    animation: forest-firefly-drift 10s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-hero__go-banner {
    position: absolute;
    top: 14%;
    left: 50%;
    width: min(76%, 520px);
    aspect-ratio: 1200 / 360;
    transform: translateX(-50%);
    background: var(--forest-rpg-go-banner) center / contain no-repeat;
    opacity: 0.36;
    filter: drop-shadow(0 8px 14px rgba(79, 54, 28, 0.24));
}

html[data-evo-theme="ink"] .forest-hero__kifu-charms {
    position: absolute;
    right: 14%;
    bottom: 28%;
    width: min(44%, 270px);
    aspect-ratio: 980 / 420;
    background: var(--forest-rpg-kifu-charms) center / contain no-repeat;
    opacity: 0.64;
    animation: forest-charms-float 8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-hero__go-bowls {
    position: absolute;
    left: 2%;
    bottom: 6%;
    width: min(44%, 250px);
    aspect-ratio: 760 / 360;
    background: var(--forest-rpg-go-bowls) center / contain no-repeat;
    opacity: 0.72;
}

html[data-evo-theme="ink"] .forest-hero__go-stamp {
    position: absolute;
    top: 12%;
    right: 6%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--forest-rpg-go-stamp) center / cover no-repeat;
    box-shadow: 0 6px 16px rgba(74, 51, 25, 0.22);
    opacity: 0.72;
    animation: forest-stamp-pulse 6.5s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-story-card::before {
    background:
        var(--forest-rpg-panel-trim) center / cover no-repeat,
        radial-gradient(circle at 22% 28%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 52%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 28%, rgba(71, 59, 37, 0.36) 0 2px, transparent 3px);
    opacity: 0.34;
}

html[data-evo-theme="ink"] .forest-focus-strip__seal {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--forest-rpg-go-stamp) center / cover no-repeat;
    box-shadow: 0 3px 9px rgba(82, 56, 28, 0.24);
    opacity: 0.84;
    animation: forest-soft-bob 4s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-plank__shine {
    animation: forest-button-shine 4.6s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-dock {
    overflow: hidden;
}

html[data-evo-theme="ink"] .forest-dock__trim {
    position: absolute;
    inset: -2px 10px auto;
    height: 92%;
    background: var(--forest-dock-trim) center top / cover no-repeat;
    opacity: 0.54;
    z-index: -1;
}

html[data-evo-theme="ink"] .forest-dock__fireflies {
    position: absolute;
    inset: -30% 0 auto;
    height: 120%;
    background: var(--forest-dock-fireflies) center top / cover no-repeat;
    opacity: 0.34;
    mix-blend-mode: screen;
    z-index: -1;
    animation: forest-firefly-drift 11s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-dock__stamp {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--forest-dock-go-stamp) center / cover no-repeat;
    opacity: 0.72;
}

html[data-evo-theme="ink"] .forest-dock__bowls {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 52px;
    height: 26px;
    transform: translateX(-50%);
    background: var(--forest-dock-go-bowls) center / contain no-repeat;
    opacity: 0.88;
}

html[data-evo-theme="ink"] .forest-dock__orb {
    animation: forest-dock-twinkle 3.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-dock__mushroom {
    animation: forest-soft-bob 4.6s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-bubbles__stage {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

html[data-evo-theme="ink"] .forest-bubbles__lanterns {
    position: absolute;
    inset: 0;
    background: var(--forest-rpg-library-lanterns) center top / cover no-repeat;
    opacity: 0.42;
    mix-blend-mode: screen;
    z-index: 0;
    animation: forest-vine-sway 10s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-bubbles__trim {
    position: absolute;
    inset: 0;
    background: var(--forest-rpg-panel-trim) center / cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

html[data-evo-theme="ink"] .forest-bubbles__clouds {
    position: absolute;
    inset: 0;
    background:
        var(--forest-rpg-clouds) center top / cover no-repeat,
        var(--forest-rpg-fireflies) center / cover no-repeat;
    opacity: 0.26;
    mix-blend-mode: screen;
    z-index: 0;
    animation: forest-cloud-drift 34s linear infinite reverse;
}

html[data-evo-theme="ink"] .forest-bubbles__stage > *:not(.forest-bubbles__lanterns):not(.forest-bubbles__trim):not(.forest-bubbles__clouds) {
    position: relative;
    z-index: 1;
}

html[data-evo-theme="ink"] .forest-bubbles__dismiss {
    z-index: 4;
}

html[data-evo-theme="ink"] .forest-bubble--cat-card,
html[data-evo-theme="ink"] .forest-bubble--item-card {
    background:
        linear-gradient(160deg, rgba(255, 252, 240, 0.94), rgba(241, 226, 194, 0.9)),
        var(--forest-rpg-panel-trim) center / cover no-repeat;
}

@keyframes forest-cloud-drift {
    from { transform: translateX(-2.5%); }
    to { transform: translateX(2.5%); }
}

@keyframes forest-firefly-drift {
    from { opacity: 0.28; transform: translateY(0); }
    to { opacity: 0.52; transform: translateY(-6px); }
}

@keyframes forest-vine-sway {
    0%, 100% { transform: rotate(-0.6deg); }
    50% { transform: rotate(0.8deg); }
}

@keyframes forest-charms-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes forest-stamp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes forest-button-shine {
    0%, 100% {
        opacity: 0.62;
        transform: translateY(0);
    }
    50% {
        opacity: 0.94;
        transform: translateY(-1px);
    }
}

@keyframes forest-dock-twinkle {
    0%, 100% { opacity: 0.62; }
    50% { opacity: 0.95; }
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-hero__go-stamp {
        width: 52px;
        height: 52px;
    }

    html[data-evo-theme="ink"] .forest-hero__go-banner {
        top: 16%;
        width: min(86%, 420px);
    }

    html[data-evo-theme="ink"] .forest-hero__kifu-charms {
        right: 12%;
        width: min(52%, 210px);
    }

    html[data-evo-theme="ink"] .forest-hero__go-bowls {
        width: min(50%, 180px);
    }

    html[data-evo-theme="ink"] .forest-dock__bowls {
        width: 44px;
        height: 22px;
        top: -12px;
    }

    html[data-evo-theme="ink"] .forest-focus-strip__seal {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-hero__clouds,
    html[data-evo-theme="ink"] .forest-hero__fireflies,
    html[data-evo-theme="ink"] .forest-hero__vines,
    html[data-evo-theme="ink"] .forest-hero__kifu-charms,
    html[data-evo-theme="ink"] .forest-hero__go-stamp,
    html[data-evo-theme="ink"] .forest-focus-strip__seal,
    html[data-evo-theme="ink"] .forest-plank__shine,
    html[data-evo-theme="ink"] .forest-dock__orb,
    html[data-evo-theme="ink"] .forest-dock__mushroom,
    html[data-evo-theme="ink"] .forest-dock__fireflies,
    html[data-evo-theme="ink"] .forest-bubbles__lanterns,
    html[data-evo-theme="ink"] .forest-bubbles__clouds {
        animation: none !important;
    }
}

/* Forest wave-8 Gemini batch layers */
html[data-evo-theme="ink"] .forest-hero__parallax,
html[data-evo-theme="ink"] .forest-hero__altar,
html[data-evo-theme="ink"] .forest-hero__star,
html[data-evo-theme="ink"] .forest-focus-strip__clouds,
html[data-evo-theme="ink"] .forest-focus-strip__fireflies,
html[data-evo-theme="ink"] .forest-focus-strip__vines,
html[data-evo-theme="ink"] .forest-plank__pulse {
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-hero__parallax {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

html[data-evo-theme="ink"] .forest-hero__parallax--back {
    background-image: var(--forest-rpg-hero-back);
    opacity: 0.3;
    animation: forest-hero-back-drift 34s linear infinite alternate;
}

html[data-evo-theme="ink"] .forest-hero__parallax--mid {
    background-image: var(--forest-rpg-hero-mid);
    opacity: 0.48;
    transform-origin: 50% 100%;
    animation: forest-hero-mid-bob 11s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-hero__parallax--front {
    background-image: var(--forest-rpg-hero-front);
    opacity: 0.52;
    transform-origin: 50% 100%;
    animation: forest-hero-front-sway 9s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-hero__clouds {
    background-image: var(--forest-rpg-clouds), var(--forest-rpg-clouds-near);
    background-position: center top, center center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.62;
    animation: forest-cloud-drift 30s linear infinite;
}

html[data-evo-theme="ink"] .forest-hero__fireflies {
    background-image: var(--forest-rpg-fireflies), var(--forest-rpg-fireflies-near);
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.58;
    animation: forest-firefly-drift-strong 8s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-hero__altar {
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: min(56%, 360px);
    aspect-ratio: 16 / 9;
    transform: translateX(-50%);
    background: var(--forest-rpg-go-altar) center / contain no-repeat;
    opacity: 0.45;
    filter: drop-shadow(0 14px 18px rgba(78, 52, 26, 0.24));
    animation: forest-altar-float 7.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-hero__star {
    position: absolute;
    top: 17%;
    left: 10%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--forest-rpg-go-star) center / cover no-repeat;
    opacity: 0.74;
    filter: drop-shadow(0 5px 10px rgba(72, 49, 25, 0.26));
    animation: forest-stamp-pulse 5.3s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-focus-strip {
    isolation: isolate;
}

html[data-evo-theme="ink"] .forest-focus-strip__clouds,
html[data-evo-theme="ink"] .forest-focus-strip__fireflies,
html[data-evo-theme="ink"] .forest-focus-strip__vines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

html[data-evo-theme="ink"] .forest-focus-strip__clouds {
    background: var(--forest-focus-clouds) center / cover no-repeat;
    opacity: 0.38;
    mix-blend-mode: screen;
    animation: forest-cloud-drift 36s linear infinite reverse;
}

html[data-evo-theme="ink"] .forest-focus-strip__fireflies {
    background:
        var(--forest-focus-fireflies) center / cover no-repeat,
        var(--forest-focus-stones) center / cover no-repeat;
    opacity: 0.34;
    mix-blend-mode: screen;
    animation: forest-firefly-drift-strong 9s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-focus-strip__vines {
    background: var(--forest-focus-vines) center top / cover no-repeat;
    opacity: 0.42;
    transform-origin: 50% 0;
    animation: forest-vine-sway 8.4s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-focus-strip__caption {
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-focus-strip__seal {
    background: var(--forest-focus-seal, var(--forest-rpg-go-stamp)) center / cover no-repeat;
}

html[data-evo-theme="ink"] .forest-plank {
    overflow: hidden;
}

html[data-evo-theme="ink"] .forest-plank__pulse {
    position: absolute;
    inset: -6% -2%;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.42), transparent 36%),
        radial-gradient(circle at 72% 86%, rgba(255, 226, 170, 0.34), transparent 38%);
    opacity: 0.56;
    animation: forest-cta-breathe 3.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-plank__text,
html[data-evo-theme="ink"] .forest-plank__stones,
html[data-evo-theme="ink"] .forest-plank__shine {
    z-index: 1;
}

html[data-evo-theme="ink"] .forest-plank__shine {
    animation: forest-button-shine 3.2s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-dock::before {
    background:
        linear-gradient(180deg, rgba(255, 239, 206, 0.93), rgba(224, 188, 137, 0.92)),
        var(--forest-dock-rpg-alt, var(--forest-dock-rpg, var(--forest-dock-bg))) center / cover;
}

html[data-evo-theme="ink"] .forest-dock__fireflies {
    background:
        var(--forest-dock-fireflies, var(--forest-rpg-fireflies)) center top / cover no-repeat;
    opacity: 0.42;
    animation: forest-firefly-drift-strong 8.6s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-dock__item--play::before {
    content: '';
    position: absolute;
    inset: 4px 8px auto;
    height: 34%;
    border-radius: 14px;
    background:
        var(--forest-dock-go-kifu, var(--forest-rpg-kifu-charms)) center / contain no-repeat;
    opacity: 0.3;
    animation: forest-soft-bob 6.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-dock__glyph-art--play {
    animation: forest-cta-breathe 4.2s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-bubbles__stage {
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.93), rgba(232, 210, 172, 0.9)),
        var(--forest-library-bg-alt, var(--forest-library-bg)) center / cover;
}

html[data-evo-theme="ink"] .forest-bubbles__lanterns {
    opacity: 0.48;
    animation: forest-hero-mid-bob 9.4s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-bubbles__clouds {
    opacity: 0.3;
    animation: forest-cloud-drift 29s linear infinite;
}

@keyframes forest-hero-back-drift {
    from { transform: translateX(-1.4%) scale(1.01); }
    to { transform: translateX(1.4%) scale(1.04); }
}

@keyframes forest-hero-mid-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes forest-hero-front-sway {
    0%, 100% { transform: rotate(-0.7deg); }
    50% { transform: rotate(1deg); }
}

@keyframes forest-altar-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes forest-firefly-drift-strong {
    from { opacity: 0.26; transform: translateY(0); }
    to { opacity: 0.62; transform: translateY(-8px); }
}

@keyframes forest-cta-breathe {
    0%, 100% {
        opacity: 0.52;
        filter: saturate(1) brightness(1);
    }
    50% {
        opacity: 0.84;
        filter: saturate(1.08) brightness(1.06);
    }
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-hero__star {
        width: 48px;
        height: 48px;
    }

    html[data-evo-theme="ink"] .forest-hero__altar {
        width: min(62%, 300px);
        bottom: 18%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-hero__parallax--back,
    html[data-evo-theme="ink"] .forest-hero__parallax--mid,
    html[data-evo-theme="ink"] .forest-hero__parallax--front,
    html[data-evo-theme="ink"] .forest-hero__altar,
    html[data-evo-theme="ink"] .forest-hero__star,
    html[data-evo-theme="ink"] .forest-focus-strip__clouds,
    html[data-evo-theme="ink"] .forest-focus-strip__fireflies,
    html[data-evo-theme="ink"] .forest-focus-strip__vines,
    html[data-evo-theme="ink"] .forest-plank__pulse,
    html[data-evo-theme="ink"] .forest-dock__item--play::before,
    html[data-evo-theme="ink"] .forest-dock__glyph-art--play {
        animation: none !important;
    }
}

/* Forest wave-9: clean dock without decorative backgrounds (user request) */
html[data-evo-theme="ink"] .forest-dock::before {
    background: linear-gradient(180deg, rgba(250, 238, 214, 0.94), rgba(240, 221, 184, 0.92));
    border-color: rgba(151, 114, 66, 0.38);
}

html[data-evo-theme="ink"] .forest-dock::after,
html[data-evo-theme="ink"] .forest-dock__trim,
html[data-evo-theme="ink"] .forest-dock__fireflies,
html[data-evo-theme="ink"] .forest-dock__stamp,
html[data-evo-theme="ink"] .forest-dock__bowls,
html[data-evo-theme="ink"] .forest-dock__orb,
html[data-evo-theme="ink"] .forest-dock__mushroom,
html[data-evo-theme="ink"] .forest-dock__item--play::before {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-dock__glyph,
html[data-evo-theme="ink"] .forest-dock__lib-icon {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-dock__item {
    min-height: 56px;
    align-content: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-evo-theme="ink"] .forest-dock__item--play {
    margin-top: -0.85rem;
    min-height: 62px;
    border-radius: 20px 20px 14px 14px;
    background: linear-gradient(180deg, #f2b2aa, #cf776a);
    border: 1px solid rgba(138, 78, 68, 0.44);
    box-shadow: 0 8px 18px rgba(92, 51, 43, 0.24);
}

/* Forest wave-10: calm hub visual simplification */
html[data-evo-theme="ink"] .forest-focus-strip {
    display: none;
}

html[data-evo-theme="ink"] .forest-hero {
    min-height: clamp(340px, 60vh, 520px);
    border-color: rgba(151, 109, 62, 0.44);
    background-image:
        linear-gradient(180deg, rgba(255, 246, 224, 0.08), rgba(67, 45, 24, 0.36)),
        var(--forest-hero-bg, url('/images/themes/forest/hero/hero-backdrop-dawn.jpg?v=6'));
    background-size: cover, cover;
    background-position: center 32%;
    box-shadow:
        0 22px 46px rgba(67, 45, 24, 0.26),
        inset 0 0 0 1px rgba(255, 248, 234, 0.4);
}

html[data-evo-theme="ink"] .forest-hero::before,
html[data-evo-theme="ink"] .forest-hero::after {
    display: none;
}

html[data-evo-theme="ink"] .forest-hero__scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-hero__canopy,
html[data-evo-theme="ink"] .forest-hero__parallax,
html[data-evo-theme="ink"] .forest-hero__clouds,
html[data-evo-theme="ink"] .forest-hero__vines,
html[data-evo-theme="ink"] .forest-hero__go-banner,
html[data-evo-theme="ink"] .forest-hero__altar,
html[data-evo-theme="ink"] .forest-hero__board,
html[data-evo-theme="ink"] .forest-hero__scroll,
html[data-evo-theme="ink"] .forest-hero__kifu-charms,
html[data-evo-theme="ink"] .forest-hero__mist,
html[data-evo-theme="ink"] .forest-hero__stones,
html[data-evo-theme="ink"] .forest-hero__bowl,
html[data-evo-theme="ink"] .forest-hero__go-bowls,
html[data-evo-theme="ink"] .forest-hero__mushrooms,
html[data-evo-theme="ink"] .forest-hero__go-stamp,
html[data-evo-theme="ink"] .forest-hero__star,
html[data-evo-theme="ink"] .forest-hero__glow {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-hero__fireflies {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--forest-rpg-fireflies, var(--forest-hero-bg)) center / cover no-repeat;
    opacity: 0.22;
    mix-blend-mode: screen;
    animation: forest-firefly-drift 16s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-hero__veil {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(255, 249, 233, 0.04) 0%, rgba(255, 249, 233, 0.02) 42%, rgba(63, 41, 22, 0.56) 100%),
        radial-gradient(ellipse 84% 56% at 50% 100%, rgba(255, 231, 178, 0.2), transparent 74%);
}

html[data-evo-theme="ink"] .forest-hero__top {
    z-index: 3;
}

html[data-evo-theme="ink"] .forest-hero__center {
    z-index: 4;
    padding: 1.05rem 1rem 1.2rem;
}

html[data-evo-theme="ink"] .forest-story-card {
    border-color: rgba(160, 116, 65, 0.44);
    background: linear-gradient(165deg, rgba(255, 249, 236, 0.95), rgba(247, 235, 210, 0.95));
    box-shadow:
        0 18px 34px rgba(67, 45, 24, 0.24),
        inset 0 1px 0 rgba(255, 252, 242, 0.82);
}

html[data-evo-theme="ink"] .forest-story-card::before,
html[data-evo-theme="ink"] .forest-story-card::after {
    display: none;
}

html[data-evo-theme="ink"] .forest-story-card__crest {
    top: -18px;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    border: 2px solid rgba(255, 240, 206, 0.92);
    background: rgba(255, 250, 239, 0.94);
    box-shadow: 0 8px 16px rgba(86, 61, 31, 0.22);
    animation: none;
}

html[data-evo-theme="ink"] .forest-hero__kicker {
    color: #597740;
}

html[data-evo-theme="ink"] .forest-hero__title {
    color: #3c2a1b;
    text-shadow: none;
}

html[data-evo-theme="ink"] .forest-hero__sub {
    max-width: 34ch;
    color: #4c3a29;
    font-weight: 600;
    text-shadow: none;
}

html[data-evo-theme="ink"] .forest-plank {
    border-radius: 16px;
    border: 1px solid rgba(123, 85, 46, 0.48);
    background: linear-gradient(180deg, #f5d8b5, #e5b07a);
    color: #3e2a18;
    box-shadow:
        0 8px 16px rgba(83, 55, 27, 0.22),
        inset 0 1px 0 rgba(255, 248, 233, 0.78);
}

html[data-evo-theme="ink"] .forest-plank--go {
    background: linear-gradient(180deg, #f7ddbb, #e7b982);
}

html[data-evo-theme="ink"] .forest-plank--soft,
html[data-evo-theme="ink"] .forest-plank--go-soft {
    border-color: rgba(95, 128, 65, 0.46);
    background: linear-gradient(180deg, #dceec4, #b7d58f);
    color: #2f4521;
}

html[data-evo-theme="ink"] .forest-plank__pulse,
html[data-evo-theme="ink"] .forest-plank__shine,
html[data-evo-theme="ink"] .forest-plank__stones {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-plank__text {
    text-shadow: none;
    letter-spacing: 0.01em;
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-hero {
        min-height: 400px;
    }

    html[data-evo-theme="ink"] .forest-hero__center {
        padding: 0.82rem 0.8rem 1rem;
    }

    html[data-evo-theme="ink"] .forest-story-card {
        border-radius: 20px;
        padding: 0.95rem 0.9rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-hero__fireflies {
        animation: none !important;
    }
}

/* Forest wave-11: Map Village hub */
html[data-evo-theme="ink"] .forest-world--village {
    gap: 1rem;
}

html[data-evo-theme="ink"] .forest-village {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 72vh, 760px);
    border-radius: 34px;
    border: 2px solid rgba(142, 101, 58, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 248, 229, 0.12), rgba(45, 79, 54, 0.24)),
        var(--forest-village-bg, url('/images/themes/forest/hero/hero-backdrop-dawn.jpg?v=6')) center / cover;
    box-shadow:
        0 24px 54px rgba(68, 49, 25, 0.26),
        inset 0 0 0 1px rgba(255, 250, 238, 0.46);
    isolation: isolate;
}

html[data-evo-theme="ink"] .forest-village::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 46% at 50% 18%, rgba(255, 244, 206, 0.32), transparent 62%),
        linear-gradient(180deg, rgba(255, 248, 230, 0.08), transparent 35%, rgba(34, 54, 31, 0.32));
}

html[data-evo-theme="ink"] .forest-village__scene,
html[data-evo-theme="ink"] .forest-village__sky,
html[data-evo-theme="ink"] .forest-village__canopy,
html[data-evo-theme="ink"] .forest-village__waterfall,
html[data-evo-theme="ink"] .forest-village__creek,
html[data-evo-theme="ink"] .forest-village__paths,
html[data-evo-theme="ink"] .forest-village__fireflies {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village__sky {
    background:
        radial-gradient(circle at 52% 6%, rgba(255, 239, 180, 0.65), transparent 20%),
        radial-gradient(circle at 16% 22%, rgba(200, 226, 174, 0.28), transparent 28%),
        radial-gradient(circle at 88% 26%, rgba(190, 184, 255, 0.22), transparent 30%);
}

html[data-evo-theme="ink"] .forest-village__canopy {
    z-index: 1;
    background:
        radial-gradient(ellipse 48% 28% at 8% 0%, rgba(40, 91, 48, 0.68), transparent 72%),
        radial-gradient(ellipse 58% 34% at 92% 0%, rgba(33, 82, 44, 0.72), transparent 72%),
        radial-gradient(ellipse 42% 24% at 50% -4%, rgba(55, 119, 58, 0.48), transparent 76%);
    filter: saturate(1.06);
}

html[data-evo-theme="ink"] .forest-village__waterfall {
    inset: 18% 4% 16% auto;
    width: 21%;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(226, 250, 255, 0.04), rgba(199, 237, 245, 0.48), rgba(115, 181, 185, 0.2)),
        repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.38) 0 2px, transparent 2px 10px);
    opacity: 0.58;
    filter: blur(0.3px);
    transform: rotate(9deg);
}

html[data-evo-theme="ink"] .forest-village__creek {
    top: auto;
    height: 36%;
    background:
        radial-gradient(ellipse 38% 16% at 22% 75%, rgba(91, 160, 167, 0.38), transparent 70%),
        radial-gradient(ellipse 46% 14% at 54% 88%, rgba(81, 151, 154, 0.4), transparent 72%),
        radial-gradient(ellipse 28% 12% at 82% 66%, rgba(97, 170, 177, 0.32), transparent 70%);
    opacity: 0.84;
}

html[data-evo-theme="ink"] .forest-village__paths {
    z-index: 1;
    background:
        radial-gradient(ellipse 42% 12% at 50% 47%, rgba(239, 219, 167, 0.52), transparent 70%),
        radial-gradient(ellipse 28% 8% at 24% 45%, rgba(237, 214, 162, 0.48), transparent 70%),
        radial-gradient(ellipse 24% 8% at 75% 50%, rgba(237, 214, 162, 0.46), transparent 70%),
        radial-gradient(ellipse 28% 9% at 28% 74%, rgba(237, 214, 162, 0.44), transparent 72%),
        radial-gradient(ellipse 32% 10% at 72% 72%, rgba(237, 214, 162, 0.44), transparent 72%);
}

html[data-evo-theme="ink"] .forest-village__fireflies {
    z-index: 3;
    background:
        var(--forest-rpg-fireflies, url('/images/themes/forest/focus/focus-overlay-fireflies.png?v=6')) center / cover no-repeat,
        radial-gradient(circle at 18% 32%, rgba(255, 238, 153, 0.75) 0 2px, transparent 5px),
        radial-gradient(circle at 74% 22%, rgba(255, 238, 153, 0.7) 0 2px, transparent 5px),
        radial-gradient(circle at 58% 76%, rgba(255, 238, 153, 0.65) 0 2px, transparent 5px);
    opacity: 0.42;
    mix-blend-mode: screen;
    animation: forest-firefly-drift 16s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-village__top {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: flex-start;
    padding: 0.95rem 1rem 0;
}

html[data-evo-theme="ink"] .forest-village__profile {
    background: rgba(255, 248, 232, 0.86);
    border-color: rgba(142, 101, 58, 0.34);
    color: #3d2b1c;
    box-shadow: 0 8px 18px rgba(72, 52, 28, 0.18);
}

html[data-evo-theme="ink"] .forest-village__intro {
    position: relative;
    z-index: 5;
    width: min(92%, 470px);
    margin: 0.6rem auto 0;
    padding: 0.82rem 1rem 0.92rem;
    border-radius: 24px;
    border: 1px solid rgba(151, 108, 62, 0.28);
    background: rgba(255, 249, 234, 0.82);
    box-shadow:
        0 14px 28px rgba(72, 52, 28, 0.18),
        inset 0 1px 0 rgba(255, 253, 246, 0.9);
    text-align: center;
}

html[data-evo-theme="ink"] .forest-village .forest-hero__kicker {
    margin-bottom: 0.2rem;
    color: #617f42;
}

html[data-evo-theme="ink"] .forest-village .forest-hero__title {
    color: #3b2a1b;
    font-size: clamp(1.75rem, 5.8vw, 2.75rem);
    text-shadow: none;
}

html[data-evo-theme="ink"] .forest-village .forest-hero__sub {
    max-width: 40ch;
    color: #51402d;
    font-size: 0.9rem;
    font-weight: 700;
}

html[data-evo-theme="ink"] .forest-village__map {
    position: relative;
    z-index: 4;
    width: min(100% - 1.2rem, 860px);
    min-height: 430px;
    margin: 0.4rem auto 0;
}

html[data-evo-theme="ink"] .forest-village__map-ring {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 236, 174, 0.6);
    box-shadow: 0 0 18px rgba(255, 231, 160, 0.32);
    opacity: 0.82;
}

html[data-evo-theme="ink"] .forest-village__map-ring--main {
    left: 35%;
    top: 16%;
    width: 30%;
    aspect-ratio: 1;
}

html[data-evo-theme="ink"] .forest-village__map-ring--left {
    left: 9%;
    top: 52%;
    width: 23%;
    aspect-ratio: 1.2 / 1;
}

html[data-evo-theme="ink"] .forest-village__map-ring--right {
    right: 9%;
    top: 52%;
    width: 25%;
    aspect-ratio: 1.2 / 1;
}

html[data-evo-theme="ink"] .forest-village-landmark {
    position: absolute;
    z-index: 5;
    display: grid;
    justify-items: center;
    gap: 0.38rem;
    width: min(28%, 174px);
    color: #3b2a1b;
    text-decoration: none;
    text-align: center;
    transform: translate(-50%, -50%);
    transition: transform var(--evo-transition), filter var(--evo-transition);
}

html[data-evo-theme="ink"] .forest-village-landmark:hover,
html[data-evo-theme="ink"] .forest-village-landmark:focus-visible {
    transform: translate(-50%, calc(-50% - 7px)) scale(1.03);
    filter: saturate(1.08);
    outline: none;
}

html[data-evo-theme="ink"] .forest-village-landmark--arena { left: 50%; top: 30%; }
html[data-evo-theme="ink"] .forest-village-landmark--school { left: 20%; top: 34%; }
html[data-evo-theme="ink"] .forest-village-landmark--dojo { left: 80%; top: 38%; }
html[data-evo-theme="ink"] .forest-village-landmark--myroom { left: 50%; top: 62%; }
html[data-evo-theme="ink"] .forest-village-landmark--store { left: 76%; top: 76%; }
html[data-evo-theme="ink"] .forest-village-landmark--stats { left: 22%; top: 78%; }
html[data-evo-theme="ink"] .forest-village-landmark--friends { left: 50%; top: 88%; }

html[data-evo-theme="ink"] .forest-village-landmark__halo {
    position: absolute;
    top: 40%;
    left: 50%;
    z-index: -1;
    width: 112%;
    aspect-ratio: 1 / 0.34;
    border-radius: 50%;
    border: 2px solid rgba(255, 236, 174, 0.68);
    box-shadow: 0 0 20px rgba(255, 229, 150, 0.46);
    transform: translate(-50%, -50%);
}

html[data-evo-theme="ink"] .forest-village-landmark__art {
    position: relative;
    display: block;
    width: clamp(78px, 11vw, 118px);
    height: clamp(74px, 10vw, 108px);
    filter: drop-shadow(0 10px 14px rgba(64, 43, 20, 0.28));
    animation: forest-village-pop 0.58s cubic-bezier(0.34, 1.35, 0.64, 1) backwards;
    animation-delay: calc(var(--village-i, 0) * 0.05s);
}

html[data-evo-theme="ink"] .forest-village-landmark__roof,
html[data-evo-theme="ink"] .forest-village-landmark__body,
html[data-evo-theme="ink"] .forest-village-landmark__mark {
    position: absolute;
    display: block;
}

html[data-evo-theme="ink"] .forest-village-landmark__label {
    display: grid;
    gap: 0.08rem;
    max-width: 170px;
    padding: 0.42rem 0.58rem;
    border-radius: 16px;
    border: 1px solid rgba(136, 94, 50, 0.28);
    background: rgba(255, 249, 233, 0.9);
    box-shadow: 0 8px 16px rgba(72, 52, 28, 0.16);
}

html[data-evo-theme="ink"] .forest-village-landmark__label strong {
    font-size: 0.8rem;
    line-height: 1.15;
}

html[data-evo-theme="ink"] .forest-village-landmark__label span {
    display: -webkit-box;
    overflow: hidden;
    color: #67513a;
    font-size: 0.68rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html[data-evo-theme="ink"] .forest-village-landmark__art--goban .forest-village-landmark__roof {
    display: none;
}

html[data-evo-theme="ink"] .forest-village-landmark__art--goban .forest-village-landmark__body {
    inset: 20% 8% 10%;
    border-radius: 14px;
    border: 2px solid rgba(94, 58, 24, 0.42);
    background:
        radial-gradient(circle at 34% 44%, #171411 0 7%, transparent 8%),
        radial-gradient(circle at 58% 58%, #f5efe2 0 7%, transparent 8%),
        radial-gradient(circle at 70% 36%, #171411 0 6%, transparent 7%),
        repeating-linear-gradient(90deg, rgba(85, 54, 24, 0.34) 0 2px, transparent 2px 17%),
        repeating-linear-gradient(0deg, rgba(85, 54, 24, 0.32) 0 2px, transparent 2px 17%),
        linear-gradient(145deg, #e8bd78, #c48849);
    box-shadow: inset 0 2px 0 rgba(255, 244, 207, 0.62);
    transform: perspective(260px) rotateX(16deg);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--treehouse .forest-village-landmark__roof,
html[data-evo-theme="ink"] .forest-village-landmark__art--shrine .forest-village-landmark__roof {
    left: 12%;
    right: 12%;
    top: 8%;
    height: 30%;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, #6f9a52, #446d35);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--treehouse .forest-village-landmark__body,
html[data-evo-theme="ink"] .forest-village-landmark__art--shrine .forest-village-landmark__body {
    left: 18%;
    right: 18%;
    bottom: 12%;
    height: 54%;
    border-radius: 14px;
    border: 2px solid rgba(92, 58, 30, 0.36);
    background: linear-gradient(160deg, #d7a766, #9b6838);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--treehouse .forest-village-landmark__mark,
html[data-evo-theme="ink"] .forest-village-landmark__art--shrine .forest-village-landmark__mark {
    left: 42%;
    bottom: 13%;
    width: 16%;
    height: 28%;
    border-radius: 999px 999px 4px 4px;
    background: #5b3820;
    box-shadow: -28px -10px 0 -7px rgba(255, 220, 124, 0.82), 28px -8px 0 -7px rgba(255, 220, 124, 0.82);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--shrine .forest-village-landmark__roof {
    background: linear-gradient(180deg, #8ec0dc, #4d7e9d);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--mushroom .forest-village-landmark__roof {
    left: 8%;
    right: 8%;
    top: 4%;
    height: 46%;
    border-radius: 54% 54% 22% 22%;
    background:
        radial-gradient(circle at 28% 38%, rgba(255, 241, 210, 0.95) 0 7%, transparent 8%),
        radial-gradient(circle at 62% 28%, rgba(255, 241, 210, 0.88) 0 6%, transparent 7%),
        linear-gradient(180deg, #df735c, #b74e44);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--mushroom .forest-village-landmark__body {
    left: 28%;
    right: 28%;
    bottom: 10%;
    height: 48%;
    border-radius: 18px 18px 12px 12px;
    background: linear-gradient(180deg, #f6d7a0, #c8955b);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--mushroom .forest-village-landmark__mark {
    left: 44%;
    bottom: 10%;
    width: 12%;
    height: 24%;
    border-radius: 999px 999px 4px 4px;
    background: #6d4325;
}

html[data-evo-theme="ink"] .forest-village-landmark__art--wagon .forest-village-landmark__roof {
    left: 12%;
    right: 12%;
    top: 12%;
    height: 38%;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(180deg, #b594e5, #7655b6);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--wagon .forest-village-landmark__body {
    left: 14%;
    right: 14%;
    bottom: 24%;
    height: 35%;
    border-radius: 12px;
    background: linear-gradient(180deg, #e9bd72, #a96f35);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--wagon .forest-village-landmark__mark {
    left: 18%;
    right: 18%;
    bottom: 12%;
    height: 18%;
    background:
        radial-gradient(circle at 12% 50%, #5a3922 0 10%, transparent 11%),
        radial-gradient(circle at 88% 50%, #5a3922 0 10%, transparent 11%);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--tower .forest-village-landmark__roof {
    left: 22%;
    right: 22%;
    top: 4%;
    height: 24%;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #d5a44e, #99632d);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--tower .forest-village-landmark__body {
    left: 30%;
    right: 30%;
    bottom: 10%;
    height: 66%;
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, #f0d99b, #aa7840);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--tower .forest-village-landmark__mark {
    left: 43%;
    top: 42%;
    width: 14%;
    height: 14%;
    border-radius: 50%;
    background: #fff1b4;
    box-shadow: 0 0 12px rgba(255, 230, 128, 0.7);
}

html[data-evo-theme="ink"] .forest-village-landmark__art--bridge .forest-village-landmark__roof {
    display: none;
}

html[data-evo-theme="ink"] .forest-village-landmark__art--bridge .forest-village-landmark__body {
    left: 10%;
    right: 10%;
    bottom: 26%;
    height: 32%;
    border-radius: 50% 50% 8px 8px;
    border-top: 12px solid #9b6a3f;
    border-bottom: 8px solid #6f492b;
    background: transparent;
}

html[data-evo-theme="ink"] .forest-village-landmark__art--bridge .forest-village-landmark__mark {
    left: 18%;
    right: 18%;
    bottom: 20%;
    height: 8%;
    border-radius: 999px;
    background: rgba(148, 215, 218, 0.72);
    box-shadow: 0 0 12px rgba(139, 220, 225, 0.45);
}

@keyframes forest-village-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.86);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-village {
        min-height: 680px;
        border-radius: 26px;
    }

    html[data-evo-theme="ink"] .forest-village__top {
        padding: 0.75rem 0.75rem 0;
    }

    html[data-evo-theme="ink"] .forest-village__profile {
        width: 100%;
    }

    html[data-evo-theme="ink"] .forest-village__intro {
        width: calc(100% - 1rem);
        margin-top: 0.55rem;
        padding: 0.78rem 0.82rem 0.86rem;
        border-radius: 20px;
    }

    html[data-evo-theme="ink"] .forest-village .forest-hero__title {
        font-size: clamp(1.72rem, 9vw, 2.35rem);
    }

    html[data-evo-theme="ink"] .forest-village .forest-hero__sub {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    html[data-evo-theme="ink"] .forest-village__map {
        width: calc(100% - 0.6rem);
        min-height: 465px;
        margin-top: 0.2rem;
    }

    html[data-evo-theme="ink"] .forest-village-landmark {
        width: min(38%, 136px);
    }

    html[data-evo-theme="ink"] .forest-village-landmark--arena { left: 50%; top: 20%; }
    html[data-evo-theme="ink"] .forest-village-landmark--school { left: 25%; top: 33%; }
    html[data-evo-theme="ink"] .forest-village-landmark--dojo { left: 76%; top: 36%; }
    html[data-evo-theme="ink"] .forest-village-landmark--myroom { left: 50%; top: 52%; }
    html[data-evo-theme="ink"] .forest-village-landmark--store { left: 76%; top: 70%; }
    html[data-evo-theme="ink"] .forest-village-landmark--stats { left: 24%; top: 72%; }
    html[data-evo-theme="ink"] .forest-village-landmark--friends { left: 50%; top: 88%; }

    html[data-evo-theme="ink"] .forest-village-landmark__art {
        width: 78px;
        height: 72px;
    }

    html[data-evo-theme="ink"] .forest-village-landmark__label {
        max-width: 124px;
        padding: 0.34rem 0.42rem;
        border-radius: 13px;
    }

    html[data-evo-theme="ink"] .forest-village-landmark__label strong {
        font-size: 0.72rem;
    }

    html[data-evo-theme="ink"] .forest-village-landmark__label span {
        font-size: 0.6rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 390px) {
    html[data-evo-theme="ink"] .forest-village {
        min-height: 650px;
    }

    html[data-evo-theme="ink"] .forest-village__intro {
        padding: 0.7rem 0.72rem 0.78rem;
    }

    html[data-evo-theme="ink"] .forest-village__map {
        min-height: 445px;
    }

    html[data-evo-theme="ink"] .forest-village-landmark__art {
        width: 70px;
        height: 66px;
    }

    html[data-evo-theme="ink"] .forest-village-landmark__label {
        max-width: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-village__fireflies,
    html[data-evo-theme="ink"] .forest-village-landmark__art {
        animation: none !important;
    }
}

/* Forest wave-12: concept-art village map with building hot spots */
html[data-evo-theme="ink"] body.hub-page .evo-wrap {
    max-width: min(100%, 1120px);
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

html[data-evo-theme="ink"] body.hub-page .evo-sidebar {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-world--village {
    gap: 0;
}

html[data-evo-theme="ink"] .forest-world--village .forest-whisper,
html[data-evo-theme="ink"] .forest-world--village .forest-home-library-hint {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village__sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

html[data-evo-theme="ink"] .forest-village--art-map {
    width: min(calc(100vw - 0.8rem), 1180px);
    max-width: none;
    min-height: 0;
    aspect-ratio: 819 / 610;
    margin: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-evo-theme="ink"] .forest-village--art-map::after {
    display: none;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village__scene {
    z-index: 1;
}

html[data-evo-theme="ink"] .forest-village__art-bg {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 0;
    background: url('/images/themes/forest/village/map-village-full.png?v=1') center / contain no-repeat;
    filter: drop-shadow(0 20px 38px rgba(55, 41, 23, 0.22));
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village__map {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark {
    position: absolute;
    display: block;
    width: var(--village-hotspot-w);
    height: var(--village-hotspot-h);
    left: var(--village-hotspot-x);
    top: var(--village-hotspot-y);
    transform: none;
    color: transparent;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.22s ease, filter 0.22s ease;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover,
html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible {
    transform: translateY(-0.6%) scale(1.035);
    filter: brightness(1.04) saturate(1.08);
    outline: none;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 246, 198, 0.86);
    border-radius: 24px;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 12.7%;
    --village-hotspot-y: 6.9%;
    --village-hotspot-w: 29.1%;
    --village-hotspot-h: 52.8%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--arena {
    --village-hotspot-x: 42.7%;
    --village-hotspot-y: 17.7%;
    --village-hotspot-w: 23%;
    --village-hotspot-h: 26.2%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 69.8%;
    --village-hotspot-y: 8.9%;
    --village-hotspot-w: 27.6%;
    --village-hotspot-h: 53.8%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 36.6%;
    --village-hotspot-y: 39.3%;
    --village-hotspot-w: 29.8%;
    --village-hotspot-h: 37%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 69.6%;
    --village-hotspot-y: 43.3%;
    --village-hotspot-w: 28.8%;
    --village-hotspot-h: 37.4%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 5.4%;
    --village-hotspot-y: 30.5%;
    --village-hotspot-w: 26.6%;
    --village-hotspot-h: 49.2%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__sprite {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    filter:
        brightness(1.12)
        saturate(1.12)
        drop-shadow(0 0 14px rgba(255, 235, 146, 0.88))
        drop-shadow(0 12px 18px rgba(41, 30, 16, 0.28));
    transition: opacity 0.18s ease, transform 0.22s ease, filter 0.22s ease;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover .forest-village-landmark__sprite,
html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible .forest-village-landmark__sprite {
    opacity: 1;
    transform: scale(1.015);
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--school {
    background-image: url('/images/themes/forest/village/school-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--arena {
    background-image: url('/images/themes/forest/village/arena-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--dojo {
    background-image: url('/images/themes/forest/village/dojo-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--myroom {
    background-image: url('/images/themes/forest/village/myroom-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--store {
    background-image: url('/images/themes/forest/village/store-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite--stats {
    background-image: url('/images/themes/forest/village/stats-hover-mask.png');
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__halo {
    position: absolute;
    left: 50%;
    bottom: 15%;
    width: 68%;
    height: 20%;
    border-radius: 50%;
    border: 2px solid rgba(255, 244, 168, 0.95);
    box-shadow:
        0 0 18px rgba(255, 235, 145, 0.74),
        inset 0 0 12px rgba(255, 245, 190, 0.35);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.18s ease, transform 0.22s ease;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible .forest-village-landmark__halo {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot {
    position: absolute;
    z-index: 6;
    display: block;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot:hover,
html[data-evo-theme="ink"] .forest-village-nav-hotspot:focus-visible {
    background: rgba(255, 239, 182, 0.08);
    box-shadow:
        0 0 0 2px rgba(255, 236, 174, 0.68),
        0 0 24px rgba(255, 227, 126, 0.58);
    outline: none;
    transform: translateY(-2px);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--home {
    left: 25.4%;
    top: 83.6%;
    width: 16.4%;
    height: 13%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--play {
    left: 41.6%;
    top: 80.8%;
    width: 17%;
    height: 18.2%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--library {
    left: 59.4%;
    top: 83.6%;
    width: 21.2%;
    height: 13%;
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] body.hub-page .evo-main {
        padding: 0.35rem 0.35rem max(0.75rem, env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village--art-map {
        width: calc(100vw - 0.4rem);
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark,
    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__sprite,
    html[data-evo-theme="ink"] .forest-village-nav-hotspot {
        transition: none !important;
    }
}

/* Forest wave-13: full-screen fit and clean stage */
html[data-evo-theme="ink"] body.evo-body.hub-page {
    min-height: 100dvh;
    overflow: hidden;
    background: linear-gradient(180deg, #f3fbdf 0%, #e5f2cc 58%, #dbe9c0 100%) !important;
    background-image: none !important;
}

html[data-evo-theme="ink"] body.evo-body.hub-page::before,
html[data-evo-theme="ink"] body.evo-body.hub-page::after {
    display: none !important;
}

html[data-evo-theme="ink"] body.hub-page .evo-app,
html[data-evo-theme="ink"] body.hub-page .evo-main,
html[data-evo-theme="ink"] body.hub-page .evo-wrap {
    min-height: 100dvh;
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.25rem, env(safe-area-inset-top)) 0.25rem max(0.25rem, env(safe-area-inset-bottom));
}

html[data-evo-theme="ink"] body.hub-page .evo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
}

html[data-evo-theme="ink"] .forest-village--art-map {
    width: min(calc(100vw - 0.5rem), calc(134.2dvh - 0.7rem), 1180px);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot {
    border-radius: 10px;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot:hover,
html[data-evo-theme="ink"] .forest-village-nav-hotspot:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot:focus-visible {
    outline: 2px solid rgba(255, 246, 198, 0.72);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] body.hub-page .evo-main {
        padding: max(0.2rem, env(safe-area-inset-top)) 0.2rem max(0.2rem, env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village--art-map {
        width: min(calc(100vw - 0.4rem), calc(134.2dvh - 0.55rem));
    }
}

/* Forest wave-14: real HUD and larger hit targets */
html[data-evo-theme="ink"] body.hub-page .evo-hub-topbar,
html[data-evo-theme="ink"] body.hub-page .mentor-hub-bar,
html[data-evo-theme="ink"] body.hub-page .evo-onboarding-banner {
    display: none !important;
}

html[data-evo-theme="ink"] body.evo-body.hub-page {
    background: #ffffff !important;
}

html[data-evo-theme="ink"] .forest-village--art-map::before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: 21.2%;
    height: 32%;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(38, 57, 42, 0.98), rgba(38, 57, 42, 0.96) 62%, rgba(38, 57, 42, 0.52) 88%, rgba(38, 57, 42, 0)),
        radial-gradient(circle at 16% 30%, rgba(255, 246, 210, 0.16), transparent 35%);
    backdrop-filter: blur(2px);
}

html[data-evo-theme="ink"] .forest-village-player,
html[data-evo-theme="ink"] .forest-village-resources {
    position: absolute;
    z-index: 7;
}

html[data-evo-theme="ink"] .forest-village-hud-cover {
    position: absolute;
    z-index: 6;
    left: 0;
    top: 0;
    width: 21.8%;
    height: 34%;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(37, 56, 42, 0.99), rgba(37, 56, 42, 0.99) 70%, rgba(37, 56, 42, 0.68) 91%, rgba(37, 56, 42, 0)),
        radial-gradient(circle at 16% 26%, rgba(255, 246, 210, 0.14), transparent 34%);
    backdrop-filter: blur(2px);
}

html[data-evo-theme="ink"] .forest-village-player {
    left: 1.7%;
    top: 2.4%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 16.8%;
    min-height: 7.8%;
    padding: 0.28rem 0.5rem 0.28rem 0.28rem;
    border-radius: 999px 18px 18px 999px;
    border: 1px solid rgba(255, 237, 190, 0.34);
    background: rgba(54, 45, 33, 0.72);
    color: #fff6de;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(40, 28, 15, 0.18);
}

html[data-evo-theme="ink"] .forest-village-player__avatar {
    width: clamp(26px, 4.5vw, 52px);
    height: clamp(26px, 4.5vw, 52px);
    border-radius: 50%;
    border: 2px solid rgba(255, 225, 147, 0.92);
    object-fit: cover;
    background: rgba(255, 246, 220, 0.9);
}

html[data-evo-theme="ink"] .forest-village-player__copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    font-size: clamp(0.58rem, 1.2vw, 0.86rem);
    line-height: 1.1;
}

html[data-evo-theme="ink"] .forest-village-player__copy strong,
html[data-evo-theme="ink"] .forest-village-player__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-resources {
    left: 0.8%;
    top: 13.9%;
    display: grid;
    gap: 0.34rem;
    width: 13.3%;
}

html[data-evo-theme="ink"] .forest-village-resource {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem;
    min-height: clamp(24px, 3.4vw, 42px);
    padding: 0.24rem 0.38rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 91, 43, 0.28);
    background: rgba(255, 244, 217, 0.92);
    color: #4b3420;
    box-shadow: 0 8px 14px rgba(61, 42, 24, 0.14);
}

html[data-evo-theme="ink"] .forest-village-resource strong {
    overflow: hidden;
    font-size: clamp(0.54rem, 1.05vw, 0.8rem);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-resource span:last-child {
    grid-column: 1 / -1;
    margin-top: -0.1rem;
    overflow: hidden;
    font-size: clamp(0.42rem, 0.72vw, 0.58rem);
    line-height: 1;
    color: #5f4b34;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-resource::after {
    content: '+';
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    grid-column: 2;
    width: clamp(15px, 2.2vw, 25px);
    height: clamp(15px, 2.2vw, 25px);
    border-radius: 50%;
    color: #fffbe8;
    background: linear-gradient(180deg, #9ac34e, #6a9828);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
    font-weight: 900;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 10.2%;
    --village-hotspot-y: 5.2%;
    --village-hotspot-w: 34.2%;
    --village-hotspot-h: 53.8%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--arena {
    --village-hotspot-x: 39.7%;
    --village-hotspot-y: 15.1%;
    --village-hotspot-w: 28.6%;
    --village-hotspot-h: 29.8%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 67.4%;
    --village-hotspot-y: 7.3%;
    --village-hotspot-w: 31.4%;
    --village-hotspot-h: 54.4%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 34.4%;
    --village-hotspot-y: 35.8%;
    --village-hotspot-w: 34.4%;
    --village-hotspot-h: 42%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 66.6%;
    --village-hotspot-y: 40.4%;
    --village-hotspot-w: 32.6%;
    --village-hotspot-h: 42%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 2.8%;
    --village-hotspot-y: 27.8%;
    --village-hotspot-w: 31.2%;
    --village-hotspot-h: 54%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--home {
    left: 22.8%;
    top: 81.6%;
    width: 20%;
    height: 15.8%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--play {
    left: 40.6%;
    top: 78.8%;
    width: 19%;
    height: 20.2%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--library {
    left: 58.2%;
    top: 81.6%;
    width: 24.2%;
    height: 15.8%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-store {
    right: 7.8%;
    top: 2.2%;
    width: 4.8%;
    height: 7%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-library {
    right: 2.4%;
    top: 2.2%;
    width: 4.8%;
    height: 7%;
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] .forest-village-player {
        width: 18.5%;
        padding: 0.16rem 0.28rem 0.16rem 0.16rem;
    }

    html[data-evo-theme="ink"] .forest-village-player__copy {
        display: none;
    }

    html[data-evo-theme="ink"] .forest-village-resources {
        gap: 0.22rem;
    }

    html[data-evo-theme="ink"] .forest-village-resource {
        padding: 0.18rem 0.28rem;
        border-radius: 9px;
    }
}

/* Forest wave-15: hub map should fill width, not shrink to viewport height */
html[data-evo-theme="ink"] body.evo-body.hub-page {
    overflow-x: hidden;
    overflow-y: auto;
}

html[data-evo-theme="ink"] body.hub-page .evo-app,
html[data-evo-theme="ink"] body.hub-page .evo-main,
html[data-evo-theme="ink"] body.hub-page .evo-wrap {
    min-height: auto;
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    display: block;
    width: 100vw;
    padding: 0 !important;
}

html[data-evo-theme="ink"] body.hub-page .evo-wrap {
    display: block;
    width: 100vw;
    max-width: none;
    margin: 0;
}

html[data-evo-theme="ink"] .forest-world--village {
    width: 100vw;
    overflow: visible;
}

html[data-evo-theme="ink"] .forest-village--art-map {
    left: auto;
    width: 100vw;
    max-width: none;
    margin: 0;
    transform: none;
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] body.evo-body.hub-page {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    html[data-evo-theme="ink"] body.hub-page .evo-main,
    html[data-evo-theme="ink"] body.hub-page .evo-wrap,
    html[data-evo-theme="ink"] .forest-world--village {
        min-width: min(760px, 165vw);
    }

    html[data-evo-theme="ink"] .forest-village--art-map {
        width: min(760px, 165vw);
    }
}

/* Forest wave-16: centered map with art-filled stage, no forced scroll */
html[data-evo-theme="ink"] body.evo-body.hub-page {
    overflow: hidden;
    background: #20321f !important;
}

html[data-evo-theme="ink"] body.evo-body.hub-page::after {
    content: '';
    position: fixed;
    inset: -24px;
    z-index: 0;
    display: block !important;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 252, 240, 0.22), rgba(18, 35, 20, 0.2)),
        url('/images/themes/forest/village/map-village-full.png?v=1') center / cover no-repeat;
    filter: blur(16px) saturate(0.92);
    transform: scale(1.04);
    opacity: 0.72;
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100vw;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: max(0.25rem, env(safe-area-inset-top)) 0 max(0.25rem, env(safe-area-inset-bottom)) !important;
}

html[data-evo-theme="ink"] body.hub-page .evo-wrap,
html[data-evo-theme="ink"] .forest-world--village {
    width: 100%;
    max-width: none;
}

html[data-evo-theme="ink"] .forest-village--art-map {
    left: 50%;
    width: min(100vw, calc(134.2dvh - 0.7rem), 1180px);
    max-width: none;
    margin: 0;
    transform: translateX(-50%);
}

html[data-evo-theme="ink"] .forest-village-player {
    width: clamp(160px, 17vw, 230px);
}

html[data-evo-theme="ink"] .forest-village-resources {
    width: clamp(138px, 13vw, 190px);
}

html[data-evo-theme="ink"] .forest-village-resource strong {
    font-size: clamp(0.62rem, 1vw, 0.86rem);
}

@media (max-width: 720px) {
    html[data-evo-theme="ink"] body.evo-body.hub-page {
        overflow: hidden;
    }

    html[data-evo-theme="ink"] body.hub-page .evo-main,
    html[data-evo-theme="ink"] body.hub-page .evo-wrap,
    html[data-evo-theme="ink"] .forest-world--village {
        min-width: 0;
    }

    html[data-evo-theme="ink"] .forest-village--art-map {
        width: min(100vw, calc(134.2dvh - 0.5rem));
    }

    html[data-evo-theme="ink"] .forest-village-player {
        width: clamp(54px, 18vw, 94px);
    }

    html[data-evo-theme="ink"] .forest-village-resources {
        display: none;
    }
}

/* Forest wave-17: clean art backgrounds with real responsive UI */
html[data-evo-theme="ink"] body.evo-body.hub-page {
    overflow-x: hidden;
    overflow-y: auto;
    background: #102111 !important;
}

html[data-evo-theme="ink"] body.evo-body.hub-page::after {
    background:
        linear-gradient(180deg, rgba(255, 252, 240, 0.18), rgba(18, 35, 20, 0.22)),
        url('/images/themes/forest/village/clean-desktop-bg.png?v=1') center / cover no-repeat;
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    display: flex;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left)) !important;
}

html[data-evo-theme="ink"] .forest-world--village {
    width: min(100%, 1220px);
    margin: 0 auto;
}

html[data-evo-theme="ink"] .forest-village--art-map {
    left: auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    transform: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html[data-evo-theme="ink"] .forest-village__art-bg {
    background-image: url('/images/themes/forest/village/clean-desktop-bg.png?v=1');
    background-size: cover;
}

html[data-evo-theme="ink"] .forest-village--art-map::before,
html[data-evo-theme="ink"] .forest-village-hud-cover {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village-player {
    left: 1.4rem;
    top: 1.2rem;
    width: clamp(180px, 20%, 260px);
    min-height: 0;
    padding: 0.45rem 0.7rem 0.45rem 0.45rem;
    background: rgba(25, 42, 28, 0.82);
    backdrop-filter: blur(8px);
}

html[data-evo-theme="ink"] .forest-village-resources {
    left: 1.4rem;
    top: 5.9rem;
    width: clamp(148px, 14%, 190px);
}

html[data-evo-theme="ink"] .forest-village__map {
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village-landmark,
html[data-evo-theme="ink"] .forest-village-nav-hotspot {
    pointer-events: auto;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark {
    width: clamp(150px, 16vw, 220px);
    height: auto;
    min-height: 0;
    transform: translate(-50%, -50%);
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover,
html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible {
    transform: translate(-50%, calc(-50% - 6px));
}

html[data-evo-theme="ink"] .forest-village-landmark__sprite {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__halo {
    left: 50%;
    bottom: -0.35rem;
    width: 78%;
    height: 34%;
    opacity: 0.78;
    border-color: rgba(255, 234, 142, 0.78);
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__label {
    position: relative !important;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.42rem;
    width: 100% !important;
    height: auto !important;
    min-height: 58px;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    padding: 0.48rem 0.64rem;
    border: 1px solid rgba(128, 91, 48, 0.32);
    border-radius: 18px;
    background: rgba(255, 248, 228, 0.9);
    color: #3d2b1b;
    box-shadow: 0 12px 20px rgba(47, 31, 14, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

html[data-evo-theme="ink"] .forest-village-landmark__icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(83, 113, 48, 0.14);
    font-size: 1rem;
}

html[data-evo-theme="ink"] .forest-village-landmark__label strong {
    overflow: hidden;
    font-size: clamp(0.78rem, 1.1vw, 0.98rem);
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-landmark__label span:not(.forest-village-landmark__icon) {
    display: -webkit-box;
    overflow: hidden;
    color: #6a5438;
    font-size: clamp(0.58rem, 0.8vw, 0.72rem);
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--arena {
    --village-hotspot-x: 50%;
    --village-hotspot-y: 37%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 24%;
    --village-hotspot-y: 40%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 76%;
    --village-hotspot-y: 39%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 45%;
    --village-hotspot-y: 72%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 75%;
    --village-hotspot-y: 73%;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 18%;
    --village-hotspot-y: 72%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot {
    position: absolute;
    top: auto;
    bottom: 1rem;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    height: 54px;
    min-width: 132px;
    padding: 0 1rem;
    border-radius: 18px;
    border: 1px solid rgba(113, 74, 36, 0.46);
    background: linear-gradient(180deg, rgba(120, 75, 38, 0.92), rgba(73, 46, 25, 0.95));
    color: #fff1c9;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(34, 20, 10, 0.28), inset 0 1px 0 rgba(255, 238, 187, 0.3);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot:hover,
html[data-evo-theme="ink"] .forest-village-nav-hotspot:focus-visible {
    background: linear-gradient(180deg, rgba(143, 88, 43, 0.96), rgba(80, 50, 26, 0.98));
    transform: translateY(-2px);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot__icon {
    font-size: 1.25rem;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot__label {
    font-weight: 900;
    font-size: 0.86rem;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--home {
    left: 31%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--play {
    left: 50%;
    min-width: 150px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #85a84b, #466d31);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--play:hover,
html[data-evo-theme="ink"] .forest-village-nav-hotspot--play:focus-visible {
    transform: translateX(-50%) translateY(-2px);
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--library {
    right: 31%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-store,
html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-library {
    top: 1.2rem;
    bottom: auto;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-store {
    right: 4.8rem;
}

html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-library {
    right: 1.2rem;
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] body.evo-body.hub-page {
        overflow-y: auto;
    }

    html[data-evo-theme="ink"] body.evo-body.hub-page::after {
        background-image:
            linear-gradient(180deg, rgba(255, 252, 240, 0.2), rgba(18, 35, 20, 0.26)),
            url('/images/themes/forest/village/clean-mobile-bg.png?v=1');
    }

    html[data-evo-theme="ink"] body.hub-page .evo-main {
        display: block;
        min-height: 100dvh;
        padding: 0 !important;
    }

    html[data-evo-theme="ink"] .forest-world--village {
        width: 100%;
        min-width: 0;
    }

    html[data-evo-theme="ink"] .forest-village--art-map {
        left: auto;
        width: 100%;
        min-height: 100dvh;
        aspect-ratio: auto;
        transform: none;
        border-radius: 0;
        box-shadow: none;
    }

    html[data-evo-theme="ink"] .forest-village__art-bg {
        background-image: url('/images/themes/forest/village/clean-mobile-bg.png?v=1');
        background-size: cover;
    }

    html[data-evo-theme="ink"] .forest-village-player {
        left: max(0.8rem, env(safe-area-inset-left));
        top: max(0.75rem, env(safe-area-inset-top));
        width: calc(100% - 1.6rem - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-width: none;
    }

    html[data-evo-theme="ink"] .forest-village-player__copy {
        display: grid;
    }

    html[data-evo-theme="ink"] .forest-village-player__avatar {
        width: 42px;
        height: 42px;
    }

    html[data-evo-theme="ink"] .forest-village-resources {
        display: flex;
        left: max(0.8rem, env(safe-area-inset-left));
        top: calc(max(0.75rem, env(safe-area-inset-top)) + 62px);
        width: calc(100% - 1.6rem - env(safe-area-inset-left) - env(safe-area-inset-right));
        gap: 0.45rem;
    }

    html[data-evo-theme="ink"] .forest-village-resource {
        flex: 1;
    }

    html[data-evo-theme="ink"] .forest-village__map {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: calc(max(0.75rem, env(safe-area-inset-top)) + 130px) 0.8rem calc(86px + env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        transform: none;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover,
    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible {
        transform: translateY(-3px);
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--arena {
        grid-column: 1 / -1;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__label {
        min-height: 74px;
        padding: 0.7rem;
    }

    html[data-evo-theme="ink"] .forest-village-nav-hotspot {
        position: fixed;
        bottom: max(0.55rem, env(safe-area-inset-bottom));
        height: 58px;
        min-width: 0;
        width: calc((100vw - 2.2rem) / 3);
        padding: 0 0.35rem;
        border-radius: 18px;
    }

    html[data-evo-theme="ink"] .forest-village-nav-hotspot--home {
        left: 0.65rem;
    }

    html[data-evo-theme="ink"] .forest-village-nav-hotspot--play {
        left: 50%;
    }

    html[data-evo-theme="ink"] .forest-village-nav-hotspot--library {
        right: 0.65rem;
    }

    html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-store,
    html[data-evo-theme="ink"] .forest-village-nav-hotspot--top-library {
        display: none;
    }
}

/* Forest wave-18: hub UX — merged topbar, play hero, flex dock, short copy */
html[data-evo-theme="ink"] .forest-village-player,
html[data-evo-theme="ink"] .forest-village-resources,
html[data-evo-theme="ink"] .forest-village-hud-cover,
html[data-evo-theme="ink"] .forest-village-nav-hotspot {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village-topbar {
    position: absolute;
    z-index: 8;
    left: 1.2rem;
    right: 1.2rem;
    top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.42rem 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 237, 190, 0.34);
    background: rgba(25, 42, 28, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(18, 12, 6, 0.22);
}

html[data-evo-theme="ink"] .forest-village-topbar__profile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin-right: auto;
    color: #fff6de;
    text-decoration: none;
}

html[data-evo-theme="ink"] .forest-village-topbar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 225, 147, 0.92);
    object-fit: cover;
    flex-shrink: 0;
}

html[data-evo-theme="ink"] .forest-village-topbar__copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.1;
}

html[data-evo-theme="ink"] .forest-village-topbar__copy strong,
html[data-evo-theme="ink"] .forest-village-topbar__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-topbar__stats {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Tester #003: logout was only reachable inside the Library panel and users
   could not find it from the home screen. Surface a clear logout in the topbar. */
html[data-evo-theme="ink"] .forest-village-topbar__logout {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-shrink: 0;
    padding: 0.34rem 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 237, 190, 0.34);
    background: rgba(255, 244, 217, 0.16);
    color: #fff6de;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

html[data-evo-theme="ink"] .forest-village-topbar__logout svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

html[data-evo-theme="ink"] .forest-village-topbar__logout:hover,
html[data-evo-theme="ink"] .forest-village-topbar__logout:focus-visible {
    background: rgba(225, 110, 84, 0.32);
    border-color: rgba(255, 168, 130, 0.62);
    outline: none;
}

@media (max-width: 560px) {
    html[data-evo-theme="ink"] .forest-village-topbar {
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }
    html[data-evo-theme="ink"] .forest-village-topbar__logout-label {
        display: none;
    }
    html[data-evo-theme="ink"] .forest-village-topbar__logout {
        padding: 0.34rem 0.42rem;
    }
}

html[data-evo-theme="ink"] .forest-village-topbar__chip {
    display: grid;
    gap: 0.08rem;
    min-width: 72px;
    padding: 0.28rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 91, 43, 0.28);
    background: rgba(255, 244, 217, 0.94);
    color: #4b3420;
}

html[data-evo-theme="ink"] .forest-village-topbar__chip-label {
    font-size: 0.58rem;
    line-height: 1;
    color: #5f4b34;
}

html[data-evo-theme="ink"] .forest-village-topbar__chip strong {
    font-size: 0.76rem;
    line-height: 1;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village-play-hero {
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 24%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: min(92%, 420px);
    padding: 0.85rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 132, 54, 0.5);
    background: linear-gradient(180deg, rgba(145, 184, 78, 0.96), rgba(74, 112, 44, 0.98));
    color: #fff8df;
    text-decoration: none;
    box-shadow:
        0 16px 30px rgba(24, 38, 14, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

html[data-evo-theme="ink"] .forest-village-play-hero:hover,
html[data-evo-theme="ink"] .forest-village-play-hero:focus-visible {
    transform: translate(-50%, calc(-50% - 4px));
    box-shadow:
        0 20px 34px rgba(24, 38, 14, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    outline: none;
}

html[data-evo-theme="ink"] .forest-village-play-hero__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.2rem;
    flex-shrink: 0;
}

html[data-evo-theme="ink"] .forest-village-play-hero__copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}

html[data-evo-theme="ink"] .forest-village-play-hero__copy strong {
    font-size: 1rem;
    line-height: 1.1;
}

html[data-evo-theme="ink"] .forest-village-play-hero__copy span {
    font-size: 0.76rem;
    line-height: 1.25;
    color: rgba(255, 248, 223, 0.92);
}

html[data-evo-theme="ink"] .forest-village-play-hero__chev {
    font-size: 1.2rem;
    font-weight: 900;
    opacity: 0.88;
}

html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__label {
    background: rgba(255, 250, 236, 0.97);
    border-color: rgba(100, 72, 38, 0.34);
    box-shadow: 0 12px 22px rgba(47, 31, 14, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-evo-theme="ink"] .forest-village-landmark__label span:not(.forest-village-landmark__icon) {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

html[data-evo-theme="ink"] .forest-village-dock {
    position: absolute;
    z-index: 9;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
    pointer-events: auto;
}

html[data-evo-theme="ink"] .forest-village-dock__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 54px;
    max-width: 220px;
    padding: 0 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(113, 74, 36, 0.46);
    background: linear-gradient(180deg, rgba(120, 75, 38, 0.92), rgba(73, 46, 25, 0.95));
    color: #fff1c9;
    font-family: var(--forest-font);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(34, 20, 10, 0.28), inset 0 1px 0 rgba(255, 238, 187, 0.3);
    transition: transform 0.18s ease, background 0.18s ease;
}

html[data-evo-theme="ink"] .forest-village-dock__btn:hover,
html[data-evo-theme="ink"] .forest-village-dock__btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

html[data-evo-theme="ink"] .forest-village-dock__btn--library[aria-expanded="true"] {
    border-color: rgba(255, 230, 173, 0.62);
    color: var(--forest-sun);
}

html[data-evo-theme="ink"] .forest-village-dock__icon {
    font-size: 1.15rem;
    line-height: 1;
}

html[data-evo-theme="ink"] body.evo-body.hub-page::after {
    filter: blur(12px) saturate(0.82);
    opacity: 0.62;
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] .forest-village-topbar {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin: max(0.65rem, env(safe-area-inset-top)) 0.75rem 0;
    }

    html[data-evo-theme="ink"] .forest-village__map {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: 0.65rem 0.75rem calc(78px + env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village-play-hero {
        position: relative;
        left: auto;
        top: auto;
        grid-column: 1 / -1;
        width: 100%;
        transform: none;
    }

    html[data-evo-theme="ink"] .forest-village-play-hero:hover,
    html[data-evo-theme="ink"] .forest-village-play-hero:focus-visible {
        transform: translateY(-3px);
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100%;
        transform: none;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:hover,
    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark:focus-visible {
        transform: translateY(-3px);
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--stats {
        grid-column: 1 / -1;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark__label {
        min-height: 68px;
        padding: 0.62rem 0.7rem;
    }

    html[data-evo-theme="ink"] .forest-village-dock {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: max(0.55rem, env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village-dock__btn {
        max-width: none;
        min-height: 58px;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village__scene {
        display: none;
    }

    html[data-evo-theme="ink"] body.evo-body.hub-page {
        background: linear-gradient(180deg, #1a2d1c 0%, #102111 100%) !important;
    }
}

@media (min-width: 761px) {
    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--arena {
        display: none;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--school {
        --village-hotspot-x: 22%;
        --village-hotspot-y: 58%;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--dojo {
        --village-hotspot-x: 78%;
        --village-hotspot-y: 58%;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--myroom {
        --village-hotspot-x: 36%;
        --village-hotspot-y: 78%;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--store {
        --village-hotspot-x: 64%;
        --village-hotspot-y: 78%;
    }

    html[data-evo-theme="ink"] .forest-village--art-map .forest-village-landmark--stats {
        --village-hotspot-x: 50%;
        --village-hotspot-y: 88%;
    }
}

/* Forest wave-19: immersive village map — hidden signs, stone play CTA, 2-item dock */
html[data-evo-theme="ink"] .forest-village--immersive .forest-village__map {
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock {
    pointer-events: auto;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
    top: 47%;
    width: min(300px, 34vw);
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    border-color: rgba(255, 228, 156, 0.42);
    background:
        linear-gradient(180deg, rgba(118, 88, 48, 0.94), rgba(62, 42, 22, 0.98)),
        radial-gradient(circle at 50% 0%, rgba(255, 236, 176, 0.22), transparent 58%);
    box-shadow:
        0 14px 28px rgba(18, 10, 4, 0.34),
        0 0 0 1px rgba(255, 236, 176, 0.16),
        inset 0 1px 0 rgba(255, 244, 210, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__icon {
    background: rgba(255, 236, 176, 0.16);
    border: 1px solid rgba(255, 228, 156, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy {
    justify-items: center;
    text-align: center;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy strong {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    letter-spacing: 0.02em;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark {
    position: absolute;
    left: var(--village-hotspot-x);
    top: var(--village-hotspot-y);
    width: var(--village-hotspot-w);
    height: var(--village-hotspot-h);
    min-height: 0;
    transform: none;
    color: transparent;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open {
    transform: translateY(-2px);
    filter: brightness(1.03) saturate(1.05);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__sprite {
    display: block !important;
    opacity: 0;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover .forest-village-landmark__sprite,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible .forest-village-landmark__sprite,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open .forest-village-landmark__sprite {
    opacity: 1;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__halo {
    left: 50%;
    bottom: 8%;
    width: 72%;
    height: 22%;
    opacity: 0;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open .forest-village-landmark__halo {
    opacity: 1;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__label {
    position: absolute !important;
    left: 50%;
    bottom: calc(100% + 0.35rem);
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    gap: 0.38rem;
    width: auto !important;
    min-width: 0;
    max-width: min(190px, 28vw);
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 0.42rem 0.62rem;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    border: 1px solid rgba(96, 66, 34, 0.52);
    border-radius: 12px 12px 16px 16px;
    background:
        linear-gradient(180deg, rgba(244, 224, 178, 0.94), rgba(201, 162, 104, 0.9));
    color: #3f2d18;
    font-family: var(--forest-font);
    box-shadow:
        0 10px 18px rgba(36, 24, 10, 0.28),
        inset 0 1px 0 rgba(255, 248, 220, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.22s ease,
        visibility 0.2s ease;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-right: 1px solid rgba(96, 66, 34, 0.52);
    border-bottom: 1px solid rgba(96, 66, 34, 0.52);
    background: linear-gradient(135deg, rgba(214, 176, 118, 0.95), rgba(188, 144, 86, 0.92));
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 3px 3px 8px rgba(36, 24, 10, 0.16);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__icon {
    grid-row: auto;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    background: rgba(84, 58, 28, 0.1);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__label strong {
    font-size: clamp(0.74rem, 1vw, 0.9rem);
    line-height: 1.15;
    white-space: nowrap;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open .forest-village-landmark__label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock {
    justify-content: center;
    gap: 0.7rem;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn {
    flex: 0 1 220px;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn--play {
    border-color: rgba(118, 156, 62, 0.55);
    background: linear-gradient(180deg, rgba(132, 168, 72, 0.96), rgba(68, 104, 42, 0.98));
    color: #fff8df;
    box-shadow:
        0 12px 24px rgba(24, 38, 14, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn--play:hover,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn--play:focus-visible {
    background: linear-gradient(180deg, rgba(148, 184, 82, 0.98), rgba(78, 118, 48, 0.99));
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 3%;
    --village-hotspot-y: 8%;
    --village-hotspot-w: 24%;
    --village-hotspot-h: 34%;
    --village-sign-x: 62%;
    --village-sign-anchor: 6%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 57%;
    --village-hotspot-y: 20%;
    --village-hotspot-w: 33%;
    --village-hotspot-h: 36%;
    --village-sign-x: 38%;
    --village-sign-anchor: 4%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 33%;
    --village-hotspot-y: 58%;
    --village-hotspot-w: 20%;
    --village-hotspot-h: 30%;
    --village-sign-x: 50%;
    --village-sign-anchor: 2%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 68%;
    --village-hotspot-y: 56%;
    --village-hotspot-w: 27%;
    --village-hotspot-h: 34%;
    --village-sign-x: 42%;
    --village-sign-anchor: 4%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 2%;
    --village-hotspot-y: 52%;
    --village-hotspot-w: 16%;
    --village-hotspot-h: 38%;
    --village-sign-x: 58%;
    --village-sign-anchor: 2%;
}

@media (min-width: 761px) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__map {
        position: absolute;
        inset: 0;
        display: block;
        padding: 0;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__scene {
        display: block;
    }
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar {
        position: absolute;
        z-index: 10;
        left: max(0.65rem, env(safe-area-inset-left));
        right: max(0.65rem, env(safe-area-inset-right));
        top: max(0.65rem, env(safe-area-inset-top));
        margin: 0;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__map {
        position: absolute;
        inset: 0;
        display: block;
        padding: 0 0 calc(74px + env(safe-area-inset-bottom));
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__scene {
        display: block;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
        top: 47%;
        width: min(88%, 320px);
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__label {
        max-width: min(168px, 42vw);
        white-space: normal !important;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__label strong {
        white-space: normal;
    }
}

/* Forest wave-20: align immersive hotspots to clean-desktop-bg (1536x1024, 3:2) */
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map {
    aspect-ratio: 3 / 2;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__art-bg {
    background-position: center center;
    background-size: cover;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark {
    left: var(--village-hotspot-x) !important;
    top: var(--village-hotspot-y) !important;
    width: var(--village-hotspot-w) !important;
    height: var(--village-hotspot-h) !important;
    min-height: 0 !important;
    max-width: none !important;
    transform: none !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:hover,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:focus-visible,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark.is-sign-open {
    transform: translateY(-2px) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__sprite {
    display: none !important;
    opacity: 0 !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark__label {
    position: absolute !important;
    left: var(--village-sign-x, 50%) !important;
    top: var(--village-sign-anchor, 0) !important;
    bottom: auto !important;
    display: inline-flex !important;
    grid-template-columns: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    min-height: 0 !important;
    transform: translate(-50%, -108%) !important;
    pointer-events: none !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:hover .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:focus-visible .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark.is-sign-open .forest-village-landmark__label {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -118%) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
    top: 47%;
    width: min(250px, 24vw);
    padding: 0.62rem 0.85rem;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__halo {
    left: 50%;
    bottom: 10%;
    width: 64%;
    height: 26%;
    opacity: 0;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open .forest-village-landmark__halo {
    opacity: 0.92;
}

/* Forest wave-21: tighter hotspots, stone play seal, dock split desktop/mobile */
html[data-evo-theme="ink"] .forest-village--immersive .forest-village__art-bg {
    background-size: contain;
    background-color: #142318;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar {
    background: rgba(36, 28, 18, 0.78);
    border-color: rgba(196, 154, 88, 0.34);
    box-shadow: 0 12px 28px rgba(10, 8, 4, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
    top: 44.5%;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 0.42rem;
    width: min(210px, 19vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 14px 22px rgba(8, 6, 3, 0.38));
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 118%;
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 214, 255, 0.26), rgba(126, 214, 255, 0) 68%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: forest-village-play-glow 3.2s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__seal {
    position: relative;
    z-index: 1;
    display: block;
    width: clamp(74px, 8.8vw, 96px);
    height: clamp(74px, 8.8vw, 96px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 248, 220, 0.34), transparent 58%),
        var(--forest-play-seal, url('/images/themes/forest/go/go-seal-round.png?v=6')) center / cover no-repeat;
    box-shadow:
        0 10px 18px rgba(20, 12, 4, 0.34),
        inset 0 0 0 2px rgba(255, 236, 188, 0.42);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.34rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(108, 74, 36, 0.48);
    background: linear-gradient(180deg, rgba(232, 201, 146, 0.96), rgba(176, 132, 72, 0.94));
    color: #3b2914;
    font-family: var(--forest-font);
    box-shadow: 0 8px 16px rgba(34, 22, 8, 0.24), inset 0 1px 0 rgba(255, 248, 220, 0.72);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy strong {
    font-size: clamp(0.78rem, 1vw, 0.92rem);
    letter-spacing: 0.03em;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:hover,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:focus-visible {
    transform: translate(-50%, calc(-50% - 4px));
    outline: none;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:hover .forest-village-play-hero__seal,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:focus-visible .forest-village-play-hero__seal {
    transform: scale(1.04);
    box-shadow:
        0 14px 24px rgba(20, 12, 4, 0.38),
        0 0 22px rgba(255, 236, 176, 0.34),
        inset 0 0 0 2px rgba(255, 244, 210, 0.58);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__icon,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__chev {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__halo {
    left: var(--village-glow-x, 50%);
    bottom: var(--village-glow-y, 14%);
    width: var(--village-glow-w, 62%);
    height: var(--village-glow-h, 20%);
    border-width: 1.5px;
    box-shadow:
        0 0 16px rgba(255, 236, 160, 0.62),
        inset 0 0 10px rgba(255, 244, 196, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark__label {
    top: auto !important;
    bottom: var(--village-sign-bottom, 80%) !important;
    padding: 0.38rem 0.58rem;
    border-radius: 10px 10px 14px 14px;
    background:
        linear-gradient(180deg, rgba(238, 216, 168, 0.95), rgba(186, 142, 84, 0.92));
    box-shadow:
        0 8px 14px rgba(36, 24, 10, 0.26),
        inset 0 1px 0 rgba(255, 248, 220, 0.68);
    transform: translate(-50%, 6px) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:hover .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:focus-visible .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark.is-sign-open .forest-village-landmark__label {
    transform: translate(-50%, -2px) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 5%;
    --village-hotspot-y: 11%;
    --village-hotspot-w: 22%;
    --village-hotspot-h: 30%;
    --village-sign-x: 52%;
    --village-sign-bottom: 84%;
    --village-glow-x: 54%;
    --village-glow-y: 16%;
    --village-glow-w: 58%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 61%;
    --village-hotspot-y: 26%;
    --village-hotspot-w: 30%;
    --village-hotspot-h: 34%;
    --village-sign-x: 46%;
    --village-sign-bottom: 86%;
    --village-glow-x: 48%;
    --village-glow-y: 18%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 36%;
    --village-hotspot-y: 60%;
    --village-hotspot-w: 15%;
    --village-hotspot-h: 28%;
    --village-sign-x: 50%;
    --village-sign-bottom: 90%;
    --village-glow-w: 72%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 74%;
    --village-hotspot-y: 58%;
    --village-hotspot-w: 21%;
    --village-hotspot-h: 32%;
    --village-sign-x: 44%;
    --village-sign-bottom: 82%;
    --village-glow-x: 46%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 4%;
    --village-hotspot-y: 57%;
    --village-hotspot-w: 13%;
    --village-hotspot-h: 37%;
    --village-sign-x: 52%;
    --village-sign-bottom: 88%;
    --village-glow-w: 54%;
    --village-glow-h: 16%;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock {
    left: 50%;
    right: auto;
    width: min(92%, 420px);
    transform: translateX(-50%);
    padding: 0.35rem 0.45rem;
    border-radius: 22px;
    border: 1px solid rgba(120, 82, 40, 0.42);
    background: linear-gradient(180deg, rgba(68, 44, 24, 0.88), rgba(42, 28, 16, 0.94));
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 28px rgba(10, 6, 2, 0.34), inset 0 1px 0 rgba(255, 236, 188, 0.18);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__icon--go {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #f8f2de, #1a1410 38%, #0a0806 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 236, 188, 0.35);
}

@keyframes forest-village-play-glow {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.96); }
    50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.04); }
}

@media (min-width: 761px) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn--play {
        display: none;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock__btn--library {
        flex: 1 1 auto;
        max-width: none;
    }
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
        display: none;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-dock {
        width: calc(100% - 1.5rem);
    }
}

/* Forest wave-22: explore hint, ambient life, hotspot polish, locale chips */
html[data-evo-theme="ink"] .forest-village--immersive .forest-village__scene {
    overflow: hidden;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__ambient--waterfall {
    left: auto;
    right: 7.5%;
    top: 11%;
    width: 15%;
    height: 44%;
    border-radius: 42% 42% 50% 50%;
    background:
        linear-gradient(180deg, rgba(210, 246, 255, 0.03), rgba(168, 228, 238, 0.42) 44%, rgba(96, 168, 178, 0.1)),
        repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 9px);
    filter: blur(0.35px);
    opacity: 0.46;
    transform: rotate(7deg);
    animation: forest-village-waterfall-glow 5.8s ease-in-out infinite;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__ambient--fireflies {
    opacity: 0.44;
    mix-blend-mode: screen;
    background:
        var(--forest-rpg-fireflies, url('/images/themes/forest/focus/focus-overlay-fireflies.png?v=6')) center / cover no-repeat,
        radial-gradient(circle at 14% 28%, rgba(255, 238, 153, 0.82) 0 1.5px, transparent 4px),
        radial-gradient(circle at 82% 18%, rgba(255, 238, 153, 0.74) 0 1.5px, transparent 4px),
        radial-gradient(circle at 62% 70%, rgba(255, 238, 153, 0.68) 0 1.5px, transparent 4px),
        radial-gradient(circle at 28% 78%, rgba(255, 238, 153, 0.6) 0 1px, transparent 3px),
        radial-gradient(circle at 46% 42%, rgba(255, 238, 153, 0.55) 0 1px, transparent 3px);
    animation: forest-village-firefly-drift 18s ease-in-out infinite alternate;
}

html[data-evo-theme="ink"] .forest-village-explore-hint {
    position: absolute;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 8;
    margin: 0;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(108, 74, 36, 0.44);
    background: linear-gradient(180deg, rgba(52, 40, 24, 0.88), rgba(30, 22, 12, 0.94));
    color: #f5e6c8;
    font-family: var(--forest-font);
    font-size: clamp(0.72rem, 1.6vw, 0.84rem);
    letter-spacing: 0.03em;
    box-shadow: 0 10px 22px rgba(8, 6, 3, 0.32), inset 0 1px 0 rgba(255, 248, 220, 0.16);
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    cursor: pointer;
    user-select: none;
}

html[data-evo-theme="ink"] .forest-village-explore-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

html[data-evo-theme="ink"] .forest-village-explore-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, -8px);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar__chip-label {
    font-family: var(--forest-font);
    letter-spacing: 0.04em;
    text-transform: none;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 6%;
    --village-hotspot-y: 9%;
    --village-hotspot-w: 26%;
    --village-hotspot-h: 32%;
    --village-sign-x: 54%;
    --village-sign-bottom: 82%;
    --village-glow-x: 56%;
    --village-glow-y: 14%;
    --village-glow-w: 56%;
    --village-glow-h: 18%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 63%;
    --village-hotspot-y: 22%;
    --village-hotspot-w: 28%;
    --village-hotspot-h: 36%;
    --village-sign-x: 48%;
    --village-sign-bottom: 88%;
    --village-glow-x: 50%;
    --village-glow-y: 16%;
    --village-glow-w: 64%;
    --village-glow-h: 18%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 39%;
    --village-hotspot-y: 62%;
    --village-hotspot-w: 14%;
    --village-hotspot-h: 26%;
    --village-sign-x: 50%;
    --village-sign-bottom: 92%;
    --village-glow-w: 68%;
    --village-glow-h: 16%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 77%;
    --village-hotspot-y: 59%;
    --village-hotspot-w: 20%;
    --village-hotspot-h: 30%;
    --village-sign-x: 46%;
    --village-sign-bottom: 84%;
    --village-glow-x: 48%;
    --village-glow-y: 12%;
    --village-glow-w: 58%;
    --village-glow-h: 16%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 3%;
    --village-hotspot-y: 59%;
    --village-hotspot-w: 14%;
    --village-hotspot-h: 35%;
    --village-sign-x: 54%;
    --village-sign-bottom: 90%;
    --village-glow-x: 52%;
    --village-glow-y: 12%;
    --village-glow-w: 50%;
    --village-glow-h: 14%;
}

@keyframes forest-village-waterfall-glow {
    0%, 100% { opacity: 0.34; filter: blur(0.35px) brightness(0.96); }
    50% { opacity: 0.62; filter: blur(0.45px) brightness(1.08); }
}

@keyframes forest-village-firefly-drift {
    0% { transform: translate3d(-1%, 0, 0) scale(1); opacity: 0.36; }
    50% { transform: translate3d(1.2%, -1%, 0) scale(1.02); opacity: 0.52; }
    100% { transform: translate3d(-0.6%, 0.8%, 0) scale(0.98); opacity: 0.4; }
}

@media (min-width: 761px) {
    html[data-evo-theme="ink"] .forest-village-explore-hint {
        bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] .forest-village-explore-hint {
        bottom: calc(88px + env(safe-area-inset-bottom));
        max-width: calc(100% - 2rem);
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__ambient--waterfall,
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village__ambient--fireflies {
        animation: none;
    }

    html[data-evo-theme="ink"] .forest-village-explore-hint {
        transition-duration: 0.01ms;
    }
}

/* Forest wave-23: full-bleed map, seal-only play, wooden signposts, wood topbar */
html[data-evo-theme="ink"] body.hub-page::after {
    display: none !important;
    content: none !important;
}

html[data-evo-theme="ink"] body.hub-page .evo-main {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    min-height: 100dvh;
}

html[data-evo-theme="ink"] body.hub-page .forest-world--village {
    width: 100%;
    min-height: 100dvh;
}

html[data-evo-theme="ink"] body.hub-page .forest-village--immersive.forest-village--art-map {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    aspect-ratio: auto !important;
    margin: 0;
    left: auto !important;
    transform: none !important;
    border-radius: 0;
    box-shadow: none;
}

html[data-evo-theme="ink"] body.hub-page .forest-whisper,
html[data-evo-theme="ink"] body.hub-page .forest-home-library-hint {
    display: none;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__art-bg {
    background-size: cover !important;
    background-position: center 42% !important;
    background-color: #142318;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village__scene,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village__map {
    min-height: 100%;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar {
    left: max(0.85rem, env(safe-area-inset-left));
    right: max(0.85rem, env(safe-area-inset-right));
    top: max(0.65rem, env(safe-area-inset-top));
    padding: 0.38rem 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(108, 74, 36, 0.48);
    background:
        linear-gradient(180deg, rgba(72, 52, 30, 0.92), rgba(42, 28, 16, 0.94)),
        url('/images/themes/forest/btn-wood.jpg?v=6') center / cover;
    box-shadow: 0 10px 22px rgba(10, 6, 2, 0.32), inset 0 1px 0 rgba(255, 236, 188, 0.2);
    backdrop-filter: none;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar__chip {
    border-color: rgba(255, 236, 188, 0.22);
    background: rgba(18, 12, 6, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar__chip-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    opacity: 0.82;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero {
    top: 45.5%;
    width: auto;
    gap: 0.55rem;
    filter: drop-shadow(0 12px 20px rgba(8, 6, 3, 0.34));
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero::before {
    top: 50%;
    width: 140%;
    height: 88%;
    opacity: 0.85;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__seal {
    width: clamp(68px, 7.5vw, 88px);
    height: clamp(68px, 7.5vw, 88px);
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 248, 220, 0.28), transparent 55%),
        var(--forest-play-seal, url('/images/themes/forest/focus/focus-seal-stones.png?v=6')) center / contain no-repeat;
    box-shadow:
        0 8px 16px rgba(20, 12, 4, 0.32),
        inset 0 0 0 2px rgba(255, 236, 188, 0.36);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    min-height: 30px;
    padding: 0.3rem 0.72rem;
    border-radius: 8px;
    border: 1px solid rgba(88, 58, 28, 0.55);
    background:
        linear-gradient(180deg, rgba(222, 186, 132, 0.97), rgba(168, 124, 68, 0.95)),
        url('/images/themes/forest/btn-wood.jpg?v=6') center / cover;
    box-shadow: 0 8px 14px rgba(34, 22, 8, 0.26), inset 0 1px 0 rgba(255, 248, 220, 0.55);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(88, 58, 28, 0.55);
    border-top: 1px solid rgba(88, 58, 28, 0.55);
    background: linear-gradient(135deg, rgba(210, 176, 124, 0.98), rgba(176, 132, 72, 0.95));
    transform: translateX(-50%) rotate(45deg);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:hover .forest-village-play-hero__copy,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero:focus-visible .forest-village-play-hero__copy {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark__label {
    padding: 0.36rem 0.62rem 0.42rem;
    border-radius: 6px;
    border: 1px solid rgba(72, 48, 22, 0.62);
    background:
        linear-gradient(180deg, rgba(228, 198, 148, 0.97), rgba(176, 132, 72, 0.94)),
        url('/images/themes/forest/btn-wood.jpg?v=6') center / cover;
    box-shadow:
        0 10px 18px rgba(36, 24, 10, 0.3),
        inset 0 1px 0 rgba(255, 248, 220, 0.65);
    transform: translate(-50%, 8px) rotate(-1.5deg) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark__label::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 4px;
    height: 14px;
    margin-top: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(120, 82, 40, 0.95), rgba(72, 48, 24, 0.98));
    transform: translateX(-50%);
    box-shadow: 1px 2px 4px rgba(20, 12, 4, 0.28);
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark__label::after {
    bottom: auto;
    top: calc(100% + 14px);
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 160, 0.95), rgba(255, 200, 80, 0.4) 70%, transparent 72%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 236, 160, 0.55);
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:hover .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark:focus-visible .forest-village-landmark__label,
html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark.is-sign-open .forest-village-landmark__label {
    transform: translate(-50%, -2px) rotate(-1deg) !important;
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark__halo {
    opacity: 0 !important;
    border-width: 1px;
    width: var(--village-glow-w, 56%);
    height: var(--village-glow-h, 14%);
}

html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:hover .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark:focus-visible .forest-village-landmark__halo,
html[data-evo-theme="ink"] .forest-village--immersive .forest-village-landmark.is-sign-open .forest-village-landmark__halo {
    opacity: 0.72 !important;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 5.5%;
    --village-hotspot-y: 8.5%;
    --village-hotspot-w: 27%;
    --village-hotspot-h: 33%;
    --village-sign-bottom: 84%;
    --village-glow-y: 15%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 62.5%;
    --village-hotspot-y: 21%;
    --village-hotspot-w: 29%;
    --village-hotspot-h: 37%;
    --village-sign-bottom: 87%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 38.5%;
    --village-hotspot-y: 61%;
    --village-hotspot-w: 15%;
    --village-hotspot-h: 27%;
    --village-sign-bottom: 93%;
    --village-glow-w: 64%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 76.5%;
    --village-hotspot-y: 58%;
    --village-hotspot-w: 21%;
    --village-hotspot-h: 31%;
    --village-sign-bottom: 85%;
}

html[data-evo-theme="ink"] .forest-village--immersive.forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 2.5%;
    --village-hotspot-y: 58%;
    --village-hotspot-w: 15%;
    --village-hotspot-h: 36%;
    --village-sign-bottom: 91%;
    --village-glow-w: 48%;
    --village-glow-h: 12%;
}

html[data-evo-theme="ink"] .forest-village--debug .forest-village-landmark {
    outline: 1px dashed rgba(255, 220, 120, 0.85);
    background: rgba(255, 196, 64, 0.12);
}

html[data-evo-theme="ink"] .forest-village--debug .forest-village-play-hero {
    outline: 1px dashed rgba(126, 214, 255, 0.9);
}

@media (min-width: 761px) {
    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar__chip-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-topbar__chip strong {
        font-size: 0.8rem;
    }
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] body.hub-page .forest-village--immersive.forest-village--art-map {
        height: auto;
        min-height: 100dvh;
        max-height: none;
    }

    html[data-evo-theme="ink"] .forest-village--immersive .forest-village-play-hero__copy {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
}

/* Forest wave-24 (C standard): aspect-authored hub masters + per-breakpoint hotspots */
html[data-evo-theme="ink"] .forest-village--hub-master .forest-village__art-bg {
    background-image: url('/images/themes/forest/village/hub-desktop-16x9.jpg?v=1');
    background-size: cover;
    background-position: center center !important;
}

html[data-evo-theme="ink"] body.hub-page .forest-village--hub-master.forest-village--art-map {
    aspect-ratio: auto !important;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--school {
    --village-hotspot-x: 3%;
    --village-hotspot-y: 7%;
    --village-hotspot-w: 24%;
    --village-hotspot-h: 30%;
    --village-sign-x: 52%;
    --village-sign-bottom: 86%;
    --village-glow-x: 54%;
    --village-glow-y: 14%;
    --village-glow-w: 58%;
    --village-glow-h: 16%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--dojo {
    --village-hotspot-x: 66%;
    --village-hotspot-y: 9%;
    --village-hotspot-w: 30%;
    --village-hotspot-h: 34%;
    --village-sign-x: 48%;
    --village-sign-bottom: 88%;
    --village-glow-x: 50%;
    --village-glow-y: 15%;
    --village-glow-w: 62%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--stats {
    --village-hotspot-x: 2%;
    --village-hotspot-y: 56%;
    --village-hotspot-w: 15%;
    --village-hotspot-h: 34%;
    --village-sign-x: 54%;
    --village-sign-bottom: 90%;
    --village-glow-x: 52%;
    --village-glow-w: 50%;
    --village-glow-h: 13%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--myroom {
    --village-hotspot-x: 37%;
    --village-hotspot-y: 58%;
    --village-hotspot-w: 17%;
    --village-hotspot-h: 28%;
    --village-sign-x: 50%;
    --village-sign-bottom: 92%;
    --village-glow-w: 66%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--store {
    --village-hotspot-x: 70%;
    --village-hotspot-y: 56%;
    --village-hotspot-w: 26%;
    --village-hotspot-h: 32%;
    --village-sign-x: 46%;
    --village-sign-bottom: 86%;
    --village-glow-x: 48%;
}

html[data-evo-theme="ink"] .forest-village--hub-master .forest-village-play-hero {
    top: 43%;
}

html[data-evo-theme="ink"] .forest-village--hub-master .forest-village-play-hero__seal {
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 248, 220, 0.22), transparent 55%),
        radial-gradient(circle at 35% 35%, #f4f0e6 0 18%, transparent 19%),
        radial-gradient(circle at 65% 62%, #1a1410 0 20%, transparent 21%),
        linear-gradient(145deg, rgba(32, 24, 18, 0.2), rgba(32, 24, 18, 0.05)) !important;
    box-shadow:
        0 8px 16px rgba(20, 12, 4, 0.32),
        inset 0 0 0 2px rgba(255, 236, 188, 0.34);
}

html[data-evo-theme="ink"] .forest-village--hub-master .forest-village-play-hero__seal::after {
    content: none;
}

@media (max-width: 900px) {
    html[data-evo-theme="ink"] .forest-village--hub-master .forest-village__art-bg {
        background-image: url('/images/themes/forest/village/hub-mobile-9x16.jpg?v=1');
        background-position: center 32%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--school {
        --village-hotspot-x: 4%;
        --village-hotspot-y: 4%;
        --village-hotspot-w: 42%;
        --village-hotspot-h: 16%;
        --village-sign-bottom: 88%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--dojo {
        --village-hotspot-x: 52%;
        --village-hotspot-y: 4%;
        --village-hotspot-w: 44%;
        --village-hotspot-h: 16%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--stats {
        --village-hotspot-x: 3%;
        --village-hotspot-y: 70%;
        --village-hotspot-w: 30%;
        --village-hotspot-h: 14%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--myroom {
        --village-hotspot-x: 30%;
        --village-hotspot-y: 72%;
        --village-hotspot-w: 32%;
        --village-hotspot-h: 14%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--art-map .forest-village-landmark--store {
        --village-hotspot-x: 66%;
        --village-hotspot-y: 70%;
        --village-hotspot-w: 30%;
        --village-hotspot-h: 15%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master .forest-village-play-hero {
        top: 40%;
    }
}

/* Forest wave-25: building silhouette cutouts + alpha-aware hover glow */
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-village-landmark,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-village-play-hero {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-village__buildings {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none;
    color: transparent;
    pointer-events: auto;
    cursor: default;
    outline: none;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-building-active {
    cursor: pointer;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__cutout {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0;
    transition:
        opacity 0.22s ease,
        filter 0.22s ease;
    filter: brightness(1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-building-active .forest-building__cutout,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-sign-open .forest-building__cutout,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building:focus-visible .forest-building__cutout {
    opacity: 0;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__sign {
    position: absolute;
    left: 50%;
    bottom: var(--building-sign-bottom, calc(100% + 0.35rem));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    max-width: min(190px, 28vw);
    padding: 0.36rem 0.62rem 0.42rem;
    border: 1px solid rgba(72, 48, 22, 0.62);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(228, 198, 148, 0.97), rgba(176, 132, 72, 0.94)),
        url('/images/themes/forest/btn-wood.jpg?v=6') center / cover;
    color: #3f2d18;
    font-family: var(--forest-font);
    box-shadow:
        0 10px 18px rgba(36, 24, 10, 0.3),
        inset 0 1px 0 rgba(255, 248, 220, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) rotate(-1.5deg);
    pointer-events: none;
    white-space: nowrap;
    transition:
        opacity 0.2s ease,
        transform 0.22s ease,
        visibility 0.2s ease;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__sign::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 4px;
    height: 14px;
    margin-top: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(120, 82, 40, 0.95), rgba(72, 48, 24, 0.98));
    transform: translateX(-50%);
    box-shadow: 1px 2px 4px rgba(20, 12, 4, 0.28);
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__sign-icon {
    font-size: 0.95rem;
    line-height: 1;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__sign strong {
    font-size: 0.8rem;
    line-height: 1.15;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-building-active .forest-building__sign,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-sign-open .forest-building__sign,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building:focus-visible .forest-building__sign {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -2px) rotate(-1deg);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building {
    left: var(--building-x);
    top: var(--building-y);
    width: var(--building-w);
    height: var(--building-h);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--school {
    --building-x: 4%;
    --building-y: 5%;
    --building-w: 22%;
    --building-h: 34%;
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--dojo {
    --building-x: 68%;
    --building-y: 7%;
    --building-w: 28%;
    --building-h: 34%;
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--stats {
    --building-x: 2%;
    --building-y: 58%;
    --building-w: 13%;
    --building-h: 38%;
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--myroom {
    --building-x: 43%;
    --building-y: 66%;
    --building-w: 15%;
    --building-h: 24%;
    z-index: 3;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--store {
    --building-x: 77%;
    --building-y: 60%;
    --building-w: 19%;
    --building-h: 30%;
    z-index: 2;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--play {
    --building-x: 43%;
    --building-y: 40%;
    --building-w: 14%;
    --building-h: 20%;
    z-index: 4;
}

html[data-evo-theme="ink"] .forest-village--debug.forest-village--building-cutouts .forest-building {
    outline: 1px dashed rgba(255, 220, 80, 0.72);
    outline-offset: -1px;
}

html[data-evo-theme="ink"] .forest-village--debug.forest-village--building-cutouts .forest-building__cutout {
    opacity: 0.28;
}

@media (max-width: 760px) {
    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--school {
        --building-x: 4%;
        --building-y: 4%;
        --building-w: 40%;
        --building-h: 17%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--dojo {
        --building-x: 52%;
        --building-y: 4%;
        --building-w: 42%;
        --building-h: 17%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--stats {
        --building-x: 3%;
        --building-y: 72%;
        --building-w: 26%;
        --building-h: 15%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--myroom {
        --building-x: 34%;
        --building-y: 74%;
        --building-w: 28%;
        --building-h: 14%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--store {
        --building-x: 68%;
        --building-y: 72%;
        --building-w: 28%;
        --building-h: 15%;
    }

    html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--play {
        --building-x: 36%;
        --building-y: 38%;
        --building-w: 28%;
        --building-h: 16%;
    }
}

/* Forest wave-26: halo glow on map art — cutouts stay hit-test only */
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building__halo {
    position: absolute;
    left: var(--building-glow-x, 50%);
    bottom: var(--building-glow-y, 12%);
    width: var(--building-glow-w, 68%);
    height: var(--building-glow-h, 22%);
    transform: translateX(-50%) scale(0.94);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: soft-light;
    filter: blur(9px);
    background:
        radial-gradient(ellipse at 50% 58%, rgba(255, 196, 88, 0.62) 0%, rgba(255, 168, 52, 0.22) 42%, transparent 74%);
    box-shadow: none;
    transition:
        opacity 0.22s ease,
        transform 0.24s ease;
}

html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-building-active .forest-building__halo,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building.is-sign-open .forest-building__halo,
html[data-evo-theme="ink"] .forest-village--building-cutouts .forest-building:focus-visible .forest-building__halo {
    opacity: 0.58;
    transform: translateX(-50%) scale(1);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--school {
    --building-glow-x: 52%;
    --building-glow-y: 22%;
    --building-glow-w: 72%;
    --building-glow-h: 28%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--dojo {
    --building-glow-x: 48%;
    --building-glow-y: 20%;
    --building-glow-w: 68%;
    --building-glow-h: 30%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--stats {
    --building-glow-x: 54%;
    --building-glow-y: 18%;
    --building-glow-w: 62%;
    --building-glow-h: 26%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--myroom {
    --building-glow-x: 50%;
    --building-glow-y: 16%;
    --building-glow-w: 78%;
    --building-glow-h: 24%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--store {
    --building-glow-x: 46%;
    --building-glow-y: 18%;
    --building-glow-w: 70%;
    --building-glow-h: 26%;
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--play {
    --building-glow-x: 50%;
    --building-glow-y: 24%;
    --building-glow-w: 88%;
    --building-glow-h: 32%;
}

/* Forest wave-27: per-building sign offsets */
html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--school {
    --building-sign-bottom: calc(100% + 0.2rem);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--dojo {
    --building-sign-bottom: calc(100% + 0.25rem);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--stats {
    --building-sign-bottom: calc(100% + 0.15rem);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--myroom {
    --building-sign-bottom: calc(100% + 0.2rem);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--store {
    --building-sign-bottom: calc(100% + 0.2rem);
}

html[data-evo-theme="ink"] .forest-village--hub-master.forest-village--building-cutouts .forest-building--play {
    --building-sign-bottom: calc(100% + 0.45rem);
}

html[data-evo-theme="ink"] .forest-village--debug.forest-village--building-cutouts .forest-building__cutout {
    opacity: 0.22;
    mix-blend-mode: normal;
}

/* Forest wave-28: master-aligned full-canvas masks + contour glow */
html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--immersive .forest-village__map {
    pointer-events: auto !important;
    cursor: default;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-village__map {
    pointer-events: auto;
    cursor: default;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-village__buildings {
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master.forest-village--building-cutouts .forest-building {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-building__cutout {
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    filter: brightness(1);
    transition:
        opacity 0.2s ease,
        filter 0.22s ease;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-building.is-building-active .forest-building__cutout,
html[data-evo-theme="ink"] .forest-village--master-masks .forest-building.is-sign-open .forest-building__cutout,
html[data-evo-theme="ink"] .forest-village--master-masks .forest-building:focus-visible .forest-building__cutout {
    opacity: 0.92;
    filter:
        drop-shadow(0 0 8px rgba(255, 214, 96, 0.88))
        drop-shadow(0 0 18px rgba(255, 176, 48, 0.52))
        drop-shadow(0 0 32px rgba(255, 148, 32, 0.28));
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-building__halo {
    display: none !important;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-building__sign {
    left: var(--building-sign-x);
    top: var(--building-sign-y);
    bottom: auto;
    transform: translate(-50%, calc(-100% - 0.35rem)) rotate(-1deg);
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--school {
    z-index: 2;
    --building-sign-x: 14%;
    --building-sign-y: 5%;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--dojo {
    z-index: 2;
    --building-sign-x: 84%;
    --building-sign-y: 7%;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--stats {
    z-index: 2;
    --building-sign-x: 6%;
    --building-sign-y: 54%;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--myroom {
    z-index: 3;
    --building-sign-x: 50%;
    --building-sign-y: 63%;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--store {
    z-index: 2;
    --building-sign-x: 86%;
    --building-sign-y: 58%;
}

html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--play {
    z-index: 4;
    --building-sign-x: 50%;
    --building-sign-y: 37%;
}

@media (max-width: 900px) {
    html[data-evo-theme="ink"] .forest-village--master-masks .forest-building__cutout {
        object-position: center 32%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--school {
        --building-sign-x: 24%;
        --building-sign-y: 3%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--dojo {
        --building-sign-x: 76%;
        --building-sign-y: 3%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--stats {
        --building-sign-x: 16%;
        --building-sign-y: 67%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--myroom {
        --building-sign-x: 48%;
        --building-sign-y: 69%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--store {
        --building-sign-x: 82%;
        --building-sign-y: 65%;
    }

    html[data-evo-theme="ink"] .forest-village--master-masks.forest-village--hub-master .forest-building--play {
        --building-sign-x: 50%;
        --building-sign-y: 35%;
    }
}

html[data-evo-theme="ink"] .forest-village--debug.forest-village--master-masks .forest-building__cutout {
    opacity: 0.35;
    filter: none;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-village__map:not(.forest-village__map--masks-ready) {
    cursor: progress;
}

html[data-evo-theme="ink"] .forest-village--master-masks .forest-village__map.is-building-hover {
    cursor: pointer;
}

/* Forest wave-28b: hub 3:2 frame — master art + masks share identical cover crop */
html[data-evo-theme="ink"] body.hub-page .forest-village--hub-master.forest-village--master-masks.forest-village--immersive.forest-village--art-map {
    width: min(100vw, calc(100dvh * 1.5)) !important;
    height: min(100dvh, calc(100vw * 0.6666667)) !important;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0 auto;
    aspect-ratio: 3 / 2 !important;
}

html[data-evo-theme="ink"] body.hub-page .forest-village--master-masks.forest-village--immersive .forest-village__art-bg {
    background-position: center center !important;
}

html[data-evo-theme="ink"] body.hub-page .forest-village--master-masks .forest-village__map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    min-height: 0 !important;
}

html[data-evo-theme="ink"] body.hub-page .forest-village--master-masks.forest-village--art-map .forest-village__scene {
    display: block !important;
    position: absolute;
    inset: 0;
}

@media (max-width: 900px) {
    html[data-evo-theme="ink"] body.hub-page .forest-village--hub-master.forest-village--master-masks.forest-village--immersive.forest-village--art-map {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none;
        max-height: none;
        margin: 0;
        aspect-ratio: auto !important;
    }

    html[data-evo-theme="ink"] body.hub-page .forest-village--hub-master .forest-village__art-bg {
        background-position: center 32% !important;
    }

    html[data-evo-theme="ink"] body.hub-page .forest-village--master-masks .forest-building__cutout {
        object-position: center 32%;
    }
}

/* ============================================================
   Forest wave-30: reliable always-visible hub cards
   The previous "village hotspot" nav used PNG alpha-mask cutouts +
   per-pixel hit-testing + tap-to-reveal signs over a background art
   map — fragile to align and hard to press (especially on touch:
   tap once to reveal, tap again to enter). This replaces that nav
   with plain, always-labeled link cards. Scoped to
   .forest-village--cards; neutralizes the immersive absolute-frame
   layout (incl. the map's pointer-events:none) so it flows normally
   while keeping the forest art as a soft backdrop.
   ============================================================ */
html[data-evo-theme="ink"] .forest-village--cards {
    position: relative;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(0.9rem, 2.6vw, 1.6rem);
}

/* Topbar flows at the top (was absolutely placed over the art frame). */
html[data-evo-theme="ink"] .forest-village--cards .forest-village-topbar {
    position: relative !important;
    inset: auto !important;
    margin: 0 0 clamp(0.85rem, 2vw, 1.25rem);
    z-index: 2;
}

/* The map is now the card container and must be fully clickable. */
html[data-evo-theme="ink"] .forest-village--cards .forest-village__map {
    position: relative !important;
    inset: auto !important;
    pointer-events: auto !important;
    height: auto !important;
    display: block;
    z-index: 2;
}

/* Hide the legacy bottom dock; Play + Library are now first-class cards. */
html[data-evo-theme="ink"] .forest-village--cards .forest-village-dock {
    display: none !important;
}

/* Frosted "glade" panel: holds the cards and lets the forest art frame them. */
html[data-evo-theme="ink"] .forest-village--cards .forest-hub__panel {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    padding: clamp(0.85rem, 2.2vw, 1.35rem);
    background:
        linear-gradient(180deg, rgba(244, 236, 216, 0.52), rgba(228, 216, 190, 0.44));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 22px 52px rgba(18, 40, 26, 0.3);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.8vw, 0.95rem);
    pointer-events: auto;
}

@media (min-width: 760px) {
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card {
    --card-accent: #2f8d63;
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 76px;
    padding: 0.9rem 1.05rem;
    border-radius: 18px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(76, 102, 70, 0.22);
    background:
        linear-gradient(180deg, rgba(252, 247, 233, 0.94), rgba(243, 233, 208, 0.92));
    color: #233f2d;
    box-shadow:
        0 12px 26px rgba(24, 48, 32, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Slim accent strip down the leading edge — gives each card its identity. */
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--card-accent);
    opacity: 0.85;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:hover,
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--card-accent) 60%, transparent);
    box-shadow:
        0 18px 34px rgba(24, 48, 32, 0.24),
        0 0 0 2px color-mix(in srgb, var(--card-accent) 42%, transparent);
    outline: none;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:active {
    transform: translateY(-1px) scale(0.99);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--card-accent);
    background: rgba(58, 92, 64, 0.08);
    background: color-mix(in srgb, var(--card-accent) 14%, #fbf5e6);
    border: 1px solid rgba(58, 92, 64, 0.16);
    border-color: color-mix(in srgb, var(--card-accent) 28%, transparent);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:hover .forest-hub-card__icon,
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:focus-visible .forest-hub-card__icon {
    background: color-mix(in srgb, var(--card-accent) 22%, #fbf5e6);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__title {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

/* Primary Play card: spans the row, prominent forest-green with a Go-board glow. */
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play {
    --card-accent: #ffe0a0;
    grid-column: 1 / -1;
    min-height: 108px;
    padding: 1.15rem 1.35rem;
    border-color: rgba(255, 228, 156, 0.5);
    color: #f6efdd;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 236, 176, 0.3), transparent 52%),
        repeating-linear-gradient(0deg, rgba(255, 244, 210, 0.05) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 244, 210, 0.05) 0 1px, transparent 1px 22px),
        linear-gradient(135deg, #1c6349, #2f8d63 74%);
    box-shadow: 0 20px 38px rgba(18, 46, 30, 0.36), inset 0 1px 0 rgba(255, 244, 210, 0.3);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__text {
    flex: 1 1 auto;
    display: grid;
    gap: 0.18rem;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__title {
    font-size: 1.32rem;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__desc {
    font-size: 0.85rem;
    opacity: 0.92;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__icon {
    width: 60px;
    height: 60px;
    color: #fff7e2;
    background: rgba(255, 236, 176, 0.2);
    border-color: rgba(255, 228, 156, 0.42);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__icon svg {
    width: 34px;
    height: 34px;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__chevron {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    opacity: 0.9;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__chevron svg {
    width: 22px;
    height: 22px;
    transition: transform 0.18s ease;
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:hover .forest-hub-card__chevron svg,
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:focus-visible .forest-hub-card__chevron svg {
    transform: translateX(3px);
}

html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:hover,
html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:focus-visible {
    border-color: rgba(255, 236, 176, 0.85);
    box-shadow: 0 24px 44px rgba(18, 46, 30, 0.42), 0 0 0 2px rgba(255, 236, 176, 0.52);
}

@media (prefers-reduced-motion: reduce) {
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card,
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__chevron svg {
        transition: none;
    }
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:hover,
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:focus-visible,
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card:active,
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:hover .forest-hub-card__chevron svg,
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play:focus-visible .forest-hub-card__chevron svg {
        transform: none;
    }
}

/* Forest wave-32: hub cards — phone landscape + tablet portrait polish */
@media (max-height: 520px) and (orientation: landscape) {
    html[data-evo-theme="ink"] .forest-village--cards {
        padding: 0.65rem clamp(0.85rem, 2vw, 1.2rem);
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-village-topbar {
        margin-bottom: 0.55rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-village-topbar__logout-label {
        display: none;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub__panel {
        padding: 0.65rem 0.85rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card {
        min-height: 58px;
        padding: 0.55rem 0.75rem;
        gap: 0.55rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__icon {
        width: 42px;
        height: 42px;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__icon svg {
        width: 24px;
        height: 24px;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card__title {
        font-size: 0.92rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play {
        grid-column: 1 / -1;
        min-height: 72px;
        padding: 0.7rem 1rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__title {
        font-size: 1.08rem;
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play .forest-hub-card__desc {
        font-size: 0.78rem;
    }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    html[data-evo-theme="ink"] .forest-village--cards .forest-hub__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    html[data-evo-theme="ink"] .forest-village--cards .forest-hub-card--play {
        grid-column: span 2;
    }
}
