[hidden] {
    display: none !important;
}

:root {
    --g-bg: #fff5d6;
    --g-dot: rgba(29, 27, 22, 0.08);
    --g-felt: #f6ecd2;
    --g-card: #fffdf8;
    --g-ink: #1d1b16;
    --g-edge: #e6dabd;
    --g-track: #efe4c8;
    --g-shine: rgba(255, 255, 255, 0.75);
    --g-board: #1d1b16;
    --g-lemon: #ffd43b;
    --g-lemon-deep: #d9a400;
    --g-lemon-soft: #fff0b3;
    --g-gold: #f8bf1a;
    --g-gold-deep: #c58a00;
    --g-dr: #2f6fe0;
    --g-dr-deep: #1f4fb0;
    --g-dr-soft: #e5edff;
    --g-dr-text: #2a63cc;
    --g-cr: #f07818;
    --g-cr-deep: #b85508;
    --g-cr-soft: #ffeedd;
    --g-cr-text: #c25a06;
    --g-good: #23893a;
    --g-good-deep: #176428;
    --g-good-soft: #e1f5e5;
    --g-good-text: #1f7a33;
    --g-bad: #e5383b;
    --g-bad-deep: #a8262a;
    --g-bad-soft: #fde5e5;
    --g-bad-text: #c92a2d;
    --g-leather: #6b4a34;
    --g-leather-deep: #4a3222;
    --g-leather-edge: #3a271a;
    --g-lining: #f3e5c8;
    --g-pocket: #e8d5b0;
    --g-stitch: rgba(244, 220, 170, 0.55);
    --g-bill: #fffaf0;
    --g-bill-edge: #dcc9a4;
}

:root[data-theme="night"] {
    --g-bg: #1d1b17;
    --g-dot: rgba(255, 255, 255, 0.05);
    --g-felt: #171512;
    --g-card: #2a2721;
    --g-ink: #efeadf;
    --g-edge: #3d382f;
    --g-track: #34302a;
    --g-shine: rgba(255, 255, 255, 0.14);
    --g-board: #0e0d0b;
    --g-lemon-soft: rgba(255, 212, 59, 0.15);
    --g-dr-soft: rgba(47, 111, 224, 0.22);
    --g-dr-text: #8fb1ff;
    --g-cr-soft: rgba(240, 120, 24, 0.2);
    --g-cr-text: #ffad6b;
    --g-good-soft: rgba(35, 137, 58, 0.24);
    --g-good-text: #6fd389;
    --g-bad-soft: rgba(229, 56, 59, 0.22);
    --g-bad-text: #ff8a8a;
    --g-leather: #2f241c;
    --g-leather-deep: #1c1510;
    --g-leather-edge: #120e0b;
    --g-lining: #241c16;
    --g-pocket: #1a1410;
    --g-stitch: rgba(227, 168, 87, 0.35);
    --g-bill: #2a2721;
    --g-bill-edge: #463c32;
}

.page--game .site-header {
    margin-bottom: 2rem;
}

.page--game .article-nav {
    margin-top: 3rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.game {
    --awning: var(--g-lemon);
    position: relative;
    padding: 0 1.25rem 1.5rem;
    border: 2px solid var(--g-edge);
    border-radius: 24px;
    background-color: var(--g-bg);
    background-image: radial-gradient(var(--g-dot) 1.2px, transparent 1.7px);
    background-size: 18px 18px;
    box-shadow: 0 6px 0 var(--g-edge);
}

.stat-chip,
.specimen__num,
.ticket__no,
.entry-line__amount,
.ticket__points,
.tee__total,
.account-tile__balance,
.account-tile__delta,
.game-journal__table .num,
.game-journal__no,
.equation,
.score-card dd {
    font-variant-numeric: tabular-nums;
}

.game.is-bank {
    --awning: var(--g-dr);
}

.game::before {
    --scallop: 1.25rem;
    content: "";
    display: block;
    height: 3rem;
    margin: 0 -1.25rem 1.5rem;
    border-radius: 22px 22px 0 0;
    background: repeating-linear-gradient(
        90deg,
        var(--awning) 0 2.5rem,
        var(--g-card) 0 5rem
    );
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--scallop))
            no-repeat,
        radial-gradient(circle var(--scallop) at 50% 0, #000 98%, transparent)
            bottom / calc(var(--scallop) * 2) var(--scallop) repeat-x;
    mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--scallop))
            no-repeat,
        radial-gradient(circle var(--scallop) at 50% 0, #000 98%, transparent)
            bottom / calc(var(--scallop) * 2) var(--scallop) repeat-x;
}

.game-label {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
}

