[hidden] { display: none !important; }

:root {
  --bg-1: #4b2e1b;
  --bg-2: #1d1109;
  --frame-hi: #9a6238;
  --frame-lo: #5a331b;
  --cell-a: #3a2416;
  --cell-b: #543722;
  --cell-line: rgba(0, 0, 0, .3);
  --cell-hl: #6e4523;
  --honey-1: #ffdb98;
  --honey-2: #efab58;
  --honey-3: #c77a33;
  --glow-1: #fff8e0;
  --glow-2: #ffd982;
  --glow-3: #f4aa42;
  --opp-1: #ffc9b0;
  --opp-2: #f0805e;
  --opp-3: #b4472f;
  --cream: #fff3dc;
  --muted: #d9bb96;
  --gold: #ffc65c;
  --ember: #ff9a3d;
  --danger: #ff6b55;
  --btn-1: #ffd480;
  --btn-2: #eb9f48;
  --btn-edge: #a15d1c;
  --btn-text: #48280f;
  --btn2-1: #8e5833;
  --btn2-2: #6a3e21;
  --btn2-edge: #391f0e;
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  --cell: 40px;
  --board: 360px;
  --mini: 22px;
  color-scheme: dark;
  font-family: "Fredoka", "Segoe UI Rounded", "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  overscroll-behavior: none; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  color: var(--cream);
  background: radial-gradient(130% 90% at 50% 0%, var(--bg-1), var(--bg-2));
}
button { font: inherit; color: inherit; border: 0; cursor: pointer; }

/* =================== Ekranlar =================== */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  animation: fade .25s ease-out;
}

/* =================== Butonlar =================== */
.icon-btn {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(var(--btn2-1), var(--btn2-2));
  box-shadow: inset 0 2px rgba(255,255,255,.18), 0 4px 0 var(--btn2-edge), 0 6px 12px rgba(0,0,0,.3);
  color: var(--cream);
  transition: transform .08s, box-shadow .08s;
}
.icon-btn:active { transform: translateY(3px); box-shadow: inset 0 2px rgba(255,255,255,.18), 0 1px 0 var(--btn2-edge), 0 2px 6px rgba(0,0,0,.3); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: 16px;
  font-size: 19px; font-weight: 600;
  background: linear-gradient(var(--btn2-1), var(--btn2-2));
  color: var(--cream);
  box-shadow: inset 0 2px rgba(255,255,255,.18), 0 5px 0 var(--btn2-edge), 0 10px 18px rgba(0,0,0,.3);
  transition: transform .08s, box-shadow .08s;
}
.btn.primary {
  background: linear-gradient(var(--btn-1), var(--btn-2));
  color: var(--btn-text);
  box-shadow: inset 0 2px rgba(255,255,255,.6), 0 5px 0 var(--btn-edge), 0 10px 18px rgba(0,0,0,.3);
}
.btn.danger {
  background: linear-gradient(#ff9a80, #d9583f); color: #fff;
  box-shadow: inset 0 2px rgba(255,255,255,.4), 0 5px 0 #7a2412, 0 10px 18px rgba(0,0,0,.3);
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 2px rgba(255,255,255,.3), 0 1px 0 var(--btn2-edge), 0 3px 8px rgba(0,0,0,.3); }
.btn.primary:active:not(:disabled) { box-shadow: inset 0 2px rgba(255,255,255,.6), 0 1px 0 var(--btn-edge), 0 3px 8px rgba(0,0,0,.3); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.big { padding: 17px 20px; font-size: 21px; }
.btn.ghost-btn { background: transparent; box-shadow: none; border: 2px dashed rgba(255,198,92,.45); color: var(--gold); font-size: 17px; }
.btn.pulse { animation: pulse 1s ease-in-out infinite; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* =================== Ana menü =================== */
.home-inner, .lobby-inner { width: min(100%, 360px); text-align: center; }
.logo-board {
  display: inline-grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px);
  padding: 7px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--frame-hi), var(--frame-lo));
  box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45);
}
.lcell { position: relative; background: var(--cell-a); box-shadow: inset 0 0 0 .5px var(--cell-line); }
.lcell.alt { background: var(--cell-b); }
.lcell .block { --pc: 34px; }
.lcell .block.bob { animation: bob 2.6s ease-in-out infinite; }
.title { margin: 0; font-size: 46px; line-height: 1.05; text-shadow: 0 4px 0 rgba(0,0,0,.35); animation: popIn .5s var(--spring) both; }
.sub { color: var(--muted); margin: 6px 0 8px; }
.home-best { min-height: 26px; color: var(--muted); margin-bottom: 14px; font-size: 17px; }
.home-best b { color: var(--gold); }
.menu { display: flex; flex-direction: column; gap: 14px; }
.menu .btn { animation: slideIn .45s var(--spring) both; }
.menu .btn:nth-child(2) { animation-delay: 60ms; }
.menu .btn:nth-child(3) { animation-delay: 120ms; }
.menu .btn:nth-child(4) { animation-delay: 180ms; }
.menu .btn:nth-child(5) { animation-delay: 240ms; }
.corner { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; }
.corner-left { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 14px; }

