:root {
  --felt: #0f3d28;
  --felt-deep: #0a2e1e;
  --felt-lit: #165c3a;
  --rail: #6b4423;
  --rail-light: #a67c4a;
  --rail-dark: #3d2412;
  --ink: #f4ecd8;
  --muted: #9aaf9a;
  --gold: #f0c75e;
  --gold-2: #e8a838;
  --crimson: #e74c3c;
  --crimson-2: #c0392b;
  --good: #2ecc71;
  --blue-card: #3d7ea6;
  --brown-card: #8b5a2b;
  --panel: rgba(8, 22, 14, 0.92);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-ui: 'Outfit', system-ui, sans-serif;
  --room: #07140e;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
  background: var(--room);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow: hidden;
  touch-action: manipulation;
  /* iOS Safari uzun basışta metin seçimi / çağrı menüsü */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  /* Sabit gövde: Safari chrome kayınca layout şişmesin */
  position: fixed;
  inset: 0;
}

.app {
  position: fixed;
  top: var(--vv-offset-top, 0px);
  left: var(--vv-offset-left, 0px);
  width: var(--vv-width, 100%);
  height: var(--vv-height, 100dvh);
  max-height: var(--vv-height, 100dvh);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
  overflow: hidden;
}

.screen {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* —— Casino room background —— */
.felt-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, #1a3d2a 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 85%, #3d281655 0%, transparent 50%),
    radial-gradient(ellipse 35% 40% at 88% 15%, #1a4a3a44 0%, transparent 45%),
    linear-gradient(165deg, #06120c, #0c1f16 45%, #081410);
  z-index: 0;
}
.felt-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.012) 18px,
      rgba(255, 255, 255, 0.012) 19px
    );
  pointer-events: none;
}
.felt-game {
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, #143528 0%, transparent 58%),
    radial-gradient(circle at 50% 100%, #2a1810aa 0%, transparent 42%),
    #06110c;
}

/* —— Title —— */
#screen-title.active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: safe center;
  justify-content: safe center;
}
.title-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  animation: rise 0.7s ease-out;
  width: min(100%, 520px);
  margin: auto;
  flex-shrink: 0;
}
.eyebrow {
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
  font-weight: 700;
}
.logo {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(180deg, #fff6d5 10%, var(--gold) 45%, var(--gold-2) 70%, #a85b12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 #3a1a08) drop-shadow(0 0 28px rgba(240, 199, 94, 0.35));
  letter-spacing: 0.04em;
}
.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink);
  margin: 0.2rem 0 0;
  letter-spacing: 0.08em;
}
.sub {
  color: var(--muted);
  margin: 0.4rem 0 1.6rem;
  font-size: 0.95rem;
}
/* iPhone landscape + Safari chrome: menü tek bakışta sığsın */
@media (max-height: 430px) {
  .title-wrap {
    padding: 0.35rem 0.75rem 0.5rem;
  }
  .eyebrow {
    display: none;
  }
  .logo {
    font-size: clamp(2.6rem, 16vh, 3.8rem);
    filter: drop-shadow(0 3px 0 #3a1a08) drop-shadow(0 0 14px rgba(240, 199, 94, 0.3));
  }
  .tagline {
    font-size: clamp(1rem, 5vh, 1.35rem);
    margin: 0.05rem 0 0;
  }
  .sub {
    display: none;
  }
  .title-actions {
    gap: 0.3rem;
    margin-top: 0.35rem;
  }
  .title-actions .btn {
    min-width: 9.5rem;
    padding: 0.38rem 0.9rem;
    font-size: 1.05rem;
  }
  .floating-suits {
    display: none;
  }
}
.floating-suits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.floating-suits span {
  position: absolute;
  font-size: 3rem;
  opacity: 0.08;
  animation: float 12s ease-in-out infinite;
}
.floating-suits span:nth-child(1) {
  left: 8%;
  top: 20%;
  color: #fff;
}
.floating-suits span:nth-child(2) {
  right: 12%;
  top: 28%;
  color: var(--crimson);
  animation-delay: -3s;
}
.floating-suits span:nth-child(3) {
  left: 18%;
  bottom: 18%;
  color: var(--crimson);
  animation-delay: -6s;
}
.floating-suits span:nth-child(4) {
  right: 20%;
  bottom: 22%;
  color: #fff;
  animation-delay: -9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 199, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(240, 199, 94, 0);
  }
}
.pulse {
  animation: pulse 2s infinite;
}
.title-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.title-actions .btn {
  min-width: 11rem;
}

