﻿.game-page main {
  padding-bottom: 2rem;
}

.game-hero {
  padding: 1.4rem 0 1rem;
}

.game-hero__box {
  --hero-art: none;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.92));
  border: 1px solid rgba(75, 121, 255, 0.12);
  box-shadow: 0 16px 38px rgba(16, 45, 90, 0.12);
  position: relative;
  overflow: hidden;
}

.game-hero__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-art);
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  transform: scale(1.03);
}

.game-hero__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 224, 255, 0.18), transparent 32%),
    radial-gradient(circle at 90% 16%, rgba(255, 79, 216, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 250, 255, 0.9));
}

.game-hero__box > * {
  position: relative;
  z-index: 1;
}

.game-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

body[data-page="game-reels"] .game-hero__box {
  --hero-art: url("../img/reel-of-relics.jpg");
}

body[data-page="game-treasure"] .game-hero__box {
  --hero-art: url("../img/treasure-trek.jpg");
}

body[data-page="game-duel"] .game-hero__box {
  --hero-art: url("../img/arcane-hand-duel.jpg");
}

.game-layout {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
}

.game-stage-card,
.game-side-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 121, 255, 0.12);
  box-shadow: 0 14px 30px rgba(16, 45, 90, 0.1);
}

.game-stage-card {
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.game-stage-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(22, 224, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.game-stage-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -30% auto;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.1), transparent 70%);
  pointer-events: none;
}

.game-stage-card > * {
  position: relative;
}

.game-side-card {
  padding: 1.05rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.05rem;
}

.hud-chip {
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(75, 121, 255, 0.1);
  box-shadow: 0 10px 18px rgba(16, 45, 90, 0.06);
}

.hud-chip span {
  display: block;
  color: #54709d;
  font-size: 0.85rem;
  font-weight: 600;
}

.hud-chip strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  color: #0d2247;
  font-size: 1.05rem;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  row-gap: 0.65rem;
  align-items: center;
}

.game-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  border: 1px solid rgba(75, 121, 255, 0.12);
}

.game-input-wrap label {
  font-size: 0.85rem;
  color: #4d678f;
  font-weight: 700;
}

.game-input-wrap input,
.game-input-wrap select {
  width: 96px;
  border: 1px solid rgba(75, 121, 255, 0.18);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: white;
}

.game-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.game-log {
  border-radius: 16px;
  border: 1px solid rgba(75, 121, 255, 0.1);
  background: rgba(255, 255, 255, 0.74);
  padding: 0.9rem;
  max-height: 280px;
  overflow: auto;
}

.game-log h4 {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.game-log ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.game-log li {
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(75, 121, 255, 0.08);
  color: #456189;
  font-size: 0.88rem;
  line-height: 1.45;
}

.game-log li strong {
  color: #0f2f60;
}

.game-side-card h3 {
  margin-bottom: 0.25rem;
}

.game-side-card p {
  font-size: 0.92rem;
}

.info-list {
  display: grid;
  gap: 0.6rem;
}

.info-list .row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.6rem;
  align-items: start;
}

.info-list .row i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(22, 224, 255, 0.12);
  color: #0b3468;
  font-style: normal;
  font-size: 0.85rem;
}

.info-list .row p {
  margin: 0;
}

.stage-caption {
  margin-top: 0.95rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(75, 121, 255, 0.1);
  color: #4a658f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.reel-stage .stage-caption,
.treasure-stage .stage-caption,
.duel-stage .stage-caption {
  color: #4a658f;
}

.glow-rail {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 224, 255, 0.1), rgba(22, 224, 255, 0.75), rgba(255, 79, 216, 0.75), rgba(40, 240, 171, 0.35));
  box-shadow: 0 0 16px rgba(22, 224, 255, 0.25);
  margin: 0.8rem 0 0.9rem;
}