.game-btn {
    --btn: var(--g-lemon);
    --btn-text: #1d1b16;
    --btn-depth: var(--g-lemon-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 14px;
    background-color: var(--btn);
    color: var(--btn-text);
    box-shadow: 0 4px 0 var(--btn-depth);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.08s ease,
        box-shadow 0.08s ease,
        filter 0.15s ease;
}

.game-btn:hover {
    filter: brightness(1.06);
}

.game-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--btn-depth);
}

.game-btn:focus-visible {
    border-radius: 14px;
}

.game-btn--go {
    --btn: var(--g-good);
    --btn-text: #fff;
    --btn-depth: var(--g-good-deep);
}

.game-btn--ghost {
    --btn: var(--g-card);
    --btn-text: var(--text);
    --btn-depth: var(--g-edge);
    padding: calc(0.8rem - 2px) calc(1.4rem - 2px);
    border: 2px solid var(--g-edge);
}

.game-btn--big {
    min-height: 3.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.game-btn:disabled {
    --btn: var(--g-track);
    --btn-text: var(--muted);
    --btn-depth: var(--g-edge);
    box-shadow: 0 4px 0 var(--btn-depth);
    filter: none;
    transform: none;
    cursor: not-allowed;
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.game-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background-color: var(--g-lemon);
    color: #1d1b16;
    box-shadow: 0 2px 0 var(--g-lemon-deep);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.tag-dr,
.tag-cr {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tag-dr {
    background-color: var(--g-dr);
    color: #fff;
}

.tag-cr {
    background-color: var(--g-cr);
    color: #1d1b16;
}

.coin-icon {
    display: inline-block;
    flex: none;
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff6c8 0 18%, transparent 42%),
        var(--g-gold);
    box-shadow:
        inset 0 0 0 2px var(--g-gold-deep),
        inset 0 0 0 3.5px #ffe27a;
}

.flame {
    display: inline-block;
    flex: none;
    width: 0.78em;
    height: 0.78em;
    margin-top: 0.15em;
    border-radius: 50% 0 50% 50%;
    background: radial-gradient(
        circle at 38% 62%,
        #fff3a3 0 16%,
        #ffa62b 40%,
        #f2552c 76%
    );
    transform: rotate(-45deg);
}

.hud {
    margin-bottom: 1.5rem;
}

.hud__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
}

.hud__level {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    margin: 0;
}

.hud__chip {
    flex: none;
    padding: 0.35rem 0.6rem;
    border-radius: 9px;
    background-color: var(--g-ink);
    color: var(--g-bg);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hud__chapter {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hud__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    border: 2px solid var(--g-edge);
    border-radius: 12px;
    background-color: var(--g-card);
    box-shadow: 0 3px 0 var(--g-edge);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.hud__streak.is-hot {
    border-color: var(--g-cr);
    box-shadow: 0 3px 0 var(--g-cr);
}

.hud__streak.is-hot .flame {
    animation: lde-flicker 0.5s ease-in-out infinite alternate;
}

.hud__streak.is-bump,
.hud__score.is-bump,
.tee__eq.is-bump {
    animation: lde-bump 0.45s ease;
}

.sound-toggle {
    justify-content: center;
    width: 2.25rem;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition:
        transform 0.08s ease,
        box-shadow 0.08s ease;
}

.sound-toggle:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--g-edge);
}

.sound-toggle:focus-visible {
    border-radius: 12px;
}

.sound-toggle[aria-pressed="false"] {
    color: var(--muted);
}

.sound-toggle__icon {
    position: relative;
    width: 1.15rem;
    height: 1rem;
}

.sound-toggle__icon::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0;
    width: 0.6rem;
    height: 0.7rem;
    background-color: currentColor;
    clip-path: polygon(0 28%, 38% 28%, 100% 0, 100% 100%, 38% 72%, 0 72%);
}

.sound-toggle__icon::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    right: 0;
    width: 0.45rem;
    height: 0.76rem;
    border: 2px solid transparent;
    border-right-color: currentColor;
    border-radius: 50%;
}

.sound-toggle[aria-pressed="false"] .sound-toggle__icon::after {
    content: "×";
    top: -0.15rem;
    width: auto;
    height: auto;
    border: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.hud__meter {
    height: 0.9rem;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--g-track);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06);
}

.hud__fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: var(--g-lemon);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent 0 8px,
        rgba(255, 255, 255, 0.35) 8px 16px
    );
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    transition: width 0.7s cubic-bezier(0.3, 1.4, 0.5, 1);
    animation: lde-stripes 0.9s linear infinite;
}

.is-entering {
    animation: lde-enter 0.4s ease both;
}

.title-screen {
    padding: 0.25rem 0;
    text-align: center;
}

