
:root {
  color-scheme: dark;
  --gold: #f5c16a;
  --panel: #282d40;
  --border: #50556a;
  --bg: #141827;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #f2f2f5;
  font: 15px system-ui, Arial, sans-serif;
}

[hidden] { display: none !important; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(18px, calc((100vw - 1100px)/2));
  background: #1a1e2d;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  color: var(--gold);
  font-size: 21px;
}

header small {
  display: block;
  font-size: 11px;
  color: #b9becb;
  font-weight: 400;
}

a { color: var(--gold); }

button {
  background: #383d54;
  color: white;
  border: 1px solid #777c8d;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.shell {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 16px;
}

.shell.admin {
  display: block;
  max-width: 980px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.panel h2 {
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 15px;
}

.panel h2:not(:first-child) {
  margin-top: 24px;
}

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.summary strong {
  font-size: 25px;
  color: var(--gold);
}

/* BẢN ĐỒ */

.map {
  position: relative;
  aspect-ratio: 1;
  background-color: #353e4c;
  background-image:
    linear-gradient(#11172244 2px, transparent 2px),
    linear-gradient(90deg, #11172244 2px, transparent 2px);
  background-size: 25px 25px;
  border: 5px solid #555765;
  overflow: hidden;
}

.corridor {
  position: absolute;
  background: #343a48;
  z-index: 0;
}

.corridor.horizontal {
  left: 0;
  top: 44%;
  width: 100%;
  height: 12%;
}

.corridor.vertical {
  left: 44%;
  top: 0;
  width: 12%;
  height: 100%;
}

/* PHÒNG */

.room {
  position: absolute;
  width: 29%;
  height: 22%;
  z-index: 2;
  border: 3px solid #242632;
  background: #74616c;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.room:nth-of-type(2n) { background: #627787; }
.room:nth-of-type(3n) { background: #7b7270; }

.room-title {
  background: #151823d9;
  color: var(--gold);
  padding: 4px;
  font-size: 11px;
}

.room-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141724d9;
  text-align: center;
  padding: 4px 1px;
  font-size: 10px;
}

.room-mice {
  position: absolute;
  inset: 25% 4% 17%;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.room-mice img {
  width: 25%;
  height: 43%;
  object-fit: contain;
  animation: idle .7s ease-in-out infinite alternate;
}

.room-mice img:nth-child(2n) {
  animation-delay: .3s;
}

.stat small {
  display: block;
  color: #a8d6ff;
}

.room.selected {
  border-color: #ffdc69 !important;
  box-shadow: 0 0 16px #ffc34a;
}

.room.eliminated {
  border-color: #ff3030;
  animation: flash .2s infinite alternate;
}

.room.safe { border-color: #4dbd7d; }

@keyframes idle {
  to { transform: translateY(-5px) rotate(4deg); }
}

@keyframes flash {
  to {
    box-shadow: inset 0 0 45px #f22, 0 0 20px #f22;
  }
}

/* NHÂN VẬT */

#actors {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.moving-mouse {
  position: absolute;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

#killer {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  width: 65px;
  height: 65px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px #f33);
  pointer-events: none;
}

#killer.attack {
  animation: slash .14s infinite alternate;
}

@keyframes slash {
  from {
    transform:
      translate(-50%, -50%) rotate(-18deg) scale(1.1);
  }
  to {
    transform:
      translate(-50%, -50%) rotate(18deg) scale(1.35);
  }
}

.room.screaming img {
  animation: panic .1s infinite alternate;
}

@keyframes panic {
  from { transform: translate(-3px,-3px) rotate(-12deg); }
  to { transform: translate(3px,3px) rotate(12deg); }
}

/* THỐNG KÊ */

.hint {
  color: #b4bac9;
  font-size: 12px;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  padding: 10px;
  border-radius: 8px;
  background: #30364a;
}

.stat strong {
  display: block;
  color: var(--gold);
}

.history-item {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow-wrap: anywhere;
}

/* THAM GIA */

.bet-panel {
  margin-top: 16px;
  padding: 16px;
  background: #292e42;
  border: 1px solid #58516a;
  border-radius: 10px;
}

.balance-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.balance-line strong,
#selectedRoom {
  color: var(--gold);
}

.wallet-balance {
  align-items: baseline;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #292e42;
  border: 1px solid #58516a;
  border-radius: 8px;
}

.wallet-balance strong {
  font-size: 1.125rem;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.amount-buttons button.active,
#join {
  background: #eab85c;
  color: #21190d;
  font-weight: bold;
}

#join {
  width: 100%;
  padding: 14px;
}

#message {
  color: #ffd47a;
  min-height: 22px;
}

label {
  display: block;
  margin: 12px 0;
}

input {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  background: #30364a;
  color: white;
  border: 1px solid #676e83;
  border-radius: 8px;
}

/* BẢNG */

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--gold);
  font-size: 12px;
}

