:root {

    --basalt-950: #0f0b0a;
    --basalt-900: #161110;
    --basalt-800: #1f1816;
    --basalt-700: #2a211e;
    --stone-line: #3a2e2a;
    --stone-hover: #55443d;

    --bone:     #f1e8db;
    --bone-2:   #d6cabb;
    --bone-dim: #a99c8c;
    --ash:      #7a6d62;

    --ember:      #b8442f;
    --ember-text: #cf5a3e;
    --ember-deep: #6e2219;
    --brass:      #b0925c;
    --moss:       #7f9a6b;
    --ochre:      #b98a3f;
    --steel:      #6b8fb0;

    --radius-lg: 14px;
    --radius-md: 9px;
    --radius-sm: 6px;

    --font-display: 'Alegreya SC', Georgia, serif;
    --font-ui: 'Alegreya Sans', 'Segoe UI', sans-serif;

    --header-h: 68px;
    --header-h-small: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + var(--tb, 0px));
    background:
        radial-gradient(1200px 600px at 50% -10%, #2a1915 0%, transparent 60%) fixed,
        var(--basalt-900);
    color: var(--bone-2);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: clip;
}

button, input, select, textarea {
    font-family: inherit;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bone);
}

a {
    color: var(--ember-text);
}

input[type="range"],
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--ember);
}

::selection {
    background: rgba(184, 68, 47, 0.45);
    color: var(--bone);
}

:focus-visible {
    outline: 2px solid var(--ember-text);
    outline-offset: 2px;
}

header {
    position: fixed;
    top: var(--tb, 0px);
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: linear-gradient(rgba(27, 20, 18, .96), rgba(21, 15, 14, .96));
    border-bottom: 1px solid #2b221f;
    backdrop-filter: blur(8px);
    transition: height .25s ease, background .25s ease, box-shadow .25s ease;
    view-transition-name: site-header;
}

header.is-small {
    height: var(--header-h-small);
    background: rgba(15, 11, 10, .97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bone);
    text-decoration: none;
}

.logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    transition: transform .4s ease;
}

.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.logo-name small {
    display: block;
    margin-top: 3px;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ash);
    transition: opacity .2s ease;
}

header.is-small .logo-name small { opacity: 0; }

#siteNav {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#siteNav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    height: 100%;
}

#siteNav ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#siteNav ul > li > a,
.nav-link-btn {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    border: none;
    background: none;
    color: var(--bone-dim);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease, text-shadow .2s ease;
}

#siteNav ul > li > a:hover,
.nav-link-btn:hover,
#siteNav ul > li > a:focus-visible,
.nav-link-btn:focus-visible {
    color: var(--bone);
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(207, 90, 62, .55);
}

#siteNav ul > li > a.is-active { color: var(--bone); }

.logout-form {
    display: flex;
    height: 100%;
}

.nav-link-btn {
    line-height: inherit;
}

.nav-spark {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 0;
    height: 2px;
    opacity: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--ember-text) 20%, #ffb37a 50%, var(--ember-text) 80%, transparent);
    box-shadow: 0 0 12px var(--ember-text);
    pointer-events: none;
    transition: left .32s cubic-bezier(.3, .7, .2, 1), width .32s cubic-bezier(.3, .7, .2, 1), opacity .2s ease, bottom .25s ease;
}

.nav-spark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    width: 7px;
    height: 7px;
    background: var(--bone);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 10px var(--ember-text), 0 0 3px #fff;
}

header.is-small .nav-spark { bottom: 8px; }

.mega {
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 130px);
    gap: 10px;
    padding: 14px;
    background: rgba(15, 11, 10, .98);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

#siteNav:not(.no-mega) li.has-mega:hover .mega,
#siteNav:not(.no-mega) li.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--stone-line);
    color: var(--bone);
    text-decoration: none;
    background: linear-gradient(160deg, #3a2420, #1a1210);
    transition: border-color .2s ease, transform .2s ease;
}

.mega-monsters { background: linear-gradient(160deg, #23302c, #121614); }
.mega-spells { background: linear-gradient(160deg, #3a3020, #17130d); }
.mega-items { background: linear-gradient(160deg, #3a1a1a, #170c0c); }

.mega-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55) saturate(.85);
    transition: filter .25s ease, transform .4s ease;
}

.mega-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 7, 6, .92), transparent 60%);
}

.mega-tile:hover { border-color: var(--ember); transform: translateY(-2px); }
.mega-tile:hover img { filter: none; transform: scale(1.06); }

.mega-tile span {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 9px;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.1;
}

.mega-tile small {
    display: block;
    margin-top: 2px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--bone-dim);
}