/* Reel spinner game */
.reel-theme {
  background:
    radial-gradient(circle at 15% 15%, rgba(22, 224, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(255, 79, 216, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(245, 250, 255, 0.95));
}

.reel-stage {
  --reel-cell-size: 82px;
  --reel-gap: 0.5rem;
  border-radius: 22px;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 50% 8%, rgba(22, 224, 255, 0.12), transparent 36%),
    linear-gradient(180deg, #051328, #0c2350 70%);
  border: 1px solid rgba(22, 224, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 30px rgba(5, 19, 40, 0.24);
}

.reel-stage__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.reel-stage__title {
  color: white;
}

.reel-stage__title p {
  color: rgba(226, 241, 255, 0.76);
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

.reel-frame {
  position: relative;
  border-radius: 18px;
  padding: 0.8rem;
  background:
    linear-gradient(180deg, rgba(7, 20, 46, 0.98), rgba(10, 30, 64, 0.98));
  border: 1px solid rgba(22, 224, 255, 0.16);
  box-shadow: inset 0 0 22px rgba(22, 224, 255, 0.06);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.reel-column {
  position: relative;
  border-radius: 16px;
  padding: 0.5rem;
  height: calc((var(--reel-cell-size) * 3) + (var(--reel-gap) * 2) + 1rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(22, 224, 255, 0.05);
}

.reel-track {
  display: grid;
  gap: var(--reel-gap);
  will-change: transform, filter;
  transform: translateY(0);
}

.symbol-cell {
  min-height: var(--reel-cell-size);
  height: var(--reel-cell-size);
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(160deg, rgba(14, 40, 86, 0.9), rgba(8, 18, 38, 0.9));
  border: 1px solid rgba(22, 224, 255, 0.12);
  color: white;
  font-size: 1.7rem;
  box-shadow: inset 0 0 18px rgba(22, 224, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.symbol-cell small {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.63rem;
  color: rgba(231, 244, 255, 0.7);
}

.symbol-cell.is-winning {
  border-color: rgba(40, 240, 171, 0.75);
  box-shadow:
    0 0 0 1px rgba(40, 240, 171, 0.5) inset,
    0 0 22px rgba(40, 240, 171, 0.24),
    inset 0 0 22px rgba(40, 240, 171, 0.14);
  animation: symbolPulse 0.65s ease-in-out 2;
}

@keyframes symbolPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.reel-column.is-spinning .reel-track {
  filter: blur(0.55px) saturate(1.08) brightness(1.04);
}

@keyframes reelBlur {
  0% {
    transform: translateY(0px);
    filter: blur(0px);
  }
  50% {
    transform: translateY(2px);
    filter: blur(1px);
  }
  100% {
    transform: translateY(0px);
    filter: blur(0px);
  }
}

.paylines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.payline {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(230, 243, 255, 0.8);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.payline.active {
  border-color: rgba(40, 240, 171, 0.35);
  box-shadow: 0 0 16px rgba(40, 240, 171, 0.14);
  color: white;
}

.win-banner {
  margin-top: 0.8rem;
  min-height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(228, 241, 255, 0.8);
}

.win-banner.is-win {
  border-color: rgba(255, 189, 74, 0.35);
  box-shadow: 0 0 18px rgba(255, 189, 74, 0.16);
  color: #fff;
}

.win-banner strong {
  font-family: var(--font-display);
}

.reel-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.reel-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(22,224,255,0.85), rgba(22,224,255,0));
  box-shadow: 0 0 12px rgba(22, 224, 255, 0.7);
  animation: sparkRise 900ms ease-out forwards;
}

@keyframes sparkRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-28px) scale(1.5);
  }
}
/* Treasure expedition game */
.treasure-stage {
  border-radius: 22px;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 189, 74, 0.14), transparent 34%),
    radial-gradient(circle at 85% 16%, rgba(22, 224, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #08172f, #0d254d 70%);
  border: 1px solid rgba(255, 189, 74, 0.18);
  box-shadow: inset 0 0 26px rgba(255, 189, 74, 0.05), 0 16px 30px rgba(5, 19, 40, 0.24);
  color: #edf6ff;
}

.treasure-stage h3,
.treasure-stage p {
  color: inherit;
}

.treasure-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.treasure-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.treasure-tile {
  position: relative;
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 35, 71, 0.95), rgba(10, 21, 42, 0.95));
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: inset 0 0 14px rgba(22, 224, 255, 0.03);
}

.treasure-tile:hover:not(.is-open):not(.is-disabled) {
  transform: translateY(-2px);
  border-color: rgba(22, 224, 255, 0.25);
  box-shadow: 0 0 18px rgba(22, 224, 255, 0.08), inset 0 0 18px rgba(22, 224, 255, 0.06);
}

.treasure-tile.is-disabled {
  cursor: default;
  opacity: 0.65;
}

.treasure-tile__lid,
.treasure-tile__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.treasure-tile__lid {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(148, 108, 42, 0.86), rgba(90, 61, 20, 0.9));
  border-bottom: 2px solid rgba(255, 189, 74, 0.18);
}

.treasure-tile__lid::before {
  content: "";
  width: 36%;
  height: 20%;
  border-radius: 8px;
  background: rgba(255, 215, 136, 0.2);
  border: 1px solid rgba(255, 215, 136, 0.3);
  box-shadow: 0 0 12px rgba(255, 189, 74, 0.15);
}

.treasure-tile__face {
  opacity: 0;
  transform: scale(0.84);
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.1), transparent 38%),
    linear-gradient(180deg, rgba(12, 30, 60, 0.9), rgba(7, 18, 38, 0.95));
  color: #f8fbff;
  font-size: 1.6rem;
}

