.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--panel); color: var(--ink); padding: 12px; border: 3px solid var(--focus); }
.skip-link:focus { top: 10px; }
.menu-ready #hero, .menu-ready #modes, .menu-ready #meta-bar, .menu-ready #screen-menu > .wrap > .section { display: none !important; }
.menu-ready .menu { padding-top: 0; }
.menu-shell { max-width: 880px; margin: 0 auto; padding: 30px 0 20px; }
.arena-feature { position: relative; isolation: isolate; min-height: 330px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 8px; overflow: hidden; border-radius: 26px; padding: 28px 30px 0; margin-bottom: 20px; color: #f4f5fc; background: linear-gradient(90deg, rgba(12,24,42,.96), rgba(12,24,42,.55)), url('../img/arena.webp') center / cover, #14273b; border: 1px solid #314c60; }
.arena-feature::after { content: ''; position: absolute; z-index: -1; width: 350px; height: 350px; border: 1px solid #69c5cc55; border-radius: 50%; right: -90px; top: -150px; box-shadow: 0 0 0 35px #69c5cc0a, 0 0 0 70px #69c5cc06; pointer-events: none; }
.arena-copy { position: relative; z-index: 2; align-self: center; padding-bottom: 28px; }
.arena-copy .kicker { color: #9fe7dd; font-size: .7rem; letter-spacing: .15em; }
.arena-copy h2 { font-family: 'Russo One', sans-serif; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.13; letter-spacing: -.025em; margin: 10px 0 14px; }
.arena-copy > p:not(.kicker) { color: #c8d7e7; font-size: .9rem; line-height: 1.6; }
.arena-feature .arena-customize { background: #a5f1df; border-color: #a5f1df; color: #102e35; min-height: 48px; margin-top: 8px; font-weight: 900; }
.arena-cast { align-self: end; min-width: 0; display: grid; justify-items: center; position: relative; z-index: 1; }
.arena-cast > .cast-portrait { width: min(100%, 300px); height: 310px; border-radius: 100px 100px 0 0; background: linear-gradient(150deg, #44648255, #20364b11); border-color: #80d8d733; border-bottom: 0; }
.arena-name { position: absolute; bottom: 16px; left: 12px; right: 12px; display: block; padding: 9px 13px; color: #fff; background: #101e33eb; border-radius: 10px; border: 1px solid #6da4ab66; font-weight: 900; }
.arena-name small { display: block; font-size: .72rem; color: #b9ccda; font-weight: 500; margin-top: 3px; }
.arena-stamp { position: absolute; top: 20px; right: 18px; transform: rotate(7deg); color: #cfe9e8; opacity: .7; font-size: .55rem; letter-spacing: .17em; line-height: 1.2; text-align: center; }
.arena-stamp b { font-size: .8rem; }
.hub-masthead { margin: 12px 0 28px; }
.hub-masthead h1 { font-family: 'Russo One', sans-serif; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.03em; }
.hub-masthead .hint { font-size: 1rem; }
.menu-shell:not([data-route="home"]) .hub-masthead { display: none; }
.mode-choice, .multiplayer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode-tile { display: flex; align-items: center; gap: 14px; padding: 24px; min-height: 150px; width: 100%; background: var(--panel); color: var(--ink); border: 2px solid var(--line); border-radius: 20px; text-align: left; cursor: pointer; box-shadow: var(--card-shadow); font: inherit; }
.mode-tile:hover { border-color: var(--accent); }
.mode-tile > span:nth-child(2) { flex: 1; min-width: 0; }
.mode-tile b, .mode-tile .cta-label { font-family: 'Russo One', sans-serif; font-size: 1.25rem; display: block; }
.mode-tile span span, .mode-tile .cta-sub { display: block; font-size: .92rem; line-height: 1.5; margin-top: 8px; color: var(--muted); font-weight: 400; }
.tile-icon { font-size: 2.4rem; color: var(--accent); }
.mode-choice .mode-tile:first-child { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.quick-tile { flex-direction: column; align-items: flex-start; justify-content: center; box-shadow: var(--card-shadow); background: var(--panel); color: var(--ink); }
.hub-heading { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 18px; }
.hub-heading h2 { margin: 0; font-size: 1.6rem; }
.hub-heading .btn { min-height: 44px; }
.hub-utilities { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
.hub-utilities .btn { flex: 1 1 130px; min-height: 48px; background: var(--panel); color: var(--ink); }
.journey-feature { padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--card-shadow); }
.journey-feature h3 { font-family: 'Russo One', sans-serif; margin: 6px 0 14px; font-size: 1.4rem; }
.journey-feature p { line-height: 1.6; }
.journey-feature .btn { margin: 8px 8px 0 0; min-height: 48px; }
.hub-ranked { margin-top: 18px; min-height: 48px; }
.hub-resume { color: var(--muted); margin-top: 20px; }
.menu-shell .card { margin: 0; }
.menu-shell #hub-friends-name { margin-top: 18px; max-width: 420px; }
.menu-shell input, .menu-shell select { min-height: 48px; max-width: 100%; }
#hero-form { max-width: 560px; }
#hero-form .field-label { display: block; margin: 18px 0 8px; }
.hero-emblem { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 20px; border: 2px solid currentColor; font-size: 2.6rem; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.hero-emblem svg { width: 72px; height: 72px; border-radius: 16px; }
.milestone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.milestone { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--panel); }
.milestone h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.milestone p { color: var(--muted); font-size: .9rem; }
.milestone > span { font-size: 1.7rem; }
.milestone b { font-size: .85rem; color: var(--muted); }
.milestone.earned { border-color: var(--accent); }
.milestone.earned > span, .milestone.earned b { color: var(--accent); }
.hub-invite { margin-bottom: 20px; }
.hub-invite .invite-head { color: var(--ink); }
.cup-rounds { display: grid; gap: 20px; margin-top: 24px; }
.cup-round { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cup-round h3 { grid-column: 1 / -1; }
.cup-match { background: var(--panel); padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.cup-match .btn { display: block; width: 100%; min-height: 48px; margin: 8px 0; white-space: normal; overflow-wrap: anywhere; }
.cup-champion { color: var(--accent); font-size: 1.25rem; font-weight: 800; }
#cup-players { display: block; width: 100%; resize: vertical; margin: 8px 0; }
#tournament-desk details { margin-top: 20px; }
#tournament-desk summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 800; }
.menu-shell [hidden] { display: none !important; }
@media (max-width: 560px) {
  .arena-feature { min-height: 260px; padding: 20px 16px 0; grid-template-columns: 1.2fr .9fr; border-radius: 20px; gap: 0; }
  .arena-copy { padding-bottom: 20px; }
  .arena-copy h2 { font-size: 1.55rem; }
  .arena-copy > p:not(.kicker) { font-size: .76rem; }
  .arena-copy .kicker { font-size: .58rem; }
  .arena-feature .arena-customize { font-size: .75rem; padding: 8px 10px; white-space: normal; text-align: left; }
  .arena-cast > .cast-portrait { height: 245px; width: 100%; }
  .arena-name { font-size: .72rem; left: 4px; right: 2px; bottom: 10px; padding: 7px; }
  .arena-name small { font-size: .6rem; }
  .arena-stamp { display: none; }
  .mode-choice, .multiplayer-grid { grid-template-columns: 1fr; }
  .mode-tile { min-height: 112px; padding: 18px; }
  .menu-shell { padding-top: 14px; }
  .hub-masthead { margin-bottom: 22px; }
  .milestone-grid { grid-template-columns: 1fr; }
  .hub-utilities .btn { flex-basis: 42%; }
}
@media (prefers-reduced-motion: reduce) { .menu-shell * { scroll-behavior: auto; transition: none; } }
