.brush-stroke-btn {
  position: relative;
  z-index: 0;
  padding: 16px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brush-stroke-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.88), rgba(48, 10, 16, 0.92));
  clip-path: polygon(2% 15%, 15% 5%, 40% 0%, 65% 8%, 85% 2%, 98% 12%, 100% 40%, 95% 65%, 98% 85%, 85% 95%, 60% 100%, 35% 92%, 15% 98%, 2% 88%, 0% 60%, 5% 35%);
  transition: all 0.3s ease;
  z-index: -1;
}

.brush-stroke-btn:hover::before {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.92), rgba(92, 12, 24, 0.96));
  box-shadow: 0 0 15px rgba(220, 20, 60, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
}

.brush-stroke-btn:hover {
  text-shadow: 0 0 8px #D4AF37;
}

.brush-stroke-btn.danger::before {
  background: rgba(139, 0, 0, 0.8);
}

.end-turn-btn {
  filter: none;
  text-shadow: none;
}

.end-turn-btn::before {
  box-shadow: none;
}

.end-turn-btn:hover::before {
  box-shadow: none;
}

.crimson-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--warm-white);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.crimson-input::placeholder {
  color: rgba(160, 144, 128, 0.3);
}

.crimson-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.register-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-top-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px 24px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: auto;
}

.game-hero-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: clamp(220px, 24vw, 300px);
  min-height: 74px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: all 0.2s;
}

.game-player-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.game-player-mana {
  flex: 0 0 auto;
}

.game-hero-copy {
  min-width: 0;
}

.game-clock-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.55);
}

.game-pause-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  font-size: 20px;
  color: var(--gold-light);
  justify-self: end;
}

.game-pause-btn:hover {
  color: var(--warm-white);
  background: rgba(10, 10, 10, 0.9);
  transform: translateY(-1px);
}

.game-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
  height: 100dvh;
  --field-card-width: 100px;
  --field-card-height: 150px;
  --hand-card-width: 120px;
  --hand-card-height: 170px;
}

.turn-intro-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.turn-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turn-intro-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.16) 46%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.54));
}

.turn-intro-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.turn-intro-caption.visible {
  opacity: 1;
  transform: translateY(0);
}

.turn-intro-caption h1 {
  color: var(--warm-white);
  font-size: clamp(44px, 9vw, 108px);
  line-height: 0.9;
  text-shadow:
    0 0 14px var(--turn-intro-accent),
    0 0 32px rgba(0, 0, 0, 0.95);
}

.turn-intro-icon {
  color: var(--turn-intro-accent);
  font-size: clamp(22px, 4vw, 42px);
  text-shadow: 0 0 18px var(--turn-intro-accent);
}

.game-board-zone {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  padding: 8px 0;
}

.game-field-row {
  display: grid;
  grid-template-columns: repeat(3, var(--field-card-width));
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.game-bottom-panel {
  flex: 0 0 auto;
  padding: 0 20px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.6), transparent);
  pointer-events: auto;
}

.game-bottom-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.game-hand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: min(100%, 820px);
  margin: 0 auto 12px;
}

.game-hand-card {
  width: var(--hand-card-width) !important;
  height: var(--hand-card-height) !important;
}

.game-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-log-toggle {
  color: var(--warm-gray);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
}

.game-log-toggle:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.game-action-chip {
  color: var(--warm-gray);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.game-action-chip.gold {
  color: var(--gold);
  letter-spacing: 0.2em;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-color: rgba(212, 175, 55, 0.2);
}

.game-action-chip.crimson {
  color: var(--crimson);
  letter-spacing: 0.2em;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-color: rgba(220, 20, 60, 0.2);
}

.game-action-chip.waiting {
  color: var(--warm-gray);
  font-size: 13px;
  letter-spacing: 0.2em;
  padding: 8px 20px;
  border-radius: 8px;
  animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

.game-battle-log {
  margin-top: 8px;
  max-height: 96px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 8px;
}

.hero-health-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.hero-health-bar {
  position: relative;
  width: clamp(116px, 16vw, 180px);
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-health-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-health-icon {
  color: var(--crimson);
  font-size: 20px;
  flex: 0 0 auto;
}

.mana-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold), var(--gold-dark));
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
  transition: all 0.3s;
}

.mana-orb.empty {
  background: var(--ink-light);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.card-game {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-game:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), 0 8px 30px rgba(0, 0, 0, 0.8);
}

.card-game.selected {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
}

.card-game.field-card { transform-style: preserve-3d; }
.card-game.field-card:hover { transform: translateY(-4px) scale(1.02); }

.crimson-modal {
  background: linear-gradient(180deg, var(--ink-light) 0%, var(--ink-dark) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.crimson-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.crimson-tab.active {
  background: rgba(139, 0, 0, 0.4);
  color: var(--warm-white);
}

.crimson-tab:hover { color: var(--warm-white); }

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.5);
}

.avatar-circle.sm { width: 32px; height: 32px; border-width: 1px; }
.avatar-circle.lg { width: 90px; height: 90px; border-width: 2px; }
.avatar-circle.xl { width: 120px; height: 120px; border-width: 3px; }

