@font-face {
  font-family: Geologica;
  src: url('/fonts/Geologica-wght400-static.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geologica;
  src: url('/fonts/Geologica-wght500-static.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Geologica;
  src: url('/fonts/Geologica-wght600-static.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #121417;
  --white: #fff;
  --red: #d8232a;
  --paper: #f4f3f0;
  --surface: #fff;
  --text: #121417;
  --muted: #6e727a;
  --line: #e3e4e7;
  --field: #f1f2f4;
  --tile: #f4f3f0;
  --cta-bg: #121417;
  --cta-text: #fff;
  --ring-ink: #121417;
  --ring-track: #e2e0db;
  --focus: #3753bc;
  --safe-top: var(--tg-content-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  font-family: Geologica, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --surface: #1b1d21;
  --text: #f7f7f5;
  --muted: #b3b5b9;
  --line: #393b40;
  --field: #282b31;
  --tile: #27292e;
  --cta-bg: #f4f3f0;
  --cta-text: #121417;
  --ring-ink: #fff;
  --ring-track: #41434a;
  --focus: #afbefa;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-padding-bottom: 110px; }
body { margin: 0; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.5; }
body.in-telegram { background: var(--surface); }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea, a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b { font-weight: 500; }
h1 { font-size: clamp(23px, 6.1vw, 29px); line-height: 1.18; letter-spacing: -.7px; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.3px; }
h3 { font-size: 16px; line-height: 1.35; }

.sheet {
  width: calc(100% - 16px);
  max-width: 480px;
  min-height: calc(var(--app-viewport-height, 100dvh) - 10px);
  margin: 10px auto 0;
  padding: max(12px, var(--safe-top)) 20px 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  overflow-wrap: break-word;
}
.in-telegram .sheet { width: 100%; margin-top: 0; min-height: var(--app-viewport-height, 100dvh); border: 0; border-radius: 0; }
.sheet > :last-child:not(.sticky-actions) { margin-bottom: max(22px, var(--safe-bottom)); }
.brandbar { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 -2px 16px; }
.brand-mark { width: 24px; height: 24px; flex: 0 0 24px; }
.brand-name { color: var(--muted); font-size: 11px; letter-spacing: -.15px; }
.brand-lockup { width: 185px; height: 40px; object-fit: contain; object-position: left center; }
.brand-dark { display: none; }
html[data-theme='dark'] .brand-light { display: none; }
html[data-theme='dark'] .brand-dark { display: block; }
html[data-theme='dark'] .brand-mark { background: #f4f3f0; border-radius: 5px; }
.close-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; margin-left: auto; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 23px; }
.close-button svg { width: 18px; height: 18px; }
.page-head { display: grid; gap: 8px; margin-bottom: 20px; }
.eyebrow { color: var(--muted); font-size: 12px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.55; }
.meta + .meta { margin-top: 3px; }
.match-summary { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.ring { width: 64px; height: 64px; flex: 0 0 64px; overflow: visible; }
.ring-track { fill: none; stroke: var(--ring-track); }
.ring-progress { fill: none; stroke: var(--ring-ink); stroke-linecap: round; }
.summary-count { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.4px; }
.summary-free { color: var(--muted); font-size: 12px; margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.4; }
.chip.selected, .chip[aria-pressed='true'] { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-text); }
.chip:has(input:checked) { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-text); }
.chip input[type='radio'] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.chips > label.chip { min-height: 44px; height: 44px; }
.day-strip, .time-strip { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px 3px 10px; scroll-snap-type: x proximity; }
.day-strip > button, .time-strip > button { flex: 0 0 auto; min-width: 72px; min-height: 44px; scroll-snap-align: start; }
.form-step { min-width: 0; display: grid; gap: 16px; }
.form-step fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.form-step legend { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.search-results small { display: block; margin-top: 4px; }
.receipt-preview object { display: block; width: 100%; height: min(60dvh, 500px); min-height: 220px; }
.primary, .secondary, .text-button, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 14px; text-align: center; text-decoration: none; font-weight: 500; line-height: 1.4; }
.primary { width: 100%; background: var(--cta-bg); color: var(--cta-text); }
.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.text-button { min-height: 44px; padding: 10px 12px; background: transparent; color: var(--text); font-size: 13px; }
.danger { background: transparent; color: var(--red); border-color: var(--line); }
html[data-theme='dark'] .danger, html[data-theme='dark'] .disputed, html[data-theme='dark'] .error { color: #ff787e; }
.primary svg, .secondary svg, .text-button svg, .danger svg { width: 18px; height: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button-row > * { flex: 1 1 120px; }
.sticky-actions { position: sticky; z-index: 10; bottom: 0; flex-shrink: 0; margin: auto -20px 0; padding: 14px 20px max(14px, var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.sticky-actions .meta, .sticky-actions .field-help { margin-top: 8px; text-align: center; }
.sticky-actions > .primary + .text-button { width: 100%; margin-top: 4px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 112px; padding: 15px 14px; border: 1px solid transparent; border-radius: 16px; background: var(--tile); color: var(--text); text-decoration: none; text-align: left; line-height: 1.4; }
.tile-icon { width: 21px; height: 21px; margin-bottom: 12px; color: var(--text); }
.tile-title { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tile-text { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 4px 0 18px; font-size: 15px; font-weight: 500; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--text); }
.payment-status { color: var(--muted); font-size: 11px; font-weight: 400; }
.disputed { color: var(--red); }
.section-label { margin: 22px 0 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.roster { margin-bottom: 22px; }
.roster-row { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.roster-row:last-child { border-bottom: 0; }
.roster-row > span:not(.bib):not(.free-dot) { min-width: 0; overflow-wrap: anywhere; }
.roster-row .payment-status { margin-left: auto; text-align: right; }
.bib { display: inline-block; flex: 0 0 10px; width: 10px; height: 12px; border-radius: 3px; background: var(--line); }
.bib.red { background: var(--red); }
.bib.ink { background: var(--ring-ink); }
.free-dot { display: inline-block; flex: 0 0 13px; width: 13px; height: 13px; border: 1.5px dashed var(--muted); border-radius: 50%; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; margin: 4px 0 24px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, label.field > span:first-child { color: var(--muted); font-size: 12px; line-height: 1.4; }
.span-2 { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { min-height: 92px; resize: vertical; }
input[type='checkbox'], input[type='radio'] { width: 20px; min-height: 20px; accent-color: var(--cta-bg); }
input[type='file'] { font-size: 12px; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--red); }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.5; }
.search-row { display: flex; gap: 8px; align-items: stretch; }
.search-row input { flex: 1; }
.search-row button { flex: 0 0 auto; }
.search-results { display: grid; gap: 6px; margin-top: 4px; }
.search-results button { min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--tile); color: var(--text); text-align: left; font-size: 12px; line-height: 1.45; }
.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.pass-grid textarea { font-size: 14px; }
.notice, .error { margin: 12px 0 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--tile); font-size: 12px; line-height: 1.6; }
.notice > p + p, .error > p + p { margin-top: 7px; }
.error { color: var(--red); border-color: currentColor; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: var(--muted); font-size: 13px; }
.loading::before { content: ''; width: 17px; height: 17px; border: 2px solid var(--line); border-top-color: var(--ring-ink); border-radius: 50%; animation: loading-turn 1s linear infinite; }
.muted { color: var(--muted); }

.payment-details { padding: 17px; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--tile); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.amount { margin: 14px 0 6px; font-size: 36px; line-height: 1.2; letter-spacing: -1px; font-weight: 500; }
.upload-label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 15px; margin: 16px 0 8px; border: 1px dashed var(--muted); border-radius: 13px; color: var(--text); font-size: 13px; cursor: pointer; }
.upload-label:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.upload-label.primary { color: var(--cta-text); border-style: solid; }
.receipt-file { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.sticky-actions:has(.receipt-file:focus-visible) .upload-label { outline: 2px solid var(--focus); outline-offset: 3px; }
.dialog { padding: 17px; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--tile); }
.dialog p { margin: 8px 0 16px; color: var(--muted); font-size: 13px; }
.qr-image { display: block; width: min(240px, 100%); height: auto; margin: 24px auto 20px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.receipt-preview { margin: 14px 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--tile); }
.receipt-preview img { display: block; width: 100%; max-height: 500px; object-fit: contain; }
.receipt-preview iframe { display: block; width: 100%; height: min(60dvh, 500px); min-height: 220px; border: 0; background: #fff; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.receipt-actions > * { flex: 1 1 140px; }
.organizer-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 18px; color: var(--muted); font-size: 12px; }
.player-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.player-button .payment-status { margin-left: auto; text-align: right; }
.bottom-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 12px; margin: 15px 0 20px; color: var(--muted); font-size: 12px; }
.bottom-links a, .bottom-links button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Organizer flow follows onboarding-mockup.html, block 3. */
.form-sheet { padding-top: max(12px, var(--safe-top)); }
.form-sheet .brandbar { margin-bottom: 30px; }
.form-sheet .brand-lockup { width: 166px; height: 36px; }
.form-sheet > :last-child:not(.sticky-actions) { margin-bottom: 0; }
.form-sheet #game-form { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.form-sheet .form-step { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding-bottom: 24px; }
.form-question { font-size: 27px; font-weight: 600; letter-spacing: -.022em; line-height: 1.08; margin: 0; }
.form-sheet .field > label, .form-sheet label.field > span:first-child, .form-sheet .field > span { font-size: 13px; }
.form-sheet input:not([type='radio']):not([type='checkbox']):not([type='hidden']), .form-sheet textarea, .form-sheet select {
  background: var(--field); border-color: transparent; border-radius: 16px; min-height: 50px; font-size: 16px; padding: 13px 14px;
}
.form-sheet input:focus-visible, .form-sheet textarea:focus-visible, .form-sheet select:focus-visible { outline-color: var(--text); outline-offset: 0; }
.sport-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 2px; }
.sport-tile { position: relative; height: 108px; border-radius: 21px; background: var(--field); color: var(--text); padding: 17px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; }
.sport-tile.selected, .sport-tile:has(input:checked) { background: var(--cta-bg); color: var(--cta-text); }
.sport-tile input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.sport-tile:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.sport-tile svg { width: 32px; height: 32px; }
.sport-label { font-size: 16px; font-weight: 500; }
.form-sheet .search-results { gap: 0; }
.form-sheet .search-results button { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 3px 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.form-sheet .search-results button::before { content: ''; grid-column: 1; grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 10px; background: var(--field); mask: none; }
.form-sheet .search-results button::after { content: '•'; grid-column: 1; grid-row: 1 / 3; justify-self: center; align-self: start; font-size: 27px; height: 32px; line-height: 27px; }
.form-sheet .search-results b { grid-column: 2; font-size: 15px; font-weight: 500; }
.form-sheet .search-results small { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.form-sheet .day-strip, .form-sheet .time-strip { margin-right: -20px; padding: 3px 20px 7px 3px; gap: 8px; scroll-padding-inline: 3px; }
.form-sheet .day-strip .day-option { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 62px; min-width: 62px; height: 64px; padding: 7px 2px; border: 0; border-radius: 16px; background: var(--field); color: var(--text); }
.day-caption { font-size: 10px; color: var(--muted); font-weight: 400; }
.day-number { font-size: 20px; font-weight: 600; line-height: 1.2; }
.form-sheet .time-option { min-width: 0; height: 44px; padding: 0 15px; border: 0; border-radius: 22px; background: var(--field); font-size: 15px; }
.form-sheet .day-option.selected, .form-sheet .time-option.selected { background: var(--cta-bg); color: var(--cta-text); }
.day-option.selected .day-caption { color: inherit; opacity: .7; }
.form-sheet .chips { margin: 0; }
.form-sheet .chip { height: 44px; padding: 0 15px; font-size: 13px; }
.form-sheet .chip input[type='checkbox'] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.repeat-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.repeat-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.repeat-custom > fieldset { grid-column: 1 / -1; }
.recurrence-summary { padding: 14px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; line-height: 1.5; }
.capacity-stepper { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 8px; }
.capacity-stepper button { flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--field); color: var(--text); font-size: 27px; font-weight: 400; }
.capacity-value { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 15px 14px; border-radius: 18px; background: var(--field); }
.price-card > span { color: var(--muted); font-size: 12px; }
.form-sheet .price-card input { width: 100%; background: transparent !important; padding: 0 !important; border: 0; border-radius: 0; min-height: 40px !important; font-size: 26px !important; font-weight: 600; letter-spacing: -.02em; }
.form-sheet .price-card input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-card .price-input { display: flex; align-items: center; gap: 6px; color: var(--text); }
.form-sheet .price-input input { width: 0; flex: 1; min-width: 0; }
.price-input > span { font-size: 25px; font-weight: 600; }
.form-sheet .pass-grid { margin: 0; }
.history-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.player-avatar { display: flex; flex: 0 0 36px; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--field); font-size: 14px; font-weight: 500; }
.history-name { flex: 1; min-width: 0; font-size: 15px; }
.history-name small { display: block; font-size: 12px; }
.history-person input { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; margin-left: auto; }
.form-nav { position: sticky; z-index: 10; bottom: 0; margin: auto -20px 0; padding: 12px 20px max(20px, var(--safe-bottom)); background: var(--surface); }
.form-progress { width: 100%; height: 3px; overflow: hidden; border-radius: 2px; background: var(--line); margin-bottom: 14px; }
.form-progress > span { display: block; height: 100%; background: var(--text); border-radius: 2px; }
.form-nav-row { display: flex; align-items: center; gap: 12px; }
.form-back { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 22px; }
.form-step-name { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.3; }
.form-next { flex: 0 0 auto; min-height: 44px; padding: 0 23px; border: 0; border-radius: 24px; background: var(--cta-bg); color: var(--cta-text); font-size: 15px; font-weight: 500; white-space: nowrap; }
.form-next:disabled { background: var(--field); color: var(--muted); opacity: 1; }
.created-screen { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.created-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.preview-art { position: relative; min-height: 150px; padding: 22px; background: var(--field); }
.preview-sport { font-size: 27px; font-weight: 600; letter-spacing: -.02em; padding-right: 75px; }
.preview-meta { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 6px; padding-right: 75px; }
.preview-ring { position: absolute; width: 68px; height: 68px; right: 18px; top: 22px; }
.preview-ring text { fill: var(--text); font-family: Geologica, sans-serif; font-size: 18px; font-weight: 600; }
.preview-caption { padding: 16px 18px; font-size: 13px; line-height: 1.6; }
.form-sheet .sticky-actions > .primary { border-radius: 26px; }
.form-sheet .sticky-actions > .text-button { width: 100%; }

@keyframes loading-turn { to { transform: rotate(360deg); } }

@media (hover: hover) {
  button:not(:disabled):hover, a.tile:hover { filter: brightness(.96); }
  .text-button:hover, .close-button:hover { background: var(--tile); }
}

@media (max-width: 350px) {
  .sheet { padding-left: 15px; padding-right: 15px; }
  .sticky-actions { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
  .form-nav { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
  .form-next { padding-left: 18px; padding-right: 18px; font-size: 14px; }
  .form-sheet .day-strip, .form-sheet .time-strip { margin-right: -15px; padding-right: 15px; }
  .brand-name { font-size: 10px; }
  .tiles { gap: 8px; }
  .tile { padding: 13px 11px; }
  .tile-title { font-size: 13px; }
  .pass-grid { grid-template-columns: 1fr; }
}

@media (max-height: 480px) {
  .brandbar { margin-bottom: 8px; min-height: 38px; }
  .page-head { margin-bottom: 13px; gap: 5px; }
  .match-summary { margin-bottom: 16px; }
  .sticky-actions { padding-top: 10px; }
}

@media (min-width: 540px) {
  body { padding: 24px 0; }
  .sheet { margin-top: 0; min-height: calc(var(--app-viewport-height, 100dvh) - 48px); border-bottom: 1px solid var(--line); border-radius: 24px; }
  .sticky-actions { border-radius: 0 0 24px 24px; }
  body.in-telegram { padding: 0; }
  .in-telegram .sheet { border-radius: 0; }
  .in-telegram .sticky-actions { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