/* =================== Lobi =================== */
.lobby-title { font-size: 34px; margin: 0; }
.muted { color: var(--muted); margin: 8px 0 16px; }
.gold { color: var(--gold); }
.field { display: block; text-align: left; margin: 0 0 16px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .code-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid rgba(255,220,170,.16); border-radius: 14px;
  background: rgba(0,0,0,.28); color: var(--cream);
  font: inherit; font-size: 18px; outline: none;
  user-select: text; -webkit-user-select: text;
  transition: border-color .15s;
}
.field input:focus, .code-input:focus { border-color: var(--gold); }
.or { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255,220,170,.2); }
.join-row { display: flex; gap: 10px; }
.join-row .code-input { flex: 1; text-align: center; letter-spacing: 8px; font-weight: 700; text-transform: uppercase; }
.join-row .btn { width: auto; flex: none; }
.code-big { display: flex; justify-content: center; gap: 10px; margin: 6px 0 22px; }
.code-big span {
  width: 58px; height: 64px; display: grid; place-items: center;
  font-size: 36px; font-weight: 700; color: #4a2a12; border-radius: 12px;
  background: linear-gradient(150deg, var(--honey-1), var(--honey-2) 55%, var(--honey-3));
  box-shadow: inset 0 2px rgba(255,255,255,.55), inset 0 -4px rgba(115,58,15,.45), 0 6px 12px rgba(0,0,0,.35);
  animation: slideIn .45s var(--spring) both; animation-delay: calc(var(--i) * 80ms);
  user-select: text; -webkit-user-select: text;
}
.waiting { color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,220,170,.2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.error { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(255,107,85,.15); color: #ffbca2; animation: popIn .3s var(--spring) both; }
#lobbyWait { display: flex; flex-direction: column; gap: 14px; }

/* =================== Oyun ekranı =================== */
.screen.game { gap: clamp(8px, 2vh, 18px); }
.screen.game.duel { gap: clamp(6px, 1.4vh, 12px); }
.hud { width: calc(var(--board) + 16px); display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; }
.scorebox { text-align: center; line-height: 1; }
.best { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: 17px; }
.best svg { width: 18px; height: 18px; fill: currentColor; }
.score { font-size: clamp(36px, 10vw, 54px); font-weight: 700; margin-top: 4px; text-shadow: 0 3px 0 rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.bump { animation: bump .3s var(--spring); }
.combo-row { height: 26px; margin-top: 4px; }
.combo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,154,61,.16); color: var(--ember);
  font-weight: 600; font-size: 14px;
  animation: popIn .3s var(--spring) both;
}
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,154,61,.25); transition: background .2s; }
.dots i.on { background: var(--ember); }
.turn-text { text-align: center; font-weight: 600; font-size: 18px; color: var(--muted); }
.turn-text.mine { color: var(--gold); font-size: 21px; animation: popIn .3s var(--spring) both; }
.turn-text.warn { color: var(--danger); }