.health-bar {
  width: 180px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.health-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson), var(--crimson-light));
  transition: width 0.5s ease;
  border-radius: 9999px;
}

.health-bar-fill.low {
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson), var(--crimson-light));
  animation: pulse-glow 2s ease-in-out infinite;
}

.health-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.field-slot {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  cursor: pointer;
}

.field-slot:hover { border-color: rgba(212, 175, 55, 0.4); }

.hand-card {
  width: 120px;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
}

.hand-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hand-card.selected {
  transform: translateY(-16px) scale(1.05);
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(212, 175, 55, 0.4);
  border-color: var(--gold);
  z-index: 10;
}

.battle-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  padding: 3px 0;
}

.log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.log-dot.attack { background: var(--crimson); }
.log-dot.play { background: var(--gold); }
.log-dot.destroy { background: #dc2626; }
.log-dot.turn { background: #3b82f6; }
.log-dot.system { background: var(--warm-gray); }

.log-text.attack { color: var(--crimson); }
.log-text.play { color: var(--gold); }
.log-text.destroy { color: #f87171; }
.log-text.turn { color: #93c5fd; }
.log-text.system { color: var(--warm-gray); }

.suit-icon { font-size: 14px; }
.suit-icon.red { color: var(--crimson); }
.suit-icon.gold { color: var(--gold); }

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.card-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 14px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-tooltip.visible {
  opacity: 1;
}

@media (max-width: 980px) {
  .game-top-hud {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 12px 14px 8px;
  }

  .game-clock-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, 340px);
    justify-self: center;
    padding: 10px 14px;
  }

  .game-bottom-status {
    flex-wrap: wrap;
    justify-content: center;
  }

  .game-player-status {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .register-password-grid {
    grid-template-columns: 1fr;
  }

  .game-bottom-panel {
    padding: 0 14px 12px;
  }

  .game-hand-card {
    width: 96px !important;
    height: 136px !important;
  }

  .game-hand-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .game-bottom-actions .brush-stroke-btn {
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .game-battle-log {
    max-height: 72px;
  }
}

@media (max-width: 640px) {
  .game-play-overlay {
    --field-card-width: clamp(72px, 24vw, 100px);
    --field-card-height: calc(var(--field-card-width) * 1.48);
    --hand-card-width: clamp(78px, 25vw, 104px);
    --hand-card-height: calc(var(--hand-card-width) * 1.42);
    justify-content: stretch;
    scrollbar-gutter: auto;
  }

  .screen-title h1.font-gothic {
    font-size: clamp(36px, 12vw, 72px) !important;
  }

  .screen-title .title-subtitle {
    font-size: clamp(8px, 2.5vw, 10px) !important;
  }

  .screen-title .title-tagline {
    font-size: clamp(8px, 2.2vw, 10px) !important;
  }

  .screen-title .title-ghost {
    font-size: clamp(80px, 25vw, 200px) !important;
  }

  .screen-title .title-hero-glow {
    width: clamp(240px, 70vw, 600px) !important;
    height: clamp(240px, 70vw, 600px) !important;
  }

  .screen-title .title-main-btn {
    font-size: clamp(13px, 4vw, 16px) !important;
    padding: clamp(12px, 3vw, 16px) clamp(28px, 8vw, 48px) !important;
  }

  .screen-title .title-secondary-btns {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .screen-title .title-secondary-btn {
    font-size: clamp(8px, 2.5vw, 10px) !important;
    padding: clamp(8px, 2vw, 12px) clamp(14px, 4vw, 24px) !important;
  }

  .screen-title .title-bottom-bar {
    display: none !important;
  }

  .screen-title .title-auth-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .screen-title .title-auth-row > span {
    display: none;
  }

  .screen-title .title-divider-line {
    width: clamp(24px, 8vw, 64px) !important;
  }

  .screen-title .title-content {
    margin-bottom: clamp(24px, 6vw, 48px) !important;
  }

  .screen-title .title-diamond-icon {
    font-size: clamp(16px, 5vw, 24px) !important;
  }

  .screen-mode-select .mode-select-header {
    padding: 12px 14px !important;
  }

  .screen-mode-select .mode-select-header h1 {
    font-size: clamp(20px, 6vw, 28px) !important;
  }

  .screen-mode-select .mode-select-grid {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  .screen-mode-select .mode-select-card {
    min-height: 140px !important;
    padding: 16px !important;
  }

  .screen-mode-select .mode-select-card span:first-of-type {
    font-size: 28px !important;
  }

  .screen-mode-select .mode-select-card span:nth-of-type(2) {
    font-size: 14px !important;
  }

  .screen-mode-select .mode-select-card span:nth-of-type(3) {
    font-size: 9px !important;
  }

  .game-top-hud {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 6px;
  }

  .game-clock-panel {
    width: min(100%, 320px);
    padding: 8px 10px;
  }

  .game-pause-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .game-board-zone {
    justify-content: flex-end;
    gap: 5px;
    padding: 0 8px 4px;
  }

  .game-field-row {
    gap: clamp(6px, 2vw, 12px);
  }

  .game-field-row > button,
  .game-field-row > div {
    width: var(--field-card-width) !important;
    height: var(--field-card-height) !important;
  }

  .game-bottom-panel {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .game-bottom-status {
    margin-bottom: 8px;
  }

  .game-player-status {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }

  .game-player-mana > div {
    gap: 4px !important;
    padding: 6px 8px !important;
  }

  .mana-orb {
    width: 16px;
    height: 16px;
  }

  .game-hand-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    padding: 8px 6px 12px;
    margin: 0 -4px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .game-hand-row::-webkit-scrollbar {
    display: none;
  }

  .game-hand-card {
    scroll-snap-align: center;
    min-width: var(--hand-card-width);
  }

  .game-bottom-actions {
    gap: 6px;
  }

  .game-action-chip {
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 6px 10px;
  }

  .card-tooltip {
    display: none;
  }
}

@media (max-width: 520px) {
  .game-hero-panel {
    gap: 6px;
    width: 180px;
    min-height: 56px;
    padding: 5px 6px;
  }

  .game-clock-panel {
    font-size: 0.8em;
    padding: 6px 8px;
    gap: 4px;
  }

  .game-clock-panel > div:first-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .avatar-circle {
    width: 38px;
    height: 38px;
  }

  .hero-health-bar {
    width: 100px;
    height: 20px;
  }

  .hero-health-text {
    font-size: 10px;
  }

  .hero-health-icon {
    font-size: 16px;
  }

  .game-board-zone {
    gap: 6px;
    padding: 4px 0;
  }

  .game-board-zone > .game-field-row + div {
    margin: 8px 0 !important;
  }

  .game-hand-card {
    width: var(--hand-card-width) !important;
    height: var(--hand-card-height) !important;
  }

  .game-bottom-actions {
    gap: 6px;
  }

  .game-bottom-actions .brush-stroke-btn {
    padding: 8px 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .screen-mode-select .mode-select-card {
    min-height: 120px !important;
  }

  .screen-profile .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .screen-profile .profile-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .screen-profile .profile-match-row {
    flex-wrap: wrap;
    gap: 6px !important;
  }

  .screen-profile .profile-match-row > div:first-child {
    width: 100% !important;
  }

  .screen-leaderboard .lb-header-row {
    display: none !important;
  }

  .screen-leaderboard .lb-entry {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px !important;
  }

  .screen-leaderboard .lb-entry > div:first-child {
    width: 30px !important;
  }

  .screen-leaderboard .lb-entry > div:nth-child(2) {
    flex: 1 1 100% !important;
  }

  .screen-leaderboard .lb-entry > span {
    width: auto !important;
    flex: 1;
    font-size: 11px !important;
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  .game-hero-panel {
    width: 150px;
    gap: 4px;
    padding: 4px;
    min-height: 48px;
  }

  .game-hero-panel .avatar-circle {
    width: 32px;
    height: 32px;
  }

  .game-hero-panel .hero-health-bar {
    width: 80px;
    height: 18px;
  }

  .game-hero-panel .hero-health-text {
    font-size: 9px;
  }

  .game-hero-panel .hero-health-icon {
    font-size: 14px;
  }

  .game-hero-panel p {
    font-size: 12px !important;
  }

  .game-clock-panel {
    font-size: 0.7em;
  }

  .game-clock-panel #round-timer {
    font-size: 14px !important;
  }

  .game-pause-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .game-player-mana > div {
    padding: 4px 6px !important;
    gap: 3px !important;
  }

  .mana-orb {
    width: 12px;
    height: 12px;
  }

  #turn-timer .timer-seconds {
    font-size: 16px !important;
  }

  #turn-timer > div:last-child {
    width: 100px !important;
  }
}

@media (max-height: 700px) {
  .game-board-zone {
    gap: 4px;
    padding: 2px 0;
  }

  .game-board-zone > .game-field-row + div {
    margin: 4px 0 !important;
  }

  .game-bottom-panel {
    padding: 0 8px 8px;
  }

  .game-bottom-status {
    margin-bottom: 4px;
  }

  .game-hand-row {
    gap: 5px;
    margin-bottom: 6px;
    padding: 4px 4px 8px;
  }

  .game-bottom-actions {
    gap: 4px;
  }

  .game-bottom-actions .brush-stroke-btn {
    padding: 6px 12px;
    font-size: 9px;
  }

  .game-action-chip {
    padding: 4px 8px !important;
    font-size: 9px !important;
    min-height: 28px !important;
  }
}

@media (max-height: 820px) {
  .game-bottom-panel {
    padding: 0 16px 12px;
  }

  .game-hand-card {
    width: var(--hand-card-width) !important;
    height: var(--hand-card-height) !important;
  }

  .game-hand-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .game-bottom-actions .brush-stroke-btn {
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .game-battle-log {
    max-height: 72px;
  }
}
