/* Gameplay and match-results polish.
   This sheet intentionally layers on top of style.css so the game can keep its
   existing layout and state logic while exposing clearer interactive states. */

:root {
  --arena-ink: #0a0524;
  --arena-panel: rgba(14, 8, 46, .92);
  --arena-gold: #ffd866;
  --arena-gold-bright: #fff4b2;
  --arena-cyan: #69efff;
  --arena-violet: #8e63ff;
}

/* ---------- arena surface ---------- */
.game {
  background:
    radial-gradient(circle at 50% 44%, rgba(107, 65, 214, .34), transparent 54%),
    var(--arena-ink);
}

.arena-bg {
  background-image: url("img/arena-royal.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.04);
  isolation: isolate;
}

.arena-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 36%, rgba(8, 3, 31, .2) 76%, rgba(5, 2, 22, .52) 100%),
    linear-gradient(180deg, rgba(4, 2, 22, .1), transparent 34%, rgba(20, 6, 50, .14));
  box-shadow: inset 0 0 90px rgba(4, 2, 24, .42);
}

#gameStage {
  isolation: isolate;
}

#gameStage::before {
  content: '';
  position: absolute;
  inset: 9px;
  z-index: 20;
  border: 2px solid transparent;
  border-radius: 30px;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px transparent;
  transition: opacity .24s ease, border-color .24s ease, box-shadow .24s ease;
}

#gameStage.my-turn::before {
  opacity: 1;
  border-color: rgba(255, 216, 102, .7);
  box-shadow:
    inset 0 0 34px rgba(255, 205, 70, .16),
    inset 0 0 0 1px rgba(255, 248, 205, .24),
    0 0 24px rgba(255, 216, 102, .22);
  animation: royalTurnFrame 1.35s ease-in-out infinite alternate;
}

#gameStage.my-turn .round-banner {
  color: #fff8cf;
  box-shadow:
    0 0 0 3px var(--arena-gold),
    0 8px 18px rgba(0, 0, 0, .5),
    0 0 26px rgba(255, 216, 102, .46);
}

@keyframes royalTurnFrame {
  to {
    border-color: rgba(255, 244, 178, .98);
    box-shadow:
      inset 0 0 52px rgba(255, 205, 70, .25),
      inset 0 0 0 1px rgba(255, 255, 238, .46),
      0 0 34px rgba(255, 216, 102, .35);
  }
}

/* ---------- compact player profiles ---------- */
.seat {
  gap: 10px;
  transition: filter .3s ease;
}

.seat .pic {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  box-shadow:
    0 0 0 3px #c9a0ff,
    0 0 0 6px #3a1a7a,
    0 9px 15px rgba(0, 0, 0, .5);
}

.seat.me .pic {
  width: 104px;
  height: 104px;
}

.seat .nm {
  min-width: 100px;
  max-width: 140px;
  margin-top: -10px;
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .22),
    0 5px 12px rgba(0, 0, 0, .34);
}

.seat.me .nm {
  min-width: 130px;
  max-width: 156px;
  font-size: 19px;
}

.seat .lv {
  left: -9px;
  top: -9px;
  width: 30px;
  height: 34px;
  font-size: 14px;
}

.seat .rank-tag {
  margin-top: 2px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 16px;
}

.seat .ring {
  inset: -11px;
}

.seat .ring circle {
  stroke-width: 5;
}

.seat .crown-top {
  top: -35px;
  width: 58px;
  height: 42px;
}

.seat .vbadges {
  right: -12px;
  bottom: 25px;
}

.seat .vbadges i,
.seat.me .vbadges i {
  width: 27px;
  height: 27px;
}

/* The application marks the current/next hunter with active-turn. */
.seat.active-turn {
  z-index: 7;
  filter: brightness(1.08);
}

.seat.active-turn .pic {
  box-shadow:
    0 0 0 4px var(--arena-gold-bright),
    0 0 0 8px #9b6410,
    0 0 34px 9px rgba(255, 216, 102, .72),
    0 10px 18px rgba(0, 0, 0, .58);
  animation: activeTurnHalo 1s ease-in-out infinite alternate;
}

.seat.active-turn .ring {
  display: block;
  filter: drop-shadow(0 0 7px var(--arena-gold-bright));
}