/* ----- Tahta ----- */
.board {
  padding: 8px; border-radius: 16px;
  background:
    repeating-linear-gradient(95deg, transparent 0 6px, rgba(0,0,0,.07) 6px 8px, transparent 8px 17px),
    linear-gradient(160deg, var(--frame-hi), var(--frame-lo));
  box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45);
}
.board.shake { animation: shake .36s ease-out; }
.grid {
  --pc: var(--cell); --gap: 2px;
  position: relative; width: var(--board); height: var(--board);
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr);
  border-radius: 8px; background: var(--cell-a);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}
.cell { position: relative; background: var(--cell-a); box-shadow: inset 0 0 0 .5px var(--cell-line), inset 0 2px 3px rgba(0,0,0,.18); transition: background-color .15s; }
.cell.alt { background: var(--cell-b); }
.cell.hl { background: var(--cell-hl); }
.cell:nth-child(1) { border-top-left-radius: 8px; }
.cell:nth-child(9) { border-top-right-radius: 8px; }
.cell:nth-child(73) { border-bottom-left-radius: 8px; }
.cell:nth-child(81) { border-bottom-right-radius: 8px; }

/* ----- Blok ----- */
.block {
  position: absolute; inset: var(--gap, 2px);
  border-radius: calc(var(--pc) * .16);
  background:
    repeating-linear-gradient(100deg, transparent 0 3px, rgba(150,85,30,.14) 3px 4.5px, transparent 4.5px 9px),
    linear-gradient(150deg, var(--honey-1), var(--honey-2) 55%, var(--honey-3));
  box-shadow: inset 0 2px rgba(255,255,255,.55), inset 0 -3px rgba(115,58,15,.45), inset 2px 0 rgba(255,255,255,.18), inset -2px 0 rgba(115,58,15,.22), 0 2px 3px rgba(0,0,0,.35);
}
.block.opp {
  background:
    repeating-linear-gradient(100deg, transparent 0 3px, rgba(110,30,15,.16) 3px 4.5px, transparent 4.5px 9px),
    linear-gradient(150deg, var(--opp-1), var(--opp-2) 55%, var(--opp-3));
  box-shadow: inset 0 2px rgba(255,255,255,.45), inset 0 -3px rgba(90,20,8,.5), inset 2px 0 rgba(255,255,255,.15), inset -2px 0 rgba(90,20,8,.25), 0 2px 3px rgba(0,0,0,.35);
}
.cell > .block { animation: pop .24s cubic-bezier(.3, 1.6, .5, 1) both; }
.cell > .block.ghost { animation: none; opacity: .4; box-shadow: inset 0 0 0 2px rgba(255,230,170,.55); }
.cell > .block.ghost.opp { opacity: .45; box-shadow: inset 0 0 0 2px rgba(255,190,160,.6); }
.cell.hl > .block, .hl-block {
  background:
    repeating-linear-gradient(100deg, transparent 0 3px, rgba(200,120,40,.12) 3px 4.5px, transparent 4.5px 9px),
    linear-gradient(150deg, var(--glow-1), var(--glow-2) 55%, var(--glow-3));
}
.cell.hl > .block { animation: shimmer .55s ease-in-out infinite alternate; }
.cell.hl > .block.ghost { opacity: .85; }
.board.dead .cell > .block { filter: grayscale(1) brightness(.6); transition: filter .35s ease calc(var(--d) * 70ms); }

