:root {
      --bg: #07090c;
      --panel: rgba(17, 20, 25, .92);
      --panel-soft: rgba(28, 32, 39, .86);
      --ink: #f4efe7;
      --muted: #aaa39b;
      --line: rgba(255,255,255,.13);
      --fire: #f05a28;
      --gold: #e5b84b;
      --cyan: #57d8f7;
      --danger: #e0574f;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      font-family: Arial, Helvetica, sans-serif;
      font-size: 15px;
      line-height: 1.4;
      background:
        linear-gradient(180deg, rgba(7,9,12,.76), rgba(7,9,12,.96)),
        url("/static/boqueron-hero.jpeg") center top / cover fixed;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 18% 12%, rgba(240,90,40,.28), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(87,216,247,.16), transparent 24%),
        linear-gradient(90deg, rgba(0,0,0,.72), transparent 42%, rgba(0,0,0,.58));
    }
    main {
      position: relative;
      width: min(1180px, calc(100% - 28px));
      margin: 0 auto;
      padding: 22px 0 44px;
    }
    .network-banner {
      position: fixed;
      z-index: 20;
      left: 50%;
      top: 10px;
      width: min(680px, calc(100% - 24px));
      transform: translateX(-50%);
      padding: 11px 14px;
      border: 1px solid rgba(240,90,40,.66);
      border-radius: 8px;
      color: #fff0d7;
      background: rgba(61, 18, 10, .94);
      box-shadow: 0 16px 42px rgba(0,0,0,.45);
      font-weight: 900;
      text-align: center;
    }
    .network-banner[hidden] { display: none; }
    .install-banner {
      display: none;
    }
    h1, h2, p { margin: 0; }
    h1 {
      font-size: clamp(30px, 7vw, 76px);
      line-height: .92;
      text-transform: uppercase;
      letter-spacing: 0;
      text-shadow: 0 3px 18px rgba(0,0,0,.75);
    }
    h2 { font-size: 21px; letter-spacing: 0; }
    button, input, select {
      font: inherit;
    }
    button {
      min-height: 42px;
      border: 0;
      border-radius: 6px;
      padding: 9px 14px;
      color: #130c08;
      background: linear-gradient(180deg, #ffd66c, var(--fire));
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 10px 28px rgba(240,90,40,.22);
    }
    button:disabled {
      opacity: .55;
      cursor: not-allowed;
      filter: grayscale(.35);
    }
    .ghost-button {
      color: var(--ink);
      background: rgba(255,255,255,.1);
      border: 1px solid var(--line);
      box-shadow: none;
    }
    .hero-band {
      min-height: 240px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: end;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(0,0,0,.66), rgba(17,20,25,.52)),
        url("/static/boqueron-hero.jpeg") center 42% / cover;
      box-shadow: 0 24px 80px rgba(0,0,0,.45);
    }
    .hero-copy { min-width: 0; }
    .eyebrow {
      margin-bottom: 6px;
      color: var(--gold);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .round-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 16px;
    }
    .pill {
      display: inline-flex;
      min-height: 28px;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      background: rgba(255,255,255,.1);
      border: 1px solid var(--line);
      color: var(--ink);
      white-space: nowrap;
    }
    .pill.fire { border-color: rgba(240,90,40,.65); color: #ffd7bf; background: rgba(240,90,40,.18); }
    .pill.cyan { border-color: rgba(87,216,247,.65); color: #d6f8ff; background: rgba(87,216,247,.14); }
    .pill.dark, .pill.muted { color: var(--muted); background: rgba(255,255,255,.06); }
    .pill.prediction-progress-pill {
      gap: 4px;
      border-color: rgba(87,216,247,.58);
      background: rgba(87,216,247,.13);
      color: #d6f8ff;
    }
    .pill.prediction-progress-pill strong {
      font: inherit;
      color: #fff4cf;
    }
    .pill.tournament-pill {
      border-color: rgba(245,190,95,.58);
      background: rgba(245,190,95,.14);
      color: #ffe6a9;
    }
    .stats-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }
    .portal-notice-panel {
      display: grid;
      position: relative;
      gap: 10px;
      min-height: 0;
      margin-top: 12px;
      padding: 10px;
      border: 1px solid rgba(229,184,75,.38);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(0,0,0,.84), rgba(9,12,17,.76) 58%, rgba(0,0,0,.52)),
        url("/static/boqueron-hero.jpeg") center 43% / cover;
      box-shadow: 0 20px 70px rgba(0,0,0,.44);
    }
    .portal-notice-shell {
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .portal-notice-panel-heading {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      position: relative;
      z-index: 1;
      min-width: 0;
    }
    .portal-notice-panel-heading .eyebrow {
      margin: 0 0 4px;
      color: var(--gold);
      font-size: 11px;
      line-height: 1;
      text-shadow: 0 2px 14px rgba(0,0,0,.82);
    }
    .portal-notice-panel-heading h2 {
      margin: 0;
      color: #fff4df;
      font-size: 16px;
      line-height: 1.08;
      text-transform: uppercase;
      text-shadow: 0 3px 18px rgba(0,0,0,.76);
    }
    .portal-notice-list {
      display: grid;
      position: relative;
      z-index: 1;
      gap: 6px;
      min-width: 0;
      max-width: none;
      margin: 0;
      padding: 0;
    }
    .portal-notice-list[hidden] {
      display: none;
    }
    .portal-notice-item {
      display: block;
      position: relative;
      overflow: hidden;
      min-width: 0;
      min-height: 0;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 6px;
      color: inherit;
      text-decoration: none;
      background: rgba(0,0,0,.32);
      box-shadow: inset 0 0 18px rgba(0,0,0,.2);
    }
    .portal-notice-bg-maestro {
      border-color: rgba(245,190,95,.3);
      background: rgba(245,190,95,.055);
    }
    .portal-notice-bg-puerta {
      border-color: rgba(83,209,255,.32);
      background: rgba(83,209,255,.065);
    }
    .portal-notice-compact,
    .portal-notice-body {
      position: relative;
      z-index: 1;
    }
    .portal-notice-compact {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      min-height: 38px;
      align-items: center;
    }
    .portal-notice-heading {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 7px 10px;
      flex-wrap: wrap;
    }
    .portal-notice-heading .eyebrow {
      margin: 0;
      color: var(--gold);
      font-size: 11px;
      line-height: 1;
      text-shadow: 0 2px 14px rgba(0,0,0,.82);
    }
    .portal-notice-heading h2 {
      min-width: min(100%, 180px);
      max-width: 100%;
      margin: 0;
      overflow-wrap: anywhere;
      color: #fff5dd;
      font-size: 15px;
      line-height: 1.05;
      text-transform: uppercase;
      text-shadow: 0 3px 18px rgba(0,0,0,.76);
    }
    .portal-notice-meta {
      display: inline-flex;
      min-width: 0;
      align-items: center;
    }
    .portal-notice-actions {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: wrap;
    }
    .portal-notice-action {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      justify-content: center;
      padding: 6px 10px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 6px;
      color: #fff4df;
      background: rgba(255,255,255,.08);
      box-shadow: inset 0 0 14px rgba(0,0,0,.18);
      font-size: 11px;
      font-weight: 950;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
    }
    .portal-notice-go {
      border-color: rgba(245,190,95,.58);
      color: #160d07;
      background: linear-gradient(180deg, #ffe17d, #f07933);
      box-shadow: 0 8px 20px rgba(240,90,40,.18);
    }
    .portal-notice-action:hover,
    .portal-notice-action:focus-visible {
      border-color: rgba(245,190,95,.82);
      box-shadow: inset 0 0 14px rgba(0,0,0,.2), 0 0 0 1px rgba(245,190,95,.18);
    }
    .portal-notice-body {
      display: grid;
      gap: 5px;
      margin-top: 6px;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,.12);
    }
    .portal-notice-body[hidden] {
      display: none;
    }
    .portal-notice-message {
      max-width: 760px;
      margin: 0;
      color: #fff6dc;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.28;
      text-shadow: 0 2px 14px rgba(0,0,0,.8);
    }
    .portal-notice-detail {
      display: block;
      max-width: 720px;
      margin: 0;
      color: #dfcfae;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.28;
      text-shadow: 0 2px 12px rgba(0,0,0,.78);
    }
    .portal-notice-countdown {
      display: inline-flex;
      max-width: 100%;
      min-height: 26px;
      align-items: center;
      width: fit-content;
      margin: 0;
      padding: 5px 9px;
      border: 1px solid rgba(245,190,95,.62);
      border-radius: 999px;
      background: rgba(245,190,95,.14);
      color: #ffe6a9;
      box-shadow: inset 0 0 18px rgba(0,0,0,.26), 0 10px 26px rgba(0,0,0,.28);
      font-size: 12px;
      font-weight: 950;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    .stat, .alias-card, .table-wrap, .empty-state {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      backdrop-filter: blur(8px);
    }
    .stat {
      padding: 14px;
    }
    .stat span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .stat strong {
      display: block;
      font-size: 32px;
      line-height: 1.05;
      margin-top: 3px;
    }
    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(8,10,13,.8);
    }
    .tab {
      flex: 1 1 180px;
      color: var(--ink);
      background: rgba(255,255,255,.08);
      border: 1px solid transparent;
      box-shadow: none;
    }
    .tab.active {
      color: #160d07;
      background: linear-gradient(180deg, #ffe17d, #f07933);
      border-color: rgba(255,255,255,.2);
    }
    .tab-panel {
      display: none;
      margin-top: 14px;
      scroll-margin-top: 18px;
    }
    .tab-panel.active { display: block; }
    .alias-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .alias-card {
      padding: 16px;
      min-width: 0;
    }
    .alias-head {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 14px;
    }
    .alias-head p { color: var(--muted); margin-top: 3px; }
    .prediction-form {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 10px;
      align-items: end;
    }
    .prediction-alias-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 104px;
    }
    .prediction-alias-card .alias-head {
      margin-bottom: 0;
    }
    .master-challenge-intro .master-challenge-copy {
      max-width: 760px;
      margin-top: 7px;
      color: #fff6dc;
      font-size: 17px;
      font-weight: 900;
      line-height: 1.28;
      text-shadow: 0 2px 14px rgba(0,0,0,.8);
      overflow-wrap: anywhere;
    }
    .master-challenge-avatar-heading {
      margin-top: 28px;
    }
    .master-challenge-card {
      color: inherit;
      text-decoration: none;
    }
    .prediction-alias-copy {
      min-width: 0;
      display: grid;
      gap: 8px;
    }
    .prediction-alias-title {
      min-width: 0;
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .prediction-alias-title h2 {
      margin: 0;
      line-height: 1.05;
    }
    .prediction-judgement-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .judgement-chip {
      display: inline-flex;
      min-height: 28px;
      max-width: 100%;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      border: 1px solid rgba(245,190,95,.28);
      border-radius: 999px;
      background: rgba(255,255,255,.055);
      color: #fff3dc;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.1;
    }
    .judgement-chip span {
      color: var(--gold);
      font-size: 10px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .judgement-chip-empty {
      color: var(--muted);
    }
    .prediction-alias-action {
      display: flex;
      justify-content: flex-end;
      min-width: 126px;
    }
    .prediction-alias-action .muted-copy {
      max-width: 230px;
      text-align: right;
    }
    .prediction-closed-button {
      width: 126px;
      min-height: 46px;
      padding: 8px 10px;
      border: 1px solid rgba(245,190,95,.46);
      border-radius: 8px;
      background: rgba(10, 14, 18, .76);
      color: #f5d989;
      cursor: default;
      font-size: 11px;
      font-weight: 950;
      line-height: 1.05;
      pointer-events: none;
      text-transform: uppercase;
    }
    .prediction-closed-button:disabled {
      opacity: 1;
    }
    .prediction-open-button {
      min-width: 134px;
      color: #160b03;
      text-transform: uppercase;
      font-size: 13px;
      font-weight: 950;
      line-height: 1.05;
      border: 1px solid rgba(255, 214, 108, .88);
      background: linear-gradient(180deg, #ffd66c 0%, #ff8f2e 56%, #f05a28 100%);
    }
    html.prediction-flow-open,
    html.prediction-flow-open body {
      overflow: hidden;
    }
    .prediction-flow-screen[hidden] {
      display: none;
    }
    .prediction-flow-screen {
      position: fixed;
      inset: 0;
      z-index: 38;
      background: rgba(3, 5, 9, .98);
    }
    .prediction-flow-drawer {
      width: min(100%, 520px);
      height: 100%;
      margin: 0 auto;
      overflow: auto;
      border-left: 1px solid rgba(229, 184, 75, .24);
      border-right: 1px solid rgba(229, 184, 75, .24);
      background:
        linear-gradient(180deg, rgba(5, 7, 11, .7), rgba(5, 7, 11, .98)),
        url("/static/boqueron-pronosticos.jpeg") center top / cover fixed,
        var(--bg);
    }
    .prediction-flow-head {
      position: sticky;
      top: 0;
      z-index: 2;
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(229, 184, 75, .26);
      background: rgba(5, 7, 11, .94);
      backdrop-filter: blur(12px);
    }
    .prediction-flow-head strong {
      display: block;
      margin-top: 2px;
      font-size: 18px;
      line-height: 1.1;
    }
    .prediction-flow-back {
      min-width: 46px;
      min-height: 46px;
      padding: 0;
      color: var(--ink);
      border: 1px solid rgba(87, 216, 247, .56);
      background: linear-gradient(180deg, #123344, #07131b);
      box-shadow: none;
      font-size: 28px;
      line-height: 1;
    }
    .prediction-flow-form {
      min-height: calc(100% - 71px);
      padding-bottom: 86px;
    }
    .prediction-stepper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 12px 14px 0;
    }
    .prediction-step {
      min-height: 48px;
      padding: 8px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 7px;
      color: var(--muted);
      background: rgba(12, 15, 20, .9);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .prediction-step.active {
      color: var(--ink);
      border-color: rgba(87, 216, 247, .72);
      background: rgba(7, 40, 55, .88);
    }
    .prediction-step.done {
      color: #76e69a;
      border-color: rgba(118, 230, 154, .48);
    }
    .prediction-choice-panel {
      padding: 14px;
    }
    .prediction-choice-panel h2 {
      margin: 0;
      font-size: 24px;
      line-height: 1;
      text-transform: uppercase;
    }
    .prediction-choice-panel p {
      margin: 8px 0 0;
      color: #dac7a5;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
    }
    .prediction-team-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
      margin-top: 14px;
    }
    .prediction-team-button {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      min-height: 58px;
      width: 100%;
      padding: 8px;
      color: var(--ink);
      border: 1px solid rgba(229, 184, 75, .26);
      border-radius: 8px;
      background: rgba(12, 15, 20, .94);
      box-shadow: none;
      text-align: left;
    }
    .prediction-team-button.selected {
      border-color: var(--cyan);
      background: rgba(8, 35, 48, .98);
      box-shadow: 0 0 0 2px rgba(87, 216, 247, .16), inset 0 0 24px rgba(87, 216, 247, .08);
    }
    .prediction-team-button.disabled {
      opacity: .42;
      cursor: not-allowed;
    }
    .prediction-team-crest {
      display: grid;
      width: 30px;
      height: 34px;
      place-items: center;
      color: var(--gold);
      font-size: 12px;
      font-weight: 950;
    }
    .prediction-team-crest img {
      display: block;
      width: 28px;
      max-height: 32px;
      object-fit: contain;
    }
    .prediction-team-copy {
      min-width: 0;
    }
    .prediction-team-copy strong {
      display: block;
      overflow-wrap: anywhere;
      font-size: 13px;
      line-height: 1.15;
    }
    .prediction-team-copy span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.2;
    }
    .prediction-flow-actions {
      position: fixed;
      left: 50%;
      bottom: 0;
      z-index: 4;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      width: min(100%, 520px);
      padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
      transform: translateX(-50%);
      border-top: 1px solid rgba(229, 184, 75, .26);
      background: rgba(5, 7, 11, .96);
      backdrop-filter: blur(12px);
    }
    .prediction-flow-actions button {
      min-height: 48px;
      font-weight: 950;
      text-transform: uppercase;
    }
    @media (min-width: 900px) {
      .prediction-flow-drawer {
        width: min(calc(100% - 64px), 860px);
      }
      .prediction-flow-actions {
        width: min(calc(100% - 64px), 860px);
      }
      .prediction-choice-panel {
        padding: 18px;
      }
      .prediction-team-list {
        gap: 10px 12px;
      }
      .prediction-team-button {
        min-height: 64px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px;
      }
      .prediction-team-crest {
        width: 36px;
      }
      .prediction-team-crest img {
        width: 32px;
        max-height: 36px;
      }
      .prediction-team-copy strong {
        font-size: 14px;
      }
    }
    label {
      display: grid;
      gap: 5px;
      min-width: 0;
      color: var(--muted);
      font-weight: 800;
      font-size: 13px;
    }
    input, select {
      width: 100%;
      min-height: 42px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 6px;
      color: var(--ink);
      background: rgba(0,0,0,.54);
    }
    option { color: #111; }
    .table-wrap {
      overflow-x: auto;
    }
    table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
    }
    th, td {
      padding: 12px 13px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: middle;
    }
    th {
      color: var(--gold);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0;
      background: rgba(0,0,0,.28);
    }
    tr:last-child td { border-bottom: 0; }
    .round-history-avatar-cell {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      max-width: 100%;
      vertical-align: middle;
    }
    .round-history-avatar-shirt {
      display: inline-grid;
      flex: 0 0 22px;
      place-items: center;
      width: 22px;
      height: 22px;
    }
    .round-history-avatar-shirt img {
      display: block;
      width: 22px;
      height: 22px;
      object-fit: contain;
    }
    .round-history-avatar-name {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .round-history-team-cell {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      max-width: 100%;
      vertical-align: middle;
    }
    .round-history-team-crest {
      display: inline-grid;
      flex: 0 0 auto;
      place-items: center;
      width: 22px;
      height: 22px;
    }
    .round-history-team-crest img {
      display: block;
      width: 22px;
      height: 22px;
      object-fit: contain;
    }
    .round-history-team-name {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .history-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      align-items: center;
      min-width: 0;
    }
    .history-chip {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 5px;
      min-width: 0;
      min-height: 26px;
      padding: 2px 7px;
      border: 1px solid rgba(229,184,75,.38);
      border-radius: 999px;
      background: rgba(229,184,75,.09);
      color: #ffe8a4;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
      white-space: nowrap;
    }
    .history-chip-round {
      line-height: 1;
    }
    .history-chip-crest,
    .history-chip-fallback {
      display: inline-grid;
      flex: 0 0 auto;
      place-items: center;
      width: 18px;
      height: 18px;
    }
    .history-chip-crest img {
      display: block;
      width: 18px;
      height: 18px;
      object-fit: contain;
    }
    .history-chip-fallback {
      border-radius: 50%;
      background: rgba(255,255,255,.1);
      color: #fff4cf;
      font-size: 9px;
      font-weight: 950;
    }
    .history-chip-name {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .empty-state {
      display: flex;
      gap: 16px;
      align-items: center;
      min-height: 180px;
      padding: 18px;
    }
    .empty-state img {
      width: 104px;
      height: 104px;
      object-fit: cover;
      border-radius: 8px;
    }
    .round-judgements-hidden {
      min-height: 0;
      width: 100%;
      max-width: none;
      padding: 10px 14px;
      align-items: center;
    }
    .round-judgement-history {
      display: grid;
      gap: 14px;
    }
    .round-history-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .round-history-button {
      width: 42px;
      height: 38px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(245,190,95,.44);
      border-radius: 7px;
      background: rgba(5,8,13,.78);
      color: #f7e7bd;
      font-size: 14px;
      font-weight: 950;
      cursor: pointer;
    }
    .round-history-button.active,
    .round-history-button:hover {
      background: var(--gold);
      color: #171009;
      box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
    }
    .round-history-panel {
      display: none;
      gap: 14px;
    }
    .round-history-panel.active {
      display: grid;
    }
    .round-history-matches,
    .round-history-predictions {
      display: grid;
      gap: 12px;
    }
    .round-history-downloads {
      display: grid;
      gap: 10px;
      padding: 12px;
    }
    .round-report-download-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .round-report-download-card {
      min-width: 0;
      display: grid;
      gap: 7px;
      align-content: start;
    }
    .round-report-download-button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 12px;
      border: 1px solid rgba(255,214,108,.58);
      border-radius: 6px;
      background: linear-gradient(180deg, #ffd66c, #b87924);
      color: #130c08;
      font-size: 12px;
      font-weight: 950;
      line-height: 1.1;
      text-align: center;
      text-decoration: none;
      box-shadow: 0 12px 24px rgba(240,90,40,.16);
    }
    .round-report-download-button.disabled {
      opacity: .46;
      filter: grayscale(.35);
      background: rgba(5,8,13,.72);
      color: #d8c399;
      border-color: rgba(245,190,95,.26);
      box-shadow: none;
      cursor: not-allowed;
    }
    .round-report-download-state {
      min-height: 15px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      line-height: 1.25;
      text-align: center;
    }
    .round-report-download-state.ready {
      color: #f6bf4f;
    }
    .round-history-private-note {
      margin: 0;
      padding: 10px 12px;
      border: 1px solid rgba(245,190,95,.24);
      border-radius: 6px;
      background: rgba(5,8,13,.62);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .alert {
      margin: 0 0 12px;
      padding: 11px 13px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: var(--panel);
      font-weight: 800;
    }
    .alert.ok { color: #d9ffd7; border-color: rgba(96,198,101,.46); }
    .alert.error { color: #ffd4d1; border-color: rgba(224,87,79,.55); }
    .public-page main {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 18px 0;
    }
    .demo-page {
      overflow: hidden;
      background: #03070c;
    }
    .demo-page::before { display: none; }
    .demo-page main {
      width: 100%;
      max-width: none;
      min-height: 100vh;
      padding: 0;
    }
    .demo-shell {
      position: relative;
      width: 100vw;
      max-height: 100vh;
      overflow: hidden;
      background: #03070c;
      box-shadow: 0 0 70px rgba(0,0,0,.72);
    }
    .demo-home {
      width: min(100vw, calc(100vh * 1.874));
    }
    .demo-register {
      width: min(100vw, calc(100vh * 1.777));
    }
    .demo-shell img {
      display: block;
      width: 100%;
      height: auto;
      user-select: none;
      -webkit-user-drag: none;
    }
    .demo-hotspot {
      position: absolute;
      display: block;
      border-radius: 4px;
      outline: none;
    }
    .demo-hotspot:focus-visible {
      box-shadow: 0 0 0 3px rgba(87,216,247,.9), 0 0 24px rgba(240,90,40,.55);
    }
    .home-register { left: 14.2%; top: 89.0%; width: 14.7%; height: 6.8%; }
    .home-ranking { left: 31.0%; top: 89.0%; width: 17.1%; height: 6.8%; }
    .home-rules { left: 50.2%; top: 89.0%; width: 14.9%; height: 6.8%; }
    .home-login { left: 66.9%; top: 89.0%; width: 18.4%; height: 6.8%; }
    .story-yes { left: 64.6%; top: 57.2%; width: 27.2%; height: 12.0%; }
    .story-register { left: 64.6%; top: 71.0%; width: 27.2%; height: 12.0%; }
    .story-back { left: 64.6%; top: 84.6%; width: 27.2%; height: 11.2%; }
    .story-page {
      overflow: auto;
      background: #050403;
    }
    .story-page::before { display: none; }
    .story-page main {
      width: 100%;
      max-width: none;
      min-height: 100vh;
      min-height: 100svh;
      padding: 0;
      display: block;
    }
    .story-reader {
      position: relative;
      width: 100%;
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: visible;
      background:
        radial-gradient(circle at 50% 70%, rgba(122,70,28,.18), transparent 38%),
        #050403;
    }
    .story-reader img {
      display: block;
      width: min(100vw, calc(100svh * 1.5));
      max-width: 100vw;
      height: auto;
      max-height: 100vh;
      max-height: 100svh;
      object-fit: contain;
      user-select: none;
      -webkit-user-drag: none;
    }
    @supports (height: 100dvh) {
      .story-page main,
      .story-reader {
        min-height: 100dvh;
      }
      .story-reader img {
        width: min(100vw, calc(100dvh * 1.5));
        max-height: 100dvh;
      }
    }
    .story-next {
      position: fixed;
      right: 28px;
      bottom: 24px;
      z-index: 2;
      min-width: 190px;
      min-height: 54px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      border: 1px solid rgba(229,184,75,.68);
      border-radius: 6px;
      color: #ffe0a3;
      background:
        linear-gradient(180deg, rgba(43,32,22,.92), rgba(7,6,5,.98)),
        radial-gradient(circle at 50% 0, rgba(87,216,247,.26), transparent 44%);
      box-shadow:
        0 0 0 1px rgba(0,0,0,.7),
        0 12px 34px rgba(0,0,0,.62),
        0 0 18px rgba(229,184,75,.24),
        inset 0 1px 0 rgba(255,255,255,.14);
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
      text-align: center;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0;
      text-shadow: 0 2px 9px rgba(0,0,0,.92);
    }
    .story-next:hover,
    .story-next:focus-visible {
      color: #fff2cf;
      border-color: rgba(87,216,247,.76);
      outline: none;
      box-shadow:
        0 0 0 3px rgba(87,216,247,.18),
        0 12px 34px rgba(0,0,0,.62),
        0 0 22px rgba(229,184,75,.34),
        inset 0 1px 0 rgba(255,255,255,.16);
    }
    .registration-page {
      background:
        linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.22)),
        url("/static/boqueron-registro-fondo.jpeg") center center / cover fixed;
    }
    .registration-page::before {
      background:
        linear-gradient(90deg, rgba(0,0,0,.20), rgba(0,0,0,.10) 40%, rgba(0,0,0,.68) 66%, rgba(0,0,0,.92));
    }
    .registration-page main {
      width: 100%;
      max-width: none;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: clamp(16px, 3vw, 38px);
    }
    .register-scene {
      position: relative;
      z-index: 1;
      width: 100%;
      min-height: calc(100vh - 76px);
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .register-panel {
      width: min(620px, 100%);
      max-height: calc(100vh - 48px);
      overflow-y: auto;
      overflow-x: hidden;
      padding: clamp(18px, 2.8vw, 30px);
      border: 1px solid rgba(229,184,75,.42);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(18,20,24,.88), rgba(6,8,11,.96)),
        radial-gradient(circle at 50% 0, rgba(229,184,75,.18), transparent 42%);
      box-shadow:
        0 24px 90px rgba(0,0,0,.64),
        inset 0 0 0 1px rgba(255,255,255,.06);
      backdrop-filter: blur(6px);
    }
    .register-heading {
      margin-bottom: 16px;
      min-width: 0;
    }
    .register-heading h1,
    .register-success h1 {
      color: #f6e7ce;
      max-width: 100%;
      overflow-wrap: anywhere;
      font-size: clamp(34px, 4.1vw, 58px);
      line-height: .92;
      text-shadow: 0 3px 22px rgba(0,0,0,.86), 0 0 18px rgba(229,184,75,.20);
    }
    .register-heading p {
      max-width: 50ch;
      line-height: 1.25;
    }
    .register-form {
      display: grid;
      gap: 12px;
      align-content: start;
    }
    .register-form label {
      color: #e7d4bd;
      text-shadow: 0 1px 8px rgba(0,0,0,.78);
    }
    .register-form input {
      min-height: 44px;
      border-color: rgba(229,184,75,.28);
      background: rgba(0,0,0,.58);
      box-shadow: inset 0 1px 10px rgba(0,0,0,.44);
    }
    .register-form input:focus {
      outline: none;
      border-color: rgba(87,216,247,.72);
      box-shadow: 0 0 0 3px rgba(87,216,247,.14), inset 0 1px 10px rgba(0,0,0,.44);
    }
    .registration-error-summary {
      display: grid;
      gap: 6px;
      padding: 14px 16px;
      border: 1px solid rgba(224,87,79,.72);
      border-radius: 8px;
      color: #ffe2de;
      background:
        linear-gradient(180deg, rgba(95,20,18,.88), rgba(28,8,9,.94)),
        radial-gradient(circle at 12% 0, rgba(255,210,129,.18), transparent 42%);
      box-shadow:
        0 12px 34px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.10);
    }
    .registration-error-summary strong {
      color: #ffe8b0;
      font-size: clamp(24px, 4vw, 42px);
      line-height: .9;
      text-transform: uppercase;
      text-shadow: 0 2px 16px rgba(0,0,0,.86), 0 0 18px rgba(224,87,79,.34);
    }
    .registration-error-summary span {
      color: #ffd4d1;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.2;
    }
    .register-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(128px, .5fr);
      gap: 10px;
      align-items: stretch;
      margin-top: 4px;
    }
    .register-actions.one-action {
      grid-template-columns: 1fr;
      margin-top: 18px;
    }
    .register-form button,
    .register-link-button {
      min-height: 50px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(229,184,75,.54);
      border-radius: 6px;
      color: #f8d6a2;
      background:
        linear-gradient(180deg, rgba(44,37,29,.96), rgba(8,9,11,.98));
      box-shadow:
        0 0 0 1px rgba(0,0,0,.44),
        0 10px 24px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.12);
      text-transform: uppercase;
      text-decoration: none;
      text-shadow: 0 2px 8px rgba(0,0,0,.9);
    }
    .register-form button:hover,
    .register-link-button:hover {
      border-color: rgba(87,216,247,.62);
      color: #ffe6b8;
      text-decoration: none;
    }
    .register-success {
      color: #f1dcc4;
    }
    .register-success p:not(.eyebrow) {
      font-weight: 800;
      color: #f1dcc4;
      text-shadow: 0 1px 10px rgba(0,0,0,.82);
    }
    @media (min-width: 821px) and (max-height: 760px) {
      .registration-page main {
        padding: 16px 32px;
      }
      .register-scene {
        min-height: calc(100vh - 32px);
      }
      .register-panel {
        width: min(620px, 100%);
        max-height: none;
        overflow: hidden;
        padding: 20px 28px;
      }
      .register-heading {
        margin-bottom: 10px;
      }
      .register-heading h1,
      .register-success h1 {
        font-size: 46px;
      }
      .register-form {
        gap: 8px;
      }
      .register-form label {
        gap: 3px;
        font-size: 12px;
      }
      .register-form input {
        min-height: 36px;
        padding: 6px 9px;
      }
      .alias-fields {
        gap: 8px;
      }
      .register-form button,
      .register-link-button {
        min-height: 42px;
      }
    }
    .login-shell {
      width: min(860px, 100%);
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(10,12,16,.9);
      box-shadow: 0 24px 90px rgba(0,0,0,.58);
    }
    .login-art {
      min-height: 420px;
      display: grid;
      align-content: end;
      gap: 16px;
      padding: 24px;
      background:
        linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.74)),
        url("/static/boqueron-hero.jpeg") center / cover;
    }
    .login-art h1 { font-size: clamp(34px, 6vw, 62px); }
    .login-form {
      display: grid;
      gap: 14px;
      align-content: center;
      padding: 24px;
      background: rgba(7,9,12,.76);
    }
    .registration-form { align-content: start; }
    .registration-shell, .password-shell { width: min(920px, 100%); }
    .alias-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .field-error {
      color: #ffd4d1;
      font-size: 12px;
      font-weight: 800;
    }
    .text-link {
      color: #ffe3a1;
      font-weight: 900;
      text-decoration: none;
    }
    .text-link:hover { text-decoration: underline; }
    .offline-card {
      width: min(680px, 100%);
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7,9,12,.8), rgba(7,9,12,.94)),
        url("/static/boqueron-hero.jpeg") center / cover;
      box-shadow: 0 24px 90px rgba(0,0,0,.58);
    }
    .offline-card h1 {
      max-width: 560px;
      margin-bottom: 12px;
      font-size: clamp(34px, 8vw, 70px);
    }
    .offline-card p {
      max-width: 560px;
      color: #f3d7bd;
      font-weight: 800;
    }
    .action-link {
      display: inline-flex;
      min-height: 42px;
      align-items: center;
      margin-top: 18px;
      padding: 9px 14px;
      border-radius: 6px;
      color: #130c08;
      background: linear-gradient(180deg, #ffd66c, var(--fire));
      font-weight: 900;
      text-decoration: none;
      box-shadow: 0 10px 28px rgba(240,90,40,.22);
    }
    .logout-form { margin: 0; align-self: start; }
    .empty-cell { color: var(--muted); }
    @media (max-width: 820px) {
      main { width: min(100% - 20px, 1180px); padding-top: 12px; }
      .hero-band {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 16px;
      }
      .logout-form { grid-column: 1 / -1; }
      .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .portal-notice-panel { padding: 9px; }
      .portal-notice-panel-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }
      .portal-notice-panel-heading h2 { font-size: 14px; }
      .portal-notice-toggle-all { min-width: 98px; }
      .portal-notice-item { padding: 8px; }
      .portal-notice-compact {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
      }
      .portal-notice-heading h2 { font-size: 14px; }
      .portal-notice-actions { justify-content: flex-start; }
      .portal-notice-action { min-height: 28px; font-size: 11px; }
      .portal-notice-message { font-size: 14px; }
      .portal-notice-countdown { font-size: 11px; }
      .prediction-form { grid-template-columns: 1fr; }
      .tabs { position: sticky; top: 0; z-index: 3; }
      .login-shell { grid-template-columns: 1fr; }
      .login-art { min-height: 300px; }
      .registration-page main {
        justify-content: center;
        align-items: flex-start;
        padding: 18px 12px;
      }
      .register-scene {
        min-height: auto;
        justify-content: center;
      }
      .register-panel {
        max-height: none;
      }
      .alias-fields { grid-template-columns: 1fr; }
      .story-next {
        right: 14px;
        bottom: 14px;
        min-width: 142px;
        min-height: 46px;
        padding: 10px 14px;
        font-size: 15px;
      }
    }
    @media (max-width: 520px) {
      .stats-strip { grid-template-columns: 1fr 1fr; }
      .portal-notice-panel-heading {
        grid-template-columns: minmax(0, 1fr) auto;
      }
      .portal-notice-panel-heading h2 { font-size: 13px; }
      .portal-notice-toggle-all {
        min-height: 30px;
        padding-inline: 8px;
      }
      .portal-notice-item { padding: 8px; }
      .portal-notice-heading { gap: 6px; }
      .portal-notice-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
      }
      .portal-notice-go { min-width: 0; white-space: normal; }
      .portal-notice-toggle { min-width: 86px; }
      .alias-grid { grid-template-columns: 1fr; }
      .hero-band { grid-template-columns: 1fr; }
      h1 { font-size: 34px; }
      .register-actions { grid-template-columns: 1fr; }
    }

    /* Final player portal shell */
    .gate-page main,
    .registration-page main,
    .portal-frame-page main,
    .story-page main {
      width: 100%;
      max-width: none;
      min-height: 100vh;
      padding: 0;
    }
    .gate-page {
      background-color: #000;
      background-image: url("/static/boqueron-gate.jpeg");
      background-position: center center;
      background-size: contain;
      background-repeat: no-repeat;
      background-attachment: fixed;
    }
    .gate-page::before {
      background:
        linear-gradient(90deg, rgba(0,0,0,.44), rgba(0,0,0,.16) 34%, rgba(0,0,0,.16) 66%, rgba(0,0,0,.44)),
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.58));
    }
    .gate-scene {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr;
      place-items: center;
      padding: 42px 24px;
    }
    .gate-open-button {
      min-width: min(240px, calc(100vw - 48px));
      min-height: 58px;
      border: 1px solid rgba(83, 209, 255, .74);
      border-radius: 8px;
      padding: 14px 22px;
      color: #eaf9ff;
      background:
        linear-gradient(180deg, rgba(83,209,255,.2), rgba(5,14,27,.76)),
        rgba(4,7,11,.55);
      box-shadow: 0 0 36px rgba(83,209,255,.42), inset 0 0 24px rgba(83,209,255,.16);
      text-transform: uppercase;
      font-weight: 950;
      text-shadow: 0 2px 12px #000;
    }
    .gate-open-button:hover,
    .gate-open-button:focus {
      color: #ffffff;
      border-color: rgba(255, 219, 143, .86);
      box-shadow: 0 0 44px rgba(83,209,255,.58), 0 0 18px rgba(255,191,83,.25);
    }
    .gate-login-dialog {
      width: min(460px, calc(100% - 28px));
      border: 0;
      padding: 0;
      color: var(--ink);
      background: transparent;
    }
    .gate-login-dialog::backdrop {
      background: rgba(0,0,0,.62);
      backdrop-filter: blur(2px);
    }
    .gate-panel {
      width: min(430px, calc(100vw - 48px));
      display: grid;
      gap: 13px;
      padding: 22px;
      border: 1px solid rgba(245, 190, 95, .5);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(4,7,11,.68), rgba(4,7,11,.86));
      box-shadow: 0 30px 95px rgba(0,0,0,.68), inset 0 0 38px rgba(76,185,255,.12);
      backdrop-filter: blur(2px);
    }
    .gate-panel h1,
    .register-panel h1,
    .world-stage h1,
    .hall-stage h1 {
      color: #f3dcc0;
      font-size: clamp(36px, 5vw, 70px);
      text-shadow: 0 2px 0 #120a06, 0 0 22px rgba(50,177,255,.42);
    }
    .gate-panel h1 {
      font-size: clamp(27px, 3.7vw, 43px);
      line-height: 1.02;
    }
    .master-message,
    .register-heading p,
    .world-copy p,
    .hall-copy p {
      color: #f6dec0;
      font-weight: 800;
    }
    .gate-panel label,
    .register-panel label,
    .stacked-form label {
      display: grid;
      gap: 6px;
      color: #f2c982;
      font-weight: 900;
      text-transform: uppercase;
      font-size: 12px;
    }
    .gate-panel input,
    .register-panel input,
    .stacked-form input,
    .stacked-form select {
      width: 100%;
      min-height: 42px;
      border: 1px solid rgba(245, 190, 95, .42);
      border-radius: 4px;
      padding: 9px 11px;
      color: #fff6e7;
      background: rgba(3,7,13,.7);
      outline: none;
      box-shadow: inset 0 0 18px rgba(0,0,0,.42);
    }
    .gate-panel input:focus,
    .register-panel input:focus,
    .stacked-form input:focus,
    .stacked-form select:focus {
      border-color: rgba(83, 209, 255, .92);
      box-shadow: 0 0 0 3px rgba(83,209,255,.14), inset 0 0 18px rgba(0,0,0,.42);
    }
    .gate-panel button,
    .boq-button,
    .register-panel button,
    .register-link-button,
    .world-card {
      min-height: 46px;
      border: 1px solid rgba(255, 199, 95, .58);
      border-radius: 4px;
      padding: 12px 16px;
      color: #ffe1aa;
      background:
        linear-gradient(180deg, rgba(255,210,111,.2), rgba(201,92,24,.2)),
        rgba(10,12,17,.82);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 18px rgba(37,169,255,.18);
      text-align: center;
      text-decoration: none;
      text-transform: uppercase;
      font-weight: 950;
    }
    .gate-panel button:hover,
    .boq-button:hover,
    .register-panel button:hover,
    .register-link-button:hover,
    .world-card:hover {
      border-color: rgba(83, 209, 255, .8);
      color: #ffffff;
      transform: translateY(-1px);
    }
    .boq-button.secondary { color: #f7c77a; }
    .boq-button.quiet { color: #d8eefe; }
    .gate-register-link {
      display: grid;
      gap: 3px;
    }
    .gate-register-link span {
      font-size: 12px;
      color: #f6c97f;
    }
    .gate-register-link strong {
      font-size: clamp(19px, 2vw, 24px);
      color: #ffe7b7;
      line-height: 1;
    }
    .gate-disclaimer {
      position: fixed;
      left: 50%;
      bottom: 14px;
      width: min(760px, calc(100% - 28px));
      transform: translateX(-50%);
      color: rgba(247,228,203,.82);
      font-size: 12px;
      font-weight: 800;
      text-align: center;
      text-shadow: 0 2px 12px #000;
    }
    .registration-page {
      background: #05070b url("/static/boqueron-arena-fondo.jpeg") center center / cover fixed;
    }
    .registration-page::before {
      background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.16) 48%, rgba(0,0,0,.72));
    }
    .register-scene {
      min-height: 100vh;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 44px min(7vw, 92px) 44px 28px;
    }
    .register-panel {
      width: min(620px, 100%);
      max-height: calc(100vh - 56px);
      overflow-y: auto;
      overflow-x: hidden;
      display: grid;
      gap: 14px;
      padding: 22px;
      border: 1px solid rgba(245, 190, 95, .5);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(5,8,13,.72), rgba(5,8,13,.9));
      box-shadow: 0 30px 95px rgba(0,0,0,.64), inset 0 0 36px rgba(245,190,95,.08);
      backdrop-filter: blur(2px);
    }
    .register-panel .register-heading h1 {
      max-width: 100%;
      overflow-wrap: anywhere;
      font-size: clamp(34px, 4.1vw, 58px);
      line-height: .92;
    }
    .register-panel .register-heading p {
      max-width: 52ch;
      line-height: 1.25;
    }
    .remember-panel .warning-copy {
      color: #ffd8bc;
      font-size: 13px;
      font-weight: 800;
    }
    .portal-frame-page {
      background: #05070b url("/static/boqueron-arena-fondo.jpeg") center center / cover fixed;
    }
    .portal-frame-page::before {
      background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.3) 44%, rgba(0,0,0,.64));
    }
    .portal-shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 260px minmax(0, 1fr);
    }
    .side-nav {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 20px 14px;
      border-right: 1px solid rgba(245, 190, 95, .25);
      background: linear-gradient(180deg, rgba(3,5,9,.94), rgba(9,12,18,.88));
      box-shadow: 20px 0 60px rgba(0,0,0,.38);
    }
    .side-brand {
      display: grid;
      gap: 5px;
      padding: 12px;
      border: 1px solid rgba(245, 190, 95, .32);
      border-radius: 6px;
      color: #ffe4af;
      text-decoration: none;
      background: rgba(255,255,255,.04);
    }
    .side-brand span,
    .aspirant-tag span {
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .side-brand strong,
    .aspirant-tag strong {
      color: #fff6e7;
      font-weight: 950;
    }
    .aspirant-tag small {
      color: #c7d7dd;
      font-size: 11px;
      font-weight: 850;
    }
    .aspirant-tag {
      width: 100%;
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border: 0;
      border-radius: 0;
      border-left: 3px solid var(--cyan);
      background: rgba(75,203,255,.08);
      color: inherit;
      text-align: left;
      text-decoration: none;
      box-shadow: none;
      cursor: pointer;
    }
    .aspirant-tag:hover,
    .aspirant-tag.active {
      background: rgba(75,203,255,.14);
    }
    .side-tournament-group {
      display: grid;
      gap: 9px;
      padding: 10px;
      border: 1px solid rgba(245,190,95,.28);
      border-radius: 6px;
      background: rgba(245,190,95,.055);
    }
    .side-tournament-heading {
      display: grid;
      gap: 4px;
      padding: 9px 10px;
      border: 1px solid rgba(245,190,95,.34);
      border-radius: 6px;
      background: rgba(0,0,0,.22);
      color: inherit;
      text-decoration: none;
      box-shadow: inset 0 0 18px rgba(0,0,0,.22);
    }
    .side-tournament-heading.active,
    .side-tournament-heading:hover {
      border-color: rgba(83,209,255,.7);
      background: rgba(83,209,255,.12);
      box-shadow: inset 0 0 18px rgba(0,0,0,.2), 0 0 18px rgba(83,209,255,.16);
    }
    .side-tournament-heading span {
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .side-tournament-heading strong {
      min-width: 0;
      overflow: hidden;
      color: #fff4df;
      font-size: 14px;
      font-weight: 950;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .side-tournament-links {
      display: grid;
      gap: 8px;
    }
    .side-nav nav {
      display: grid;
      gap: 8px;
    }
    .side-link {
      display: grid;
      align-content: center;
      gap: 3px;
      min-height: 42px;
      width: 100%;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 4px;
      padding: 10px 11px;
      color: #ecd8bd;
      background: rgba(255,255,255,.045);
      box-shadow: none;
      text-align: left;
      text-decoration: none;
      font-weight: 900;
    }
    .side-link span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .side-link small {
      color: #c7d7dd;
      font-size: 11px;
      font-weight: 850;
      line-height: 1.1;
    }
    .side-link.active,
    .side-link:hover {
      border-color: rgba(83, 209, 255, .6);
      color: #ffffff;
      background: rgba(76,185,255,.16);
    }
    .side-logout { margin-top: 8px; }
    .side-logout button { width: 100%; }
    .portal-content {
      min-width: 0;
      padding: 22px;
    }
    .world-page .portal-content,
    .hall-page .portal-content {
      padding: 0;
    }
    .portal-hero {
      min-height: 0;
      display: block;
      padding: 2px 0 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .hero-stack {
      min-height: 100%;
      display: grid;
      gap: 16px;
      align-content: space-between;
    }
    .hero-stack-compact {
      min-height: 0;
      gap: 0;
      align-content: start;
    }
    .hero-tournament-row {
      display: flex;
      align-items: center;
      min-width: 0;
    }
    .hero-tournament-title {
      max-width: 100%;
      color: #f7efe5;
      font-size: 29px;
      font-weight: 950;
      line-height: 1.04;
      text-transform: uppercase;
      text-shadow: 0 3px 18px rgba(0,0,0,.72);
      overflow-wrap: normal;
      text-wrap: balance;
    }
    .portal-hero h1 {
      max-width: 980px;
      font-size: 34px;
      line-height: 1.04;
    }
    .tab-panel {
      border: 1px solid rgba(245, 190, 95, .2);
      border-radius: 8px;
      padding: 18px;
      background: rgba(5,8,13,.72);
      box-shadow: inset 0 0 40px rgba(255,255,255,.03);
    }
    .tournaments-stage {
      display: grid;
      gap: 16px;
    }
    .tournament-card-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .tournament-choice-card {
      overflow: hidden;
      display: grid;
      grid-template-rows: 210px auto;
      min-width: 0;
      border: 1px solid rgba(245,190,95,.24);
      border-radius: 8px;
      background: rgba(9, 12, 16, .84);
      box-shadow: inset 0 0 34px rgba(255,255,255,.025);
    }
    .tournament-choice-card img {
      display: block;
      width: 100%;
      height: 210px;
      object-fit: cover;
      background: rgba(255,255,255,.05);
    }
    .tournament-choice-card-disabled img {
      object-position: center 30%;
    }
    .tournament-choice-card-active {
      color: inherit;
      text-decoration: none;
    }
    .tournament-choice-card-active:hover,
    .tournament-choice-card-active:focus-visible {
      border-color: rgba(83, 209, 255, .62);
      outline: none;
      box-shadow: inset 0 0 34px rgba(255,255,255,.025), 0 0 26px rgba(83,209,255,.18);
    }
    .tournament-choice-card-disabled {
      opacity: .86;
    }
    .tournament-choice-body {
      display: grid;
      align-content: start;
      gap: 13px;
      padding: 16px;
    }
    .tournament-choice-title {
      display: grid;
      gap: 8px;
    }
    .tournament-choice-title h2 {
      margin: 0;
      color: #fff4df;
      font-size: 24px;
      line-height: 1.05;
      text-transform: uppercase;
    }
    .tournament-choice-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
    }
    .tournament-choice-stats div,
    .disabled-note,
    .tournament-choice-note {
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 7px;
      background: rgba(255,255,255,.055);
    }
    .tournament-choice-stats dt {
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
      line-height: 1.15;
      text-transform: uppercase;
    }
    .tournament-choice-stats dd {
      margin: 3px 0 0;
      color: #fff7e9;
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
    }
    .tournament-choice-action {
      width: fit-content;
      text-decoration: none;
    }
    .disabled-note {
      margin: 0;
      color: #d0c4b8;
      font-weight: 850;
    }
    .tournament-choice-note {
      margin: 0;
      color: #ffe8b3;
      font-weight: 900;
      line-height: 1.25;
    }
    .section-heading {
      display: grid;
      gap: 6px;
      margin-bottom: 16px;
    }
    .section-heading h2 {
      color: #f3dcc0;
      font-size: clamp(28px, 3vw, 48px);
      line-height: 1;
      text-transform: uppercase;
    }
    .section-heading p:not(.eyebrow) {
      color: #e7d2b6;
      font-weight: 800;
    }
    .next-round-board {
      min-height: 790px;
      display: grid;
      align-content: space-between;
      gap: 18px;
      margin-bottom: 22px;
      padding: clamp(14px, 2.4vw, 34px);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(0,0,0,.54), rgba(0,0,0,.74)),
        url("/static/boqueron-pronosticos.jpeg") center top / cover;
      box-shadow: inset 0 0 120px rgba(0,0,0,.55);
    }
    .next-round-copy {
      width: min(1040px, 100%);
      display: grid;
      gap: 8px;
      margin-inline: auto;
      padding: 14px 24px;
      border: 1px solid rgba(245,190,95,.35);
      border-radius: 8px;
      background: rgba(3,7,13,.68);
      text-align: center;
      backdrop-filter: blur(2px);
    }
    .next-round-copy h2 {
      color: #ffd98e;
      font-size: clamp(40px, 4.8vw, 72px);
      line-height: .9;
      white-space: nowrap;
      text-transform: uppercase;
      text-shadow: 0 3px 0 #281305, 0 0 24px rgba(255,174,61,.52);
    }
    .next-round-copy .round-meta {
      justify-content: center;
      margin-top: 4px;
    }
    .match-board {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 16px;
      align-items: stretch;
    }
    .match-card {
      min-height: 92px;
      display: grid;
      gap: 10px;
      padding: 12px 11px 10px;
      border: 1px solid rgba(245,190,95,.38);
      border-radius: 6px;
      background: linear-gradient(180deg, rgba(10,12,17,.82), rgba(3,7,13,.8));
    }
    .match-teams-row {
      min-width: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }
    .match-result-card {
      min-width: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      min-height: 32px;
      padding: 6px 10px;
      border: 1px solid rgba(245,190,95,.28);
      border-radius: 5px;
      background: rgba(5,8,13,.58);
      color: #f4ead7;
      font-size: 12px;
      line-height: 1.1;
    }
    .match-result-card span {
      color: var(--gold);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .match-result-card strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 950;
      text-align: right;
    }
    .team-badge {
      min-width: 0;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 8px;
      color: #fff3dc;
      font-weight: 900;
    }
    .team-badge img {
      width: 30px;
      height: 30px;
      object-fit: contain;
    }
    .match-index {
      display: none;
    }
    .team-badge-placeholder {
      width: 30px;
      height: 30px;
    }
    .team-badge-name,
    .team-badge > span:not(.team-badge-count):not(.team-badge-placeholder) {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .team-badge-count {
      justify-self: end;
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border: 1px solid rgba(95, 111, 126, .82);
      border-radius: 999px;
      color: #d9e0e8;
      background: #141a20;
      font-size: 12px;
      font-weight: 950;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.42);
    }
    .judgement-stats {
      display: grid;
      gap: 18px;
    }
    .public-judgement-stats {
      margin-bottom: 18px;
    }
    .anonymous-team-stats {
      display: grid;
      gap: 14px;
      margin-top: 16px;
      margin-bottom: 18px;
      padding: 16px;
      border: 1px solid rgba(245,190,95,.24);
      border-radius: 8px;
      background: rgba(5,8,13,.58);
    }
    .team-pick-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .team-pick-card {
      min-width: 0;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) 54px;
      gap: 8px 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(245,190,95,.28);
      border-radius: 6px;
      background: linear-gradient(180deg, rgba(14,17,23,.82), rgba(4,7,12,.8));
    }
    .team-pick-crest {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
    }
    .team-pick-crest img {
      width: 30px;
      height: 30px;
      object-fit: contain;
    }
    .team-pick-fallback {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(87,216,247,.85), rgba(255,214,108,.9));
    }
    .team-pick-card strong {
      min-width: 0;
      overflow: hidden;
      color: #fff3dc;
      font-size: 14px;
      font-weight: 950;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .team-pick-percent {
      justify-self: end;
      color: #ffd66c;
      font-size: 14px;
      font-weight: 950;
    }
    .team-pick-meter {
      grid-column: 2 / 4;
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      overflow: hidden;
    }
    .team-pick-meter i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #57d8f7, #ffd66c, #f05a28);
    }
    .revealed-judgements-heading {
      margin: 4px 0 12px;
    }
    .survivor-hall {
      display: grid;
      gap: 12px;
    }
    .survivor-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .judgement-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }
    .chart-row {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      padding: 16px;
      border: 1px solid rgba(245,190,95,.2);
      border-radius: 8px;
      background: rgba(255,255,255,.04);
    }
    .donut-chart {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      box-shadow: inset 0 0 0 28px rgba(3,7,13,.92), 0 0 32px rgba(0,0,0,.38);
      justify-self: center;
    }
    .chart-legend {
      display: grid;
      gap: 9px;
      color: #f6e4c7;
      font-weight: 900;
    }
    .chart-legend span {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .chart-legend i {
      width: 14px;
      height: 14px;
      border-radius: 3px;
      flex: 0 0 14px;
    }
    .top-teams-chart {
      display: grid;
      gap: 10px;
      padding: 16px;
      border: 1px solid rgba(245,190,95,.2);
      border-radius: 8px;
      background: rgba(255,255,255,.04);
    }
    .bar-row {
      display: grid;
      grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr) 52px;
      gap: 10px;
      align-items: center;
      color: #fff3dc;
      font-weight: 900;
    }
    .bar-row div {
      height: 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      overflow: hidden;
    }
    .bar-row i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #57d8f7, #ffd66c, #f05a28);
    }
    .account-grid {
      display: grid;
      grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.22fr);
      gap: 18px;
      align-items: start;
    }
    .account-grid-single {
      grid-template-columns: minmax(260px, 520px);
    }
    .avatar-chamber-layout {
      max-width: 860px;
    }
    .account-left-column {
      display: grid;
      gap: 18px;
      align-items: start;
    }
    .aspirant-chamber-heading {
      padding: 0 2px;
    }
    .medieval-sheet,
    .stone-panel {
      border: 1px solid rgba(245, 190, 95, .28);
      border-radius: 8px;
      padding: 18px;
      background: linear-gradient(180deg, rgba(18,15,12,.78), rgba(5,8,13,.82));
    }
    .stone-panel h3 {
      margin: 14px 0 6px;
      color: #fff4df;
      font-size: 18px;
      line-height: 1.2;
    }
    .push-notification-panel {
      border-color: rgba(255, 168, 58, .38);
      background:
        linear-gradient(135deg, rgba(255,168,58,.16), rgba(5,8,13,.84) 52%),
        rgba(9,11,16,.82);
    }
    .push-action-row {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }
    .push-action-row .boq-button {
      width: 100%;
    }
    .push-action-row .boq-button:disabled {
      cursor: default;
      opacity: .68;
      transform: none;
    }
    .push-state {
      margin: 0;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 6px;
      background: rgba(255,255,255,.055);
      color: #fff4df;
      font-size: 15px;
      font-weight: 950;
      line-height: 1.2;
      text-align: center;
    }
    .push-state[data-tone="ok"] {
      border-color: rgba(112, 255, 173, .32);
      background: rgba(112, 255, 173, .1);
      color: #baffd4;
    }
    .push-state[data-tone="warn"] {
      border-color: rgba(255, 209, 153, .32);
      background: rgba(255, 168, 58, .1);
      color: #ffd199;
    }
    .push-status {
      min-height: 19px;
      margin: 0;
      color: #c9d6de;
      font-size: 13px;
      font-weight: 850;
      line-height: 1.45;
      white-space: pre-line;
    }
    .push-status[data-tone="ok"] {
      color: #9ff2c2;
    }
    .push-status[data-tone="warn"] {
      color: #ffd199;
    }
    .push-diagnostic {
      margin: 0;
      padding: 7px 9px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 6px;
      color: #aebbc4;
      background: rgba(255,255,255,.045);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.3;
    }
    .push-diagnostic[data-tone="ok"] {
      border-color: rgba(112, 255, 173, .22);
      color: #aef7c9;
    }
    .push-diagnostic[data-tone="warn"] {
      border-color: rgba(255, 209, 153, .24);
      color: #ffd199;
    }
    .medieval-sheet dl {
      display: grid;
      gap: 11px;
      margin: 0;
    }
    .medieval-sheet dt {
      color: var(--gold);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .medieval-sheet dd {
      margin: 0;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      color: #fff4df;
      font-weight: 850;
    }
    .medieval-sheet blockquote {
      margin: 0;
      color: #d7f4ff;
      font-style: italic;
    }
    .profile-strip {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .avatar-summary-list {
      display: grid;
      gap: 10px;
      margin: 0 0 14px;
    }
    .avatar-summary-button {
      appearance: none;
      width: 100%;
      min-height: 70px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 11px 12px;
      border: 1px solid rgba(245, 190, 95, .2);
      border-radius: 6px;
      background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
      color: inherit;
      font: inherit;
      text-align: left;
      text-decoration: none;
      cursor: pointer;
      letter-spacing: 0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }
    .avatar-summary-button:hover,
    .avatar-summary-button:focus-visible {
      border-color: rgba(255, 214, 108, .45);
      background: linear-gradient(180deg, rgba(255,214,108,.13), rgba(255,255,255,.045));
      outline: none;
    }
    .avatar-summary-copy {
      order: 1;
      min-width: 0;
      display: grid;
      gap: 6px;
    }
    .avatar-summary-copy strong {
      overflow: hidden;
      color: #fff4df;
      font-size: 18px;
      font-weight: 950;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .avatar-summary-state {
      width: fit-content;
      max-width: 100%;
      padding: 6px 11px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 950;
      letter-spacing: 0;
      line-height: 1;
      text-transform: uppercase;
    }
    .avatar-summary-state.alive {
      border-color: rgba(245, 190, 95, .35);
      background: rgba(245, 190, 95, .12);
      color: #ffe4a6;
    }
    .avatar-summary-state.accepted {
      border-color: rgba(87,216,247,.38);
      background: rgba(87,216,247,.11);
      color: #d7f8ff;
    }
    .avatar-summary-state.pending {
      border-color: rgba(87,216,247,.34);
      background: rgba(87,216,247,.1);
      color: #d9f7ff;
    }
    .avatar-summary-state.out {
      border-color: rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: #bfc8d2;
    }
    .avatar-summary-meta {
      order: 2;
      min-width: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      justify-content: flex-end;
      justify-self: end;
    }
    .avatar-pb {
      min-width: 42px;
      display: grid;
      gap: 2px;
      justify-items: end;
    }
    .avatar-pb span {
      color: var(--gold);
      font-size: 10px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .avatar-pb strong {
      color: #fff4df;
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
    }
    .avatar-summary-empty {
      padding: 14px;
      border: 1px solid rgba(245, 190, 95, .16);
      border-radius: 6px;
      background: rgba(255,255,255,.045);
      color: var(--muted);
      font-weight: 800;
    }
    .historical-avatars {
      margin-top: 18px;
    }
    .section-heading.compact {
      margin-bottom: 12px;
    }
    .section-heading.compact h2 {
      font-size: 24px;
      line-height: 1.05;
    }
    .historical-search {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px 12px;
      align-items: end;
      margin: 0 0 12px;
    }
    .historical-search label {
      grid-column: 1 / -1;
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
      letter-spacing: 0;
      line-height: 1;
      text-transform: uppercase;
    }
    .historical-search input {
      min-width: 0;
      min-height: 46px;
      width: 100%;
      border: 1px solid rgba(245, 190, 95, .18);
      border-radius: 7px;
      padding: 11px 13px;
      color: #fff7e8;
      background: rgba(7, 9, 12, .52);
      outline: none;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
      font-weight: 900;
    }
    .historical-search input:focus {
      border-color: rgba(245, 190, 95, .58);
      box-shadow: 0 0 0 3px rgba(245, 190, 95, .12), inset 0 1px 0 rgba(255,255,255,.05);
    }
    .historical-search input::placeholder {
      color: rgba(244, 239, 231, .42);
    }
    .historical-search-count {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 12px;
      border: 1px solid rgba(87,216,247,.22);
      border-radius: 7px;
      color: #d9f7ff;
      background: rgba(87,216,247,.08);
      font-size: 12px;
      font-weight: 950;
      white-space: nowrap;
    }
    .historical-search-empty {
      margin: 0 0 12px;
    }
    .historical-avatar-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .historical-avatar-row[hidden] {
      display: none;
    }
    .historical-avatar-row {
      margin: 0;
    }
    .historical-avatar-button {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 66px;
      padding: 10px 12px;
      border: 1px solid rgba(245, 190, 95, .16);
      border-radius: 7px;
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.032));
      color: inherit;
      text-decoration: none;
    }
    .historical-avatar-button:hover,
    .historical-avatar-button:focus-visible {
      border-color: rgba(245, 190, 95, .42);
      background: linear-gradient(180deg, rgba(245,190,95,.14), rgba(255,255,255,.04));
      outline: none;
    }
    .historical-rank {
      min-width: 46px;
      color: var(--gold);
      font-size: 18px;
      font-weight: 950;
      line-height: 1;
    }
    .historical-avatar-copy {
      min-width: 0;
      display: grid;
    }
    .historical-avatar-name-row {
      min-width: 0;
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .historical-avatar-copy strong {
      min-width: 0;
      overflow: hidden;
      color: #fff4df;
      font-size: 24px;
      font-weight: 950;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .historical-active-pill {
      flex: 0 0 auto;
      width: fit-content;
      padding: 4px 8px;
      border: 1px solid rgba(87,216,247,.32);
      border-radius: 999px;
      background: rgba(87,216,247,.12);
      color: #d9f7ff;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      text-transform: uppercase;
    }
    .historical-own {
      width: fit-content;
      padding: 4px 8px;
      border: 1px solid rgba(87,216,247,.28);
      border-radius: 999px;
      background: rgba(87,216,247,.09);
      color: #d9f7ff;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      text-transform: uppercase;
    }
    .historical-avatar-pb {
      min-width: 64px;
      display: grid;
      gap: 3px;
      justify-items: end;
    }
    .historical-avatar-pb span {
      color: var(--gold);
      font-size: 10px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .historical-avatar-pb strong {
      color: #ffffff;
      font-size: 26px;
      font-weight: 950;
      line-height: 1;
    }
    .alias-profile-stage {
      display: grid;
      gap: 16px;
    }
    .alias-profile-back {
      justify-self: start;
    }
    .game-back-button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 18px;
      border: 1px solid rgba(70, 38, 8, .7);
      border-radius: 7px;
      color: #170d04;
      background: linear-gradient(180deg, #ffca68, #f05a28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 12px 24px rgba(0,0,0,.28);
      font-weight: 950;
      line-height: 1;
      text-decoration: none;
      text-transform: uppercase;
    }
    .game-back-button:hover,
    .game-back-button:focus-visible {
      color: #080402;
      background: linear-gradient(180deg, #ffd985, #ff6b2c);
      outline: none;
    }
    .alias-profile-hero {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      padding: 18px;
      border: 1px solid rgba(245, 190, 95, .28);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(18,15,12,.82), rgba(5,8,13,.88)),
        url("/static/boqueron-arena-fondo.jpeg") center center / cover;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.32);
    }
    .alias-profile-avatar-card {
      width: 148px;
      display: grid;
      gap: 10px;
      justify-items: stretch;
    }
    .alias-profile-avatar {
      width: 100%;
      aspect-ratio: 3 / 4;
      overflow: hidden;
      border: 1px solid rgba(245,190,95,.34);
      border-radius: 8px;
      background: #05070b;
      box-shadow: 0 12px 30px rgba(0,0,0,.38);
    }
    .alias-profile-avatar img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .profile-image-change-button {
      min-height: 42px;
      padding: 10px;
      font-size: 11px;
      line-height: 1.1;
    }
    .boq-dialog.profile-image-dialog {
      width: min(860px, calc(100vw - 32px));
      max-width: calc(100vw - 32px);
    }
    .profile-image-dialog-content {
      display: grid;
      gap: 14px;
    }
    .profile-image-dialog-content h3 {
      margin: 0;
      color: #fff4df;
      font-size: 22px;
      line-height: 1.1;
    }
    .profile-image-options {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
    }
    .profile-image-option-form {
      margin: 0;
    }
    .profile-image-option {
      width: 100%;
      display: grid;
      padding: 8px;
      border: 1px solid rgba(245,190,95,.24);
      border-radius: 8px;
      background: rgba(255,255,255,.055);
      color: #ffe7b7;
      font: inherit;
      font-weight: 950;
      line-height: 1.1;
      text-align: center;
      cursor: pointer;
    }
    .profile-image-option.active,
    .profile-image-option:hover,
    .profile-image-option:focus-visible {
      border-color: rgba(87,216,247,.68);
      background: rgba(87,216,247,.13);
      outline: none;
    }
    .profile-image-option img {
      width: 100%;
      aspect-ratio: 3 / 4;
      display: block;
      border-radius: 6px;
      object-fit: cover;
      background: #05070b;
    }
    @media (max-width: 760px) {
      .profile-image-options {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }
    @media (max-width: 620px) {
      .profile-image-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }
    .alias-profile-title {
      min-width: 0;
      display: grid;
      gap: 8px;
    }
    .alias-profile-title h1 {
      margin: 0;
      overflow-wrap: anywhere;
      color: #fff4df;
      font-size: 42px;
      line-height: .98;
    }
    .alias-profile-title p {
      margin: 0;
      color: var(--muted);
      font-weight: 850;
    }
    .alias-profile-title p strong {
      color: #fff4df;
    }
    .alias-profile-title .pill {
      justify-self: start;
    }
    .alias-profile-total {
      min-width: 130px;
      display: grid;
      gap: 8px;
      justify-items: end;
      padding: 14px;
      border: 1px solid rgba(87,216,247,.28);
      border-radius: 8px;
      background: rgba(87,216,247,.08);
    }
    .alias-profile-total span {
      color: var(--gold);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .alias-profile-total strong {
      color: #ffffff;
      font-size: 42px;
      font-weight: 950;
      line-height: 1;
    }
    .alias-profile-grid {
      display: grid;
      gap: 16px;
    }
    .alias-pb-list {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .alias-pb-list li {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 48px;
      padding: 10px 12px;
      border: 1px solid rgba(245,190,95,.16);
      border-radius: 6px;
      background: rgba(255,255,255,.045);
    }
    .alias-pb-list li span {
      min-width: 0;
      color: #f5dfbb;
      font-weight: 900;
    }
    .alias-pb-list li strong {
      color: #ffffff;
      font-size: 22px;
      font-weight: 950;
      line-height: 1;
    }
    .alias-awards-panel {
      overflow: hidden;
    }
    .alias-award-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
      gap: 12px;
    }
    .alias-award-empty {
      grid-column: 1 / -1;
      width: 100%;
      margin: 0;
      overflow-wrap: normal;
    }
    .alias-award-card {
      position: relative;
      min-height: 128px;
      display: grid;
      align-content: center;
      gap: 8px;
      overflow: hidden;
      padding: 18px 18px 18px 96px;
      border: 1px solid rgba(43,28,13,.72);
      border-radius: 8px;
      background:
        radial-gradient(circle at 50px 50%, rgba(15,10,5,.72) 0 34px, transparent 35px),
        linear-gradient(90deg, rgba(70,43,20,.94), rgba(228,188,112,.94) 46%, rgba(92,57,24,.94)),
        linear-gradient(135deg, #b98a45, #f3d69a);
      color: #17100a;
      box-shadow: inset 0 0 0 2px rgba(255,232,174,.22), inset 0 0 28px rgba(59,34,12,.32);
    }
    .alias-award-card::before {
      content: "";
      position: absolute;
      left: 26px;
      top: 33px;
      width: 48px;
      height: 48px;
      border: 2px solid rgba(238,205,132,.82);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,231,171,.24), rgba(29,18,8,.88));
      box-shadow: 0 0 18px rgba(0,0,0,.34);
    }
    .alias-award-card-image {
      width: 100%;
      max-width: 220px;
      min-height: 0;
      aspect-ratio: 1;
      align-content: stretch;
      padding: 0;
      border-color: rgba(238,205,132,.74);
      background: #090604;
      box-shadow: 0 0 24px rgba(0,0,0,.34), inset 0 0 0 2px rgba(255,226,154,.26);
    }
    .alias-award-card-image::before {
      content: none;
    }
    .alias-award-image {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 7px;
      object-fit: cover;
    }
    .alias-award-card span {
      color: #2c1b0c;
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .alias-award-card strong {
      color: #120b05;
      font-size: 22px;
      font-weight: 950;
      line-height: 1.05;
    }
    .alias-award-card p {
      margin: 0;
      color: #33220f;
      font-weight: 800;
      line-height: 1.35;
    }
    .alias-profile-empty {
      min-height: 260px;
      display: grid;
      place-items: center;
      gap: 12px;
      padding: 28px;
      border: 1px solid rgba(245,190,95,.2);
      border-radius: 8px;
      background: rgba(255,255,255,.045);
      text-align: center;
    }
    .alias-profile-empty img {
      width: 82px;
      height: 82px;
      border-radius: 8px;
      object-fit: cover;
    }
    .profile-stat {
      min-height: 82px;
      display: grid;
      align-content: space-between;
      gap: 8px;
      padding: 12px;
      border: 1px solid rgba(245, 190, 95, .18);
      border-radius: 6px;
      background: rgba(255,255,255,.045);
    }
    .profile-stat.wide,
    .profile-stat.sentence {
      grid-column: auto;
    }
    .profile-stat span {
      color: var(--gold);
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
    }
    .profile-stat strong {
      color: #fff4df;
      font-size: clamp(15px, 1.6vw, 20px);
      line-height: 1.25;
    }
    .account-forms,
    .stacked-form {
      display: grid;
      gap: 14px;
    }
    .account-forms {
      grid-template-columns: 1fr;
      align-items: start;
    }
    .claimed-avatar-list {
      display: grid;
      gap: 10px;
      margin: 0 0 16px;
      padding: 0;
      list-style: none;
    }
    .claimed-avatar-list li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 48px;
      padding: 8px 10px;
      border: 1px solid rgba(245, 190, 95, .16);
      border-radius: 6px;
      background: rgba(255,255,255,.045);
    }
    .claimed-avatar-list strong {
      color: #fff4df;
      font-size: 17px;
    }
    .avatar-claim-split {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }
    .avatar-claim-form {
      padding-top: 10px;
      border-top: 1px solid rgba(245,190,95,.18);
    }
    .avatar-request-box {
      display: grid;
      gap: 12px;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .pending-avatar-requests {
      display: grid;
      gap: 8px;
    }
    .pending-avatar-requests ul {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .pending-avatar-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 70px;
      padding: 11px 12px;
      border: 1px solid rgba(245, 190, 95, .2);
      border-radius: 6px;
      background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }
    .pending-avatar-status {
      order: 2;
      width: max-content;
      min-width: 96px;
      max-width: 100%;
      min-height: 0;
      display: grid;
      place-items: center;
      justify-self: end;
      padding: 9px 16px;
      border: 1px solid rgba(245, 190, 95, .35);
      border-radius: 999px;
      background: rgba(245, 190, 95, .1);
      color: #ffe4a6;
      font-size: 14px;
      font-weight: 950;
      letter-spacing: 0;
      line-height: 1;
      text-transform: uppercase;
    }
    .pending-avatar-card strong {
      order: 1;
      justify-self: start;
      min-width: 0;
      overflow: hidden;
      color: #fff4df;
      font-size: 18px;
      font-weight: 950;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .boq-dialog {
      width: min(440px, calc(100% - 28px));
      border: 1px solid rgba(245, 190, 95, .42);
      border-radius: 8px;
      padding: 20px;
      color: var(--ink);
      background: linear-gradient(180deg, rgba(18,15,12,.98), rgba(5,8,13,.98));
      box-shadow: 0 28px 90px rgba(0,0,0,.72);
    }
    .boq-dialog::backdrop {
      background: rgba(0,0,0,.72);
    }
    .boq-dialog h3 {
      margin: 0;
      color: #f3dcc0;
      font-size: 24px;
      text-transform: uppercase;
    }
    .dialog-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .world-stage,
    .hall-stage,
    .rules-stage,
    .faq-stage {
      min-height: 100vh;
      display: grid;
      align-content: center;
      justify-items: center;
      padding: 32px;
      border-left: 1px solid rgba(245, 190, 95, .22);
    }
    .world-stage {
      background:
        linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18)),
        url("/static/boqueron-arena-fondo.jpeg") center center / cover;
    }
    .hall-stage {
      background:
        linear-gradient(90deg, rgba(0,0,0,.36), rgba(0,0,0,.18)),
        url("/static/boqueron-hall-fame.jpeg") center center / cover;
    }
    .hall-gallery {
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      gap: 14px;
      justify-items: center;
      padding: 20px;
      border-left: 1px solid rgba(245, 190, 95, .22);
      background:
        radial-gradient(circle at center, rgba(245,190,95,.14), rgba(0,0,0,.76) 64%),
        #050403;
    }
    .hall-gallery-head {
      width: min(900px, 100%);
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
    }
    .hall-gallery-head h1 {
      margin: 0;
      font-size: clamp(30px, 4vw, 58px);
      text-transform: uppercase;
      text-shadow: 0 2px 0 #000;
    }
    .hall-back-button {
      width: auto;
      min-width: 132px;
      color: #161008;
      background: linear-gradient(180deg, #ffe18c, #ff762b);
    }
    .hall-frame {
      width: min(900px, 100%);
      min-height: 0;
      display: grid;
      place-items: center;
      margin: 0;
    }
    .hall-frame img {
      width: auto;
      max-width: 100%;
      max-height: min(74vh, 1350px);
      display: block;
      object-fit: contain;
      border: 1px solid rgba(245, 190, 95, .42);
      border-radius: 8px;
      box-shadow: 0 28px 90px rgba(0,0,0,.68);
      background: #050403;
    }
    .hall-selector {
      width: min(900px, 100%);
      display: flex;
      justify-content: center;
      gap: 10px;
      padding-bottom: 4px;
    }
    .hall-selector-button {
      width: 58px;
      height: 74px;
      min-height: 74px;
      padding: 0;
      border: 1px solid rgba(245, 190, 95, .44);
      border-radius: 8px;
      overflow: hidden;
      background: rgba(8, 10, 14, .82);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }
    .hall-selector-button img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .hall-selector-button.active,
    .hall-selector-button:hover,
    .hall-selector-button:focus-visible {
      border-color: rgba(255, 225, 140, .9);
      box-shadow: 0 0 0 2px rgba(255, 118, 43, .72), 0 10px 24px rgba(0,0,0,.48);
    }
    .rules-stage {
      min-height: 100vh;
      gap: 14px;
      align-content: start;
      justify-content: center;
      padding-block: 28px 42px;
      background:
        radial-gradient(circle at center, rgba(245,190,95,.1), rgba(0,0,0,.76) 62%),
        #050403;
    }
    .world-copy,
    .hall-copy,
    .rules-copy {
      width: min(760px, 100%);
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid rgba(245, 190, 95, .28);
      border-radius: 8px;
      background: rgba(4,7,12,.58);
    }
    .world-copy {
      text-align: center;
    }
    .world-actions {
      width: min(760px, 100%);
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin: 18px auto 0;
    }
    .world-card {
      display: grid;
      gap: 7px;
      min-height: 124px;
      align-content: center;
    }
    .world-card span {
      color: var(--gold);
      font-size: 12px;
    }
    .world-card strong {
      font-size: 21px;
      overflow-wrap: anywhere;
    }
    .rules-stage img {
      width: min(940px, 100%);
      max-height: none;
      object-fit: contain;
      border: 1px solid rgba(245, 190, 95, .32);
      border-radius: 8px;
      box-shadow: 0 28px 80px rgba(0,0,0,.62);
    }
    .rules-back-button {
      width: min(420px, 100%);
      justify-self: center;
    }
    .faq-stage {
      min-height: 100vh;
      grid-template-columns: minmax(0, 860px);
      gap: 0;
      align-items: center;
      justify-content: center;
      justify-items: stretch;
      background: #030406;
    }
    .faq-scroll {
      max-height: calc(100vh - 64px);
      overflow-y: auto;
      padding: 8px;
    }
    .faq-parchment {
      display: grid;
      gap: 18px;
      padding: 24px;
      border: 1px solid rgba(245,190,95,.3);
      border-radius: 8px;
      color: #f6dec0;
      background:
        linear-gradient(180deg, rgba(17,19,23,.94), rgba(5,8,13,.96)),
        #05070b;
      box-shadow: 0 34px 92px rgba(0,0,0,.72), inset 0 0 44px rgba(245,190,95,.055);
    }
    .faq-heading {
      display: grid;
      gap: 6px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(245,190,95,.18);
      text-align: center;
    }
    .faq-heading h2 {
      color: #fff4df;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1;
      text-transform: uppercase;
    }
    .faq-heading p:not(.eyebrow) {
      color: #d8c0a0;
      font-weight: 850;
    }
    .faq-group {
      display: grid;
      gap: 10px;
    }
    .faq-group h2 {
      margin-top: 4px;
      color: var(--gold);
      font-size: 19px;
      line-height: 1.1;
      text-transform: uppercase;
    }
    .faq-item {
      display: grid;
      gap: 5px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 6px;
      background: rgba(255,255,255,.05);
    }
    .faq-item h3 {
      margin: 0;
      color: #fff0d2;
      font-size: 16px;
      line-height: 1.18;
    }
    .faq-item p {
      margin: 0;
      color: #d7c8b2;
      font-size: 14px;
      font-weight: 760;
      line-height: 1.38;
    }
    .faq-back-button {
      justify-self: center;
      width: min(320px, 100%);
      margin-top: 4px;
    }
    .story-reader {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 0;
      background: #050403;
    }
    .story-reader img {
      width: 100vw;
      height: 100vh;
      object-fit: contain;
      display: block;
    }
    .story-next {
      border-radius: 4px;
      background: rgba(7,9,12,.82);
    }
    .muted-copy { color: var(--muted); font-weight: 800; }
    .mobile-topbar,
    .mobile-drawer,
    .mobile-drawer-backdrop {
      display: none;
    }
    @media (max-width: 900px) {
      .mobile-drawer-open body {
        overflow: hidden;
      }
      body {
        font-size: 14px;
        background:
          linear-gradient(180deg, rgba(5,7,10,.92), rgba(5,7,10,.98)),
          url("/static/boqueron-arena-fondo.jpeg") center top / cover fixed;
      }
      body::before {
        background:
          linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.62)),
          linear-gradient(90deg, rgba(0,0,0,.56), transparent 46%, rgba(0,0,0,.42));
      }
      button,
      input,
      select {
        font-size: 16px;
      }
      .gate-scene {
        grid-template-columns: 1fr;
        place-items: center;
        min-height: 100svh;
        padding: 18px 12px 84px;
      }
      .gate-page {
        background-size: cover;
        background-position: center center;
      }
      .gate-open-button {
        min-width: min(240px, calc(100vw - 28px));
        min-height: 52px;
      }
      .gate-login-dialog {
        width: calc(100% - 20px);
      }
      .gate-panel {
        width: 100%;
        max-height: calc(100svh - 28px);
        overflow-y: auto;
        gap: 10px;
        padding: 16px;
      }
      .gate-panel h1 {
        font-size: 27px;
      }
      .gate-disclaimer {
        bottom: 8px;
        font-size: 11px;
      }
      .registration-page {
        background-attachment: scroll;
      }
      .registration-page::before {
        background: linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.84));
      }
      .registration-page main {
        padding: 0;
      }
      .register-scene {
        min-height: 100svh;
        justify-content: center;
        align-items: flex-start;
        padding: 14px;
      }
      .register-panel {
        max-height: none;
        gap: 12px;
        padding: 16px;
      }
      .register-panel .register-heading h1 {
        font-size: 32px;
        line-height: 1;
      }
      .register-actions,
      .dialog-actions {
        grid-template-columns: 1fr;
      }
      .portal-frame-page {
        background-attachment: scroll;
      }
      .portal-shell {
        display: block;
        min-height: 100svh;
      }
      .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 12;
        min-height: 58px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 8px 10px;
        border-bottom: 1px solid rgba(245, 190, 95, .22);
        background: rgba(4,7,11,.96);
        box-shadow: 0 12px 28px rgba(0,0,0,.38);
        backdrop-filter: blur(10px);
      }
      .mobile-menu-button {
        min-height: 40px;
        min-width: 76px;
        padding: 8px 11px;
        border: 1px solid rgba(87,216,247,.38);
        border-radius: 7px;
        color: #eaf9ff;
        background: rgba(87,216,247,.12);
        box-shadow: none;
        font-size: 13px;
        font-weight: 950;
        text-transform: uppercase;
      }
      .mobile-brand {
        min-width: 0;
        display: grid;
        gap: 1px;
        color: #fff4df;
        text-decoration: none;
      }
      .mobile-brand span {
        color: var(--gold);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }
      .mobile-brand strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 15px;
        line-height: 1.1;
      }
      .mobile-drawer-backdrop:not([hidden]) {
        position: fixed;
        z-index: 18;
        inset: 0;
        display: block;
        background: rgba(0,0,0,.58);
      }
      .mobile-drawer:not([hidden]) {
        position: fixed;
        z-index: 19;
        inset: 0 auto 0 0;
        width: min(330px, calc(100vw - 34px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 14px;
        padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
        border-right: 1px solid rgba(245, 190, 95, .28);
        color: var(--ink);
        background: linear-gradient(180deg, rgba(4,7,11,.98), rgba(10,12,18,.98));
        box-shadow: 24px 0 70px rgba(0,0,0,.62);
        backdrop-filter: blur(12px);
        animation: mobileDrawerIn .18s ease-out;
      }
      @keyframes mobileDrawerIn {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
      }
      .mobile-drawer-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border: 1px solid rgba(245,190,95,.22);
        border-radius: 7px;
        background: rgba(255,255,255,.045);
      }
      .mobile-drawer-head span {
        display: block;
        color: var(--gold);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }
      .mobile-drawer-head strong {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: #fff4df;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .mobile-drawer-head button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
      }
      .mobile-drawer nav {
        min-height: 0;
        overflow-y: auto;
        display: grid;
        align-content: start;
        gap: 9px;
      }
      .mobile-drawer-card {
        width: 100%;
        display: grid;
        gap: 3px;
        padding: 11px 12px;
        border: 1px solid rgba(245,190,95,.25);
        border-radius: 7px;
        color: #fff4df;
        background: rgba(255,255,255,.045);
        box-shadow: none;
        text-align: left;
        text-decoration: none;
      }
      .mobile-drawer-card span,
      .mobile-tournament-heading span {
        color: var(--gold);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }
      .mobile-drawer-card strong,
      .mobile-tournament-heading strong {
        min-width: 0;
        overflow: hidden;
        color: #fff4df;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.12;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .mobile-drawer-card small {
        color: #c7d7dd;
        font-size: 12px;
        font-weight: 850;
      }
      .mobile-aspirant-card {
        border: 0;
        border-left: 3px solid var(--cyan);
        border-radius: 0;
        background: rgba(75,203,255,.08);
      }
      .mobile-tournament-group {
        display: grid;
        gap: 9px;
        padding: 10px;
        border: 1px solid rgba(245,190,95,.28);
        border-radius: 7px;
        background: rgba(245,190,95,.055);
      }
      .mobile-tournament-heading {
        display: grid;
        gap: 4px;
        padding: 9px 10px;
        border: 1px solid rgba(245,190,95,.34);
        border-radius: 6px;
        background: rgba(0,0,0,.22);
        color: inherit;
        text-decoration: none;
        box-shadow: inset 0 0 18px rgba(0,0,0,.22);
      }
      .mobile-tournament-heading.active,
      .mobile-tournament-heading:hover {
        border-color: rgba(83,209,255,.7);
        background: rgba(83,209,255,.12);
        box-shadow: inset 0 0 18px rgba(0,0,0,.2), 0 0 18px rgba(83,209,255,.16);
      }
      .mobile-tournament-links {
        display: grid;
        gap: 8px;
      }
      .mobile-drawer-link {
        width: 100%;
        min-height: 50px;
        display: grid;
        align-content: center;
        gap: 3px;
        padding: 12px 13px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 7px;
        color: #ecd8bd;
        background: rgba(255,255,255,.045);
        box-shadow: none;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.15;
        text-align: left;
        text-decoration: none;
      }
      .mobile-drawer-link span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .mobile-drawer-link small {
        color: #c7d7dd;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.1;
      }
      .mobile-drawer-link.active,
      .mobile-drawer-link:hover {
        border-color: rgba(87,216,247,.58);
        color: #ffffff;
        background: rgba(87,216,247,.16);
      }
      .mobile-drawer-logout {
        margin: 0;
      }
      .mobile-drawer-logout button {
        width: 100%;
        min-height: 48px;
      }
      .install-banner:not([hidden]) {
        position: fixed;
        z-index: 13;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 12px;
        border: 1px solid rgba(87,216,247,.42);
        border-radius: 8px;
        color: #fff4df;
        background: linear-gradient(180deg, rgba(7,12,18,.98), rgba(5,8,13,.98));
        box-shadow: 0 18px 48px rgba(0,0,0,.58), 0 0 24px rgba(87,216,247,.14);
      }
      .portal-frame-page .install-banner:not([hidden]) {
        bottom: calc(12px + env(safe-area-inset-bottom));
      }
      .install-copy {
        min-width: 0;
        display: grid;
        gap: 3px;
      }
      .install-copy strong {
        color: #fff4df;
        font-size: 14px;
        font-weight: 950;
      }
      .install-copy span,
      .install-copy small {
        color: #d8c5aa;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
      }
      .install-copy small[hidden] {
        display: none;
      }
      .install-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .install-actions button {
        min-height: 36px;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
      }
      .install-actions .ghost-button {
        color: #d8c5aa;
        background: rgba(255,255,255,.06);
      }
      .side-nav {
        display: none;
      }
      .portal-content {
        padding: 12px 10px 18px;
      }
      .world-page .portal-content,
      .hall-page .portal-content {
        padding: 0 0 18px;
      }
      .portal-hero {
        min-height: 0;
        padding: 0;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
      }
      .hero-stack {
        gap: 12px;
      }
      .hero-stack-compact {
        gap: 0;
      }
      .portal-hero h1 {
        font-size: 23px;
        line-height: 1.06;
      }
      .hero-tournament-title {
        font-size: 23px;
        line-height: 1.08;
      }
      .eyebrow {
        margin-bottom: 4px;
        font-size: 11px;
      }
      .round-meta {
        gap: 6px;
        margin-top: 10px;
      }
      .pill {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 12px;
        white-space: normal;
      }
      .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 8px 0 10px;
      }
      .stat {
        min-height: 62px;
        padding: 10px;
      }
      .stat span {
        font-size: 11px;
      }
      .stat strong {
        font-size: 24px;
      }
      .tab-panel {
        margin-top: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        scroll-margin-top: 72px;
      }
      .section-heading {
        gap: 5px;
        margin-bottom: 10px;
        padding-inline: 2px;
      }
      .section-heading h2 {
        font-size: 25px;
        line-height: 1.03;
      }
      .section-heading p:not(.eyebrow) {
        font-size: 13px;
        line-height: 1.25;
      }
      .tournament-card-grid {
        grid-template-columns: 1fr;
      }
      .tournament-choice-card {
        grid-template-rows: 176px auto;
      }
      .tournament-choice-card img {
        height: 176px;
      }
      .tournament-choice-body {
        padding: 14px;
      }
      .tournament-choice-title h2 {
        font-size: 21px;
      }
      .tournament-choice-stats {
        grid-template-columns: 1fr 1fr;
      }
      .tournament-choice-stats dd {
        font-size: 21px;
      }
      .next-round-board {
        min-height: auto;
        align-content: start;
        gap: 12px;
        margin-bottom: 14px;
        padding: 12px;
        border: 1px solid rgba(245, 190, 95, .2);
        background:
          linear-gradient(180deg, rgba(0,0,0,.64), rgba(0,0,0,.84)),
          url("/static/boqueron-pronosticos.jpeg") center top / cover;
        box-shadow: none;
      }
      .next-round-copy {
        width: 100%;
        margin: 0;
        padding: 10px;
        text-align: left;
      }
      .next-round-copy h2 {
        font-size: 25px;
        line-height: 1;
        white-space: normal;
      }
      .next-round-copy .round-meta {
        justify-content: flex-start;
      }
      .match-board {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .match-card {
        min-height: 84px;
        gap: 8px;
        padding: 10px 8px 9px;
      }
      .match-teams-row {
        gap: 6px;
      }
      .team-badge {
        grid-template-columns: 24px minmax(0, 1fr) 26px;
        gap: 5px;
        font-size: 12px;
      }
      .team-badge img {
        width: 24px;
        height: 24px;
      }
      .team-badge-placeholder {
        width: 24px;
        height: 24px;
      }
      .team-badge-count {
        width: 26px;
        height: 26px;
      }
      .match-result-card {
        min-height: 30px;
        padding: 6px 8px;
        gap: 6px;
        font-size: 11px;
      }
      .match-result-card span {
        font-size: 9px;
      }
      .match-result-card strong {
        font-size: 11px;
      }
      .anonymous-team-stats {
        padding: 12px;
      }
      .team-pick-grid {
        grid-template-columns: 1fr;
      }
      .team-pick-card {
        grid-template-columns: 30px minmax(0, 1fr) 48px;
        padding: 9px;
      }
      .team-pick-crest,
      .team-pick-crest img {
        width: 26px;
        height: 26px;
      }
      .team-pick-card strong,
      .team-pick-percent {
        font-size: 13px;
      }
      .alias-grid {
        gap: 10px;
      }
      .alias-card {
        padding: 12px;
      }
      .alias-head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
      }
      .alias-head h2 {
        font-size: 20px;
      }
      .alias-head p {
        font-size: 13px;
        line-height: 1.25;
      }
      .prediction-form {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .prediction-alias-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        min-height: 96px;
      }
      .prediction-alias-card .alias-head {
        margin-bottom: 0;
      }
      .prediction-alias-copy {
        gap: 7px;
      }
      .judgement-chip {
        min-height: 26px;
        padding: 4px 7px;
        font-size: 12px;
      }
      .prediction-alias-action {
        min-width: 116px;
      }
      .prediction-closed-button {
        width: 116px;
        min-height: 44px;
        padding: 7px 8px;
        font-size: 10px;
      }
      .prediction-open-button {
        min-width: 116px;
        min-height: 46px;
        padding: 8px 9px;
        font-size: 12px;
      }
      input,
      select {
        min-height: 48px;
      }
      .prediction-form button,
      .stacked-form button,
      .request-avatar-button {
        width: 100%;
        min-height: 50px;
      }
      .empty-state {
        min-height: 116px;
        align-items: flex-start;
        padding: 14px;
      }
      .empty-state.round-judgements-hidden {
        min-height: 0;
        width: 100%;
        max-width: none;
        padding: 8px 12px;
        align-items: center;
      }
      .empty-state img {
        width: 72px;
        height: 72px;
      }
      .judgement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .chart-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
      }
      .donut-chart {
        width: 128px;
        height: 128px;
        box-shadow: inset 0 0 0 20px rgba(3,7,13,.92), 0 0 24px rgba(0,0,0,.34);
      }
      .top-teams-chart {
        padding: 12px;
      }
      .bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        backdrop-filter: none;
      }
      .table-wrap table,
      .table-wrap thead,
      .table-wrap tbody,
      .table-wrap tr,
      .table-wrap td {
        display: block;
        width: 100%;
      }
      .table-wrap table {
        min-width: 0;
        border-collapse: separate;
      }
      .table-wrap thead {
        display: none;
      }
      .table-wrap tr {
        display: grid;
        gap: 8px;
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid rgba(245, 190, 95, .2);
        border-radius: 8px;
        background: var(--panel);
      }
      .table-wrap td {
        display: grid;
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 0;
        border: 0;
        min-height: 28px;
      }
      .table-wrap td[data-label="Apuestas"] {
        align-items: start;
      }
      .table-wrap td[data-label="Apuestas"] .history-chip-list {
        width: 100%;
        justify-content: flex-start;
      }
      .table-wrap td::before {
        content: attr(data-label);
        color: var(--gold);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }
      .table-wrap .empty-cell {
        display: block;
        padding: 14px;
        text-align: center;
        color: var(--muted);
      }
      .table-wrap .empty-cell::before {
        display: none;
      }
      .account-grid,
      .account-forms,
      .world-actions,
      .rules-stage,
      .profile-strip {
        grid-template-columns: 1fr;
      }
      .hall-gallery {
        min-height: calc(100svh - 64px);
        gap: 10px;
        padding: 12px;
        border-left: 0;
      }
      .hall-gallery-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .hall-gallery-head h1 {
        font-size: 34px;
      }
      .hall-back-button {
        width: 100%;
        min-height: 46px;
      }
      .hall-frame img {
        max-height: 66svh;
      }
      .hall-selector-button {
        width: 52px;
        height: 66px;
        min-height: 66px;
      }
      .account-grid {
        gap: 12px;
      }
      .account-left-column,
      .account-forms {
        gap: 12px;
      }
      .stone-panel,
      .medieval-sheet {
        padding: 14px;
      }
      .profile-stat {
        min-height: auto;
        padding: 10px;
      }
      .avatar-summary-button {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 64px;
        gap: 9px;
        padding: 10px;
      }
      .avatar-summary-copy strong {
        font-size: 16px;
      }
      .avatar-summary-meta {
        max-width: min(48vw, 160px);
        gap: 6px;
      }
      .avatar-summary-state {
        padding: 5px 9px;
        font-size: 10px;
      }
      .avatar-pb {
        min-width: 38px;
      }
      .avatar-pb strong {
        font-size: 20px;
      }
      .pending-avatar-card {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        gap: 8px;
        padding: 9px 10px;
      }
      .pending-avatar-card strong {
        font-size: 16px;
      }
      .pending-avatar-status {
        min-width: 86px;
        padding: 7px 12px;
        font-size: 12px;
      }
      .historical-avatars {
        margin-top: 12px;
      }
      .historical-search {
        grid-template-columns: minmax(0, 1fr);
      }
      .historical-search-count {
        justify-self: start;
      }
      .historical-avatar-button {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
      }
      .historical-rank {
        min-width: 38px;
        font-size: 16px;
      }
      .historical-avatar-copy strong {
        font-size: 19px;
      }
      .historical-avatar-pb {
        min-width: 52px;
      }
      .historical-avatar-pb strong {
        font-size: 22px;
      }
      .alias-profile-stage {
        gap: 12px;
      }
      .game-back-button {
        width: 100%;
        min-height: 48px;
      }
      .alias-profile-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
      }
      .alias-profile-avatar-card {
        width: min(168px, 100%);
        justify-self: center;
      }
      .profile-image-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .alias-profile-title h1 {
        font-size: 34px;
      }
      .alias-profile-total {
        width: 100%;
        min-width: 0;
        justify-items: start;
      }
      .alias-profile-total strong {
        font-size: 34px;
      }
      .alias-award-grid {
        grid-template-columns: 1fr;
      }
      .alias-award-card {
        min-height: 118px;
        padding: 16px 14px 16px 86px;
      }
      .alias-award-card-image {
        max-width: 100%;
        min-height: 0;
        padding: 0;
      }
      .alias-award-card strong {
        font-size: 20px;
      }
      .claimed-avatar-list li {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
      }
      .claimed-avatar-list li .pill {
        grid-column: 2;
        justify-self: start;
      }
      .avatar-request-box {
        margin-top: 12px;
        padding-top: 12px;
      }
      .profile-stat.wide,
      .profile-stat.sentence {
        grid-column: auto;
      }
      .world-stage,
      .hall-stage,
      .rules-stage,
      .faq-stage {
        min-height: calc(100svh - 138px);
        padding: 16px 10px;
        border-left: 0;
      }
      .world-copy,
      .hall-copy,
      .rules-copy {
        padding: 14px;
      }
      .world-stage h1,
      .hall-stage h1,
      .rules-stage h1 {
        font-size: 34px;
        line-height: 1;
      }
      .world-actions {
        gap: 10px;
        margin-top: 10px;
      }
      .world-card {
        min-height: 78px;
        padding: 10px;
      }
      .world-card strong {
        font-size: 16px;
        line-height: 1.12;
      }
      .faq-stage {
        grid-template-columns: 1fr;
        gap: 0;
        align-content: start;
      }
      .faq-scroll {
        max-height: none;
        overflow: visible;
        padding: 0;
      }
      .faq-parchment {
        gap: 13px;
        padding: 15px;
        border-radius: 7px;
      }
      .faq-heading h2 {
        font-size: 28px;
      }
      .faq-group h2 {
        font-size: 16px;
      }
      .faq-item {
        padding: 10px;
      }
      .faq-item h3 {
        font-size: 15px;
      }
      .faq-item p {
        font-size: 13px;
      }
      .rules-stage img {
        border-radius: 6px;
      }
      .boq-dialog {
        width: calc(100% - 22px);
        padding: 16px;
      }
    }
    @media (max-width: 420px) {
      .install-banner:not([hidden]) {
        grid-template-columns: 1fr;
      }
      .install-actions {
        grid-template-columns: 1fr 1fr;
      }
    }