/* —— Öğren / tutorial coach —— */
.tutorial-coach {
  position: fixed;
  left: 50%;
  bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  top: auto;
  transform: translateX(-50%);
  z-index: 12050;
  width: min(92vw, 520px);
  max-height: min(38vh, 180px);
  overflow-y: auto;
  background: rgba(8, 22, 14, 0.96);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 0.5rem 0.7rem 0.55rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
/* Intro: tek panel — reveal kartı gizlenir, coach ortada */
body.tutorial-intro #screen-reveal .panel {
  display: none !important;
}
body.tutorial-intro #tutorial-coach:not(.hidden) {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 480px);
  max-height: min(70vh, 280px);
}
/* Oyundayken elin üstünü örtme — daima üst şerit (JS .coach-top) */
#tutorial-coach.coach-top {
  top: calc(var(--vv-offset-top, 0px) + env(safe-area-inset-top, 0px) + 2.35rem);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  max-height: min(28vh, 112px);
  padding: 0.32rem 0.55rem 0.38rem;
  width: min(94vw, 560px);
}
#tutorial-coach.coach-top.coach-side {
  left: 0.35rem;
  right: auto;
  transform: none;
  width: min(44vw, 280px);
  max-height: min(34vh, 130px);
}
#tutorial-coach.coach-top .tutorial-text {
  font-size: 0.72rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  max-height: 3.6em;
  overflow-y: auto;
}
#tutorial-coach.coach-top #tutorial-next {
  font-size: 0.9rem;
  padding: 0.28rem 0.65rem;
}
@media (max-height: 400px) {
  #tutorial-coach.coach-top {
    max-height: 96px;
    top: calc(var(--vv-offset-top, 0px) + 2.15rem);
  }
  #tutorial-coach.coach-top .tutorial-text {
    font-size: 0.68rem;
    max-height: 2.7em;
  }
}
.tutorial-coach.hidden {
  display: none;
}
.tutorial-coach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
#tutorial-part {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.tutorial-exit {
  padding: 0.25rem 0.55rem !important;
  font-size: 0.85rem !important;
}
.tutorial-text {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #f3e6c8;
}
#tutorial-next {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.45rem 0.8rem;
}
/* Tutorial’da el her zaman coach’un altında kalmasın */
body.tutorial-active #screen-game.active .you-zone {
  z-index: 40;
}
body.tutorial-active #screen-game.active #tutorial-coach.coach-top {
  z-index: 12050;
}
.tutorial-hl {
  position: relative;
  z-index: 30 !important;
  box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(240, 199, 94, 0.55) !important;
  animation: tutorial-pulse 1.1s ease-in-out infinite;
  pointer-events: auto !important;
}
@keyframes tutorial-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}
body.tutorial-lock #screen-game .poker-stage,
body.tutorial-lock #screen-game .topbar,
body.tutorial-lock #screen-game .you-actions,
body.tutorial-lock #screen-game .action-hint {
  pointer-events: none;
}
body.tutorial-lock .tutorial-hl,
body.tutorial-lock #tutorial-coach,
body.tutorial-lock #card-tip,
body.tutorial-lock #app-modal .tutorial-hl,
body.tutorial-lock #app-modal-close,
body.tutorial-lock #app-modal-backdrop {
  pointer-events: auto !important;
}
body.tutorial-active #btn-sid {
  display: none !important;
}
body.tutorial-active #btn-begin {
  visibility: hidden;
  pointer-events: none;
}

