/* W-21, W-21a, W-21b, W-21c: the game's website in the game's own look. The game's menu background (square, the panel's)
   behind everything, and over it Liquid Glass, the iOS look the game's Paraform glass has: the picture behind blurred and
   brightened, a light rim brightest at the top-left and bottom-right corners, a soft glow inside the edge. Lilita One over
   Nunito, Cairo for Arabic, and the game's bottom tab bar. Always dark, the game as it is (W-21d took the switch away). Built for a phone first. */

@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-wght.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-wght.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
    --veil: linear-gradient(180deg, rgba(6, 9, 24, 0.3) 0%, rgba(6, 9, 24, 0.5) 60%, rgba(6, 9, 24, 0.7) 100%);
    --glass: rgba(22, 24, 52, 0.38);
    --glass-deep: rgba(14, 16, 36, 0.62);
    --pop: rgba(22, 24, 48, 0.94);
    --sheen: rgba(255, 255, 255, 0.1);
    --fill-top: rgba(255, 255, 255, 0.16);
    --fill-bottom: rgba(255, 255, 255, 0.05);
    --rim-light: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.18) 26%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.42) 100%);
    --glow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 0 16px rgba(255, 255, 255, 0.07);
    --lift: 0 10px 26px rgba(0, 0, 0, 0.32);
    --lift-big: 0 18px 40px rgba(0, 0, 0, 0.4);
    --rim: #d6ad60;
    --rim-soft: rgba(214, 173, 96, 0.4);
    --line: rgba(255, 255, 255, 0.1);
    --field: rgba(6, 8, 22, 0.42);
    --field-edge: rgba(255, 255, 255, 0.14);
    --field-h: 46px;
    --text: #f5f1e8;
    --title: #ffffff;
    --muted: #bcb8cf;
    --placeholder: #7f7b95;
    --soft: rgba(255, 255, 255, 0.06);
    --hover: rgba(255, 255, 255, 0.12);
    --link: #f3c86a;
    --danger: #ff7474;
    --notice-bg: rgba(240, 190, 90, 0.14);
    --notice-ink: #ffe3a3;
    --heading: "Lilita One", "Cairo", system-ui, sans-serif;
    --body: "Nunito", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --tabbar-h: 70px;
    --more-h: 28px;
    color-scheme: dark;
}

:root[dir="rtl"] {
    --heading: "Cairo", "Lilita One", system-ui, sans-serif;
    --body: "Cairo", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
    background: #0b0e22;
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    /* W-21d: the window never scrolls, each page has its own scroll. */
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

a { color: var(--link); }

h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: 0.01em; margin: 0; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { font-weight: 800; letter-spacing: 0; }

/* The game's menu background, still while the page scrolls. Square, as every screen background is (INV-31): its height fits
   the screen and it is never cut on a wide one, a phone sees its middle. W-21g: on a wide screen a blurred copy of it fills
   the two sides behind it, the two soft where they meet. Only there: a phone has no sides and pays for no blur. */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0b0e22; }
.scene::after { content: ""; position: absolute; inset: 0; background: var(--scene, url("art/background.webp")) center / auto 100% no-repeat; }
@media (min-aspect-ratio: 1/1) {
    .scene::before {
        content: ""; position: absolute; inset: -80px; background: var(--scene, url("art/background.webp")) center / cover no-repeat;
        filter: blur(36px) brightness(0.72);
    }
    .scene::after {
        right: auto; left: 50%; aspect-ratio: 1; transform: translateX(-50%); background-size: 100% 100%;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    }
}
/* The veil over the art: the game's own darkness, or the pale day of light. */
.scene > .veil { position: absolute; inset: 0; z-index: 1; background: var(--veil); }

/* Liquid Glass, in plain CSS so every browser draws it the same. Only what lies on the picture blurs it (the frames, the
   bars, the menus and boxes). What lies on those is clear glass that blurs nothing again, as iOS does it: a second blur
   under every card is what makes a slow phone stutter while it scrolls. No SVG refraction either, only Chrome draws it.
   The rim is a gradient ring cut out with a mask (::before), so a card needs no border and no extra markup. */
.frame, .card, .game, .game-art, .feature, .player, .pack, .history-row, .store,
.icon-btn, .account-chip, .btn, .round-btn { position: relative; }
.frame::before, .card::before, .game::before, .game-art::before, .feature::before,
.player::before, .pack::before, .history-row::before, .store::before, .pop::before,
.icon-btn::before, .account-chip::before, .btn::before, .round-btn::before, .me-btn::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--rim-light);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
/* Clear glass on glass: the cards, the chips, the quiet buttons. */
.card, .game, .feature, .player, .pack, .history-row, .icon-btn, .account-chip, .btn-glass {
    background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%);
    border: 0;
    box-shadow: var(--glow), var(--lift);
}

/* The big frames on the picture: it shows through, blurred and brightened, a light shine at the top corner. The glass is
   its own layer behind the frame (::after), as the top bar's is, so the Player ID's help blurs the page under it too. */
.frame { isolation: isolate; border-radius: 28px; box-shadow: var(--lift-big); padding: 18px; }
.frame::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 70% at 0% 0%, var(--sheen) 0%, transparent 55%), var(--glass); box-shadow: var(--glow);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
}
/* A frame with a menu open stands over the frames after it (each frame's glass is a layer of its own). */
.frame:has(.pop:not([hidden])) { z-index: 5; }
.frame.center { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.frame.center p { margin: 0; }

.card { border-radius: 22px; }

.title {
    font-family: var(--heading); color: var(--title); font-size: 24px; line-height: 1.15; text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}
:root[dir="rtl"] .title { text-transform: none; }
.frame > .title { margin-bottom: 14px; }

/* Top bar: glass with a light edge under it. The glass is a layer of its own behind the bar (::before): a blur on the bar
   itself would let its menus blur only the bar, so a menu over the page would show the page sharp through it. */
.topbar { position: relative; flex: none; z-index: 40; padding-top: env(safe-area-inset-top); }
.topbar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--glass-deep);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.2);
}
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--title); text-decoration: none; flex: none; min-width: 0; }
.topbar .brand { margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px var(--rim), 0 4px 10px rgba(0, 0, 0, 0.3); }
.brand-name { font-family: "Lilita One", var(--heading); font-size: 21px; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }

.topbar-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
    appearance: none; color: var(--text); cursor: pointer; padding: 0; flex: none;
    width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
}
.icon-btn:hover, .account-chip:hover { filter: brightness(1.08); }
.icon-btn:active, .account-chip:active { transform: scale(0.95); }
.icon-btn[aria-expanded="true"], .account-chip[aria-expanded="true"] { box-shadow: var(--glow), 0 0 0 2px var(--rim), var(--lift); }

/* W-21d: the language and the menu in the top bar: plain, no capsule around them. */
.bar-btn {
    appearance: none; border: 0; background: none; color: var(--text); cursor: pointer; flex: none; height: 42px; padding: 0 8px;
    display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; font: inherit; font-weight: 800; font-size: 15px;
    text-decoration: none; white-space: nowrap;
}
.bar-btn svg { width: 22px; height: 22px; flex: none; }
.bar-btn .caret { width: 16px; height: 16px; }
/* The language reads as a control: a thin line around it, square corners. Its list hangs under it. */
.bar-lang { height: 38px; padding: 0 6px 0 8px; gap: 5px; border: 1px solid var(--field-edge); background: var(--soft); }
#lang-pop { min-width: 150px; }
.menu-check { width: 20px; height: 20px; flex: none; color: var(--link); }
.bar-btn:hover, .bar-btn[aria-expanded="true"] { background: var(--hover); }
.caret { flex: none; opacity: 0.75; transition: transform 0.15s ease; }
[aria-expanded="true"] > .caret { transform: rotate(180deg); }

/* The player in the top bar: their picture and name, their menu under it. */
.account-chip {
    appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 5px;
    border-radius: 999px; color: var(--text); font: inherit; max-width: 260px;
}
:root[dir="rtl"] .account-chip { padding: 0 5px 0 10px; }
.account-chip-name { font-weight: 900; font-size: 15px; white-space: nowrap; }

/* Menus that drop from the top bar (and the Player ID's help): thicker glass, rows like the game's lists. */
.pop-wrap { position: relative; display: inline-flex; }
.pop {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; min-width: 230px; max-width: min(320px, calc(100vw - 24px));
    padding: 8px; border-radius: 22px; background: var(--pop); color: var(--text);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--glow), 0 18px 40px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 2px;
    animation: pop-in 0.14s ease-out;
}
.pop[hidden] { display: none; }
.pop-menu { max-height: calc(100dvh - 84px); overflow-y: auto; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.menu-row {
    appearance: none; border: 0; background: none; width: 100%; font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-weight: 800; font-size: 15px; text-align: start;
}
.menu-row:hover, .menu-row:focus-visible { background: var(--hover); outline: none; }
.menu-row.on { color: var(--link); }
.menu-row.danger { color: var(--danger); }
.menu-row-text { flex: 1; min-width: 0; }
.menu-row-text small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
:root[dir="rtl"] .menu-row-text small { text-align: end; }
.menu-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--link); }
.menu-icon svg { width: 19px; height: 19px; }
.pop-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pop-head-text { display: flex; flex-direction: column; min-width: 0; }
.signout { margin: 0; }
/* Buttons: tinted glass, a capsule. Its colour with a soft light inside the top, a glow of the same colour under it,
   and pressed it sinks a little, as iOS buttons do. */