.seat.active-turn .ring circle {
  stroke-width: 7;
}

.seat .turn-tag {
  position: absolute;
  left: 50%;
  bottom: -26px;
  z-index: 7;
  display: none;
  min-width: max-content;
  transform: translateX(-50%);
  padding: 4px 11px 3px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1a2 0%, #e8ad25 62%, #b66c0b 100%);
  box-shadow:
    0 0 0 2px rgba(93, 48, 4, .84),
    0 5px 12px rgba(0, 0, 0, .5),
    0 0 18px rgba(255, 216, 102, .62);
  color: #3f2100;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px rgba(255, 255, 255, .52);
  white-space: nowrap;
  pointer-events: none;
}

.seat.active-turn .turn-tag {
  display: block;
  animation: turnTagPop .9s ease-in-out infinite alternate;
}

.seat.active-turn.me .turn-tag {
  background: linear-gradient(180deg, #d9fbff 0%, #69efff 58%, #2c91d0 100%);
  box-shadow:
    0 0 0 2px rgba(7, 55, 90, .9),
    0 5px 12px rgba(0, 0, 0, .5),
    0 0 22px rgba(105, 239, 255, .7);
  color: #082c43;
}

/* The local player sits on the bottom edge; place their turn label above the
   portrait so it remains fully visible on 16:10 and safe-area displays. */
.seat.me .turn-tag {
  top: -28px;
  bottom: auto;
}

/* Cooldown keeps the upcoming hunter visible without looking actionable. */
#gameStage.cooldown-live .seat.active-turn .pic {
  box-shadow:
    0 0 0 4px #cbeeff,
    0 0 0 8px #326b96,
    0 0 28px 7px rgba(90, 200, 255, .5),
    0 10px 18px rgba(0, 0, 0, .58);
  animation: none;
}

#gameStage.cooldown-live .seat.active-turn .ring {
  filter: drop-shadow(0 0 6px #5ac8ff);
}

#gameStage.cooldown-live .seat.active-turn .turn-tag,
#gameStage.cooldown-live .seat.active-turn.me .turn-tag {
  background: linear-gradient(180deg, #e9f8ff 0%, #7cd3ff 58%, #347cb8 100%);
  box-shadow:
    0 0 0 2px rgba(16, 56, 93, .9),
    0 5px 12px rgba(0, 0, 0, .5),
    0 0 17px rgba(90, 200, 255, .52);
  color: #0b3452;
  animation-duration: 1.5s;
}

@keyframes activeTurnHalo {
  to {
    box-shadow:
      0 0 0 4px #fffce2,
      0 0 0 8px #c98a18,
      0 0 46px 13px rgba(255, 225, 112, .86),
      0 10px 18px rgba(0, 0, 0, .58);
  }
}

@keyframes turnTagPop {
  to { transform: translateX(-50%) translateY(-3px) scale(1.035); }
}

/* ---------- card interaction and feedback ---------- */
.card {
  outline: none;
  transform-origin: 50% 80%;
  transition: filter .16s ease, scale .16s ease, transform .16s ease;
}

.card.pick {
  animation: polishedPickPulse 1s ease-in-out infinite alternate;
  touch-action: manipulation;
}

.card.pick .back {
  box-shadow:
    0 0 0 3px #fff8d0,
    0 0 0 6px rgba(232, 182, 74, .72),
    0 0 25px 8px rgba(255, 236, 140, .72),
    0 11px 17px rgba(0, 0, 0, .52);
}

@media (hover: hover) and (pointer: fine) {
  .card.pick:hover {
    animation-play-state: paused;
    transform: translateY(-9px) scale(1.06);
    filter: brightness(1.08) saturate(1.1);
  }
}

.card.pick:active {
  animation-play-state: paused;
  transform: translateY(-3px) scale(.97);
  filter: brightness(1.14);
}

.card:focus-visible {
  outline: 4px solid var(--arena-cyan);
  outline-offset: 6px;
  border-radius: 13px;
  filter: drop-shadow(0 0 11px rgba(105, 239, 255, .95));
}

.card.chosen {
  animation: selectedCardPulse .7s ease-in-out infinite alternate;
}