/* —— Buttons —— */
.btn {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.btn:active {
  transform: scale(0.96);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.btn-gold {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 40%, #c9841a);
  color: #2a1508;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 #6b3a0a, var(--shadow);
}
.btn-gold:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn-red {
  background: linear-gradient(180deg, #ff7a6b, var(--crimson) 45%, var(--crimson-2));
  color: #fff;
  box-shadow: 0 4px 0 #6b1520;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

/* —— Panels —— */
.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 2px solid rgba(240, 199, 94, 0.35);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: min(92vw, 520px);
  text-align: center;
  backdrop-filter: blur(8px);
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.panel-sub,
.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.opp-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.7rem 0.3rem;
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
}
.opp-btn small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}
.opp-btn.selected {
  border-color: var(--gold);
  background: rgba(240, 199, 94, 0.12);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(240, 199, 94, 0.2);
}

.reveal-role {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin: 0.6rem 0 0.25rem;
  color: var(--crimson);
  text-shadow: 0 0 24px rgba(231, 76, 60, 0.45);
}
.reveal-role.kabadayi {
  color: var(--gold);
}
.reveal-goal {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.reveal-char {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  text-align: left;
}
.reveal-char strong {
  color: var(--gold);
  font-size: 1.15rem;
}
.reveal-char p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Game layout: Zynga-style poker table —— */
#screen-game.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(240, 199, 94, 0.18);
  flex-shrink: 0;
}
.brand-mini {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.notify-banner {
  flex: 1;
  min-width: 0;
  margin-left: 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
}
.notify-banner:hover:not(:disabled) {
  background: rgba(240, 199, 94, 0.1);
}
.notify-banner:disabled {
  cursor: default;
  opacity: 0.7;
}
.notify-banner.accent {
  color: var(--gold);
}
.notify-banner.good {
  color: var(--good);
}
.notify-banner.bad {
  color: var(--crimson);
}
.notify-banner.warn {
  color: var(--gold-2);
}
.notify-banner.flavor {
  color: rgba(232, 220, 200, 0.85);
  font-style: italic;
  font-weight: 600;
}

.poker-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.15rem 0.35rem 0.25rem;
  overflow: hidden;
}

.poker-table {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sabit masa — boyut asla you-zone ile değişmez; görünür alana sığ */
.table-stage {
  position: relative;
  width: min(96%, 100%);
  aspect-ratio: 1.75 / 1;
  max-height: 100%;
  margin: 0 auto;
  flex-shrink: 1;
}

.table-outer {
  position: absolute;
  inset: 18% 11% 20% 11%;
  border-radius: 50%;
  background:
    linear-gradient(160deg, #c49a5c 0%, var(--rail-light) 18%, var(--rail) 48%, var(--rail-dark) 82%, #2a1608 100%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 220, 160, 0.25),
    inset 0 3px 2px rgba(255, 230, 180, 0.4),
    inset 0 -4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.table-felt {
  position: absolute;
  inset: clamp(11px, 2.4vw, 18px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 50% at 50% 38%, #1c6b44 0%, var(--felt-lit) 28%, var(--felt) 58%, var(--felt-deep) 100%);
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px rgba(212, 168, 75, 0.35),
    inset 0 0 0 5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.table-felt::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 3px,
      rgba(255, 255, 255, 0.015) 4px
    );
  pointer-events: none;
  opacity: 0.7;
}

.table-inlay {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 199, 94, 0.22);
  pointer-events: none;
}
.table-inlay::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 199, 94, 0.12);
}

.table-brand {
  position: absolute;
  top: 18%;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  letter-spacing: 0.14em;
  color: rgba(240, 199, 94, 0.14);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
  user-select: none;
}

/* Deste + ıskarta — masa ortası (seat-ring üstünde, tıklanabilir) */
.table-piles {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.4rem);
  pointer-events: auto;
}
.table-choice {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(70%, 420px);
  height: min(55%, 220px);
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  pointer-events: auto;
  background: rgba(4, 14, 10, 0.72);
  border: 1px solid rgba(240, 199, 94, 0.35);
  border-radius: 16px;
  padding: 0.75rem;
}
.pile {
  position: relative;
  width: clamp(44px, 7vw, 64px);
  height: clamp(62px, 10vw, 88px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}
.pile:disabled {
  cursor: default;
  opacity: 0.85;
}
.pile.pile-armed {
  filter: drop-shadow(0 0 10px rgba(240, 199, 94, 0.75));
  animation: pulse 1.2s infinite;
}
.pile-face {
  width: 100%;
  height: 78%;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding: 0.2rem;
  background: linear-gradient(160deg, #3a2518, #1a100c);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.05;
}
.pile-face-back {
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background:
    repeating-linear-gradient(45deg, #1a3a28 0 6px, #0f2a1c 6px 12px);
  border-color: rgba(240, 199, 94, 0.35);
  color: var(--gold);
}
.pile-face-empty {
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  background: rgba(0, 0, 0, 0.25);
}
.pile-face.blue {
  background: linear-gradient(160deg, #2a5f8a, #14344e);
}
.pile-face.brown {
  background: linear-gradient(160deg, #8a5a2b, #3d2410);
}
.pile-face .card-suit.red {
  color: #ff6b6b;
}
.pile-label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(240, 199, 94, 0.75);
}
.pile-count {
  position: absolute;
  top: -0.25rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(240, 199, 94, 0.4);
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pile-stack {
  position: absolute;
  inset: 0 0 22% 0;
  border-radius: 7px;
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.35),
    4px 4px 0 rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.table-choice.hidden {
  display: none;
}
.table-choice-title {
  width: 100%;
  text-align: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.15rem;
}
.table-choice-sub {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.45rem;
}

/* Seat ring — tüm oyuncular (sen altta sabit) */
.seat-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  overflow: hidden;
}
.fx-flyer {
  position: fixed;
  width: 52px;
  height: 72px;
  margin-left: -26px;
  margin-top: -36px;
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.4s ease;
  z-index: 9001;
}
.fx-card {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(160deg, #3a2518, #1a100c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 0.2rem;
  color: #fff;
}
.fx-card.blue {
  background: linear-gradient(160deg, #2a5f8a, #14344e);
}
.fx-card.brown {
  background: linear-gradient(160deg, #8a5a2b, #3d2410);
}
.fx-card-back {
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #1a3a28 0 6px, #0f2a1c 6px 12px);
  color: var(--gold);
  font-size: 1.3rem;
  border-color: rgba(240, 199, 94, 0.35);
}
.fx-card-suit {
  font-size: 0.65rem;
  font-weight: 800;
}
.fx-card-suit.red {
  color: #ff6b6b;
}
.fx-card-name {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.05;
}
.fx-damage {
  position: fixed;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--crimson);
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(231, 76, 60, 0.7);
  animation: fx-dmg 0.7s ease-out forwards;
  z-index: 9002;
}
@keyframes fx-dmg {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -90%) scale(1);
  }
}

.seat {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translate(-50%, -50%);
  width: clamp(78px, 14vw, 120px);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  transition: filter 0.15s;
}
.seat.seat-you {
  z-index: 4;
}
.seat.current .seat-avatar {
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 18px rgba(240, 199, 94, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.5);
}
.seat.targetable {
  z-index: 12; /* orta hint'in üstünde tıklanabilsin */
}
.seat.targetable .seat-avatar {
  box-shadow:
    0 0 0 3px var(--crimson),
    0 0 20px rgba(231, 76, 60, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.5);
  animation: pulse 1.2s infinite;
}
.seat.dead {
  opacity: 0.42;
  filter: grayscale(0.85);
}
.seat.dead .seat-avatar {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
/* Eski .opp seçicileri tutorial uyumu */
.opp.current .seat-avatar {
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 18px rgba(240, 199, 94, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.5);
}
.opp.targetable .seat-avatar {
  box-shadow:
    0 0 0 3px var(--crimson),
    0 0 20px rgba(231, 76, 60, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.5);
  animation: pulse 1.2s infinite;
}
.opp.dead {
  opacity: 0.42;
  filter: grayscale(0.85);
}

.seat-avatar {
  position: relative;
  width: clamp(42px, 9vw, 58px);
  height: clamp(42px, 9vw, 58px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #4a7a5c, #1a3a28 60%, #0c1f16);
  border: 3px solid var(--rail-light);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.2vw, 1.55rem);
  color: var(--gold);
  letter-spacing: 0.02em;
}
.seat-avatar .kab-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: #1a1008;
  background: linear-gradient(145deg, #f0c75e, #c4922a);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.seat-plate {
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 12, 6, 0.92), rgba(8, 6, 4, 0.95));
  border: 1px solid rgba(240, 199, 94, 0.35);
  border-radius: 8px;
  padding: 0.2rem 0.3rem 0.28rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.opp-name {
  font-weight: 700;
  font-size: clamp(0.48rem, 1.5vw, 0.62rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--ink);
  line-height: 1.2;
}

.hp-block {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  align-items: center;
  margin-top: 0.12rem;
}
.hp-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.hp-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 3px rgba(231, 76, 60, 0.5);
}
.hp-pip.empty {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.hp-label {
  font-size: 0.45rem;
  line-height: 1.1;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.opp-meta {
  font-size: 0.48rem;
  color: var(--muted);
}
.opp-meta-role {
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.05rem;
}
.opp-blues,
.seat-front {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-top: 0.1rem;
  max-width: 100%;
}
.seat-hand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 18px;
  margin-top: 0.1rem;
}
.seat-card-back {
  width: 14px;
  height: 20px;
  margin-left: -6px;
  border-radius: 2px;
  border: 1px solid rgba(240, 199, 94, 0.35);
  background: repeating-linear-gradient(45deg, #1a3a28 0 3px, #0f2a1c 3px 6px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.seat-card-back:first-child {
  margin-left: 0;
}
.seat-hand-count {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--muted);
  margin-left: 0.2rem;
}
.chip {
  font-size: 0.42rem;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--blue-card);
  color: #fff;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-hint {
  position: absolute;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(6, 18, 12, 0.92);
  border: 1px solid rgba(240, 199, 94, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
/* Çekiş / genel — üst şerit (deste/ıskarta serbest) */
.action-hint.hint-top,
.action-hint:not(.hint-center) {
  top: 0.35rem;
  transform: translateX(-50%);
  width: min(92%, 520px);
}
/* Oyuncu hedefi — masa ortası, koltukların üstünü örtmez */
.action-hint.hint-center {
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(56%, 340px);
  max-width: 340px;
  flex-wrap: wrap;
  z-index: 8; /* piles(6) üstü, seat-ring koltukları tıklanabilir kalsın diye dar */
}
.action-hint.hidden {
  display: none;
}
.action-hint-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f3e6c8;
  line-height: 1.3;
}
.action-hint.hint-center .action-hint-text {
  font-size: 0.72rem;
  flex: 1 1 100%;
}
.hint-skip,
#hint-extra,
#hint-front {
  margin-top: 0 !important;
  flex-shrink: 0;
  padding: 0.3rem 0.7rem !important;
  font-size: 0.95rem !important;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-modal.hidden {
  display: none;
}
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 12, 8, 0.78);
  cursor: pointer;
}
.app-modal-panel {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 24, 16, 0.97);
  border: 2px solid rgba(240, 199, 94, 0.35);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.app-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(240, 199, 94, 0.2);
  flex-shrink: 0;
}
.app-modal-head.is-player {
  align-items: center;
}
.app-modal-head-main {
  flex: 1;
  min-width: 0;
}
.app-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.app-modal-subtitle {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}
.app-modal-role {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.app-modal-head.is-player .app-modal-role {
  color: rgba(240, 199, 94, 0.9);
}
.app-modal-head-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  max-width: 42%;
  align-self: center;
}
.app-modal-head-side .hp-block {
  align-items: flex-end;
}
.app-modal-head-side .hp-label {
  font-size: 0.72rem;
  text-align: right;
  max-width: 11rem;
}
.app-modal-head-side .hp-pip {
  width: 11px;
  height: 11px;
}
.app-modal-close {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0 !important;
}
.app-modal-head.is-player .app-modal-close {
  align-self: center;
}
.app-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.app-modal-body.is-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.app-modal-panel.is-guide {
  width: min(94%, 640px);
  height: min(88%, 720px);
}
.app-modal-body.is-guide {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  padding: 0.85rem 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e8dcc4;
}
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.guide-toc a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(240, 199, 94, 0.28);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.guide-toc a:active {
  background: rgba(240, 199, 94, 0.12);
}
.guide-section {
  margin: 0 0 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(240, 199, 94, 0.12);
}
.guide-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.guide-section h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.guide-section h4 {
  margin: 0.7rem 0 0.3rem;
  font-size: 0.88rem;
  color: #f0c75e;
  font-weight: 700;
}
.guide-section p {
  margin: 0 0 0.45rem;
}
.guide-section ul {
  margin: 0.2rem 0 0.5rem;
  padding-left: 1.15rem;
}
.guide-section li {
  margin: 0.2rem 0;
}
.guide-section strong {
  color: #f5e6c8;
}
.guide-note {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.6rem;
  border-left: 3px solid var(--gold-2);
  background: rgba(240, 199, 94, 0.08);
  border-radius: 0 6px 6px 0;
  font-size: 0.84rem;
  color: #dcc9a0;
}
.player-modal-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.player-modal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.app-modal-body .line {
  margin-bottom: 0.28rem;
  color: var(--muted);
}
.app-modal-body .line.accent {
  color: var(--gold);
  font-weight: 700;
}
.app-modal-body .line.good {
  color: var(--good);
}
.app-modal-body .line.bad {
  color: var(--crimson);
}
.app-modal-body .line.warn {
  color: var(--gold-2);
}
.app-modal-body .line.flavor {
  color: rgba(232, 220, 200, 0.72);
  font-style: italic;
  padding-left: 0.35rem;
}
.app-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid rgba(240, 199, 94, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.app-modal-footer.hidden {
  display: none;
}
.player-front-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}
.player-front-cards .card {
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.player-front-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.card-tip {
  position: fixed;
  z-index: 11000;
  max-width: min(280px, calc(100vw - 24px));
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(8, 20, 14, 0.96);
  border: 1px solid rgba(240, 199, 94, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.card-tip.hidden {
  display: none;
}
.card-tip-name {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.card-tip-desc {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hidden {
  display: none !important;
}
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.prompt-actions .btn {
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  margin-top: 0;
}

/* you-zone: masa boyutunu değiştirmez — alt overlay */
.you-zone {
  position: absolute;
  left: 50%;
  bottom: calc(0.2rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 25;
  width: min(96%, 720px);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 6, 0.92), rgba(8, 6, 4, 0.96));
  border-radius: 14px;
  border: 1px solid rgba(240, 199, 94, 0.35);
  padding: 0.3rem 0.45rem 0.35rem;
  box-shadow:
    0 -8px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 220, 160, 0.12);
  overflow: hidden;
  pointer-events: auto;
}
.you-zone.hidden {
  display: none;
}
.you-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 199, 94, 0.45), transparent);
  pointer-events: none;
}
.you-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  flex-shrink: 0;
  justify-content: center;
}
.you-meta.you-meta-clickable {
  cursor: pointer;
  border-radius: 8px;
  padding: 0.15rem 0.35rem;
}
.you-meta.you-meta-clickable:active {
  background: rgba(240, 199, 94, 0.12);
}
.you-meta .name {
  font-weight: 800;
  color: var(--gold);
}
.you-meta .you-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a8a6c, #1a3a28);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}
.you-board {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 0 2px;
}
.you-blues {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 0.15rem 0;
}
.you-blues:empty {
  display: none;
}
.hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 12px 0.15rem 0.2rem;
  flex-shrink: 0;
  min-height: 0;
}
.you-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-shrink: 0;
}
.you-actions .btn {
  font-size: 1.05rem;
  padding: 0.4rem 1rem;
  margin-top: 0;
}

