/* Dapai — tek stil dosyası */
:root {
  --bg: #0b1220; --panel: #152033; --panel2: #24344f; --line: #2c3d5c;
  --ink: #f4f1ea; --muted: #9aa8bf; --accent: #ffd000;
  /* Dapai kart renkleri (iç adlar eski): red=Turuncu, yellow=Pembe, green=Turkuaz, blue=Mor */
  --red: #F79A2E; --yellow: #D93A75; --green: #1BB3BF; --blue: #6C47D9; --navy: #161B2E;
  --b-red: #F79A2E; --b-yellow: #D93A75; --b-green: #1BB3BF; --b-blue: #6C47D9;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: radial-gradient(circle at top, #182744, #070b14 55%) fixed; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button, button:active, button:focus { transform: none; outline: none; }

#app {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 10px) 12px calc(var(--safe-b) + 20px);
}
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 28px; }
h1 { font-size: 1.55rem; margin: 6px 64px 10px 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 8px; }
.sub { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.panel { background: var(--panel); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
label { display: block; font-size: .8rem; color: var(--muted); margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
input, select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #0d1524; color: var(--ink); font-size: 1rem; -webkit-appearance: none; appearance: none;
}
input.big { font-size: 1.8rem; letter-spacing: .3em; text-align: center; font-weight: 900; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.btn { display: block; width: 100%; margin-top: 10px; padding: 14px; border: 0; border-radius: 12px; font-size: 1.05rem; font-weight: 800; }
.btn-main { background: var(--accent); color: #1a1608; }
.btn-ghost { background: var(--panel2); color: var(--ink); }
.btn-danger { background: #4a1d1d; color: #ffd2d2; }
.btn:disabled { opacity: .4; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--panel2); }
.row:last-child { border-bottom: 0; }
.badge { font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--panel2); white-space: nowrap; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-width: 0; padding: 10px 2px; border-radius: 10px; background: #0d1524; border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.seg button.on { background: var(--accent); color: #1a1608; border-color: var(--accent); }
.seg.ro button { pointer-events: none; }
.seg.ro button:not(.on) { opacity: .4; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 42px; height: 38px; border: 0; border-radius: 10px; background: var(--panel2); font-size: 1.3rem; font-weight: 800; padding: 0; }
.stepper b { min-width: 24px; text-align: center; font-size: 1.15rem; }
.err { color: #ff8b8b; min-height: 1.2em; margin-top: 8px; }

/* Sürüm etiketi ve geri butonu */
.ver-tag { position: fixed; left: 14px; bottom: calc(4px + var(--safe-b)); margin: 0; z-index: 80; font-size: 11px; font-weight: 800; color: var(--muted); opacity: .8; pointer-events: none; }
.back-btn { position: fixed; top: calc(var(--safe-t) + 10px); right: 12px; width: 52px; height: 52px; z-index: 200; border: 0; border-radius: 14px;
  background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); padding: 0; }
.back-btn svg { width: 24px; height: 24px; }

/* Bildirim balonu */
#toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 30px); transform: translateX(-50%); z-index: 500; max-width: 88vw;
  background: #3b1515; color: #ffd6d6; border: 1px solid #7a2a2a; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s; text-align: center; }
#toast.show { opacity: 1; }
#toast.info { background: #13233d; color: #d6e6ff; border-color: #2c4a7a; }

/* ---------- Ana ekran ---------- */
.home { justify-content: center; gap: 10px; align-items: center; }
.home > * { width: 100%; max-width: 420px; }
.home .hero { display: flex; justify-content: center; }
.home .hero img { width: min(300px, 74vw, 40vh); height: auto; display: block; }
.home .btn-main { margin-top: 4px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { aspect-ratio: 1 / 1; width: 100%; border: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 1rem; line-height: 1.15; text-align: center; color: #fff; padding: 8px; }
.tile svg { width: 46px; height: 46px; flex-shrink: 0; }
.t-red { background: var(--b-red); } .t-yellow { background: var(--b-yellow); } .t-green { background: var(--b-green); } .t-blue { background: var(--b-blue); }
@media (max-height: 700px) { .tiles { max-width: 340px; margin: 0 auto; } }
@media (max-height: 620px) { .tile svg { width: 34px; height: 34px; } .tile { font-size: .88rem; gap: 4px; } .tiles { max-width: 290px; } }

/* ---------- Lobi ---------- */
.lobby .code-box { text-align: center; padding: 10px; }
.code { font-size: 2.3rem; letter-spacing: .3em; font-weight: 900; color: var(--accent); padding-left: .3em; line-height: 1.1; }
.lobby .players { flex: 1; min-height: 80px; overflow-y: auto; }
.lobby .players .row { padding: 5px 0; }
.p-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.p-name small { color: var(--muted); font-weight: 600; }
.mv { display: flex; gap: 6px; flex-shrink: 0; }
.mv button { width: 38px; height: 30px; border: 0; border-radius: 8px; background: var(--panel2); font-weight: 900; padding: 0; }
.mv button:disabled { opacity: .25; }
.set-grid { display: grid; grid-template-columns: 74px 1fr; gap: 8px 10px; align-items: center; }
.set-grid > span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.set-grid .ro-val { font-weight: 800; }
.lobby .actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.lobby .actions .btn { margin-top: 0; }

/* ---------- Kartlar ---------- */
.ucard { position: relative; width: 66px; height: 100px; border-radius: 10px; border: 3px solid #f3f3f3; flex-shrink: 0; overflow: hidden; color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); --k: #111; }
.ucard.red { background: var(--red); --k: #C2700F; } .ucard.yellow { background: var(--yellow); --k: #B82A5E; }
.ucard.green { background: var(--green); --k: #0E8591; } .ucard.blue { background: var(--blue); --k: #5530C4; }
.ucard.black { background: var(--navy); --k: var(--navy); }
.ucard .sy { position: absolute; width: 11px; height: 11px; color: #fff; display: flex; }
.ucard .sy svg { width: 100%; height: 100%; }
.ucard .tr { top: 5px; right: 5px; } .ucard .bl { bottom: 5px; left: 5px; transform: rotate(180deg); }
.ucard .c { position: absolute; font-weight: 900; font-size: 13px; line-height: 1; display: flex; align-items: center; }
.ucard .c svg { width: 14px; height: 14px; }
.ucard .tl { top: 4px; left: 5px; } .ucard .br { bottom: 4px; right: 5px; transform: rotate(180deg); }
.oval { position: absolute; left: 50%; top: 50%; width: 42px; height: 56px; transform: translate(-50%,-50%); background: #fff; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; }
.oval > * { transform: none; }
.oval .n { font-size: 30px; font-weight: 900; color: var(--k); }
.oval .t { font-size: 19px; font-weight: 900; color: var(--k); letter-spacing: -.5px; }
.oval svg { width: 30px; height: 30px; color: var(--k); }
.oval .stk { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.oval .stk .t { font-size: 14px; }
.oval .stk svg { width: 24px; height: 24px; }
.wheel { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.wheel.sm { width: 22px; height: 22px; }
.wheel i:nth-child(1) { background: var(--red); } .wheel i:nth-child(2) { background: var(--yellow); }
.wheel i:nth-child(3) { background: var(--green); } .wheel i:nth-child(4) { background: var(--blue); }
.fresh-tag { position: absolute; left: 2px; top: 22px; z-index: 3; background: #F5C400; color: #161B2E; font-size: 8px; font-weight: 900; letter-spacing: .2px;
  line-height: 1; padding: 2px 3px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.45); }
.ucard.picked .fresh-tag, .ucard.dragging .fresh-tag, .fly .fresh-tag, .felt .fresh-tag { display: none; }
.hand .ucard.dragging { z-index: 200 !important; transition: none; box-shadow: 0 16px 30px rgba(0,0,0,.6); }
.cback { width: 66px; height: 100px; border-radius: 10px; border: 3px solid #f3f3f3; background: #161B2E url(/card-back.svg) center / cover no-repeat; box-shadow: 0 6px 14px rgba(0,0,0,.4); }

/* Kart rehberi */
.guide { display: flex; gap: 14px; align-items: center; }
.guide b { display: block; margin-bottom: 4px; }
.guide .cnt { color: var(--accent); font-weight: 800; font-size: .85rem; margin-top: 4px; }

/* ---------- Oyun ekranı ---------- */
.game { gap: 6px; }
.topbar { display: flex; align-items: center; gap: 8px; min-height: 28px; position: relative; }
.topbar .tb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 24px; width: auto; pointer-events: none; }
.topbar .sp { flex: 1; }
.clock { min-width: 44px; padding: 2px 8px; border-radius: 9px; border: 2px solid var(--accent); color: var(--accent); font-weight: 900; text-align: center; font-size: 1rem; }
.clock.warn { border-color: #ff4d4d; color: #ffb0b0; background: #3a1010; }
.notice { background: #4a2a12; color: #ffd7a6; border-radius: 12px; padding: 6px 12px; font-size: .88rem; font-weight: 600; line-height: 1.3;
  height: 3.2em; display: flex; align-items: center; overflow: hidden; }
.notice.me { background: #3a2a00; color: #ffe27a; box-shadow: inset 0 0 0 1px #8a6a00; }
.hud { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hud-left { display: grid; grid-template-columns: 62px 62px; gap: 6px; }
.hbtn { width: 62px; height: 56px; border: 0; border-radius: 10px; background: var(--panel2); font-weight: 800; font-size: .85rem; padding: 0; }
.hbtn.sm { height: 30px; font-size: .78rem; }
.hbtn:disabled { opacity: .35; }
.hbtn.yd { background: #161B2E; overflow: hidden; }
.hbtn.yd:not(:disabled) { animation: ydpulse 1s ease-in-out infinite; }
@keyframes ydpulse { 0%, 100% { box-shadow: 0 0 0 2px #F5C400; } 50% { box-shadow: 0 0 0 5px #F5C400, 0 0 16px 4px rgba(245,196,0,.65); } }
.hbtn.yd svg { width: 100%; height: 100%; display: block; }
.hbtn.unread { background: #16a34a; color: #fff; }
.hud-mid { flex: 1; text-align: center; align-self: center; font-size: .78rem; color: var(--muted); }
.pile { width: 62px; text-align: center; }
.pile button { width: 62px; height: 86px; border-radius: 10px; border: 3px solid #f3f3f3; background: #161B2E url(/card-back.svg) center / cover no-repeat; color: #fff; text-shadow: 0 1px 3px #000;
  font-weight: 900; font-size: .8rem; line-height: 1.2; box-shadow: 0 6px 12px rgba(0,0,0,.35); padding: 2px; }
.pile button:disabled { opacity: 1; }
.pile button.go { background: linear-gradient(rgba(22,27,46,.72), rgba(22,27,46,.72)), #161B2E url(/card-back.svg) center / cover no-repeat; animation: pilego 1s ease-in-out infinite; }
.pile button.go.pen { background: linear-gradient(rgba(15,74,107,.82), rgba(31,135,184,.82)), #161B2E url(/card-back.svg) center / cover no-repeat; animation-name: pilepen; }
@keyframes pilego { 0%, 100% { box-shadow: 0 0 0 2px #F5C400; color: #fff; } 50% { box-shadow: 0 0 0 5px #F5C400, 0 0 16px 4px rgba(245,196,0,.6); color: #FFE27A; } }
@keyframes pilepen { 0%, 100% { box-shadow: 0 0 0 2px #7ecbff; color: #fff; } 50% { box-shadow: 0 0 0 5px #7ecbff, 0 0 16px 4px rgba(126,203,255,.6); color: #d6f0ff; } }
.pile small { display: block; margin-top: 3px; font-size: .75rem; font-weight: 700; color: #c9d6ea; }

.table { position: relative; flex: 1; min-height: 170px; }
.felt { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dir { font-size: .9rem; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.dir svg { width: 18px; height: 18px; }
.dir.rev { color: #7ecbff; }
.dir.rev svg { transform: scaleX(-1); }
.colname { font-weight: 900; font-size: .95rem; }
.col-red { color: #FFA45C; } .col-yellow { color: #FF7AA6; } .col-green { color: #3FD0DF; } .col-blue { color: #A68BFF; }
.colname .sy, .colors .sy { display: inline-flex; width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 4px; } .colname .sy svg, .colors .sy svg { width: 100%; height: 100%; }
.seat { position: absolute; width: 76px; transform: translate(-50%,-50%); background: #1a2740; border-radius: 10px; padding: 4px 3px; text-align: center; border: 2px solid transparent; z-index: 7; }
.seat.turn { background: #c9a227; color: #1a1400; border-color: #ffe38a; }
.seat.pen { background: #2a6f8f; color: #e8f6ff; border-color: #7ecbff; }
.seat.off { opacity: .5; }
.seat .nm { font-size: .7rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .bk { display: flex; justify-content: center; height: 20px; margin: 3px 0 2px; }
.seat .bk i { width: 13px; height: 19px; margin-left: -5px; border-radius: 3px; background: #161B2E url(/card-back.svg) center / cover no-repeat; border: 1px solid #fff; }
.seat .bk i:first-child { margin-left: 0; }
.seat .ct { font-size: .64rem; font-weight: 700; }
.seat .ydtag { margin-top: 3px; font-size: .6rem; font-weight: 900; color: #fff; background: #c4122f; border-radius: 6px; padding: 1px 5px; display: inline-block; }

.fly { position: absolute; z-index: 90; pointer-events: none; }
.fly.play { animation: flyplay 1.6s ease forwards; }
.fly.draw { animation: flydraw .8s ease forwards; }
.fly.play.drop { animation: none; will-change: left, top, transform; }
.fly.draw .cback { width: 44px; height: 66px; }
@keyframes flyplay {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%,-50%) rotate(0) scale(.6); opacity: 1; }
  70% { left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(360deg) scale(1); opacity: 1; }
  100% { left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(360deg) scale(1); opacity: 0; }
}
@keyframes flydraw {
  0% { left: 92%; top: -14%; transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { left: var(--sx); top: var(--sy); transform: translate(-50%,-50%) rotate(-180deg) scale(.5); opacity: .2; }
}
.burst { position: absolute; z-index: 95; width: 90px; pointer-events: none; animation: burst 1s ease forwards; }
.burst .seat { position: relative; left: auto; top: auto; transform: none; width: 100%; padding: 8px 4px; }
@keyframes burst {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%,-50%) scale(1); }
  35%, 65% { left: 50%; top: 40%; transform: translate(-50%,-50%) scale(1.8); }
  100% { left: var(--sx); top: var(--sy); transform: translate(-50%,-50%) scale(1); }
}

/* El */
.hand-wrap { position: relative; flex-shrink: 0; touch-action: none; padding-top: 14px; }
.hand { position: relative; margin: 0 auto; transition: transform .25s ease, opacity .25s ease; }
.hand .ucard { position: absolute; transition: top .12s ease; }
.hand .ucard.ok { box-shadow: 0 0 0 3px #ffd000, 0 6px 14px rgba(0,0,0,.4); }
.hand .ucard.dim { filter: brightness(.6); }
.hand .ucard.picked { box-shadow: 0 0 0 3px #fff, 0 12px 24px rgba(0,0,0,.55); }
.hand.stowed { transform: translateY(46px); opacity: .5; }
.hand.stowed .ucard { background: #d8d4c8 !important; border-color: #b8b3a6 !important; box-shadow: none !important; filter: none; }
.hand.stowed .ucard > * { visibility: hidden; }

/* Tam ekran seçim / ceza katmanı */
.overlay { position: fixed; inset: 0; z-index: 300; background: rgba(5,9,18,.96); display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); overflow: hidden; }
.overlay .body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; justify-content: safe center; max-width: 440px; width: 100%; margin: 0 auto; }
.overlay h2 { text-align: center; font-size: 1.25rem; margin: 0; }
.overlay .sub { text-align: center; margin: 0; }
.overlay .play-card { display: flex; justify-content: center; }
.colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.colors button { height: 54px; font-size: .9rem !important; border: 3px solid transparent; border-radius: 14px; color: #fff; font-weight: 900; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.colors button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.targets button { width: 100%; text-align: left; padding: 8px 10px; flex-direction: column; gap: 2px; min-height: 48px; border: 2px solid transparent; border-radius: 12px; background: var(--panel); font-weight: 700; display: flex; justify-content: space-between; }
.targets button.on { border-color: var(--accent); background: #2f2a10; }
.targets .arow { display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-radius: 12px; padding: 4px 8px 5px; }
.targets .arow .p-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.targets .arow .stepper { display: flex; justify-content: space-between; align-items: center; }
.targets .arow .stepper button { width: 38px; height: 32px; font-size: 1.15rem; }
.targets .arow .stepper b { font-size: 1.05rem; }
.targets button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.targets button span + span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.overlay .foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; max-width: 440px; width: 100%; margin: 0 auto; }
.overlay .foot .btn { margin: 0; }

/* Skor */
.score-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.score-table th { color: var(--muted); font-weight: 700; font-size: .72rem; line-height: 1.15; text-align: right; padding: 6px 3px; vertical-align: bottom; }
.score-table th:first-child, .score-table td:first-child { text-align: left; }
.score-table td { padding: 8px 3px; border-top: 1px solid var(--panel2); text-align: right; font-weight: 700; }
.score-table td:first-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-table tr.me td { color: var(--accent); }
.score-table .ok { color: #4ade80; font-size: .8rem; }
.lamp { text-align: center; padding: 9px; margin-bottom: 10px; border-radius: 10px; font-weight: 800; background: #152033; border: 2px solid #3d5a80; }
.lamp.mine { background: #3a2a00; border-color: var(--accent); }
.win-title { text-align: center; font-size: 1.7rem; font-weight: 900; color: var(--accent); margin: 6px 0 4px; }

/* Mesajlar */
.chat-box { flex: 1; min-height: 0; overflow-y: auto; background: #0b1220; border-radius: 12px; padding: 10px; margin-bottom: 8px; -webkit-user-select: text; user-select: text; }
.chat-box div { margin: 6px 0; line-height: 1.35; overflow-wrap: anywhere; }
.chat-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-in .btn { margin: 0; width: auto; padding: 0 18px; }

/* Açılış logosu */
#splash { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: #0b1220; }
#splash.out { animation: fade .35s ease forwards; }
#splash .lg { width: min(300px, 76vw); height: auto; transform: scale(.6); opacity: 0; animation: pop .45s ease .25s forwards; }
@keyframes pop { to { transform: scale(1); opacity: 1; } }
@keyframes fade { to { opacity: 0; visibility: hidden; } }

/* Yudoba logosu (ayar ve bilgi ekranları, sağ alt) */
.yd-brand { position: fixed; right: 14px; bottom: calc(8px + var(--safe-b)); width: 92px; height: auto; z-index: 80; pointer-events: none; opacity: .95; }
#app.branded { padding-bottom: calc(var(--safe-b) + 44px); }
#app.branded .scroll { padding-bottom: 40px; }
#app.branded .ver-tag { bottom: calc(14px + var(--safe-b)); }

/* Görsel kurallar */
.rule { background: var(--panel); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.rule .rh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rule h2 { margin: 0; font-size: 1.1rem; }
.rn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #1a1608; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.rule .sub { margin: 10px 0 0; }
.rule .sub b { color: var(--ink); }
.mini { position: relative; display: inline-block; width: 36px; height: 55px; flex-shrink: 0; vertical-align: middle; }
.mini > .ucard { position: absolute; left: 0; top: 0; transform: scale(.55); transform-origin: top left; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.mini.no > .ucard { filter: grayscale(.6) brightness(.6); }
.mk { position: absolute; right: -6px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; z-index: 5; border: 2px solid var(--panel); }
.mk.ok { background: #22c55e; color: #fff; } .mk.no { background: #ef4444; color: #fff; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fan { display: flex; } .fan .mini { margin-right: -12px; } .fan .mini:last-child { margin-right: 0; }
.ar { color: var(--accent); font-weight: 900; font-size: 1.2rem; }
.or { color: var(--muted); font-size: .8rem; font-weight: 700; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--panel2); font-weight: 800; font-size: .85rem; }
.pill.ok { background: #14532d; color: #bbf7d0; } .pill.pen { background: #0f4a6b; color: #cdeeff; }
.split { display: flex; flex-direction: column; gap: 6px; }
.split > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cap { font-size: .75rem; color: var(--muted); font-weight: 700; }
.match { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.match .top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-right: 14px; border-right: 2px dashed var(--panel2); width: 76px; text-align: center; }
.match .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; }
.match .opts > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ydb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: inline-block; box-shadow: 0 0 0 2px #F5C400; }
.ydb svg { width: 100%; height: 100%; display: block; }
.pts { display: flex; flex-direction: column; gap: 8px; }
.pr { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; background: #0f192b; border-radius: 12px; padding: 8px 10px; }
.pv { font-size: 1.4rem; font-weight: 900; color: var(--accent); text-align: center; }
.pr.win .pv { color: #4ade80; }
.pc { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.ls { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.ls li { margin-bottom: 6px; } .ls b { color: var(--ink); }
.choice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #0f192b; border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.choice .cap { flex: 1; min-width: 140px; }
.cl { width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); font-weight: 900; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; }

/* Nasıl kullanılır görselleri */
.mock { background: #0f192b; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.mock.wide { width: 100%; }
.mf { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.mv { color: var(--ink); background: #0b1220; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.mseg { display: flex; gap: 3px; } .mseg i { flex: 1; font-style: normal; text-align: center; font-size: .72rem; font-weight: 800; border: 1px solid var(--line); border-radius: 5px; padding: 2px 0; }
.mseg i.on { background: var(--accent); color: #1a1608; border-color: var(--accent); }
.bigcode { font-size: 1.9rem; font-weight: 900; letter-spacing: .2em; color: var(--accent); background: #0f192b; border-radius: 12px; padding: 6px 12px; }
.codebox { display: flex; gap: 5px; } .codebox i { width: 34px; height: 42px; border-radius: 8px; background: #0b1220; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.2rem; }
.pill.bad { background: #4a1d1d; color: #ffd2d2; }
.pill.ic { width: 34px; height: 30px; padding: 0; display: inline-grid; place-items: center; font-size: 1.1rem; }
.pill.ic svg { width: 18px; height: 18px; }
.srow { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; padding: 3px 0; border-bottom: 1px solid var(--panel2); }
.srow small { color: var(--muted); } .srow .arw { color: var(--muted); font-size: .75rem; } .srow.bot { color: var(--muted); }
.steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.steps > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 84px; }
.lift .mini { transform: translateY(-8px); } .lift .mini .ucard { box-shadow: 0 0 0 3px #fff, 0 8px 14px rgba(0,0,0,.5); }
.tocenter { display: inline-block; transform: rotate(-14deg); opacity: .85; }
.pilecard { width: 46px; height: 62px; border-radius: 8px; border: 2px solid #f3f3f3; background: linear-gradient(160deg, #7a1020, #c4122f); color: #fff; font-weight: 900; font-size: .62rem; line-height: 1.15; display: grid; place-items: center; text-align: center; flex-shrink: 0; }
.pilecard.pen { background: linear-gradient(160deg, #0f4a6b, #1f87b8); }
.fan.hid .ucard { background: #d8d4c8 !important; border-color: #b8b3a6 !important; }
.fan.hid .ucard > * { visibility: hidden; }
.fan.hid { opacity: .7; transform: translateY(8px); }
.swipe { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.seatmini { display: inline-flex; flex-direction: column; align-items: center; background: #c9a227; color: #1a1400; border-radius: 8px; padding: 4px 8px; font-size: .72rem; }
.seatmini i { font-style: normal; font-weight: 900; font-size: .6rem; color: #fff; background: #c4122f; border-radius: 5px; padding: 0 5px; margin-top: 2px; }
.hb { display: inline-block; padding: 6px 12px; border-radius: 9px; background: var(--panel2); font-weight: 800; font-size: .8rem; }
.hb.new { background: #16a34a; color: #fff; }
.add { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.add > div { background: #0f192b; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 400px) { .add { grid-template-columns: minmax(0,1fr); } }
.frame .mini .ucard { box-shadow: 0 0 0 4px #ffd000, 0 3px 8px rgba(0,0,0,.35); }
.steps { flex-wrap: nowrap; gap: 4px; }
.steps > div { max-width: 70px; flex: 1; }
.steps .ar { font-size: 1rem; }
.steps.loose > div { max-width: none; flex: 0 0 auto; } .steps.loose { gap: 10px; }

/* Seçim ekranında kendi elin */
.ov-hand { max-width: 440px; width: 100%; margin: 6px auto 10px; }
.ov-hand .sub { font-size: .85rem; margin-bottom: 6px !important; }
.ov-hand .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-height: 158px; overflow-y: auto; }
.ov-hand .mini { width: 46px; height: 70px; }
.ov-hand .mini > .ucard { transform: scale(.7); }

/* Seçim ekranı başlığı: küçük kart + ad */
.ov-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ov-head .mini { width: 40px; height: 60px; } .ov-head .mini > .ucard { transform: scale(.6); }
.ov-hand .row { flex-wrap: nowrap !important; gap: 0 !important; overflow: visible !important; max-height: none !important; }
.ov-hand .ovc { display: inline-block; flex-shrink: 0; }

/* Tur sonu: elde kalan kartlar */
.left-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.left-cards > .sub { text-align: left; margin: 0; }
.lc-row { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--panel2); }
.lc-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lc-name small { color: var(--muted); font-weight: 700; }
.lc-cards { display: flex; flex-wrap: wrap; gap: 4px; }

/* Kısa ekranlar (iPhone SE gibi): seçim ekranı kaydırmasız sığsın */
@media (max-height: 720px) {
  .overlay { padding-top: calc(var(--safe-t) + 10px); padding-bottom: calc(var(--safe-b) + 10px); }
  .overlay .body { gap: 7px; }
  .overlay h2 { font-size: 1.1rem; }
  .colors button { height: 44px; }
  .targets { gap: 5px; }
  .targets button { min-height: 42px; padding: 6px 10px; }
  .targets .arow .stepper button { height: 28px; }
  .ov-hand { margin: 4px auto 8px; }
  .ov-hand .mini { width: 40px; height: 60px; } .ov-hand .mini > .ucard { transform: scale(.6); }
}

/* ---------- Uygulamalı eğitim (V94) ---------- */
.btn-tut { background: #161B2E; color: #fff; border: 2px solid #F5C400; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.btn-tut small { font-size: .78rem; font-weight: 600; color: #f4e27a; }
.btn-tut .new { position: absolute; top: -9px; right: 12px; background: #F5C400; color: #161B2E; font-size: .7rem; font-weight: 900; padding: 2px 7px; border-radius: 8px; }
.page > .btn-tut { margin-bottom: 12px; }
.coach { position: relative; background: #fff8d6; color: #1a1608; border-radius: 14px; padding: 10px 12px; font-size: .9rem; line-height: 1.35;
  box-shadow: 0 0 0 2px #F5C400, 0 6px 18px rgba(0,0,0,.35); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; z-index: 30; }
.coach-tx { flex: 1 1 200px; font-weight: 600; padding-right: 30px; }
.coach-tx small { display: block; font-weight: 500; opacity: .75; margin-top: 2px; }
.coach.wait { background: #e9eef8; box-shadow: 0 0 0 2px #9fb3d9; }
.coach-btn { background: #161B2E; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: .9rem; }
.coach-btn.ghost { background: transparent; color: #161B2E; box-shadow: inset 0 0 0 2px #161B2E; }
.coach-end { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.coach-x { position: absolute; top: 6px; right: 6px; background: transparent; border: 0; color: #6b5a1a; font-size: .75rem; font-weight: 800; padding: 4px; }
.tut-hl { animation: tuthl 1s ease-in-out infinite; position: relative; z-index: 20; }
@keyframes tuthl { 0%,100% { box-shadow: 0 0 0 3px #F5C400, 0 0 14px 4px rgba(245,196,0,.65); } 50% { box-shadow: 0 0 0 5px #fff3a0, 0 0 22px 8px rgba(245,196,0,.9); } }
.hand .ucard.tut-hl { transform: translateY(-10px); }

/* ---------- Yeni kartlar (V96) ---------- */
.newb { display: inline-block; background: #F5C400; color: #161B2E; font-size: .62rem; font-weight: 900; padding: 1px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; }
.bomb-tag { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; padding: 2px 8px 2px 5px; border-radius: 10px; background: #3a1414; color: #ffb4a0; font-weight: 900; font-size: .9rem; animation: bombt 1s ease-in-out infinite; }
.bomb-tag svg { width: 18px; height: 18px; }
@keyframes bombt { 0%,100% { box-shadow: 0 0 0 1px #ff6b4a; } 50% { box-shadow: 0 0 0 3px #ff6b4a, 0 0 12px 2px rgba(255,107,74,.6); } }
.ov-hand.gift .ovc.gsel { background: none; border: 0; padding: 0; position: relative; transition: transform .12s; }
.ov-hand.gift .ovc.gsel.on { transform: translateY(-12px); z-index: 5; }
.ov-hand.gift .ovc.gsel.on .ucard { box-shadow: 0 0 0 4px #F5C400, 0 8px 14px rgba(0,0,0,.5); }
.overlay.peek .body { justify-content: center; }
.peek-ic { width: 40px; height: 40px; display: inline-flex; color: #F5C400; } .peek-ic svg { width: 100%; height: 100%; }
.peek-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 12px; }

/* ---------- Davet ve güncelleme (V98) ---------- */
.btn-invite { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #F5C400; color: #161B2E; border: 0; font-weight: 900; width: 100%; }
.btn-invite svg { width: 20px; height: 20px; }
.update-page { text-align: center; justify-content: center; }
.update-page .lg { width: 220px; max-width: 70%; margin: 0 auto 20px; display: block; }
.update-page .btn { display: inline-block; margin-top: 14px; text-decoration: none; }