.btn, .round-btn, .me-btn, .pack-price, .tabs .on, .step-no, .feature-icon, .tabbar-tabs a.on .tab-icon {
    background: radial-gradient(130% 100% at 50% -10%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 72%), var(--face, #3d8bff);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), inset 0 -4px 10px rgba(0, 0, 0, 0.14), inset 0 0 12px rgba(255, 255, 255, 0.2), 0 6px 16px rgba(0, 0, 0, 0.22);
}
.btn {
    appearance: none; border: 0; cursor: pointer; font-family: "Lilita One", var(--heading); font-weight: 400; font-size: 17px;
    letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 999px; padding: 10px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; white-space: nowrap; transition: transform 0.12s ease, filter 0.15s ease;
}
:root[dir="rtl"] .btn { font-family: var(--heading); font-weight: 800; letter-spacing: 0; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:active:not(:disabled), .round-btn:active, .me-btn:active { transform: scale(0.96); filter: brightness(0.95); }
.btn:disabled { filter: saturate(0.4) brightness(0.8); opacity: 0.6; cursor: not-allowed; }
.btn-blue { --face: #3d8bff; }
.btn-green { --face: #2fc670; }
.btn-gold { --face: #f2b53f; color: #3b2504; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-glass {
    font-family: var(--body); font-weight: 800; font-size: 15px; color: var(--text); text-shadow: none; letter-spacing: 0;
    background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); box-shadow: var(--glow), var(--lift);
}
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* A round icon button in tinted glass (its top-up history). Dimmed while one has to sign in first. */
.round-btn {
    appearance: none; cursor: pointer; flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 0; display: grid; place-items: center;
    color: #fff; border: 0; --face: #7a4cf5; transition: transform 0.12s ease;
}
.round-btn svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.locked { filter: grayscale(0.85) brightness(0.85); opacity: 0.55; }
.locked:hover { opacity: 0.75; }

/* The page */
.main { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; overflow: hidden; }

/* The three pages that slide, side by side, each the width of the window with its own scroll. Nothing on them is selected
   or picked up by a drag. .moving: site.js moves them, the snap would pull them back meanwhile. */
.pages {
    flex: 1; min-width: 0; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.pages::-webkit-scrollbar { display: none; }
.pages.moving { scroll-snap-type: none; }
.pages.dragging, .pages.dragging * { cursor: grabbing; }
.pages input { -webkit-user-select: text; user-select: text; }
.pages img { -webkit-user-drag: none; }
.page-panel {
    flex: 0 0 100%; min-width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none;
    scroll-snap-align: start; scroll-snap-stop: always; padding: 20px 64px 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.page-panel > * { flex: none; }
.page-panel::-webkit-scrollbar, .packs-box.scrolls::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .pages { cursor: grab; } }
.page-panel > *, .single > * { width: 100%; max-width: 760px; margin-inline: auto; }
#shop > * { max-width: 580px; }
#home > * { max-width: 780px; }
#events > * { max-width: 560px; }
.single { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.single > * { flex: none; }
.single > * { max-width: 820px; }
/* With script, the pages show once they stand on the right one (a second at most). */
html.js .pages:not(.ready) { visibility: hidden; animation: pages-show 0s 1.2s forwards; }
@keyframes pages-show { to { visibility: visible; } }

/* W-21f: the two sides of the screen, each half of the free space beside the widest page (780 px), from the top bar down to
   the tab bar. The game's tall thin mark with no button round it, faint until the mouse comes on the side, then a soft dark
   shade rises from the screen's edge. Round the mark a column from the edge to as far past the mark as the mark stands from
   the edge: a press there goes that way and lights it a little. They only draw and take no events (site.js does the rest),
   so the page's own wheel, drag and swipe work across them. The shade may be wider than the side, a phone's margin alone is
   too thin to read as one. */
.side-arrow {
    --side-w: max(44px, calc((100vw - 780px) / 4));
    --shade-w: max(84px, var(--side-w));
    --mark-w: 34px;
    position: absolute; top: 0; bottom: 0; z-index: 15; width: var(--side-w); padding: 0 calc(var(--side-w) * 0.2); border: 0; outline: 0; overflow: visible;
    display: grid; align-items: center; background: none; color: #fff; pointer-events: none;
}
.side-arrow[hidden] { display: none; }
/* The screen's left and right in every language: start and end would turn around in Arabic and stand the marks away from the edge. */
.side-left { left: 0; justify-items: left; }
.side-right { right: 0; justify-items: right; }
.side-arrow::before { content: ""; position: absolute; top: 0; bottom: 0; width: var(--shade-w); opacity: 0.25; transition: opacity 0.3s ease; }
.side-left::before { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.14) 72%, transparent); }
.side-right::before { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.14) 72%, transparent); }
.side-rect {
    position: absolute; top: 0; bottom: 0; width: calc(var(--side-w) * 0.4 + var(--mark-w));
    background: rgba(255, 255, 255, 0.05); opacity: 0; transition: opacity 0.3s ease;
}
.side-left .side-rect { left: 0; }
.side-right .side-rect { right: 0; }
.side-arrow.pressed .side-rect { opacity: 1; transition: opacity 0.05s ease; }
.side-arrow svg {
    position: relative; width: var(--mark-w); height: calc(var(--mark-w) * 3); opacity: 0.32; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-arrow.lit::before, .side-arrow:focus-visible::before { opacity: 1; }
.side-arrow.lit svg, .side-arrow:focus-visible svg { opacity: 0.95; }
.side-left.lit svg { transform: translateX(-5px); }
.side-right.lit svg { transform: translateX(5px); }
.pages.at-side { cursor: pointer; }
/* No mouse to bring it up: a finger needs to see the mark from the start. */
@media (hover: none) {
    .side-arrow svg { opacity: 0.6; }
    /* The finger covers the column: it answers with the shade and the mark alone. */
    .side-rect { background: none; }
}
/* A phone's whole margin goes that way, it holds nothing else. */
@media (hover: none) and (max-width: 860px) {
    .side-rect { width: 100%; }
}

.panel-head { text-align: center; padding: 4px 0 2px; }
.panel-head .title { font-size: clamp(30px, 7vw, 40px); }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-weight: 700; }

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.error { color: var(--danger); font-weight: 800; margin: 10px 0 0; }
.empty { color: var(--muted); text-align: center; font-weight: 700; padding: 18px 8px; margin: 0; }
.notice { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--notice-bg); border: 1px solid var(--rim-soft); color: var(--notice-ink); font-weight: 800; text-align: center; }
.pill { display: inline-block; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #5ae288, #20b256); border-radius: 999px; padding: 1px 9px; }
.pill-soon { color: #3b2504; background: linear-gradient(180deg, #ffe08c, #eaad45); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.2); }

/* Fields */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%; font: inherit; font-size: 17px; font-weight: 700; color: var(--text);
    background: var(--field); border: 1px solid var(--field-edge); border-radius: 16px; padding: 12px 14px; outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
input:focus { border-color: var(--rim); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), 0 0 0 3px var(--rim-soft); }
input::placeholder { color: var(--placeholder); font-weight: 600; }

/* Tabs: a glass well, the shown one a gold glass capsule. */
.tabs { display: flex; gap: 6px; background: var(--field); border: 1px solid var(--field-edge); border-radius: 999px; padding: 4px; margin-bottom: 14px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.12); }
.tabs button, .tabs a {
    flex: 1; appearance: none; border: 0; background: transparent; color: var(--muted); text-align: center; text-decoration: none;
    font-family: "Lilita One", var(--heading); font-size: 17px; letter-spacing: 0.02em; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
:root[dir="rtl"] .tabs button, :root[dir="rtl"] .tabs a { font-family: var(--heading); font-weight: 800; letter-spacing: 0; }
.tabs .on { color: #3b2504; --face: #f2b53f; }
/* Only as wide as its words, in the middle. */
.tabs-compact { width: max-content; max-width: 100%; margin-inline: auto; }
.tabs-compact button { flex: none; min-width: 112px; }
/* CS-25: the shop's sections beside Golds and Diamonds. More than fit are swiped sideways, none is cut or wrapped. */
.shop-tabs { overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs button { white-space: nowrap; }

/* Avatar */
.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, #3b3f78, #1d2148); box-shadow: 0 0 0 2px var(--rim), 0 4px 10px rgba(0, 0, 0, 0.3); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-empty { font-family: "Lilita One", var(--heading); color: #f1e6c8; }
.avatar-sm { width: 32px; height: 32px; font-size: 15px; }
.avatar-md { width: 46px; height: 46px; font-size: 20px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; box-shadow: 0 0 0 3px var(--rim), 0 6px 14px rgba(0, 0, 0, 0.35); }
.account-name { font-weight: 900; font-size: 17px; color: var(--title); overflow-wrap: anywhere; }
.account-id { color: var(--muted); font-size: 14px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
:root[dir="rtl"] .account-id { text-align: end; }

/* Home */
.hero { text-align: center; padding: 18px 0 6px; display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 0 0 3px var(--rim), 0 0 40px rgba(240, 190, 90, 0.35), 0 14px 30px rgba(0, 0, 0, 0.4); }
.hero-title {
    font-family: "Lilita One", var(--heading); font-size: clamp(44px, 10vw, 70px); line-height: 1; margin-top: 18px; text-transform: uppercase;
    background: linear-gradient(180deg, #fff6d2 0%, #f6cf68 52%, #d18d22 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 3px 0 #5a3508) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.hero-tag { color: var(--text); font-size: 17px; font-weight: 700; max-width: 560px; margin: 14px auto 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 20px; border-radius: 18px; font-weight: 900;
    background: var(--glass-deep); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--glow), var(--lift);
}
.store small { color: var(--muted); font-weight: 700; font-size: 11px; line-height: 1; }

/* The lobby's games: a glass card each, its first button's picture on that button's colour, its logo in its colours. */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.game { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 10px 14px; border-radius: 24px; }
/* The game's colour as a lit glass tile: light in at the top, its own darker edge glowing in at the bottom. */
.game-art {
    background: radial-gradient(130% 90% at 50% -10%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 70%), var(--face);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), inset 0 -10px 18px -6px var(--edge), inset 0 0 14px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(0, 0, 0, 0.2);
}
.game-art { width: 100%; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; overflow: hidden; }
.game-art img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.game-logo {
    font-family: "Lilita One", var(--heading); font-size: 25px; line-height: 1.1; margin-top: 6px; color: #fff; text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(20, 14, 40, 0.75); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(20, 14, 40, 0.55);
}
:root[dir="rtl"] .game-logo { font-family: "Lilita One", "Cairo", sans-serif; font-weight: 900; text-transform: none; }
.game p { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.game.closed .game-art { filter: grayscale(0.9) brightness(0.8); }
.game .pill-soon { position: absolute; top: 6px; inset-inline-end: 6px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 22px; }
.feature h3 { font-family: var(--body); font-weight: 900; font-size: 17px; color: var(--title); }
.feature p { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.feature-icon { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; --face: #f2b53f; }
.feature-icon { color: #3b2504; overflow: hidden; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Top-up: the steps */
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 46px; }
.step .title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.step-no {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; font-size: 17px; color: #3b2504; text-shadow: none;
    --face: #f2b53f;
}
/* The top-ups button stands at the end of the line, over Check. */
.history-btn { margin-inline-start: auto; }
.info-btn {
    appearance: none; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; padding: 0; flex: none; display: grid; place-items: center;
    font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 16px; line-height: 1; color: var(--link);
    background: var(--soft); border: 2px solid var(--link);
}
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--link); color: var(--pop); }
/* Where a Player ID is: a word and a little profile, the ID ringed. It hangs from the heading's line, not from the "i",
   so on a phone it stays inside the frame. */
.step-head { position: relative; }
.step-head .pop-wrap { position: static; }
.pop-help { inset-inline-end: auto; inset-inline-start: 0; top: calc(100% + 6px); width: min(300px, 100%); gap: 10px; padding: 14px; }
.help-step { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.help-cap { display: flex; align-items: flex-start; gap: 8px; font-weight: 800; font-size: 14px; line-height: 1.3; text-align: start; }
.help-no { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #f2b53f; color: #3b2504; font-size: 13px; font-weight: 900; }
.help-shot { position: relative; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.help-shot img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
/* The ring on the thing to look at, placed on the picture (the Arabic game is mirrored). */
.help-ring { position: absolute; transform: translate(-50%, -50%); border: 2.5px solid #ffd35c; box-shadow: 0 0 0 3px rgba(255, 211, 92, 0.3), 0 0 12px rgba(255, 211, 92, 0.75); animation: help-pulse 1.4s ease-in-out infinite; }
.help-tab .help-ring { left: 27.2%; top: 63%; width: 13%; aspect-ratio: 1; border-radius: 50%; }
.help-card .help-ring { left: 42.9%; top: 44%; width: 34%; height: 23%; border-radius: 10px; }
:root[dir="rtl"] .help-tab .help-ring { left: 72.8%; }
:root[dir="rtl"] .help-card .help-ring { left: 57.2%; }
@keyframes help-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 211, 92, 0.12), 0 0 18px rgba(255, 211, 92, 0.95); } }

/* The field and Check are one height. */
.id-form { display: flex; gap: 10px; align-items: center; }
.id-form .btn { height: var(--field-h); padding-block: 0; border-radius: 16px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.14); }
.id-field input { border-color: rgba(255, 255, 255, 0.24); }
.id-field { position: relative; flex: 1; min-width: 0; display: flex; }
/* The field is always left to right (an ID is digits), the own-ID button sits at the line's end: room for it on its side. */
.id-field input { flex: 1; min-width: 0; height: var(--field-h); padding-block: 0; letter-spacing: 0.04em; padding-right: 52px; }
:root[dir="rtl"] .id-field input { padding-right: 14px; padding-left: 52px; }
.me-btn {
    appearance: none; cursor: pointer; position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 34px; height: 34px;
    border-radius: 50%; padding: 0; display: grid; place-items: center; border: 0; color: #fff; --face: #2fc670;
}
.me-btn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.me-btn:active { transform: translateY(-50%) scale(0.94); }
.me-btn:disabled { opacity: 0.5; }
.player { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 22px; }
.player-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; align-items: flex-start; }
.player-name { font-size: 19px; font-weight: 900; color: var(--title); overflow-wrap: anywhere; }
.player-id { color: var(--muted); font-size: 14px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }

/* Packs: the game shop's Paraform cards, as many to a line as its section says, in the middle. More than three lines
   scroll inside, the fourth showing its top. */
.packs-box { --card-h: 182px; --gap: 12px; position: relative; margin-inline: auto; max-width: calc(var(--cols) * 168px + (var(--cols) - 1) * var(--gap)); }
.packs { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); padding: 10px 6px 12px; }
.packs-box.scrolls { max-height: calc(var(--card-h) * 3.42 + var(--gap) * 3 + 10px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); }
.packs-box.scrolls.at-end { -webkit-mask-image: none; mask-image: none; }
.pack {
    appearance: none; cursor: pointer; font: inherit; color: var(--text); text-align: center; height: var(--card-h); border-radius: 24px;
    padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.pack:hover { transform: translateY(-2px); }
.pack:active { transform: scale(0.97); }
/* The chosen one: warm glass in a gold ring. */
.pack.on {
    background: linear-gradient(180deg, rgba(255, 214, 130, 0.42) 0%, rgba(255, 214, 130, 0.14) 100%);
    box-shadow: var(--glow), 0 0 0 2px var(--rim), 0 0 24px rgba(240, 190, 90, 0.42);
}
.pack.on::after {
    content: ""; position: absolute; top: -9px; inset-inline-end: -9px; width: 26px; height: 26px; border-radius: 50%;
    background: #20b256 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
    box-shadow: 0 0 0 2px #fff, 0 3px 6px rgba(0, 0, 0, 0.3);
}
.pack-art { width: 84px; height: 84px; display: grid; place-items: center; flex: none; }
.pack-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35)); }
.pack-name { font-weight: 900; font-size: 15px; line-height: 1.2; color: var(--title); }
.pack-amount { direction: ltr; unicode-bidi: isolate; }
/* CS-25: a Game Skin's or a frame's name, two lines at most. */
/* CS-26: how long a VIP tier lasts, beside its name or on the line under it. */
.pack-days { display: inline-block; font-size: .8em; opacity: .8; margin-inline-start: .35em; }
.pack-item { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pack-price {
    width: 100%; font-family: "Lilita One", var(--heading); font-size: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 999px; padding: 5px 4px; --face: #2fc670;
}
.scroll-hint {
    appearance: none; border: 0; background: none; cursor: pointer; font: inherit; color: var(--link); font-weight: 900; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px auto 0;
}
.scroll-hint svg { animation: nudge 1.4s ease-in-out infinite; }
.scroll-hint.done { visibility: hidden; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Top-up: paying */
.pay-soon { padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--rim-soft); color: var(--muted); font-weight: 800; text-align: center; font-size: 15px; }
.summary { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; }
.summary-row span:last-child { color: var(--text); font-weight: 900; text-align: end; overflow-wrap: anywhere; }
.summary-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.summary-row.total span:last-child { font-family: "Lilita One", var(--heading); font-weight: 400; font-size: 24px; color: var(--link); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: #20b256; flex: none; margin: 1px 0 0; }
.pay-row { display: flex; justify-content: center; margin-top: 18px; }
.btn-pay { font-size: 24px; padding: 13px 40px; border-radius: 18px; min-width: 240px; }
/* Boxes over the page: sign-in and the top-ups. */
dialog.sheet {
    width: min(520px, calc(100% - 24px)); max-height: min(86vh, 760px); overflow: auto; padding: 18px; color: var(--text);
    background: radial-gradient(120% 50% at 0% 0%, var(--sheen) 0%, transparent 55%), var(--glass-deep);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    /* The box scrolls, so its rim is drawn by shadows, not the masked ring (that would scroll away with the rows). */
    border: 0; border-radius: 28px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 0 rgba(255, 255, 255, 0.22), var(--glow), var(--lift-big);
}
dialog.sheet::backdrop { background: rgba(4, 6, 18, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head .title { font-size: 26px; }
.sheet-head .icon-btn { border-radius: 50%; }
.sheet-sub { margin: 6px 0 14px; font-size: 14px; font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form[hidden] { display: none; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.form .hint { margin: -4px 0 2px; }

.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history-row {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 14px;
    border-radius: 18px;
}
.history-what, .history-how, .history-when { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-how { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.history-when { align-items: flex-end; text-align: end; font-size: 14px; }
.history-amount { font-weight: 900; color: var(--title); overflow-wrap: anywhere; }
.history-paid { font-weight: 900; }
.chip { display: inline-block; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 2px 9px; white-space: nowrap; color: #fff; }
.chip-inapp { background: #2f72ea; }
.chip-agent { background: #c98a22; }
.chip-website { background: #20b256; }
.chip-test { background: var(--hover); color: var(--muted); }

/* Events: the game's cards in one column in the middle, a banner at the panel's 16:9 whatever its picture's shape. */
.events { display: flex; flex-direction: column; gap: 14px; }
.event { padding: 10px; display: flex; flex-direction: column; gap: 10px; border-radius: 22px; }
.event-banner { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; border-radius: 15px; background: var(--fill-bottom); }
.event-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 6px 4px; }
.event-text h2 { font-family: var(--body); font-weight: 900; font-size: 17px; color: var(--title); overflow-wrap: anywhere; }
.event-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.event-when { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.event-text .hint { margin: 0; font-size: 13px; }

/* Legals */
.legal-list { margin: 0; padding-inline-start: 1.2rem; display: flex; flex-direction: column; gap: 10px; font-weight: 900; font-size: 18px; }
.doc h1 { font-family: var(--heading); color: var(--title); font-size: clamp(26px, 5vw, 34px); margin-bottom: 4px; }
.doc-back { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.doc-date { color: var(--muted); margin: 0 0 18px; font-size: 14px; font-weight: 700; }
.doc-body { line-height: 1.7; }
.doc-body h3 { font-family: var(--body); font-weight: 900; font-size: 19px; color: var(--title); margin: 26px 0 8px; }
.doc-body h4 { font-family: var(--body); font-weight: 900; font-size: 17px; margin: 20px 0 6px; }
.doc-body p, .doc-body li { margin: 0 0 10px; }
.doc-body ul, .doc-body ol { padding-inline-start: 22px; margin: 0 0 12px; }
.doc-body a { overflow-wrap: anywhere; }

/* The game's bottom tab bar, the last thing on the screen. The page shown is a gold disc that rises out of it. Under the
   tabs one quiet line, the copyright (W-21i: there is no footer to open). */
.tabbar {
    position: relative; flex: none; z-index: 30; padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-deep); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 -8px 20px rgba(0, 0, 0, 0.2);
}
.tabbar-tabs { height: var(--tabbar-h); display: flex; justify-content: center; }
.tabbar-tabs a { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; position: relative; }
.tabbar-tabs a:hover { color: var(--text); }
.tab-icon { width: 30px; height: 30px; display: grid; place-items: center; transition: transform 0.2s ease; }
.tab-icon svg { width: 28px; height: 28px; }
.tab-label { font-family: "Lilita One", var(--heading); font-size: 14px; color: var(--title); letter-spacing: 0.02em; }
:root[dir="rtl"] .tab-label { font-family: var(--heading); font-weight: 800; letter-spacing: 0; }
.tabbar-tabs a:not(.on) .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabbar-tabs a.on .tab-icon {
    width: 62px; height: 62px; border-radius: 50%; color: #3b2504; transform: translateY(-20px); margin-bottom: -20px; --face: #f2b53f;
}
.tabbar-copy {
    display: flex; justify-content: center; align-items: center; height: var(--more-h); margin: 0; color: var(--muted);
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.12);
}

/* W-21e: About. */
.about-text { margin: 0 0 18px; white-space: pre-line; font-weight: 600; }
.about-head { font-family: var(--heading); color: var(--title); font-size: 19px; margin-bottom: 6px; }
.about-line { margin: 0 0 4px; font-weight: 700; color: var(--muted); }

/* W-21e: signing in: a narrow column in the middle of the box. The code is as wide as its 11 characters, the PIN four boxes. */
#signin { width: min(440px, calc(100% - 24px)); }
#signin .sheet-sub, #signin .hint, #signin .error { text-align: center; }
#signin .form { align-items: center; }
#signin .form label, #signin .form-field { width: min(280px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
#signin .btn-block { width: min(280px, 100%); }
input.code-input { width: calc(9.6em + 30px); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 900; }
input.code-input::placeholder { text-transform: none; letter-spacing: 0.04em; }
.pin-slots { display: flex; gap: 10px; justify-content: center; }
input.pin-slot { width: 50px; height: 54px; padding: 0; text-align: center; font-size: 24px; font-weight: 900; border-radius: 14px; }
.pass-field { position: relative; display: block; width: 100%; }
.pass-field input { padding-right: 46px; }
.eye-btn { appearance: none; border: 0; background: none; position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: pointer; }
.eye-btn:hover { background: var(--hover); color: var(--text); }
.eye-btn svg { width: 22px; height: 22px; }
.eye-btn[aria-pressed="true"] .eye-off { display: none; }

@media (max-width: 860px) {
    .topbar-inner { padding: 8px 12px; gap: 8px; }
    .brand img { width: 36px; height: 36px; }
    .brand-name { font-size: 19px; }
    .page-panel { padding-inline: 34px; }
    /* The page's own margin, the mark inside it. */
    .side-arrow { --side-w: 34px; --mark-w: 16px; }
    .side-left.lit svg { transform: translateX(-2px); }
    .side-right.lit svg { transform: translateX(2px); }
    .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    /* The name waits in the player's menu: on a phone the picture alone, never a cut name. */
    .account-chip-name { display: none; }
    .account-chip { padding: 0 6px 0 4px; }
    .brand-name { font-size: 17px; }
    .page-panel { padding: 14px 33px 18px; gap: 14px; }
    .side-arrow { --side-w: 33px; }
    .single { padding: 14px 12px 18px; gap: 14px; }
    .frame { padding: 16px 14px; border-radius: 22px; }
    .hero-tag { font-size: 16px; }
    .features { grid-template-columns: 1fr; }
    .game-logo { font-size: 21px; }
    .game p { font-size: 12px; }
    .step .title { font-size: 20px; }
    /* The name keeps its own line beside the picture, Change goes under it. */
    .player-text { flex-basis: calc(100% - 72px); }
    .player .btn { margin-inline-start: auto; }
    .packs-box { --card-h: 156px; --gap: 8px; }
    .packs { padding: 8px 2px 10px; }
    .pack { padding: 10px 5px 8px; border-radius: 18px; }
    .pack-art { width: 64px; height: 64px; }
    .pack-name { font-size: 13px; }
    .pack-price { font-size: 15px; }
    .btn-pay { min-width: 200px; padding: 12px 28px; font-size: 22px; }
    .history-row { grid-template-columns: 1fr; }
    .history-when { align-items: flex-start; text-align: start; }
    .pop { max-width: calc(100vw - 20px); }
}

/* On a phone the top bar holds Sign in, the language and the menu in every language (Arabic's Sign in is the longest):
   the game's icon stays, its name waits on the home page, never cut. */
@media (max-width: 480px) {
    .topbar .brand-name { display: none; }
}

@media (max-width: 380px) {
    .topbar-inner { gap: 6px; padding-inline: 8px; }
    .topbar-tools { gap: 6px; }
    .signin-btn { padding-inline: 11px; }
    .page-panel { padding-inline: 30px; }
    .side-arrow { --side-w: 30px; --mark-w: 14px; }
    .tabs-compact button { min-width: 0; }
    .packs-box { --card-h: 146px; }
    .pack-art { width: 56px; height: 56px; }
}

/* W-21g: the first sight of the site waits here until its pictures and fonts are in (site.js), so a slow line never shows a
   half-drawn page. Without site.js it goes by itself. */
.splash { display: none; }
html.js:not(.seen) .splash {
    position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: #0b0e22; transition: opacity 0.35s ease; animation: splash-end 0s 15s forwards;
}
.splash img { border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.splash-name { font-family: "Lilita One", var(--heading); font-size: 28px; color: var(--title); }
.splash.gone { opacity: 0; pointer-events: none; }
@keyframes splash-end { to { visibility: hidden; } }
.loading-bar { display: block; width: 160px; height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.12); direction: ltr; }
.loading-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: #f2b53f; animation: loading-run 1.2s ease-in-out infinite; }
@keyframes loading-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* W-21g: the game's server out of reach: nothing of the site, only this over the picture, until it is back (site.js). */
.down { flex: 1; min-height: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.down > .frame { width: 100%; max-width: 420px; padding: 28px 22px; gap: 14px; }
.down img { border-radius: 22px; }

/* A picture that did not come leaves its place empty, never the browser's broken mark. */
.no-picture { visibility: hidden; }

/* A visitor who asked their device for less see-through gets the same shapes, solid. */
@media (prefers-reduced-transparency: reduce) {
    .frame::after, .topbar::before, .tabbar, .pop, dialog.sheet, .store { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--pop); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .pack, .tab-icon, .pop { transition: none; animation: none; }
    .scroll-hint svg, .help-ring { animation: none; }
    .side-arrow::before, .side-rect, .side-arrow svg { transition: none; }
    .loading-bar i { width: 100%; animation: none; opacity: 0.6; }
}

/* W-21i: the store buttons go to the stores once the panel has them, each with its store's mark. A computer shows a code for
   the phone's camera beside them (a phone needs none: the buttons are already on it). */
.stores-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store { flex-direction: row; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.store-words { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.store-mark { display: grid; place-items: center; }
.store-mark svg { width: 26px; height: 26px; }
.store-live { transition: transform 0.12s ease, filter 0.15s ease; }
.store-live:hover { filter: brightness(1.12); }
.store-live:active { transform: scale(0.96); }
.store-qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
    .store-qr {
        display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px;
        background: var(--glass-deep); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
        box-shadow: var(--glow), var(--lift);
    }
}
.store-qr-code { width: 84px; height: 84px; background: #fff; border-radius: 10px; padding: 3px; flex: none; }
.store-qr-code svg { width: 100%; height: 100%; display: block; }
.store-qr-text { max-width: 130px; font-size: 13px; font-weight: 800; color: var(--muted); text-align: start; line-height: 1.3; }

/* W-21i: the trailer: a picture and a play button until pressed, then YouTube's player in its place, at 16:9. */
.trailer {
    appearance: none; border: 0; padding: 0; cursor: pointer; display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 18px; overflow: hidden; margin-bottom: 14px; color: #fff;
    background: radial-gradient(80% 90% at 50% 40%, rgba(120, 90, 200, 0.55) 0%, rgba(10, 8, 30, 0.95) 75%);
    box-shadow: var(--glow), var(--lift);
}
.trailer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(1.1); }
.trailer-play {
    position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; --face: #ff3b3b;
    background: radial-gradient(130% 100% at 50% -10%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 72%), var(--face);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75), 0 8px 22px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease;
}
.trailer-play svg { width: 34px; height: 34px; margin-left: 4px; }
.trailer:hover .trailer-play { transform: scale(1.06); }
.trailer-text { position: absolute; inset-inline: 0; bottom: 14px; text-align: center; font-weight: 900; font-size: 16px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.trailer-on { cursor: default; background: #000; }
.trailer-on iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* W-21i: the game's pictures, tall like a phone, a tap shows one large. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 150px)); justify-content: center; gap: 10px; }
.shot {
    appearance: none; border: 0; padding: 0; cursor: zoom-in; display: block; aspect-ratio: 9 / 19.5; border-radius: 14px; overflow: hidden;
    background: var(--fill-bottom); box-shadow: var(--glow), var(--lift); transition: transform 0.12s ease;
}
.shot:hover { transform: translateY(-2px); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* AD-137: the whole screen. The picture sits in the stage under the ×, so the × never covers it, and is zoomed and moved there
   (site.js setUpShotBox). The fingers are the stage's: the page itself does not zoom or scroll under them. */
dialog.shot-box { padding: 0; border: 0; background: transparent; overflow: hidden; margin: 0; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
dialog.shot-box::backdrop { background: rgba(4, 6, 18, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.shot-stage { position: absolute; inset: 64px 12px 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: zoom-in; }
.shot-stage.zoomed { cursor: grab; }
.shot-stage.zoomed.moving { cursor: grabbing; }
.shot-stage img { display: block; max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--lift-big); transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform; }
/* The × small, in the screen's corner above the stage: always there, never over the picture. */
.shot-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; padding: 0; border-radius: 50%; z-index: 1; }

/* W-21i: the top players, the game's board by wins: a medal colour for the first three. */
.top-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.top-head .title { margin: 0; }
.top-head .pill { font-size: 13px; padding: 2px 11px; }
/* Down the first column, then the second: a ranking reads 1 to 5, 6 to 10. */
.top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; gap: 8px; }
.top-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; min-width: 0;
    background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); box-shadow: var(--glow);
}
.top-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: none; background: var(--hover); color: var(--text); }
.top-1 .top-rank { background: linear-gradient(180deg, #ffe08c, #eaad45); color: #3b2504; }
.top-2 .top-rank { background: linear-gradient(180deg, #f1f4fa, #b9c2d3); color: #252b38; }
.top-3 .top-rank { background: linear-gradient(180deg, #f1b37c, #c27434); color: #3b1f08; }
.top-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--fill-bottom); box-shadow: 0 0 0 2px var(--line); }
.top-name { flex: 1; min-width: 0; font-weight: 900; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-wins { font-weight: 800; color: var(--muted); font-size: 14px; white-space: nowrap; }

/* W-21i: Help: each question opens in place. */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-radius: 18px; background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); box-shadow: var(--glow); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
    font-weight: 900; color: var(--title); border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--hover); }
.faq-caret { width: 20px; height: 20px; flex: none; color: var(--link); transition: transform 0.2s ease; }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-answer { margin: 0; padding: 0 16px 16px; white-space: pre-line; font-weight: 600; overflow-wrap: anywhere; }

/* W-21i: news, the top-up's word on money, receipts. */
.chip-ended { background: var(--hover); color: var(--muted); margin-inline-start: 6px; }
.about-follow { margin-top: 18px; }
.no-cash { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
/* W-24: the region, the way to pay, and the order waiting for its payment. */
.region-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; }
.region-row .tabs { margin-bottom: 0; }
.region-label { font-size: 13px; font-weight: 800; color: var(--muted); }
.region-one { margin: -4px 0 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.region-one strong { color: var(--text); font-weight: 900; }
.method-tabs button { min-width: 0; padding-inline: 16px; }
.order-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0 4px; }
.order-ref { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.order-what { margin: 0; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.order-what strong { color: var(--text); font-weight: 900; }
.order-card .btn-pay { text-decoration: none; }
.order-wait { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; color: var(--muted); }
.order-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid var(--rim-soft); border-top-color: var(--link); animation: order-spin 0.9s linear infinite; }
@keyframes order-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .order-spin { animation-duration: 3s; } }
.order-done { margin: 0; font-size: 18px; font-weight: 900; color: var(--text); }
.order-card .error { margin: 0; }
.history-receipt { font-size: 13px; font-weight: 800; color: var(--link); }

.receipt { width: 100%; max-width: 560px; margin: 0 auto; }
.receipt-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 16px; }
.receipt-brand { font-family: "Lilita One", var(--heading); color: var(--link); font-size: 17px; letter-spacing: 0.04em; }
.receipt-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 0 0 14px; }
.receipt-rows dt { color: var(--muted); font-weight: 700; }
.receipt-rows dd { margin: 0; font-weight: 800; text-align: end; overflow-wrap: anywhere; }
.receipt-rows .receipt-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; color: var(--title); }
.receipt-note { font-size: 13px; margin: 6px 0 0; text-align: center; }
.receipt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 560px) {
    .top { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
    .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .trailer-play { width: 60px; height: 60px; }
    /* The two store buttons side by side and equal on a phone, the code is for computers. */
    .stores-row { width: 100%; }
    .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 380px; gap: 10px; }
    .store { padding: 9px 10px; gap: 8px; justify-content: center; }
    .store-mark svg { width: 22px; height: 22px; }
}

/* A receipt printed: the receipt alone, black on white. */
@media print {
    .scene, .topbar, .tabbar, .splash, .side-arrow, .receipt-actions, dialog { display: none !important; }
    html, body { background: #fff !important; color: #000 !important; height: auto !important; overflow: visible !important; }
    .main, .single { display: block !important; overflow: visible !important; height: auto !important; padding: 0 !important; }
    .receipt { box-shadow: none !important; }
    .receipt::before, .receipt::after { display: none !important; }
    .receipt, .receipt * { color: #000 !important; text-shadow: none !important; }
}

/* W-21i: the way back from a page the menu opens: the game's round glass button at the top, at the start of the line. */
.back-row { width: 100%; max-width: 820px; margin-inline: auto; display: flex; }
.back-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); text-decoration: none;
    background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); box-shadow: var(--glow), var(--lift);
    transition: transform 0.12s ease, filter 0.15s ease;
}
.back-btn:hover { filter: brightness(1.15); }
.back-btn:active { transform: scale(0.94); }
.back-btn svg { width: 24px; height: 24px; }
:root[dir="rtl"] .back-btn svg { transform: scaleX(-1); }
/* W-21l (developer): in a page's heading the button keeps its place at the top and the title keeps its own, on one line:
   neither pushes the other down. The title keeps the button's width free on both sides, so it stays centred, and is a
   little smaller on a narrow phone so the longest one (Arabic Legals) stays on one line down to 360px. */
.panel-head { position: relative; }
.panel-head > .back-row { position: absolute; top: 0; inset-inline-start: 0; width: auto; z-index: 1; }
.panel-head > .back-row + .title { padding-inline: 48px; font-size: clamp(28px, 7.5vw, 40px); text-wrap: balance; }
.tabbar-copy { white-space: nowrap; }

/* W-21i: Support: the game's topics as chips, a message, Send. Only sends: the answer comes in the game. */
.support-signin, .support-sent { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 4px; }
.support-signin p, .support-sent p { margin: 0; }
.support-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #5ae288, #20b256); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
.support-tick svg { width: 30px; height: 30px; }
.support-from { margin: 0; color: var(--muted); font-weight: 700; }
.support-from strong { color: var(--title); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.topic-chip { position: relative; cursor: pointer; }
.topic-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-chip span {
    display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--text);
    background: var(--field); border: 1px solid var(--field-edge);
}
.topic-chip input:checked + span { color: #3b2504; background: linear-gradient(180deg, #ffe08c, #eaad45); border-color: transparent; }
.topic-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--rim-soft); }
.form textarea {
    width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); resize: vertical; min-height: 150px;
    background: var(--field); border: 1px solid var(--field-edge); border-radius: 16px; padding: 12px 14px; outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.form textarea:focus { border-color: var(--rim); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), 0 0 0 3px var(--rim-soft); }
/* AD-137: how many characters of how many, under the box at its end, as the game's counter. */
.field-count { align-self: flex-end; font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.form textarea::placeholder { color: var(--placeholder); font-weight: 600; }

/* W-21i: About: each social page with its name and address. */
.social-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.social-list a {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 1px; padding: 8px 12px; border-radius: 16px; color: var(--text); text-decoration: none;
    background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); box-shadow: var(--glow);
}
.social-list a:hover { filter: brightness(1.12); }
.social-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--hover); }
.social-icon svg { width: 20px; height: 20px; }
.social-name { font-weight: 900; color: var(--title); }
.social-address { color: var(--muted); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-align: start; }
:root[dir="rtl"] .social-address { text-align: end; }

/* AD-137: Support without signing in, the requests under the form and one request's conversation. */
.support-list-head { margin: 22px 0 8px; font-size: 18px; color: var(--title); }
.support-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.support-row {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
    background: var(--field); border: 1px solid var(--field-edge);
}
.support-row:focus-visible { box-shadow: 0 0 0 3px var(--rim-soft); outline: none; }
.support-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-row-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.support-row-when { font-size: 13px; font-weight: 700; }
.support-thread { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.support-thread li { padding: 10px 14px; border-radius: 16px; background: var(--field); border: 1px solid var(--field-edge); }
.support-thread li.support-staff { border-inline-start: 4px solid var(--rim); }
.support-thread p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support .form input[type="email"], .support .form input[type="text"]:not(.pin-slot) { width: 100%; }
/* The topics' caption reads like every other field's label. */
.support .form-field { display: flex; flex-direction: column; gap: 6px; }
.support .form-field > span { font-weight: 800; font-size: 14px; color: var(--muted); }
/* Signing in or proving an email: the sign-in box's look (#signin), a narrow column in the middle of the frame. */
.support-access { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0 4px; }
.support-access > p, .support-access .form > p { margin: 0; }
.support-access .form { width: min(320px, 100%); align-items: stretch; }
.support-access .form label, .support-access .form-field { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.support-access > .btn-block { width: min(320px, 100%); }
.support-access .form input[type="email"] { text-align: center; }
.support-or { display: flex; align-items: center; gap: 12px; width: min(320px, 100%); color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.support-or::before, .support-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.support-access .pin-slots { gap: 8px; }
.support-access input.pin-slot { width: 44px; height: 52px; }
.support-access .link-btn { align-self: center; }
.support-forget { align-items: center; margin-top: 18px; }
/* «< Back to my requests», the game's link over a request's conversation. */
.support-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; color: var(--link); font-weight: 800; font-size: 15px; text-decoration: none; }
.support-back svg { width: 18px; height: 18px; flex: none; }
:root[dir="rtl"] .support-back svg { transform: scaleX(-1); }
.support-back:hover span { text-decoration: underline; text-underline-offset: 2px; }
/* AD-137: pictures with a message: small squares in a row, the add button last, the game's three at most. */
.attach { display: flex; flex-direction: column; gap: 6px; }
.attach-label { font-weight: 800; font-size: 14px; color: var(--muted); }
.attach-row { display: flex; flex-wrap: wrap; gap: 10px; }
.attach-add, .attach-thumb { width: 78px; height: 78px; border-radius: 16px; flex: none; }
.attach-add {
    appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; padding: 6px;
    background: var(--field); border: 1px dashed var(--field-edge);
}
.attach-add[hidden] { display: none; }
.attach-add svg { width: 24px; height: 24px; }
.attach-add:focus-visible { box-shadow: 0 0 0 3px var(--rim-soft); outline: none; }
.attach-thumb { position: relative; overflow: hidden; border: 1px solid var(--field-edge); background: var(--field); }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-remove {
    appearance: none; border: 0; cursor: pointer; position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; padding: 0; font-size: 16px; font-weight: 900; line-height: 1; color: #fff; background: rgba(0, 0, 0, 0.6);
}
.attach-note { margin: 0; }
/* AD-137: a long conversation scrolls in its own box, opened at its newest message (site.js), the composer stays under it. */
.support-thread[data-thread] { max-height: min(52vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; scrollbar-width: thin; }
/* The pictures a message had, small, each opening large. */
.support-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.support-shot { appearance: none; padding: 0; cursor: zoom-in; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--field-edge); background: var(--field); }
.support-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.support-shot:focus-visible { box-shadow: 0 0 0 3px var(--rim-soft); outline: none; }
