@font-face { font-family: VHD; src: url(assets/sans.ttf); }
@font-face { font-family: VHD; src: url(assets/sans-bold.ttf); font-weight: 700; }

:root {
  --bg: #090909;
  --panel: #131313;
  --card: #171615;
  --edge: #40392c;
  --gold: #e7b650;
  --ink: #f6f3ed;
  --muted: #b3aea4;
  --selected: #332814;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #080808; color: var(--ink); font: 20px VHD, Arial, sans-serif; overflow: hidden; }
#canvas, #start-canvas { position: absolute; width: 1440px; height: 810px; transform-origin: top left; overflow: hidden; }
#canvas, #home-surface { background: var(--bg); }
#home-surface { position: absolute; inset: 0; }
h1, h2, h3, p { margin-top: 0; }
button, input, select { font: inherit; }
button, input, select {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 9px;
}
button { cursor: pointer; padding: 12px 17px; }
button[aria-pressed="true"] { color: var(--gold); background: var(--selected); border-color: #926f38; }
button:focus, input:focus, select:focus, [tabindex="0"]:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button:focus { background: var(--selected); }
button:disabled { opacity: .48; cursor: default; }
button.primary { background: #c89840; color: #14100b; border-color: #e9b95a; font-weight: 700; }
button.primary:focus { background: #e9bd66; }
::-webkit-scrollbar { width: 6px; height: 5px; }
::-webkit-scrollbar-thumb { background: #51422b; border-radius: 4px; }
::-webkit-scrollbar-track { background: #161410; }

.frame { position: absolute; inset: 28px; border: 1px solid #79592f; border-radius: 15px; }
.wave {
  position: absolute;
  inset: 29px 29px 29px 252px;
  border-left: 1px solid #57452c;
  overflow: hidden;
  border-radius: 0 14px 14px 0;
  background: radial-gradient(ellipse at 93% 110%, #33230f, transparent 54%), #0b0b0b;
  pointer-events: none;
}
.wave::before {
  content: '';
  position: absolute;
  width: 1300px;
  height: 340px;
  right: -410px;
  bottom: -209px;
  transform: rotate(-17deg);
  border: 1px solid #715226;
  border-radius: 50%;
  box-shadow: 0 -12px 0 #84613148, 0 -29px 0 #a7793442, 0 -53px 0 #61472335, 0 -87px 0 #42301938;
}
#home-surface aside { position: absolute; left: 45px; top: 156px; width: 185px; display: flex; flex-direction: column; gap: 13px; }
#home-surface aside button {
  height: 58px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 10px 11px;
  font-size: 19px;
  white-space: nowrap;
  border-color: #342c20;
}
#home-surface aside button[aria-current] { background: #211a11; border-color: #6f5129; color: var(--gold); }
#home-surface aside button:last-child { margin-top: 116px; }
#home-surface aside canvas { width: 27px; height: 27px; flex: 0 0 27px; }
#inbox-badge { margin-left: auto; background: var(--gold); color: #15110a; border-radius: 12px; padding: 0 5px; font-size: 13px; }
#home-header img { position: absolute; top: 98px; left: 295px; width: 246px; height: 84px; object-fit: contain; }
#clock { position: absolute; top: 53px; right: 65px; color: #dfd8c7; font-size: 27px; }
#account { position: absolute; right: 65px; top: 106px; min-width: 347px; height: 56px; font-size: 18px; letter-spacing: .055em; }
#sections {
  position: absolute;
  left: 277px;
  top: 270px;
  width: 1101px;
  height: 303px;
  display: flex;
  gap: 18px;
  padding: 12px;
  overflow: auto hidden;
  scrollbar-width: none;
}
#sections::-webkit-scrollbar { display: none; }
#sections button {
  width: 192px;
  flex: 0 0 192px;
  height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: radial-gradient(ellipse at 52% 25%, #242019, #141312 71%);
  border: 1px solid #59472a;
  color: var(--ink);
  padding: 15px 9px;
}
#sections button:focus { background: radial-gradient(ellipse at 52% 20%, #443216, #21180d 77%); }
#sections button canvas { height: 91px; width: 91px; }
#sections button span { font-weight: 700; font-size: 21px; white-space: nowrap; }
#sections .match-tile { background: linear-gradient(0deg, #100d0add 0%, #151210a8 100%), url(assets/matches-stadium.jpg) center / cover; }
#sections .match-tile:focus { background: linear-gradient(0deg, #1e160cf5 0%, #30200e77 100%), url(assets/matches-stadium.jpg) center / cover; }

.screen {
  position: absolute;
  inset: 0;
  padding: 31px 44px 39px;
  background: radial-gradient(ellipse at 95% 0%, #251e11, transparent 51%), #0a0a0a;
  overflow: hidden;
}
.screen-header { height: 75px; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.screen-header h1 { margin: 4px 0 0; font-size: 35px; }
.screen-header [class*="back-button"] { min-width: 112px; }
.screen-status { min-height: 24px; color: var(--muted); font-size: 17px; margin: 12px 0; }
.account-detail { padding: 38px; max-width: 620px; background: #161412; border: 1px solid var(--edge); border-radius: 12px; }
.account-detail p { font-size: 27px; }
.account-detail button { margin-right: 12px; }

#choice-scrim { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: #000b; }
.choice-dialog {
  width: 600px;
  max-height: 685px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 32px;
  border-radius: 14px;
  background: #171511;
  border: 1px solid #a97c3c;
  box-shadow: 0 22px 55px #0009;
}
.choice-dialog h1 { font-size: 28px; margin: 0; }
#choice-status { color: #d6c089; font-size: 17px; margin: 12px 0; }
#choice-list { overflow: auto; min-height: 12px; display: flex; flex-direction: column; gap: 9px; padding: 6px; }
#choice-list button { flex: 0 0 auto; text-align: left; min-height: 45px; }
#choice-list input { padding: 12px; max-width: 100%; }
#choice-back { margin-top: 18px; align-self: flex-end; min-width: 110px; }
