/* Oyun tahtaları + oyun ekranı */
.board-host { width: 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.board-host button { border: 0; padding: 0; background: none; }
.board-host button:disabled { cursor: default; }

/* ---------- Dört Bağla ---------- */
.c4 { border: var(--border); display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(3px, 1.2vw, 8px); padding: clamp(6px, 2vw, 14px); border-radius: 18px; background: linear-gradient(180deg, #2b4ed6, #1d37a8); box-shadow: 0 2px 0 rgba(255,255,255,.18) inset, 0 -6px 0 rgba(0,0,0,.25) inset, 0 30px 60px -25px rgba(0,0,0,.8); position: relative; }
.c4-col { display: grid; grid-template-rows: repeat(6, auto); gap: clamp(3px, 1.2vw, 8px); position: relative; border-radius: 12px; transition: background .2s; }
.c4-col.is-playable:hover { background: rgba(255,255,255,.07); }
.c4-cell { aspect-ratio: 1; border-radius: 50%; background: #0c1235; box-shadow: 0 3px 6px rgba(0,0,0,.55) inset; position: relative; overflow: visible; }
.c4-disc { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 -3px 0 rgba(0,0,0,.2) inset, 0 3px 0 rgba(255,255,255,.35) inset; }
.c4-disc.p0 { background: radial-gradient(circle at 35% 30%, #ff8a6b, var(--c0) 60%, #c43a1c); }
.c4-disc.p1 { background: radial-gradient(circle at 35% 30%, #ffe08a, var(--c1) 60%, #cc9200); }
.c4-disc.is-new { animation: c4drop calc(.25s + var(--drop) * .06s) cubic-bezier(.5, 0, .75, 0) both, c4bounce .35s calc(.25s + var(--drop) * .06s) ease-out; z-index: 2; }
@keyframes c4drop { from { transform: translateY(calc(var(--drop) * -118% - 40%)); } to { transform: translateY(0); } }
@keyframes c4bounce { 40% { transform: translateY(-10%); } 100% { transform: translateY(0); } }
.c4-disc.is-win { animation: winpulse 1s ease-in-out infinite; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
@keyframes winpulse { 50% { transform: scale(.86); } }
.c4-ghost { position: absolute; left: 0; right: 0; top: -15%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: translateY(-20%); transition: opacity .15s, transform .2s; pointer-events: none; }
.c4-ghost.p0 { background: var(--c0); } .c4-ghost.p1 { background: var(--c1); }
.c4-col.is-playable:hover .c4-ghost { opacity: .55; transform: translateY(-100%); }
@media (hover: none) { .c4-ghost { display: none; } }

/* ---------- XOX ---------- */
.xox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; padding: 12px; border: var(--border); border-radius: 18px; background: var(--ink); box-shadow: var(--shadow-md); }
.xox-cell { aspect-ratio: 1; border-radius: 16px; background: var(--card) !important; box-shadow: 0 -5px 0 var(--paper-3) inset; display: grid; place-items: center; transition: transform .15s, background .2s; }
.xox-cell.is-playable:hover { transform: translateY(-3px); background: #fff !important; }
.xox-cell.is-win { background: var(--mustard) !important; }
.xox-mark svg { width: 64%; height: 64%; margin: auto; overflow: visible; }
.xox-mark { width: 100%; height: 100%; display: grid; place-items: center; }
.xox-mark path, .xox-mark circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.xox-mark.p0 path { stroke: var(--c0); } .xox-mark.p1 circle { stroke: var(--c1); }
.is-new .xox-mark path, .is-new .xox-mark circle { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw .45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.xox-cell.is-win .xox-mark { animation: winpulse 1s ease-in-out infinite; }

/* ---------- Reversi ---------- */
.rv { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; border-radius: 14px; background: #0b5e35; box-shadow: 0 0 0 6px #3b2a1c, 0 30px 60px -25px rgba(0,0,0,.8); max-width: 560px; margin: 6px auto; }
.rv-cell { aspect-ratio: 1; background: #138a4e !important; display: grid; place-items: center; position: relative; border-radius: 2px; }
.rv-cell.is-hint::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(0,0,0,.25); transition: transform .15s; }
.rv-cell.is-hint:hover::after { transform: scale(1.6); background: rgba(0,0,0,.35); }
.rv-cell.is-last { background: #1aa25f !important; }
.rv-disc { width: 84%; height: 84%; border-radius: 50%; box-shadow: 0 3px 4px rgba(0,0,0,.45); }
.rv-disc.p0 { background: radial-gradient(circle at 35% 30%, #4a4e5a, #14161c 65%); }
.rv-disc.p1 { background: radial-gradient(circle at 35% 30%, #fff, #e8e3d8 65%, #c9c2b3); }
.rv-disc.is-flip { animation: flip .5s ease-in-out; }
.rv-disc.is-new { animation: pop .3s ease-out; }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(1.1); } 100% { transform: rotateY(0); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- Türk Daması ---------- */
.dm { display: grid; grid-template-columns: repeat(8, 1fr); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 8px #5a3a20, 0 0 0 9px #7a522f, 0 30px 60px -25px rgba(0,0,0,.8); max-width: 560px; margin: 10px auto; }
.dm-sq { aspect-ratio: 1; background: #e2c095 !important; display: grid; place-items: center; position: relative; }
.dm-sq.dark { background: #b98a5c !important; }
.dm-sq.is-last::before { content: ''; position: absolute; inset: 0; background: rgba(255, 200, 60, .28); }
.dm-sq.is-movable { cursor: pointer; }
.dm-sq.is-movable .dm-pc { box-shadow: 0 0 0 2px rgba(255, 176, 46, .0), 0 4px 6px rgba(0,0,0,.45); }
.dm-sq.is-movable:hover .dm-pc { transform: translateY(-3px); }
.dm-sq.is-sel .dm-pc { box-shadow: 0 0 0 3px #ffb02e, 0 10px 14px rgba(0,0,0,.45); transform: translateY(-4px) scale(1.04); }
.dm-sq.is-dest { cursor: pointer; }
.dm-sq.is-dest::after { content: ''; width: 30%; height: 30%; border-radius: 50%; background: rgba(40, 20, 0, .4); box-shadow: 0 0 0 3px rgba(255,176,46,.6); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); } }
.dm-pc { width: 80%; height: 80%; border-radius: 50%; position: relative; z-index: 1; display: grid; place-items: center; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 6px rgba(0,0,0,.45); }
.dm-pc::before { content: ''; position: absolute; inset: 16%; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.dm-pc.p0 { background: radial-gradient(circle at 35% 30%, #fff, #ece5d8 60%, #b9af9c); }
.dm-pc.p1 { background: radial-gradient(circle at 35% 30%, #5d616e, #23252c 60%, #0b0c0f); }
.dm-pc.p1::before { border-color: rgba(255,255,255,.1); }
.dm-pc svg { width: 52%; height: 52%; fill: #ffb02e; position: relative; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.dm-pc.is-new { animation: pop .3s ease-out; }
.dm-sq.is-movable.must .dm-pc { box-shadow: 0 0 0 2px #ffb02e; }

/* ---------- Noktalar ve Kutular ---------- */
.dots { --dot: clamp(10px, 2.6vw, 14px); display: grid; grid-template-columns: repeat(var(--n), var(--dot) 1fr) var(--dot); grid-template-rows: repeat(var(--n), var(--dot) 1fr) var(--dot); aspect-ratio: 1; max-width: 520px; margin: 0 auto; padding: 4%; border-radius: 20px; background: var(--card); border: var(--border); box-shadow: var(--shadow-md); }
.dots-dot { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--ink); z-index: 2; }
.dots-edge { position: relative; display: grid; place-items: center; }
.dots-edge i { display: block; border-radius: 4px; background: rgba(27,23,18,.08); transition: background .15s, transform .15s; }
.dots-edge.h i { width: 100%; height: 34%; }
.dots-edge.v i { height: 100%; width: 34%; }
.dots-edge.h { margin: 0 -3px; } .dots-edge.v { margin: -3px 0; }
.dots-edge.is-playable { cursor: pointer; }
.dots-edge.is-playable.p0h:hover i { background: color-mix(in srgb, var(--c0) 60%, transparent); }
.dots-edge.is-playable.p1h:hover i { background: color-mix(in srgb, var(--c1) 60%, transparent); }
.dots-edge.is-set.p0 i { background: var(--c0); } .dots-edge.is-set.p1 i { background: var(--c1); }
.dots-edge.is-new i { animation: grow .3s ease-out; }
.dots-edge.h.is-new i { transform-origin: left; }
@keyframes grow { from { transform: scale(0.2); } to { transform: scale(1); } }
.dots-box { display: grid; place-items: center; border-radius: 6px; margin: 2px; transition: background .3s; }
.dots-box.is-own { animation: pop .35s ease-out; }
.dots-box.is-own.p0 { background: color-mix(in srgb, var(--c0) 32%, transparent); }
.dots-box.is-own.p1 { background: color-mix(in srgb, var(--c1) 32%, transparent); }


/* ---------- Zar (Kızma Birader) ---------- */
.tv-die { width: clamp(26px, 7vw, 36px); aspect-ratio: 1; border-radius: 7px; background: #fbf6ec; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.4);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 14%; transition: opacity .2s; }
.tv-die.sm { width: clamp(20px, 5.5vw, 28px); }
.tv-die i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: #1b1712; place-self: center; }
.tv-die.used { opacity: .3; }
.tv-die.f1 i:nth-child(1) { grid-area: 2 / 2; }
.tv-die.f2 i:nth-child(1) { grid-area: 1 / 1; } .tv-die.f2 i:nth-child(2) { grid-area: 3 / 3; }
.tv-die.f3 i:nth-child(1) { grid-area: 1 / 1; } .tv-die.f3 i:nth-child(2) { grid-area: 2 / 2; } .tv-die.f3 i:nth-child(3) { grid-area: 3 / 3; }
.tv-die.f4 i:nth-child(1) { grid-area: 1 / 1; } .tv-die.f4 i:nth-child(2) { grid-area: 1 / 3; } .tv-die.f4 i:nth-child(3) { grid-area: 3 / 1; } .tv-die.f4 i:nth-child(4) { grid-area: 3 / 3; }
.tv-die.f5 i:nth-child(1) { grid-area: 1 / 1; } .tv-die.f5 i:nth-child(2) { grid-area: 1 / 3; } .tv-die.f5 i:nth-child(3) { grid-area: 2 / 2; } .tv-die.f5 i:nth-child(4) { grid-area: 3 / 1; } .tv-die.f5 i:nth-child(5) { grid-area: 3 / 3; }
.tv-die.f6 i:nth-child(1) { grid-area: 1 / 1; } .tv-die.f6 i:nth-child(2) { grid-area: 2 / 1; } .tv-die.f6 i:nth-child(3) { grid-area: 3 / 1; } .tv-die.f6 i:nth-child(4) { grid-area: 1 / 3; } .tv-die.f6 i:nth-child(5) { grid-area: 2 / 3; } .tv-die.f6 i:nth-child(6) { grid-area: 3 / 3; }

/* ---------- Dokuz Taş ---------- */
.dt { position: relative; max-width: 520px; aspect-ratio: 1; margin: 14px auto; border-radius: 14px; background: #e3c48f; box-shadow: inset 0 0 0 3px #b58c52, 0 30px 60px -25px rgba(0,0,0,.8); }
.dt svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #5a3a20; stroke-width: 6; stroke-linecap: round; }
.dt-pt { position: absolute; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.dt-pt i { width: 32%; aspect-ratio: 1; border-radius: 50%; background: #5a3a20; transition: transform .15s; }
.dt-pt.has i { width: 84%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 3px 5px rgba(0,0,0,.4); }
.dt-pt.c0 i { background: var(--c0); border: 2px solid #c2ad86; }
.dt-pt.c1 i { background: var(--c1); border: 2px solid #120e0b; }
.dt-pt.in-mill i { box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 3px rgba(242,177,52,.7); }
.dt-pt.is-tgt { cursor: pointer; }
.dt-pt.is-tgt i { width: 40%; background: #f2b134; box-shadow: 0 0 0 5px rgba(242,177,52,.3); }
.dt-pt.is-src { cursor: pointer; }
.dt-pt.is-src i { box-shadow: 0 0 0 3px #ffd166, 0 3px 5px rgba(0,0,0,.4); }
.dt-pt.is-sel i { transform: scale(1.1); box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ffb020; }
.dt-pt.is-take { cursor: pointer; }
.dt-pt.is-take i { box-shadow: 0 0 0 3px #d9442b, 0 0 0 7px rgba(217,68,43,.25); animation: dtPulse 1s ease-in-out infinite; }
.dt-pt.is-last:not(.is-tgt) i { outline: 2px dashed rgba(90,58,32,.55); outline-offset: 3px; }
@keyframes dtPulse { 50% { transform: scale(.92); } }
@media (max-width: 560px) {
  .mg { grid-template-columns: 1fr; grid-template-rows: auto auto auto; border-radius: 28px; padding: 10px; gap: 8px; }
  .mg-store { min-height: 0; height: 46px; border-radius: 999px; }
  .mg-store .mg-stones { display: none; }
  .mg-store b { position: static; transform: none; min-width: 34px; height: 26px; font-size: 14px; }
  .mg-store small { position: static; margin-right: 8px; }
  .mg-store { display: flex; align-items: center; justify-content: center; gap: 4px; }
  .mg-row { gap: 6px; }
  .mg-pit b { min-width: 20px; height: 20px; font-size: 11px; }
}

/* ---------- Kızma Birader ---------- */
.kb { display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(2px, .7vw, 5px); max-width: 520px; margin: 14px auto; padding: clamp(8px, 2vw, 14px);
  border-radius: 16px; background: #fbf3df; box-shadow: inset 0 0 0 2px #1b1712, 0 30px 60px -25px rgba(0,0,0,.6); }
.kb-void { aspect-ratio: 1; }
.kb-cell { aspect-ratio: 1; border-radius: 50%; background: #fffaf1; box-shadow: inset 0 0 0 1.5px #1b1712; display: grid; place-items: center; position: relative; }
.kb-cell.st0 { background: color-mix(in srgb, var(--c0) 35%, #fffaf1); }
.kb-cell.st1 { background: color-mix(in srgb, var(--c1) 35%, #fffaf1); }
.kb-cell.home.h0, .kb-cell.base.b0 { background: color-mix(in srgb, var(--c0) 22%, #fffaf1); box-shadow: inset 0 0 0 1.5px var(--c0); }
.kb-cell.home.h1, .kb-cell.base.b1 { background: color-mix(in srgb, var(--c1) 22%, #fffaf1); box-shadow: inset 0 0 0 1.5px var(--c1); }
.kb-pawn { width: 72%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 3px rgba(0,0,0,.35); border: 2px solid #1b1712; position: relative; }
.kb-pawn::after { content: ''; position: absolute; inset: 28%; border-radius: 50%; background: rgba(255,255,255,.55); }
.kb-pawn.c0 { background: var(--c0); } .kb-pawn.c1 { background: var(--c1); }
.kb-pawn.is-last { outline: 2px dashed rgba(27,23,18,.5); outline-offset: 2px; }
.kb-cell.is-playable { cursor: pointer; }
.kb-cell.is-playable .kb-pawn { box-shadow: 0 0 0 3px #ffd166, 0 0 0 6px rgba(255,209,102,.35); animation: dtPulse 1s ease-in-out infinite; }
.kb-die { aspect-ratio: 1; display: grid; place-items: center; }
.kb-die .tv-die { width: 92%; box-shadow: inset 0 0 0 1.5px #1b1712, inset 0 -3px 0 rgba(0,0,0,.18); }
.kb-die.c0 .tv-die { background: color-mix(in srgb, var(--c0) 25%, #fffaf1); }
.kb-die.c1 .tv-die { background: color-mix(in srgb, var(--c1) 25%, #fffaf1); }

/* ---------- Kule ---------- */
.kl { max-width: 460px; margin: 6px auto 14px; display: flex; flex-direction: column; gap: 12px; }
.kl-line { padding: 10px 12px 12px; border: var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.kl-line.is-turn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 35%, transparent), var(--shadow-sm); }
.kl-line-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.kl-line-head b { font-size: var(--t-sm); display: inline-flex; align-items: center; gap: 6px; }
.kl-line-head b::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 1.5px var(--ink); }
.kl-pts { font: 900 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kl-pts small { font: 700 var(--t-xs) var(--f-text); color: var(--ink-3); }
.kl-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; align-items: center; }
.kl-slot { aspect-ratio: 1.15; border-radius: 7px; border: 1.5px dashed var(--line); }
.board-host .kl-b { position: relative; display: block; aspect-ratio: 1.15; border-radius: 7px; background: var(--k);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), inset 0 3px 0 rgba(255,255,255,.28), 0 0 0 1.5px var(--ink); transition: transform .18s var(--ease, ease), box-shadow .18s, opacity .2s, filter .2s; }
.board-host .kl-b.in-line.is-score::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -7px; height: 3px; border-radius: 2px; background: var(--ink); }
.board-host .kl-b.is-new { animation: klIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes klIn { from { transform: translateY(-26px) scale(.7); opacity: 0; } }
.board-host .kl-drop { aspect-ratio: 1.15; border-radius: 7px; border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); cursor: pointer; position: relative; animation: klPulse 1.1s ease-in-out infinite; }
.board-host .kl-drop::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 20px/1 var(--f-display); color: var(--accent); }
@keyframes klPulse { 50% { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.kl-mid { display: flex; justify-content: center; padding: 6px 0 0; }
.kl-tower { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 0; width: min(62%, 230px); border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, transparent, rgba(27,23,18,.04)); }
.kl-floor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kl-floor:nth-child(even) { transform: translateX(3px); }
.board-host .kl-tower .kl-b { aspect-ratio: 2.1; border-radius: 6px; }
.board-host .kl-tower .kl-b.kl-empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(27,23,18,.12); }
.board-host .kl-tower .kl-b.kl-empty.is-gone { animation: klOut .45s ease forwards; background: var(--k); }
@keyframes klOut { to { transform: translateY(-18px) scale(.8); opacity: 0; } }
.board-host .kl-tower .kl-b.is-open { cursor: pointer; }
.board-host .kl-tower .kl-b.is-open:hover { transform: translateY(-3px); }
.board-host .kl-tower .kl-b.is-sel { transform: translateX(-10px) scale(1.04); box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), inset 0 3px 0 rgba(255,255,255,.28), 0 0 0 2px var(--ink), 0 0 0 5px #ffd166; z-index: 2; }
.board-host .kl-tower .kl-b.is-locked { filter: saturate(.35) brightness(1.08); opacity: .55; }
.board-host .kl-base { height: 12px; margin: 6px -18px 0; border-radius: 6px; background: #6b4226; box-shadow: 0 0 0 1.5px var(--ink), 0 10px 24px -10px rgba(0,0,0,.6); }
.kl-tip { margin: 0; text-align: center; font-size: var(--t-sm); color: var(--ink-3); min-height: 1.3em; }

/* ---------- Pazarlık ---------- */
.pz { max-width: 520px; margin: 6px auto 14px; display: flex; flex-direction: column; gap: 12px; }
.pz-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pz-score { display: flex; flex-direction: column; align-items: center; padding: 8px; border: var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
.pz-score span { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pz-score b { font: 900 1.6rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.pz-round { text-align: center; font: 800 var(--t-md) var(--f-text); display: flex; flex-direction: column; }
.pz-round small { font-weight: 600; font-size: var(--t-xs); color: var(--ink-3); }
.pz-offer, .pz-last { padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--paper-2); font-size: var(--t-sm); }
.pz-offer span { display: block; font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }
.pz-offer p { margin: 0; }
.pz-offer.theirs { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.pz-table { display: flex; flex-direction: column; gap: 8px; }
.pz-item { padding: 10px 12px; border: var(--border); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.pz-name { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.pz-name b { font: 800 var(--t-md) var(--f-display); }
.pz-name small { font-size: var(--t-xs); color: var(--ink-3); }
.pz-name em { font-style: normal; font-weight: 900; color: var(--ink); background: #ffe7a3; padding: 0 6px; border-radius: 6px; }
.pz-split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.pz-side { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pz-side span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.pz-side.me { align-items: flex-end; }
.pz-side.me span { color: var(--pine); }
.pz-gems { display: flex; flex-wrap: wrap; gap: 2px; min-height: 30px; align-items: center; }
.pz-side.me .pz-gems { justify-content: flex-end; }
.pz-art { width: 30px; height: 30px; }
.pz-none { color: var(--line); font-weight: 800; }
.pz-ctrl { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pz-ctrl b { font: 800 var(--t-sm) var(--f-text); font-variant-numeric: tabular-nums; }
.board-host .pz-step { width: 34px; height: 26px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--card); font-size: 11px; cursor: pointer; }
.board-host .pz-step:disabled { opacity: .3; cursor: default; }
.board-host .pz-step:not(:disabled):hover { background: #ffe7a3; }
.pz-note { margin: 0; text-align: center; font-size: var(--t-xs); color: var(--ink-3); }
.pz-actions { display: flex; flex-direction: column; gap: 8px; }
.board-host .pz-actions .btn { width: 100%; min-height: 48px; border: var(--border); box-shadow: var(--shadow-sm); padding: 0 12px; background: var(--card); }
.board-host .pz-actions .btn-primary { background: var(--accent); color: var(--accent-ink); }

/* ---------- Sınır ---------- */
.sn { max-width: 520px; margin: 6px auto 14px; display: flex; flex-direction: column; gap: 10px; }
.sn-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sn-s { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px; border: var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
.sn-s span { font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pc); }
.sn-s b { font: 900 1.6rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.sn-ready { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--pc); color: #fff; font-style: normal; font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ink); }
.sn-mid { text-align: center; font-weight: 800; font-size: var(--t-sm); max-width: 150px; }
.sn-flash { color: var(--accent); animation: pop .35s ease; display: inline-block; }
.sn-map { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 22px rgba(0,0,0,.18)); }
.sn-h { fill: #efe3c8; stroke: #1b1712; stroke-width: 1.4; transition: fill .3s ease, transform .2s; }
.sn-h.p0 { fill: var(--c0); } .sn-h.p1 { fill: var(--c1); }
.sn-h.wall { fill: #6b5f50; }
.sn-x { stroke: #f5eee0; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.sn-h.is-opt { fill: #fff8e6; cursor: pointer; stroke-width: 2; }
.sn-h.is-opt:hover { fill: #ffe7a3; }
.sn-h.is-pick { fill: #ffd166; stroke-width: 2.6; animation: snPulse 1s ease-in-out infinite; }
.sn-h.just-taken { stroke-width: 2.6; }
.sn-h.just-burned { animation: snBurn .6s ease; }
.sn-h.just-gained { animation: snGain .6s ease; }
@keyframes snPulse { 50% { fill: #ffe7a3; } }
@keyframes snBurn { 0% { fill: #e2482d; } }
@keyframes snGain { 0% { fill: #fff8e6; } }
.sn-info { margin: 0; text-align: center; font-size: var(--t-sm); color: var(--ink-3); min-height: 1.3em; }

/* ---------- Çarşı ---------- */
.cs-card { max-width: 520px; width: calc(100% - 24px); box-sizing: border-box; margin: var(--s-5) auto var(--s-7); padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); border: var(--border); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-md); }
.cs-title { margin: 0; font-family: var(--f-display); font-size: var(--t-3xl); }
.cs-card h2 { margin: 0; font-family: var(--f-display); }
.cs-sub { margin: 0; color: var(--ink-2); }
.cs-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: var(--t-sm); }
.cs-field input, .cs-join input { min-height: 46px; padding: 0 var(--s-3); border: var(--border); border-radius: var(--r-md); background: #fff; font: inherit; font-size: 1rem; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cs-join { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); }
.cs-join input { text-transform: uppercase; letter-spacing: .2em; }
.cs-msg { margin: 0; min-height: 1.2em; font-size: var(--t-sm); color: var(--ink-3); text-align: center; }
.cs-code { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-3); border-radius: var(--r-md); background: var(--paper-2); }
.cs-code small { font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: var(--t-xs); }
.cs-code b { font-family: var(--f-display); font-size: 2rem; letter-spacing: .25em; }
.cs-seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cs-seats li { padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; color: var(--ink-3); font-weight: 600; }
.cs-seats li.on { border-style: solid; border-color: var(--ink); color: var(--ink); background: #fff; }
.cs-game { max-width: 560px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: var(--s-3) var(--s-3) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.cs-bar { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-sm); }
.cs-clock { font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); }
.cs-clock:empty { display: none; }
.cs-clock.low { background: var(--accent); color: var(--accent-ink); }
.cs-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.cs-pl { position: relative; padding: 8px 10px; border: var(--border-soft); border-radius: 12px; background: var(--card); transition: box-shadow .25s, transform .25s; }
.cs-pl.me { border: var(--border); box-shadow: var(--shadow-sm); }
.cs-pl.off { opacity: .6; }
.cs-pl.is-won { box-shadow: 0 0 0 3px #f2b134, var(--shadow-sm); transform: translateY(-2px); }
.cs-pl-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cs-pl-head b { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-coins { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-coins i { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #f2b630 60%, #c98a12); box-shadow: 0 0 0 1px #8a5d08; }
.cs-goods { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; margin-top: 4px; align-items: center; }
.cs-goods small { color: var(--ink-3); font-size: var(--t-xs); }
.cs-mini { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 800; }
.cs-art { width: 44px; height: 44px; }
.cs-art.sm { width: 20px; height: 20px; } .cs-art.xs { width: 16px; height: 16px; }
.cs-pts { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.cs-ok, .cs-bidtag { position: absolute; top: -9px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 900 12px/1 var(--f-text); box-shadow: 0 0 0 2px var(--ink); background: var(--pine); color: #fff; }
.cs-bidtag { background: #fff; color: var(--ink); animation: pop .35s ease; }
.cs-bidtag.won { background: #f2b134; }
.cs-bidtag.burned { background: var(--paper-3); text-decoration: line-through; }
.cs-stall { position: relative; padding: var(--s-4) var(--s-3) var(--s-3); border-radius: 16px; background: linear-gradient(180deg, #7a3b26, #5e2c1c); box-shadow: inset 0 0 0 2px #1b1712, 0 18px 40px -24px rgba(0,0,0,.7); color: #fbf6ec; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cs-stall::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 14px; border-radius: 10px 10px 4px 4px; background: repeating-linear-gradient(90deg, #f2b134 0 18px, #fbf6ec 18px 36px); box-shadow: 0 0 0 2px #1b1712; }
.cs-stall-label { font: 800 var(--t-xs) var(--f-text); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.cs-lot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 86px; align-items: center; }
.cs-good { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 12px; background: #fbf6ec; color: var(--ink); box-shadow: 0 0 0 2px #1b1712, 0 4px 0 #1b1712; animation: pop .35s ease; min-width: 70px; }
.cs-good span { font: 800 var(--t-sm) var(--f-display); }
.cs-empty { opacity: .5; }
.cs-gain { margin: 0; font-size: var(--t-sm); }
.cs-gain b { color: #ffd166; }
.cs-next { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); opacity: .85; }
.cs-nlot { display: inline-flex; gap: 1px; padding: 2px 5px; border-radius: 6px; background: rgba(255,255,255,.14); }
.cs-result { margin: 0; text-align: center; font-size: var(--t-sm); min-height: 1.3em; }
.cs-bid { display: flex; flex-direction: column; gap: 10px; padding: var(--s-3); border: var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.cs-bid.done { opacity: .75; }
.cs-bid-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.cs-step { width: 46px; height: 46px; border-radius: 50%; border: var(--border); background: #fff; font: 900 22px/1 var(--f-text); cursor: pointer; }
.cs-step:disabled { opacity: .35; cursor: default; }
.cs-amount { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.cs-amount b { font: 900 2.4rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cs-amount small { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cs-chip { min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font: 800 var(--t-sm) var(--f-text); cursor: pointer; }
.cs-chip.on { background: var(--ink); color: var(--paper); }
.cs-chip:disabled { opacity: .4; cursor: default; }
.cs-leave { margin-top: var(--s-2); }
.cs-rank { list-style: none; margin: var(--s-3) 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-rank li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); }
.cs-rank li.me { background: #ffe7a3; }
.cs-rank li span { font: 900 var(--t-md) var(--f-display); }
.cs-rank li em { font-style: normal; font-weight: 900; }
.cs-rank li small { grid-column: 2 / 4; color: var(--ink-3); font-size: var(--t-xs); }
.cs-card[hidden], .cs-game[hidden] { display: none; }
.cs-two .btn { min-width: 0; padding: 0 8px; white-space: normal; line-height: 1.15; }
