/* Nolja game lobby (shared by tennis and kart) — soft paper, lavender, and a little sunshine.
   Each game keeps only its stage (3D canvas) styles in its own css. */
:root {
  --cream: #faf8f2;
  --paper: #fffefa;
  --forest: #33423f;
  --forest-soft: #f0edf9;
  --lime: #f5d879;
  --lavender: #8176db;
  --lavender-dark: #5f54b2;
  --peach: #f2a6ba;
  --ink: #34413f;
  --muted: #747772;
  --line: #e6e3dc;
  --panel: #fffefa;
  --fg: #34413f;
  --accent: #8176db;
  --p1: #6e8de0;
  --p2: #d982a0;
  color-scheme: light;
}
html, body { background: var(--forest); color: var(--ink); word-break: keep-all; }
button, a, input, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button {
  min-height: 44px; background: transparent; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
button:hover { background: var(--forest-soft); border-color: #b5abd9; }
button:active { filter: brightness(.97); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--lavender-dark); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .5; }
button.primary { background: var(--lavender); color: white; font-size: 17px; border-radius: 14px; }
button.primary:hover { background: var(--lavender-dark); filter: none; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.small { color: var(--muted); line-height: 1.7; }
.text-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 2px; color: #6e736f; font-size: 13px; font-weight: 600; }
.text-button:hover { color: var(--lavender-dark); background: transparent; }
.text-button span { font-size: 21px; }
.eyebrow { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 1.9px; color: var(--lavender-dark); }
kbd { background: #f3f0e9; border-color: #e0ddd5; color: #74766f; border-radius: 5px; font: 11px system-ui; padding: 3px 6px; }

.lobby.overlay { display: block; padding: 0; overflow: auto; background: var(--cream); isolation: isolate; }
.club-header { height: 84px; max-width: 1440px; padding: 0 52px; margin: auto; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand-symbol { width: 36px; height: 36px; border-radius: 13px; background: var(--lavender); display: grid; place-items: center; color: white; transform: rotate(-8deg); }
.brand-symbol svg { height: 28px; width: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.brand-word { font: 900 36px/1 Arial, sans-serif; letter-spacing: -2.4px; }
.brand-dot { color: var(--lavender); }
.brand-tag { font: 700 8px/1.4 Arial, sans-serif; letter-spacing: 1.4px; border-left: 1px solid var(--line); padding-left: 12px; margin-left: 4px; color: #8b8c85; }
.club-nav { display: flex; gap: 20px; align-items: center; font-size: 13px; }
.club-nav a { color: var(--muted); text-decoration: none; }
.club-nav a:hover { color: var(--lavender-dark); }
.current-game { font-weight: 700; }
.nav-divider { height: 13px; width: 1px; background: #d9d9d0; }
.header-button { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-color: transparent; font-size: 12px; }
.header-button .icon { width: 17px; height: 17px; }
.header-button kbd { margin-left: 5px; }
.lobby-main { max-width: 1336px; margin: auto; padding: 32px 0 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; gap: 20px; }
.page-heading .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
.page-heading h1 { font-size: 27px; font-weight: 750; letter-spacing: -1.15px; margin: 9px 0 0; line-height: 1.4; }
.page-heading h1 > span { color: var(--lavender); }
.page-heading > .text-button { margin-bottom: 2px; font-size: 12px; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(355px, 1fr); gap: 24px; align-items: stretch; }

.game-feature { overflow: hidden; background: #eeeafa; border: 1px solid #e0dbea; border-radius: 26px; display: flex; flex-direction: column; position: relative; color: var(--ink); box-shadow: 0 7px 24px #4d426c05; }
.feature-copy { position: relative; padding: 25px 30px 16px; overflow: hidden; flex-shrink: 0; display: grid; grid-template-columns: .95fr 1.05fr; grid-template-rows: auto 1fr; column-gap: 0; min-height: 316px; background: radial-gradient(ellipse at 82% 74%, #f9f1e9 0, #f9f1e900 57%), #eeeafa; }
.feature-topline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; margin-bottom: 24px; }
.sport-badge { font: 700 9px Arial, sans-serif; letter-spacing: 1.25px; display: flex; align-items: center; gap: 8px; color: #6a608e; }
.sport-badge > span { width: 6px; height: 6px; background: var(--lavender); border-radius: 50%; }
.feature-edition { font: 9px Arial, sans-serif; letter-spacing: 1.2px; color: #9287a5; }
.feature-intro { grid-column: 1; align-self: center; position: relative; z-index: 1; padding: 0 0 15px; }
.feature-copy h2 { font-size: clamp(38px, 3.9vw, 55px); letter-spacing: -2.6px; font-weight: 850; line-height: 1.16; margin: 0 0 16px; color: #494568; }
.feature-copy h2 > span { display: block; font: 800 11px/1.5 Arial, sans-serif; letter-spacing: 2.5px; margin-top: 12px; color: #8a7eb5; }
.feature-intro > p { font-size: 12px; line-height: 1.75; color: #787385; margin: 0; }
.feature-note { display: inline-block; margin-top: 16px; padding: 6px 10px; border: 1px solid #d6cfe7; border-radius: 20px; color: #75679c; font-size: 10px; background: #ffffff57; }
.monster-team { grid-column: 2; grid-row: 2; display: block; width: calc(100% + 20px); max-height: 270px; height: 100%; min-height: 240px; object-fit: contain; object-position: center bottom; align-self: end; margin: 0 0 -5px -8px; filter: drop-shadow(0 9px 9px #9886a01a); }
.court-preview { position: relative; flex: 1; min-height: 250px; overflow: hidden; background: #b5d0bf; border-top: 1px solid #ffffff80; }
.preview-caption { position: absolute; top: 16px; left: 20px; z-index: 2; display: flex; align-items: center; gap: 7px; border-radius: 20px; background: #fffefaed; padding: 8px 12px; font: 600 9px Arial, "Malgun Gothic", sans-serif; letter-spacing: .7px; color: #4c655a; pointer-events: none; box-shadow: 0 2px 8px #3851450a; }
.live-dot { width: 5px; height: 5px; background: #7aa483; border-radius: 50%; }
.caption-divider { color: #b2baaa; margin: 0 3px; }
.preview-toggle { position: absolute; right: 14px; top: 12px; z-index: 3; min-height: 36px; min-width: 36px; border: 1px solid #ffffffb3; background: #fffefae6; color: #4c655a; border-radius: 50%; font-size: 15px; padding: 4px; }
.preview-toggle:hover { background: #fffefa; }
.court-watermark { position: absolute; bottom: 14px; right: 20px; z-index: 2; color: #fffefa; opacity: .8; font: 8px Arial, sans-serif; letter-spacing: 1.6px; pointer-events: none; }
.feature-perks { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 24px; background: #fffefa; color: #79796e; font-size: 10px; }
.feature-perks > span { display: flex; align-items: center; gap: 7px; }
.feature-perks .icon { height: 15px; width: 15px; color: #9280b8; }

.match-setup { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; box-shadow: 0 7px 24px #4d426c04; }
.setup-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.setup-heading h2 { font-size: 27px; letter-spacing: -1px; margin: 8px 0 0; font-weight: 750; }
.setup-heading .eyebrow { font: 700 9px Arial, sans-serif; letter-spacing: 1.8px; color: #9b91bc; }
.setup-ball-wrap { width: 52px; height: 52px; display: grid; place-items: center; background: #fff4ce; border-radius: 19px; transform: rotate(9deg); }
.setup-ball { width: 31px; height: 31px; fill: none; stroke: #a38c39; stroke-width: 1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.setup-group legend { font-size: 12px; font-weight: 700; padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.step-number { font: 600 10px Arial, sans-serif; color: var(--lavender); }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-options button { position: relative; text-align: left; padding: 17px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; border: 1px solid #e6e2e8; background: var(--paper); min-width: 0; min-height: 124px; }
.mode-options button > .icon { width: 24px; height: 24px; color: #9990b7; }
.mode-options strong { font-size: 14px; font-weight: 750; margin-top: 3px; line-height: 1.3; }
.mode-options button > span { font-size: 10px; white-space: nowrap; color: #88838b; font-weight: 400; }
.choice-dot { height: 14px; width: 14px; border: 1px solid #d5cfe2; border-radius: 50%; position: absolute; right: 13px; top: 17px; }
.mode-options button.on { border: 1.5px solid #9183c7; background: #f2eefb; color: #615287; box-shadow: 0 0 0 1px #9183c705; }
.mode-options button.on .icon { color: #8171b7; }
.mode-options button.on .choice-dot { border: 4px solid #9183c7; background: #f2eefb; }
.mode-options button:hover { border-color: #a596cf; background: #f6f3fb; }
.level-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; min-height: 34px; }
.level-options > span { font-size: 11px; color: #7e778a; }
.level-options .row { gap: 3px; }
.level-options button { min-height: 34px; padding: 5px 10px; font-size: 11px; border: 0; border-radius: 8px; color: #827a8c; font-weight: 500; }
.level-options button.on { background: #eee9f8; color: #68568e; font-weight: 750; }
.win-group { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 23px; }
.win-group legend { float: left; width: 100%; }
.win-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; clear: both; }
.win-options button { border: 1px solid #e6e2e8; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 51px; font: 600 20px Arial, sans-serif; border-radius: 12px; }
.win-options button span { font-size: 11px; font-weight: 400; color: var(--muted); }
.win-options button.on { background: #8176db; color: white; border-color: #8176db; }
.win-options button.on span { color: #f5f1ff; }
.field-hint { font-size: 11px; color: #8a8880; margin: 11px 0 0; }
.start-area { margin-top: auto; padding-top: 30px; text-align: center; }
.start-button.primary { display: flex; align-items: center; justify-content: center; gap: 19px; width: 100%; min-height: 56px; font-size: 15px; font-weight: 750; background: #8176db; color: white; border-radius: 14px; box-shadow: 0 5px 0 #6b61c2; margin-bottom: 5px; }
.start-button.primary:hover { background: #7569cf; box-shadow: 0 5px 0 #6257b8, 0 8px 18px #8176db20; }
.start-button .icon { width: 19px; height: 19px; }
.start-hint { display: block; font-size: 10px; color: #939087; margin-top: 14px; }
.start-hint kbd { font-size: 9px; padding: 2px 5px; margin-right: 4px; }

.connection-card { display: flex; align-items: center; gap: 17px; padding: 21px 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin-top: 23px; }
.connection-icon { display: grid; place-items: center; background: #f5eaf0; width: 46px; height: 46px; border-radius: 16px; color: #bb7d99; flex-shrink: 0; }
.connection-icon .icon { width: 25px; height: 25px; }
.connection-copy h2 { font-size: 14px; letter-spacing: -.3px; margin: 0 0 5px; font-weight: 700; }
.connection-copy p { font-size: 11px; color: var(--muted); margin: 0; }
.connection-actions { display: flex; align-items: center; margin-left: auto; gap: 24px; }
.connection-actions .text-button { font-size: 11px; }
.connect-button { display: flex; align-items: center; gap: 8px; border: 1px solid #c9beda; min-height: 44px; border-radius: 11px; padding: 8px 15px; font-size: 12px; color: #756294; }
.plus-icon { font: 20px Arial, sans-serif; font-weight: 400; }
.secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 13px; }
.club-details { min-width: 0; border-bottom: 1px solid var(--line); }
.club-details summary { min-height: 48px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 11px; color: var(--muted); padding: 0 5px; }
.club-details summary::-webkit-details-marker { display: none; }
.club-details summary > span { display: flex; align-items: center; gap: 9px; }
.club-details summary .icon { width: 16px; height: 16px; }
.chevron { transition: transform .18s; }
.club-details[open] .chevron { transform: rotate(180deg); }
.details-content { padding: 8px 5px 20px; }
.details-content > p { font-size: 12px; margin: 0 0 14px; }
.details-content .slot { border-top: 1px solid var(--line); font-size: 12px; }
.details-content .slot > div > div:first-child { font-size: 12px !important; }
.badge { color: white; font: 700 11px Arial, sans-serif; border-radius: 7px; padding: 4px 7px; }
.meter { height: 5px; background: #e9e7e3; }
.meter i { background: linear-gradient(90deg, #b0c89d, #f5d879, #e6a6a1); }
.slot .row > .small { font-size: 10px; }
.warn { background: #fcf1d5; border: 1px solid #ebd7a0; border-radius: 8px; color: #78551a; font-size: 12px; padding: 10px 12px; margin: 10px 0; }
.setting-title { font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.seg button { min-height: 40px; font-size: 12px; }
.seg button.on { color: white; background: var(--lavender); border-color: var(--lavender); }
.gfx-info { margin: 10px 0 16px; font-size: 11px; overflow-wrap: anywhere; }
label.set { font-size: 12px; gap: 12px; margin: 14px 0; }
label.set span { width: 44px; text-align: right; font-size: 11px; }
input[type=range] { accent-color: var(--lavender); min-width: 40px; height: 20px; }
input[type=checkbox] { accent-color: var(--lavender); height: 17px; width: 17px; margin: 0; }
.guide-setting { padding-top: 8px; }
.club-footer { display: flex; align-items: center; gap: 28px; padding: 13px 0 20px; font-size: 10px; color: #8a8b80; }
.club-footer .text-button { font-size: 11px; }
.footer-signoff { margin-left: auto; font: 8px Arial, sans-serif; letter-spacing: 1.5px; }

.guide-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); color: var(--ink); padding: 32px; box-shadow: 0 25px 100px #302c4c40; }
.guide-dialog::backdrop { background: #39344d99; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.dialog-heading h2 { font-size: 27px; letter-spacing: -1px; margin: 10px 0; }
.close-button { padding: 4px; min-width: 44px; border-radius: 50%; font-size: 26px; font-weight: 400; }
.guide-dialog > .sub { font-size: 13px; line-height: 1.8; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.guide-steps > div > span { color: var(--lavender); font: 12px Georgia, serif; }
.guide-steps h3 { font-size: 13px; margin: 8px 0; }
.guide-steps p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.keyboard-guide { background: #f2edf8; border-radius: 16px; padding: 18px; }
.keyboard-guide h3 { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 0 0 15px; }
.keyboard-players { display: flex; flex-direction: column; gap: 13px; font-size: 11px; }
.keyboard-players .badge { margin-right: 10px; }
.keyboard-players kbd { background: var(--paper); margin: 0 3px 0 7px; display: inline-block; }
.keyboard-guide > p { font-size: 11px; line-height: 1.7; margin: 16px 0 0; }

/* A collectible roster, with the live court still visible behind the friends. */
.overlay.sel { background: linear-gradient(#fbf8f3fc, #f6f1fbf2 31%, #f4eefb21 57%, #4942621c 70%, #554a75d9); padding: 28px 4vw; overflow: auto; }
.selection-top { max-width: 1320px; width: 100%; margin: 0 auto; flex: 0 0 auto; }
.selection-top > .eyebrow { text-align: center; font-size: 10px; color: #9a8db5; }
.seltitle { color: #514764; font-size: 32px; text-shadow: none; margin: 10px 0 6px; letter-spacing: -1.2px; }
.seltitle > span { color: var(--peach); }
.selection-subtitle { text-align: center; color: #8a7c9b; margin: 0 0 15px; font-size: 12px; }
.roster { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 900px; max-height: 298px; margin: 0 auto; padding: 13px 11px 16px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b6a5cc #eee6f3; scrollbar-gutter: stable; scroll-padding: 13px; }
.roster::-webkit-scrollbar { width: 7px; }
.roster::-webkit-scrollbar-track { background: #eee6f3; border-radius: 10px; }
.roster::-webkit-scrollbar-thumb { background: #b6a5cc; border-radius: 10px; border: 1px solid #eee6f3; }
.tile { border: 2px solid #e3dce9; background: #fffefa; border-radius: 18px; padding: 8px 7px 10px; width: 100%; min-width: 0; min-height: 125px; box-shadow: 0 5px 0 #e9e0e97a; transition: background .2s, box-shadow .2s, border-color .2s; color: #655875; }
.tile:nth-child(8n+1) { background: #fff7dc; }
.tile:nth-child(8n+2) { background: #eef6ff; }
.tile:nth-child(8n+3) { background: #fff1e5; }
.tile:nth-child(8n+4) { background: #f0f5e7; }
.tile:nth-child(8n+5) { background: #faedf5; }
.tile:nth-child(8n+6) { background: #efeefa; }
.tile:nth-child(8n+7) { background: #eaf6f2; }
.tile:nth-child(8n+8) { background: #f9eded; }
.tile:hover { border-color: #b6a4ce; box-shadow: 0 5px 0 #d7c9e5, 0 8px 20px #67518b12; }
.tile canvas { width: 76px; height: 76px; max-width: 100%; object-fit: contain; }
.tile .tn { font-size: 13px; font-weight: 750; margin-top: 5px; }
.tile .character-type { display: block; margin-top: 5px; color: #8d7e99; font-size: 10px; letter-spacing: .15px; }
.tile.p1 { border-color: var(--p1); box-shadow: 0 5px 0 #6e8de04d; }
.tile.p2 { border-color: var(--p2); box-shadow: 0 5px 0 #d982a04d; }
.tile.p1.p2 { border-color: #ab84c3; box-shadow: 0 5px 0 #ab84c34d; }
.tg { color: white; padding: 3px 7px; font-size: 10px; border-radius: 8px; top: -10px; }
.selection-hint { margin-top: 10px; }
.roster-scroll-hint { display: block; margin-top: 8px; font-size: 10px; line-height: 1.5; color: #897496; }
.hint { background: #fffefad9; font-size: 11px; color: #8a7a99; padding: 7px 13px; border: 1px solid #e4dbe9; border-radius: 20px; }
.selbottom { gap: 24px; width: 100%; max-width: 1160px; align-self: center; flex: 0 0 auto; }
.selcard { border-radius: 22px; border: 1px solid #e8dded; background: #fffefaf5; padding: 18px 22px; box-shadow: 0 8px 35px #49345f24; }
.selcard .nm { font-size: 24px; color: #67557c; }
.selcard .st { font-size: 12px; }
.selcard .small { margin-top: 10px; font-size: 11px; }
.selcard .row > button { min-width: 44px; }
.selcard .row > button:last-child { margin-left: auto; background: var(--lavender); border-color: var(--lavender); color: white; padding: 8px 24px; }
.selcard.rd { border-color: #a0b58c; box-shadow: 0 0 0 3px #afc49c38; }
.selcard.rd .st { color: #69915b; }
.selmsg { font-size: 16px; color: white; max-width: 190px; line-height: 1.6; text-shadow: 0 1px 6px #51436580; }
.selmid > button { background: #fffefaed; color: #75618c; border-color: transparent; font-size: 12px; }
.overlay:not(.lobby):not(.sel):not(.bottom) { background: #39324e87; backdrop-filter: blur(8px); }
.panel { border-color: var(--line); border-radius: 26px; box-shadow: 0 18px 80px #30253e4d; color: var(--ink); }
.pause-panel { width: min(490px, 100%); padding: 35px; }
.big { font-size: 32px; font-weight: 800; letter-spacing: -1.4px; margin: 16px 0; }
.pause-panel .sub { font-size: 14px; }
.modal-actions { justify-content: center; margin-top: 22px; gap: 10px; }
.modal-actions button { font-size: 13px; min-height: 46px; }
.modal-actions .primary { font-size: 14px; padding: 12px 23px; }
.pause-panel > .small { font-size: 11px; margin-top: 25px; }
.overlay.bottom { background: linear-gradient(#48355100 30%, #483551a6); padding-bottom: 4vh; }
.result-panel { width: min(660px, 100%); padding: 27px; }
.result-panel .sub { font-size: 15px; line-height: 1.8; }
.result-hint { margin-top: 17px; font-size: 11px; }
.game-toolbar { position: fixed; right: 18px; top: 18px; display: flex; gap: 8px; z-index: 5; }
.game-toolbar button { background: #fffefae8; border-color: #ded6e5; min-height: 40px; font-size: 12px; padding: 8px 14px; box-shadow: 0 4px 18px #5b436e17; }
.game-toolbar[hidden] { display: none; }

@media (min-width: 1300px) {
  .roster { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 1180px; max-height: 318px; }
}
@media (min-width: 1300px) and (min-height: 701px) {
  .roster-scroll-hint { display: none; }
}
@media (min-width: 1550px) {
  .lobby-main { padding-top: 42px; }
  .feature-copy { min-height: 330px; }
  .court-preview { min-height: 285px; }
  .match-setup { padding: 34px; }
  .mode-options button { min-height: 132px; }
  .setup-heading { margin-bottom: 35px; }
  .start-area { padding-top: 35px; }
}
@media (max-width: 1439px) {
  .lobby-main { margin: 0 52px; }
}
@media (max-width: 1150px) {
  .club-header { padding: 0 32px; gap: 35px; height: 76px; }
  .lobby-main { margin: 0 32px; padding-top: 28px; }
  .page-heading h1 { font-size: 24px; }
  .lobby-grid { gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); }
  .feature-copy { padding: 23px 24px 16px; min-height: 308px; }
  .feature-edition { display: none; }
  .feature-copy h2 { font-size: 43px; letter-spacing: -2px; }
  .feature-copy h2 > span { font-size: 9px; letter-spacing: 1.7px; }
  .monster-team { min-height: 220px; max-height: 260px; width: calc(100% + 32px); margin-left: -13px; }
  .feature-intro > p { font-size: 11px; }
  .feature-note { font-size: 9px; padding: 5px 8px; }
  .match-setup { padding: 27px 23px; }
  .feature-perks { padding: 17px 18px; gap: 9px; font-size: 9px; }
  .feature-perks > span { gap: 5px; }
  .feature-perks .icon { width: 13px; height: 13px; }
  .connection-card { padding: 19px 21px; }
  .connection-actions { gap: 16px; }
  .footer-signoff { display: none; }
  .tile { min-height: 125px; padding: 8px 5px 10px; border-radius: 17px; }
  .tile canvas { width: 76px; height: 76px; }
  .tile .tn { font-size: 12px; }
}
@media (max-width: 900px) {
  .brand-tag { display: none; }
  .club-header { gap: 28px; padding: 0 24px; }
  .lobby-main { margin: 0 24px; }
  .page-heading h1 { font-size: 22px; }
  .lobby-grid { grid-template-columns: minmax(0, 1.2fr) minmax(305px, 1fr); gap: 16px; }
  .feature-copy { padding: 22px 20px 15px; min-height: 300px; }
  .feature-copy h2 { font-size: 37px; letter-spacing: -1.8px; }
  .feature-copy h2 > span { letter-spacing: 1.1px; font-size: 8px; }
  .sport-badge { font-size: 8px; letter-spacing: .8px; }
  .monster-team { width: calc(100% + 35px); margin-left: -9px; min-height: 207px; }
  .feature-intro > p { font-size: 10px; }
  .feature-note { display: none; }
  .feature-perks { flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
  .feature-perks > span:first-child { flex-basis: 100%; }
  .match-setup { padding: 25px 20px; }
  .mode-options { gap: 8px; }
  .mode-options button { padding: 15px 11px; min-height: 119px; }
  .mode-options button > span { font-size: 10px; white-space: normal; }
  .connection-copy p { font-size: 10px; }
  .overlay.sel { padding: 25px 20px; }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 580px; max-height: 250px; gap: 10px; }
  .tile { min-height: 107px; padding: 7px 5px 9px; }
  .tile canvas { width: 66px; height: 66px; }
  .selection-subtitle { margin-bottom: 10px; }
  .roster-scroll-hint { display: block; }
  .selbottom { gap: 14px; margin-top: 24px; }
  .selcard { padding: 14px; }
  .selcard .nm { font-size: 21px; }
  .selcard .st { font-size: 11px; }
  .selmsg { font-size: 14px; max-width: 160px; }
}
@media (max-width: 700px) {
  .club-header { height: 72px; padding: 0 20px; }
  .brand-word { font-size: 32px; }
  .brand-symbol { width: 32px; height: 32px; border-radius: 11px; }
  .club-nav { display: none; }
  .header-button span { display: none; }
  .header-button { gap: 3px; padding: 7px; }
  .lobby-main { margin: 0 18px; padding-top: 25px; }
  .page-heading { align-items: center; gap: 12px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 21px; max-width: 250px; line-height: 1.5; }
  .page-heading .eyebrow { font-size: 7px; letter-spacing: 1.4px; }
  .page-heading > .text-button { font-size: 10px; white-space: nowrap; gap: 5px; }
  .lobby-grid { display: flex; flex-direction: column; gap: 18px; }
  .game-feature, .match-setup { border-radius: 23px; }
  .feature-copy { padding: 23px 24px 16px; min-height: 300px; grid-template-columns: .94fr 1.06fr; }
  .feature-topline { margin-bottom: 20px; }
  .sport-badge { font-size: 8px; letter-spacing: 1px; }
  .feature-copy h2 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -2px; margin-bottom: 13px; }
  .feature-copy h2 > span { font-size: 8px; letter-spacing: 1.2px; margin-top: 10px; }
  .feature-intro > p { font-size: 11px; }
  .monster-team { min-height: 220px; max-height: 265px; width: calc(100% + 32px); margin: 0 0 -8px -11px; }
  .court-preview { flex: auto; height: 245px; min-height: 0; }
  .feature-perks { flex-wrap: nowrap; padding: 16px 17px; font-size: 9px; }
  .feature-perks > span:first-child { flex-basis: auto; }
  .feature-perks > span { gap: 5px; }
  .match-setup { padding: 25px; }
  .setup-heading { margin-bottom: 25px; }
  .setup-heading h2 { font-size: 25px; }
  .mode-options button { min-height: 118px; padding: 16px; }
  .mode-options button > span { font-size: 11px; }
  .setup-group legend { font-size: 13px; }
  .level-options { margin-top: 13px; }
  .level-options > span, .level-options button { font-size: 11px; }
  .level-options button { min-height: 36px; padding: 6px 12px; }
  .win-group { margin-top: 19px; padding-top: 23px; }
  .start-area { padding-top: 25px; }
  .field-hint { font-size: 11px; }
  .connection-card { padding: 18px; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
  .connection-copy { flex: 1; }
  .connection-copy h2 { font-size: 13px; }
  .connection-copy p { font-size: 11px; line-height: 1.6; }
  .connection-actions { width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .connection-actions .text-button { display: flex; }
  .connect-button { min-height: 44px; }
  .secondary-grid { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .club-details summary { min-height: 50px; font-size: 12px; }
  .club-footer { gap: 8px; align-items: flex-start; flex-direction: column; padding: 12px 0 24px; }
  .club-footer > span { font-size: 10px; }
  .club-footer .text-button { min-height: 36px; }
  .selection-top { margin-bottom: 18px; }
  .overlay.sel { padding: 22px 16px 18px; gap: 20px; }
  .seltitle { font-size: 24px; margin: 10px 0 8px; }
  .selection-subtitle { font-size: 10px; line-height: 1.7; margin: 0 0 9px; }
  .roster { gap: 9px; max-height: 230px; padding: 12px 9px 14px; }
  .tile { min-height: 98px; border-radius: 15px; padding: 7px 3px 8px; }
  .tile canvas { width: 58px; height: 58px; }
  .tile .tn { font-size: 11px; margin-top: 4px; }
  .tile .character-type { font-size: 8px; margin-top: 4px; }
  .selection-hint { margin-top: 9px; }
  .selection-hint .hint { font-size: 9px; line-height: 1.7; }
  .selbottom { grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; margin-top: 10px; }
  .selmid { grid-column: 1/-1; grid-row: 2; flex-direction: row; justify-content: space-between; padding: 0; }
  .selmsg { font-size: 12px; max-width: none; text-align: left; }
  .selcard { padding: 11px; border-radius: 16px; }
  .selcard .nm { font-size: 18px; margin: 0 3px; }
  .selcard .row { gap: 5px; }
  .selcard .st { font-size: 10px; }
  .selcard .row > button { padding: 6px 8px; min-width: 36px; min-height: 44px; font-size: 12px; }
  .selcard .row > button:last-child { padding: 6px 10px; }
  .selcard .small { font-size: 9px; line-height: 1.7; margin-top: 8px; }
  .guide-dialog { padding: 23px; }
  .dialog-heading h2 { font-size: 23px; }
  .guide-steps { grid-template-columns: 1fr; gap: 17px; margin: 22px 0; }
  .guide-steps h3 { display: inline; margin-left: 9px; }
  .guide-steps p { margin-top: 5px; }
  .keyboard-players { font-size: 10px; }
  .keyboard-players .badge { margin-right: 3px; }
  .keyboard-players kbd { margin-left: 4px; }
  .big { font-size: 27px; }
  .panel { padding: 25px 18px; }
  .result-panel .sub { font-size: 13px; }
  .game-toolbar { top: 10px; right: 10px; }
  .game-toolbar button { padding: 7px 10px; font-size: 11px; }
}
@media (max-width: 380px) {
  .feature-copy { padding-left: 20px; padding-right: 20px; }
  .feature-copy h2 { font-size: 34px; }
  .feature-intro > p { font-size: 10px; }
  .feature-perks { gap: 8px; font-size: 8px; padding: 15px 13px; }
  .feature-perks .icon { width: 12px; height: 12px; }
  .match-setup { padding: 24px 21px; }
  .tile { min-height: 96px; }
  .tile canvas { width: 56px; height: 56px; }
  .selcard { padding: 9px; }
  .selcard .nm { font-size: 17px; }
  .selcard .row > button { padding: 6px 7px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .overlay.sel { padding-top: 17px; padding-bottom: 17px; }
  .seltitle { font-size: 27px; margin-top: 7px; }
  .selection-subtitle { margin-bottom: 8px; font-size: 11px; }
  .roster { max-height: 230px; }
  .roster-scroll-hint { display: block; }
  .tile { min-height: 96px; padding: 6px 5px; }
  .tile canvas { width: 56px; height: 56px; }
  .selcard { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