/* —— Playing cards —— */
.card,
.card * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none;
}
.card {
  position: relative;
  width: 64px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, #3a2518, #1a100c);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  transform: rotate(var(--tilt, 0deg));
  touch-action: none;
}
.card.card-board {
  width: 48px;
  height: 68px;
  transform: none;
}
.card.card-board .card-name {
  font-size: 0.62rem;
}
.card.blue {
  background: linear-gradient(160deg, #2a5f8a, #14344e);
  border-color: #7ec8ff88;
}
.card.brown {
  background: linear-gradient(160deg, #8a5a2b, #3d2410);
}
.card.selected {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  z-index: 5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold);
}
.card.card-board.selected {
  transform: translateY(-6px) scale(1.03);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover:not(.is-holding):not(.is-tipping):not(.disabled) {
    transform: translateY(-8px) rotate(0deg) scale(1.04);
    z-index: 5;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold);
  }
  .card.card-board:hover:not(.is-holding):not(.is-tipping) {
    transform: translateY(-6px) scale(1.03);
  }
}
.card.is-holding,
.card.is-tipping {
  transform: rotate(var(--tilt, 0deg)) scale(1.02) !important;
  z-index: 6;
  box-shadow: 0 0 0 2px rgba(240, 199, 94, 0.75), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.card.card-board.is-holding,
.card.card-board.is-tipping {
  transform: scale(1.03) !important;
}
.card.disabled {
  opacity: 0.45;
  filter: grayscale(0.4);
  cursor: default;
}
.card.disabled.selected {
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .card.disabled:hover {
    transform: rotate(var(--tilt, 0deg));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  }
}
.card-suit {
  font-size: 0.75rem;
  font-weight: 800;
}
.card-suit.red {
  color: #ff6b6b;
}
.card-suit.black {
  color: #eee;
}
.card-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.05;
  margin-top: auto;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  letter-spacing: 0.02em;
}
.card-mini {
  width: 48px;
  height: 68px;
  font-size: 0.7rem;
}
.card-mini .card-name {
  font-size: 0.65rem;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-content: flex-start;
  padding: 12px 4px 10px;
}