.card.chosen .back {
  box-shadow:
    0 0 0 4px #eaffff,
    0 0 0 8px #36cde1,
    0 0 34px 12px rgba(80, 220, 255, .92),
    0 12px 20px rgba(0, 0, 0, .58);
}

.card.chosen::before {
  content: '✓';
  position: absolute;
  right: -12px;
  top: -13px;
  z-index: 5;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #73f4ff, #1b9ec4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .48), 0 0 18px rgba(105, 239, 255, .85);
  color: #073044;
  font-family: system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.card[aria-disabled='true']:not(.pick) {
  cursor: default;
}

.card .shield-fx {
  inset: -23px;
  background:
    radial-gradient(circle, transparent 37%, rgba(163, 224, 255, .7) 62%, rgba(91, 151, 255, .16) 70%, transparent 74%);
  filter: drop-shadow(0 0 10px #77c8ff);
}

.fly-card {
  filter: drop-shadow(0 9px 11px rgba(0, 0, 0, .45));
}

@keyframes polishedPickPulse {
  from { transform: translateY(0) scale(1); filter: brightness(1); }
  to { transform: translateY(-7px) scale(1.025); filter: brightness(1.08); }
}

@keyframes selectedCardPulse {
  from { transform: translateY(-7px) scale(1.025); }
  to { transform: translateY(-11px) scale(1.055); }
}

/* ---------- prompts and confirmation ---------- */
/* A big message in the middle (THE KING, PROTECTED!, ROYAL SPY…) hides the hint line under it, so they never overlap. */
.center-msg.show ~ .hint { visibility: hidden; }
.hint {
  bottom: 222px;
  width: max-content;
  max-width: min(760px, calc(100% - 360px));
  padding: 10px 24px;
  border: 1px solid rgba(255, 246, 196, .24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 15, 70, .96), rgba(9, 5, 34, .94));
  box-shadow:
    0 0 0 2px rgba(255, 216, 102, .62),
    0 12px 26px rgba(0, 0, 0, .48),
    inset 0 1px rgba(255, 255, 255, .12);
  font-size: 21px;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

#gameStage.my-turn .hint:not(:empty) {
  border-color: rgba(255, 255, 255, .58);
  background: linear-gradient(180deg, rgba(87, 52, 8, .97), rgba(35, 18, 4, .96));
  box-shadow:
    0 0 0 3px var(--arena-gold),
    0 0 30px rgba(255, 216, 102, .48),
    0 12px 26px rgba(0, 0, 0, .54),
    inset 0 1px rgba(255, 255, 255, .2);
}

#gameStage.my-turn .hint b {
  color: #fff7c7;
}

.guess-bar {
  bottom: 214px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: linear-gradient(180deg, rgba(20, 51, 89, .98), rgba(7, 24, 54, .98));
  box-shadow:
    0 0 0 3px var(--arena-cyan),
    0 0 30px rgba(74, 240, 255, .42),
    0 13px 28px rgba(0, 0, 0, .62);
}

.center-msg .big {
  filter:
    drop-shadow(0 4px 0 #3a1a00)
    drop-shadow(0 0 24px rgba(255, 216, 102, .5))
    drop-shadow(0 9px 18px rgba(0, 0, 0, .72));
}

/* ---------- match and series results ---------- */
.results {
  background: #0a0429;
}

.results::before {
  background:
    linear-gradient(180deg, rgba(8, 3, 34, .2), rgba(8, 3, 34, .66)),
    url("img/arena-royal.webp") center / cover no-repeat;
  opacity: .55;
  filter: saturate(.88) blur(1px);
  transform: scale(1.01);
}

.res-title {
  z-index: 3;
  text-shadow: 0 5px 18px rgba(0, 0, 0, .62);
}

.res-cards {
  z-index: 2;
  gap: 16px;
}

.res-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 242, 188, .22);
  background:
    linear-gradient(180deg, rgba(62, 42, 145, .96), rgba(17, 9, 57, .96));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .14),
    0 14px 28px rgba(0, 0, 0, .54),
    inset 0 1px rgba(255, 255, 255, .14);
}

