/* ══════════════════════════════════════════════════════════════════════════════════════════════
   Števec taroka · TEK tasarım sistemi = Tarok 124 oyununun DNA'sı (menu.css + table.css bileşenleri).
   Kaynak bileşenler: .screen__title (altın başlık) · .cfg-label · .menu-item / .primary (koyu cam + altın
   kıl çizgi; birincil = parlak kenar + ışıma, DOLGU YOK) · .foot-btn · .seg / .sel · .avatar (altın çift
   halkalı portre) · .plate (isim + puan plakası) · .radelc-pip · .banner.result / .res-row (el sonu sonuç
   kartı) · menu-crest (madalyon menü düğmesi) · table_port2/land2 (keçe masa) · topbar (yaldızlı pano).
   Kabul listesi: docs/STEVEC-UI-CHECKLIST.md. Yasak: düz renk dolgulu buton, renkli kenar şeritli kart,
   altın gradyan DOLGU, em dash, noktayla biten buton, kesilen/kırılan metin, sistem emojisi.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

:root {
  --sc-w: min(calc(100vw - 32px), 460px);
  --gold: #e3b667; --gold-2: #c9974a; --gold-3: #7d5a28; --gold-hi: #f0c96a;
  --gold-line: rgba(210,175,110,.42); --gold-line-hi: rgba(240,201,106,.72); --gold-text: #ecdcb4;
  --cream: #f4eee2; --label: #c9b184; --sub: #cdb98f; --mut: #a39676; --mut-2: #877c68;
  --glass: linear-gradient(180deg, rgba(18,26,21,.66), rgba(9,14,11,.76));
  --glass-solid: linear-gradient(180deg, rgba(20,29,23,.95), rgba(9,14,11,.97));
  --card: linear-gradient(180deg, rgba(23,32,26,.97), rgba(9,14,11,.98));
  --card-flat: #0e1511;
  --sel-bg: rgba(34,28,14,.9);
  --pos: #86cf95; --neg: #ef9f84; --zero: #a39676; --wa: #43dd7c; --danger: #ef9f84;
  --f-d: 'Cinzel', Georgia, serif; --f-s: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.sc { min-height: 100%; }
html.sc-lock, html.sc-lock body { overflow: hidden; } /* odprta pencere: stran (vodnik) pod njo se ne premika */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.sc { background: #0b0f0d; color: var(--cream); font-family: var(--f-s); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
.sc input { -webkit-user-select: text; user-select: text; }
/* sıfır özgüllük: bileşenlerin kendi yazı ailesi (Cinzel / Manrope) her zaman kazanır */
:where(.sc) button { font-family: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }
:where(.sc) a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sc svg { flex: 0 0 auto; display: block; }
.sc :focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ── ekran iskeleti ─────────────────────────────────────────────────────────────────────────── */
.sc-screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 14px); }
.sc-bg { position: absolute; inset: 0; z-index: -2; background: #0b0906 url('/static/img/ui/stevec_table_port.webp') center / cover no-repeat; }
.sc-bg--cover { background-image: url('/static/img/ui/stevec_port.webp'); background-position: center 70%; }
.sc-bg--felt { background: #0a0f0c url('/static/img/ui/table_port2.webp') center / cover no-repeat; }
.sc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,5,3,.35), rgba(6,5,3,.12) 40%, rgba(6,5,3,.5)); }
.sc-shade--cover { background: linear-gradient(180deg, rgba(6,5,3,.6) 0%, rgba(6,5,3,.25) 30%, rgba(6,5,3,0) 48%, rgba(6,5,3,.55) 70%, rgba(6,5,3,.95) 100%); }
/* masa: keçenin ortası açık; alttaki oyma ray ayak düğmelerinin arkasında karanlık bantla kapanır */
.sc-shade--felt { background: linear-gradient(0deg, rgba(4,6,5,.94) 0, rgba(4,6,5,.82) 150px, rgba(4,6,5,0) 240px), radial-gradient(120% 70% at 50% 45%, rgba(0,0,0,0), rgba(0,0,0,.25)); }
@media (min-aspect-ratio: 1/1) {
  .sc-bg { background-image: url('/static/img/ui/stevec_table_land.webp'); }
  .sc-bg--cover { background-image: url('/static/img/ui/stevec_land.webp'); background-position: center; }
  .sc-bg--felt { background-image: url('/static/img/ui/table_land2.webp'); }
  .sc-shade--cover { background: linear-gradient(180deg, rgba(8,6,5,0) 70%, #080605 100%), linear-gradient(90deg, rgba(6,5,3,.9) 0%, rgba(6,5,3,.66) 40%, rgba(6,5,3,.05) 70%, rgba(6,5,3,.2) 100%); }
}
.sc-frame { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1 1 auto; min-height: 0; }

/* üst çubuk: [ikon] [LOGO = başlangıç, kompozisyonun parçası] [ikon] */
.sc-topbar { flex: 0 0 auto; width: var(--sc-w); display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 84px; }
.sc-topbar > :last-child { justify-self: end; }
.sc-logo-link { justify-self: center; display: block; border-radius: 16px; }
.sc-logo-link img { display: block; height: clamp(72px, 11dvh, 92px); width: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.7)); transition: transform .12s ease; }
.sc-logo-link:active img { transform: scale(.96); }
.sc-ib { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #e6cf95;
  background: rgba(11,17,13,.6); border: 1px solid rgba(210,175,110,.38); transition: transform .08s ease, border-color .15s ease; }
.sc-ib:active { transform: scale(.93); border-color: var(--gold-line-hi); }
.sc-ib svg { width: 21px; height: 21px; }
.sc-ib-gap { width: 48px; height: 48px; }
/* oyunun madalyon menü düğmesi (masa ekranında) */
.sc-crest { width: 54px; height: 54px; border-radius: 50%; padding: 0; border: 0; background: url('/static/img/ui/menu-crest.webp') center / cover no-repeat;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.8); transition: transform .1s ease, filter .15s ease; }
.sc-crest:active { transform: scale(.94); filter: brightness(1.1); }

