/* miniapp/style.css — the casino's Soft Rainbow look (docs/design/IMAGE_DESIGN_SYSTEM.md):
   a light page of the swatches mixed toward white, two corner blooms and a
   faint dot texture; INK for text, one violet accent, green and raspberry for
   a match and a mismatch only. No boxes: space, CAPS labels and hairlines. */

@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
    /* AIR (page stops) and the blooms: utils/brandTheme.js */
    --air-peach: #FEF0E4; --air-blush: #FFE5E7; --air-orchid: #F8DFF3; --air-lilac: #E6DCF8; --air-periwinkle: #D3E2FA;
    --ink-strong: #2B2750; --ink-soft: #4A4572; --ink-faint: rgba(43, 39, 80, 0.12); --violet: #5B45A8;
    --win: #1B7552; --lose: #B3305C; --warn: #B8741F;
    --bar: linear-gradient(90deg, #E58FCB 0%, #9B7BE6 55%, #6FA3EE 100%);
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* The page background sits on <html> and scrolls with the page: a fixed
   background repaints badly in mobile webviews (Telegram's included). */
html {
    -webkit-text-size-adjust: 100%; min-height: 100%;
    background-color: var(--air-lilac);
    background:
        radial-gradient(rgba(43, 39, 80, 0.045) 1px, transparent 1.2px) 0 0 / 18px 18px,
        radial-gradient(circle at 96% 2%, rgba(144, 219, 244, 0.45) 0%, rgba(144, 219, 244, 0) 38%),
        radial-gradient(circle at 2% 98%, rgba(241, 192, 232, 0.50) 0%, rgba(241, 192, 232, 0) 42%),
        linear-gradient(170deg, var(--air-peach) 0%, var(--air-blush) 22%, var(--air-orchid) 46%, var(--air-lilac) 68%, var(--air-periwinkle) 100%);
}
body {
    margin: 0; min-height: 100vh; color: var(--ink-strong); background: transparent;
    font: 400 17px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

main { max-width: 640px; margin: 0 auto; padding: 20px 20px 48px; }

/* ── The strip: the page's name left, the brand mark right ── */
.strip { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink-faint); }
.strip h1 { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.mark { display: flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; padding-top: 4px; }
.mark img { width: 22px; height: 22px; }

.label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: var(--violet); }

/* ── The verdict: the hero ── */
.verdict { padding: 26px 0 18px; }
.verdict .big { margin: 6px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; }
.verdict .big.ok { color: var(--win); }
.verdict .big.bad { color: var(--lose); }
.verdict .big.plain { color: var(--ink-strong); }
.verdict .outcome { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink-strong); word-break: break-word; }
.verdict .sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.bar { height: 4px; border-radius: 2px; background: var(--bar); margin-top: 18px; opacity: 0.85; }

/* ── Checks: one line each, the mark in the meaning colour ── */
.checks { list-style: none; margin: 14px 0 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 2px solid var(--ink-faint); font-size: 16px; }
.checks li:last-child { border-bottom: 0; }
.checks .tick { flex: none; width: 22px; font-weight: 800; }
.checks .ok .tick { color: var(--win); }
.checks .bad .tick { color: var(--lose); }
.checks .na .tick { color: var(--ink-soft); }

section { padding-top: 26px; }
.details { margin: 10px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 16px; }
.details dt { color: var(--ink-soft); font-weight: 700; }
.details dd { margin: 0; font-weight: 700; white-space: pre-wrap; word-break: break-word; }
.details dd.board { font-family: var(--mono); font-weight: 400; line-height: 1.6; }

details.steps { margin-top: 14px; }
details.steps summary { cursor: pointer; color: var(--violet); font-weight: 800; font-size: 15px; }
details.steps ol { margin: 10px 0 0; padding-left: 20px; font: 400 13.5px/1.55 var(--mono); color: var(--ink-soft); word-break: break-all; }

/* ── The values: editable, so anything can be pasted in ── */
.field { display: block; padding: 12px 0 2px; }
.field span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select {
    width: 100%; margin-top: 4px; padding: 8px 0 7px; border: 0; border-bottom: 2px solid var(--ink-faint);
    background: transparent; color: var(--ink-strong); font: 400 16px/1.4 var(--mono); border-radius: 0;
}
.field select { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--violet); }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

button.go {
    margin-top: 26px; width: 100%; padding: 15px 18px; border: 0; border-radius: 999px;
    background: var(--violet); color: #fff; font: 800 17px 'Inter', system-ui, sans-serif; letter-spacing: 0.2px; cursor: pointer;
}
button.go:active { transform: translateY(1px); }

footer { margin-top: 34px; padding-top: 16px; border-top: 2px solid var(--ink-faint); color: var(--ink-soft); font-size: 14px; }
footer p { margin: 6px 0; }
footer a { color: var(--violet); font-weight: 700; }
.rg { font-size: 13px; }

[hidden] { display: none !important; }
