/* Totem SMP web: clean black-grey kit for the sub-pages (obchod, účet, podpora, pravidla) and the home page.
   One neutral palette, grey cards with a thin line, a white primary button. The TOTEM logo stays as it is. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@font-face { font-family: 'MC Display'; src: url('/assets/fonts/Monocraft-Bold.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Monocraft'; src: url('/assets/fonts/Monocraft.woff') format('woff'); font-weight: 400; font-display: swap; }
:root {
  --bg: #0b0b0b; --card: #141414; --card2: #1b1b1b; --line: #262626; --line2: #323232;
  --text: #f2f2f2; --muted: #9b9b9b; --dim: #6b6b6b; --soft: #9b9b9b; --mute: #9b9b9b;
  --btn: #e6e6e6; --btn-t: #111; --ok: #4ade80; --red: #f05252;
  --r: 14px; --r-sm: 8px; --ui: Montserrat, system-ui, sans-serif; --mc: 'MC Display', monospace;
  --ink: #f2f2f2; --paper-2: #1b1b1b; --paper-line: #262626; --paper-lip: #262626;
  --violet: #7c5cff; --violet-d: #5b3fd6; --orange: #ff9f1a; --orange-d: #c46f00; --green: #3fcf6b; --green-d: #23964a;
  --blue: #3fa0ff; --blue-d: #1f6fc4; --pink: #f75aa8; --pink-d: #b3306f; --yellow: #ffd84a;
  --out: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.4,.64,1); --gut: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font: 500 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .page { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 5px; background: #1f1f1f; border: 1px solid #2a2a2a; }
:focus-visible { outline: 2px solid #8a8a8a; outline-offset: 2px; }
::selection { background: #3a3a3a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.mid { max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; }
.sp { flex: 1; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(11, 11, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .in { max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.nav .lg img { height: 30px; width: auto; }
.nav nav { display: flex; gap: 4px; flex: 1; }
.nav nav a { padding: 7px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); background: var(--card2); }
.nav .acc { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav .acc:hover { border-color: var(--line2); background: var(--card2); }
.nav .acc img { width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; }
.nav .acc.out { padding: 0 16px; background: var(--btn); color: var(--btn-t); border-color: var(--btn); }
.nav .acc.out img { display: none; }
.burger { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.burger svg { width: 18px; height: 18px; }
.nav.over { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 820px) {
  .nav .in { gap: 12px; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px var(--gut) 16px; background: #0d0d0d; border-bottom: 1px solid var(--line); }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 12px; font-size: 15px; }
  .nav .sp2 { flex: 1; }
  .burger { display: grid; }
  .nav .acc span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 80px; }
.foot .in { max-width: 1120px; margin: 0 auto; padding: 28px var(--gut); display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.foot .in > img { height: 22px; width: auto; opacity: .85; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 14px/1.2 var(--ui); text-align: center; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:hover { border-color: #474747; background: #232323; }
.btn.w, .btn.buy, .btn.primary { background: var(--btn); color: var(--btn-t); border-color: var(--btn); }
.btn.w:hover, .btn.buy:hover, .btn.primary:hover { background: #fff; border-color: #fff; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.red { background: rgba(240, 82, 82, .14); border-color: rgba(240, 82, 82, .45); color: #ffb4b4; }
.btn.d { background: rgba(88, 101, 242, .18); border-color: rgba(88, 101, 242, .45); color: #c9cdfb; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn img { width: 18px; height: 18px; image-rendering: pixelated; }

/* generic pieces */
.h { font: 700 22px/1.2 var(--ui); letter-spacing: -.01em; text-transform: none; text-shadow: none; }
.h .y { color: inherit; }
.lead { color: var(--muted); font-size: 15px; }
.lead b { color: var(--text); }
.sub { color: var(--muted); font-size: 14px; }
.tag, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; text-transform: none; box-shadow: none; }
.tag.pop { background: var(--btn); color: #111; border-color: var(--btn); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .15); flex: none; }
.dot.off { background: #777; box-shadow: none; }
.card, .wp, .glass { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; color: var(--text); box-shadow: none; }
.glass { background: #111; }
.lift { transition: transform .2s var(--out), border-color .2s; }
@media (hover: hover) { .lift:hover { transform: translateY(-3px); border-color: var(--line2); } }
.wp a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 48px 0 16px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; }
.page-h { padding: 44px 0 24px; }
.page-h h1 { font-size: 32px; margin: 10px 0 6px; letter-spacing: -.015em; }

/* forms */
.lbl { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.lbl a, .lbl button { color: var(--muted); font-weight: 500; font-size: 13px; }
.in-f, .field input, .field textarea { width: 100%; height: 44px; padding: 0 14px; background: var(--card2); border: 1px solid var(--line2); border-radius: var(--r-sm); outline: none; transition: border-color .15s; }
.in-f::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.in-f:focus, .field input:focus, .field textarea:focus { border-color: #5a5a5a; }
textarea.in-f, .field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 18px; display: block; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.seg button, .seg a { text-align: center; padding: 8px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid transparent; }
.seg .on, .seg [aria-selected="true"] { background: var(--card2); color: var(--text); border-color: var(--line2); }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; justify-items: center; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile:hover { border-color: var(--line2); background: var(--card2); }
.tile svg { width: 20px; height: 20px; }
.tile.dc { background: #5865f2; border-color: #5865f2; color: #fff; }
.tile.dc:hover { background: #6772f5; }
.err-t { min-height: 1.2em; color: #ff8a8a; font-weight: 600; font-size: 13.5px; }
.ok-t { color: var(--ok); font-weight: 600; font-size: 13.5px; }

/* toast (assets/v3.js) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 10px; background: var(--btn); color: #111; font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transition: opacity .25s, translate .3s var(--out); }
.toast.on { opacity: 1; translate: -50% 0; }
.js .rv { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
