@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(manrope-400-latin.woff2) format('woff2'); }

:root { --bg: #0B1220; --side: #0E1626; --card: #16213A; --field: #121B2E; --line: #243352; --text: #F4F6FB; --muted: #9AA6C0; --red: #FF1330; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.sveltekit-root { display: contents; }
button { font: inherit; cursor: pointer; }

/* The test controls: kept small and quiet, so the page looks like the site */
.demo-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 7px 16px; background: #0D1524; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.demo-bar strong { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.demo-bar span { flex: 1 1 320px; }
.demo-bar button { background: none; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.demo-bar button:hover { border-color: var(--muted); }
.demo-bar .switch { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.demo-bar .switch input { accent-color: var(--text); margin: 0; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 38px); }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 26px; }
.logo { padding: 0 8px; }
.logo img { display: block; width: 132px; height: auto; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { position: relative; text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.side nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side nav a.on { background: var(--card); color: var(--text); }
.side .lang { margin-top: auto; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.side .lang:hover { color: var(--text); border-color: var(--muted); }

main { padding: 0 32px 48px; min-width: 0; }
.top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 0; }
.top .who { margin-right: auto; color: var(--muted); font-size: 14px; }
.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 18px; font-weight: 700; }
.ghost:hover { border-color: var(--muted); }
.red { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 800; }
.red:hover { background: #D80F28; }

.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 40px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, #22335A 0%, rgba(34,51,90,0) 55%), linear-gradient(135deg, #16213A 0%, #0F1829 100%); }
.hero .k1 { margin: 0; font-weight: 700; font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.hero .k2 { margin: 8px 0 22px; font-weight: 800; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; }
.hero .small { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.page h1 { font-size: 22px; margin: 34px 0 4px; letter-spacing: -.01em; }
.page > p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.cats li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cats li:first-child { background: var(--card); color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 20%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%); }
.tile b { position: relative; font-size: 14px; font-weight: 700; }
.tile small { position: relative; font-size: 12px; color: var(--muted); margin-top: 2px; }
.t0 { background: linear-gradient(160deg, #23355E, #121B2E); } .t1 { background: linear-gradient(160deg, #2A3350, #11182A); }
.t2 { background: linear-gradient(160deg, #1D3A52, #0F1A29); } .t3 { background: linear-gradient(160deg, #33304F, #14142A); }

.tile { text-decoration: none; }
.tile:hover { border-color: var(--muted); }

/* The demo cashier: opens over the page with ?modal=payment, like the real site's */
.cashier { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cashier .ch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cashier .ch b { font-size: 16px; font-weight: 800; margin-right: auto; }
.cashier .tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.cashier .tabs button { border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 7px; }
.cashier .tabs button.on { background: var(--line); color: var(--text); }
.cashier .x { background: none; color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; }
.cashier .x:hover { border-color: var(--muted); }
.cashier p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer nav a { text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--text); }
footer p { margin: 4px 0; }
footer .age { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--muted); border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--text); margin-right: 8px; vertical-align: middle; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { padding: 0; margin-right: auto; }
  .logo img { width: 112px; }
  .side .lang { margin: 0; padding: 6px 10px; font-size: 13px; }
  .side nav { order: 3; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .side nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  main { padding: 0 16px 40px; }
  .top { padding: 14px 0; }
  .hero { padding: 26px 22px; } .hero .k2 { font-size: 32px; }
  .demo-bar span { display: none; }
}

/* STAND-IN for Upgaming's live chat (upgaming-standin.js): bottom left, clearly labelled */
.nebi-btn { position: fixed; left: 20px; bottom: 20px; z-index: 50; background: #2B2F3A; color: #fff; border: 1px dashed #9AA6C0; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; }
.nebi-panel { position: fixed; left: 20px; bottom: 76px; z-index: 50; width: 340px; max-width: calc(100vw - 40px); background: #F4F6FB; color: #0B1220; border: 2px dashed #56627C; border-radius: 12px; overflow: hidden; font-size: 14px; }
.nebi-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #2B2F3A; color: #fff; }
.nebi-x { background: none; border: 0; color: #fff; font-weight: 700; }
.nebi-log { padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.nebi-note { margin: 0; font-size: 12px; color: #56627C; }
.nebi-sum { background: #fff; border: 1px solid #DDE3EE; border-radius: 8px; padding: 8px 10px; }
.nebi-sum small { color: #56627C; font-weight: 700; }
.nebi-sum p { margin: 4px 0 0; white-space: pre-wrap; }
.nebi-agent { margin: 0; background: #E4E8F0; border-radius: 8px; padding: 8px 10px; }
.nebi-panel input { display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 10px; border: 1px solid #7C88A3; border-radius: 8px; font: inherit; }