.res-card::before {
  content: '';
  position: absolute;
  inset: -55% -80%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, .13) 50%, transparent 57%);
  transform: translateX(-35%);
  animation: resultSheen 4.6s ease-in-out infinite;
}

.res-card.me {
  border-color: rgba(255, 248, 205, .78);
  box-shadow:
    0 0 0 4px var(--arena-gold),
    0 0 34px rgba(255, 216, 102, .54),
    0 14px 28px rgba(0, 0, 0, .58);
}

.res-card .rc-art,
.res-card .rc-role,
.res-card .rc-name,
.res-card .rc-row {
  position: relative;
  z-index: 1;
}

.res-card .rc-player {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.res-card .rc-player > i {
  width: 27px;
  height: 27px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: #4a2a90 center / cover no-repeat;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .4);
}

.res-card .rc-player .rc-name {
  min-width: 0;
}

.res-mine {
  z-index: 3;
  border: 1px solid rgba(255, 240, 170, .26);
  background: rgba(9, 5, 35, .84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .1);
}

.res-actions {
  right: 30px;
  left: auto;
  z-index: 4;
  gap: 14px;
  transform: none;
}

.res-actions #resShare {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 15px;
  background: rgba(24, 15, 70, .82);
  box-shadow: 0 5px 0 rgba(3, 1, 18, .6), inset 0 1px rgba(255, 255, 255, .12);
  color: #e7e0ff;
  font-size: 18px;
}

.res-actions #resHome {
  min-width: 190px;
  letter-spacing: .035em;
}

.res-actions #resShare:focus-visible,
.res-actions #resHome:focus-visible {
  outline: 4px solid var(--arena-cyan);
  outline-offset: 5px;
}

.res-series {
  right: 30px;
  top: 80px;
  display: flex;
  width: 500px;
  min-height: 318px;
  max-height: 520px;
  flex-direction: column;
  overflow-y: auto;
  padding: 17px 20px 18px;
  border: 1px solid rgba(255, 248, 205, .42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(130, 79, 230, .28), transparent 42%),
    linear-gradient(180deg, rgba(29, 18, 83, .97), rgba(9, 5, 35, .97));
  box-shadow:
    0 0 0 3px rgba(232, 182, 74, .72),
    0 18px 38px rgba(0, 0, 0, .58),
    0 0 34px rgba(104, 63, 190, .3),
    inset 0 1px rgba(255, 255, 255, .15);
  scrollbar-color: rgba(255, 216, 102, .7) rgba(8, 4, 30, .45);
  scrollbar-width: thin;
}

.res-series::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 216, 102, .13);
  border-radius: 15px;
  pointer-events: none;
}

.sr-head {
  position: relative;
  z-index: 1;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 216, 102, .24);
}