.treasure-tile.is-open .treasure-tile__lid {
  transform: translateY(-110%);
  opacity: 0;
}

.treasure-tile.is-open .treasure-tile__face {
  opacity: 1;
  transform: scale(1);
}

.treasure-tile.is-gem .treasure-tile__face {
  border: 1px solid rgba(22, 224, 255, 0.24);
  box-shadow: inset 0 0 14px rgba(22, 224, 255, 0.08), 0 0 16px rgba(22, 224, 255, 0.08);
}

.treasure-tile.is-relic .treasure-tile__face {
  border: 1px solid rgba(255, 189, 74, 0.28);
  box-shadow: inset 0 0 16px rgba(255, 189, 74, 0.08), 0 0 18px rgba(255, 189, 74, 0.1);
}

.treasure-tile.is-shadow .treasure-tile__face {
  border: 1px solid rgba(255, 79, 216, 0.22);
  box-shadow: inset 0 0 14px rgba(255, 79, 216, 0.08);
}

.treasure-tile.is-hit {
  animation: tileHit 0.42s ease;
}

@keyframes tileHit {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.treasure-summary {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.risk-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.risk-meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(40,240,171,0.9), rgba(255,189,74,0.9), rgba(255,79,216,0.9));
  box-shadow: 0 0 12px rgba(255, 189, 74, 0.25);
  transition: width 0.25s ease;
}

.treasure-banner {
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 44px;
  display: flex;
  align-items: center;
  color: rgba(236, 246, 255, 0.86);
}

.treasure-banner.is-alert {
  border-color: rgba(255, 79, 216, 0.28);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.12);
}

.treasure-banner.is-safe {
  border-color: rgba(40, 240, 171, 0.28);
  box-shadow: 0 0 18px rgba(40, 240, 171, 0.12);
}

/* Card duel game */
.duel-stage {
  border-radius: 22px;
  padding: 0.95rem;
  background:
    radial-gradient(circle at 16% 14%, rgba(22, 224, 255, 0.14), transparent 36%),
    radial-gradient(circle at 86% 14%, rgba(255, 79, 216, 0.12), transparent 34%),
    linear-gradient(180deg, #08172e, #0c1f43 70%);
  border: 1px solid rgba(75, 121, 255, 0.2);
  box-shadow: inset 0 0 26px rgba(22, 224, 255, 0.04), 0 16px 30px rgba(5, 19, 40, 0.24);
  color: #ebf5ff;
}

.duel-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.duel-arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.fighter-card {
  position: relative;
  border-radius: 18px;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 18px rgba(22,224,255,0.03);
  overflow: hidden;
}

.fighter-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle, rgba(22,224,255,0.12), transparent 70%);
}

.fighter-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.fighter-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(160deg, rgba(24,55,108,0.95), rgba(9,20,42,0.95));
  border: 1px solid rgba(22,224,255,0.14);
  box-shadow: 0 12px 20px rgba(0,0,0,0.18);
}

