/*
 * TheChess.Art — Game (Heatmap Neutralize) stiller
 * Mobile-first: tek sütun, büyük dokunma hedefleri. Desktop'ta genişler.
 */

.game-shell {
  min-height: 100vh;
  background: var(--body);
  color: var(--primary);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Hearts badge + block modal
   ============================================================ */
.hearts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  height: 32px;
  border-radius: 16px;
  background: rgba(242, 72, 37, 0.12);
  border: 1px solid rgba(242, 72, 37, 0.4);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hearts-badge.is-empty { background: rgba(109, 16, 8, 0.3); border-color: var(--muted); color: var(--primary-dim); }
.hearts-badge.is-full { cursor: default; }
.hearts-badge__icon { color: var(--accent); font-size: 14px; line-height: 1; }
.hearts-badge.is-empty .hearts-badge__icon { color: var(--muted); filter: grayscale(1); }
.hearts-badge__count { line-height: 1; }
.hearts-badge__timer {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--primary-dim);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
}
@media (hover: hover) {
  .hearts-badge:hover:not(.is-full) { background: rgba(242, 72, 37, 0.2); border-color: var(--accent); }
}

.hearts-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.88);
  z-index: 100;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
.hearts-modal.is-open { display: flex; opacity: 1; }
.hearts-modal__panel {
  max-width: 360px; width: 100%;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.hearts-modal__icon { font-size: 42px; margin-bottom: 12px; line-height: 1; }
.hearts-modal__title { font-family: var(--font-serif); font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.hearts-modal__sub { color: var(--primary-dim); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.hearts-modal__timer {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 16px; color: var(--accent); margin-bottom: 18px;
  font-variant-numeric: tabular-nums; min-height: 18px;
}
.hearts-modal__actions { display: flex; flex-direction: column; gap: 8px; }
.hearts-modal__btn {
  padding: 12px 16px; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-sans); font-weight: 700;
  border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--primary); cursor: pointer;
  transition: all var(--t-fast);
}
.hearts-modal__btn--primary { background: var(--accent); border-color: var(--accent); color: var(--body); }
.hearts-modal__btn:disabled { opacity: 0.5; cursor: wait; }
@media (hover: hover) {
  .hearts-modal__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .hearts-modal__btn--primary:hover:not(:disabled) { background: var(--accent-hot); color: var(--body); }
}

/* Daily challenge home card */
.daily-card {
  display: block;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(242, 72, 37, 0.12), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--accent);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--t-fast);
}
@media (hover: hover) {
  .daily-card:hover { transform: translateY(-2px); }
}
.daily-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.daily-card__eyebrow { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.daily-card__count { font-family: var(--font-serif); font-size: 22px; line-height: 1; color: var(--gold); }
.daily-card__title { font-family: var(--font-serif); font-size: 20px; margin-bottom: 4px; }
.daily-card__sub { font-size: 12px; color: var(--primary-dim); }

.streak-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 10px;
  background: rgba(212, 175, 55, 0.15); border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}

/* Play sayfasında: DAİMA scroll-lock. Layout 100vh'e sığacak şekilde tasarlandı. */
html.is-play-page, html.is-play-page body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;               /* pinch zoom + scroll-by-drag kapalı */
  -webkit-overflow-scrolling: auto;
  position: fixed;                  /* iOS bounce scroll önler */
  width: 100%;
  left: 0; top: 0;
}
html.is-play-page body.is-dragging { /* backward-compat — eski class kalabilir */ }

.game-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.game-topbar__back, .game-topbar__tool {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dim);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.game-topbar__back:hover, .game-topbar__tool:hover {
  color: var(--primary);
  border-color: var(--accent);
}
.game-topbar__title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Level Map (Candy Crush style)
   ============================================================ */