.nav-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-md);
    background: none;
    cursor: pointer;
}

.nav-burger i {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--bone);
    transition: transform .2s ease, opacity .2s ease;
}

nav:not(#siteNav) ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

nav:not(#siteNav) a {
    display: block;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: var(--bone-dim);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

nav:not(#siteNav) a:hover { color: var(--bone); background: var(--basalt-700); }

@view-transition { navigation: auto; }

::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }

::view-transition-old(root) { animation: drVtOut .25s ease both; }
::view-transition-new(root) { animation: drVtIn .42s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes drVtOut { to { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes drVtIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

html.vt-l::view-transition-old(root) { animation: drSlOutL .35s ease both; }
html.vt-l::view-transition-new(root) { animation: drSlInL .45s cubic-bezier(.2, .8, .2, 1) both; }
html.vt-r::view-transition-old(root) { animation: drSlOutR .35s ease both; }
html.vt-r::view-transition-new(root) { animation: drSlInR .45s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes drSlOutL { to { opacity: 0; transform: translateX(-60px); } }
@keyframes drSlInL { from { opacity: 0; transform: translateX(80px); } }
@keyframes drSlOutR { to { opacity: 0; transform: translateX(60px); } }
@keyframes drSlInR { from { opacity: 0; transform: translateX(-80px); } }

html[data-vt="none"]::view-transition-old(root),
html[data-vt="none"]::view-transition-new(root),
html[data-vt="curtain"]::view-transition-old(root),
html[data-vt="curtain"]::view-transition-new(root) { animation: none; }

.vt-curtain {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.vt-curtain::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #241914 0%, #0b0807 70%);
    clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
    transition: clip-path .42s cubic-bezier(.6, 0, .3, 1);
}

.vt-curtain.is-in::before,
html.vt-curtain-hold .vt-curtain::before { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
html.vt-curtain-hold .vt-curtain::before { transition: none; }
.vt-curtain.is-out::before { clip-path: circle(0% at 50% 50%); transition-duration: .5s; }

.vt-curtain-mark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .25s ease, transform .35s ease;
}

.vt-curtain.is-in .vt-curtain-mark { opacity: 1; transform: scale(1); transition-delay: .15s; }
html.vt-curtain-hold .vt-curtain-mark { opacity: 1; transform: none; transition: none; }
.vt-curtain.is-out .vt-curtain-mark { opacity: 0; transform: scale(1.08); transition-delay: 0s; }

.vt-curtain-logo {
    width: 70px;
    height: 70px;
    animation: drPulse 1.2s ease-in-out infinite;
}

@keyframes drPulse { 50% { filter: drop-shadow(0 0 18px rgba(207, 90, 62, .8)); } }

.vt-curtain-mark b {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: .06em;
    color: var(--bone);
}

.vt-curtain-bar {
    width: 220px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--stone-line);
}

.vt-curtain-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ember-text), #ffb37a);
    box-shadow: 0 0 10px var(--ember-text);
}

.vt-curtain.is-in .vt-curtain-bar i { animation: drLoad .5s .2s ease forwards; }
html.vt-curtain-hold .vt-curtain-bar i { width: 100%; }

@keyframes drLoad { to { width: 100%; } }

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    text-align: center;
    background: var(--basalt-800);
    border-top: 1px solid #2b221f;
    color: var(--ash);
    font-size: 14px;
}

.btn-ember {
    background: linear-gradient(180deg, #a83c29, #8a3022);
    border: 1px solid var(--ember);
    color: #f6ece2;
}

.btn-ember:hover {
    background: linear-gradient(180deg, #bd4630, #9b3525);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--stone-line) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--stone-line);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone-hover);
}

.auth-card {
    max-width: 420px;
    margin: 64px auto;
    padding: 32px 32px 28px;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.auth-card .auth-mark {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
}

.auth-card h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--ash);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-field {
    display: block;
    margin-bottom: 16px;
}

.auth-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--bone-dim);
    font-size: 14px;
}

.auth-field input {
    width: 100%;
    padding: 11px 13px;
    background: var(--basalt-700);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-md);
    color: var(--bone);
    font-size: 15px;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--ember);
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-errors {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-left: 3px solid var(--ember);
    background: rgba(184, 68, 47, 0.1);
    border-radius: var(--radius-sm);
    color: #e7b4a5;
    font-size: 14px;
    list-style: none;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--ash);
    font-size: 14px;
}

