* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f1e8;
  color: #262b29;
  font:
    16px "DM Sans",
    system-ui,
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 5vw;
  background: #222825;
  color: #fff6df;
  padding: 14px max(5vw, 20px);
  border-bottom: 4px solid #a5c49b;
}
.brand,
h1,
h2,
h3,
.num {
  font-family: "Archivo Black", "Arial Black", system-ui, sans-serif;
  font-weight: 1000;
  letter-spacing: -0.045em;
}
.brand {
  font-size: 24px;
  font-style: italic;
  white-space: nowrap;
}
.brand i {
  color: #ff945e;
}
nav {
  display: flex;
  gap: 8px;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  font-weight: 750;
  background: #faf9f3;
  color: #263129;
  border: 1px solid #9ca49a;
  border-radius: 7px;
  padding: 9px 14px;
}
button:hover {
  filter: brightness(0.94);
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #e77942;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
nav button {
  background: transparent;
  color: #fff;
  border: 0;
}
nav button.active {
  background: #465047;
}
.wallet {
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 700;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 30px 25px 55px;
}
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid #26332d;
  border-radius: 16px;
  background: #bad8b8;
  min-height: 232px;
  padding: 30px 35px;
  box-shadow: 0 5px #26332d;
}
.banner canvas {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  width: 58%;
  z-index: -1;
}
.banner h1 {
  font-size: clamp(44px, 6vw, 86px);
  font-style: italic;
  line-height: 0.91;
  margin: 11px 0 16px;
  letter-spacing: -0.075em;
}
.banner h1 em {
  color: #a34228;
}
.banner p {
  font-weight: 650;
  max-width: 44%;
  margin: 0;
}
.kicker {
  font: 800 11px/1.2 monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 22px;
  margin: 27px 0;
}
.panel {
  background: #fffdf5;
  border: 2px solid #353e36;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 3px #353e36;
}
.panel h2,
h2 {
  font-size: 26px;
  margin: 0 0 12px;
}
.row,
.between {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.modes {
  display: flex;
  padding: 4px;
  background: #e6e9de;
  border-radius: 8px;
  margin-bottom: 16px;
}
.modes button {
  flex: 1;
  border: 0;
  background: transparent;
}
.modes .selected {
  background: #fffdf6;
  box-shadow: 0 1px 3px #3334;
}
.seat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px dashed #c7cbbb;
}
.portrait {
  width: 45px;
  height: 44px;
  border-radius: 8px;
  background: #e5e9db;
}
.seat select:last-child {
  margin-left: auto;
}
select,
input {
  padding: 7px 9px;
  max-width: 100%;
  border: 1px solid #c0c7bb;
  background: #fafaf2;
  border-radius: 6px;
  color: #344438;
}
.start {
  background: #ff9766;
  border: 2px solid #353e36;
  box-shadow: 0 3px #353e36;
  width: 100%;
  margin-top: 14px;
}
.small {
  font-size: 13px;
  color: #566351;
}
.gameList {
  padding: 0;
  list-style: none;
  margin: 0;
}
.gameList li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed #c7cbbb;
  font-weight: 750;
}
.gameList span {
  width: 29px;
  height: 26px;
  border-radius: 5px;
  color: white;
  text-align: center;
  padding: 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.card canvas {
  display: block;
  width: 100%;
  height: 110px;
  background: #e5eadc;
  border-radius: 8px;
}
.card h3 {
  margin: 9px 0 2px;
}
.card button {
  width: 100%;
  margin-top: 10px;
}
.stage {
  display: block;
  width: 100%;
  background: #496153;
  border-radius: 10px;
  border: 2px solid #26332d;
}
.stagewrap {
  position: relative;
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #1c3024ce;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
}
.overlay:empty {
  display: none;
}
.overlay h2 {
  font-size: clamp(22px, 5vw, 55px);
}
.score {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.score b {
  flex: 1;
  background: #e8ecdf;
  padding: 10px;
  border-radius: 6px;
}
.score small {
  display: block;
}
#notice {
  color: #913f2a;
  font-weight: 700;
}
table {
  border-collapse: collapse;
  width: 100%;
}
td,
th {
  padding: 7px;
  border-bottom: 1px solid #c4cbbf;
  text-align: center;
}
@media (max-width: 720px) {
  header {
    flex-wrap: wrap;
    gap: 6px;
  }
  main {
    padding: 18px 12px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 22px 15px;
    min-height: 178px;
  }
  .banner canvas {
    width: 48%;
  }
  .banner p {
    font-size: 13px;
    max-width: 53%;
  }
  .seat {
    gap: 4px;
  }
  .panel {
    padding: 13px;
  }
  nav button {
    font-size: 13px;
    padding: 6px;
  }
  .wallet {
    font-size: 11px;
  }
}

/* Night carnival lobby */
:root {
  --paper: #fffafa;
  --ink: #312741;
  --violet: #6543b1;
  --line: #e2d9eb;
}
body {
  background:
    radial-gradient(ellipse at top right, #f9e5e7, transparent 55%), #f2edf7;
  color: var(--ink);
}
header {
  background: #272038;
  color: #fffbf4;
  border-bottom: 0;
}
.brand i {
  color: #ffb65f;
}
nav button.active {
  background: #504263;
}
.wallet {
  color: #ffe5a4;
}
main {
  max-width: 1240px;
}
.banner {
  border: 0;
  border-radius: 24px;
  background: linear-gradient(
    110deg,
    #402967 4%,
    #7e5aab 44%,
    #db889a 76%,
    #ffbc88
  );
  color: white;
  box-shadow: 0 10px 28px #50376526;
  min-height: 242px;
  padding: 30px 38px;
}
.banner canvas {
  width: 62%;
  height: 100%;
}
.banner .kicker {
  color: #f5cfe6;
}
.banner h1 {
  font-size: clamp(56px, 7vw, 98px);
  margin: 12px 0 10px;
  color: #fff4dd;
  text-shadow: 2px 5px #543b74;
}
.banner h1 em {
  color: #ffcd69;
}
.bannerFacts {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  color: #ffe4b4;
  margin-top: 15px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 5px 24px #4934520c;
}
.layout {
  grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
}
.modes {
  background: #f0eaf6;
}
.modes .selected {
  background: #6a45a9;
  color: white;
}
.seat {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  gap: 8px;
  padding: 10px 0;
}
.portrait,
.card canvas {
  background: radial-gradient(at 32% 22%, #ffebbf, #edd8e7 66%, #d5c6e9);
}
.portrait {
  width: 54px;
  height: 42px;
  object-fit: contain;
}
.tagField {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #655771;
  font-size: 12px;
}
.tagField input {
  width: 108px;
}
select,
input {
  background: #fcfaff;
  border-color: #dfd6e7;
  color: #40304e;
}
.seat select {
  font-size: 13px;
}
.seat select:last-child {
  margin-left: 0;
}
.start {
  background: linear-gradient(100deg, #ffc06f, #ff9e7b);
  color: #42263c;
  border: 0;
  box-shadow: 0 3px #db8b6f;
  padding: 14px;
}
.gameList li {
  border-color: var(--line);
  padding: 10px 0;
}
.gameList span {
  width: 34px;
  height: 31px;
  border-radius: 9px;
  padding: 4px;
}
.objective {
  padding: 12px 16px;
  border-radius: 10px;
  background: #f1e9fa;
  color: #4e356e;
  font-weight: 680;
}
.score b {
  background: #f4eef8;
}
.small {
  color: #716078;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 23px 18px;
    min-height: 194px;
  }
  .banner canvas {
    width: 52%;
  }
  .banner h1 {
    font-size: clamp(43px, 8vw, 66px);
  }
}

/* Race club */
:root {
  --ink: #202a29;
  --paper: #f8f7ef;
  --line: #d9d9cb;
}
body {
  background: #f2f0e7;
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
header {
  padding: 14px max(3vw, 18px);
  background: #182b2b;
  border-bottom: 3px solid #ed733e;
}
header .brand i {
  color: #ff8a49;
}
nav button.active {
  background: #f5eddb;
  color: #263334;
}
main {
  max-width: 1320px;
  padding-top: 20px;
}
.splash {
  min-height: clamp(218px, 23vw, 330px);
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 52px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, #071c21db 0%, #12252173 36%, transparent 74%),
    url(harbor.jpg) 50% 50% / cover;
  color: white;
  box-shadow: 0 6px 20px #27332f1f;
}
.splash h1,
.library h1 {
  font-size: clamp(48px, 7.5vw, 106px);
  letter-spacing: -0.085em;
  line-height: 0.9;
  margin: 10px 0;
  font-style: italic;
}
.splash h1 span {
  color: #ff8346;
}
.splash p {
  margin: 5px 0;
}
.splash a {
  display: inline-block;
  color: #ffe1a4;
  font-weight: 750;
  margin-top: 10px;
}
.deck,
.eventShelf,
.library {
  margin-top: 18px;
  border: 1px solid #d5d4c7;
  border-radius: 16px;
  background: #fffdf5;
  padding: clamp(15px, 2.3vw, 30px);
}
.deck .between h2,
.eventShelf h2 {
  margin: 0;
}
.tabs,
.eventStrip {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tabs button,
.eventStrip button {
  font-size: 13px;
  border: 1px solid #d6d7ca;
  border-radius: 30px;
  background: #fffdf6;
  padding: 7px 12px;
}
button[aria-pressed="true"] {
  background: #233e3c;
  color: white;
  border-color: #233e3c;
}
.crew {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 17px 0;
}
.crewCard,
.picker button,
.grid .card {
  border: 1px solid #d8d9cb;
  background: #f6f5ed;
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
}
.crewCard {
  display: grid;
  grid-template-columns: minmax(60px, 0.85fr) 1fr;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 9px;
}
.crewCard:disabled {
  opacity: 1;
}
.crewCard .portrait {
  grid-row: 1/4;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.crewCard small,
.card small,
.picker small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.crewCard strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.crewCard span {
  font-size: 12px;
}
.portrait,
.card canvas {
  background: radial-gradient(ellipse at 50% 35%, #fff0c9, #c7d5bc);
}
.launch,
.guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.launch .start {
  margin: 0;
  width: auto;
  min-width: 180px;
  background: #e76731;
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 3px #984322;
}
.launch small,
.guide span {
  color: #55605c;
}
.eventStrip {
  margin: 14px 0;
}
.guide {
  justify-content: flex-start;
  font-size: 14px;
}
.guide b {
  color: #a44922;
}
.library h1 {
  font-size: clamp(36px, 4vw, 55px);
}
.filters {
  margin-top: 20px;
}
.card {
  padding: 12px;
}
.card small {
  display: block;
  margin-top: 10px;
}
.awardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.award {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.award i {
  font-size: 33px;
  color: #9ca99a;
}
.earned i {
  color: #bf7923;
}
.award p,
.award h3 {
  margin: 3px 0;
}
.award small {
  display: block;
}
.award progress {
  accent-color: #398676;
  max-width: 100%;
}
dialog {
  width: min(650px, 94vw);
  max-height: 85vh;
  border: 1px solid #dbd6c8;
  padding: 22px;
  border-radius: 17px;
  background: #fcfbf3;
  color: #23332e;
  box-shadow: 0 20px 70px #10272055;
}
dialog::backdrop {
  background: #142623a8;
  backdrop-filter: blur(4px);
}
dialog h3 {
  margin: 18px 0 8px;
}
.tagField {
  margin: 10px 0;
}
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 7px;
}
.picker button {
  padding: 6px;
  display: grid;
  gap: 3px;
}
.picker button[aria-pressed="true"] {
  background: #24423e;
  color: white;
  outline: 2px solid #79bc8a;
}
.picker canvas {
  width: 100%;
  height: auto;
}
.deck .row {
  margin-top: 12px;
}
.objective {
  background: #e4eee1;
  color: #274937;
}
.score b {
  background: #eaf0e4;
}
.stage {
  border-color: #314840;
}
.overlay {
  background: linear-gradient(125deg, #142e2ae8, #214e47bc);
}
@media (max-width: 950px) {
  .crewCard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .crewCard canvas.portrait {
    height: 68px;
    width: 90px;
  }
  .deck .between {
    gap: 6px;
  }
  .crewCard strong {
    font-size: 16px;
  }
}
@media (max-width: 560px) {
  header {
    gap: 5px;
    padding: 8px 10px;
  }
  .wallet {
    font-size: 10px;
  }
  .crew {
    grid-template-columns: repeat(2, 1fr);
  }
  .launch,
  .guide {
    align-items: stretch;
    flex-direction: column;
  }
  .brand {
    font-size: 18px;
  }
  .crewCard {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 2px;
    text-align: left;
  }
  .crewCard canvas.portrait {
    width: 58px;
    height: 48px;
  }
}
#sound {
  margin-left: auto;
  font-size: 12px;
  background: #304443;
  color: #fcf8e6;
  border-color: #506462;
}
.wallet {
  margin-left: 0;
}
.eventStrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.eventStrip button {
  text-align: left;
  min-height: 66px;
  border-radius: 10px;
  padding: 32px 9px 8px;
  background-color: #344248;
  color: white;
  border: 2px solid transparent;
  line-height: 1.1;
  text-shadow: 0 2px 5px #101b20;
  font-weight: 850;
}
.eventStrip button:nth-child(-n + 4) {
  background-image:
    linear-gradient(0deg, #122529c7, transparent), url(arenas.jpg);
  background-size:
    100% 100%,
    200% 200%;
}
.eventStrip button:nth-child(2) {
  background-position:
    center,
    right top;
}
.eventStrip button:nth-child(3) {
  background-position:
    center,
    left bottom;
}
.eventStrip button:nth-child(4) {
  background-position:
    center,
    right bottom;
}
.eventStrip button:nth-child(5) {
  background: linear-gradient(155deg, #ba889b, #6a415c);
}
.eventStrip button:nth-child(6) {
  background: repeating-linear-gradient(
    90deg,
    #344353 0 12px,
    #455664 13px 19px
  );
}
.eventStrip button[aria-pressed="true"] {
  outline: 2px solid #dd733e;
  outline-offset: 1px;
}
#clock {
  font: 800 20px/1.3 monospace;
  background: #21423e;
  color: #fff9e5;
  border-radius: 8px;
  padding: 5px 12px;
}
.score b {
  position: relative;
  min-width: 140px;
  padding-left: 51px;
  font-size: 13px;
}
.score .portrait {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 38px;
  height: 33px;
}
.score small {
  margin-top: 3px;
  font-weight: 600;
}
.roundType {
  color: #f4c178;
  font-size: 13px;
  font-weight: 800;
}
.overlay h2 {
  margin: 8px 0;
}
.overlay p {
  max-width: 52ch;
  margin: 7px auto;
}
.overlay button {
  margin-top: 15px;
}
#unlock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  z-index: 10;
  border-radius: 12px;
  background: #204c40;
  color: #ffedbd;
  padding: 12px 20px;
  box-shadow: 0 8px 24px #162a2944;
  font-weight: 700;
}
@media (max-width: 740px) {
  .eventStrip {
    grid-template-columns: repeat(3, 1fr);
  }
  header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .wallet {
    margin-left: auto;
  }
}
.eventStrip button:nth-child(n + 5) {
  background-image:
    linear-gradient(0deg, #122529c7, transparent), url(interiors.jpg);
  background-size:
    100% 100%,
    100% 200%;
  background-position:
    center,
    center top;
}
.eventStrip button:nth-child(6) {
  background-position:
    center,
    center bottom;
}
.card canvas,
.picker canvas,
.crewCard canvas.portrait {
  background: radial-gradient(
    ellipse at 45% 38%,
    #faf4dc 0%,
    #dce2d4 65%,
    #bdcabe 100%
  );
}

.eventStrip{grid-template-columns:repeat(4,minmax(0,1fr))}.eventStrip button:nth-child(n+7){background-image:linear-gradient(0deg,#122529c7,transparent),url(country.jpg);background-size:100% 100%,100% 200%;background-position:center,center top}.eventStrip button:nth-child(8){background-position:center,center bottom}@media(max-width:600px){.eventStrip{grid-template-columns:repeat(2,minmax(0,1fr))}}

.touch-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
}
#move-pad,
#touch-action {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  flex: none;
}
#move-pad {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px solid #37544c;
  background: radial-gradient(circle, #385c50, #203b35);
  box-shadow: inset 0 2px 6px #112a21;
}
#move-pad span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c6d5b8;
  border: 3px solid #88a88c;
  pointer-events: none;
}
#touch-action {
  width: 76px;
  height: 76px;
  padding: 0;
  background: #994120;
  color: white;
  border: 3px solid #eaa47a;
  font-size: 15px;
  font-weight: 800;
}
#touch-action.held {
  background: #663018;
  box-shadow: inset 0 2px 8px #382217;
}
.phone-game .overlay:not(:empty) {
  overflow: auto;
  place-content: safe center;
  padding: 6px;
}
@media (max-width: 600px) {
  .phone-game {
    padding: 10px;
  }
  .phone-game .score {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .phone-game .score b {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .phone-game .overlay h2 {
    margin: 2px 0;
    font-size: 21px;
  }
  .phone-game .overlay p {
    margin: 3px auto;
    font-size: 14px;
  }
  .panel:has(table) {
    overflow-x: auto;
  }
}
#match-info-toggle { display:none; }
.touch-deck {
  position:absolute; inset:auto 0 0; z-index:1; pointer-events:none;
  padding:0 clamp(8px,2.4%,20px) 8px;
}
.touch-deck > * { pointer-events:auto; }
#move-pad { background:#173930a6; border-color:#dae9cca3; box-shadow:none; }
#move-pad span { background:#d3e2bdad; border-color:#a1bb9499; }
#touch-action { background:#8d3e22bc; border-color:#f8cf9cc9; }
#touch-action.held { background:#823a20eb; }
@media (max-width:600px), (orientation:landscape) and (max-height:600px) {
  body:has(.mobile-match) { overflow:hidden; }
  .mobile-match {
    --match-height:100dvh;
    position:fixed; z-index:8; top:0; left:0; width:100dvw; height:var(--match-height);
    display:grid; grid-template-rows:34px minmax(0,1fr); justify-items:center;
    padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    margin:0; border:0; border-radius:0; background:#142524; color:#fff9e8;
  }
  .mobile-match > .between {
    width:100%; min-width:0; margin:0; padding:0 6px; gap:8px;
    display:flex; align-items:center;
  }
  .mobile-match > .between > div {display:flex;align-items:baseline;gap:8px;min-width:0;}
  .mobile-match > .between .kicker {color:#b4c7bb; margin:0; white-space:nowrap; font-size:11px;}
  .mobile-match > .between h2 {margin:0; font-size:16px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
  .mobile-match #clock {font-size:14px; padding:2px 6px; white-space:nowrap;}
  .mobile-match #match-info-toggle {display:block; margin-left:auto; padding:4px 10px; white-space:nowrap; font-size:13px;}
  .mobile-match .stagewrap {align-self:center; width:100%; height:100%; min-height:0; container-type:size; display:grid; place-items:center;}
  .mobile-match .stage, .mobile-match .touch-deck, .mobile-match .overlay:not(:empty) {
    grid-area:1/1; position:relative; inset:auto; width:min(100cqw,180cqh); height:auto; aspect-ratio:9/5;
  }
  .mobile-match .stage {border:0; border-radius:0;}
  .mobile-match .touch-deck {align-items:flex-end; padding-bottom:6px;}
  .mobile-match #move-pad {width:clamp(60px,23cqh,94px);height:auto;aspect-ratio:1;}
  .mobile-match #move-pad span {width:39%;height:39%;}
  .mobile-match #touch-action {width:clamp(55px,20cqh,78px);height:auto;aspect-ratio:1;}
  .mobile-match .overlay {z-index:1;}
  .mobile-match .match-info {display:none;}
  .mobile-match:has(#match-info-toggle[aria-expanded="true"]) .match-info {
    display:block;position:absolute;z-index:3;top:calc(34px + env(safe-area-inset-top));width:min(94%,570px);
    max-height:72%;overflow:auto;background:#f8f6ef;color:#263a32;padding:10px 14px;
    border-radius:10px;box-shadow:0 6px 20px #0008;
  }
  .mobile-match .score {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
  .mobile-match .score b {min-width:0;}
}
@media (orientation:portrait) and (max-width:600px) {
  .mobile-match {
    --match-rotated:1; --match-height:100dvw;
    left:100dvw; width:100dvh; transform-origin:top left; transform:rotate(90deg);
    padding:env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) env(safe-area-inset-top);
  }
  .mobile-match:has(#match-info-toggle[aria-expanded="true"]) .match-info {top:calc(34px + env(safe-area-inset-right));}
}

.eventStrip button:nth-child(9) {background:repeating-linear-gradient(175deg,#9f4e36 0 18px,#c88d75 19px 20px);}
.eventStrip button:nth-child(10) {background:radial-gradient(ellipse at top right,#658a83,#203843 70%);}

.eventStrip button:nth-child(11) {background:repeating-linear-gradient(168deg,#346768 0 18px,#467879 19px 22px);}
.eventStrip button:nth-child(12) {background:radial-gradient(circle at 72% 25%,#efdd82 0 3px,#344e47 10px,#203730 60%);}
.guide #practice {flex-shrink:0}

.eventStrip button:nth-child(n + 13) {
  background-image: linear-gradient(0deg, #0b1821eb, transparent 78%), var(--event-scene);
  background-position: center;
  background-size: cover;
}

#field { touch-action: none; }

#pause-game { flex:0 0 auto; padding:4px 11px; font-size:17px; line-height:1.2; }
.pause-menu { display:grid; gap:7px; width:min(240px,85%); margin:auto; }
.pause-menu h2 { margin:0 0 4px; }
.pause-menu button { margin:0; }
.stagewrap:has(.pause-menu) .overlay { z-index:4; background:#142424ef; }