.sr-head b {
  color: var(--arena-gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .02em;
}

.sr-head .muted {
  font-size: 14px;
  text-align: right;
}

.sr-table {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  font-size: 18px;
}

.sr-table th,
.sr-table td {
  padding: 7px 10px;
}

.sr-table th {
  padding-top: 1px;
  padding-bottom: 4px;
  color: #ffe9a0;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sr-table tr:not(:first-child) td {
  background: rgba(255, 255, 255, .065);
  border-top: 1px solid rgba(255, 255, 255, .075);
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.sr-table tr:not(:first-child) td:first-child {
  border-radius: 10px 0 0 10px;
}

.sr-table tr:not(:first-child) td:last-child {
  border-radius: 0 10px 10px 0;
}

.sr-table tr.me td {
  background: rgba(255, 216, 102, .14);
  color: #fff1a7;
}

.sr-place {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 15px;
}

.sr-table tr:nth-child(2) .sr-place {
  background: linear-gradient(180deg, #fff4aa, #d99a1b);
  color: #492600;
  box-shadow: 0 0 12px rgba(255, 216, 102, .46);
}

.sr-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.sr-player > i {
  width: 32px;
  height: 32px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 9px;
  background: #4a2a90 center / cover no-repeat;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .4);
}

.sr-player > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-player small {
  color: #b9b0e6;
  font-size: .72em;
}

.sr-actions {
  position: sticky;
  bottom: -18px;
  z-index: 4;
  min-height: 58px;
  margin-top: auto;
  padding: 13px 0 18px;
  border-top: 1px solid rgba(255, 216, 102, .2);
  background: linear-gradient(180deg, rgba(9,5,35,.72), rgba(9,5,35,.98) 30%);
}

.sr-next-rule {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(105,239,255,.28);
  border-radius: 13px;
  background: rgba(58,37,137,.42);
}

.sr-next-rule > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.sr-next-rule > div:first-child b { color: #fff0a6; font-size: 16px; }
.sr-next-rule > div:first-child .muted { font: 12px/1.25 system-ui,sans-serif; }
.sr-next-rule .seg { flex: none; margin: 0; }
.sr-next-rule .seg button { padding: 6px 12px; font-size: 14px; }
.rule-state { min-width: 54px; padding: 7px 10px; border-radius: 10px; color: #ffd8d1; background: #9a332b; text-align: center; }
.rule-state.on { color: #dfffe5; background: #278f45; }

.sr-count {
  font-size: 18px;
  line-height: 1.15;
}

.sr-actions .big-btn {
  min-width: 176px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 15px;
  font-size: 19px;
}

#srEnd,
#srLeave {
  background: linear-gradient(180deg, #ff7568 0%, #d8382e 58%, #a51d18 100%);
  box-shadow:
    inset 0 3px rgba(255, 255, 255, .28),
    inset 0 -4px rgba(82, 5, 2, .24),
    0 5px 0 #6c130e,
    0 0 0 3px rgba(255, 238, 220, .72),
    0 0 20px rgba(255, 92, 72, .34);
  letter-spacing: .035em;
}

#srEnd:focus-visible,
#srLeave:focus-visible {
  outline: 4px solid var(--arena-cyan);
  outline-offset: 5px;
}

.sr-note {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 216, 102, .09);
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

.results.series-mode .res-cards {
  left: 24px;
  top: 104px;
  transform: scale(.61);
  transform-origin: left top;
}

.results.series-mode .res-title {
  left: 24px;
  right: 530px;
  top: 22px;
  font-size: 39px;
}

.results.series-mode .res-mine {
  right: 530px;
  left: 24px;
  bottom: 28px;
  max-height: 92px;
  overflow-y: auto;
  transform: none;
  padding: 9px 15px;
  font-size: 18px;
  line-height: 1.24;
  text-align: center;
  white-space: normal;
}

/* A live series owns its navigation. The host's End Session (or a guest's
   Leave Session) remains in the right-hand board; completed series restore the
   normal result controls. */
.results.series-live .res-actions {
  display: none;
}

.results.series-live .res-series {
  border-color: rgba(255, 248, 205, .7);
}

@keyframes resultSheen {
  0%, 58% { transform: translateX(-38%); opacity: 0; }
  68% { opacity: 1; }
  88%, 100% { transform: translateX(38%); opacity: 0; }
}

/* ---------- portrait web layout ---------- */
@media (orientation: portrait) {
  .hint {
    max-width: calc(100% - 180px);
    font-size: 23px;
  }

  .results.series-mode .res-title {
    right: 32px;
    left: 32px;
    top: 20px;
    font-size: 42px;
  }

  .results.series-mode .res-cards {
    left: 50%;
    top: 100px;
    transform: translateX(-50%) scale(.7);
    transform-origin: center top;
  }

  .results.series-mode .res-series {
    right: 32px;
    left: 32px;
    top: 355px;
    width: auto;
    min-height: 330px;
    max-height: calc(100% - 540px);
  }

  .results.series-mode .res-mine {
    right: 32px;
    left: 32px;
    bottom: 116px;
    max-height: none;
    font-size: 22px;
  }

  .results.series-mode .sr-head b {
    font-size: 23px;
  }

  .results.series-mode .sr-head .muted,
  .results.series-mode .sr-table th {
    font-size: 17px;
  }

  .results.series-mode .sr-table {
    font-size: 22px;
  }

  .results.series-mode .sr-table th,
  .results.series-mode .sr-table td {
    padding: 9px 12px;
  }
}

/* ---------- short landscape screens ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .seat .pic {
    width: 82px;
    height: 82px;
  }

  .seat.me .pic {
    width: 98px;
    height: 98px;
  }

  .seat .nm {
    font-size: 15px;
  }

  .seat.me .nm {
    font-size: 18px;
  }

  .hint {
    bottom: 216px;
    padding: 8px 20px;
    font-size: 19px;
  }

  .guess-bar,
  .cool-bar {
    bottom: 208px;
  }

  .res-title,
  .results.series-mode .res-title {
    top: 10px;
  }

  .res-series {
    top: 68px;
    min-height: 300px;
    max-height: 410px;
  }

  .results.series-mode .res-cards {
    top: 88px;
    transform: scale(.58);
  }
}

/* ---------- motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  #gameStage::before,
  .seat.active-turn .pic,
  .seat.active-turn .turn-tag,
  .seat .crown-top,
  .card,
  .card .inner,
  .card.pick,
  .card.chosen,
  .card .shield-fx,
  .center-msg,
  .guess-bar,
  .res-card,
  .res-card::before,
  .cool-bar,
  .cool-bar .cb-fill,
  .cool-bar .cb-ico {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  #gameStage.my-turn::before {
    border-color: rgba(255, 244, 178, .96);
  }

  .card.pick {
    transform: translateY(-4px);
  }

  .card.chosen {
    transform: translateY(-8px) scale(1.035);
  }
}

/* ---------- Quick Play arena ----------
   The Royal Store uses deep violet, gold and cyan to make choices easy to
   scan. Quick Play uses the same surface language without replacing the arena
   art or moving any of the established play targets. */
.game[data-mode="quick"] .arena-bg {
  filter: saturate(1.14) contrast(1.07) brightness(1.025);
}

.game[data-mode="quick"] .hud-clock {
  border: 1px solid rgba(255, 246, 190, .54);
  background:
    radial-gradient(circle at 23% 10%, rgba(138, 92, 245, .45), transparent 46%),
    linear-gradient(180deg, rgba(33, 19, 91, .97), rgba(11, 6, 48, .97));
  box-shadow: 0 0 0 3px #e8b64a, 0 0 0 6px rgba(61, 29, 117, .9), 0 9px 18px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .15);
}

.game[data-mode="quick"] .hud-clock small {
  color: #dcd1ff;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .13em;
}

.game[data-mode="quick"] .round-banner {
  min-width: 360px;
  border: 1px solid rgba(255, 246, 190, .55);
  background:
    radial-gradient(circle at 50% 0, rgba(159, 100, 255, .38), transparent 58%),
    linear-gradient(180deg, rgba(55, 28, 134, .96), rgba(22, 10, 70, .96));
  box-shadow: 0 0 0 3px #e8b64a, 0 0 22px rgba(154, 98, 255, .24), 0 9px 19px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .17);
}

.game[data-mode="quick"] .round-banner::after {
  content: 'QUICK PLAY';
  display: block;
  margin-top: 2px;
  color: #d9ceff;
  font: 800 9px/1.1 system-ui, sans-serif;
  letter-spacing: .2em;
}

.game[data-mode="quick"] .pips i {
  height: 7px;
  background: rgba(223, 210, 255, .2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.game[data-mode="quick"] .pips i.now,
.game[data-mode="quick"] .pips i.done {
  background: linear-gradient(90deg, #fff3a6, #edb933);
  box-shadow: 0 0 10px rgba(255, 216, 102, .66);
}

.game[data-mode="quick"] .hud-settings,
.game[data-mode="quick"] .hud-btn .ico.big,
.game[data-mode="quick"] .voice-box .spk-btn,
.game[data-mode="quick"] .voice-box .mic-btn {
  border: 1px solid rgba(255, 255, 255, .3);
  background-color: #43248f;
  box-shadow: 0 0 0 3px rgba(22, 10, 71, .94), inset 0 3px rgba(255, 255, 255, .24), 0 6px 0 rgba(8, 3, 35, .78), 0 0 12px rgba(122, 79, 229, .25);
}

.game[data-mode="quick"] .hud-left .hud-btn span:last-child,
.game[data-mode="quick"] .hud-right .hud-btn span:last-child {
  min-width: 64px;
  border: 1px solid rgba(221, 206, 255, .3);
  background: rgba(15, 7, 51, .86);
  color: #e5dcff;
  font: 800 11px/1.35 system-ui, sans-serif;
  letter-spacing: .055em;
  text-align: center;
}

.game[data-mode="quick"] #gameStage.my-turn .hud-left .hud-btn .ico.big {
  background-color: #9a6811;
  box-shadow: 0 0 0 3px rgba(71, 38, 1, .94), inset 0 3px rgba(255, 255, 255, .28), 0 6px 0 rgba(62, 29, 0, .8), 0 0 18px rgba(255, 216, 102, .56);
}

.game[data-mode="quick"] .hint:not(:empty) {
  border-color: rgba(246, 232, 167, .48);
  background:
    linear-gradient(90deg, rgba(16, 7, 54, .96), rgba(48, 25, 117, .96), rgba(16, 7, 54, .96));
  box-shadow: 0 0 0 2px rgba(232, 182, 74, .72), 0 0 18px rgba(117, 76, 215, .18), 0 12px 26px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .12);
}

.game[data-mode="quick"] #gameStage.hunt-live .hint:not(:empty) {
  animation: quickHintIn .34s ease both;
}

.game[data-mode="quick"] .cool-bar {
  border: 1px solid rgba(202, 242, 255, .42);
  background: linear-gradient(90deg, rgba(14, 49, 103, .96), rgba(33, 27, 107, .96));
  box-shadow: 0 0 0 3px #63d8ff, 0 0 22px rgba(99, 216, 255, .28), 0 10px 20px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .14);
}

.game[data-mode="quick"] .betting-btn {
  border: 1px solid rgba(255, 246, 190, .58);
  background: linear-gradient(180deg, #9157e1, #54219c);
  box-shadow: 0 0 0 3px #e8b64a, 0 0 0 6px rgba(68, 30, 119, .92), 0 0 21px rgba(191, 130, 255, .3), 0 8px 12px rgba(0, 0, 0, .5);
}

.game[data-mode="quick"] .wallet-chip {
  border: 1px solid rgba(255, 239, 165, .44);
  background: linear-gradient(180deg, rgba(52, 30, 118, .95), rgba(14, 7, 50, .95));
  box-shadow: 0 0 0 2px rgba(232, 182, 74, .78), 0 7px 14px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .13);
}

.game[data-mode="quick"] .bet-drawer {
  border: 1px solid rgba(255, 244, 181, .48);
  background:
    radial-gradient(circle at 100% 0, rgba(145, 87, 225, .3), transparent 40%),
    linear-gradient(180deg, rgba(48, 25, 117, .98), rgba(13, 6, 49, .98));
  box-shadow: 0 0 0 3px #e8b64a, -10px 0 30px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .14);
}

.game[data-mode="quick"] .react-panel {
  border: 1px solid rgba(255, 244, 181, .4);
  background: linear-gradient(180deg, rgba(55, 30, 130, .98), rgba(14, 7, 52, .98));
  box-shadow: 0 0 0 3px #e8b64a, 0 16px 32px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 255, 255, .14);
}

.game[data-mode="quick"] .seat:not(.me) .nm {
  background: linear-gradient(180deg, rgba(47, 25, 111, .97), rgba(12, 6, 47, .97));
}

.game[data-mode="quick"] .seat.me .nm {
  background: linear-gradient(180deg, rgba(112, 72, 15, .98), rgba(56, 28, 4, .98));
  box-shadow: 0 0 0 2px rgba(255, 227, 126, .78), 0 5px 12px rgba(0, 0, 0, .34);
}

.game[data-mode="quick"] #gameStage.my-turn .seat.me .nm {
  box-shadow: 0 0 0 3px #fff0a5, 0 0 18px rgba(255, 216, 102, .56), 0 5px 12px rgba(0, 0, 0, .34);
}

@keyframes quickHintIn {
  from { opacity: .35; transform: translateX(-50%) translateY(7px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (orientation: landscape) and (max-height: 520px) {
  .game[data-mode="quick"] .round-banner { min-width: 304px; }
  .game[data-mode="quick"] .round-banner::after { display: none; }
  .game[data-mode="quick"] .hud-left .hud-btn span:last-child,
  .game[data-mode="quick"] .hud-right .hud-btn span:last-child { font-size: 10px; }
}