.lemon-slice {
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    margin: 0 auto 1.25rem;
    padding: 4px;
    border: 5px solid #f2c200;
    border-radius: 50%;
    background-color: #fffbe6;
    box-shadow: 0 5px 0 #d9a400;
    animation: lde-bob 3s ease-in-out infinite;
}

.lemon-slice::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fffbe6 0 10%, transparent 11%),
        repeating-conic-gradient(#ffe066 0 30deg, #fff7cf 30deg 36deg);
    animation: lde-spin 30s linear infinite;
}

.title-screen__kicker {
    display: inline-block;
    margin: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background-color: var(--g-ink);
    color: var(--g-bg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.title-screen__title {
    margin: 0.85rem 0 1rem;
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-shadow: 3px 3px 0 var(--g-lemon);
    text-wrap: balance;
}

.title-screen__lead {
    max-width: 30rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.55;
    text-wrap: pretty;
}

.title-screen .game-actions {
    justify-content: center;
}

.title-screen__meta {
    margin: 1.1rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.specimen {
    max-width: 21rem;
    margin: 1.75rem auto 0;
}

.specimen__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4rem 4rem;
    align-items: center;
    row-gap: 0.4rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--g-edge);
    border-radius: 16px;
    background-color: var(--g-card);
    box-shadow: 0 4px 0 var(--g-edge);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    transform: rotate(-1.5deg);
}

.specimen__entry b {
    margin-right: 0.45rem;
    vertical-align: 0.1em;
}

.specimen__credit {
    padding-left: 1.25rem;
}

.specimen__num {
    font-weight: 900;
    text-align: right;
}

.specimen figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.chapter-intro__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chapter-intro__done {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: var(--g-good);
    color: #fff;
    box-shadow: 0 3px 0 var(--g-good-deep);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    animation: lde-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s both;
}

.level-tag {
    padding: 0.3rem 0.7rem;
    border-radius: 9px;
    background-color: var(--g-lemon);
    color: #1d1b16;
    box-shadow: 0 3px 0 var(--g-lemon-deep);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.chapter-intro__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 7vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.guide {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.buddy {
    --buddy: 3.75rem;
    position: relative;
    flex: none;
    width: var(--buddy);
    height: calc(var(--buddy) * 0.8);
    margin: 0.6rem 0 0 0.3rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 42%, #1d1b16 0 2.6px, transparent 3.1px),
        radial-gradient(circle at 62% 42%, #1d1b16 0 2.6px, transparent 3.1px),
        radial-gradient(
            circle at 25% 60%,
            rgba(255, 120, 110, 0.55) 0 5px,
            transparent 6px
        ),
        radial-gradient(
            circle at 75% 60%,
            rgba(255, 120, 110, 0.55) 0 5px,
            transparent 6px
        ),
        radial-gradient(circle at 32% 24%, #fff6bf 0 14%, transparent 34%),
        #ffd43b;
    box-shadow:
        inset -5px -6px 0 rgba(217, 164, 0, 0.45),
        0 4px 0 #d9a400;
    animation: lde-bob 2.6s ease-in-out infinite;
}

.buddy::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background-color: #f2c200;
    box-shadow: var(--buddy) 0 0 #f2c200;
}

.buddy::after {
    content: "";
    position: absolute;
    top: 52%;
    left: 50%;
    width: 12px;
    height: 6px;
    margin-left: -6px;
    border: 2.5px solid #1d1b16;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.buddy.is-cheer {
    animation: lde-cheer 0.7s ease-in-out infinite alternate;
}

.bubble {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--g-edge);
    border-radius: 18px;
    background-color: var(--g-card);
    box-shadow: 0 4px 0 var(--g-edge);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.55;
    text-wrap: pretty;
    transform-origin: left top;
    animation: lde-bubble 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 0.1s both;
}

.bubble::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    left: -9px;
    width: 14px;
    height: 14px;
    border-bottom: 2px solid var(--g-edge);
    border-left: 2px solid var(--g-edge);
    background-color: var(--g-card);
    transform: rotate(45deg);
}

.bubble p {
    margin: 0 0 0.7em;
}

.bubble p:last-child {
    margin-bottom: 0;
}

.bubble strong {
    font-weight: 800;
}

.bubble em {
    font-style: normal;
    font-weight: 900;
}

.bubble .is-dr {
    color: var(--g-dr-text);
}

.bubble .is-cr {
    color: var(--g-cr-text);
}

.bubble a {
    text-decoration-color: var(--g-lemon-deep);
    text-decoration-thickness: 2px;
}

.rule-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}

.rule-sign {
    --point: 1.6rem;
    --from: -14px;
    margin: 0;
    color: #fff;
    filter: drop-shadow(0 4px 0 var(--g-dr-deep));
    animation: lde-sign 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s both;
}

.rule-sign.is-cr {
    --from: 14px;
    color: #1d1b16;
    text-align: right;
    filter: drop-shadow(0 4px 0 var(--g-cr-deep));
}

.rule-sign__plate {
    display: flex;
    flex-direction: column;
    padding: 0.7rem 1rem 0.8rem calc(var(--point) + 0.5rem);
    border-radius: 0 14px 14px 0;
    background-color: var(--g-dr);
    clip-path: polygon(
        var(--point) 0,
        100% 0,
        100% 100%,
        var(--point) 100%,
        0 50%
    );
}

.rule-sign.is-cr .rule-sign__plate {
    padding: 0.7rem calc(var(--point) + 0.5rem) 0.8rem 1rem;
    border-radius: 14px 0 0 14px;
    background-color: var(--g-cr);
    clip-path: polygon(
        0 0,
        calc(100% - var(--point)) 0,
        100% 50%,
        calc(100% - var(--point)) 100%,
        0 100%
    );
}

.rule-sign small {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rule-sign strong {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.rule-sign__plate > span {
    font-size: 0.8rem;
    font-weight: 700;
}

.unlock-hint {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.unlock-hint .game-badge {
    flex: none;
}

.side-chip {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    background-color: var(--g-dr);
    color: #fff;
    box-shadow: 0 2px 0 var(--g-dr-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-chip--cr {
    background-color: var(--g-cr);
    color: #1d1b16;
    box-shadow: 0 2px 0 var(--g-cr-deep);
}

.wallet {
    position: relative;
    padding: 0.7rem;
    border: 2px solid var(--g-leather-edge);
    border-radius: 22px;
    background:
        radial-gradient(
            ellipse at 20% 15%,
            rgba(255, 255, 255, 0.12),
            transparent 42%
        ),
        linear-gradient(160deg, var(--g-leather) 0%, var(--g-leather-deep) 100%);
    box-shadow:
        0 10px 0 var(--g-leather-edge),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wallet::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 1.5px dashed var(--g-stitch);
    border-radius: 16px;
    pointer-events: none;
}

.wallet__flap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0.15rem 0.7rem;
    padding: 0.35rem 0.55rem 0.55rem;
    border-bottom: 1.5px dashed var(--g-stitch);
}

.wallet__brand {
    color: #f6e7c8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wallet__clasp {
    width: 1.55rem;
    height: 1.55rem;
    border: 2px solid #e8c56a;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff1b8 0 18%, transparent 40%),
        linear-gradient(#f0d27a, #c8962a);
    box-shadow:
        inset 0 0 0 3px #8a6418,
        0 2px 0 rgba(0, 0, 0, 0.25);
}

.wallet__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
    gap: 0;
    min-height: 8rem;
    padding: 0.55rem;
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.12),
            transparent 18%,
            transparent 82%,
            rgba(0, 0, 0, 0.16)
        ),
        var(--g-lining);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wallet__spine {
    position: relative;
    margin: -0.2rem 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.22),
        rgba(255, 255, 255, 0.08) 45%,
        rgba(0, 0, 0, 0.28)
    );
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.wallet__spine::before {
    content: "";
    position: absolute;
    inset: 8% 40%;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0 10px,
        var(--g-stitch) 10px 12px
    );
}

.wallet__pocket {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.wallet__pocket--left {
    padding-right: 0.55rem;
}

.wallet__pocket--right {
    padding-left: 0.55rem;
}

.wallet__mouth {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0 0 0.7rem;
    padding: 0.55rem 0.65rem 0.7rem;
    border-radius: 12px 12px 10px 10px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 70%),
        var(--g-pocket);
    box-shadow:
        inset 0 3px 0 rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.wallet__mouth--credit {
    align-items: flex-end;
    text-align: right;
}

.wallet__slot {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 3.5rem;
}

.wallet__bills {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wallet__clip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0.15rem 0.1rem;
    padding: 0.55rem 0.7rem;
    border: 1.5px dashed var(--g-stitch);
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(0, 0, 0, 0.12)
    );
}

.wallet__clip .tee__total {
    color: #f6e7c8;
}

.bill,
.account-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    min-height: 3.9rem;
    padding: 0.65rem 0.75rem 0.7rem;
    border: 1px solid var(--g-bill-edge);
    border-radius: 4px 12px 12px 4px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0 5px,
            transparent 5px 12px
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.55),
            transparent 28%
        ),
        var(--g-bill);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 0 color-mix(in srgb, var(--g-bill-edge) 70%, #000 30%),
        0 8px 14px -10px rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    text-align: left;
}