.level-map {
  padding: 32px 20px 80px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.level-map__head {
  text-align: center;
  margin-bottom: 40px;
}
.level-map__eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.level-map__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  color: var(--primary);
}
.level-map__sub {
  margin-top: 14px;
  color: var(--primary-dim);
  font-size: 14px;
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.5;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 480px) {
  .level-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ============================================================
   Rooms grid — 15 oda, ilk 2 free, sonrası paid
   ============================================================ */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 480px) { .room-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.room-tile {
  position: relative;
  aspect-ratio: 1 / 1.25;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  overflow: hidden;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
button.room-tile { appearance: none; -webkit-appearance: none; }
button.room-tile.is-locked { cursor: pointer; }
@media (hover: hover) {
  .room-tile:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--panel-2); }
}
.room-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.room-tile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.room-tile__num { font-family: var(--font-serif); font-size: 30px; line-height: 0.9; color: var(--accent); }
.room-tile__badge {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-dim); padding: 3px 6px; border: 1px solid var(--line);
  border-radius: 3px; white-space: nowrap;
}
.room-tile__badge--free { color: var(--gold); border-color: var(--gold); }
.room-tile__name { font-family: var(--font-serif); font-size: 17px; line-height: 1.1; margin: 10px 0 4px; }
.room-tile__theme { font-size: 11px; color: var(--primary-dim); line-height: 1.4; }
.room-tile__foot { display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--primary-dim); margin-top: auto; }
.room-tile__stars { color: var(--gold); letter-spacing: 1px; }
.room-tile.is-locked { opacity: 0.55; border-style: dashed; }
.room-tile.is-locked .room-tile__num { color: var(--muted); }
.room-tile.is-locked::after {
  content: '🔒'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 30px; opacity: 0.4;
}

/* Hint tray — kapalı default, ikon ile açılır */
.play-hint {
  margin: 0 20px 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  color: var(--primary-dim);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 4px;
  display: none;
}
.play-hint.is-open { display: block; }
.hint-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--primary-dim); font-size: 14px; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.hint-btn.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
@media (hover: hover) {
  .hint-btn:hover { color: var(--primary); border-color: var(--primary-dim); }
}

.level-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  overflow: hidden;
}
.level-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--panel-2);
}
.level-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.level-tile__num {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
}
.level-tile__name {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dim);
  padding: 0 6px;
  text-align: center;
}
.level-tile__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}
.level-tile__stars span.is-off { color: var(--muted); }

.level-tile.is-locked {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  pointer-events: none;
}
.level-tile.is-locked .level-tile__num { color: var(--muted); }
.level-tile.is-locked::after {
  content: '🔒';
  position: absolute;
  font-size: 18px;
  opacity: 0.7;
}
.level-tile.is-locked .level-tile__num,
.level-tile.is-locked .level-tile__name {
  opacity: 0.3;
}

.level-tile.is-current {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(242, 72, 37, 0.08) 100%);
}

/* ============================================================
   Play screen
   ============================================================ */
.play-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;                   /* iOS Safari URL bar hesaba kat */
  overflow: hidden;
  touch-action: none;
}

.play-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 6px;
}
.play-meta__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.play-meta__cell--right { text-align: right; }
.play-meta__cell--center { align-items: center; }
.play-meta__label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--secondary);
}
.play-meta__value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
}
.play-meta__value--accent { color: var(--accent); }
.play-meta__timer {
  font-variant-numeric: tabular-nums;
}