td { font-size: 13px; }

.win { color: #5bdf93; }
.lose { color: #ff8585; }

.aura-table {
  width: 100%;
  border-collapse: collapse;
}

/* 3 ICON LỊCH SỬ */

.history-heading { margin-top: 26px !important; }

.history-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.history-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 115px;
  gap: 9px;
  padding: 14px 8px;
  border: 1px solid #d4a74d;
  border-radius: 13px;
  background: #30364a;
  color: #ffd47a;
  text-align: center;
  transition: background .2s, transform .2s;
}

.history-icon:hover {
  background: #424961;
  transform: translateY(-3px);
}

.history-emoji { font-size: 30px; }

.history-icon strong {
  font-size: 12px;
  line-height: 1.35;
}

/* POPUP CHUNG */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.78);
}

.modal-box {
  position: relative;
  width: min(540px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #282d40;
  border: 1px solid #e3b34c;
  border-radius: 16px;
  padding: 24px;
  color: white;
  box-shadow: 0 20px 70px #000a;
}

.modal-box h2 {
  margin: 0 42px 20px 0;
  color: #f5c16a;
  font-size: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #b83c3c;
  color: white;
  font-size: 26px;
  line-height: 36px;
}

.modal-close:hover { background: #e14c4c; }

.modal-scroll {
  overflow-x: auto;
  overflow-wrap: anywhere;
}

.modal-scroll table { min-width: 300px; }

/* KẾT QUẢ VÒNG */

.result-modal {
  width: min(470px, 100%);
  border: 2px solid #f5c16a;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.result-cell {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.result-cell small {
  display: block;
  opacity: .75;
  margin-bottom: 7px;
}

.result-cell strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

#resultNote {
  margin: 18px 0 0;
  line-height: 1.5;
}

/* ĐỔI PHÒNG */

.change-box {
  width: min(440px, 100%);
}

.change-box input {
  width: 100%;
  margin: 10px 0;
}

.change-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.change-actions button {
  flex: 1;
  padding: 13px 10px;
  font-weight: bold;
}

#confirmChange {
  background: #d9aa45;
  color: #171717;
  border: 0;
}

#cancelChange {
  background: #333;
  color: white;
  border: 1px solid #666;
}

#changeError { color: #ff8585; }

.current-room-note {
  margin-top: 12px;
  font-size: 13px;
  opacity: .85;
}

/* ADMIN - GIỮ STYLE CŨ */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.metric {
  padding: 14px;
  background: #30364a;
  border: 1px solid #464c61;
  border-radius: 9px;
}

.metric strong {
  display: block;
  font-size: 19px;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.metric.important { border-color: var(--gold); }
.table-wrap { overflow-x: auto; }

.hash {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #b4bac9;
}

.hash code { color: #f2d5a0; }

/* RESPONSIVE */

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }

  .metrics {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 430px) {
  .room-title,
  .room-stats { font-size: 8px !important; }

  #killer {
    width: 46px;
    height: 46px;
  }

  .moving-mouse {
    width: 25px;
    height: 25px;
  }

  .summary { flex-wrap: wrap; }

  .history-icons { gap: 6px; }

  .history-icon {
    padding: 10px 4px;
    min-height: 100px;
  }

  .history-emoji { font-size: 25px; }
  .history-icon strong { font-size: 11px; }

  .modal-box { padding: 18px; }
  .result-cell strong { font-size: 15px; }
}