.bill::before,
.account-tile::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    left: 0.35rem;
    width: 2px;
    border-radius: 2px;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0 4px,
        color-mix(in srgb, var(--muted) 45%, transparent) 4px 6px
    );
}

.account-tile__name {
    padding-right: 2.5rem;
    padding-left: 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.account-tile__group {
    padding-left: 0.35rem;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.account-tile__about {
    display: none;
    padding: 0.15rem 0.35rem 0.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
}

.account-tile.is-new .account-tile__about {
    display: block;
}

.account-tile.is-new {
    animation: lde-unlock 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.account-tile.is-new:nth-child(2) {
    animation-delay: 0.1s;
}

.account-tile.is-new:nth-child(3) {
    animation-delay: 0.2s;
}

.account-tile.is-new:not(.is-debit):not(.is-credit)::after {
    content: "New";
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 7px;
    background-color: var(--g-lemon);
    color: #1d1b16;
    box-shadow: 0 2px 0 var(--g-lemon-deep);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    transform: rotate(5deg);
}

.ticket {
    position: relative;
    padding: 1.1rem 1.25rem 1.25rem;
    border: 2px solid var(--g-edge);
    border-radius: 20px;
    background-color: var(--g-card);
    box-shadow: 0 5px 0 var(--g-edge);
}

.ticket.is-entering {
    animation: lde-deal 0.5s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.ticket.is-shaking {
    animation: lde-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.ticket.is-correct {
    animation: lde-glow 0.9s ease-out;
}

.ticket__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ticket__day {
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    background-color: var(--g-lemon);
    color: #1d1b16;
    box-shadow: 0 2px 0 var(--g-lemon-deep);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticket__no {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.ticket__text {
    margin: 0.85rem 0 1.15rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.ticket__entry {
    display: grid;
    gap: 0.6rem;
}

.entry-line {
    --role: var(--g-dr);
    --role-text: var(--g-dr-text);
    --role-soft: var(--g-dr-soft);
    --depth: 0 0 0 transparent;
    --ring: 0 0 0 0 transparent;
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.5rem 0.6rem 0.5rem 0.75rem;
    border: 2px dashed color-mix(in srgb, var(--role) 45%, var(--g-edge));
    border-radius: 14px;
    background-color: transparent;
    box-shadow: var(--depth), var(--ring);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.08s ease;
}

.entry-line--credit {
    --role: var(--g-cr);
    --role-text: var(--g-cr-text);
    --role-soft: var(--g-cr-soft);
    width: calc(100% - 1.5rem);
    margin-left: 1.5rem;
}

.entry-line:active:not(:disabled) {
    transform: translateY(2px);
}

.entry-line:focus-visible {
    border-radius: 14px;
}

.entry-line:disabled {
    cursor: default;
}

.entry-line.is-active {
    --ring: 0 0 0 4px color-mix(in srgb, var(--role) 22%, transparent);
    border-style: solid;
    border-color: var(--role);
    animation: lde-ring 1.6s ease-in-out infinite;
}

.entry-line.is-filled {
    --depth: 0 3px 0 var(--role);
    border-style: solid;
    border-color: var(--role);
    background-color: var(--role-soft);
}

.entry-line.is-wrong {
    --role: var(--g-bad);
    --role-text: var(--g-bad-text);
    --role-soft: var(--g-bad-soft);
}

.entry-line__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.entry-line__word {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--role-text);
}

.entry-line__dc {
    padding: 0.08rem 0.4rem;
    border-radius: 6px;
    background-color: var(--role);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.entry-line--credit .entry-line__dc {
    color: #1d1b16;
}

.entry-line__value {
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.entry-line.is-active:not(.is-filled) .entry-line__value::before {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-right: 0.35rem;
    border-radius: 1px;
    background-color: var(--role);
    vertical-align: -0.2em;
    animation: lde-caret 1.1s steps(1) infinite;
}

.entry-line.is-filled .entry-line__value {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text);
}

.entry-line.is-wrong .entry-line__value {
    color: var(--g-bad-text);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.entry-line.is-written .entry-line__value {
    animation: lde-write 0.4s ease-out both;
}

.entry-line.is-posted .entry-line__value::after {
    content: " ✓";
    color: var(--g-good-text);
}

.entry-line__amount {
    padding: 0.25rem 0.5rem;
    border: 2px solid var(--g-edge);
    border-radius: 9px;
    background-color: var(--g-card);
    font-size: 0.9rem;
    font-weight: 900;
}

.ticket__feedback {
    --kind: var(--g-good);
    --kind-text: var(--g-good-text);
    position: relative;
    margin: 1rem 0 0;
    padding: 0.8rem 1rem 0.85rem 3.1rem;
    border: 2px solid var(--kind);
    border-radius: 14px;
    background-color: var(--g-good-soft);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-wrap: pretty;
    animation: lde-pop-up 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.ticket__feedback::before {
    content: "✓";
    position: absolute;
    top: 0.75rem;
    left: 0.8rem;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background-color: var(--kind);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
}

.ticket__feedback--bad {
    --kind: var(--g-bad);
    --kind-text: var(--g-bad-text);
    background-color: var(--g-bad-soft);
}

.ticket__feedback--bad::before {
    content: "✕";
}

.ticket__feedback--reveal {
    --kind: var(--g-lemon-deep);
    --kind-text: var(--text);
    background-color: var(--g-lemon-soft);
}

.ticket__feedback--reveal::before {
    content: "?";
    background-color: var(--g-lemon);
    color: #1d1b16;
}

.ticket__lead {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--kind-text);
}

.ticket__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
}

.ticket__foot .game-btn:not(:disabled) {
    animation: lde-ready 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ticket__prompt {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.ticket__points {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: var(--g-lemon-soft);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    animation: lde-points 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s both;
}

.ink-stamp {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    padding: 0.2rem 0.6rem;
    border: 3px solid currentColor;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--g-card) 85%, transparent);
    color: var(--g-good-text);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.92;
    transform: rotate(-9deg);
    pointer-events: none;
    animation: lde-stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.ink-stamp--muted {
    color: var(--muted);
}

.ink-stamp--big {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin: 0.25rem 0 1.25rem;
    padding: 0.35rem 0.9rem;
    border-width: 4px;
    font-size: 1.1rem;
}

.books {
    margin-top: 2rem;
}

.tee__total {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.tee__total--right {
    text-align: right;
}

.tee__eq {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    border-radius: 999px;
    background-color: var(--g-good);
    color: #fff;
    box-shadow: 0 3px 0 var(--g-good-deep);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.tee__eq small {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-tile {
    cursor: pointer;
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.account-tile:focus-visible {
    border-radius: 4px 12px 12px 4px;
}

.account-tile:disabled {
    cursor: default;
}

.account-tile__balance {
    padding-left: 0.35rem;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.account-tile.is-zero .account-tile__balance {
    color: var(--muted);
}

.books.is-answering .account-tile:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 7px 0 color-mix(in srgb, var(--g-bill-edge) 70%, #000 30%),
        0 12px 18px -10px rgba(0, 0, 0, 0.4);
}

.books.is-answering .account-tile:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 0 color-mix(in srgb, var(--g-bill-edge) 70%, #000 30%);
}

.account-tile.is-debit {
    border-color: var(--g-dr);
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0 5px,
            transparent 5px 12px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
        var(--g-dr-soft);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 0 var(--g-dr);
}

.account-tile.is-credit {
    border-color: var(--g-cr);
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0 5px,
            transparent 5px 12px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%),
        var(--g-cr-soft);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 0 var(--g-cr);
}

.account-tile.is-wrong {
    border-color: var(--g-bad);
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0 5px,
            transparent 5px 12px
        ),
        var(--g-bad-soft);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 0 var(--g-bad);
    animation: lde-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.account-tile.is-picked {
    animation: lde-pick 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.account-tile.is-landed {
    animation: lde-land 0.55s ease;
}

.account-tile__tag {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    padding: 0.1rem 0.4rem;
    border-radius: 7px;
    background-color: var(--g-dr);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    animation: lde-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.account-tile.is-credit .account-tile__tag {
    background-color: var(--g-cr);
    color: #1d1b16;
}

.account-tile.is-wrong .account-tile__tag {
    background-color: var(--g-bad);
    color: #fff;
}

.account-tile__tag:empty {
    display: none;
}

.account-tile__delta {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    padding: 0.1rem 0.4rem;
    border-radius: 7px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
    animation: lde-delta 2.6s ease both;
}

.account-tile__delta.is-up {
    background-color: var(--g-good);
}

.account-tile__delta.is-down {
    background-color: var(--g-bad);
}

.game-journal {
    margin-top: 2rem;
}

.game-journal__caption {
    margin: -0.25rem 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.game-journal__card {
    padding: 0.4rem 1rem 1rem;
    border: 2px solid var(--g-edge);
    border-radius: 18px;
    background-color: var(--g-card);
    box-shadow: 0 5px 0 var(--g-edge);
}

.game-journal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.game-journal__table th {
    padding: 0.55rem 0;
    border-bottom: 2px solid var(--g-edge);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
}

.game-journal__table td {
    padding: 0.15rem 0;
    font-weight: 600;
}

.game-journal__table .num {
    width: 5.5rem;
    text-align: right;
}

.game-journal__table td.num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.game-journal__totals th,
.game-journal__totals td {
    padding: 0.55rem 0;
    border-bottom: 3px double var(--g-ink);
    font-weight: 900;
    color: var(--text);
}

.game-journal__memo td {
    padding-top: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.game-journal__no {
    display: inline-block;
    min-width: 2.5rem;
    font-family: var(--font-mono);
}

.game-journal__table .game-journal__credit {
    padding-left: 1.5rem;
}

.game-journal__table tbody.is-fresh td {
    animation: lde-fresh 1.8s ease;
}

.game-journal__empty {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
}

.wrap-up__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wrap-up .guide {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.star {
    width: 3.25rem;
    height: 3.25rem;
    filter: drop-shadow(0 4px 0 var(--g-edge));
    animation: lde-star 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.35s both;
}

.star:nth-child(2) {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 0.6rem;
    animation-delay: 0.6s;
}

.star:nth-child(3) {
    animation-delay: 0.85s;
}

.star::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--g-track);
    clip-path: polygon(
        50% 0%,
        61.8% 35%,
        98% 35.5%,
        68.5% 57%,
        79.5% 92%,
        50% 70.5%,
        20.5% 92%,
        31.5% 57%,
        2% 35.5%,
        38.2% 35%
    );
}

.star.is-earned {
    filter: drop-shadow(0 4px 0 var(--g-gold-deep));
}

.star.is-earned::before {
    background:
        radial-gradient(circle at 42% 38%, #fff3b0 0 12%, transparent 32%),
        var(--g-gold);
}

.new-best {
    margin: 0 0 1rem;
}

.new-best .game-badge {
    animation: lde-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s both;
}

.equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--g-edge);
    border-radius: 18px;
    background-color: var(--g-board);
    color: #f6f1e4;
}

.equation__term {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equation__term small {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 241, 228, 0.6);
}

.equation__term strong {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--g-lemon);
}

.equation__op {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(246, 241, 228, 0.7);
}

.equation__note {
    margin: 0.7rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

.score-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0 0;
}

.score-card > div {
    padding: 0.75rem 0.6rem;
    border: 2px solid var(--g-edge);
    border-radius: 14px;
    background-color: var(--g-card);
    box-shadow: 0 4px 0 var(--g-edge);
    text-align: center;
}

.score-card dt {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.score-card dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.2rem 0 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.wrap-up__heading {
    margin: 2rem 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.wrap-up .specimen {
    margin: 0;
}

.wrap-up__aside {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
}

.lessons {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lesson;
}

.lessons li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    border: 2px solid var(--g-edge);
    border-radius: 14px;
    background-color: var(--g-card);
    box-shadow: 0 4px 0 var(--g-edge);
    font-size: 1rem;
    line-height: 1.5;
    counter-increment: lesson;
}

.lessons li::before {
    content: counter(lesson);
    position: absolute;
    top: 0.8rem;
    left: 0.85rem;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background-color: var(--g-lemon);
    color: #1d1b16;
    box-shadow: 0 2px 0 var(--g-lemon-deep);
    font-size: 0.85rem;
    font-weight: 900;
}

.lessons strong {
    font-weight: 900;
}

.coin {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    border: 2px solid var(--g-gold-deep);
    border-radius: 999px;
    background: linear-gradient(#ffe58a, var(--g-gold) 60%, #e9a800);
    color: #4a3200;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 4px 0 var(--g-gold-deep),
        0 12px 20px -8px rgba(0, 0, 0, 0.35);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}

.coin::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff6c8 0 18%, transparent 42%),
        #ffd84d;
    box-shadow: inset 0 0 0 2px var(--g-gold-deep);
}

.confetti {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 0.55rem;
    height: 0.8rem;
    border-radius: 2px;
    pointer-events: none;
}

@keyframes lde-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes lde-deal {
    from {
        opacity: 0;
        transform: translateX(28px) rotate(2.5deg);
    }
}

@keyframes lde-shake {
    10%,
    90% {
        transform: translateX(-1px);
    }
    20%,
    80% {
        transform: translateX(3px);
    }
    30%,
    50%,
    70% {
        transform: translateX(-6px);
    }
    40%,
    60% {
        transform: translateX(6px);
    }
}

@keyframes lde-stamp {
    from {
        opacity: 0;
        transform: rotate(-9deg) scale(2.2);
    }
}

@keyframes lde-land {
    35% {
        box-shadow:
            0 0 0 6px var(--g-lemon),
            0 1px 0 rgba(255, 255, 255, 0.35) inset,
            0 4px 0 color-mix(in srgb, var(--g-bill-edge) 70%, #000 30%);
        transform: scale(1.05);
    }
}

@keyframes lde-bump {
    40% {
        transform: scale(1.18);
    }
}

@keyframes lde-delta {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.8);
    }
    12%,
    80% {
        opacity: 1;
        transform: none;
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes lde-fresh {
    from {
        background-color: var(--g-lemon-soft);
    }
}

@keyframes lde-pick {
    40% {
        transform: scale(1.05);
    }
}

@keyframes lde-pop {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes lde-pop-up {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
}

@keyframes lde-caret {
    50% {
        opacity: 0;
    }
}

@keyframes lde-write {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes lde-ready {
    40% {
        transform: scale(1.07);
    }
}

@keyframes lde-glow {
    from {
        box-shadow:
            0 0 0 0 var(--g-good),
            0 5px 0 var(--g-edge);
    }
    to {
        box-shadow:
            0 0 0 16px transparent,
            0 5px 0 var(--g-edge);
    }
}

@keyframes lde-ring {
    50% {
        box-shadow:
            var(--depth),
            0 0 0 7px color-mix(in srgb, var(--role) 12%, transparent);
    }
}

@keyframes lde-points {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.6);
    }
}

@keyframes lde-stripes {
    to {
        background-position: 22.63px 0;
    }
}

@keyframes lde-bob {
    50% {
        transform: translateY(-4px);
    }
}

@keyframes lde-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lde-cheer {
    from {
        transform: translateY(0) rotate(0);
    }
    to {
        transform: translateY(-8px) rotate(-5deg);
    }
}

@keyframes lde-bubble {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
}

@keyframes lde-unlock {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
}

@keyframes lde-sign {
    from {
        opacity: 0;
        transform: translateX(var(--from));
    }
}

@keyframes lde-shine {
    from {
        background-position: 150% 0;
    }
    to {
        background-position: -50% 0;
    }
}

@keyframes lde-star {
    from {
        opacity: 0;
        transform: scale(0.2) rotate(-40deg);
    }
}

@keyframes lde-flicker {
    from {
        transform: rotate(-45deg) scale(1);
    }
    to {
        transform: rotate(-45deg) scale(1.18);
    }
}

@media (max-width: 560px) {
    .page--game .site-header {
        margin-bottom: 1.5rem;
    }

    .game {
        padding: 0 0.85rem 1.25rem;
        border-radius: 20px;
    }

    .game::before {
        height: 2.6rem;
        margin: 0 -0.85rem 1.25rem;
        border-radius: 18px 18px 0 0;
    }

    .hud__chapter {
        font-size: 0.95rem;
    }

    .ticket {
        padding: 0.95rem 0.9rem 1rem;
    }

    .ticket__text {
        font-size: 1.15rem;
    }

    .entry-line {
        grid-template-columns: 4.9rem minmax(0, 1fr) auto;
        gap: 0.5rem;
        padding: 0.45rem 0.5rem 0.45rem 0.6rem;
    }

    .entry-line--credit {
        width: calc(100% - 0.9rem);
        margin-left: 0.9rem;
    }

    .entry-line__word {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }

    .ticket__foot {
        flex-wrap: wrap;
    }

    .ticket__foot .game-btn {
        flex: 1 1 100%;
    }

    .wallet {
        padding: 0.55rem;
        border-radius: 18px;
    }

    .wallet__body {
        grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
        padding: 0.4rem;
    }

    .wallet__pocket--left {
        padding-right: 0.35rem;
    }

    .wallet__pocket--right {
        padding-left: 0.35rem;
    }

    .wallet__mouth {
        padding: 0.45rem 0.5rem 0.55rem;
        font-size: 0.68rem;
    }

    .wallet__mouth .side-chip {
        font-size: 0.68rem;
    }

    .account-tile {
        min-height: 3.5rem;
        padding: 0.5rem 0.55rem 0.55rem;
    }

    .account-tile__name {
        padding-right: 1.9rem;
        font-size: 0.82rem;
    }

    .account-tile__about {
        font-size: 0.74rem;
    }

    .account-tile__balance {
        font-size: 1.05rem;
    }

    .account-tile__delta {
        top: auto;
        bottom: 0.45rem;
    }

    .tee__total {
        font-size: 1.15rem;
    }

    .tee__eq small {
        display: none;
    }

    .buddy {
        --buddy: 3rem;
        margin-left: 0.2rem;
    }

    .guide {
        gap: 0.7rem;
    }

    .rule-sign {
        --point: 1.2rem;
    }

    .rule-sign strong {
        font-size: 1.3rem;
    }

    .star {
        width: 2.75rem;
        height: 2.75rem;
    }

    .star:nth-child(2) {
        width: 3.5rem;
        height: 3.5rem;
    }

    .score-card dd {
        font-size: 1.2rem;
    }

    .equation__term strong {
        font-size: 1.3rem;
    }
}