.play-timer-bar {
  height: 3px;
  background: var(--line);
  margin: 6px 20px 12px;
  overflow: hidden;
  border-radius: 2px;
}
.play-timer-bar__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  transition: width 0.25s linear, background 0.25s linear;
}
.play-timer-bar__fill.is-warn { background: #ff6a42; }
.play-timer-bar__fill.is-danger { background: #ff2d2d; }

/* Board */
.play-board {
  padding: 12px 18px;
  display: flex;
  justify-content: center;
  position: relative; /* overlay absolute parent */
}
.play-board__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  max-width: min(92vw, 520px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--panel);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
/* Kare + ısı rengi (tek ton, açık kırmızı) */
.play-sq {
  --heat-1: #E86349;   /* 1 — açık mercan */
  --heat-2: #DF4B33;   /* 2 — orta */
  --heat-3: #D4351F;   /* 3 — koyu */
  --heat-4: #BE220F;   /* 4+ — yoğun */
  --heat-neg: #6D1008; /* aşım — bordo */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--primary);
  background: var(--square-dark);
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}
.play-sq.is-light    { background: var(--square-light); color: var(--body); }
/* Isı kademeleri — yüksek sayılar kümülatif class ile daha koyu */
.play-sq.is-heat              { background: var(--heat-1); color: #0f0f0f; }
.play-sq.is-heat.is-heat-2    { background: var(--heat-2); color: #0f0f0f; }
.play-sq.is-heat.is-heat-3    { background: var(--heat-3); color: #fff; }
.play-sq.is-heat.is-heat-4    { background: var(--heat-4); color: #fff; }
.play-sq.is-negative          { background: var(--heat-neg); color: #fff; }
.play-sq.is-drop-target { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }

.play-sq.is-flash { animation: sqFlash 0.42s cubic-bezier(.22,.61,.36,1); }
.play-sq.is-flash-restore { animation: sqFlashRestore 0.42s cubic-bezier(.22,.61,.36,1); }
@keyframes sqFlash {
  0%   { box-shadow: inset 0 0 0 0 transparent; }
  45%  { box-shadow: inset 0 0 0 3px #ffffff; }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}
@keyframes sqFlashRestore {
  0%   { box-shadow: inset 0 0 0 0 transparent; }
  45%  { box-shadow: inset 0 0 0 3px rgba(106, 209, 122, 0.85); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* Sayı — kare içinde büyük, ortalı, renkli pill yok */
.play-sq__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 4.8vw, 34px);
  line-height: 1;
  color: inherit;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.play-sq.is-flash .play-sq__num,
.play-sq.is-flash-restore .play-sq__num { animation: numPop 0.42s cubic-bezier(.22,.61,.36,1); }
@keyframes numPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.play-sq__piece {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Unicode MS', 'Segoe UI Symbol', 'Apple Symbols', serif;
  font-size: clamp(28px, 6vw, 42px);
  color: var(--primary);
  text-shadow: 0 0 0 var(--body), -1px -1px 0 var(--body), 1px 1px 0 var(--body);
  pointer-events: auto;
  cursor: grab;
}
.play-sq__piece:active { cursor: grabbing; }
.play-sq__piece.is-ghost { opacity: 0.45; }
.play-sq__piece { transition: transform 0.25s cubic-bezier(.22,.61,.36,1), opacity 0.2s ease-out; }
.play-sq__piece.is-spawn { transform: scale(0); opacity: 0; }
.play-sq__piece.is-fade { opacity: 0; transform: scale(0.6); }
.play-sq.has-piece .play-sq__num { display: none; }   /* taş üstündeyken sayıyı gizle */

/* Dock */
.play-dock {
  padding: 12px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.play-dock__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--secondary);
}
.play-dock__slots {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
}
.dock-piece {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Unicode MS', 'Segoe UI Symbol', 'Apple Symbols', serif;
  font-size: 34px;
  color: var(--primary);
  cursor: grab;
  touch-action: none;               /* scroll/zoom blokla, drag'ı fire et */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
@media (hover: hover) {
  .dock-piece:hover:not(.is-placed) {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--panel-2);
  }
}
.dock-piece:active { cursor: grabbing; transform: scale(1.05); }
.dock-piece.is-placed {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.dock-piece.is-active {
  border-color: var(--accent);
  background: var(--panel-2);
}

/* Drag preview — takip eden tooltip */
.drag-preview {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  font-family: 'Arial Unicode MS', 'Segoe UI Symbol', 'Apple Symbols', serif;
  font-size: 44px;
  color: var(--primary);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(242, 72, 37, 0.5));
  transition: transform 0.05s;
}

/* Win/Lose overlay — tahta'nın üstünde belirir */
.game-overlay {
  position: absolute;
  inset: 12px 18px;   /* .play-board iç padding ile uyumlu */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.82);
  z-index: 10;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  padding: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
.game-overlay.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.game-overlay__panel {
  max-width: min(92%, 420px);
  width: 100%;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  animation: overlayPop 0.22s ease-out forwards;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
/* Scale kaldırıldı: transform animasyonu sırasında iOS'ta buton hit-area kayıyor, ilk tap kaçıyor. */
@keyframes overlayPop {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.game-overlay__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.game-overlay__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.game-overlay__stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}
.game-overlay__stars span {
  animation: starPop 0.5s cubic-bezier(.22,.61,.36,1) backwards;
}
.game-overlay__stars span:nth-child(1) { animation-delay: 0.25s; }
.game-overlay__stars span:nth-child(2) { animation-delay: 0.40s; }
.game-overlay__stars span:nth-child(3) { animation-delay: 0.55s; }
@keyframes starPop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.game-overlay__stars span.is-off { color: var(--muted); opacity: 0.3; }
.game-overlay__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.game-overlay__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  background: var(--body);
  border-radius: 6px;
}
.game-overlay__stat b {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
}
.game-overlay__stat span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.game-overlay__actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.game-overlay__actions .game-btn {
  padding: 11px 16px;
  font-size: 12px;
}

.game-btn {
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.game-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--body);
}
/* Hover sadece gerçek pointer cihazlarında — iOS ghost-hover fix */
@media (hover: hover) {
  .game-btn:hover { border-color: var(--accent); color: var(--accent); }
  .game-btn--primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: var(--body); }
}
.game-btn:active { transform: scale(0.97); }

/* Hint bar */
.play-hint {
  margin: 0 20px 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  color: var(--primary-dim);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 4px;
}

/* Desktop tweaks */
@media (min-width: 720px) {
  .play-board__grid { max-width: 560px; }
  .dock-piece { width: 64px; height: 64px; font-size: 40px; }
}

/* ============================================================
   Purchase overlay — kilitli oda IAP dialog
   ============================================================ */
.purchase-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.purchase-overlay.is-open { display: flex; }
.purchase-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: purchaseFadeIn 0.2s ease;
}
.purchase-overlay__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #141414;
  border: 1px solid rgba(242, 72, 37, 0.3);
  border-radius: 18px;
  padding: 32px 26px 26px;
  color: var(--primary);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: purchaseSlideUp 0.25s ease;
}
@keyframes purchaseFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes purchaseSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.purchase-overlay__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--primary-dim);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
}
.purchase-overlay__x:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.purchase-overlay__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 10px;
}
.purchase-overlay__title {
  font-family: var(--font-serif, serif);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.purchase-overlay__lede {
  color: var(--primary-dim);
  font-size: 14px;
  margin-bottom: 20px;
}
.purchase-overlay__packs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.purchase-pack {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #1c1c1c;
  border: 1px solid rgba(237, 227, 206, 0.12);
  border-radius: 12px;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.purchase-pack:hover { border-color: rgba(242, 72, 37, 0.5); background: #202020; }
.purchase-pack:active { transform: scale(0.98); }
.purchase-pack.is-recommended { border-color: rgba(242, 72, 37, 0.4); }
.purchase-pack.is-bestvalue { border-color: var(--accent); background: rgba(242, 72, 37, 0.06); }
.purchase-pack__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.purchase-pack__name { font-weight: 600; font-size: 14px; }
.purchase-pack__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  background: var(--accent);
  color: #0f0f0f;
  border-radius: 999px;
}
.purchase-pack__price {
  font-family: var(--font-serif, serif);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 4px;
}
.purchase-pack__meta { font-size: 11px; color: var(--primary-dim); }
.purchase-overlay__note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--primary-dim);
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.purchase-overlay__note strong { color: var(--primary); }

/* ============================================================
   Onboarding — ilk açılış 3 slide
   ============================================================ */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.onboard.is-open { opacity: 1; pointer-events: auto; }
.onboard__skim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.onboard__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #141414;
  border: 1px solid rgba(242, 72, 37, 0.22);
  border-radius: 20px;
  padding: 48px 0 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.onboard__skip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--primary-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.onboard__skip:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.onboard__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}
.onboard-slide {
  flex: 0 0 100%;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.onboard-slide__art {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-slide__text { text-align: center; }
.onboard-slide__title {
  font-family: var(--font-serif, serif);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--primary);
}
.onboard-slide__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--primary-dim);
  max-width: 280px;
  margin: 0 auto;
}
.onboard__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.onboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(237, 227, 206, 0.25);
  transition: background 0.2s, width 0.2s;
  cursor: pointer;
}
.onboard__dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }
.onboard__cta {
  display: block;
  margin: 0 28px;
  padding: 14px 20px;
  background: var(--accent);
  color: #0f0f0f;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.onboard__cta:hover { background: var(--accent-hot, #FF6A42); }
.onboard__cta:active { transform: scale(0.98); }
