/* RANT — İznik çinisi renklerinden ilham alan tema */
:root {
  --bg: #111a2e;
  --bg2: #1c2b4b;
  --paper: #fffaf0;
  --cream: #f5ecd9;
  --cream2: #eadfc6;
  --ink: #1b2233;
  --muted: #6b6f7d;
  --line: #d8c9a8;
  --accent: #d1495b;
  --accent-d: #a8323f;
  --gold: #edae49;
  --turq: #00798c;
  --turq-d: #005f6e;
  --green: #2f9e66;
  --blue: #24408e;
  --shadow: 0 12px 30px rgba(5, 10, 25, 0.35);
  --radius: 14px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 121, 140, 0.35), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(209, 73, 91, 0.25), transparent 45%),
    linear-gradient(160deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
button { font: inherit; }
/* Başlık, düğme ve sayılar yuvarlak hatlı Fredoka; metinler Nunito */
h1, h2, h3, h4, .btn, .money, .logo, .mini-logo, .room-code, .cell .nm, .topbar .stat b, .pl .pname, .gundem-card .gt,
.bigcard .cn, input, select { font: inherit; }
.hidden { display: none !important; }

/* ---------- düğmeler ---------- */
.btn {
  --b: var(--ink);
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--b);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.08s, filter 0.15s, box-shadow 0.08s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn.primary { --b: var(--accent); }
.btn.turq { --b: var(--turq); }
.btn.gold { --b: var(--gold); color: var(--ink); }
.btn.green { --b: var(--green); }
.btn.ghost { --b: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.big { font-size: 19px; padding: 14px 26px; border-radius: 16px; }
.btn.small { font-size: 13px; padding: 6px 10px; border-radius: 9px; }
.btn.tiny { font-size: 12px; padding: 4px 8px; border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--cream2); color: var(--ink);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--c, #999); flex: none; }

/* ---------- menü ve lobi ---------- */
.screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.hero { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.logo {
  font-weight: 700; letter-spacing: 0.04em; line-height: 0.85;
  font-size: clamp(72px, 12vw, 150px);
  color: var(--paper);
  text-shadow: 0 6px 0 var(--accent), 0 12px 30px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.logo span { color: var(--gold); }
.tagline { color: #d9e2f2; font-size: 20px; margin: 18px 0 8px; max-width: 30ch; }
.facts { color: #aab8d3; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.skyline { margin-top: 26px; width: 100%; max-width: 460px; height: auto; opacity: 0.9; }
.card-panel {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.card-panel h2 { margin: 0; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px;
  background: #fff; color: var(--ink); outline: none; width: 100%;
}
.input:focus { border-color: var(--turq); }
.input.code { text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; text-align: center; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.avatars button {
  width: 40px; height: 40px; font-size: 22px; border-radius: 12px; border: 2px solid transparent;
  background: var(--cream); cursor: pointer;
}
.avatars button.on { border-color: var(--accent); background: #fff; transform: scale(1.08); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice { background: #fff3d6; border: 1px solid #f0cf86; color: #6b4b00; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.notice.error { background: #fde2e4; border-color: #f2a7ae; color: #7a1f2a; }
.version { position: fixed; bottom: 6px; right: 10px; color: rgba(255, 255, 255, 0.35); font-size: 11px; }

.lobby { width: min(760px, 100%); }
.room-code { font-size: 44px; font-weight: 700; letter-spacing: 0.18em; color: var(--accent); }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.seat {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: var(--cream); border: 2px solid transparent;
}
.seat.me { border-color: var(--turq); }
.seat.empty { background: transparent; border: 2px dashed var(--line); color: var(--muted); justify-content: center; min-height: 58px; }
.av {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; flex: none;
  background: var(--c, #888); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.av.sm { width: 26px; height: 26px; font-size: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.seg { display: inline-flex; background: var(--cream); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.seg button:disabled { cursor: default; }

/* ---------- oyun ekranı ---------- */
.game { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; color: #e8eefc;
  background: rgba(8, 12, 24, 0.45); backdrop-filter: blur(6px); flex-wrap: wrap;
}
.topbar .mini-logo { font-weight: 700; letter-spacing: 0.08em; font-size: 22px; color: var(--paper); text-shadow: 0 2px 0 var(--accent); }
.topbar .stat { display: flex; flex-direction: column; line-height: 1.1; font-size: 11px; color: #9fb0cf; }
.topbar .stat b { font-size: 16px; color: #fff; }
.topbar .mods { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar .mods .chip { background: rgba(237, 174, 73, 0.18); color: #ffe2a8; }
.topbar .spacer { flex: 1; }
.iconbtn {
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 0; border-radius: 10px; padding: 7px 10px; cursor: pointer; font-size: 14px;
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.16); }
.conn { font-size: 12px; color: #9fe3c3; }
.conn.bad { color: #ffb4b4; }

.table { flex: 1; display: flex; gap: 16px; padding: 10px 14px 0; align-items: flex-start; justify-content: center; min-height: 0; }
.board-wrap { position: relative; flex: none; }
.board {
  --size: min(calc(100vh - 186px), calc(100vw - 440px));
  width: var(--size); height: var(--size); min-width: 560px; min-height: 560px;
  display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr);
  background: var(--paper); border-radius: 18px; padding: 6px; gap: 3px;
  box-shadow: var(--shadow), inset 0 0 0 6px #e7d9b9;
  position: relative;
}
.cell {
  position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: calc(var(--size) / 74); line-height: 1.12; padding: 3px; gap: 2px;
  transition: box-shadow 0.15s, transform 0.15s, background-color 0.4s, color 0.4s;
}
/* Alınabilir kareler: iç kenardaki şerit sahipsizken gri, alınınca sahibinin rengi */
.cell.buyable { background: #fffdf7; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cell .band { position: absolute; background: #c4c2bc; transition: background-color 0.4s; }
.cell.owned .band { background: var(--pc); }
.cell.side-b .band { top: 0; left: 0; right: 0; height: 20%; }
.cell.side-t .band { bottom: 0; left: 0; right: 0; height: 20%; }
.cell.side-l .band { top: 0; bottom: 0; right: 0; width: 20%; }
.cell.side-r .band { top: 0; bottom: 0; left: 0; width: 20%; }
.cell.side-b { padding-top: calc(var(--size) / 44); }
.cell.side-t { padding-bottom: calc(var(--size) / 44); }
.cell.side-l { padding-right: calc(var(--size) / 44); }
.cell.side-r { padding-left: calc(var(--size) / 44); }
.cell .city { color: var(--muted); }
.cell.special { background: #fffaf0; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cell.corner { background: linear-gradient(145deg, #fff6df, #f1e2bf); box-shadow: inset 0 0 0 1px var(--line); }
.cell:hover { box-shadow: inset 0 0 0 2px var(--ink); z-index: 2; }
.cell.open { box-shadow: inset 0 0 0 3px var(--ink); z-index: 3; }
.cell .nm { font-family: var(--display); font-weight: 600; font-size: 1.08em; overflow-wrap: anywhere; hyphens: manual; }
.cell.side-l .nm, .cell.side-r .nm { font-size: 0.92em; } /* yan sütunda şerit yer kaplar: "Odunpazarı" bölünmesin */
.cell .city { font-size: 0.78em; font-weight: 600; }
.cell.corner .nm { font-size: 1.02em; }
.floors { display: flex; gap: 3px; justify-content: center; min-height: 1.3em; }
.floors b { font-family: var(--display); font-weight: 600; font-size: 1em; line-height: 1.25; padding: 0 0.35em; border-radius: 0.5em; background: #fff3d1; color: #6b4a00; box-shadow: inset 0 0 0 1px #edd393; white-space: nowrap; }
.floors b.k { background: #ffe0d6; box-shadow: inset 0 0 0 1px #f2b3a1; }
.cell.mortgaged { opacity: 0.75; }
.cell.mortgaged .band { background: repeating-linear-gradient(135deg, var(--pc) 0 5px, color-mix(in srgb, var(--pc) 35%, #fff) 5px 10px); }
.cell.mortgaged::before { content: '🔒'; position: absolute; top: 2px; left: 4px; font-size: 0.95em; z-index: 3; }
.cell .badge { position: absolute; bottom: 2px; left: 3px; font-size: 1.1em; z-index: 3; }
.cell.hl { box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px rgba(237, 174, 73, 0.8); z-index: 3; animation: pulse 1.2s infinite; }
.board.picking .cell:not(.pick) { opacity: 0.45; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 3px var(--gold), 0 0 4px rgba(237, 174, 73, 0.3); } }

/* kare bilgi penceresi */
.pop {
  position: absolute; z-index: 20; width: 230px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(10, 15, 30, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); font-size: 13.5px; animation: popIn 0.14s ease-out;
}
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } }
.pop .ph { padding: 9px 12px; background: var(--pc, #4a4d57); color: var(--ink, #fff); display: flex; align-items: baseline; gap: 6px; }
.pop .ph b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.pop .ph span { font-size: 12px; opacity: 0.8; }
.pop .ph .x { margin-left: auto; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; opacity: 0.8; }
.pop .po { padding: 7px 12px 2px; font-size: 12.5px; color: var(--muted); }
.pop table { width: 100%; border-collapse: collapse; margin: 2px 0 4px; }
.pop td { padding: 3px 12px; }
.pop td:last-child { text-align: right; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.pop tr.cur td { background: #fff1cc; }
.pop .pn { padding: 4px 12px 8px; font-size: 12px; color: var(--muted); }
.pop .pa { padding: 0 10px 10px; display: flex; gap: 4px; flex-wrap: wrap; }

.board-center {
  grid-area: 2 / 2 / 10 / 10; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.75) 60%),
    repeating-conic-gradient(from 45deg at 50% 50%, rgba(0, 121, 140, 0.09) 0 25%, rgba(36, 64, 142, 0.05) 0 50%) 0 0 / 46px 46px;
  box-shadow: inset 0 0 0 2px #eadcb9;
  overflow: hidden;
}
.prompt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 0; overflow: auto; }
.prompt h3 { margin: 0; font-size: 20px; }
.prompt p { margin: 0; color: var(--muted); max-width: 46ch; }
.prompt .who { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.timer { width: min(320px, 80%); height: 6px; border-radius: 4px; background: var(--cream2); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
/* 3 boyutlu zarlar */
.dice { display: flex; gap: 22px; justify-content: center; padding: 6px 0 10px; }
.dice.off { display: none; }
.die3d { --d: 58px; width: var(--d); height: var(--d); position: relative; perspective: 500px; }
.die3d .cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.15s cubic-bezier(0.15, 0.85, 0.3, 1); }
.die3d .face {
  position: absolute; inset: 0; border-radius: 13px; background: linear-gradient(145deg, #ffffff, #f1ece0);
  box-shadow: inset 0 0 0 1px #e4dccb, inset 0 -5px 10px rgba(0, 0, 0, 0.07);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 9px; backface-visibility: hidden;
}
.die3d .face i { width: 11px; height: 11px; border-radius: 50%; background: #1b2233; place-self: center; visibility: hidden; box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.35); }
.die3d .face i.on { visibility: visible; }
.die3d.red .face { background: linear-gradient(145deg, #e8505e, #c23848); box-shadow: inset 0 0 0 1px #a92f3c, inset 0 -5px 10px rgba(0, 0, 0, 0.15); }
.die3d.red .face i { background: #fff; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25); }
.die3d .f1 { transform: rotateY(0deg) translateZ(calc(var(--d) / 2)); }
.die3d .f6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.die3d .f3 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); }
.die3d .f4 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.die3d .f2 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); }
.die3d .f5 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }
.die3d .dshadow { position: absolute; left: 10%; right: 10%; bottom: -12px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.22); filter: blur(3px); }
.die3d.throw { animation: toss 1.15s cubic-bezier(0.3, 0.7, 0.4, 1); }
.die3d.throw .dshadow { animation: tossShadow 1.15s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes toss { 0% { transform: translate(-40px, 10px); } 30% { transform: translate(-10px, -46px); } 60% { transform: translate(4px, 0); } 75% { transform: translate(6px, -10px); } 100% { transform: translate(0, 0); } }
@keyframes tossShadow { 30% { transform: scale(0.55); opacity: 0.4; } 60% { transform: scale(1); opacity: 1; } 75% { transform: scale(0.85); } }

/* taşlar */
.tokens { position: absolute; inset: 0; pointer-events: none; }
.token {
  position: absolute; width: var(--tk); height: var(--tk); margin: calc(var(--tk) / -2) 0 0 calc(var(--tk) / -2);
  border-radius: 50%; background: var(--pc); display: grid; place-items: center; font-size: calc(var(--tk) * 0.58);
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, 0.35); transition: left 0.14s ease-out, top 0.14s ease-out; z-index: 6;
}
.token.active { box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px rgba(237, 174, 73, 0.4), 0 4px 10px rgba(0, 0, 0, 0.35); z-index: 7; }
.token.hop { animation: hop 0.14s ease-out; }
@keyframes hop { 50% { transform: translateY(-30%) scale(1.08); } }

/* yan panel */
.wait { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.chip.ok { background: #cdeed9; }
.chip small { font-weight: 500; margin-left: 4px; font-family: var(--font); }
.small { font-size: 12px; }


/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(8, 12, 25, 0.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal {
  background: var(--paper); border-radius: 20px; width: min(640px, 100%); max-height: 88vh; overflow: auto;
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; position: relative;
}
.modal.wide { width: min(860px, 100%); }
.modal h2 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.modal .x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--cream); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.bigcard {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #fff, #f3e7cd); border: 2px solid #d6c39b;
}
.bigcard.tepki { background: linear-gradient(160deg, #fff, #fbe1e5); border-color: #e7a2ab; }
.bigcard .ci { font-size: 54px; }
.bigcard .cn { font-weight: 800; font-size: 20px; }
.bigcard .ct { font-size: 14.5px; color: #444; margin-top: 4px; }
.targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.targets button {
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px; font-size: 13px;
}
.targets button:hover { border-color: var(--turq); }
.targets button.on { border-color: var(--accent); background: #fff3f4; }
.targets button b { font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.steps button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 2px; cursor: pointer; font-size: 12px; }
.steps button b { display: block; font-size: 18px; }
.steps button:hover { border-color: var(--turq); }
.reason { color: var(--accent-d); font-size: 13.5px; font-weight: 600; }


.mgr { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mgr th { text-align: left; font-size: 12px; color: var(--muted); padding: 4px 6px; }
.mgr td { padding: 6px; border-top: 1px solid var(--cream2); vertical-align: middle; }
.mgr td.acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-col { background: var(--cream); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.trade-col h4 { margin: 0; font-size: 14px; }

.results { display: flex; flex-direction: column; gap: 8px; }
.res {
  display: grid; grid-template-columns: 34px auto 1fr auto; gap: 10px; align-items: center;
  background: var(--cream); border-radius: 14px; padding: 10px 12px;
}
.res.win { background: linear-gradient(120deg, #ffe7a8, #f8c95a); }
.res .rank { font-size: 22px; font-weight: 900; text-align: center; }
.res .rb { font-size: 12px; color: #5b5240; }
.res .rt { font-size: 20px; font-weight: 800; }

/* bildirimler ve gündem sahnesi */
.stage { position: fixed; inset: 0; display: grid; place-items: center; z-index: 55; background: rgba(8, 12, 25, 0.35); backdrop-filter: blur(2px); cursor: pointer; }
.stage .news {
  width: min(430px, 90vw); background: linear-gradient(180deg, #fffdf7, #f7f0e0); color: var(--ink); border-radius: 22px; overflow: hidden; text-align: center; padding-bottom: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #eadcb9; animation: newsIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes newsIn { from { transform: translateY(30px) scale(0.85) rotate(-2deg); opacity: 0; } }
.stage .news .kicker { background: linear-gradient(90deg, #b8323f, var(--accent)); color: #fff; padding: 9px; font-size: 12px; letter-spacing: 0.28em; font-weight: 800; }
.stage .news .gi { font-size: 62px; margin: 14px 0 2px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.stage .news .gt { font-family: var(--display); font-weight: 600; font-size: 28px; padding: 0 18px; }
.stage .news .gx { color: #5d6170; margin: 6px 22px 0; font-size: 15px; line-height: 1.4; }
.stage .news .gd { margin: 10px 22px 0; font-weight: 700; color: var(--accent-d); }
.stage .news .recap { margin: 16px 18px 0; padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #eadcb9; font-size: 14px; color: #3b3f4a; display: grid; gap: 4px; text-align: left; }
.stage .news .recap .rk { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); font-weight: 800; }
@keyframes flip { from { transform: rotateY(90deg) scale(0.7); opacity: 0; } }
.float { position: fixed; z-index: 70; font-weight: 800; pointer-events: none; animation: floatUp 1.4s ease-out forwards; font-size: 17px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.float.plus { color: #22a65a; }
.float.minus { color: var(--accent); }
@keyframes floatUp { to { transform: translateY(-46px); opacity: 0; } }
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 80; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

.rules h3 { margin: 14px 0 4px; font-size: 16px; }
.rules p, .rules li { font-size: 14.5px; line-height: 1.5; }
.rules ul { margin: 4px 0; padding-left: 20px; }

@media (max-width: 1100px) {
  .table { flex-direction: column; align-items: center; }
  .board { --size: min(calc(100vw - 28px), 900px); min-width: 0; min-height: 0; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .board { --size: calc(100vw - 20px); padding: 3px; gap: 2px; }
  .cell { font-size: calc(var(--size) / 60); }
  .cell .city, .cell .pr { display: none; }
  .trade-cols { grid-template-columns: 1fr; }
}

/* satın alma kartı */
.buycard { background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: 0 6px 18px rgba(20, 30, 60, 0.12); text-align: center; min-width: 220px; }
.buycard .bn { font-family: var(--display); font-weight: 600; font-size: 22px; }
.buycard .bc { color: var(--muted); font-size: 13px; }
.buycard .bp { margin-top: 6px; font-size: 14px; }
.buycard .bo { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 4px; align-items: center; justify-content: center; }

/* kaydırma çubuğu ile para seçimi */
.moneybox { background: #fff; border-radius: 14px; padding: 10px 14px 6px; width: min(340px, 100%); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; }
.amount { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--c, var(--turq)), color-mix(in srgb, var(--c, var(--turq)) 25%, #e9e4d6)); outline: none; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--turq)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); cursor: grab; }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--turq)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); cursor: grab; }
.slider:disabled { opacity: 0.4; cursor: not-allowed; }
.slider-scale { font-size: 11px; color: var(--muted); }

/* pazarlık penceresi */
.tpartners { display: flex; gap: 6px; flex-wrap: wrap; }
.tpartner { border: 2px solid transparent; background: var(--cream); border-radius: 999px; padding: 4px 12px 4px 4px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }
.tpartner.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, #fff); }
.trade-col { border-top: 4px solid var(--c); }
.tchips { display: flex; gap: 6px; flex-wrap: wrap; }
.tchip { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 10px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.tchip small { font-family: var(--font); font-weight: 600; font-size: 11px; color: var(--muted); }
.tchip.on { border-color: var(--c); background: var(--c); color: #fff; }
.tchip.on small { color: rgba(255, 255, 255, 0.85); }
.tchip:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================= Kartlar (Hearthstone tarzı) ================= */
.kart {
  --w: 128px; --f1: #f7dc92; --f2: #c18f33; --f3: #7a5317; --gem: #2563a8;
  width: var(--w); height: calc(var(--w) * 1.42); position: relative; border-radius: calc(var(--w) * 0.09);
  font-size: calc(var(--w) * 0.085); user-select: none;
  background: linear-gradient(150deg, var(--f1), var(--f2) 45%, var(--f3));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.kart.tepki { --f1: #f6b3b9; --f2: #b9343f; --f3: #5f121b; --gem: #a3202d; }
.k-art {
  position: absolute; top: 13%; left: 5.5%; right: 5.5%; height: 48%; border-radius: 0.35em; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff3d2, #d9b66e 70%); display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(60, 35, 10, 0.55);
}
.k-art span { font-size: 3.2em; }
.k-art i { position: absolute; inset: 0; background: center / cover no-repeat; }
.k-gem {
  position: absolute; top: 56.5%; left: 7%; z-index: 2; background: var(--gem); color: #fff; font-family: var(--display); font-weight: 600;
  font-size: 0.6em; letter-spacing: 0.06em; padding: 0.15em 0.6em; border-radius: 1em; border: 1.5px solid #f7dc92; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.k-name {
  position: absolute; top: 2%; left: -2%; right: -2%; height: 1.9em; z-index: 2; display: grid; place-items: center;
  background: linear-gradient(180deg, #6b4520, #3d2711); color: #fff6dd; font-family: var(--display); font-weight: 600; font-size: 1em;
  clip-path: polygon(0 18%, 6% 0, 94% 0, 100% 18%, 97% 50%, 100% 82%, 94% 100%, 6% 100%, 0 82%, 3% 50%);
  text-shadow: 0 1px 0 #000; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.k-name span { padding: 0 0.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.k-text {
  position: absolute; top: 64%; left: 7%; right: 7%; bottom: 10%; border-radius: 0.5em; padding: 0.3em 0.45em;
  background: linear-gradient(180deg, #fbf1d9, #efdcb4); color: #3b2a16; font-size: 0.72em; line-height: 1.22; text-align: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(90, 60, 20, 0.25);
}
.k-foot { position: absolute; bottom: 2.4%; left: 0; right: 0; text-align: center; font-size: 0.56em; font-weight: 700; color: rgba(255, 250, 235, 0.92); letter-spacing: 0.03em; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); }
.kart.big { --w: 230px; }

/* el (alt kenar) */
.hand-dock { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: min(820px, 100%); height: 108px; z-index: 30; pointer-events: none; }
.hslot {
  position: absolute; left: 50%; bottom: -78px; width: 128px; margin-left: -64px; transform-origin: 50% 130%;
  transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1); pointer-events: auto; cursor: pointer; touch-action: none;
}
.hslot.hover { transform: translate(var(--x), -150px) rotate(0deg) scale(1.55); }
.hslot.dragging { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy) - 40px)) rotate(0deg) scale(1.2); transition: none; z-index: 200 !important; cursor: grabbing; }
.hslot.playable .kart { box-shadow: 0 0 0 2px #7cf59a, 0 0 18px rgba(90, 240, 130, 0.85), 0 6px 16px rgba(0, 0, 0, 0.45); animation: playGlow 1.8s ease-in-out infinite; }
.hslot.dragging.armed .kart { box-shadow: 0 0 0 3px #b6ffc7, 0 0 34px #5cf07f; }
.hslot.selected { transform: translate(var(--x), -46px) rotate(0deg); }
.hslot.selected .kart { box-shadow: 0 0 0 3px var(--accent), 0 0 18px rgba(209, 73, 91, 0.9); }
.hslot.drawn { animation: drawIn 0.85s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes playGlow { 50% { box-shadow: 0 0 0 2px #7cf59a, 0 0 8px rgba(90, 240, 130, 0.5), 0 6px 16px rgba(0, 0, 0, 0.45); } }
@keyframes drawIn { from { transform: translate(470px, -230px) rotate(35deg) scale(0.35); opacity: 0; } 55% { opacity: 1; } }
.hand-empty { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); color: rgba(255, 255, 255, 0.55); font-size: 13px; white-space: nowrap; }
.kart-ghost { position: fixed; z-index: 75; pointer-events: none; }
.kart-ghost .kart { --w: 100%; width: 100%; height: 100%; font-size: inherit; }

/* destede kalan kart ve gizli hedef */
.deck { position: absolute; right: 4px; bottom: 10px; width: 66px; height: 94px; pointer-events: auto; }
.deck i { position: absolute; inset: 0; border-radius: 8px; border: 2px solid #c9a24a; background: url(../assets/kart/arka.jpg) center / cover, linear-gradient(145deg, #1d2b4f, #00798c); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35); }
.deck i:nth-child(2) { transform: translate(-3px, -3px); }
.deck i:nth-child(3) { transform: translate(-6px, -6px); }
.deck b { position: absolute; right: -8px; top: -14px; background: var(--ink); color: #fff; border: 2px solid #c9a24a; border-radius: 999px; font-size: 12px; padding: 1px 7px; font-family: var(--display); }
.quest {
  position: absolute; left: 4px; bottom: 10px; width: 150px; pointer-events: auto; cursor: help; border-radius: 12px; padding: 8px 10px;
  background: linear-gradient(150deg, #2a2016, #4a3417); color: #fff3d6; border: 2px solid #c9a24a; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.2s;
}
.quest .q-k { font-size: 10px; letter-spacing: 0.15em; color: #f7dc92; font-weight: 800; }
.quest .q-n { font-family: var(--display); font-weight: 600; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.quest .q-t { font-size: 12px; color: #e9dcc0; max-height: 0; overflow: hidden; transition: max-height 0.25s; }
.quest .q-ok { color: #8ff0a8; font-size: 12px; font-weight: 700; }
.quest:hover { transform: translateY(-60px); }
.quest:hover .q-t { max-height: 80px; margin-top: 4px; }

/* başkasının oynadığı kart ortada gösterilir */
.reveal { position: fixed; z-index: 58; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -50%); animation: revealIn 2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
.reveal .who { background: rgba(10, 14, 28, 0.85); color: #fff; padding: 6px 14px; border-radius: 999px; font-family: var(--display); font-weight: 600; display: flex; gap: 8px; align-items: center; }
@keyframes revealIn { 0% { opacity: 0; transform: translate(-50%, -40%) scale(0.6) rotateY(80deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateY(0); } 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(0.85); } }

@keyframes qBob { 50% { transform: translateY(-7%) rotate(-7deg) scale(1.06); } }

/* SÜRPRİZ açılışı: soru işaretli kart döner, arkasında etki yazar */
/* saydamlık yüzlerde: 3B çeviren kutuya opacity verilirse çevirme düzleşir */
.surp { position: fixed; z-index: 58; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -50%); perspective: 1100px; }
.surp .who { background: rgba(10, 14, 28, 0.85); color: #fff; padding: 6px 14px; border-radius: 999px; font-family: var(--display); font-weight: 600; display: flex; gap: 8px; align-items: center; animation: surpFade 3s ease forwards; }
.surp .sflip { width: 230px; height: 300px; position: relative; transform-style: preserve-3d; animation: surpFlip 3s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.surp .sface { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 3px #ffd75e; animation: surpFade 3s ease forwards; }
.surp .sfront { background: radial-gradient(circle at 50% 38%, #ff8ad8 0, #b146d8 36%, #5a1f97 72%, #2c0f5c 100%); }
.surp .sfront b { font-family: var(--display); font-size: 150px; line-height: 1; color: #ffd75e; text-shadow: 0 0 24px rgba(255, 215, 94, 0.8), 0 6px 0 #b8741a; }
.surp .sback { transform: rotateY(180deg); background: linear-gradient(170deg, #fff8e8, #f6e6c4); color: var(--ink); padding: 18px; gap: 8px; }
.surp .si { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.surp .sn { font-family: var(--display); font-weight: 700; font-size: 24px; color: #5a1f97; line-height: 1.1; }
.surp .sx { font-size: 15px; line-height: 1.35; color: #3b3f4a; }
@keyframes surpFade { 0% { opacity: 0; } 12%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes surpFlip {
  0% { transform: translateY(40px) scale(0.6) rotateY(0) rotate(-6deg); }
  14%, 28% { transform: translateY(0) scale(1) rotateY(0) rotate(-3deg); }
  46% { transform: scale(1.08) rotateY(190deg); }
  56%, 86% { transform: scale(1) rotateY(180deg); }
  100% { transform: translateY(-40px) scale(0.9) rotateY(180deg); }
}
body.dark .surp .sback { background: linear-gradient(170deg, #26304d, #1e2741); color: #f1f4fb; }
body.dark .surp .sn { color: #e3a8ff; }
body.dark .surp .sx { color: #c9d1e3; }

/* ================= Sağ panel ================= */
.side { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 80px); min-height: 0; }
.seats-panel { display: flex; flex-direction: column; gap: 8px; }
.seat2 {
  --c: #888; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; cursor: pointer;
  background: rgba(255, 252, 244, 0.97); border-radius: 16px; padding: 9px 12px 9px 10px; box-shadow: 0 6px 16px rgba(5, 10, 25, 0.25);
  border-left: 5px solid var(--c); transition: transform 0.15s, box-shadow 0.2s;
}
.seat2:hover { transform: translateX(-2px); }
.seat2.turn { box-shadow: 0 0 0 2px var(--c), 0 0 22px color-mix(in srgb, var(--c) 60%, transparent), 0 6px 16px rgba(5, 10, 25, 0.25); }
.seat2 .s-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25); position: relative; }
.seat2.turn .s-av::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed var(--c); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seat2 .s-name { font-family: var(--display); font-weight: 600; font-size: 15.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seat2 .s-tag { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 1px 6px; border-radius: 6px; background: var(--c); color: #fff; }
.seat2 .s-tag.me { background: var(--ink); }
.seat2 .s-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seat2 .s-backs { display: inline-flex; }
.seat2 .s-backs i { width: 10px; height: 14px; border-radius: 2px; margin-right: -4px; border: 1px solid #c9a24a; background: linear-gradient(145deg, #1d2b4f, #00798c); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.seat2 .s-cash { font-family: var(--display); font-weight: 600; font-size: 19px; text-align: right; font-variant-numeric: tabular-nums; }
.seat2 .s-cash.neg { color: var(--accent); }
.seat2 .s-cash small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 600; }
.seat2 .s-wait { width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: blink 1s infinite; }
.seat2 .s-acts { grid-column: 1 / -1; display: flex; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.seat2 .s-acts .btn { flex: 1; }
.feed-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; padding: 6px 2px 2px; }

/* ================= Ortadaki gündem barı ================= */
.news-bar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f1e4); box-shadow: 0 6px 18px rgba(20, 30, 60, 0.16), inset 0 0 0 1px #e8dcc0; position: relative; overflow: hidden;
}
.news-bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--accent), var(--gold)); }
.news-bar .nb-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(145deg, #1d2b4f, #314a85); box-shadow: 0 4px 10px rgba(29, 43, 79, 0.35); }
.news-bar .nb-k { font-size: 10.5px; letter-spacing: 0.18em; font-weight: 800; color: var(--accent); }
.news-bar .nb-t { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.15; }
.news-bar .nb-x { font-size: 13px; color: #5d6170; line-height: 1.3; }
.news-bar .nb-mods { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.news-bar .nb-mods .chip { background: #fff1d0; color: #7a4e00; }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #ece5d3 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring b, .ring span { position: relative; text-align: center; line-height: 1; }
.ring b { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.ring span { display: block; font-size: 9px; color: var(--muted); font-weight: 700; margin-top: 2px; }

/* ================= Bildirimler ================= */
.toasts { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; align-items: center; }
.toast {
  background: rgba(255, 253, 247, 0.98); color: var(--ink); padding: 10px 18px 10px 14px; border-radius: 14px; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 26px rgba(5, 10, 25, 0.35); border-left: 5px solid var(--turq); max-width: 520px; animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.toast.error { border-left-color: var(--accent); }
.toast.good { border-left-color: var(--green); }
.toast.card { border-left-color: var(--gold); }
@keyframes toastIn { from { transform: translateY(-16px) scale(0.95); opacity: 0; } }

/* ================= Ses ayarları ================= */
.audio-pop { position: fixed; top: 54px; right: 14px; z-index: 65; width: 260px; background: #fffdf7; border-radius: 16px; padding: 14px; box-shadow: 0 16px 36px rgba(5, 10, 25, 0.45); display: flex; flex-direction: column; gap: 12px; }
.audio-pop h4 { margin: 0; font-size: 15px; }
.audio-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.audio-row label { font-weight: 700; font-size: 13.5px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.audio-row .slider { grid-column: 1 / -1; }


/* ================= Görsel güçlendirme (v0.4) ================= */
/* tahta çerçevesi: koyu ceviz, altın çizgi */
.board {
  background: linear-gradient(145deg, #4a3422, #2a1c11 55%, #3b2918);
  padding: 9px; gap: 3px; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #c9a24a, inset 0 0 0 5px #2a1c11, inset 0 0 0 6px rgba(201, 162, 74, 0.5);
}
.cell { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.cell.buyable { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.cell:hover { transform: translateY(-1px); }

/* tahta ortası: hafif filigran */
.board-center { position: relative; }
.board-center::before {
  content: 'RANT'; position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--size) / 5.2); letter-spacing: 0.06em; color: rgba(36, 64, 142, 0.05);
}
.board-center > * { position: relative; }

/* olaylar paneli: sade, büyük yazı */
.feed-list { gap: 0; padding: 4px 0 0; font-size: 14.5px; }
.ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); line-height: 1.4; color: #2f3442; }
.ev-i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #f1ead9; }
.ev.t-card .ev-i { background: #fff1cf; }
.ev.t-demolish .ev-i, .ev.t-konkordato .ev-i { background: #fde2e4; }
.ev.t-auction .ev-i, .ev.t-own .ev-i, .ev.t-tradeDone .ev-i { background: #dcf3e6; }
.ev.t-over { font-weight: 700; }
.ev-round { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 2px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(90deg, #24408e, #3557b0); color: #fff; }
.ev-round b { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; }
.ev-round span { font-size: 14px; opacity: 0.9; }

/* ================= Karanlık mod ================= */
body.dark { --line: #344061; --muted: #9aa5bf; }
body.dark .board { background: linear-gradient(145deg, #1a2238, #0e1424 55%, #18203a); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #8f7a45, inset 0 0 0 5px #0e1424, inset 0 0 0 6px rgba(143, 122, 69, 0.5); }
body.dark .cell.buyable { background: #232c46; color: #e9edf7; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
body.dark .cell .city { color: #8f9ab4; }
body.dark .cell .band { background: #4a5168; }
body.dark .cell.owned .band { background: var(--pc); }
body.dark .cell:hover { box-shadow: inset 0 0 0 2px #e9edf7; }
body.dark .cell.open { box-shadow: inset 0 0 0 3px #e9edf7; }
body.dark .floors b { background: rgba(255, 214, 120, 0.16); color: #ffd98a; box-shadow: inset 0 0 0 1px rgba(255, 214, 120, 0.35); }
body.dark .floors b.k { background: rgba(255, 140, 110, 0.16); color: #ffb3a0; box-shadow: inset 0 0 0 1px rgba(255, 140, 110, 0.35); }
body.dark .board-center {
  background: radial-gradient(circle at 50% 50%, rgba(36, 46, 76, 0.95), rgba(20, 27, 46, 0.95) 65%),
    repeating-conic-gradient(from 45deg at 50% 50%, rgba(0, 121, 140, 0.16) 0 25%, rgba(36, 64, 142, 0.1) 0 50%) 0 0 / 46px 46px;
  box-shadow: inset 0 0 0 2px #2c3756; color: #e9edf7;
}
body.dark .board-center::before { color: rgba(255, 255, 255, 0.035); }
body.dark .prompt h3, body.dark .prompt .who { color: #f1f4fb; }
body.dark .prompt p { color: #aab3c8; }
body.dark .news-bar { background: linear-gradient(180deg, #26304d, #1e2741); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px #34405f; }
body.dark .news-bar .nb-t { color: #f1f4fb; }
body.dark .news-bar .nb-x { color: #aab3c8; }
body.dark .ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #34405f 0); }
body.dark .ring::before { background: #1e2741; }
body.dark .ring b { color: #f1f4fb; }
body.dark .buycard, body.dark .moneybox { background: #232c46; color: #e9edf7; box-shadow: 0 0 0 1px #34405f; }
body.dark .amount { color: #f1f4fb; }
body.dark .btn.ghost { color: #e9edf7; box-shadow: inset 0 0 0 2px #3a4766; }
body.dark .timer { background: #34405f; }
body.dark .seat2 { background: rgba(30, 39, 65, 0.97); color: #e9edf7; }
body.dark .seat2 .s-acts { border-top-color: #34405f; }
body.dark .ev { color: #d4dbea; border-bottom-color: rgba(255, 255, 255, 0.05); }
body.dark .ev-i { background: #2c3756; }
body.dark .ev.t-card .ev-i { background: #4a3d1c; }
body.dark .ev.t-demolish .ev-i, body.dark .ev.t-konkordato .ev-i { background: #4f2530; }
body.dark .ev.t-auction .ev-i, body.dark .ev.t-own .ev-i, body.dark .ev.t-tradeDone .ev-i { background: #1f4434; }
body.dark .pop { background: #1e2741; color: #e9edf7; }
body.dark .pop tr.cur td { background: #3d3720; }
body.dark .pop .po, body.dark .pop .pn { color: #aab3c8; }

/* dar ekran: tahta, el ve panel alt alta */
@media (max-width: 1100px) {
  .game { height: auto; overflow: visible; }
  .table { flex-direction: column; align-items: center; padding-bottom: 20px; }
  .board { --size: min(calc(100vw - 28px), 900px); min-width: 0; min-height: 0; }
  .side { width: min(100%, 900px); max-height: none; }
  .hand-dock { position: relative; top: auto; left: auto; transform: none; margin: 8px auto 0; height: 196px; }
  .hslot { bottom: 4px; }
}
.ring > div { position: relative; text-align: center; }
.cdlg { display: flex; gap: 20px; align-items: flex-start; }
.cdlg-r { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.react-card { display: flex; gap: 14px; align-items: center; text-align: left; }
.react-card .kart { --w: 96px; flex: none; }
@media (max-width: 640px) { .cdlg { flex-direction: column; align-items: center; } }

/* ================= Tahta kareleri (v0.6) ================= */
/* Mülk: alınmamışken şehrin renkleri buzlu camın arkasından görünür; alınınca cam kalkar, kare sahibinin rengine bürünür. */
.cell.k-prop { overflow: visible; background: transparent; }
.cell .frost { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #fbf6ea; transition: background-color 0.4s; }
.cell .frost::before {
  content: ''; position: absolute; inset: -30%; opacity: 0.8; filter: blur(9px); transition: opacity 0.4s;
  background: radial-gradient(circle at 28% 32%, var(--gc) 0 22%, transparent 48%), radial-gradient(circle at 74% 70%, var(--gt) 0 20%, transparent 46%),
    radial-gradient(circle at 82% 16%, var(--gc) 0 10%, transparent 30%);
}
.cell .frost::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0.4));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cell.k-prop .nm, .cell.k-prop .city, .cell.k-prop .floors { position: relative; z-index: 1; }
.cell.k-prop .nm { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.cell.k-prop .band { z-index: 1; }
/* içerik şeride yaslanır, karenin dış kenarı taşlara kalır (src/ui/slots.js) */
.cell.k-prop.side-b, .cell.k-prop.side-l, .cell.k-prop.side-r { justify-content: flex-start; }
.cell.k-prop.side-t { justify-content: flex-end; }
.cell.k-prop.side-l, .cell.k-prop.side-r { padding-top: 7%; }
.cell.k-prop.owned .frost { background: color-mix(in srgb, var(--pc) 16%, #fffdf7); }
.cell.k-prop.owned .frost::before { opacity: 0.1; }
.cell.k-prop.side-b .band { border-radius: 8px 8px 0 0; }
.cell.k-prop.side-t .band { border-radius: 0 0 8px 8px; }
.cell.k-prop.side-l .band { border-radius: 0 8px 8px 0; }
.cell.k-prop.side-r .band { border-radius: 8px 0 0 8px; }

/* şehir rozeti: plaka kodu, iç kenardan tahta ortasına taşar; tam sette altın halka */
.cell .plate {
  position: absolute; z-index: 4; width: 2.15em; height: 2.15em; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: var(--gc); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.9em; line-height: 1;
  box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, 0.35); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.cell.side-b .plate { top: 0; left: 50%; transform: translate(-50%, -55%); }
.cell.side-t .plate { bottom: 0; left: 50%; transform: translate(-50%, 55%); }
.cell.side-l .plate { right: 0; top: 50%; transform: translate(55%, -50%); }
.cell.side-r .plate { left: 0; top: 50%; transform: translate(-55%, -50%); }
.cell.fullset .plate { box-shadow: 0 0 0 2px var(--gold), 0 0 10px var(--gold), 0 2px 5px rgba(0, 0, 0, 0.35); }

/* özel kareler ve ulaşım: ad ve sade ikon */
.cell .lbl { position: relative; z-index: 1; font-family: var(--display); font-weight: 700; font-size: 0.95em; line-height: 1.05; overflow-wrap: anywhere; }
.cell .ic { position: relative; z-index: 1; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.cell .ic .ico { height: 100%; max-height: 3.7em; width: auto; aspect-ratio: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18)); transition: transform 0.25s; }
.cell:hover .ic .ico { transform: scale(1.1) rotate(-4deg); }
.cell.corner { gap: 3px; padding: 6px 4px; }
.cell.corner .ic .ico { max-height: 4.6em; }
.cell.corner .lbl { font-size: 1.05em; }
.cell.k-transport .lbl { font-size: 0.78em; letter-spacing: -0.01em; overflow-wrap: normal; }
.cell.k-transport.side-l .lbl, .cell.k-transport.side-r .lbl { font-size: 0.7em; }
.cell.k-transport { background: linear-gradient(160deg, #f6f8fc, #e4e9f2); }
.cell.k-transport.owned { background: color-mix(in srgb, var(--pc) 14%, #f6f8fc); }
.cell.k-chance .lbl { color: #e07b12; }
.cell.k-surpriz .lbl { color: #d63384; }
.cell.k-surpriz .ic .ico { animation: qBob 2.8s ease-in-out infinite; }

/* son olaylar: tahtanın ortasının altında, en yenisi üstte, aşağı doğru solar */
.board-center { padding-bottom: 16px; }
.board-feed {
  flex: none; height: 8.2em; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.board-feed .ev { padding: 0; border: 0; gap: 7px; align-items: center; max-width: 94%; line-height: 1.3; }
.board-feed .ev > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.board-feed .ev-i { width: 20px; height: 20px; font-size: 11px; }
.board-feed .ev:first-child { font-weight: 700; animation: feedIn 0.45s ease-out; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } }
.modal .feed-list { max-height: 62vh; }

body.dark .cell .frost { background: #1c2440; }
body.dark .cell .frost::before { opacity: 0.5; }
body.dark .cell .frost::after {
  background: linear-gradient(160deg, rgba(44, 55, 88, 0.55), rgba(20, 26, 46, 0.32) 55%, rgba(30, 38, 64, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body.dark .cell.k-prop .nm { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
body.dark .cell.k-prop.owned .frost { background: color-mix(in srgb, var(--pc) 30%, #1c2440); }
body.dark .cell.special, body.dark .cell.corner { background: linear-gradient(160deg, #27314f, #1b2338); color: #e9edf7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
body.dark .cell.k-transport { background: linear-gradient(160deg, #2a3555, #1f2840); }
body.dark .cell.k-transport.owned { background: color-mix(in srgb, var(--pc) 26%, #1f2840); }
body.dark .cell.k-chance .lbl { color: #ffb347; }
body.dark .cell.k-surpriz .lbl { color: #ff8ac6; }
body.dark .board-feed .ev { color: #d4dbea; }
