/* Scoped to the Russian Keno page; shared theme colours and controls. */
.keno-page { position: relative; isolation: isolate; padding-bottom: 1.5rem; }
.keno-page::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: url("../images/keno-page-pattern.svg") center top / 1600px auto repeat-y; opacity: .14; mask-image: linear-gradient(transparent, #000 6rem, #000 85%, transparent); }
.keno-heading { padding-top: .6rem; padding-bottom: .7rem; }
.keno-heading__top, .keno-board-heading, .keno-draw-heading, .keno-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.keno-heading__top { margin-bottom: .5rem; }
.keno-heading .breadcrumb { margin: 0; font-size: .85rem; }
.keno-languages { position: relative; flex-shrink: 0; font-size: .8rem; z-index: 30; }
.keno-languages summary { display: flex; align-items: center; gap: .3rem; min-height: 36px; padding: .2rem .4rem; border: 1px solid #b18bdf30; border-radius: .75rem; background: linear-gradient(145deg, #292033, #17141f); box-shadow: inset 0 1px 0 #ffffff09, 0 3px 12px #0002; color: #e9dff5; cursor: pointer; list-style: none; white-space: nowrap; transition: border-color .18s ease, background .18s ease; }
.keno-languages summary::-webkit-details-marker { display: none; }
.keno-language-globe { width: 19px; height: 19px; flex-shrink: 0; color: #c0a3dc; }
.keno-language-current { font-size: .8rem; font-weight: 650; letter-spacing: .025em; }
.keno-language-chevron { width: 14px; height: 14px; color: #a698b8; transition: transform .18s ease; }
.keno-languages[open] summary { border-color: #b18bdf88; background: linear-gradient(145deg, #34243f, #201829); }
.keno-languages[open] .keno-language-chevron { transform: rotate(180deg); }
.keno-languages nav { position: absolute; inset: calc(100% + .3rem) 0 auto auto; width: 11.5rem; max-width: calc(100vw - 2rem); padding: .25rem; border: 1px solid #9d78bd40; border-radius: .85rem; background: linear-gradient(145deg, #231b2e, #14131d); box-shadow: 0 16px 40px #0008, inset 0 1px 0 #ffffff08; }
.keno-language-heading { display: block; padding: .25rem .45rem .35rem; color: #a99bb9; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.keno-languages nav a { display: flex; gap: .45rem; align-items: center; min-height: 40px; padding: .3rem .4rem; border: 1px solid transparent; border-radius: .55rem; text-decoration: none; color: #c9bfd6; transition: background .15s ease, color .15s ease; }
.keno-languages nav a:hover { background: #ffffff08; color: #fff; }
.keno-languages nav a[aria-current] { border-color: #b18bdf35; background: linear-gradient(110deg, #67418c45, #8c5bb716); color: #f2e6ff; }
.keno-language-code { display: grid; place-items: center; width: 28px; height: 25px; flex-shrink: 0; border: 1px solid #ffffff12; border-radius: .35rem; background: #ffffff05; color: #aa99bc; font-size: .67rem; font-weight: 650; letter-spacing: .02em; }
.keno-language-name { flex: 1; font-size: .82rem; }
.keno-language-check { width: 16px; color: #d0a6fb; font-weight: 700; }
.keno-languages :is(summary,a):focus-visible { outline: 2px solid #cc9aff; outline-offset: 3px; }
@media (hover: hover) { .keno-languages summary:hover { border-color: #b18bdf70; } }
@media (prefers-reduced-motion: reduce) { .keno-languages :is(summary,a,.keno-language-chevron) { transition: none; } }
.keno-eyebrow { color: var(--color-secondary); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.keno-heading h1 { max-width: 58rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin-bottom: .6rem; }
.keno-heading h1 span { color: var(--color-secondary); }
.keno-lead { max-width: 51rem; color: var(--color-muted); margin: 0; }

.keno-game { display: grid; grid-template-columns: 20rem minmax(0, 1fr); grid-template-areas: "wallet wallet" "controls board" "more more"; max-width: var(--container); border: 1px solid #343346; border-radius: 1rem; background: #10121b; box-shadow: 0 20px 70px #0003; overflow: clip; }
.keno-label { display: block; color: #b4adca; font-size: .72rem; font-weight: 500; }
.keno-wallet { grid-area: wallet; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .9rem; background: linear-gradient(110deg, #241a38, #181522 65%); border-bottom: 1px solid #473552; }
.keno-wallet__dot { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: #b493ff; vertical-align: middle; }
.keno-wallet strong { grid-area: amount; display: block; margin: .15rem 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.keno-wallet strong small { color: #b3a3d0; font-size: .8rem; letter-spacing: 0; font-weight: 500; }
.keno-wallet__amount { display: grid; grid-template-areas: "label" "amount"; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: .8rem; min-width: 0; }
.keno-wallet__amount > .keno-label { grid-area: label; }

.keno-wallet__actions { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.keno-page button:not(.keno-cell):not(.keno-drop), .keno-page select { background-color: #222330; color: #e4dfee; border: 1px solid #3c3b50; border-radius: .45rem; padding: .5rem .65rem; cursor: pointer; font-size: .78rem; min-height: 36px; }
.keno-page button:not(:disabled):hover { border-color: #a98ada; background-color: #2d293d; }
.keno-page button:disabled, .keno-page input:disabled { cursor: not-allowed; opacity: .55; }
.keno-game[data-ready="true"] .keno-cell:disabled { opacity: 1; cursor: wait; }
.keno-page [hidden] { display: none !important; }
.keno-wallet__actions [data-topup] { border-color: #74539a !important; background: #372347 !important; color: #e7d7ff !important; }
.keno-play { grid-area: board; padding: .75rem; min-width: 0; background: #0d1018; }
.keno-board-heading { margin-bottom: .45rem; }
.keno-board-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.keno-board-heading p { margin: .25rem 0 0; color: #a49bb9; font-size: .72rem; }
.keno-board-heading > span { color: #a39cb5; font-size: .7rem; text-align: right; }
.keno-board-heading output { display: block; font-size: .95rem; font-weight: 700; color: #d2b7ff; }
.keno-selection { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.keno-selection > label { color: #aba2bd; font-size: .7rem; }
.keno-selection > div { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.keno-selection select { min-width: 6.5rem; padding-right: 2.2rem !important; }
.keno-board { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .25rem; }
.keno-cell { position: relative; min-width: 0; height: clamp(27px, 3.7vh, 36px); padding: 0; border: 1px solid #323747; border-bottom: 3px solid #1b1f2c; border-radius: .4rem; background: #232835; color: #cbd0df; font-size: .95rem; font-weight: 650; cursor: pointer; transition: background-color .12s, border-color .12s; }
.keno-cell__mark { position: absolute; right: 3px; top: 1px; font-size: .65rem; line-height: 1.1; }
.keno-cell.is-picked, .keno-legend .is-picked { color: #fff; background: #7346bb; border-color: #aa80ed; }
.keno-cell.is-drawn, .keno-legend .is-drawn { color: #d9dce5; background: #303a4d; border-color: #69758c; }
.keno-cell.is-hit, .keno-legend .is-hit, .keno-ball.is-hit { background: #154b3d; color: #a0ffce; border-color: #58d39a; }
.keno-cell.is-hit { box-shadow: inset 0 0 0 1px #6de2ae; }
.keno-cell.is-hit .keno-cell__mark { font-size: .8rem; font-weight: 800; }
.keno-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: .45rem 0 .55rem; color: #a09aac; font-size: .65rem; }
.keno-legend > span { display: inline-flex; gap: .3rem; align-items: center; }
.keno-legend i { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border: 1px solid; border-radius: .2rem; font-style: normal; font-size: .6rem; }
.keno-payout-strip { display: flex; flex-wrap: wrap; gap: .35rem; }
.keno-payout-chip { display: flex; flex: 1 1 65px; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem; border: 1px solid #333143; border-radius: .4rem; background: #191923; font-variant-numeric: tabular-nums; }
.keno-payout-chip > span { font-size: .65rem; color: #a39bad; }
.keno-payout-chip > strong { font-size: .82rem; color: #d2bcf4; }
.keno-payout-chip.is-result { border-color: #a17ed1; background: #30203f; }
.keno-payout-chip.is-result > strong { color: #fff; }
.keno-strip-note { margin: .4rem 0 .65rem; color: #898395; font-size: .64rem; }
.keno-draw-details { border-top: 1px solid #292935; padding-top: .5rem; }
.keno-draw-heading h3 { color: #b8acc8; font-size: .72rem; margin: 0; letter-spacing: 0; }
.keno-draw-details output { color: #aa9fb9; font-size: .7rem; font-variant-numeric: tabular-nums; }
.keno-drawn { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 2rem; padding-top: .4rem; }
.keno-drawn:empty::before { content: "После запуска здесь появятся 20 чисел"; color: #81778e; font-size: .68rem; }
.keno-ball { display: inline-grid; place-items: center; height: 1.6rem; min-width: 1.6rem; padding: 0 .15rem; border: 1px solid #42475d; border-radius: 50%; background: #24283a; font-size: .72rem; }
.keno-controls { grid-area: controls; display: flex; flex-direction: column; gap: .65rem; min-width: 0; padding: .85rem; border-right: 1px solid #292a38; background: #161620; }
.keno-control > label, .keno-rtp__inner > label { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; font-size: .78rem; font-weight: 600; gap: .5rem; }
.keno-control > label > span { color: #a39ab5; font-size: .65rem; font-weight: 400; }
.keno-bet { display: flex; align-items: center; gap: .4rem; padding: .3rem .35rem .3rem .65rem; border: 1px solid #4a415d; border-radius: .5rem; background: #0c0e16; }
.keno-bet input { width: 100%; min-width: 0; border: 0; padding: .2rem 0; background: transparent; color: #fff; font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.keno-bet > span { color: #a39bb0; font-size: .7rem; }
.keno-bet button { padding: .25rem .45rem !important; min-width: 32px; }
.keno-control p { color: #9d94ae; font-size: .67rem; margin: .35rem 0 0; line-height: 1.5; }
.keno-action { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
.keno-action__balance { display: none; }
.keno-drop { width: 100%; min-height: 48px; padding: .7rem; font-size: .9rem; font-weight: 750; color: #fff; border: 1px solid #b08be8; border-radius: .5rem; background: linear-gradient(110deg, #8d57dc, #7340bd); box-shadow: 0 4px 18px #8a4fce22; cursor: pointer; }
.keno-page .keno-drop:not(:disabled):hover { background: #945ee0; }
.keno-action > p { margin: .1rem 0 0; color: #b3a5c6; font-size: .65rem; text-align: center; }
.keno-result { padding: .85rem; border: 1px solid #51405f; border-radius: .65rem; background: linear-gradient(145deg, #251d31, #1b1824); }
.keno-result__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: .45rem; }
.keno-result__heading .keno-label { font-size: .68rem; }
.keno-result__heading > strong { font-size: .85rem; white-space: nowrap; }
.keno-result__net { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .3rem 0 .65rem; margin-bottom: .65rem; border-bottom: 1px solid #ffffff15; }
.keno-result__net > span { color: #c0b4ce; font-size: .72rem; line-height: 1.4; }
.keno-result__net > strong { min-width: 0; color: #eee6fa; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.keno-result__values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.keno-result__values > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.keno-result__values span { color: #b8acc8; font-size: .68rem; }
.keno-result__values strong { color: #ebe3f7; font-size: 1.08rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; overflow-wrap: anywhere; }
.keno-result > p { color: #c0b3ce; font-size: .72rem; line-height: 1.5; margin: .65rem 0 0; }
.keno-result[data-state="profit"] { border-color: #408f72; background: linear-gradient(145deg, #193c30, #172620); }
.keno-result[data-state="profit"] [data-result-net], .keno-result[data-state="profit"] [data-result-title] { color: #8be5b9; }
.keno-result[data-state="loss"] [data-result-net] { color: #f0a9b5; }
.keno-result[data-state="drawing"] { border-color: #a17bd4; }
.keno-status { font-size: .68rem; color: #aca3ba; margin: 0; line-height: 1.5; min-height: 2.7rem; }
.keno-rtp { border-top: 1px solid #33303f; padding-top: .7rem; }
.keno-rtp summary { cursor: pointer; font-size: .75rem; color: #b5a9c6; }
.keno-rtp summary > span { float: right; color: #c4a4ef; font-variant-numeric: tabular-nums; }
.keno-rtp__inner { padding-top: .8rem; }
.keno-rtp output { color: #d1b4f6; }
.keno-rtp input { width: 100%; height: 28px; margin: 0; accent-color: #a071df; cursor: pointer; }
.keno-range-limits { display: flex; justify-content: space-between; color: #8f859f; font-size: .6rem; }
.keno-theoretical { display: block; margin-top: .6rem; font-size: .68rem; color: #d1b4f6; }
.keno-load-error { color: var(--color-warning); font-size: .75rem; }
.keno-more { grid-area: more; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #292a38; }
.keno-more > details { min-width: 0; }
.keno-more > details[open] { grid-column: 1 / -1; }
.keno-payouts { min-width: 0; }
.keno-payouts > summary { padding: .6rem .9rem; cursor: pointer; color: #b7abc7; font-size: .78rem; }
.keno-context-badge { display: inline-block; padding: .2rem .5rem; border: 1px solid #72518e; border-radius: .4rem; background: #352342; color: #e0c7f6; font-size: .72rem; font-weight: 600; line-height: 1.4; }
.keno-payouts > summary > span { float: right; margin-left: .5rem; }
.keno-payouts__inner { padding: 0 1.1rem 1rem; }
.keno-payouts p { color: #aca0ba; font-size: .73rem; }
.keno-table-wrap { overflow-x: auto; border: 1px solid #333040; border-radius: .5rem; }
.keno-page table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.keno-page th, .keno-page td { padding: .55rem .7rem; text-align: right; border-bottom: 1px solid #292a38; }
.keno-page th:first-child, .keno-page td:first-child { text-align: left; }
.keno-page th { color: #a69bb8; font-weight: 500; background: #191923; }
.keno-page tr:last-child td { border: 0; }
.keno-page tr.is-result { background: #30203f; color: #e1c6ff; }
.keno-payouts .keno-precision { margin: .6rem 0 0; font-size: .65rem; }
.keno-history { padding: .6rem .9rem; font-size: .72rem; }
.keno-history summary { cursor: pointer; color: #b3a5c3; }
.keno-history summary > span { margin-left: .4rem; }
.keno-history-empty { margin: .8rem 0 .3rem; color: #a69ab7; font-size: .75rem; }
.keno-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding: .6rem 0; color: #b8afc5; border-top: 1px solid #292a38; }
.keno-history li > strong { font-weight: 600; font-size: .8rem; }
.keno-history li > span { grid-column: 1; font-size: .73rem; }
.keno-history li > b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: .8rem; font-weight: 600; }
.keno-history b[data-state="loss"] { color: #f0a9b5; }
.keno-history b[data-state="profit"] { color: #8be5b9; }
.keno-explain { max-width: var(--container); padding-top: 2.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.keno-explain > .keno-section--wide, .keno-explain > .keno-faq { grid-column: 1 / -1; }
.keno-explain section { margin-bottom: 0; padding: 1.4rem; border: 1px solid #363044; border-radius: .9rem; background: linear-gradient(140deg, #181520f5, #10131af5); box-shadow: 0 12px 40px #0002; }
.keno-explain h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; }
.keno-explain p { color: #b2b3c4; font-size: .95rem; }
.keno-steps { counter-reset: keno-step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.3rem 0; }
.keno-steps li { position: relative; counter-increment: keno-step; padding: 1rem; border: 1px solid #4b385e; border-radius: .7rem; background: linear-gradient(145deg, #291d37, #1c1927); }
.keno-steps li::before { content: counter(keno-step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .75rem; border: 1px solid #9161bb; border-radius: .55rem; background: #49305f; color: #eee0ff; font-size: 1.1rem; font-weight: 750; }
.keno-steps li > strong { display: block; color: #f1e6fc; font-size: 1rem; line-height: 1.35; }

.keno-steps p { margin: .65rem 0 0; font-size: .88rem; line-height: 1.65; }
.keno-faq details { border-bottom: 1px solid var(--color-border); padding: .85rem 0; }
.keno-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.keno-faq p { margin-bottom: 0; }

@media (max-width: 900px) {
 .keno-game { grid-template-columns: 18rem minmax(0, 1fr); }
 .keno-play, .keno-controls { padding: .85rem; }
 .keno-board { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; }
 .keno-selection > div { gap: .3rem; }
}
@media (max-width: 650px) {
 .keno-heading h1 { font-size: 1.75rem; }
 .keno-heading__top { margin-bottom: .7rem; }
 .keno-lead { font-size: .8rem; line-height: 1.5; }
 .keno-game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "wallet" "board" "controls" "more"; }
 .keno-more { grid-template-columns: minmax(0, 1fr); }
 .keno-wallet { padding: .85rem; align-items: center; gap: .65rem; }
 .keno-wallet strong { font-size: 1.75rem; }
 .keno-wallet .keno-label { max-width: 13rem; font-size: .62rem; }
 .keno-wallet__amount { min-width: 0; }
 .keno-wallet__actions { display: grid; grid-template-columns: auto auto; gap: .3rem; flex-shrink: 0; }
 .keno-wallet__actions [data-sound] { grid-column: 1 / -1; }
 .keno-wallet__actions button { font-size: .66rem !important; min-height: 30px !important; padding: .35rem .5rem !important; }

 .keno-play { padding: .75rem; }
 .keno-board-heading h2 { font-size: .88rem; }
 .keno-board-heading p { font-size: .65rem; }
 .keno-selection button, .keno-selection select { font-size: .7rem !important; padding-left: .5rem !important; padding-right: .5rem !important; }
 .keno-selection select { min-width: 5.8rem; padding-right: 2rem !important; }
 .keno-board { gap: .25rem; }
 .keno-cell { height: 36px; font-size: .84rem; }
 .keno-controls { padding: .75rem; border-right: 0; border-top: 1px solid #292a38; gap: .65rem; }
 .keno-controls .keno-control:first-child { max-width: none; }
 .keno-result { padding: .85rem; }
 .keno-result__values strong { font-size: 1.2rem; }
 .keno-result__values span { font-size: .72rem; }
 .keno-result__net > strong { font-size: clamp(1.5rem, 7vw, 2.2rem); }
 .keno-explain section { padding: 1rem; }
 .keno-result > p { font-size: .73rem; }
 .keno-result__heading > strong { font-size: .9rem; }
 .keno-action-slot { min-height: 0; }
 .keno-game[data-dock-ready="true"] .keno-action-slot { display: contents; }
 .keno-action { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; padding: .6rem; border: 1px solid #51405f; border-radius: .7rem; background: #17131f; gap: .25rem .7rem; }
 .keno-action__balance { display: flex; flex-direction: column; min-width: 0; padding-left: .15rem; }
 .keno-action__balance > span { color: #ac9abd; font-size: .62rem; }
 .keno-action__balance strong { color: #fff; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
 .keno-action__balance small { font-size: .65rem; color: #ad9ebe; }
 .keno-action > p { grid-column: 1 / -1; font-size: .65rem; }
 .keno-drop { min-height: 44px; font-size: .82rem; padding: .65rem .4rem; }
 .keno-game[data-dock-ready="true"] .keno-action { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; border-radius: .8rem .8rem 0 0; border-bottom: 0; padding: .6rem max(.75rem, env(safe-area-inset-left)) calc(.5rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px #0007; visibility: hidden; opacity: 0; pointer-events: none; }
 .keno-game[data-dock-ready="true"].is-in-view .keno-action { visibility: visible; opacity: 1; pointer-events: auto; }
 .keno-page { padding-bottom: 1rem; }
 .keno-status { min-height: 0; }
 .keno-explain { padding-top: 1.5rem; gap: 1.25rem; }
 .keno-payouts > summary > span { display: block; float: none; margin-top: .25rem; }
}
@media (max-width: 370px) {
 .keno-board { gap: .2rem; }
 .keno-cell { font-size: .78rem; }
 .keno-selection button { font-size: .65rem !important; }
 .keno-wallet strong { font-size: 1.85rem; }
}

.keno-rule-thresholds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 1.5rem; }
.keno-rule-thresholds > div { padding: .8rem; border: 1px solid #333040; border-radius: .5rem; background: #15131e; }
.keno-rule-thresholds span, .keno-rule-thresholds strong { display: block; font-size: .82rem; }
.keno-rule-thresholds span { color: #a99cbd; margin-bottom: .25rem; }
.keno-rule-thresholds strong { color: #d7c0f5; font-weight: 600; }
.keno-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.keno-examples li { padding: 1rem; background: #14151f; border: 1px solid #30303f; border-radius: .6rem; font-size: .9rem; color: #bbb1c8; }
.keno-examples li > strong { color: #ede5f7; }
.keno-examples span { color: #c6a7ed; font-variant-numeric: tabular-nums; }
.keno-action > p:empty { display: none; }
@media (min-width: 901px) and (max-height: 820px) {
 .keno-heading { padding-top: .4rem; padding-bottom: .5rem; }
 .keno-heading__top { margin-bottom: .3rem; }
 .keno-heading h1 { font-size: 1.6rem; margin-bottom: .3rem; }
 .keno-lead { font-size: .8rem; }
 .keno-wallet { padding: .4rem .8rem; }
 .keno-wallet strong { font-size: 1.6rem; }
 .keno-wallet .keno-label { font-size: .65rem; }
 .keno-play, .keno-controls { padding: .65rem; }
 .keno-controls { gap: .55rem; }
 .keno-board { gap: 3px; }
 .keno-cell { height: clamp(24px, calc(4.5vh - 6px), 27px); font-size: .85rem; }
 .keno-board-heading h2 { font-size: .85rem; }
 .keno-board-heading p { margin-top: .1rem; font-size: .65rem; }
 .keno-selection select, .keno-selection button { min-height: 30px !important; padding-top: .3rem !important; padding-bottom: .3rem !important; }
 .keno-legend { margin: .3rem 0 .4rem; }
 .keno-payout-chip { padding: .2rem; }
 .keno-payout-chip > strong { font-size: .75rem; }
 .keno-strip-note { margin: .3rem 0; font-size: .6rem; }
 .keno-more > details > summary { padding-top: .5rem; padding-bottom: .5rem; }
}
@media (max-width: 900px) {
 .keno-explain { grid-template-columns: minmax(0, 1fr); }
 .keno-steps, .keno-examples { grid-template-columns: minmax(0, 1fr); }
 .keno-rule-thresholds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.keno-table-caption { caption-side: top; padding: .9rem; background: linear-gradient(110deg, #30213e, #1d1927); text-align: left; white-space: normal; border-bottom: 1px solid #5a3b73; }
.keno-table-caption strong { display: block; color: #f0ddff; font-size: 1.05rem; font-weight: 700; }
.keno-table-caption span { display: block; margin-top: .3rem; color: #c9b5dc; font-size: .78rem; font-variant-numeric: tabular-nums; }
.keno-payout-chip.is-live { border-color: #ac89d6; background: #352348; box-shadow: 0 0 0 1px #a67bcc33; }
.keno-payout-chip:is(.is-live,.is-result)[data-paid="true"] { border-color: #73d9a8; background: linear-gradient(145deg, #215c43, #193e31); box-shadow: 0 0 16px #43c48d35; animation: keno-tier-glow .55s ease-out; }
.keno-payout-chip:is(.is-live,.is-result)[data-paid="true"] > strong { color: #b9ffdb; font-weight: 800; }
.keno-payout-chip:is(.is-live,.is-result)[data-paid="true"] > span { color: #a7dfc0; }
.keno-result[data-state="profit"] { animation: keno-result-glow .65s ease-out; box-shadow: 0 0 22px #3fbd8020; }
@keyframes keno-tier-glow { from { box-shadow: 0 0 22px #6cf1b570; } to { box-shadow: 0 0 16px #43c48d35; } }
@keyframes keno-result-glow { from { border-color: #a4ffd0; box-shadow: 0 0 30px #5ee69d50; } to { border-color: #408f72; box-shadow: 0 0 22px #3fbd8020; } }

@media (prefers-reduced-motion: reduce) { .keno-page *, .keno-page *::before, .keno-page *::after { scroll-behavior: auto; animation: none; transition: none; } }

.keno-explain section > :last-child { margin-bottom: 0; }
.keno-steps li { color: #bdb6cb; font-size: .9rem; line-height: 1.7; }
.keno-steps li > strong { margin-bottom: .6rem; }
.keno-threshold-table { max-width: 42rem; margin: 1.2rem 0; }
.keno-threshold-table table { white-space: normal; }
.keno-worked-example, .keno-rules-notice { padding: 1rem; border: 1px solid #70508b; border-left: 3px solid #b18bdf; border-radius: .6rem; background: #261c33; }
.keno-worked-example span { color: #e4c6ff; font-weight: 650; font-variant-numeric: tabular-nums; }
.keno-rules-notice p { margin: 0; }
.keno-comparison { margin: 1.25rem 0; min-width: 0; }
.keno-calculator-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1rem; border: 1px solid #51405f; border-radius: .7rem; background: #251c31; }
.keno-calculator-controls > div { min-width: 0; }
.keno-calculator-controls label { display: block; color: #d5c6e6; font-size: .85rem; margin-bottom: .5rem; }
.keno-calculator-controls input, .keno-calculator-controls select { width: 100%; min-width: 0; min-height: 44px; font: inherit; color: #fff; accent-color: #b18bdf; }
.keno-calculator-controls input[type="number"] { padding: .5rem .75rem; border: 1px solid #76558e; border-radius: .45rem; background: #171420; }
.keno-calculator-controls :is(input,select):focus-visible { outline: 2px solid #cc9aff; outline-offset: 3px; }
.keno-calculator-summary { padding: .8rem 1rem; border-left: 3px solid #b18bdf; background: #261c33; }
.keno-calculator-table caption { text-align: left; padding: .75rem; color: #d8bff2; white-space: normal; }
.keno-calculator-table tbody tr[data-paid="true"] { background: #173327; }
.keno-calculator-table tbody tr[data-paid="true"] td:nth-last-child(-n+2) { color: #a0e9bf; }
.keno-page .keno-calculator-table tbody th { background: transparent; }
@media (max-width: 650px) {
 .keno-calculator-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
 .keno-calculator-controls > div:last-child { grid-column: 1 / -1; }
 .keno-page .keno-calculator-table { font-size: .66rem; }
 .keno-page .keno-calculator-table :is(th,td) { padding: .5rem .3rem; }
}

/* Keep calculator inputs and results adjacent, especially on narrow screens. */
.keno-calculator-section .keno-comparison { margin: .75rem 0 0; }
.keno-calculator-section .keno-calculator-summary { margin: .5rem 0; padding: .55rem .75rem; font-size: .82rem; line-height: 1.5; }
.keno-calculator-help { margin-top: .75rem; border-top: 1px solid #363044; padding-top: .65rem; }
.keno-calculator-help summary { cursor: pointer; color: #d8bff2; font-size: .85rem; }
.keno-calculator-help p { margin: .65rem 0 0; }
@media (max-width: 650px) {
 .keno-calculator-section h2 { font-size: 1.3rem; margin-bottom: .65rem; }
 .keno-calculator-controls { padding: .65rem; gap: .4rem .65rem; }
 .keno-calculator-controls label { font-size: .75rem; line-height: 1.4; margin-bottom: .3rem; }
 .keno-calculator-controls input[type="range"] { display: block; height: 32px; min-height: 32px; margin: 0; }
 .keno-calculator-section .keno-calculator-table caption { font-size: .64rem; line-height: 1.4; padding: .4rem .3rem; }
}

@media (max-width: 650px) {
 /* The consent shield occupies x=12..52px; keep dock content beyond it. */
 body:has(.wyl-consent-settings) .keno-game[data-dock-ready="true"] .keno-action {
  padding-left: calc(64px + env(safe-area-inset-left, 0px));
 }
}

/* Learning sequence: readable prose, visual examples, and compact mobile controls. */
.keno-explain > section { min-width: 0; }
.keno-explain section > p, .keno-calculator-help > p { max-width: 72ch; line-height: 1.7; }
.keno-explain :is(h2,h3) { scroll-margin-top: 6rem; }
.keno-lesson-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.keno-lesson-switch button[aria-pressed="true"] { background: #59367a; border-color: #b18bdf; }
.keno-lesson-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem; }
.keno-lesson-fields h3, .keno-choice-grid h3, .keno-count-comparison h3 { font-size: 1rem; margin: 0 0 .65rem; }
.keno-mini-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.keno-mini-draw { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .3rem; }
.keno-mini-ball { display: grid; place-items: center; min-width: 0; min-height: 34px; border: 1px solid #444157; border-radius: .4rem; background: #252735; color: #d7d4e5; font-size: .8rem; font-variant-numeric: tabular-nums; }
.keno-mini-ball.is-picked { background: #56347d; border-color: #b18bdf; }
.keno-mini-ball.is-hit { color: #b9ffdb; background: #21533e; border-color: #73d9a8; font-weight: 700; }
.keno-explain .keno-lesson-key, .keno-explain .keno-source-note { font-size: .78rem; color: #aaa1ba; }
.keno-lesson-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.keno-lesson-metrics > div { padding: .8rem; background: #251c31; border: 1px solid #51405f; border-radius: .6rem; min-width: 0; }
.keno-lesson-metrics span { display: block; color: #bfb1ce; font-size: .78rem; line-height: 1.5; }
.keno-lesson-metrics strong { display: block; margin-top: .3rem; color: #eee0ff; font-size: 1.2rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.keno-count-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.keno-count-comparison > div, .keno-choice-grid > div { padding: 1rem; border: 1px solid #51405f; border-radius: .6rem; background: linear-gradient(130deg, #251c31, #171824); min-width: 0; }
.keno-count-comparison dl { margin: 0; }
.keno-count-comparison dl > div { padding: .5rem 0; border-bottom: 1px solid #ffffff12; }
.keno-count-comparison dl > div:last-child { border: 0; padding-bottom: 0; }
.keno-count-comparison dt { color: #bfb1ce; font-size: .78rem; }
.keno-count-comparison dd { margin: .2rem 0 0; font-size: 1.05rem; color: #ead6ff; font-weight: 650; overflow-wrap: anywhere; }
.keno-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.keno-choice-grid p { font-size: .88rem; margin: 0; }
.keno-rtp-demo { padding: 1rem; border: 1px solid #51405f; border-radius: .7rem; background: #191523; margin: 1rem 0; }
.keno-rtp-demo > p { max-width: 68ch; margin-top: 0; }
.keno-rtp-demo label { display: block; color: #d8bff2; font-size: .9rem; }
.keno-rtp-demo input { width: 100%; min-height: 44px; accent-color: #b18bdf; }
.keno-page .keno-format-table { white-space: normal; table-layout: fixed; }
.keno-page .keno-format-table :is(th,td) { text-align: left; vertical-align: top; overflow-wrap: anywhere; line-height: 1.5; }
.keno-next { display: inline-block; padding: .5rem 0; color: #d2adff; }
.keno-start-steps { padding-left: 1.25rem; color: #bfb1ce; line-height: 1.7; }
.keno-page :is(.keno-lesson-switch button,.keno-rtp-demo input):focus-visible { outline: 2px solid #cc9aff; outline-offset: 3px; }
@media (max-width: 650px) {
 .keno-lesson-fields, .keno-count-comparison, .keno-choice-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
 .keno-mini-draw { grid-template-columns: repeat(5, minmax(0, 1fr)); }
 .keno-lesson-metrics { gap: .4rem; }
 .keno-lesson-metrics > div { padding: .5rem; }
 .keno-lesson-metrics span { font-size: .65rem; }
 .keno-lesson-metrics strong { font-size: .9rem; }
 .keno-count-comparison dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: baseline; }
 .keno-count-comparison dd { text-align: right; font-size: .9rem; margin: 0; }
 .keno-page .keno-format-table { font-size: .7rem; }
 .keno-page .keno-format-table :is(th,td) { padding: .5rem .4rem; }
 .keno-rtp-demo { padding: .75rem; }
}

/* Compact worked round; full draw is optional. */
.keno-compact-lesson .keno-start-steps { margin: .5rem 0 1.25rem; }
.keno-compact-lesson .keno-lesson-key { margin: .3rem 0 .6rem; }
.keno-compact-lesson .keno-lesson-switch { margin: .6rem 0; gap: .4rem; }
.keno-compact-lesson .keno-lesson-switch button[aria-pressed="true"] { color: #fff; background: #7145a7; border-color: #d2acff; box-shadow: inset 0 -3px 0 #d2acff; font-weight: 750; }
.keno-lesson-calculation { padding-left: 1.4rem; margin: .75rem 0; max-width: 65ch; color: #c3bbd0; line-height: 1.5; }
.keno-lesson-calculation li { padding-left: .25rem; margin: .5rem 0; }
.keno-lesson-calculation li::marker { color: #c99bf4; font-weight: 700; }
.keno-lesson-calculation .keno-mini-picks { max-width: 22rem; margin-top: .4rem; }
.keno-lesson-equation { display: block; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.keno-lesson-equation strong, .keno-lesson-calculation strong { color: #ead6ff; }
.keno-lesson-calculation small { display: block; color: #a69ab7; font-size: .75rem; }
.keno-compact-lesson details .keno-mini-draw { margin-top: .65rem; }
@media (max-width: 650px) {
 .keno-compact-lesson h2 { font-size: 1.3rem; margin-bottom: .6rem; }
 .keno-compact-lesson .keno-lesson-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .keno-page .keno-compact-lesson .keno-lesson-switch button { font-size: .72rem; line-height: 1.35; padding: .5rem .3rem; min-height: 44px; }
 .keno-lesson-calculation { font-size: .85rem; }
 .keno-compact-lesson .keno-start-steps { font-size: .85rem; line-height: 1.5; }
}

.keno-page .keno-count-table { table-layout: fixed; white-space: normal; font-size: .85rem; margin: .75rem 0; }
.keno-page .keno-count-table :is(th,td) { text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
.keno-count-table th:first-child { width: 23%; }
.keno-count-table th:last-child { width: 29%; }
@media (max-width: 650px) {
 .keno-page .keno-count-table { font-size: .75rem; }
 .keno-page .keno-count-table :is(th,td) { padding: .55rem .35rem; }
}

.keno-short-points { padding-left: 1.2rem; max-width: 70ch; color: #c3bbd0; line-height: 1.6; }
.keno-short-points li { margin: .55rem 0; }
.keno-short-points li::marker { color: #c99bf4; }
.keno-rtp-demo--compact { padding: .65rem 0 0; margin: 0; background: transparent; border: 0; }
.keno-rtp-compact-values { margin: .3rem 0; max-width: 38rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.keno-rtp-compact-values > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: .75rem; padding: .45rem 0; border-bottom: 1px solid #ffffff12; }
.keno-rtp-compact-values dt { color: #bfb1ce; }
.keno-rtp-compact-values dd { margin: 0; color: #ead6ff; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 650px) {
 .keno-short-explain h2 { font-size: 1.3rem; }
 .keno-short-explain > p, .keno-short-points { font-size: .85rem; line-height: 1.6; }
 .keno-short-explain .keno-lesson-calculation { margin: .65rem 0; }
 .keno-rtp-compact-values { font-size: .78rem; }
}

.keno-explain .keno-payout-explanation-title { margin-top: 1.25rem; }

html[lang="en-US"] .keno-drawn:empty::before { content: "The 20 drawn numbers will appear here"; }