.auth-hint {
    display: block;
    margin-top: 6px;
    color: var(--ash);
    font-size: 12.5px;
    line-height: 1.35;
}

.auth-captcha-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.auth-captcha-row img { display: block; border: 1px solid var(--stone-line); border-radius: var(--radius-sm); background: #1f1816; }

.auth-captcha-new {
    width: 40px;
    height: 40px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: 50%;
    color: var(--bone-dim);
    font-size: 20px;
    cursor: pointer;
}

.auth-captcha-new:hover { border-color: var(--brass); color: var(--bone); }
.auth-captcha input { text-transform: uppercase; letter-spacing: .2em; }

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    color: var(--bone-dim);
    font-size: 13.5px;
    line-height: 1.4;
    cursor: pointer;
}

.auth-consent input {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--moss);
    cursor: pointer;
}

.auth-consent a,
.footer-link {
    color: var(--brass);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-consent a:hover,
.footer-link:hover {
    color: var(--bone);
}

.flash-status {
    margin: 16px auto 0;
    max-width: 640px;
    padding: 10px 14px;
    background: rgba(127, 154, 107, .12);
    border: 1px solid var(--moss);
    border-radius: var(--radius-sm);
    color: #cfe0c0;
    text-align: center;
}

.footer-btn {
    padding: 0;
    background: none;
    border: 0;
    color: var(--brass);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.footer-btn:hover { color: var(--bone); }

.fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 7, 6, .72);
}

.fb-overlay[hidden] { display: none; }

.fb-window {
    width: min(520px, 100%);
    padding: 18px 20px 20px;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-top: 2px solid var(--ember);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fb-head h2 { font-size: 20px; }
.fb-close { background: none; border: 0; color: var(--bone-dim); font-size: 28px; line-height: 1; cursor: pointer; }

.fb-kinds { display: flex; gap: 8px; margin-bottom: 10px; }
.fb-kinds label { flex: 1; cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }

.fb-kinds span {
    display: block;
    padding: 8px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-sm);
    color: var(--bone-dim);
    text-align: center;
}

.fb-kinds input:checked + span { border-color: var(--ember); background: rgba(184, 68, 47, .14); color: var(--bone); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--brass); }

.fb-window textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-sm);
    color: var(--bone);
    font: inherit;
    resize: vertical;
}