/* ----- Efektler ----- */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.burst { position: absolute; width: var(--cell); height: var(--cell); animation: burst .55s cubic-bezier(.4, 0, .7, .4) both; }
.popup {
  position: absolute; transform: translate(-50%, -50%);
  font-weight: 700; white-space: nowrap; pointer-events: none;
  color: var(--cream); text-shadow: 0 3px 0 rgba(90,40,10,.9), 0 6px 14px rgba(0,0,0,.5);
}
.popup.score { font-size: calc(var(--cell) * .62); animation: rise 1.05s ease-out forwards; }
.popup.score.opp { color: var(--opp-1); }
.popup.praise { left: 50%; top: 42%; font-size: calc(var(--cell) * 1); color: var(--gold); text-shadow: 0 3px 0 #8a4a12, 0 6px 18px rgba(0,0,0,.6); animation: praise 1.3s ease-out forwards; }
.popup.praise.info { font-size: calc(var(--cell) * .62); color: var(--cream); }
.popup.combo, .popup.bonus { left: 50%; font-size: calc(var(--cell) * .58); color: var(--ember); animation: praise 1.3s ease-out .08s both; }
.popup.combo { top: 56%; }
.popup.bonus { top: 66%; }

/* ----- Tepsi ----- */
.tray { --pc: var(--mini); --gap: 1.5px; width: calc(var(--board) + 16px); height: calc(var(--cell) * 3.1); display: grid; grid-template-columns: repeat(3, 1fr); }
.slot { display: grid; place-items: center; touch-action: none; cursor: grab; }
.piece-wrap { transition: opacity .2s, filter .2s, transform .2s; }
.piece-wrap.enter { animation: slideIn .42s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
.slot.nofit .piece-wrap { opacity: .3; filter: grayscale(.85); }
.slot.dragging .piece-wrap { opacity: 0; transition: none; }
.tray.disabled .slot { cursor: default; }
.tray.disabled .piece-wrap { opacity: .55; filter: saturate(.7); }
.piece { display: grid; }
.pcell { position: relative; width: var(--pc); height: var(--pc); }

.float { --pc: var(--cell); --gap: 2px; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.float .piece { animation: lift .14s ease-out both; transform-origin: center; }
.float.back { transition: transform .2s cubic-bezier(.3,.7,.4,1), opacity .2s; }
.float.back .piece { animation: none; transform: scale(.56); transition: transform .2s; }

/* ----- Düello çubukları ----- */
.pbar {
  position: relative; overflow: hidden;
  width: calc(var(--board) + 16px); min-height: 52px;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 14px;
  background: rgba(0,0,0,.22); border: 2px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.pbar.active { border-color: var(--gold); background: rgba(255,198,92,.1); box-shadow: 0 0 18px rgba(255,198,92,.25); }
.pbar.opp.active { border-color: var(--opp-2); background: rgba(240,128,94,.1); box-shadow: 0 0 18px rgba(240,128,94,.25); }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pname { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.pname .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: linear-gradient(150deg, var(--honey-1), var(--honey-3)); }
.pbar.opp .pname .dot { background: linear-gradient(150deg, var(--opp-1), var(--opp-3)); }
.pstreak { font-size: 12px; color: var(--ember); font-weight: 600; height: 15px; }
.pscore { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.mini-tray { --pc: calc(var(--cell) * .22); --gap: 1px; flex: none; display: flex; align-items: center; gap: 6px; }
.mini-slot { min-width: calc(var(--pc) * 3); display: flex; justify-content: center; transition: transform .2s; }
.mini-slot.lifted { transform: translateY(-4px) scale(1.12); }
.mini-slot.nofit { opacity: .35; }
.mini-tray .block { border-radius: 2px; box-shadow: inset 0 1px rgba(255,255,255,.4); }
.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.25); }
.timer > i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, var(--honey-2), var(--gold)); }
.pbar.opp .timer > i { background: linear-gradient(90deg, var(--opp-3), var(--opp-2)); }
.timer > i.low { background: var(--danger) !important; }

/* =================== Modallar =================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(18, 9, 3, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade .25s ease-out;
}
.card {
  width: min(100%, 360px); max-height: 90vh; overflow-y: auto;
  padding: 28px 22px 22px; border-radius: 24px; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  background:
    repeating-linear-gradient(95deg, transparent 0 7px, rgba(0,0,0,.06) 7px 9px, transparent 9px 19px),
    linear-gradient(170deg, #8a5532, #5a331b);
  box-shadow: inset 0 2px rgba(255,255,255,.18), inset 0 -4px rgba(0,0,0,.25), 0 24px 60px rgba(0,0,0,.55);
  animation: popIn .38s var(--spring) both;
}
.card h2 { margin: 0; font-size: 28px; }
.card h3 { margin: 4px 0 0; font-size: 19px; text-align: left; }
.card .sub { margin: 0 0 4px; }
.card.help { text-align: left; }
.card.help h2 { text-align: center; }
.card ul, .card ol { padding-left: 20px; margin: 0; line-height: 1.45; color: #f6e2c4; }
.card li { margin-bottom: 7px; }
.card b { color: var(--gold); }
.ribbon { font-size: 32px; font-weight: 700; color: var(--gold); text-shadow: 0 3px 0 #8a4a12; animation: tada .9s ease-out .2s both; }
.final-label { color: var(--muted); font-size: 15px; margin-top: 4px; }
.final-score { font-size: 64px; font-weight: 700; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.3); font-variant-numeric: tabular-nums; }
.final-best { color: var(--muted); margin-bottom: 6px; }
.final-best b { color: var(--gold); }
.duel-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.duel-scores > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(0,0,0,.22); border: 2px solid transparent; }
.duel-scores > div.win { border-color: var(--gold); }
.duel-scores > div.opp.win { border-color: var(--opp-2); }
.duel-scores span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-scores b { font-size: 32px; font-weight: 700; color: var(--cream) !important; }
.share-ico { display: inline-block; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.15); }

.toast {
  position: fixed; left: 50%; bottom: max(30px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--cream); color: #3a1d08; font-weight: 600;
  padding: 10px 18px; border-radius: 99px; z-index: 200;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: popIn .25s var(--spring) both;
}

/* =================== Animasyonlar =================== */
@keyframes pop { 0% { transform: scale(.55); } to { transform: scale(1); } }
@keyframes shimmer { 0% { filter: brightness(1); } to { filter: brightness(1.18); } }
@keyframes burst {
  0% { transform: scale(1); opacity: 1; filter: brightness(1.2); }
  35% { transform: scale(1.18); opacity: 1; filter: brightness(1.7); }
  to { transform: scale(.15) rotate(30deg); opacity: 0; filter: brightness(2); }
}
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  to { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}
@keyframes praise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  35% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -75%) scale(1); }
}
@keyframes shake {
  0%, to { transform: translate(0); }
  20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -2px); }
  60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); }
}
@keyframes slideIn { 0% { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lift { 0% { transform: scale(.6); } to { transform: scale(1); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { 0% { opacity: 0; } }
@keyframes tada {
  0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(3deg); }
  to { transform: scale(1) rotate(0); }
}
@keyframes bob {
  0%, to { transform: translateY(-38px); opacity: .85; }
  40%, 60% { transform: translateY(0); opacity: 1; }
}
@keyframes pulse { 0%, to { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes bump { 50% { transform: scale(1.14); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cell.hl > .block, .board.shake, .lcell .block.bob { animation: none; }
}
.pbar.opp .mini-tray .block { background: linear-gradient(150deg, var(--opp-1), var(--opp-3)); }
.card.help > .btn { position: sticky; bottom: -22px; margin: 4px -22px -22px; width: calc(100% + 44px); border-radius: 0 0 24px 24px; box-shadow: 0 -10px 20px rgba(60,30,12,.6); }

/* =================== Yeni: ayarlar, istatistik, isim =================== */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-row .btn { font-size: 16px; padding: 13px 8px; }
.menu .btn-row { animation: slideIn .45s var(--spring) both; animation-delay: 180ms; }
.menu .btn-row .btn { animation: none; }
.icon-btn.off { opacity: .5; }
.icon-btn .emo-ico { font-size: 22px; line-height: 1; }
.field input.invalid { border-color: var(--danger); animation: shakeX .4s ease; }
@keyframes shakeX { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.stat {
  padding: 12px 6px; border-radius: 14px; background: rgba(0,0,0,.22);
  display: flex; flex-direction: column; gap: 2px;
  animation: popIn .35s var(--spring) both; animation-delay: calc(var(--i) * 45ms);
}
.stat b { font-size: 26px; color: var(--cream) !important; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

/* =================== Yeni: efektler =================== */
#fxCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.flash { position: absolute; inset: -8px; border-radius: 14px; background: radial-gradient(circle, rgba(255,250,230,.95), rgba(255,220,150,.4) 60%, transparent 80%); animation: flash .45s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } to { opacity: 0; } }
.popup.record { left: 50%; top: 26%; font-size: calc(var(--cell) * .7); color: #fff8e0; text-shadow: 0 3px 0 #8a4a12, 0 0 20px rgba(255,198,92,.9); animation: praise 1.6s ease-out forwards; }

/* Kombo ateşi: çerçeve parlar */
.board { transition: box-shadow .3s; }
.board.hot { animation: hot 1.1s ease-in-out infinite; }
.board.fire { animation: fire .7s ease-in-out infinite; }
@keyframes hot {
  0%, to { box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45), 0 0 0 2px rgba(255,154,61,.5), 0 0 18px rgba(255,154,61,.35); }
  50% { box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(255,154,61,.85), 0 0 34px rgba(255,154,61,.6); }
}
@keyframes fire {
  0%, to { box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(255,90,50,.7), 0 0 28px rgba(255,110,40,.55); }
  50% { box-shadow: inset 0 2px rgba(255,255,255,.22), inset 0 -3px rgba(0,0,0,.3), 0 14px 30px rgba(0,0,0,.45), 0 0 0 4px rgba(255,200,80,.95), 0 0 50px rgba(255,90,30,.8); }
}
.combo-badge.hot { background: linear-gradient(90deg, #ff9a3d, #ff5a32); color: #fff; box-shadow: 0 0 14px rgba(255,110,40,.6); }

/* Süre azalınca kart yanıp söner */
.pbar.active.urgent { animation: urgent .5s ease-in-out infinite alternate; }
@keyframes urgent { to { border-color: var(--danger); box-shadow: 0 0 22px rgba(255,107,85,.55); } }

/* =================== Yeni: emoji =================== */
.emo-btn {
  flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 20px; line-height: 1;
  background: rgba(255,220,170,.12); display: grid; place-items: center;
  transition: transform .1s;
}
.emo-btn:active { transform: scale(.9); }
.emo-btn:disabled { opacity: .4; }
.emo-bar {
  position: fixed; z-index: 90; display: flex; gap: 4px; padding: 6px;
  border-radius: 16px; background: linear-gradient(#8a5532, #5a331b);
  box-shadow: inset 0 2px rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.5);
  animation: popIn .25s var(--spring) both; transform-origin: bottom right;
}
.emo-bar button { width: 42px; height: 42px; border-radius: 12px; font-size: 24px; background: transparent; transition: transform .1s, background .1s; }
.emo-bar button:active { transform: scale(.85); background: rgba(255,255,255,.12); }
#emoteLayer { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.emote { position: fixed; font-size: 40px; transform: translate(-50%, -50%); animation: emote 1.9s ease-out forwards; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
@keyframes emote {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.3); }
  15% { opacity: 1; transform: translate(-50%, -60%) scale(1.25); }
  30% { transform: translate(-50%, -60%) scale(1); }
  80% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}
