@font-face {
  font-family: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../../assets/fonts/play-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../../assets/fonts/play-greek-700-normal.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../../assets/fonts/manrope-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cw: 70px;
  --gold: #e9c46a;
  --gold2: #f6dd94;
  --text: #f4efe3;
  --muted: #c3cdbf;
  --us: #7ee0a1;
  --them: #ff9c8a;
  --panel: rgba(8, 22, 16, 0.82);
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #071510;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.app {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #1f7a4c 0%, #145c38 45%, #0b3b24 80%, #071a10 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ready .app { opacity: 1; }

/* ---------- Πάνω μπάρα ---------- */
.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
  border-bottom: 1px solid var(--line);
}
.standalone .top { padding-left: 118px; } /* χώρος για το «← TzinGames» */
.title, .logo { font: 700 22px/1 "Play", system-ui, sans-serif; letter-spacing: 1px; color: var(--gold2); }
.title span, .logo span { color: #fff; }
.score { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
.score b { font: 700 18px/1 "Play", system-ui, sans-serif; }
.score .us b { color: var(--us); }
.score .them b { color: var(--them); }
.score .rd { color: var(--muted); font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.top-btns { display: flex; gap: 6px; }
.icon-btn {
  min-width: 38px; height: 38px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); font-weight: 800;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Τραπέζι (3D: τσόχα σε κλίση, ξύλινο πλαίσιο, φως από πάνω) ---------- */
.table { position: relative; min-height: 0; perspective: 1100px; perspective-origin: 50% 20%; }
.felt { position: absolute; inset: 6% 3% 2%; transform: rotateX(24deg); transform-origin: 50% 70%; pointer-events: none; }
.felt > div { position: absolute; inset: 0; border-radius: 48% / 40%; }
.rim {
  background: linear-gradient(160deg, #6b3d1f, #3a1f0d 45%, #7a4a26 70%, #2c170a);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 220, 170, 0.35);
}
.cloth {
  inset: 14px !important;
  background:
    radial-gradient(ellipse at 50% 42%, #2f9a60 0%, #1d7a47 38%, #125a33 70%, #0b3d22 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(233, 196, 106, 0.35);
}
.cloth::after {
  content: ""; position: absolute; inset: 10%; border-radius: inherit; border: 1.5px dashed rgba(233, 196, 106, 0.22);
}
.light { inset: 14px !important; background: radial-gradient(ellipse 45% 38% at 50% 38%, rgba(255, 244, 210, 0.22), transparent 70%); mix-blend-mode: screen; }
.deck { position: absolute; left: 50%; top: 46%; width: 1px; height: 1px; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: filter 0.2s; }
.seat-top { top: 8px; left: 50%; transform: translateX(-50%); }
.seat-left { left: 8px; top: 42%; transform: translateY(-50%); }
.seat-right { right: 8px; top: 42%; transform: translateY(-50%); }
.who { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.nm {
  font: 700 14px/1.2 "Play", system-ui, sans-serif; padding: 4px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
}
.partner .nm { border-color: rgba(126, 224, 161, 0.6); }
.seat-left .nm, .seat-right .nm { border-color: rgba(255, 156, 138, 0.5); }
.turn .nm { background: var(--gold); color: #1d1405; border-color: var(--gold2); box-shadow: 0 0 18px rgba(233, 196, 106, 0.55); }
.badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); }
.badge.call { background: #8b2bd6; border-color: #c48bff; }
.badge.call.grand { background: #c2410c; border-color: #fdba74; }
.badge.out { background: #14532d; border-color: #86efac; }
.fan { position: relative; height: calc(var(--cw) * 0.62); width: calc(var(--cw) * 0.44 + (min(var(--n), 14) - 1) * 6px); }
.mini {
  position: absolute; top: 0; left: calc(var(--i) * 6px); width: calc(var(--cw) * 0.44); height: auto;
  border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.cnt { font-size: 11px; color: var(--muted); }
.said {
  font: 700 13px/1 "Play", system-ui, sans-serif; color: #1d1405; background: #fff6d8; padding: 5px 10px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); animation: pop 0.25s ease both;
}

.center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(70%, 640px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.trick { position: relative; display: grid; place-items: center; min-height: calc(var(--cw) * 1.25); width: 100%; transform: rotateX(14deg); transform-style: preserve-3d; }
.trick.bombed .last .c { box-shadow: 0 0 0 3px #f97316, 0 0 34px rgba(249, 115, 22, 0.9); }
.trick.dragoned .last .c { box-shadow: 0 0 0 3px #ef4444, 0 0 40px rgba(239, 68, 68, 0.95); animation: dragon 1.2s ease both; }
.trick.phoenixed .last .c { box-shadow: 0 0 0 3px #fbbf24, 0 0 36px rgba(251, 191, 36, 0.95); }
@keyframes dragon { 0% { transform: scale(1); } 30% { transform: scale(1.35) translateY(-10px); } 100% { transform: scale(1); } }
.play { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateY(calc(var(--d) * -14px)) scale(calc(1 - var(--d) * 0.12)); opacity: calc(1 - var(--d) * 0.45); transition: transform 0.25s ease, opacity 0.25s ease; }
.play.last { animation: land 0.28s ease both; }
.play .cards { display: flex; }
.play .c { width: calc(var(--cw) * 0.86); height: auto; border-radius: 7px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
.play .c + .c { margin-left: calc(var(--cw) * -0.5); }
.by { font-size: 12px; font-weight: 700; color: var(--gold2); background: rgba(0, 0, 0, 0.45); padding: 2px 9px; border-radius: 999px; }
.wish { font: 700 13px/1 "Play", system-ui, sans-serif; color: #1d1405; background: var(--gold); padding: 5px 12px; border-radius: 999px; box-shadow: 0 0 16px rgba(233, 196, 106, 0.6); }
.msg {
  font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.62);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; text-align: center; max-width: 100%;
}
.msg.show { opacity: 1; transform: none; }

/* ανταλλαγή */
.slots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(96%, 520px); }
.hintline { font-size: 13px; color: var(--gold2); text-align: center; background: rgba(0, 0, 0, 0.45); padding: 4px 10px; border-radius: 10px; }
.slot-row { display: flex; gap: 10px; justify-content: center; }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.3); min-width: calc(var(--cw) * 0.95);
}
.slot.mate { border-color: rgba(126, 224, 161, 0.7); }
.sl-to { font-size: 12px; font-weight: 800; }
.sl-tag { font-size: 10px; color: var(--muted); }
.slot .c { width: calc(var(--cw) * 0.75); border-radius: 6px; }
.sl-empty { display: grid; place-items: center; width: calc(var(--cw) * 0.75); height: calc(var(--cw) * 1.05); font-size: 26px; color: var(--muted); border-radius: 6px; background: rgba(255, 255, 255, 0.05); }

/* ---------- Εγώ ---------- */
.me { padding: 4px 8px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)); }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.seat-me { position: static; flex-direction: row; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.btn {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1); font-weight: 800; font-size: 15px; transition: transform 0.12s, filter 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--gold2), #c99a2e); color: #1d1405; border-color: transparent; }
.btn.call { background: linear-gradient(135deg, #a855f7, #6d28d9); border-color: transparent; }
.btn.bomb { background: linear-gradient(135deg, #f97316, #b91c1c); border-color: transparent; animation: pulse 1.2s ease-in-out infinite; }
.hand { position: relative; height: calc(var(--cw) * 1.4 + 22px); }
.hc {
  position: absolute; bottom: 4px; width: var(--cw); padding: 0; border: 0; background: none; border-radius: 8px;
  transition: transform 0.15s ease, left 0.25s ease; touch-action: manipulation;
}
.hc { transform-style: preserve-3d; }
.hc .c { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.4); pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hc .c.back { position: absolute; inset: 0; transform: rotateY(180deg); }
.hc:hover { transform: translateY(-6px); }
.hc.sel { transform: translateY(-18px); }
.hc.sel .c { box-shadow: 0 0 0 3px var(--gold), 0 8px 16px rgba(0, 0, 0, 0.5); }
.hc.pick { transform: translateY(-18px); }
.hc.pick .c { box-shadow: 0 0 0 3px #7ee0a1, 0 8px 16px rgba(0, 0, 0, 0.5); }
.hc.got::after { content: "★"; position: absolute; top: -6px; right: 4px; color: var(--gold); font-size: 16px; text-shadow: 0 0 6px #000; }
.myturn .hand { filter: drop-shadow(0 0 10px rgba(233, 196, 106, 0.35)); }

/* ---------- Παράθυρα ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 14px; background: rgba(3, 10, 6, 0.72); animation: fade 0.2s ease both; }
.modal.bottom { place-items: start center; padding-top: 70px; background: rgba(3, 10, 6, 0.25); }
.box {
  width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 22px 20px; border-radius: 20px;
  background: linear-gradient(160deg, #173f2a, #0b2316); border: 1px solid rgba(233, 196, 106, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center;
  animation: pop 0.25s ease both;
}
.box.wide { width: min(640px, 100%); text-align: left; align-items: stretch; }
.box h2 { font: 700 24px/1.2 "Play", system-ui, sans-serif; color: var(--gold2); }
.box .logo { font-size: 40px; }
.sub { color: var(--muted); font-size: 14px; }
.box > .btn { width: min(300px, 100%); }
.diff, .lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.diff button, .lang button { border: 0; background: transparent; padding: 9px 18px; min-height: 40px; font-weight: 800; color: var(--muted); }
.diff button[aria-checked="true"], .lang button[aria-pressed="true"] { background: rgba(233, 196, 106, 0.25); color: var(--text); }
.stats { font-size: 13px; color: var(--muted); min-height: 1em; }
.ab { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ask-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.btn.small { min-width: 48px; padding: 0 10px; }
.btn.wide { flex-basis: 100%; }
.howto-body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.howto-body b { color: var(--gold2); }
.howto + .btn, .box.wide > .btn { align-self: center; width: min(260px, 100%); }
table.sum { border-collapse: collapse; width: 100%; font-size: 15px; }
.sum th, .sum td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.sum th:first-child, .sum td:first-child { text-align: left; color: var(--muted); }
.sum th { color: var(--gold2); }
.sum tr.b td { font-weight: 800; }
.sum tr.tot td { font-size: 18px; color: var(--text); border-bottom: 0; }
.order { font-size: 13px; color: var(--muted); }

@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
@keyframes fade { from { opacity: 0; } }
@keyframes land { from { opacity: 0; transform: translateY(26px) scale(0.92); } }
@keyframes pulse { 50% { box-shadow: 0 0 18px rgba(249, 115, 22, 0.8); } }

/* ---------- Online: μενού, είσοδος, δωμάτιο ---------- */
.online-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(300px, 100%); }
.online-row .btn { flex: 1 1 100%; }
.btn.friends { background: linear-gradient(135deg, #2dd4bf, #0f766e); border-color: transparent; color: #04211c; }
.field { display: flex; flex-direction: column; gap: 4px; width: min(300px, 100%); text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
  color: var(--text); font: 700 17px/1 "Manrope", system-ui, sans-serif; -webkit-user-select: text; user-select: text;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.code-in { text-transform: uppercase; letter-spacing: 0.4em; text-align: center; font-family: "Play", system-ui, sans-serif !important; font-size: 24px !important; }
.err { color: #fecaca; background: rgba(185, 28, 28, 0.35); border: 1px solid rgba(248, 113, 113, 0.5); padding: 6px 10px; border-radius: 10px; font-size: 14px; }
.box.lobby { width: min(580px, 100%); gap: 10px; }
.lobby .code { font: 700 30px/1 "Play", system-ui, sans-serif; letter-spacing: 0.18em; color: #fff; background: rgba(0, 0, 0, 0.4); padding: 4px 10px 4px 14px; border-radius: 10px; border: 1px solid rgba(233, 196, 106, 0.5); }
.invite { display: flex; gap: 6px; width: 100%; }
.invite input {
  flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
  color: var(--text); font: 600 13px/1 "Manrope", system-ui, sans-serif; -webkit-user-select: text; user-select: text;
}
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.share {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 13px; color: #fff; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.share:hover { filter: brightness(1.12); }
.share.wa { background: #128c4a; }
.share.vb { background: #6d4fd8; }
.share.ms { background: linear-gradient(135deg, #0a6fe0, #9b30e8); }
.share.sh { background: rgba(255, 255, 255, 0.16); border: 1px solid var(--line); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.team { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.team.a { border-color: rgba(126, 224, 161, 0.45); }
.team.b { border-color: rgba(255, 156, 138, 0.45); }
.team h3 { font: 700 13px/1 "Play", system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.team.a h3 { color: var(--us); }
.team.b h3 { color: var(--them); }
.lseat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; min-height: 74px; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lseat.mine { border-color: var(--gold); background: rgba(233, 196, 106, 0.12); }
.lseat.moving { border: 1px dashed var(--gold2); }
.ln { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.crown { margin-right: 4px; }
.you { color: var(--muted); font-weight: 600; font-size: 12px; }
.st { font-size: 12px; color: var(--muted); }
.st.ok { color: var(--us); font-weight: 800; }
.st.away { color: #fdba74; }
.mini-btn {
  min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.1);
  font-size: 12px; font-weight: 800;
}
.mini-btn.go { background: rgba(233, 196, 106, 0.2); border-color: rgba(233, 196, 106, 0.5); }
.lv { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lv button { border: 0; background: transparent; min-height: 30px; padding: 0 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.lv button[aria-checked="true"] { background: rgba(233, 196, 106, 0.28); color: var(--text); }
.timer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lb-wait { font-size: 13px; color: var(--gold2); min-height: 1em; }

/* ---------- Online: στο τραπέζι ---------- */
.badge.bot { background: #334155; border-color: #94a3b8; }
.badge.away { background: #7c2d12; border-color: #fdba74; }
.badge.think { background: rgba(0, 0, 0, 0.55); color: var(--gold2); animation: blink 1.4s ease-in-out infinite; }
.badge.tm { background: #1e3a8a; border-color: #93c5fd; font-variant-numeric: tabular-nums; }
.badge.tm.low { background: #b91c1c; border-color: #fecaca; animation: blink 0.8s ease-in-out infinite; }
.react-btn { flex-shrink: 0; font-size: 18px; }
.reacts {
  position: fixed; right: 10px; bottom: calc(var(--cw) * 1.4 + 80px); z-index: 18; display: grid; grid-template-columns: repeat(6, auto);
  gap: 6px; padding: 10px; border-radius: 16px; background: rgba(8, 22, 16, 0.95); border: 1px solid rgba(233, 196, 106, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); animation: pop 0.18s ease both; max-width: calc(100vw - 20px);
}
.reacts .re { font-size: 24px; min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.reacts .rp { grid-column: span 3; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 800; font-size: 14px; }
.reacts button:hover { background: rgba(255, 255, 255, 0.2); }
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 16; }
.bubble {
  position: absolute; transform: translate(-50%, -50%); font-size: 40px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  animation: bubble 2.6s cubic-bezier(.2, .8, .3, 1) both; white-space: nowrap;
}
.bubble.phrase {
  font: 700 17px/1 "Play", system-ui, sans-serif; color: #1d1405; background: #fff6d8; padding: 9px 14px; border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.net {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 8px 16px; border-radius: 999px; background: #9a3412; border: 1px solid #fdba74; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.55; } }
@keyframes bubble {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.3) rotate(-12deg); }
  14% { opacity: 1; transform: translate(-50%, -70%) scale(1.15) rotate(4deg); }
  24% { transform: translate(-50%, -70%) scale(1) rotate(0); }
  80% { opacity: 1; transform: translate(-50%, -110%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(0.9); }
}
@media (max-width: 560px) {
  .teams { gap: 6px; }
  .team { padding: 6px; }
  .lobby .code { font-size: 24px; }
  .reacts { grid-template-columns: repeat(5, auto); }
  .reacts .rp { grid-column: span 5; }
}
.land .reacts { bottom: 60px; }
/* Χαμηλή οθόνη (κινητό οριζόντια): πιο μαζεμένο δωμάτιο */
@media (max-height: 500px) {
  .box.lobby { gap: 6px; padding: 12px 14px; width: min(760px, 100%); }
  .lobby h2 { font-size: 20px; }
  .lobby .code { font-size: 22px; padding: 2px 8px 2px 12px; }
  .lobby .sub { font-size: 12px; }
  .team { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .team h3 { grid-column: 1 / -1; }
  .lseat { min-height: 0; padding: 6px 4px; gap: 3px; }
  .ln { font-size: 13px; }
  .share { min-height: 32px; }
  .invite input, .invite .btn { min-height: 36px; }
  #lbNote { display: none; }
  .lseat .lv button, .mini-btn { min-height: 26px; }
  .lseat { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .lseat .ln { flex-basis: 100%; }
}

/* ---------- Κινητό όρθια ---------- */
@media (max-width: 560px) {
  .top { grid-template-columns: auto auto; grid-template-areas: "title btns" "score score"; row-gap: 4px; }
  .standalone .top { padding-left: 10px; padding-top: 36px; }
  .title { grid-area: title; font-size: 20px; }
  .top-btns { grid-area: btns; justify-self: end; }
  .score { grid-area: score; }
  .seat-left, .seat-right { top: 46%; }
  .nm { font-size: 12px; padding: 3px 8px; }
  .center { width: 62%; }
  .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .me-row { flex-wrap: wrap; }
  .actions { flex: 1; }
}

/* ---------- Κινητό οριζόντια ---------- */
.land .top { padding-top: 3px; padding-bottom: 3px; }
.land .icon-btn { height: 32px; min-width: 32px; }
.land .me { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: end; gap: 8px; padding-bottom: 4px; }
.land .actions { justify-content: flex-end; }
.land .fan { display: none; }
.land .seat { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 180px; }
.land .cnt { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); }
.land .center { top: 56%; }
.land .slots { bottom: 4px; }
.land .hintline { display: none; }
.land .me-row { order: 2; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
.land .hand { order: 1; height: calc(var(--cw) * 1.4 + 18px); }
.land .seat-top { top: 4px; }
.land .btn { min-height: 36px; font-size: 13px; padding: 0 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