.over-panel #over-title {
  font-size: 2.6rem;
}

/* —— Mobile landscape gate —— */
.rotate-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #06110c;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.rotate-card {
  text-align: center;
  max-width: 280px;
}
.rotate-icon {
  font-size: 3.5rem;
  color: var(--gold);
  animation: spin-hint 2s ease-in-out infinite;
}
.rotate-card h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2rem;
  margin: 0.4rem 0;
}
.rotate-card p {
  color: var(--muted);
}
@keyframes spin-hint {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(90deg);
  }
  60% {
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .rotate-gate {
    display: flex;
  }
  .app {
    visibility: hidden;
  }
}

@media (max-height: 500px) {
  .card {
    width: 46px;
    height: 64px;
  }
  .card .card-name {
    font-size: 0.5rem;
    font-weight: 600;
  }
  .card.card-board {
    width: 36px;
    height: 50px;
  }
  .table-stage {
    max-height: 100%;
  }
  #tutorial-coach.coach-top {
    max-height: 92px;
  }
  .seat {
    width: 70px;
  }
  .seat-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .you-meta {
    font-size: 0.65rem;
  }
  .you-actions .btn {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }
  .pile {
    width: 38px;
    height: 54px;
  }
}

@media (min-width: 900px) and (min-height: 640px) {
  .card {
    width: 74px;
    height: 102px;
  }
  .card-name {
    font-size: 0.88rem;
  }
  .card.card-board {
    width: 54px;
    height: 76px;
  }
}