/* başlık bloğu = oyunun .screen__title compact + .screen__sub; logodan belirgin boşluk */
.sc-titles { flex: 0 0 auto; width: var(--sc-w); text-align: center; margin: 18px 0 24px; }
.sc-title { margin: 0; padding-bottom: .1em; font-family: var(--f-d); font-weight: 900; font-size: clamp(26px, 7.6vw, 40px); line-height: 1.12; letter-spacing: 1px; text-wrap: balance;
  color: #eec572; background: linear-gradient(180deg, #fdeeb8, #eec06a 48%, #b7842f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.sc-sub { margin: 8px 0 0; font-family: var(--f-s); font-weight: 600; font-size: clamp(13.5px, 3.7vw, 15.5px); line-height: 1.45; color: var(--sub); text-shadow: 0 2px 10px rgba(0,0,0,.85); text-wrap: balance; }

.sc-body { flex: 1 1 auto; min-height: 0; width: var(--sc-w); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 26px; padding: 2px 0 18px; }
.sc-body::-webkit-scrollbar { display: none; }
.sc-body > * { flex-shrink: 0; }
.sc-body > :only-child { margin-block: auto; }
.sc-body.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); }
.sc-body.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px); mask-image: linear-gradient(to bottom, transparent, #000 18px); }
.sc-body.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - 30px), transparent); } /* tek blok: dikeyde ortada; taşarsa üstten başlar (auto margin kırpmaz) */
.sc-body--tight { gap: 14px; }
.sc-foot { flex: 0 0 auto; width: var(--sc-w); display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
.sc-foot-row { display: flex; justify-content: center; gap: 10px; }

/* bölüm etiketi = oyunun .cfg-label (Cinzel, geniş aralık, ortada) */
.sc-sec { display: flex; flex-direction: column; gap: 12px; }
.sc-label { margin: 0; text-align: center; font-family: var(--f-d); font-weight: 700; font-size: clamp(12px, 3.2vw, 14px); letter-spacing: 3px; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.sc-hint { margin: 0; font-family: var(--f-s); font-size: 12.5px; line-height: 1.5; color: var(--mut); text-align: center; text-wrap: pretty; }
.sc-hint svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; color: var(--gold); }
.sc-hint > span { display: inline; }

/* ── düğmeler: oyunun .menu-item / .primary / .foot-btn ───────────────────────────────────────── */
.sc-mi { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 60px; padding: 0 20px; border-radius: 14px;
  font-family: var(--f-d); font-weight: 700; font-size: clamp(16px, 4.5vw, 21px); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; color: var(--gold-text);
  background: var(--glass); border: 1px solid var(--gold-line); box-shadow: inset 0 1px 0 rgba(255,240,205,.06), 0 8px 22px -12px rgba(0,0,0,.7);
  transition: transform .08s ease, border-color .15s ease, filter .15s ease, opacity .15s ease; }
.sc-mi:active { transform: translateY(1px); border-color: var(--gold-line-hi); filter: brightness(1.15); }
.sc-mi svg { width: 22px; height: 22px; color: var(--gold-hi); }
.sc-mi--primary { height: 64px; color: #f7ecc9; font-size: clamp(17px, 4.8vw, 22px); border-color: var(--gold-line-hi);
  box-shadow: inset 0 0 22px -8px rgba(240,201,106,.5), 0 0 24px -8px rgba(240,201,106,.45), 0 8px 22px -12px rgba(0,0,0,.7); }
/* eksik bilgi varken: soluk ama ölü değil (dokununca eksik yere götürür) */
.sc-mi--primary.is-off { opacity: .5; box-shadow: none; border-color: var(--gold-line); }
.sc-mi--two { flex-direction: column; gap: 3px; line-height: 1.05; }
.sc-mi small { font-family: var(--f-s); font-weight: 600; font-size: 12.5px; letter-spacing: .6px; text-transform: none; opacity: .75; }
/* yıkıcı onay: oyunun kırmızı kıl çizgili buğulu camı (dolgu levha değil) */
.sc-mi--danger { color: #f4d5c8; background: linear-gradient(180deg, rgba(150,48,38,.3), rgba(84,24,18,.36)); border-color: rgba(205,95,72,.62);
  box-shadow: inset 0 0 22px -10px rgba(239,120,90,.45), 0 8px 22px -12px rgba(0,0,0,.7); }
.sc-mi--danger svg { color: #ffb8a4; }
.sc-fb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
  font-family: var(--f-s); font-weight: 700; font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; color: #d8c9a4;
  background: rgba(11,17,13,.58); border: 1px solid rgba(206,168,102,.3); transition: transform .08s ease, border-color .15s ease, filter .15s ease; }
.sc-fb:active { transform: translateY(1px); border-color: var(--gold-line-hi); }
.sc-fb svg { width: 18px; height: 18px; color: var(--gold); }
.sc-fb[aria-disabled="true"] { pointer-events: none; border-color: rgba(206,168,102,.16); }
.sc-fb[aria-disabled="true"] > * { opacity: .36; } /* yalnız içerik söner; düğmenin zemini masada opak kalır */
.sc-fb--grow { flex: 1 1 0; min-width: 0; padding: 0 10px; letter-spacing: .6px; }
.sc-fb--danger { color: var(--danger); border-color: rgba(220,120,90,.45); background: rgba(60,20,14,.4); }
.sc-fb--danger svg { color: var(--danger); }
/* yan yana 3 araç düğmesi: ikon üstte, etiket altta → dar ekranda da tam kelime */
.sc-foot-row--stack .sc-fb { flex-direction: column; gap: 5px; height: 60px; padding: 0 6px; font-size: 11px; letter-spacing: .6px; }
.sc-foot-row--stack .sc-fb span { overflow: visible; }

/* ── seçim: oyunun .seg (çerçeve iç halka ile, kırpılmaz) ─────────────────────────────────── */
.sc-seg { display: flex; width: 100%; border-radius: 14px; overflow: hidden; background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--gold-line), 0 10px 26px -14px rgba(0,0,0,.7); }
.sc-seg-btn { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 8px; border: 0; background: transparent; color: var(--gold-text);
  font-family: var(--f-d); font-weight: 700; font-size: clamp(13px, 3.7vw, 16px); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset -1px 0 0 var(--gold-line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s ease, color .15s ease; }
.sc-seg-btn:last-child { box-shadow: none; }
.sc-seg-btn.sel { color: #f7ecc9; background: rgba(240,201,106,.15); box-shadow: inset 0 0 0 1.5px var(--gold-line-hi); }
.sc-seg-btn:active { background: rgba(240,201,106,.1); }
.sc-seg-btn > span { min-width: 0; }
.sc-seg-btn .sc-av { width: 24px; height: 24px; }
.sc-seg--stack .sc-seg-btn { flex-direction: column; gap: 2px; height: 62px; }
.sc-seg--stack .sc-seg-btn b { font-weight: 900; font-size: 22px; line-height: 1; }
.sc-seg--stack .sc-seg-btn small { font-family: var(--f-s); font-weight: 600; font-size: 11px; letter-spacing: .5px; text-transform: none; opacity: .72; }
/* isimli seçenekler: kesilmez, gerekirse iki satıra kırılır */
.sc-seg--names .sc-seg-btn { height: auto; min-height: 52px; padding: 6px 8px; text-transform: none; font-size: clamp(13px, 3.6vw, 15px); letter-spacing: .2px; white-space: normal; line-height: 1.15; }
.sc-seg--names .sc-seg-btn > span { overflow-wrap: normal; word-break: keep-all; }
.sc-seg--3 .sc-seg-btn { padding: 6px 4px; font-size: clamp(12.5px, 3.5vw, 15px); letter-spacing: 0; }
.sc-seg--3 .sc-seg-btn:first-child { flex: .7 1 0; }
/* 4 isim → 2×2 ızgara */
.sc-seg--grid { display: grid; grid-template-columns: 1fr 1fr; }
.sc-seg--grid .sc-seg-btn { box-shadow: inset -1px -1px 0 var(--gold-line); }
.sc-seg--grid .sc-seg-btn.sel, .sc-seg--wrap .sc-seg-btn.sel { box-shadow: inset 0 0 0 1.5px var(--gold-line-hi); }
.sc-seg--wrap { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
.sc-seg--wrap .sc-seg-btn { grid-column: span 2; box-shadow: inset -1px -1px 0 var(--gold-line); }
.sc-seg--n4 .sc-seg-btn, .sc-seg--n5 .sc-seg-btn:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 360px) {
  .sc-seg--names .sc-seg-btn { padding: 6px 4px; font-size: 12.5px; letter-spacing: 0; }
  .sc-seg--3 .sc-seg-btn { padding: 6px 2px; }
}

/* ── avatar = oyunun altın çift halkalı portresi ─────────────────────────────────────────────── */
.sc-av { position: relative; display: inline-block; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #141f19 center / cover no-repeat;
  box-shadow: 0 0 0 2px #0e1712, 0 0 0 3.5px var(--gold-2), 0 0 0 5px var(--gold-3), 0 6px 14px -6px rgba(0,0,0,.8); }
.sc-av--xs { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px var(--gold-2), 0 0 0 2.5px var(--gold-3); }
.sc-av--sm { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--gold-2), 0 0 0 3.2px var(--gold-3); }
.sc-av--lg { width: 64px; height: 64px; }
.sc-av--xl { width: 76px; height: 76px; box-shadow: 0 0 0 3px #0e1712, 0 0 0 5px var(--gold-2), 0 0 0 7px var(--gold-3), 0 14px 26px -10px rgba(0,0,0,.8); }
.sc-av.is-lead { box-shadow: 0 0 0 3px #0e1712, 0 0 0 5px var(--gold-hi), 0 0 0 7px #a9781f, 0 0 34px rgba(240,201,106,.55), 0 14px 26px -10px rgba(0,0,0,.8); }
.sc-av--sm.is-lead { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 3.2px #a9781f, 0 0 16px rgba(240,201,106,.5); }
.sc-av-badge { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(9,15,12,.95); border: 2px solid var(--gold-hi); color: #f6e3ae; box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.sc-av-badge svg { width: 14px; height: 14px; }
.sc-av-crown { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); width: 24px; height: 18px; color: var(--gold-hi); filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.sc-av-crown svg { width: 24px; height: 18px; }
/* oyunun radelc "krogci" */
.sc-pips { display: inline-flex; align-items: center; gap: 4px; }
.sc-pip { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #f0cd7e; display: inline-block;
  background: radial-gradient(circle at 35% 30%, rgba(255,240,200,.28), rgba(240,201,106,.06) 62%, transparent); box-shadow: 0 0 7px rgba(240,201,106,.5); }
.sc-pip.pop { animation: scPop .55s var(--ease); }
@keyframes scPop { 0% { transform: scale(0); } 70% { transform: scale(1.45); } 100% { transform: scale(1); } }
.sc-pips b { font-family: var(--f-s); font-weight: 800; font-size: 11px; color: #f2d585; }

/* ── panel + satır = oyunun sonuç kartı (.banner.result / .res-row) ──────────────────────────── */
.sc-panel { border-radius: 18px; background: var(--card); border: 1px solid rgba(226,190,120,.4);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,242,206,.08), inset 0 0 44px -22px rgba(240,201,106,.25); overflow: hidden; }
.sc-rows { display: flex; flex-direction: column; gap: 8px; }
.sc-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 9px 14px;
  border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.16); color: inherit; text-align: left; font: inherit; }
button.sc-row:active { background: rgba(240,201,106,.1); border-color: var(--gold-line-hi); }
.sc-row-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #f0cd7e; background: rgba(240,201,106,.08); border: 1px solid rgba(240,201,106,.4); }
.sc-row-ico svg { width: 19px; height: 19px; }
.sc-row-ico--danger { color: var(--danger); background: rgba(239,159,132,.08); border-color: rgba(239,159,132,.45); }
.sc-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-row-t { font-family: var(--f-d); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--cream); }
.sc-row-d { font-family: var(--f-s); font-weight: 600; font-size: 12.5px; line-height: 1.4; color: var(--mut); }
.sc-row--danger .sc-row-t { color: var(--danger); }
.sc-chev { width: 18px; height: 18px; color: var(--label); }
.sc-chev svg { width: 18px; height: 18px; }

/* ── oyuna geçiş plaketi: oyunun keçesi + oyuncular + "Igraj" çipi (kapak, menü, yardım, akşam sonu) ── */
.sc-play { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 88px; padding: 12px 14px 12px 18px;
  border-radius: 18px; overflow: hidden; isolation: isolate; border: 1.5px solid rgba(226,190,120,.62);
  background: linear-gradient(90deg, rgba(5,9,7,.9) 0%, rgba(5,9,7,.62) 55%, rgba(5,9,7,.4) 100%), #0c1a13 url('/static/img/ui/play-felt.webp') center / cover no-repeat;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,242,206,.1), inset 0 0 40px -16px rgba(240,201,106,.3); transition: transform .08s ease, border-color .15s ease, filter .15s ease; }
.sc-play:active { transform: translateY(1px); border-color: var(--gold-hi); filter: brightness(1.1); }
.sc-faces { display: flex; padding-left: 12px; }
.sc-faces .sc-av { width: clamp(34px, 10.5vw, 46px); height: clamp(34px, 10.5vw, 46px); margin-left: -12px; }
.sc-play-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-play-t i { font-style: normal; font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--label); }
.sc-play-t b { font-family: var(--f-d); font-weight: 900; font-size: clamp(19px, 6vw, 26px); line-height: 1.15; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
  color: #f0cd7e; background: linear-gradient(180deg, #fdeeb8, #eec06a 55%, #c38d36); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.sc-play-t > span { font-family: var(--f-s); font-weight: 600; font-size: 12.5px; line-height: 1.35; color: #d4c5a0; }
.sc-play-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold-line-hi); background: rgba(9,14,11,.72); color: var(--gold-hi);
  box-shadow: 0 0 18px -6px rgba(240,201,106,.5); }
.sc-play-go svg { width: 22px; height: 22px; }
.sc-card .sc-play { margin-top: 18px; text-align: left; }
@media (max-width: 360px) {
  .sc-play { gap: 10px; padding: 10px 10px 10px 14px; }
  .sc-faces .sc-av { width: 34px; height: 34px; }
  .sc-faces .sc-av:nth-child(3) { display: none; }
  .sc-play-t b { font-size: 18px; }
  .sc-play-go { width: 40px; height: 40px; }
}

/* ── KAPAK (oyunun açılışından farklı kompozisyon) ───────────────────────────────────────────── */
/* kapak = prvi zaslon (orodje); pod njim v normalnem toku vodnik (SEO). Ostali zasloni ostanejo fiksni sloji. */
.sc-screen.sc-home { position: relative; inset: auto; z-index: auto; display: block; padding: 0; min-height: 100svh; }
.sc-cover { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 12px); }
.sc-down { align-self: center; flex: 0 0 auto; width: 44px; height: 44px; margin-top: 10px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi);
  background: rgba(9,14,11,.72); border: 1px solid var(--gold-line); box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
.sc-down svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .sc-down svg { animation: scNudge 2.4s ease-in-out infinite; } }
@keyframes scNudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(3px); } 90% { transform: translateY(0); } }
.sc-home .sc-topbar { grid-template-columns: auto 1fr auto; min-height: 96px; }
.sc-home .sc-logo-link { justify-self: start; }
.sc-home .sc-logo-link img { height: clamp(84px, 13dvh, 112px); }
.sc-home .splash-lang { justify-self: end; }
.sc-hero { width: var(--sc-w); text-align: center; margin-top: clamp(10px, 3dvh, 40px); }
.sc-hero .sc-title { font-size: clamp(28px, 9vw, 58px); }
.sc-hero .sc-sub { font-size: clamp(15px, 4.2vw, 18px); margin-top: 10px; }
.sc-home-actions { margin-top: auto; width: var(--sc-w); display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.sc-home-links { margin-top: 2px; }
.sc-home .sc-mi--primary { background: var(--glass-solid); }
.sc-fb--wide { width: 100%; height: 50px; }
.sc-noscript { color: #e7d3a3; text-align: center; }

/* dil hapı (oyunun SL|EN seçicisi) */
.splash-lang { --seg-w: 50px; --seg-h: 40px; position: relative; display: flex; gap: 3px; padding: 3px; border-radius: 999px;
  background: rgba(8,12,10,.78); border: 1px solid rgba(210,175,110,.42); box-shadow: 0 8px 22px -12px rgba(0,0,0,.7), 0 0 0 6px rgba(6,5,3,.28); }
.splash-lang__thumb { position: absolute; top: 3px; left: 3px; width: var(--seg-w); height: var(--seg-h); border-radius: 999px;
  background: linear-gradient(180deg, #e7c983, #c9a24e); box-shadow: 0 0 14px -4px rgba(240,201,106,.55), inset 0 1px 0 rgba(255,248,220,.5);
  transition: transform .24s cubic-bezier(.3,.9,.35,1.2); }
.splash-lang.is-en .splash-lang__thumb { transform: translateX(calc(var(--seg-w) + 3px)); }
.splash-lang__opt { position: relative; z-index: 1; display: grid; place-items: center; width: var(--seg-w); height: var(--seg-h); border-radius: 999px;
  font-family: var(--f-s); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; color: rgba(216,201,164,.78); }
.splash-lang:not(.is-en) .splash-lang__opt[data-lang="sl"], .splash-lang.is-en .splash-lang__opt[data-lang="en"] { pointer-events: none; color: #23160a; }
.splash-lang.is-committing { pointer-events: none; }

/* ── NOV VEČER ─────────────────────────────────────────────────────────────────────────────── */
.sc-name { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 68px; padding: 8px 12px 8px 16px; }
.sc-name + .sc-name { border-top: 1px solid rgba(226,190,120,.14); }
.sc-av-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; }
.sc-av-btn .sc-av--lg { width: 52px; height: 52px; }
.sc-av-btn .sc-av-badge { right: -8px; bottom: -6px; width: 22px; height: 22px; }
.sc-av-btn .sc-av-badge svg { width: 11px; height: 11px; }
.sc-name input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; padding: 0 2px;
  font-family: var(--f-d); font-weight: 700; font-size: 19px; letter-spacing: .4px; color: var(--cream); border-bottom: 1px dashed rgba(210,175,110,.3); border-radius: 0; }
.sc-name input:focus { border-bottom: 1px solid var(--gold-hi); }
.sc-name input::placeholder { color: rgba(216,201,164,.34); }
/* prvi deli: seçili olan kendini anlatır ("deli" yazılı hap) */
.sc-deal { width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; color: var(--mut-2);
  border: 1px solid rgba(210,175,110,.3); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.sc-deal svg { width: 20px; height: 20px; }
/* prvi delivec: napis pod imenom izbranega (vse vrstice enako visoke → črte imen poravnane) */
.sc-name-col { display: grid; grid-template-rows: 44px 16px; min-width: 0; }
.sc-name-col input { height: 44px; }
.sc-name-cap { font-family: var(--f-s); font-weight: 800; font-size: 10.5px; line-height: 16px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold-hi); padding-left: 2px; white-space: nowrap; }
.sc-deal.sel { color: #f6e3ae; background: var(--sel-bg); border-color: var(--gold-hi); box-shadow: 0 0 16px -4px rgba(240,201,106,.5); }
/* lastna slika: gumb nad mrežo + obrezovanje v krogu */
.sc-av-up { margin: 2px 0 14px; }
.sc-av-up .sc-hint { margin-top: 8px; }
.sc-crop { position: relative; width: min(260px, 72vw); aspect-ratio: 1; margin: 8px auto 14px; border-radius: 18px; overflow: hidden; background: #0b100d; touch-action: none; }
.sc-crop-cv { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sc-crop-cv:active { cursor: grabbing; }
.sc-crop-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 999px rgba(5,8,6,.64), inset 0 0 0 2px var(--gold-hi), 0 0 24px rgba(240,201,106,.35); }
.sc-range { display: block; width: min(260px, 72vw); margin: 0 auto 4px; height: 32px; accent-color: #e9c26a; }
.sc-avgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px 10px; margin: 6px 0 18px; justify-items: center; }
.sc-avgrid button { padding: 0; border: 0; background: none; border-radius: 50%; position: relative; }
.sc-avgrid .sc-av { width: 58px; height: 58px; }
.sc-avgrid .sel .sc-av { box-shadow: 0 0 0 3px #0e1712, 0 0 0 5px var(--gold-hi), 0 0 22px rgba(240,201,106,.55); }

/* ── PRAVILA + dodatki: kural kartı ───────────────────────────────────────────────────────── */
.sc-rule { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.sc-rule + .sc-rule { border-top: 1px solid rgba(226,190,120,.14); }
.sc-rule-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.sc-rule-name { font-family: var(--f-d); font-weight: 700; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.3; color: var(--cream); min-width: 0; }
.sc-tag { flex: 0 0 auto; font-family: var(--f-s); font-weight: 800; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  color: #d6b675; background: rgba(214,182,117,.14); border: 1px solid rgba(214,182,117,.42); }
.sc-rule-hint { margin: 0; font-family: var(--f-s); font-size: 12.5px; line-height: 1.45; color: var(--mut); }
.sc-q { font-family: var(--f-d); font-weight: 700; font-size: 14px; line-height: 1.35; color: #eadcb6; }
.sc-warn { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-s); font-weight: 700; font-size: 12.5px; line-height: 1.4; color: var(--neg); }
.sc-warn svg { width: 16px; height: 16px; }
.sc-switch { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(210,175,110,.36);
  font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.sc-switch i { position: relative; width: 40px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.09); transition: background .18s; }
.sc-switch i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #8a9394; transition: transform .18s var(--ease), background .18s; }
.sc-switch[aria-checked="true"] { color: #f6e3ae; border-color: var(--gold-line-hi); }
.sc-switch[aria-checked="true"] i { background: linear-gradient(180deg, #3f7d57, #2c5e40); }
.sc-switch[aria-checked="true"] i::after { transform: translateX(14px); background: #f3d488; }
.sc-sublbl { font-family: var(--f-s); font-weight: 800; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mut); }
.sc-sub-box { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.28); }

/* ── VEČER = oyunun masası: keçe üstünde oturan oyuncular ─────────────────────────────────── */
#scBoard { padding-left: 10px; padding-right: 10px; }
#scBoard .sc-topbar { width: min(calc(100vw - 20px), 520px); grid-template-columns: auto 1fr auto; min-height: 76px; }
#scBoard .sc-logo-link { justify-self: start; }
#scBoard .sc-logo-link img { height: clamp(62px, 10dvh, 86px); }
.sc-banner { justify-self: center; position: relative; width: min(58vw, 250px); aspect-ratio: 1700 / 413; background: url('/static/img/ui/topbar.webp') center / contain no-repeat;
  display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.sc-banner span { font-family: var(--f-d); font-weight: 800; font-size: clamp(14px, 4vw, 18px); letter-spacing: 2px; text-transform: uppercase; color: #f6e3ae; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 12px rgba(0,0,0,.6); }
.sc-table { container-type: size; flex: 1 1 auto; min-height: 0; width: min(calc(100vw - 20px), 520px); display: grid; align-content: space-evenly;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr); grid-template-rows: auto auto auto; grid-template-areas: "left top right" "left mid right" "left bottom right";
  align-items: center; justify-items: center; row-gap: clamp(4px, 1.4dvh, 14px); padding: 2px 2px 6px; }
/* 3 igralci: dva v zgornjih kotih, eden spodaj, sredina zgoraj med njima */
.sc-table--3 { grid-template-rows: auto auto; grid-template-areas: "left mid right" "bottom bottom bottom"; row-gap: clamp(14px, 4dvh, 40px); }
.sc-table--3 .sc-seat--left, .sc-table--3 .sc-seat--right { align-self: start; }
.sc-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding-top: 12px; }
/* portre = masanın gerçek yüksekliğinden: üst + orta + alt sütunu (koltuk bloğu 2×, orta levha, aralıklar) kutuya sığar */
.sc-table--4 .sc-seat { --seat: clamp(40px, min(17vw, calc(50cqh - 153px)), 80px); }
.sc-table--3 .sc-seat { --seat: clamp(40px, min(17vw, calc(50cqh - 95px)), 80px); }
.sc-seat .sc-av--xl { width: var(--seat); height: var(--seat); }

.sc-seat--top { grid-area: top; } .sc-seat--left { grid-area: left; } .sc-seat--right { grid-area: right; } .sc-seat--bottom { grid-area: bottom; }
/* oyunun .plate: koyu hap + altın kenar; isim + puan */
.sc-plate { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 92px; max-width: 124px; padding: 5px 12px 6px; border-radius: 18px;
  background: #0d1a14; border: 2px solid var(--gold-2); box-shadow: 0 10px 22px -10px rgba(0,0,0,.7); }
.sc-plate-nm { max-width: 100%; font-family: var(--f-s); font-weight: 700; font-size: 13.5px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-plate-row { display: inline-flex; align-items: center; gap: 7px; }
.sc-plate-sc { font-family: var(--f-s); font-weight: 800; font-size: clamp(19px, 5.4vw, 23px); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-plate-sc.is-neg { color: var(--neg); }
.sc-plate .sc-pips { gap: 3px; }
.sc-plate .sc-pip { width: 10px; height: 10px; border-width: 2px; }
/* delivec: zlata ploščica z napisom na robu portreta */
.sc-deal-pill { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 999px;
  background: rgba(9,15,12,.96); border: 1.5px solid var(--gold-hi); color: #f6e3ae; font-family: var(--f-s); font-weight: 800; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.sc-deal-pill svg { width: 12px; height: 12px; }
.sc-delta { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-family: var(--f-s); font-weight: 800; font-size: 12px; white-space: nowrap; background: rgba(9,15,12,.94); border: 1px solid rgba(226,190,120,.45); animation: scDelta 2.8s var(--ease) forwards; z-index: 2; }
@keyframes scDelta { 0% { opacity: 0; transform: translate(-50%, 8px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { .sc-delta, .sc-pip.pop { animation: none; } }
/* masanın ortası: oyunun plakası gibi koyu levha, keçe üstünde okunur */
.sc-mid { grid-area: mid; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; min-width: 0; max-width: 100%;
  padding: 8px 12px 9px; border-radius: 16px; background: rgba(7,12,9,.78); border: 1px solid rgba(226,190,120,.32); box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }
.sc-mid-l { font-family: var(--f-s); font-weight: 800; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.sc-mid-t { font-family: var(--f-d); font-weight: 800; font-size: 16px; line-height: 1.25; color: #f6e3ae; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.sc-mid-eb { font-family: var(--f-s); font-weight: 800; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #d8c08a; }
.sc-mid-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-family: var(--f-s); font-weight: 700; font-size: 13px; color: var(--cream); white-space: nowrap; }
.sc-mid-who b { font-weight: 800; font-size: 14px; }
.sc-legend-rad { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 2px; font-family: var(--f-s); font-weight: 600; font-size: 12px; line-height: 1.4;
  color: rgba(236,220,180,.86); text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.sc-legend-rad .sc-pip { width: 11px; height: 11px; }
/* kısa masa: plakalar ve orta levha sıkılaşır, portre yine büyük kalır */
@container (max-height: 430px) {
  .sc-seat { gap: 10px; }
  .sc-table--4 .sc-seat { --seat: clamp(40px, min(17vw, calc(50cqh - 130px)), 80px); }
  .sc-table--3 .sc-seat { --seat: clamp(40px, min(17vw, calc(50cqh - 88px)), 80px); }
  .sc-plate { padding: 4px 10px 5px; min-width: 84px; }
  .sc-plate-nm { font-size: 12.5px; } .sc-plate-sc { font-size: 19px; }
  .sc-mid { padding: 6px 10px 7px; gap: 2px; }
  .sc-mid-t { font-size: 14px; } .sc-mid-l { font-size: 9.5px; } .sc-mid-eb { font-size: 9px; } .sc-mid-who { font-size: 12px; }
  .sc-mid .sc-av--xs { width: 20px; height: 20px; }
}
/* zelo nizka masa (npr. 320×568 z opomnikom): še ožje plošče, brez napisa "zadnja roka" */
@container (max-height: 330px) {
  .sc-seat { gap: 8px; padding-top: 10px; }
  .sc-table--4 .sc-seat { --seat: clamp(30px, min(17vw, calc(50cqh - 104px)), 80px); }
  .sc-table--3 .sc-seat { --seat: clamp(30px, min(17vw, calc(50cqh - 72px)), 80px); }
  .sc-plate { padding: 3px 8px 4px; min-width: 76px; }
  .sc-plate-nm { font-size: 11px; } .sc-plate-sc { font-size: 17px; }
  .sc-mid { padding: 5px 8px; } .sc-mid-l { display: none; }
}/* hatırlatma: keçe üstünde plaka gibi ortalanmış hap (tabela şeridi değil) */
.sc-remind { display: flex; align-items: center; gap: 10px; max-width: min(calc(100vw - 40px), 420px); margin: 4px auto; padding: 9px 16px; border-radius: 16px;
  background: rgba(7,12,9,.9); border: 1px solid rgba(240,201,106,.45); font-family: var(--f-s); font-weight: 600; font-size: 12.5px; line-height: 1.4; color: #efe0b8; }
.sc-remind svg { width: 18px; height: 18px; color: var(--gold-hi); }
#scBoard .sc-foot { width: min(calc(100vw - 32px), 460px); }
#scBoard .sc-mi, #scBoard .sc-fb { background: var(--glass-solid); }
#scBoard .sc-hint { color: rgba(236,220,180,.8); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.is-pos { color: var(--pos); } .is-neg { color: var(--neg); } .is-zero { color: var(--zero); }

/* zapisnik (pencere) = oyunun el sonu sonuç kartı satırları */
.sc-sheet-head, .sc-sheet-row { display: grid; align-items: center; gap: 4px; }
.sc-sheet-head { padding: 0 12px 10px; align-items: end; }
.sc-sheet-head > span:first-child { font-family: var(--f-s); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut-2); padding-bottom: 4px; }
.sc-sheet-who { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sc-sheet-who i { max-width: 100%; font-style: normal; font-family: var(--f-s); font-weight: 700; font-size: 11px; line-height: 1.2; color: var(--sub); text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-sheet-rows { display: flex; flex-direction: column; gap: 7px; }
.sc-sheet-row { min-height: 52px; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.14); color: inherit; font: inherit; width: 100%; text-align: center; }
button.sc-sheet-row:active { background: rgba(240,201,106,.1); border-color: var(--gold-line-hi); }
.sc-sheet-row--tot { background: rgba(240,201,106,.1); border-color: rgba(240,201,106,.45); }
.sc-sc { min-width: 0; font-family: var(--f-s); font-weight: 800; font-size: clamp(13.5px, 3.8vw, 16px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-sc.is-decl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sc-sc.is-part { text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sc-sc.sc-tot { color: var(--gold); font-size: clamp(14.5px, 4vw, 17px); }
.sc-sc.sc-tot.is-neg { color: var(--neg); }
.sc-hand { min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.sc-hand i { font-style: normal; font-family: var(--f-s); font-weight: 700; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--mut-2); white-space: nowrap; }
.sc-hand b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-d); font-weight: 700; font-size: 14px; color: var(--cream); white-space: nowrap; }
.sc-hand b .sc-pip { width: 9px; height: 9px; border-width: 2px; }
.sc-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 8px; font-family: var(--f-s); font-weight: 600; font-size: 12px; color: var(--mut); }
.sc-legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sc-legend i { display: inline-block; width: 18px; border-bottom: 2px solid var(--sub); }
.sc-legend i.dotted { border-bottom-style: dotted; }
.sc-legend .sc-pip { width: 10px; height: 10px; border-width: 2px; }

/* ── ROKA (sihirbaz): beğenilen puan ekranının dili ──────────────────────────────────────────── */
#scHand .sc-topbar, #scSheet .sc-topbar { min-height: 70px; }
#scHand .sc-logo-link img, #scSheet .sc-logo-link img { height: clamp(58px, 8.4dvh, 72px); }
.sc-titles--wiz { margin: 10px 0 16px; }
.sc-titles--wiz .sc-title { font-size: clamp(24px, 6.8vw, 32px); }
.sc-titles--wiz .sc-sub { margin-top: 4px; font-size: clamp(13px, 3.5vw, 14.5px); }
.sc-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-crumb { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-s); font-weight: 800; font-size: 12.5px; letter-spacing: .3px; color: #f2e7c8; background: rgba(9,15,12,.72); border: 1px solid rgba(226,190,120,.4); }
.sc-crumb .sc-av { margin-left: -6px; }
.sc-crumb svg { width: 12px; height: 12px; color: var(--label); }
.sc-crumb--x { border-style: dashed; color: var(--sub); }
.sc-crumb--x svg { width: 15px; height: 15px; color: var(--gold); }
.sc-crumb--x.on { border-style: solid; border-color: var(--gold-hi); color: #f7ecc9; background: var(--sel-bg); }
@media (max-width: 360px) { .sc-crumbs { gap: 5px; } .sc-crumb { gap: 5px; padding: 0 10px; font-size: 12px; } }

/* izbirne ploščice (kontrat / izid / igralec) = oyunun menu-item dili, seçili = oyunun .sel */
.sc-tiles { display: grid; gap: 8px; }
.sc-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 80px; padding: 8px 6px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--gold-line); color: var(--gold-text); box-shadow: inset 0 1px 0 rgba(255,240,205,.06), 0 8px 20px -14px rgba(0,0,0,.8);
  transition: transform .06s ease, border-color .12s ease, filter .12s ease; }
.sc-tile:active { transform: scale(.97); }
.sc-tile.sel, .sc-pick.sel, .sc-choice.sel, .sc-cell.sel, .sc-kcell.sel { color: #f7ecc9; background: var(--sel-bg); border-color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold-hi), inset 0 0 22px -8px rgba(240,201,106,.5), 0 0 20px -8px rgba(240,201,106,.45); }
.sc-tile-eb { font-family: var(--f-s); font-weight: 800; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #c3aa78; white-space: nowrap; line-height: 1.3; }
.sc-tile-eb:empty::before { content: '\00a0'; }
.sc-tile-nm { font-family: var(--f-d); font-weight: 800; font-size: clamp(15px, 4.6vw, 20px); letter-spacing: .4px; text-transform: uppercase; line-height: 1.32; white-space: nowrap; }
.sc-tile-gl { font-family: var(--f-s); font-weight: 600; font-size: 11px; color: var(--mut); white-space: nowrap; line-height: 1.25; }
.sc-tile-v { font-family: var(--f-s); font-weight: 800; font-size: 10.5px; color: var(--gold); letter-spacing: .3px; white-space: nowrap; line-height: 1.3; }
.sc-tile--wide { flex-direction: row; gap: 12px; min-height: 60px; }

.sc-pickgrid { display: grid; gap: 12px; }
.sc-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: clamp(124px, 19dvh, 168px); min-width: 0; padding: 12px 8px 10px;
  border-radius: 16px; background: var(--glass); border: 1px solid var(--gold-line); color: var(--gold-text); box-shadow: 0 10px 24px -16px rgba(0,0,0,.9); transition: transform .06s ease, border-color .12s ease, filter .12s ease; }
.sc-pick:active { transform: scale(.98); }
.sc-pick .sc-av--lg { width: clamp(56px, 9dvh, 76px); height: clamp(56px, 9dvh, 76px); }
.sc-pick-nm { max-width: 100%; font-family: var(--f-d); font-weight: 800; font-size: clamp(15px, 4.4vw, 18px); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); }
.sc-pick--wide { grid-column: 1 / -1; height: auto; min-height: 76px; padding: 12px 16px; flex-direction: row; gap: 14px; }
.sc-pick--wide > span:first-child { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(240,201,106,.45); color: var(--gold-hi); }
.sc-pick--wide > span:first-child svg { width: 22px; height: 22px; }
.sc-pick-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; }
.sc-pick--wide small { font-family: var(--f-s); font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--mut); }

/* izid: ek girişler satırı (bonusi · kontra · mond) = küçük menu-item karoları */
.sc-xrow { display: grid; gap: 8px; }
.sc-x { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 56px; padding: 0 6px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--gold-line); color: var(--gold-text); transition: border-color .12s ease, filter .12s ease; }
.sc-x b { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-family: var(--f-d); font-weight: 700; font-size: clamp(11.5px, 3.4vw, 13px); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.sc-x b svg { width: 15px; height: 15px; color: var(--gold); }
.sc-x i { max-width: 100%; font-style: normal; font-family: var(--f-s); font-weight: 700; font-size: 11.5px; color: var(--mut-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-x.on { color: #f7ecc9; background: var(--sel-bg); border-color: var(--gold-hi); box-shadow: inset 0 0 18px -8px rgba(240,201,106,.45); }
.sc-x.on i { color: var(--gold-hi); }
@media (max-width: 360px) { .sc-x b svg { display: none; } }

/* pozitif oyun: iki taraf hücresi */
.sc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 96px; padding: 0 6px; border-radius: 16px;
  background: rgba(8,12,10,.72); border: 1px solid var(--gold-line); color: var(--cream); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.sc-cell-l { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.sc-cell-avs { display: inline-flex; flex: 0 0 auto; }
.sc-cell-avs .sc-av + .sc-av { margin-left: -6px; }
.sc-cell.sel .sc-cell-l { color: var(--gold-hi); }
.sc-cell-n { display: flex; align-items: center; min-height: 40px; font-family: var(--f-d); font-weight: 900; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; color: #f7e6b8; }
.sc-cell:not(.sel) .sc-cell-n { font-size: 30px; color: #b3a585; }
.sc-cell-n.is-empty, .sc-kcell-v.is-empty, .sc-cell:not(.sel) .sc-cell-n.is-empty { color: rgba(179,165,133,.35); }
.sc-cell-st { display: inline-flex; align-items: center; gap: 6px; min-height: 15px; font-family: var(--f-s); font-weight: 800; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.sc-cell-rad { display: inline-flex; align-items: center; gap: 4px; color: #f2d585; }
.sc-cell-rad .sc-pip { width: 9px; height: 9px; border-width: 2px; }
.sc-caret { display: inline-block; width: 2px; height: 30px; margin-left: 4px; background: var(--gold-hi); animation: scBlink 1s steps(1) infinite; }
@keyframes scBlink { 50% { opacity: 0; } }
@media (max-width: 360px) {
  .sc-cell-l { font-size: 10.5px; letter-spacing: .2px; gap: 5px; }
  .sc-cell-avs .sc-av { width: 18px; height: 18px; }
  .sc-cell-avs .sc-av + .sc-av { margin-left: -8px; }
}
/* eksik yere götürme vurgusu */
.pulse { animation: scPulse .7s ease 2; }
.sc-kgrid.pulse { animation: none; }
.sc-kgrid.pulse .sc-kcell { animation: scPulse .7s ease 2; }
@keyframes scPulse { 50% { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 30px -4px rgba(240,201,106,.8); } }

/* negatif / hepsini-al oyunları: iki büyük seçim */
.sc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: auto; }
.sc-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: clamp(120px, 24dvh, 180px); padding: 0 8px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--gold-line); color: var(--gold-text); transition: border-color .12s ease, filter .12s ease; }
.sc-choice svg { width: 30px; height: 30px; color: var(--gold); }
.sc-choice b { font-family: var(--f-d); font-weight: 800; font-size: clamp(14px, 4vw, 16px); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; line-height: 1.3; }
.sc-choice small { font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }

/* klop: her oyuncu kendi hücresi (portre + isim + sayı) */
.sc-kgrid { display: grid; gap: 8px; }
.sc-kgrid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.sc-kgrid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sc-kcell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 100px; min-width: 0; padding: 8px 4px;
  border-radius: 15px; background: rgba(8,12,10,.72); border: 1px solid var(--gold-line); cursor: pointer; }
.sc-kcell-n { max-width: 100%; font-family: var(--f-s); font-weight: 700; font-size: 11.5px; line-height: 1.2; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-kcell.sel .sc-kcell-n { color: var(--gold-hi); }
.sc-kcell-v { display: flex; align-items: center; min-height: 36px; font-family: var(--f-d); font-weight: 900; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: #f7e6b8; }
.sc-kcell-f { position: absolute; right: 7px; top: 6px; font-family: var(--f-s); font-weight: 800; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-hi); }
.sc-rest { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; min-height: 36px; padding: 2px 4px; border-radius: 12px;
  border: 1px dashed rgba(240,201,106,.6); background: rgba(9,14,11,.6); color: var(--gold-hi); line-height: 1.05; }
.sc-rest b { font-family: var(--f-d); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.sc-rest small { font-family: var(--f-s); font-weight: 700; font-size: 10px; letter-spacing: .3px; }
.sc-kflags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sc-kflags > span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-s); font-weight: 700; font-size: 13px; color: var(--sub); }
.sc-flag { min-height: 44px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(210,175,110,.36); color: #c6b690; white-space: nowrap;
  font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.sc-flag.sel { color: #f7ecc9; background: var(--sel-bg); border-color: var(--gold-hi); }
.sc-sum { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-s); font-weight: 800; font-size: 13px; letter-spacing: .5px; color: var(--mut); }
.sc-sum.ok { color: var(--pos); } .sc-sum.bad { color: var(--neg); }
.sc-sum svg { width: 17px; height: 17px; }
.sc-prev--note { justify-content: center; gap: 10px; padding: 8px 14px; text-align: center; font-family: var(--f-s); font-weight: 700; font-size: 13.5px; line-height: 1.35; color: var(--gold-hi); }
.sc-prev--note > span:first-child { flex: 0 0 auto; }
.sc-prev--note svg { width: 18px; height: 18px; }

/* sihirbaz ayağı: [önizleme YA DA eksik bilgi: aynı yuva] [tuş takımı] [Vpiši roko]; yükseklik sayı girilince zıplamaz */
.sc-foot--wiz { gap: 8px; padding-top: 10px; }
.sc-foot--wiz .sc-mi--primary { height: 60px; }
#scHand[data-step^="result"] .sc-body { padding-bottom: 4px; }
.sc-slot { min-height: 56px; border-radius: 14px; }
.sc-slot--wait { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 8px 16px; text-align: center;
  background: rgba(9,14,11,.84); border: 1px dashed rgba(240,201,106,.5); color: var(--sub); font-family: var(--f-s); font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.sc-slot--wait > span:first-child { flex: 0 0 auto; }
.sc-slot--wait svg { width: 20px; height: 20px; color: var(--gold-hi); }
.sc-prev { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: rgba(9,14,11,.88); border: 1px solid rgba(226,190,120,.34); }
.sc-badge { flex: 0 0 auto; height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; font-family: var(--f-s); font-weight: 800; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; border: 1px solid; }
.sc-badge--win { color: var(--pos); background: rgba(134,207,149,.1); border-color: rgba(134,207,149,.45); }
.sc-badge--loss { color: var(--neg); background: rgba(239,159,132,.1); border-color: rgba(239,159,132,.45); }
.sc-badge--rad { color: #f2d585; background: rgba(240,201,106,.08); border-color: rgba(240,201,106,.42); }
.sc-badge--rad .sc-pip { width: 9px; height: 9px; border-width: 2px; }
.sc-pvs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1 1 auto; min-width: 0; }
.sc-pv { display: inline-flex; align-items: center; gap: 5px; }
.sc-pv .sc-av--xs { width: 22px; height: 22px; }
.sc-pv b { font-family: var(--f-s); font-weight: 800; font-size: clamp(14px, 3.9vw, 16px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-why { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid rgba(210,175,110,.4);
  color: #ecd8a6; font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.sc-why svg { width: 16px; height: 16px; }
.sc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-key { height: clamp(38px, 5.6dvh, 56px); padding: 0; border-radius: 14px; border: 1px solid rgba(214,182,117,.24); background: rgba(22,28,23,.9); color: #f5e8c8;
  display: grid; place-items: center; font-family: var(--f-s); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255,240,205,.06), 0 6px 14px -10px rgba(0,0,0,.9); transition: transform .05s ease, background .1s ease; }
.sc-key:active { transform: scale(.95); background: rgba(240,201,106,.2); }
.sc-key--fn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: rgba(12,17,14,.6); border-color: rgba(214,182,117,.14); box-shadow: none; color: #d2bb8a; font-size: 14px; letter-spacing: 1px; }
.sc-key svg { width: 24px; height: 24px; }
.sc-key--fn svg { width: 16px; height: 16px; }
.sc-key--fn > svg { width: 24px; height: 24px; }

/* razlaga */
.sc-brk { display: flex; flex-direction: column; gap: 8px; }
.sc-brk-r { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-s); font-size: 13.5px; color: var(--sub); }
.sc-brk-r b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-brk-r--sub { padding-left: 14px; color: var(--mut); }

/* ── pencere = oyunun diyalog/sonuç kartı ─────────────────────────────────────────────────── */
.sc-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5,8,7,.74); animation: scFade .18s ease; }
@keyframes scFade { from { opacity: 0; } }
.sc-card { position: relative; width: min(100%, 440px); max-height: 88dvh; overflow-y: auto; scrollbar-width: none; padding: 22px 20px 20px; border-radius: 22px;
  background: var(--card); border: 2px solid rgba(226,190,120,.55); text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,242,206,.12), inset 0 0 60px -20px rgba(240,201,106,.3); animation: scRise .22s var(--ease); }
.sc-card::-webkit-scrollbar { display: none; }
@keyframes scRise { from { transform: translateY(14px); opacity: 0; } }
/* başlık satırı X ile aynı hizada, iki yanda X kadar boşluk → ortada kalır, X'e değmez */
.sc-card-x { position: absolute; top: 22px; right: 14px; }
.sc-card-eb { margin: 0 60px 2px; font-family: var(--f-s); font-weight: 800; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #d6b675; }
.sc-card-t { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 60px 16px; font-family: var(--f-d); font-weight: 800; font-size: clamp(18px, 5vw, 24px); line-height: 1.25; color: #f4e8c9; text-wrap: balance; }
.sc-card-eb + .sc-card-t { min-height: 0; margin-top: 4px; }
.sc-card-b { margin: 0 auto 22px; max-width: 34ch; font-family: var(--f-s); font-size: 14px; line-height: 1.55; color: #cfc4ab; text-wrap: pretty; }
.sc-card-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sc-modal--sheet { align-items: flex-end; padding: 0; }
.sc-modal--sheet .sc-card { width: min(100%, 540px); border-radius: 26px 26px 0 0; border-bottom: 0; padding: 26px 16px calc(env(safe-area-inset-bottom) + 18px); animation: scUp .24s var(--ease); }
.sc-modal--sheet .sc-card-x { top: 26px; }
/* uzun pencerede eylemler hep görünür: kartın dibine yapışık */
.sc-modal--sheet .sc-card-acts { position: sticky; bottom: calc(-1 * (env(safe-area-inset-bottom) + 18px)); z-index: 2; margin: 0 -16px calc(-1 * (env(safe-area-inset-bottom) + 18px));
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 18px); background: linear-gradient(180deg, rgba(10,15,12,0), #0b110d 18px); }
@keyframes scUp { from { transform: translateY(40px); opacity: .4; } }
.sc-grab { position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 99px; background: rgba(240,201,106,.3); }
.sc-card .sc-rows + .sc-rows, .sc-card .sc-play + .sc-rows { margin-top: 12px; }
.sc-card .sc-sec + .sc-sec { margin-top: 18px; }

.sc-detail { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; text-align: left; }
.sc-detail-r { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 42px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.14);
  font-family: var(--f-s); font-size: 13.5px; color: var(--mut); }
.sc-detail-r > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sc-detail-r b { font-weight: 800; color: var(--cream); text-align: right; }
.sc-detail-r b.is-pos { color: var(--pos); } .sc-detail-r b.is-neg { color: var(--neg); }

/* roka: plošče igralcev (kaj je kdo zapisal) → dejstva (tanke črte) → razlaga */
.sc-hd-plates { display: grid; gap: 8px; margin: 0 0 14px; }
.sc-hd-p { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 4px 9px; border-radius: 16px; background: #0d1a14; border: 1.5px solid rgba(201,151,74,.45); }
.sc-hd-p.is-side { border-color: var(--gold-2); box-shadow: inset 0 0 18px -8px rgba(240,201,106,.4); }
.sc-hd-p .sc-av { margin-bottom: 4px; }
.sc-hd-pn { max-width: 100%; font-family: var(--f-s); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-hd-pr { max-width: 100%; font-family: var(--f-s); font-weight: 800; font-size: 9.5px; line-height: 1.3; letter-spacing: .8px; text-transform: uppercase; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-hd-pv { font-family: var(--f-s); font-weight: 800; font-size: 18px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sc-hd-body { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; text-align: left; }
.sc-hd-facts { margin: 0; display: flex; flex-direction: column; }
.sc-hd-f { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 42px; padding: 6px 2px; border-bottom: 1px solid rgba(226,190,120,.14); }
.sc-hd-f:last-child { border-bottom: 0; }
.sc-hd-f dt { font-family: var(--f-s); font-weight: 600; font-size: 13.5px; color: var(--mut); }
.sc-hd-f dd { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-s); font-weight: 800; font-size: 13.5px; color: var(--cream); text-align: right; }
.sc-hd-f dd.is-pos { color: var(--pos); } .sc-hd-f dd.is-neg { color: var(--neg); }
.sc-hd-brk { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.14); }
.sc-hd-h { margin: 0 0 8px; font-family: var(--f-s); font-weight: 800; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--label); }
.sc-brk-h { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(226,190,120,.14); font-family: var(--f-s); font-weight: 700; font-size: 12.5px; color: var(--sub); }

.sc-share-pre { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; text-align: left; white-space: pre-wrap; word-break: break-word;
  font-family: var(--f-s); font-size: 13.5px; line-height: 1.55; color: #e9dcb9; background: rgba(0,0,0,.35); border: 1px solid rgba(226,190,120,.2); max-height: 34dvh; overflow-y: auto; }
.sc-tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.sc-stile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 16px; font: inherit; color: #dccca4;
  background: linear-gradient(180deg, rgba(28,34,27,.78), rgba(10,14,11,.82)); border: 1px solid rgba(214,182,117,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 6px 16px rgba(0,0,0,.35);
  transition: transform .06s ease, border-color .12s ease, filter .12s ease; }
.sc-stile:active { transform: scale(.95); }
.sc-stile-i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.sc-stile-i svg { width: 22px; height: 22px; }
.sc-stile b { font-family: var(--f-s); font-weight: 700; font-size: 12px; white-space: nowrap; }
.sc-stile--wa .sc-stile-i { color: var(--wa); border: 1px solid rgba(37,211,102,.45); background: radial-gradient(circle at 50% 32%, rgba(37,211,102,.28), rgba(37,211,102,.08) 64%, rgba(37,211,102,.04)); }
.sc-stile--mail .sc-stile-i { color: #f0cd7e; border: 1px solid rgba(233,197,120,.5); background: radial-gradient(circle at 50% 32%, rgba(240,201,106,.24), rgba(240,201,106,.07) 64%, rgba(240,201,106,.03)); }
.sc-stile--copy .sc-stile-i { color: #cfe0ea; border: 1px solid rgba(190,210,225,.4); background: radial-gradient(circle at 50% 32%, rgba(190,210,225,.2), rgba(190,210,225,.06) 64%, rgba(190,210,225,.03)); }
.sc-stile.copied { border-color: rgba(130,215,150,.6); } .sc-stile.copied b { color: #9fd0a0; }

.sc-howto { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sc-howto li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; align-items: center; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.14);
  font-family: var(--f-s); font-weight: 600; font-size: 14px; line-height: 1.45; color: #d8ccb0; }
.sc-howto li > b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold-hi); color: #f6e3ae; font-family: var(--f-d); font-weight: 900; font-size: 13px; }
.sc-howto li svg { display: inline-block; width: 19px; height: 19px; vertical-align: -4px; color: #8fbcff; margin: 0 2px; }
.sc-howto li span > span { display: inline; }
.sc-howto + .sc-card-acts { margin-top: 18px; }

/* bildirim: ekranın altında, ayak düğmelerinin üstünde; başlığı/logoyu asla örtmez */
.sc-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 158px); z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(9,15,12,.96); border: 1px solid rgba(240,201,106,.55); color: #f6e3ae;
  font-family: var(--f-s); font-weight: 700; font-size: 13.5px; line-height: 1.35; box-shadow: 0 16px 36px -12px rgba(0,0,0,.9); animation: scToast 2.6s var(--ease) forwards; pointer-events: none; }
.sc-toast svg { width: 18px; height: 18px; color: var(--pos); }
.sc-toast--mid { width: max-content; justify-content: center; text-align: center; border-radius: 18px; padding: 10px 14px; }
.sc-sub.sc-sub--status { display: flex; align-items: center; justify-content: center; gap: 8px; color: #f6e3ae; animation: scFade .25s ease; }
.sc-sub--status svg { width: 17px; height: 17px; color: var(--pos); }
@keyframes scToast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ── konec / zgodovina ─────────────────────────────────────────────────────────────────────── */
.sc-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-d); font-weight: 900; font-size: 15px; color: var(--cream); border: 1px solid rgba(226,190,120,.4); }
.sc-row.is-first { background: rgba(240,201,106,.1); border-color: rgba(240,201,106,.5); }
.sc-row.is-first .sc-rank { color: #f6e3ae; border-color: var(--gold-hi); box-shadow: 0 0 14px -4px rgba(240,201,106,.6); }
.sc-row-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-row-num { font-family: var(--f-s); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-row-num.is-pos { color: var(--gold); }
#scFinish .sc-rows { gap: 6px; }
#scFinish .sc-row { min-height: 54px; padding: 7px 14px; }

/* ── fare: her dokunulabilir öğe üzerine gelince yanıt verir ────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .sc-mi:hover, .sc-tile:hover, .sc-pick:hover, .sc-seg-btn:hover, .sc-ib:hover, .sc-fb:hover, .sc-x:hover, .sc-crumb:hover, .sc-stile:hover, .sc-play:hover,
  .sc-choice:hover, .sc-cell:hover, .sc-kcell:hover, .sc-flag:hover, .sc-switch:hover, .sc-why:hover, .sc-deal:hover, .sc-rest:hover, .sc-slot--wait:hover { border-color: var(--gold-line-hi); filter: brightness(1.12); }
  .sc-key:hover, button.sc-row:hover, a.sc-row:hover, button.sc-sheet-row:hover { background-color: rgba(240,201,106,.08); border-color: var(--gold-line-hi); }
  .sc-crest:hover, .sc-logo-link:hover img { filter: brightness(1.1); }
  .sc-body { scrollbar-width: thin; scrollbar-color: rgba(240,201,106,.35) transparent; }
  .sc-body::-webkit-scrollbar { display: block; width: 6px; }
  .sc-body::-webkit-scrollbar-thumb { background: rgba(240,201,106,.35); border-radius: 6px; }
  .sc-card { scrollbar-width: thin; scrollbar-color: rgba(240,201,106,.35) transparent; }
}

/* ── kısa ekranlar ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .sc-why span:last-child { display: none; } .sc-why { width: 44px; padding: 0; justify-content: center; }
  .sc-hd-pr { font-size: 8.5px; letter-spacing: .3px; }
}
/* izid: tuş takımı + önizleme ayakta sabit; üst blok (ekler + hücreler) sığsın diye alt başlık kısa ekranda gizlenir (bağlam: kırıntılar) */
@media (max-height: 780px) {
  #scHand[data-step^="result"] .sc-titles--wiz .sc-sub { display: none; }
  #scHand[data-step^="result"] .sc-titles--wiz { margin: 8px 0 12px; }
  #scHand[data-step^="result"] .sc-crumbs { margin-top: 8px; }
}
@media (max-height: 700px) {
  #scHand[data-step^="result"] .sc-topbar { min-height: 60px; }
  #scHand[data-step^="result"] .sc-logo-link img { height: 52px; }
  #scHand[data-step^="result"] .sc-titles--wiz { margin: 4px 0 10px; }
  #scHand[data-step^="result"] .sc-titles--wiz .sc-title { font-size: 26px; }
  #scHand[data-step^="result"] .sc-crumbs { margin-top: 6px; }
  .sc-cell { height: 84px; padding: 6px; gap: 2px; }
  .sc-cell-avs .sc-av { width: 20px; height: 20px; }
  .sc-cell-n { min-height: 32px; font-size: 30px; }
  .sc-cell:not(.sel) .sc-cell-n { font-size: 24px; }
  .sc-caret { height: 24px; }
  .sc-x { height: 52px; }
  .sc-kcell { min-height: 0; padding: 6px 4px; gap: 3px; }
  .sc-kcell .sc-av--sm { width: 28px; height: 28px; }
  .sc-kcell-v, .sc-kcell .sc-rest { min-height: 32px; }
  .sc-kcell-v { font-size: 24px; }
  #scFinish .sc-play-t > span { display: none; }
  #scFinish .sc-play { min-height: 70px; }
  #scFinish .sc-row { min-height: 48px; padding: 5px 12px; }
}
@media (max-height: 660px) {
  .sc-cell { height: 78px; }
  .sc-cell-n { min-height: 28px; font-size: 28px; }
  .sc-cell:not(.sel) .sc-cell-n { font-size: 22px; }
  .sc-cell-st { min-height: 13px; font-size: 10px; }
  #scFinish .sc-row { min-height: 44px; padding: 4px 12px; }
  #scFinish .sc-rank { width: 30px; height: 30px; }
  .sc-x { height: 48px; }
  .sc-prev { padding: 4px 4px 4px 10px; }
  .sc-why { height: 40px; }
}
@media (max-height: 680px) {
  .sc-titles { margin: 12px 0 18px; }
  .sc-body { gap: 20px; }
  .sc-topbar { min-height: 66px; }
  .sc-logo-link img, #scHand .sc-logo-link img, #scSheet .sc-logo-link img { height: 58px; }
  .sc-home .sc-logo-link img { height: 76px; }
  .sc-mi { height: 56px; } .sc-mi--primary { height: 58px; }
  .sc-slot { min-height: 50px; }
  .sc-foot--wiz .sc-mi--primary { height: 56px; }
}
@media (max-height: 600px) {
  #scHand[data-step^="result"] .sc-titles--wiz .sc-title { font-size: 22px; }
  #scHand[data-step^="result"] .sc-topbar { min-height: 52px; }
  #scHand[data-step^="result"] .sc-logo-link img { height: 46px; }
}

/* ── masaüstü ─────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .sc-screen:not(.sc-home) { --sc-w: min(calc(100vw - 64px), 520px); }
  /* soru + eylem tek grup halinde dikeyde ortada; eylem içeriğin hemen altında */
  .sc-screen:not(#scBoard) .sc-frame { justify-content: center; }
  .sc-screen:not(#scBoard) .sc-frame > .sc-topbar { margin-bottom: auto; }
  .sc-screen:not(#scBoard) .sc-body { flex: 0 1 auto; }
  .sc-screen:not(#scBoard) .sc-foot { margin-bottom: auto; padding-top: 22px; }
  .sc-screen:not(#scBoard) .sc-frame > .sc-body:last-child { margin-bottom: auto; } /* ayaksız ekran da ortada */
  #scHand .sc-logo-link img, #scSheet .sc-logo-link img { height: 88px; }
  .sc-titles--wiz { margin-top: 20px; }
  /* geniş içerik geniş kullanılır: kurallar iki sütun (seçimler hücrenin dibinde hizalı), oyun seçimi tek bakışta, bonuslar iki sütun akışı */
  #scRules { --sc-w: min(calc(100vw - 80px), 940px); }
  #scRules .sc-foot { width: min(calc(100vw - 64px), 460px); }
  #scRules .sc-panel { display: grid; grid-template-columns: 1fr 1fr; }
  #scRules .sc-rule { border-top: 1px solid rgba(226,190,120,.14); }
  #scRules .sc-rule:nth-child(-n+2) { border-top: 0; }
  #scRules .sc-rule:nth-child(odd) { border-right: 1px solid rgba(226,190,120,.14); }
  #scRules .sc-rule > .sc-seg { margin-top: auto; }
  #scRules .sc-rule:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  #scRules .sc-rule:last-child:nth-child(odd) > .sc-seg { max-width: calc(50% - 14px); }
  #scHand[data-step="contract"] { --sc-w: min(calc(100vw - 80px), 900px); }
  #scHand[data-step="contract"] .sc-body { display: grid; grid-template-columns: 3fr 4fr; gap: 20px 28px; }
  #scHand[data-step="contract"] .sc-body > .sc-tiles { grid-column: 1 / -1; }
  #scSheet[data-kind="bonus"] { --sc-w: min(calc(100vw - 80px), 900px); }
  #scSheet[data-kind="bonus"] .sc-panel { display: block; columns: 2; column-gap: 0; column-rule: 1px solid rgba(226,190,120,.14); }
  #scSheet[data-kind="bonus"] .sc-rule { break-inside: avoid; }
  #scSheet[data-kind="bonus"] .sc-foot { width: min(calc(100vw - 64px), 460px); }
  #scSetup { --sc-w: min(calc(100vw - 80px), 940px); }
  #scSetup .sc-body { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
  #scSetup .sc-foot { width: min(calc(100vw - 64px), 460px); }
  .sc-rules-facts { padding: 4px 16px; margin-top: 4px; }
  .sc-rules-facts dd.is-changed { color: var(--gold-hi); }

  /* masa: oyuncular keçenin kenarlarına, masaüstü ölçeğinde; 3 kişide yanlar ortada, alt oyuncu altta (4 kişilikle aynı denge) */
  #scBoard .sc-topbar, .sc-table { width: min(calc(100vw - 80px), 980px); }
  .sc-table { grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: 1fr auto 1fr; align-content: stretch; row-gap: clamp(6px, 1.2dvh, 16px); }
  .sc-table--4 .sc-seat, .sc-table--3 .sc-seat { --seat: clamp(56px, calc(50cqh - 176px), 112px); }
  .sc-table .sc-seat--top { align-self: start; } .sc-table .sc-seat--bottom { align-self: end; }
  .sc-table--3 { grid-template-areas: "left . right" "left mid right" "left bottom right"; }
  .sc-table--3 .sc-seat--left, .sc-table--3 .sc-seat--right { align-self: center; }
  .sc-delta { height: 28px; padding: 0 12px; font-size: 15px; top: -8px; }
  .sc-legend-rad { font-size: 14px; } .sc-legend-rad .sc-pip { width: 13px; height: 13px; }
  .sc-plate { min-width: 124px; max-width: 150px; padding: 7px 16px 8px; }
  .sc-plate-nm { font-size: 16px; } .sc-plate-sc { font-size: 28px; }
  .sc-mid { padding: 12px 20px 13px; gap: 6px; }
  .sc-mid-l { font-size: 12px; } .sc-mid-t { font-size: 20px; } .sc-mid-eb { font-size: 11.5px; } .sc-mid-who { font-size: 15px; }
  .sc-deal-pill { height: 24px; font-size: 11px; bottom: -11px; } .sc-deal-pill svg { width: 14px; height: 14px; }
  /* nizek prenosnik (1280×720, opomnik): srednje velike plošče; portret iz dejanske višine mize */
  @container (max-height: 520px) {
    .sc-table--4 .sc-seat, .sc-table--3 .sc-seat { --seat: clamp(44px, calc(50cqh - 146px), 112px); }
    .sc-seat { gap: 12px; padding-top: 12px; }
    .sc-plate { padding: 5px 12px 6px; min-width: 104px; }
    .sc-plate-nm { font-size: 14px; } .sc-plate-sc { font-size: 22px; }
    .sc-mid { padding: 8px 14px 9px; gap: 3px; }
    .sc-mid-l { display: block; font-size: 10.5px; } .sc-mid-t { font-size: 16px; } .sc-mid-eb { font-size: 10px; } .sc-mid-who { font-size: 13px; }
  }
  .sc-banner { width: 320px; }
  #scBoard .sc-foot { width: min(calc(100vw - 64px), 560px); }

  /* pencereler ortada kart */
  .sc-modal--sheet { align-items: center; padding: 24px; background: rgba(5,8,7,.82); }
  .sc-modal--sheet .sc-card { width: 520px; border-radius: 22px; border-bottom: 2px solid rgba(226,190,120,.55); max-height: 86dvh; padding-bottom: 20px; }
  .sc-modal--sheet .sc-card-acts { bottom: -20px; margin-bottom: -20px; padding-bottom: 20px; }
  .sc-modal--sheet .sc-grab { display: none; }
  .sc-modal--sheet .sc-card--hand { width: 760px; }
  .sc-card--hand .sc-hd-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}
/* nizek prenosnik (≤760 px): manjši logotip v čarovniku, da tipkovnica in celice ostanejo vidne brez drsenja */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 760px) {
  #scHand .sc-logo-link img, #scSheet .sc-logo-link img { height: 64px; }
  #scHand .sc-topbar, #scSheet .sc-topbar { min-height: 64px; }
  .sc-titles--wiz { margin-top: 8px; }
}
/* kapak masaüstünde: sol sütun, dikeyde ortalı grup; logo başlıkla aynı eksende; dil hapı sütunun sağında (mum alevinden uzak) */
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  .sc-home .sc-cover { align-items: flex-start; justify-content: center; padding-left: clamp(40px, 6vw, 120px); }
  .sc-home .sc-topbar, .sc-home .sc-hero, .sc-home .sc-home-actions { width: clamp(400px, 34vw, 460px); }
  .sc-home .sc-topbar { grid-template-columns: 1fr auto 1fr; }
  .sc-home .sc-topbar > span:empty { display: none; }
  .sc-home .sc-logo-link { grid-column: 2; justify-self: center; }
  .sc-home .sc-logo-link img { height: 120px; }
  .sc-home .splash-lang { grid-column: 3; justify-self: end; }
  .sc-home .sc-hero { margin-top: 18px; }
  .sc-home .sc-hero .sc-title { font-size: clamp(40px, 3.6vw, 56px); }
  .sc-home .sc-home-actions { margin-top: 36px; }
  .sc-home .sc-down { align-self: flex-start; margin-left: calc(clamp(400px, 34vw, 460px) / 2 - 22px); margin-top: 24px; } /* pod stolpcem, ne čez sliko */
}

/* ══ VODNIK pod števcem: dolgo branje v jeziku igre (zlati Cinzel naslovi, tabele = kartice rezultata) ══ */
.sc-guide { position: relative; padding: 8px 16px calc(env(safe-area-inset-bottom) + 64px); color: #e3d8bf; -webkit-user-select: text; user-select: text;
  background: linear-gradient(180deg, #080605 0, #0c100d 220px, #0b0f0d 100%); }
.sc-guide__in { max-width: 760px; margin: 0 auto; }
.sc-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 30px 0 6px; }
.sc-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(9,15,12,.72); border: 1px solid rgba(226,190,120,.36);
  font-family: var(--f-s); font-weight: 800; font-size: 12.5px; letter-spacing: .3px; color: #f2e7c8; white-space: nowrap; }
.sc-gsec { padding: 44px 0 4px; scroll-margin-top: 12px; }
.sc-gsec h2 { margin: 0 0 18px; text-align: center; text-wrap: balance; font-family: var(--f-d); font-weight: 800; font-size: clamp(22px, 6.2vw, 31px); line-height: 1.22; letter-spacing: .5px;
  color: #eec572; background: linear-gradient(180deg, #fdeeb8, #eec06a 52%, #b7842f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sc-gsec h3 { margin: 28px 0 12px; text-align: center; font-family: var(--f-d); font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); }
.sc-gsec p { margin: 0 0 14px; font-family: var(--f-s); font-weight: 500; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.sc-gsec b { font-weight: 800; color: #f4e8c9; }
.sc-gsec p a, .sc-glist a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(240,201,106,.45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sc-glist { margin: 0 0 16px; padding-left: 22px; font-family: var(--f-s); font-weight: 500; font-size: 16px; line-height: 1.65; }
.sc-glist li { margin-bottom: 9px; padding-left: 4px; }
.sc-glist li::marker { color: var(--gold); font-weight: 800; }
.sc-gsteps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-gsteps li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(226,190,120,.16); font-family: var(--f-s); font-weight: 600; font-size: 15px; line-height: 1.5; color: #ddd1b5; }
.sc-gsteps li > b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--gold-hi); color: #f6e3ae; font-family: var(--f-d); font-weight: 900; font-size: 14px; }
.sc-shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.sc-shots::-webkit-scrollbar { display: none; }
.sc-shots figure { flex: 0 0 min(64vw, 232px); margin: 0; scroll-snap-align: center; }
.sc-shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1.5px solid rgba(226,190,120,.5); box-shadow: 0 20px 40px -22px rgba(0,0,0,.95); background: #0b0f0d; }
.sc-shots figcaption { margin-top: 9px; text-align: center; font-family: var(--f-s); font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--mut); }
.sc-gtable-wrap { margin: 4px 0 16px; overflow-x: auto; border-radius: 18px; background: var(--card); border: 1px solid rgba(226,190,120,.4);
  box-shadow: 0 24px 50px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,242,206,.07); }
.sc-gtable { width: 100%; border-collapse: collapse; font-family: var(--f-s); font-size: 15px; }
.sc-gtable th, .sc-gtable td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(226,190,120,.13); }
.sc-gtable tr:last-child > * { border-bottom: 0; }
.sc-gtable thead th { font-weight: 800; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--label); background: rgba(255,255,255,.025); white-space: nowrap; }
.sc-gtable tbody th { font-family: var(--f-d); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--cream); }
.sc-gtable small { display: block; margin-top: 2px; font-family: var(--f-s); font-weight: 600; font-size: 12px; line-height: 1.35; color: var(--mut); }
.sc-gtable td { font-weight: 800; font-variant-numeric: tabular-nums; color: #f0e2bd; }
.sc-gtable td small { display: inline; margin: 0 0 0 4px; white-space: nowrap; }
.sc-gsheet th, .sc-gsheet td { text-align: center; }
.sc-gsheet tbody th { text-align: left; font-family: var(--f-s); font-weight: 700; font-size: 13px; color: #e9dcb8; }
.sc-gsheet thead th { vertical-align: bottom; }
.sc-gsheet thead img { display: block; margin: 0 auto 5px; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-2), 0 0 0 3.2px var(--gold-3); }
.sc-gsheet thead th span { letter-spacing: .4px; text-transform: none; font-size: 11.5px; color: var(--sub); }
.sc-gsheet td { white-space: nowrap; font-size: 15px; }
.sc-gsheet td.is-pos { color: var(--pos); } .sc-gsheet td.is-neg { color: var(--neg); } .sc-gsheet td.is-zero { color: var(--mut-2); }
@media (max-width: 380px) { /* ozek telefon: vseh pet stolpcev v kartici, brez vodoravnega drsenja */
  .sc-gsheet th, .sc-gsheet td { padding-left: 6px; padding-right: 6px; }
  .sc-gsheet tbody th { font-size: 12px; }
  .sc-gsheet td { font-size: 14px; }
}
.sc-grules td { font-weight: 700; font-size: 14px; color: #efe1bb; }
.sc-grules .sc-grules__h { margin-top: 4px; font-weight: 500; }
/* telefon: vsako pravilo je svoja kartica (ime + razlaga, spodaj privzeto in druga možnost) → brez vodoravnega drsenja */
@media (max-width: 600px) {
  .sc-grules thead { display: none; }
  .sc-grules tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(226,190,120,.13); }
  .sc-grules tbody tr:last-child { border-bottom: 0; }
  .sc-grules tbody th { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 0; }
  .sc-grules tbody td { padding-top: 6px; border-bottom: 0; }
  .sc-grules tbody td::before { content: attr(data-l); display: block; margin-bottom: 2px; font-weight: 800; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--label); }
}
/* zapisnik večera: v polju tekoči seštevek, pod njim znesek roke in radelc (○ / ⊘) */
.sc-grun td small { display: block; margin: 3px 0 0; font-size: 11.5px; font-weight: 700; color: var(--mut); }
/* razlike med viri: vsako pravilo je kartica (ime čez vso širino, pod njim viri z oznakami) tudi na računalniku —
   pet ozkih stolpcev bi ime pravila zlomilo v stolpec; »Števec« je rahlo obarvan (ton celice, ne črta ob robu) */
.sc-gdiff thead { display: none; }
.sc-gdiff tbody tr { display: grid; grid-template-columns: repeat(4, 1fr) 1.7fr; border-bottom: 1px solid rgba(226,190,120,.13); }
.sc-gdiff tbody tr:last-child { border-bottom: 0; }
.sc-gdiff tbody th { grid-column: 1 / -1; padding-bottom: 2px; border-bottom: 0; }
.sc-gdiff tbody td { padding-top: 6px; border-bottom: 0; }
.sc-gdiff tbody td:not(.is-us) { white-space: nowrap; }
.sc-gdiff tbody td::before { content: attr(data-l); display: block; margin-bottom: 2px; font-weight: 800; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--label); }
.sc-gdiff td.is-us { margin: 0 10px 10px 0; padding: 8px 12px; border-radius: 10px; background: rgba(240,201,106,.07); color: var(--cream); }
@media (max-width: 600px) { .sc-gdiff tbody tr { grid-template-columns: 1fr 1fr; } .sc-gdiff tbody td.is-us { grid-column: 1 / -1; margin: 2px 10px 10px; } }
.sc-faq { display: flex; flex-direction: column; gap: 8px; }
.sc-faq details { border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.18); }
.sc-faq details[open] { border-color: rgba(240,201,106,.45); background: rgba(240,201,106,.05); }
.sc-faq summary { position: relative; list-style: none; cursor: pointer; min-height: 52px; padding: 14px 46px 14px 16px; font-family: var(--f-d); font-weight: 700; font-size: 15.5px; line-height: 1.35; color: var(--cream); }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease; }
.sc-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.sc-faq details p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.65; color: #d8ccb0; }
.sc-gsec--src p { font-size: 14px; line-height: 1.6; color: var(--mut); }
.sc-gmore { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sc-gmore a { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(226,190,120,.18); }
.sc-gmore b { font-family: var(--f-d); font-weight: 700; font-size: 16px; color: var(--cream); }
.sc-gmore span { font-family: var(--f-s); font-weight: 600; font-size: 13px; color: var(--mut); }
.sc-gcta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
/* igra na spletu: prva stvar pod naslovnico (ne na njej) */
.sc-gplay { max-width: 460px; margin: 26px auto 0; }
@media (hover: hover) and (pointer: fine) {
  .sc-toc a:hover, .sc-gmore a:hover, .sc-faq summary:hover, .sc-down:hover { border-color: var(--gold-line-hi); filter: brightness(1.12); }
}
@media (min-width: 900px) {
  .sc-guide { padding-left: 32px; padding-right: 32px; }
  .sc-gsec p, .sc-glist { font-size: 17px; }
  .sc-shots { justify-content: center; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
  .sc-shots figure { flex-basis: 220px; }
  .sc-gmore { grid-template-columns: 1fr 1fr; }
  .sc-gcta { flex-direction: row; align-items: stretch; }
  .sc-gcta > * { flex: 1 1 0; }
  .sc-gcta .sc-mi { height: auto; min-height: 64px; }
}

/* ══ MASA = OYUNUN SAHNESİ (2026-09-27). Ölçüler table.js (applyLayout/fit, renderOpponents/renderMe/renderHud) ve table.css
   (.avatar/.plate/.mechip/.topband) ile BİREBİR, sahne biriminde: --u = px/birim, --stL/--stT = sahnenin sol üstü (scorer.js fitStage).
   Yatay sahne 2752×1536 (≥900 px, en az 6:5), dikey 1536×2752. Kart yok; kartların yerinde sayacın düğmeleri. ══ */
.sc-seat-av { position: relative; display: flex; }
#scBoard[data-stage="land"] { --sw: 2752; --bw: 715.52; --bf: 40; --barh: 173.84; --mx: 1376; --my: 821.8; --fb: 1318; }
#scBoard[data-stage="port"] { --sw: 1536; --bw: 1228.8; --bf: 44; --barh: 298.5; --mx: 768; --my: 1330; --fb: 2412; }
#scBoard[data-stage="land"] .sc-bg--felt { background-image: url('/static/img/ui/table_land2.webp'); background-repeat: no-repeat; }
#scBoard[data-stage="port"] .sc-bg--felt { background-image: url('/static/img/ui/table_port2.webp'); background-repeat: no-repeat; }
#scBoard[data-stage] .sc-shade--felt { background: none; }
#scBoard[data-stage] .sc-topbar, #scBoard[data-stage] .sc-table { display: contents; }
/* başlık bandı = oyunun .topband'ı: sahnenin tepesinde ortada; yazı Cinzel 700, büyük harfe çevrilmez */
#scBoard[data-stage] .sc-banner { position: absolute; z-index: 6; left: calc(var(--stL) + var(--sw) * .5 * var(--u)); top: calc(var(--stT));
  transform: translateX(-50%); width: calc(var(--bw) * var(--u)); filter: none; display: block; }
#scBoard[data-stage] .sc-banner span { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); max-width: 52%; font-family: var(--f-d); font-weight: 700;
  font-size: calc(var(--bf) * var(--u)); letter-spacing: .4px; text-transform: none; color: #f4e7c8; text-shadow: 0 2px 5px rgba(0,0,0,.65); }
/* amblem (menü) ve logo: yatayda bandın iki yanında (menu-x = sahne sol + .675·W), dikeyde bandın altında köşelerde */
#scBoard[data-stage] .sc-crest, #scBoard[data-stage] .sc-logo-link { position: absolute; z-index: 7; }
#scBoard[data-stage="land"] .sc-crest { width: 84px; height: 84px; left: calc(var(--stL) + 1857.6 * var(--u)); top: calc(var(--stT) + 86.92 * var(--u)); transform: translate(-50%, -50%); }
#scBoard[data-stage="land"] .sc-logo-link { left: calc(var(--stL) + 894.4 * var(--u)); top: calc(var(--stT) + 86.92 * var(--u)); transform: translate(-50%, -50%); }
#scBoard[data-stage="land"] .sc-logo-link img { height: clamp(72px, 10vh, 96px); }
#scBoard[data-stage="port"] .sc-crest { width: 56px; height: 56px; right: 9px; top: calc(var(--stT) + 298.5 * var(--u) + 8px); }
#scBoard[data-stage="port"] .sc-logo-link { left: 7px; top: calc(var(--stT) + 298.5 * var(--u) + 6px); }
#scBoard[data-stage="port"] .sc-logo-link img { height: 66px; }
/* koltuklar: oyunun SEAT noktaları (sahne birimi) */
#scBoard[data-stage] .sc-seat { position: absolute; z-index: auto; left: calc(var(--stL) + var(--sx) * var(--u)); top: calc(var(--stT) + var(--sy) * var(--u));
  width: 0; height: 0; padding: 0; gap: 0; display: block; max-width: none; }
#scBoard[data-stage="land"] .sc-seat--top { --sx: 1376; --sy: 398.4; }
#scBoard[data-stage="land"] .sc-seat--left { --sx: 568.5; --sy: 778.5; }
#scBoard[data-stage="land"] .sc-seat--right { --sx: 2183.5; --sy: 778.5; }
#scBoard[data-stage="port"] .sc-seat--top { --sx: 768; --sy: 417; }
#scBoard[data-stage="port"] .sc-seat--left { --sx: 310; --sy: 839; }
#scBoard[data-stage="port"] .sc-seat--right { --sx: 1226; --sy: 839; }
/* portre = oyunun .avatar'ı: 226, içte 4 koyu kenar, altın 5 + bronz 2 halka */
#scBoard[data-stage] .sc-seat > .sc-seat-av { position: absolute; left: calc(-113 * var(--u)); top: calc(-113 * var(--u)); }
#scBoard[data-stage] .sc-seat .sc-av--xl { width: calc(226 * var(--u)); height: calc(226 * var(--u)); box-sizing: border-box; border: calc(4 * var(--u)) solid #0e1712;
  box-shadow: 0 0 0 calc(5 * var(--u)) #c9974a, 0 0 0 calc(7 * var(--u)) #7d5a28, 0 calc(14 * var(--u)) calc(30 * var(--u)) calc(-10 * var(--u)) rgba(0,0,0,.7), inset 0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(255,240,200,.12); }
#scBoard[data-stage] .sc-seat .sc-av--xl.is-lead { box-shadow: 0 0 0 calc(5 * var(--u)) #f0c96a, 0 0 0 calc(8 * var(--u)) #a9781f, 0 0 calc(46 * var(--u)) rgba(240,201,106,.6), 0 calc(14 * var(--u)) calc(30 * var(--u)) calc(-10 * var(--u)) rgba(0,0,0,.7); }
/* isim plakası = oyunun .plate'i: tek satır hap, isim ve puan aynı boy; yatayda portrenin ÜSTÜNDE (25 birim biner), dikeyde ALTINDA */
#scBoard[data-stage] .sc-plate { position: absolute; z-index: 2; left: 0; transform: translateX(calc(-50% + var(--px, 0px))); box-sizing: border-box; height: calc(80 * var(--u)); display: inline-flex; flex-direction: row;
  align-items: center; gap: calc(16 * var(--u)); padding: 0 calc(36 * var(--u)); min-width: 0; max-width: none; white-space: nowrap; background: #0d1a14;
  border: calc(3 * var(--u)) solid #c9974a; border-radius: calc(40 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-10 * var(--u)) rgba(0,0,0,.6); }
#scBoard[data-stage="land"] .sc-plate { top: calc(-168 * var(--u)); }
#scBoard[data-stage="port"] .sc-plate { top: calc(142 * var(--u)); }
#scBoard[data-stage] .sc-plate-nm { font-family: var(--f-s); font-weight: 700; font-size: calc(46 * var(--u)); line-height: 1.5; color: #f4eee2; max-width: calc(260 * var(--u)); }
#scBoard[data-stage="land"] .sc-plate-nm { max-width: calc(440 * var(--u)); } /* sayaçta isim 18 harfe kadar: yatayda yer var, kırpılmasın */
#scBoard[data-stage] .sc-plate-row { gap: calc(22 * var(--u)); }
#scBoard[data-stage] .sc-plate-sc, #scBoard[data-stage] .sc-plate-sc.is-neg { font-family: var(--f-s); font-weight: 800; font-size: calc(46 * var(--u)); line-height: 1.5; color: #e3b667; }
#scBoard[data-stage] .sc-plate .sc-pips { gap: calc(8 * var(--u)); }
#scBoard[data-stage] .sc-plate .sc-pip { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-width: calc(4.5 * var(--u)); border-color: #f0cd7e; }
#scBoard[data-stage] .sc-plate .sc-pips b { font-size: calc(26 * var(--u)); font-weight: 800; color: #f2d585; }
/* sayaçta "ana oyuncu" yok: alt koltuk da diğerleri gibi. Yatayda üst koltuğun aynası (keçenin alt kenarı, plaka dışa = altta);
   dikeyde üst ve alt koltuk arası eşit: yanlar ve orta levha tam ortada (fitStage --yb/--ys, alt şeride göre) */
#scBoard[data-stage="land"] .sc-seat--bottom { --sx: 1376; --sy: 1245.1; }
#scBoard[data-stage="land"] .sc-seat--bottom .sc-plate { top: calc(88 * var(--u)); }
#scBoard[data-stage="land"] .sc-seat--bottom .sc-deal-pill { bottom: auto; top: calc(-25 * var(--u)); }
#scBoard[data-stage="port"] .sc-seat--bottom { --sx: 768; --sy: var(--yb, 1880); }
#scBoard[data-stage="port"] .sc-seat--left, #scBoard[data-stage="port"] .sc-seat--right { --sy: var(--ys, 1148); }
#scBoard[data-stage="port"] { --my: var(--ys, 1148); }
#scBoard[data-stage="port"] .sc-frame { justify-content: flex-end; }
/* dikeyde düğme şeridi ayrı bir bant: eskisi gibi alttan koyulaşan zemin (şerit hiçbir oyuncuya ait görünmez) */
#scBoard[data-stage="port"] .sc-shade--felt { background: linear-gradient(0deg, rgba(4,6,5,.94) 0, rgba(4,6,5,.82) 150px, rgba(4,6,5,0) 240px); }
/* yatay: ortak konsol = orta levha + opomniki + legenda + düğmeler, keçenin ortasında (dört oyuncunun arasında) */
#scBoard[data-stage="land"] .sc-console { position: absolute; z-index: 5; left: calc(var(--stL) + 1376 * var(--u)); top: calc(var(--stT) + 821.8 * var(--u)); transform: translate(-50%, -50%) scale(var(--ck, 1));
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(560px, calc(1100 * var(--u))); }
#scBoard[data-stage="land"] .sc-console .sc-mid { position: static; transform: none; }
#scBoard[data-stage="land"] .sc-console .sc-remind, #scBoard[data-stage="land"] .sc-console .sc-legend-rad { margin: 0; }
#scBoard[data-stage="land"] .sc-console .sc-foot { width: 100%; padding-top: 0; }
@media (max-height: 760px) { #scBoard[data-stage="land"] .sc-console { gap: 8px; } #scBoard[data-stage="land"] .sc-console .sc-mi--primary { height: 56px; } #scBoard[data-stage="land"] .sc-console .sc-foot-row--stack .sc-fb { height: 52px; } }
/* sayaca özgü işaretler (oyunda yok): lider tacı, dağıtıcı, el farkı; hepsi sahne biriminde */
#scBoard[data-stage] .sc-av-crown { width: calc(56 * var(--u)); height: calc(42 * var(--u)); top: calc(-24 * var(--u)); z-index: 3; }
#scBoard[data-stage="land"] .sc-seat:not(.sc-seat--bottom) > .sc-seat-av .sc-av-crown { top: calc(-101 * var(--u)); } /* yatayda plaka portrenin tepesini örter → taç plakanın üstünde */
#scBoard[data-stage] .sc-av-crown svg { width: 100%; height: 100%; }
#scBoard[data-stage] .sc-deal-pill { height: calc(50 * var(--u)); bottom: calc(-25 * var(--u)); gap: calc(8 * var(--u)); padding: 0 calc(20 * var(--u)) 0 calc(16 * var(--u));
  border-width: calc(3 * var(--u)); font-size: calc(24 * var(--u)); letter-spacing: calc(1.5 * var(--u)); }
#scBoard[data-stage] .sc-deal-pill svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
#scBoard[data-stage] .sc-delta { height: calc(56 * var(--u)); padding: 0 calc(22 * var(--u)); font-size: calc(30 * var(--u)); border-width: calc(2 * var(--u)); z-index: 4; }
#scBoard[data-stage="land"] .sc-seat > .sc-delta { top: calc(-238 * var(--u)); }
#scBoard[data-stage="port"] .sc-seat > .sc-delta { top: calc(-183 * var(--u)); }
#scBoard[data-stage="land"] .sc-seat--bottom > .sc-delta { top: calc(-183 * var(--u)); }
/* orta levha: oyunun el/kart alanı (keçenin ortası) */
#scBoard[data-stage] .sc-mid { position: absolute; z-index: 2; left: calc(var(--stL) + var(--mx) * var(--u)); top: calc(var(--stT) + var(--my) * var(--u)); transform: translate(-50%, -50%);
  min-width: calc(300 * var(--u)); max-width: none; gap: calc(8 * var(--u)); padding: calc(24 * var(--u)) calc(44 * var(--u)) calc(26 * var(--u)); border-radius: calc(30 * var(--u)); }
#scBoard[data-stage] .sc-mid-l { display: block; font-size: calc(24 * var(--u)); letter-spacing: calc(3.5 * var(--u)); }
#scBoard[data-stage] .sc-mid-eb { font-size: calc(22 * var(--u)); letter-spacing: calc(2.5 * var(--u)); }
#scBoard[data-stage] .sc-mid-t { font-size: calc(46 * var(--u)); }
#scBoard[data-stage] .sc-mid-who { gap: calc(12 * var(--u)); font-size: calc(30 * var(--u)); margin-top: calc(4 * var(--u)); }
#scBoard[data-stage] .sc-mid-who b { font-size: calc(32 * var(--u)); }
#scBoard[data-stage] .sc-mid-who .sc-av { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }

/* son denetim düzeltmeleri (2026-09-27) */
.sc-safe-probe { position: fixed; top: 0; left: 0; width: 0; height: 0; visibility: hidden; pointer-events: none; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
/* el farkı rozeti hiçbir şeyin altında kalmaz: bant (6) ve konsolun (5) üstünde; üst/alt koltukta plakanın ya da portrenin boş tarafında */
#scBoard[data-stage] .sc-delta { z-index: 8; }
#scBoard[data-stage="port"] .sc-seat--top > .sc-delta { top: calc(232 * var(--u)); }
#scBoard[data-stage="land"] .sc-seat--top > .sc-delta { top: calc(122 * var(--u)); }
#scBoard[data-stage="land"] .sc-seat--bottom > .sc-delta { top: calc(178 * var(--u)); }
/* taç: dikeyde üst koltukta bandın altında kalmasın; yatay alt koltukta dağıtıcı rozeti portrenin yanına (taçla çakışmasın) */
#scBoard[data-stage="port"] .sc-seat--top .sc-av-crown { top: calc(-4 * var(--u)); }
#scBoard[data-stage="land"] .sc-seat--bottom .sc-deal-pill { top: 50%; bottom: auto; left: calc(100% + 10 * var(--u)); transform: translateY(-50%); }
/* sayaca özgü küçük işaretler telefonda okunur kalır (isim/puan plakaları oyunla aynı boyda) */
#scBoard[data-stage] .sc-deal-pill { height: max(calc(50 * var(--u)), 18px); font-size: max(calc(24 * var(--u)), 9px); }
#scBoard[data-stage] .sc-deal-pill svg { width: max(calc(26 * var(--u)), 11px); height: max(calc(26 * var(--u)), 11px); }
#scBoard[data-stage] .sc-delta { height: max(calc(56 * var(--u)), 22px); font-size: max(calc(30 * var(--u)), 12px); }
#scBoard[data-stage] .sc-mid-l { font-size: max(calc(24 * var(--u)), 9.5px); }
#scBoard[data-stage] .sc-mid-eb { font-size: max(calc(22 * var(--u)), 9px); }
#scBoard[data-stage] .sc-mid-t { font-size: max(calc(46 * var(--u)), 15px); }
#scBoard[data-stage] .sc-mid-who { font-size: max(calc(30 * var(--u)), 11px); }
#scBoard[data-stage] .sc-mid-who b { font-size: max(calc(32 * var(--u)), 12px); }
#scBoard[data-stage] .sc-mid-who .sc-av { width: max(calc(56 * var(--u)), 20px); height: max(calc(56 * var(--u)), 20px); }
#scBoard[data-stage] .sc-mid { min-width: max(calc(300 * var(--u)), 96px); padding: max(calc(24 * var(--u)), 7px) max(calc(44 * var(--u)), 12px) max(calc(26 * var(--u)), 8px); }
#scBoard[data-stage] .sc-plate .sc-pip { width: max(calc(26 * var(--u)), 8px); height: max(calc(26 * var(--u)), 8px); border-width: max(calc(4.5 * var(--u)), 1.6px); }
#scBoard[data-stage] .sc-av-crown { width: max(calc(56 * var(--u)), 18px); height: max(calc(42 * var(--u)), 13.5px); }