.fighter-meta h4 {
  margin: 0 0 0.25rem;
  color: #f4fbff;
}

.fighter-meta p {
  margin: 0;
  color: rgba(234, 245, 255, 0.72);
  font-size: 0.86rem;
}

.hp-wrap,
.energy-wrap {
  margin-top: 0.55rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: rgba(236, 246, 255, 0.86);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.stat-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.stat-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transition: width 0.3s ease;
}

.stat-bar.hp span {
  background: linear-gradient(90deg, #28f0ab, #16e0ff);
  box-shadow: 0 0 10px rgba(40,240,171,0.22);
}

.stat-bar.energy span {
  background: linear-gradient(90deg, #4b79ff, #ff4fd8);
  box-shadow: 0 0 10px rgba(75,121,255,0.22);
}

.fighter-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(22,224,255,0.2);
}

.attack-flash {
  animation: attackFlash 0.35s ease;
}

.hit-flash {
  animation: hitFlash 0.45s ease;
}

@keyframes attackFlash {
  0% { box-shadow: inset 0 0 0 rgba(22,224,255,0); }
  50% { box-shadow: inset 0 0 40px rgba(22,224,255,0.12); }
  100% { box-shadow: inset 0 0 0 rgba(22,224,255,0); }
}

@keyframes hitFlash {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.duel-hand {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.duel-card {
  position: relative;
  border-radius: 16px;
  padding: 0.75rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(22,224,255,0.1), transparent 36%),
    linear-gradient(180deg, rgba(18,38,77,0.96), rgba(10,20,42,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 170px;
  color: #edf6ff;
  box-shadow: 0 12px 18px rgba(0,0,0,0.18);
  display: grid;
  align-content: start;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.duel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22,224,255,0.25);
}

.duel-card.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.duel-card.playable {
  box-shadow: 0 0 0 1px rgba(22,224,255,0.15) inset, 0 14px 20px rgba(0,0,0,0.2);
}

.duel-card .card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: start;
}

.duel-card .cost {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  background: rgba(75,121,255,0.22);
  border: 1px solid rgba(75,121,255,0.24);
  color: #fff;
}

.duel-card .type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(234,245,255,0.7);
}

.duel-card h4 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.duel-card p {
  margin: 0;
  color: rgba(234,245,255,0.78);
  font-size: 0.82rem;
  line-height: 1.45;
}

.duel-card .power-line {
  margin-top: auto;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.duel-card .power-line span {
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.duel-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.duel-banner {
  margin-top: 0.7rem;
  min-height: 44px;
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  color: rgba(236,246,255,0.86);
}

.duel-banner.is-player {
  border-color: rgba(22,224,255,0.28);
  box-shadow: 0 0 16px rgba(22,224,255,0.12);
}

.duel-banner.is-enemy {
  border-color: rgba(255,79,216,0.28);
  box-shadow: 0 0 16px rgba(255,79,216,0.12);
}

.turn-pill {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 0.82rem;
}

.turn-pill.player {
  color: #88f8ff;
}

.turn-pill.enemy {
  color: #ff9ce9;
}

@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .treasure-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .duel-hand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .game-hero__box,
  .game-stage-card,
  .game-side-card {
    border-radius: 18px;
  }

  .game-stage-card,
  .game-side-card {
    padding: 0.95rem;
  }

  .reel-grid {
    gap: 0.45rem;
  }

  .symbol-cell {
    min-height: var(--reel-cell-size);
    height: var(--reel-cell-size);
    font-size: 1.35rem;
  }

  .reel-stage {
    --reel-cell-size: 68px;
  }

  .paylines {
    grid-template-columns: 1fr;
  }

  .treasure-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .treasure-tile {
    min-height: 76px;
  }

  .treasure-summary {
    grid-template-columns: 1fr;
  }

  .fighter-row {
    grid-template-columns: 58px 1fr;
  }

  .fighter-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 1.6rem;
  }

  .fighter-number {
    display: none;
  }

  .duel-card {
    min-height: 150px;
  }
}