.fb-window textarea:focus { outline: none; border-color: var(--ember); }
.fb-note { margin-top: 6px; color: var(--ash); font-size: 12.5px; }
.fb-msg { min-height: 1.4em; margin-top: 6px; font-size: 14px; }
.fb-msg.is-ok { color: #b9d3a5; }
.fb-msg.is-bad { color: #e7b4a5; }

.fb-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.fb-btn {
    min-height: 40px;
    padding: 0 16px;
    background: var(--basalt-900);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-sm);
    color: var(--bone-2);
    cursor: pointer;
}

.fb-send { background: var(--ember); border-color: var(--ember); color: #fff; }
.fb-send:disabled { opacity: .6; }

.legal {
    max-width: 780px;
    margin: 28px auto 48px;
    padding: 32px 36px;
    background: var(--basalt-800);
    border: 1px solid var(--stone-line);
    border-radius: var(--radius-lg);
    color: var(--bone-2);
    line-height: 1.6;
}

.legal h1 {
    font-size: 32px;
    margin-bottom: 4px;
}

.legal h2 {
    font-size: 20px;
    margin: 26px 0 8px;
}

.legal-meta {
    color: var(--ash);
    font-size: 14px;
    margin-bottom: 18px;
}

.legal p,
.legal ul {
    margin-bottom: 10px;
}

.legal ul {
    padding-left: 22px;
}

.legal li {
    margin-bottom: 4px;
}

.legal b {
    color: var(--bone);
}

.legal a {
    color: var(--brass);
}

@media (max-width: 640px) {
    .legal { padding: 22px 18px; margin-top: 16px; }
    .legal h1 { font-size: 26px; }
}

@media (max-width: 900px) {
    :root { --header-h: 60px; --header-h-small: 60px; }

    .header-container { padding: 0 1rem; }
    .logo-name small { display: none; }
    .logo-name { font-size: 20px; }

    .nav-burger { display: block; }
    .nav-spark, .mega { display: none; }

    #siteNav {
        position: fixed;
        top: calc(var(--header-h) + var(--tb, 0px));
        left: 0;
        right: 0;
        height: auto;
        display: block;
        background: rgba(15, 11, 10, .98);
        border-bottom: 1px solid var(--stone-line);
        box-shadow: 0 16px 30px rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    header.is-open #siteNav { opacity: 1; visibility: visible; transform: none; }

    #siteNav ul { flex-direction: column; align-items: stretch; height: auto; padding: 6px 0; gap: 0; }
    #siteNav ul > li { height: auto; display: block; }
    #siteNav ul > li > a, .nav-link-btn { height: 48px; width: 100%; padding: 0 1.25rem; font-size: 16px; }
    #siteNav ul > li > a.is-active { color: var(--ember-text); }
    .logout-form { height: auto; }

    header.is-open .nav-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    header.is-open .nav-burger i:nth-child(2) { opacity: 0; }
    header.is-open .nav-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    main { padding: 0 1rem; }
}

@media (max-width: 480px) {
    main { padding: 0 10px; }
}

@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea { font-size: max(16px, 1em); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none !important; }
}

.nav-install { color: var(--ember-text, #e07a4a); }

.pwa-hint {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, .6);
}
.pwa-hint[hidden] { display: none; }
.pwa-hint-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: #1a1412;
    border: 1px solid #3a2e2a;
    border-top: 2px solid #cf5a3e;
    color: #d6cabb;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.pwa-hint-card img { border-radius: 14px; }
.pwa-hint-card b { color: #f1e8db; font-size: 1.1rem; }
.pwa-hint-card ol { margin: 4px 0 0; padding-left: 1.3rem; text-align: left; line-height: 1.7; }
.pwa-hint-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #3a2e2a;
    background: #120d0c;
    color: #a99c8c;
    font-size: 20px;
    line-height: 1;
}
.pwa-share {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    vertical-align: -7px;
    border-radius: 6px;
    background: #2a211e;
    color: #6ea8ff;
}
.pwa-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (display-mode: standalone) {
    #siteHeader { padding-top: env(safe-area-inset-top, 0px); }
}

.pwa-toast {
    position: fixed;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 2100;
    width: min(420px, calc(100% - 24px));
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 12px;
    background: #1a1412;
    border: 1px solid #3a2e2a;
    border-left: 3px solid #7fd17f;
    color: #f1e8db;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.pwa-toast[hidden] { display: none; }

.pwa-hint-text { margin: 0; font-size: 14px; line-height: 1.5; color: #a99c8c; }
.pwa-hint-card b.pwa-inline { font-size: inherit; }
.pwa-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.pwa-link span {
    padding: 9px 12px;
    border-radius: 8px;
    background: #120d0c;
    border: 1px solid #3a2e2a;
    color: #f1e8db;
    font-size: 14px;
    user-select: all;
    -webkit-user-select: all;
    overflow-wrap: anywhere;
}
.pwa-copy {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #cf5a3e;
    color: #fff;
    font: inherit;
    font-weight: 700;
}

@media (min-width: 901px) {
    .nav-install-item { display: none !important; }
}

.wco-bar { display: none; }
@media (display-mode: window-controls-overlay) {
    :root { --tb: env(titlebar-area-height, 0px); }
    .wco-bar {
        position: fixed;
        top: env(titlebar-area-y, 0px);
        left: env(titlebar-area-x, 0px);
        z-index: 1100;
        display: flex;
        align-items: center;
        gap: 8px;
        width: env(titlebar-area-width, 100%);
        height: env(titlebar-area-height, 32px);
        padding: 0 12px;
        background: #0f0b0a;
        border-bottom: 1px solid #241b18;
        color: #7a6d62;
        font: 600 12.5px/1 var(--font-ui);
        white-space: nowrap;
        overflow: hidden;
        -webkit-app-region: drag;
        app-region: drag;
        user-select: none;
    }
    .wco-bar svg { width: 18px; height: 18px; flex: none; }
    .wco-bar b { color: #d6cabb; font: 700 13px/1 var(--font-display); letter-spacing: .03em; }
    .wco-bar span { overflow: hidden; text-overflow: ellipsis; }

    .wco-bar a, .wco-bar button, .gm-fab { -webkit-app-region: no-drag; app-region: no-drag; }
}

.nav-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--ember); color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: 2px; }