/* SUN-PLANT arena */
.sun-arena {
  --gold: #ffe454;
  --panel: #042419;
  --border: #429557;
  background: radial-gradient(ellipse at 52% 15%, #0a3023, #021315 72%);
  min-height: 100vh;
}
.sun-arena .arena-header {
  position: relative;
  justify-content: flex-start;
  gap: 14px;
  min-height: 106px;
  padding: 9px clamp(12px, 2vw, 32px);
  isolation: isolate;
  background: linear-gradient(110deg, #03281b, #051b18 68%, #103709);
  border-bottom: 2px solid #d3ed42;
  box-shadow: 0 2px 14px #a2ff392c;
}
.arena-header::after {
  content: '';
  position: absolute;
  inset: 0 18px 0 auto;
  width: min(35%, 330px);
  background: none right center / auto 115% no-repeat;
  z-index: -1;
}
.arena-mascot { width: clamp(56px, 8vw, 94px); aspect-ratio: 1; object-fit: contain; }
.sun-arena .arena-brand h1 {
  color: var(--gold);
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 0 2px #945400, 0 0 13px #f1c53365;
}
.arena-brand a { display: inline-block; margin-top: 4px; }
.arena-brand p {
  margin: 3px 0 0;
  color: #fff2bf;
  font-size: clamp(10px, 2.1vw, 17px);
  font-weight: 800;
  font-style: italic;
}
.sun-arena .shell {
  max-width: 1450px;
  margin: 24px auto;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 18px;
}
.sun-arena .panel {
  margin: 0;
  padding: clamp(10px, 1.35vw, 23px);
  border-radius: 18px;
  border: 1px solid #a5ee58;
  background: radial-gradient(ellipse at top, #083822, #031d16 65%);
  box-shadow: inset 0 0 15px #79e73945, 0 0 12px #66fb3924;
}
.sun-arena .summary strong { font-size: clamp(20px, 3vw, 38px); line-height: 1; }
.sun-arena #sound,
.sun-arena .history-icon {
  background: linear-gradient(155deg, #0d351d, #041e13 70%);
  border-color: #d6e750;
  box-shadow: inset 0 0 10px #8bff483a;
}
.sun-arena .map {
  aspect-ratio: 1.2;
  border: 1px solid #78c245;
  border-radius: 12px;
  background-color: #062a1b;
  background-image:
    linear-gradient(#25a74732 1px, transparent 1px),
    linear-gradient(90deg, #25a74732 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: inset 0 0 26px #2b8f2a55;
}
.sun-arena .corridor { background: #13642b13; }
.sun-arena .room {
  border-width: 1px;
  border-radius: 10px;
  background: #7d675f;
}
.sun-arena .room:nth-of-type(2n) { background: #4b7182; }
.sun-arena .room:not(.eliminated, .safe, .selected) { border-color: #d3e94e; }
.sun-arena .room-title,
.sun-arena .room-stats {
  background: #041a12;
  font-size: clamp(10px, 1.22vw, 17px);
}
.sun-arena .room-title { padding: 4px 8px; font-weight: 750; }
.sun-arena .room-stats { min-height: 1.55em; padding: 2px; }
.sun-arena .room-mice { inset: 27% 3% 19%; }
.sun-arena .room-mice img { height: 50%; }
.sun-arena #killer {
  width: clamp(52px, 20%, 145px);
  height: auto;
  filter: drop-shadow(0 7px 10px #9bee394f);
}
.sun-arena .history-heading { margin-top: 0 !important; }
.sun-arena .arena-info h2 { font-size: clamp(17px, 1.8vw, 25px); }
.sun-arena .history-icon { min-height: clamp(90px, 10vw, 132px); color: #fff27d; }
.sun-arena .history-icon:hover { background: #12472a; }
.sun-arena .history-emoji { font-size: clamp(24px, 3.5vw, 44px); }
.sun-arena .history-icon strong { font-size: clamp(11px, 1.25vw, 16px); }
.sun-arena .stat {
  padding: 8px 12px;
  min-height: 66px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b3020;
  box-shadow: inset 0 0 9px #7cf35c16;
}
.sun-arena .stat strong { color: var(--gold); }
.sun-arena :is(.entry-dialog, .modal-box) {
  color: #efffe9;
  background: #082b1e;
  border-color: var(--gold);
}
.sun-arena .entry-options button:not(.active) { background: #124732; border-color: #508561; }
.sun-arena :is(button, a):focus-visible { outline: 2px solid #fff18a; outline-offset: 2px; }

@media (max-width: 860px) {
  .sun-arena .shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .sun-arena .arena-header { min-height: 78px; }
  .arena-header::after { opacity: .24; }
  .sun-arena .shell { margin-top: 14px; padding-inline: 8px; gap: 12px; }
  .sun-arena .summary { gap: 5px; font-size: 12px; }
  .sun-arena #sound { padding: 7px 6px; font-size: 11px; }
  .sun-arena .map { aspect-ratio: 1; }
  .sun-arena .room-title { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sun-arena .room *,
  .sun-arena .room.eliminated,
  .sun-arena #killer.attack { animation: none; }
}

/* Garden board and room facades */
.sun-arena .map {
  aspect-ratio: 4 / 3;
  background: #265519 none center / 100% 100% no-repeat;
  container-type: inline-size;
}

.sun-arena .map .corridor { display: none; }

.sun-arena .map .room {
  width: 28%;
  height: 28%;
  translate: -50% -50%;
  overflow: visible;
  border: 0;
  background: none center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 3px #142300ad);
}

.sun-arena .map .room::before {
  content: attr(data-number);
  position: absolute;
  z-index: 1;
  top: -3%;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 3.9cqw;
  aspect-ratio: 1;
  border: 1px solid #fff285;
  border-radius: 50%;
  background: radial-gradient(circle at top, #a85600, #632600);
  color: #fff4a3;
  box-shadow: 0 0 0 1px #fcb42d, 0 1px 6px #ffdb58;
  font-size: clamp(9px, 2.7cqw, 21px);
  font-weight: 900;
  line-height: 1;
}

.sun-arena .map .room-title {
  position: absolute;
  inset: 23% 28% auto;
  display: grid;
  place-items: center;
  height: 14%;
  padding: 0;
  background: transparent;
  color: #361900;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(8px, 1.95cqw, 16px) !important;
  line-height: 1;
}
.sun-arena .map .room-mice { inset: 40% 21% 24%; }
.sun-arena .map .room-mice img { height: 50%; width: 24%; }
.sun-arena .map .room-mice img:first-child:nth-last-child(-n+4),
.sun-arena .map .room-mice img:first-child:nth-last-child(-n+4) ~ img {
  height: 100%;
}

.sun-arena .map .room-stats {
  inset: auto 15% 14%;
  min-height: 0;
  padding: 2px 0;
  border-radius: 6px;
  background: #140d05e8;
  font-size: clamp(7px, 1.72cqw, 13px) !important;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.sun-arena .map .room-stats:empty { display: none; }
.sun-arena .map .room:is(:hover, .selected, .safe, .eliminated) { box-shadow: none; }
.sun-arena .map .room:is(:hover, .selected) { filter: drop-shadow(0 0 6px #fff469); }
.sun-arena .map .room.safe { filter: drop-shadow(0 0 5px #a9ff5c); }
.sun-arena .map .room.eliminated { filter: drop-shadow(0 0 7px #ff2519); animation: none; }

.sun-arena .map #killer {
  width: clamp(42px, 21%, 148px);
  filter: drop-shadow(0 7px 8px #1e3208);
}

.package-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #a5c64d;
  border-radius: 10px;
  background: #102c1a;
}
.package-gate a { font-weight: 700; }

/* TIGER-X arena */
.sun-arena {
  --arena-rim: #e7c749;
  --arena-surface: radial-gradient(ellipse at 50% 110%, #27620e70, transparent 67%), linear-gradient(150deg, #102b0a, #061406 62%, #0d2508);
  background: radial-gradient(ellipse at top, #19360d, #040a03 66%);
}
.sun-arena .arena-header {
  justify-content: center;
  min-height: clamp(78px, 8vw, 128px);
  gap: 7px;
  background: linear-gradient(90deg, #01160344, #061905f2 43%, #061905f2 57%, #01160344), url("/assets/sat-thu/tiger-forest.webp") center 15% / cover;
  border-color: var(--arena-rim);
  text-align: center;
}
.sun-arena .arena-header::after { content: none; }
.sun-arena .arena-mascot { width: clamp(33px, 5.8vw, 79px); height: auto; aspect-ratio: auto; mix-blend-mode: screen; }
.sun-arena .arena-brand h1 { color: #ffe484; font-style: italic; font-size: clamp(28px, 5vw, 68px); font-weight: 950; }
.sun-arena .arena-brand a { color: #fff0b5; font-size: clamp(10px, 1.5vw, 14px); }
.sun-arena .shell {
  width: 100%;
  max-width: none;
  gap: clamp(9px, 1.1vw, 24px);
  padding-inline: clamp(8px, 1vw, 27px);
  margin: clamp(7px, 1vw, 14px) auto 20px;
}
@media (min-width: 861px) {
  .sun-arena .shell { grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); }
}
.sun-arena .panel {
  border: 1px solid var(--arena-rim);
  border-radius: clamp(13px, 2.2vw, 30px);
  background: var(--arena-surface);
  box-shadow: inset 0 0 9px #a4d42566, 0 0 10px #ffce4270;
}
.sun-arena .summary { margin-bottom: 8px; }
.sun-arena .summary strong { color: #ffed48; text-shadow: 0 1px 7px #84990087; }
.sun-arena .map {
  aspect-ratio: 1.75;
  border-color: #c0bc40;
  background: #265519 url("/assets/sat-thu/tiger-forest.webp") center / cover no-repeat;
  box-shadow: inset 0 0 13px #13340485;
}
.sun-arena .map .room {
  width: 25%;
  height: 27%;
  padding: 0;
  background: url("/assets/sat-thu/tiger-den.webp") center top / contain no-repeat;
  color: #fff4d8;
}
.sun-arena .map .room::before {
  inset: auto auto 2% 11%;
  translate: none;
  width: clamp(13px, 3.2cqw, 32px);
  z-index: 3;
  font-size: clamp(8px, 2.05cqw, 19px);
}
.sun-arena .map .room-title {
  inset: auto 3% 0;
  height: auto;
  min-height: 21%;
  padding: 3px 2px 3px 18%;
  border: 1px solid #eeb546;
  border-radius: 999px;
  background: linear-gradient(#553007, #150d04 75%);
  box-shadow: inset 0 0 5px #e4a13a5e;
  color: #fff6dc;
  font-size: clamp(8px, 1.9cqw, 32px) !important;
  z-index: 2;
}
.sun-arena .map .room-stats { inset: auto 12% 25%; color: #ffebad; }
.sun-arena .map .room-mice { inset: 43% 25% 33%; }
.sun-arena .map :is(.room-mice img, .moving-mouse) { mix-blend-mode: screen; }
.sun-arena .map #killer {
  width: clamp(48px, 19%, 160px);
  filter: drop-shadow(0 4px 5px #180802a6);
}
.sun-arena :is(#sound, .history-icon, .stat, .wallet-balance) {
  border: 1px solid #d3b83b;
  background: var(--arena-surface);
  box-shadow: inset 0 0 8px #a6db3770;
}
.sun-arena .wallet-balance { margin-top: 8px; color: #fff2ce; }
.sun-arena .wallet-balance strong { color: #ffea62; font-size: clamp(16px, 3vw, 31px); }
.sun-arena .arena-info h2 { color: #ffe573; text-shadow: 0 1px 7px #a3762359; }
.sun-arena .history-icon { color: #fff0b9; border-radius: clamp(10px, 2vw, 20px); }
.sun-arena .history-icon:hover, .sun-arena #sound:hover { background: #203f0c; border-color: #fff086; }
.sun-arena .stat { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 13px); min-height: clamp(44px, 5vw, 67px); color: #fff2d8; overflow-wrap: anywhere; }
.sun-arena :is(.summary, .stat, .wallet-balance) { font-size: clamp(12px, 1.1vw, 29px); }
.sun-arena .arena-info h2 { font-size: clamp(17px, 1.8vw, 46px); }
.sun-arena .history-icon { min-height: clamp(72px, 9vw, 210px); }
.sun-arena .history-icon strong { font-size: clamp(10px, 1.2vw, 32px); }
.sun-arena .history-emoji { font-size: clamp(22px, 3vw, 72px); }
.sun-arena .stat { min-height: clamp(44px, 4.8vw, 122px); }
.sun-arena .summary strong { font-size: clamp(20px, 3vw, 66px); }
.sun-arena .summary #sound { font-size: clamp(10px, 1.15vw, 29px); }
.sun-arena .wallet-balance strong { font-size: clamp(16px, 2vw, 49px); }
.tiger-stat-icon { flex: none; color: #ffdc56; font-size: clamp(16px, 2.8vw, 31px); }
.sun-arena :is(.entry-dialog, .modal-box) { border-color: var(--arena-rim); background: var(--arena-surface); box-shadow: 0 0 15px #ffce4250; }
@media (max-width: 600px) {
  .sun-arena .map { aspect-ratio: 1.22; }
  .sun-arena .map .room { width: 27%; }
}
