/* Shared visual system for player, organiser and platform-owner screens. */
:root {
  --bg: #0B1220;
  --panel: #131C2E;
  --panel-2: #1A2540;
  --border: #29364A;
  --line: var(--border);
  --text: #F4F6FB;
  --muted: #9DAAC0;
  --soft: #B6C1D3;
  --accent: #FF5722;
  --accent-ink: #FFFFFF;
  --green: #34D399;
  --radius-card: 18px;
  --radius-btn: 12px;
  --tabbar-h: 76px;
}
.startline-app { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.startline-app .page { padding: 0 16px 24px; }
.startline-app .card, .startline-app .list-row, .startline-app .row-card,
.startline-app .acc-card, .startline-app .p-stat, .startline-app .coin-card,
.startline-app .stat-box, .startline-app .match-card, .startline-app .readiness-player,
.startline-app .participation-status, .startline-app .t-format, .startline-app .t-count,
.startline-app .info-grid, .startline-app .p-hero, .startline-app .profile-hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.startline-app .card, .startline-app .match-card { margin-bottom: 14px; }
.startline-app .list-row, .startline-app .row-card { padding: 14px; gap: 12px; }
.startline-app .row-card .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.startline-app .row-title { font-size: 15px; line-height: 1.35; }
.startline-app .row-sub { line-height: 1.4; color: var(--muted); }
.startline-app .topbar { padding: 16px 16px 12px; }
.startline-app .topbar .title { font-size: 18px; }
.startline-app .topbar .back { width: 40px; height: 40px; border: 1px solid var(--border); }
.startline-app h1, .startline-app h2, .startline-app h3 { line-height: 1.25; overflow-wrap: anywhere; }
.startline-app .headline, .startline-app .feed-title, .startline-app .detail-title,
.startline-app .p-name, .startline-app .now-title { font-size: clamp(21px, 5.5vw, 26px); line-height: 1.22; }
.startline-app .section-label { font-size: 16px; line-height: 1.35; color: var(--text); text-transform: none; letter-spacing: 0; margin: 22px 0 10px; }
.startline-app .btn { min-height: 48px; border-radius: 12px; padding: 12px 16px; font-size: 15px; box-shadow: none; }
.startline-app .btn.small, .startline-app .mini-btn { min-height: 44px; border-radius: 10px; }
.startline-app .btn.ghost, .startline-app .btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.startline-app .btn.danger { background: transparent; color: #FF8E96; border: 1px solid #693844; }
.startline-app .btn-row { gap: 10px; }
.startline-app .field { margin: 0 0 16px; }
.startline-app .field label { display: block; font-size: 14px; line-height: 1.4; color: var(--soft); margin-bottom: 7px; }
.startline-app .field input, .startline-app .field select, .startline-app .field textarea,
.startline-app .search-row input, .startline-app .search-row select,
.startline-app .inline-form input, .startline-app .staff-form input, .startline-app .score-form input {
  border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  padding: 12px 14px; min-height: 48px; font-size: 16px; text-align: left;
}
.startline-app .field input[type="date"], .startline-app .field input[type="datetime-local"] { width: 100%; box-sizing: border-box; }
.startline-app .search-row { gap: 8px; }
.startline-app .chips { gap: 8px; }
.startline-app .chip { border: 1px solid var(--border); border-radius: 12px; min-height: 40px; padding: 9px 14px; }
.startline-app .chip.active { background: var(--accent); border-color: var(--accent); color: white; }
.startline-app .tabs-row { gap: 4px; padding: 4px; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.startline-app .tabs-row .t { border: 0; border-radius: 9px; padding: 10px 13px; white-space: nowrap; color: var(--muted); }
.startline-app .tabs-row .t.active { color: white; background: var(--accent); }
.startline-app .notice, .startline-app .error-banner { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.startline-app .notice { border: 1px solid #34455E; background: #17263A; color: var(--text); }
.startline-app .notice.warn { border-color: #66532C; background: #332C1E; color: #FFE2A1; }
.startline-app .error-banner { border: 1px solid #693844; background: #301E2B; }
.startline-app .tag { border-radius: 8px; font-size: 12px; padding: 5px 8px; letter-spacing: 0; }
.startline-app .now { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 0; }
.startline-app .now-in { border-radius: 17px; padding: 16px; }
.startline-app .now.glow::before { display: none; }
.startline-app .now-text { font-size: 14px; }
.startline-app .home-head { gap: 12px; padding-top: 16px; }
.startline-app .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.startline-app .hh-hello { font-family: var(--display); font-size: 21px; line-height: 1.25; }
.startline-app .home-team { margin-top: 14px; }
.startline-app .home-rating { margin-top: 12px; }
.startline-app .home-tournament { display: block; color: inherit; text-decoration: none; }
.startline-app .home .feat { margin-bottom: 0; }
.startline-app .quick3, .startline-app .quick4 { margin: 16px 0; border: 0; border-radius: 0; }
.startline-app .feat { overflow: hidden; border-radius: 18px; }
.startline-app .feat-body { padding: 14px 16px; }
.startline-app .feat-foot { padding-top: 12px; }
.startline-app .meta-row { gap: 10px 14px; font-size: 13px; line-height: 1.5; }
.cover.photo { position: relative; background: #172238; overflow: hidden; }
.cover.photo .game-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,10,20,.80),rgba(6,10,20,.18)); pointer-events: none; }
.cover.photo .cover-inner { position: relative; z-index: 1; }
.startline-app .cover.photo { min-height: 140px; }
.startline-app .cover-title { font-size: 23px; line-height: 1.25; }
.startline-app .tournament-cover { border-radius: 18px; margin: 14px 0; }
.startline-app .tournament-cover .detail-title { margin: 0; padding: 12px 0; color: white; }
.game-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.startline-app .tournament-row { display: block; overflow: hidden; padding: 0; }
.tournament-row > .game-art { height: 92px; object-fit: cover; }
.tournament-row-content { display: flex; align-items: center; gap: 12px; padding: 14px; }
.tournament-row-content .grow { min-width: 0; }
.startline-app .p-hero { overflow: hidden; padding-bottom: 16px; }
.startline-app .p-hero { padding-top: 0; }
.startline-app .p-hero > .cover.p-cover { display: block; min-height: 100px; border-radius: 0; }
.startline-app .p-hero .p-avatar { margin-top: -32px; position: relative; z-index: 2; }
.startline-app .p-hero .p-edit { top: 12px; right: 12px; border-radius: 12px; }
.startline-app .p-hero .p-facts { gap: 8px; flex-wrap: wrap; }
.team-rating-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.startline-app .p-stat { padding: 14px 10px; }
.startline-app .p-stat .v { font-size: 23px; }
.startline-app .acc-card { padding: 14px; }
.startline-app .acc-links { gap: 8px; }
.startline-app .participation-status, .startline-app .readiness-player { padding: 16px; }
.startline-app .participation-status h2, .startline-app .readiness-player h2 { font-size: 17px; }
.startline-app .member-row { padding: 12px 0; gap: 10px; }
.startline-app .member-actions { gap: 6px; flex-wrap: wrap; }
.startline-app .match-card { padding: 14px; }
.startline-app .match-line { gap: 10px; }
.startline-app .match-line .side { min-width: 0; flex: 1; }
.startline-app .match-line .nm { font-size: 14px; overflow-wrap: anywhere; }
.match-picks { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px; }
.pick-game + .pick-game { margin-top: 10px; }
.pick-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.pick-sides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pick-side { min-width: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.pick-side:last-child { justify-content: flex-end; text-align: right; }
.hero-pick { min-width: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.3; }
.match-picks:not(.compact) .pick-side { flex-direction: column; }
.hero-pick-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.hero-pick-text b { font-size: 12px; font-weight: 600; }
.hero-pick-text > span { font-size: 11px; color: var(--soft); }
.pick-side:last-child .hero-pick { justify-content: flex-end; }
.hero-portrait { width: 26px; height: 22px; object-fit: cover; border-radius: 4px; flex: none; }
.hero-placeholder { min-width: 26px; height: 22px; border-radius: 4px; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; flex: none; }
.match-picks.compact { margin: 0; padding: 4px 6px; }
.compact .pick-label { margin: 0 0 2px; font-size: 9px; line-height: 11px; }
.compact .pick-sides { gap: 5px; }
.compact .pick-side { flex-wrap: nowrap; gap: 1px; }
.compact .hero-portrait, .compact .hero-placeholder { width: 14px; min-width: 14px; height: 17px; border-radius: 3px; font-size: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.startline-app .tabbar {
  left: 50%; right: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px;
  border: 1px solid var(--border); border-bottom: 0; border-radius: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.startline-app .tab, .startline-app .tab.active { height: 48px; min-width: 0; padding: 5px; flex: 1; gap: 5px; flex-direction: column; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; }
.startline-app .tab.active { color: var(--accent); box-shadow: none; }
.startline-app .tab.active::before { display: none; }
.startline-app .tab-icon { width: 22px; height: 22px; }
.startline-app .sticky-cta { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
.startline-app .admin-tabs { margin-bottom: 16px; }
.startline-app .stat-box { padding: 16px; }
.startline-app .chart-wrap { border-radius: 14px; overflow: hidden; }
.startline-app .kv { align-items: flex-start; gap: 16px; padding: 12px 0; }
.startline-app .kv > span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.startline-app .footnote { font-size: 12px; line-height: 1.5; color: var(--muted); }
body.design-document { background: var(--bg); color: var(--text); }
.design-document h1, .design-document h2 { letter-spacing: -.02em; }
.design-document .note, .design-document .card { border-radius: 14px; }
@media (min-width: 760px) {
  body.panel.startline-app { padding-bottom: 0; }
  .panel.startline-app .page { max-width: 1180px; padding: 0 28px 28px; }
  .panel.startline-app .topbar { padding: 20px 28px 16px; }
}
@media (max-width: 360px) {
  .startline-app .btn { padding-inline: 12px; }
  .startline-app .chip { padding: 8px 10px; }
  .startline-app .meta-row { gap: 8px; }
  .tournament-row-content { padding: 12px; gap: 8px; }
  .startline-app .member-row { flex-wrap: wrap; }
  .startline-app .member-actions { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .startline-app *, .startline-app *::before, .startline-app *::after { animation: none !important; transition: none !important; }
}

/* The approved layouts: compact cards, shared headings, complete money values. */
.startline-app { --panel: #151F2F; --panel-2: #1C293B; --border: #344255; --soft: #BECCE0; --gold: #FFD044; }
.startline-app .app-brand { max-width: 560px; margin: 0 auto; padding: 18px 16px 8px; display: flex; align-items: center; justify-content: space-between; }
.startline-app .app-brand-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 20px; font-weight: 750; text-decoration: none; }
.startline-app .app-brand-name img { border-radius: 8px; width: 30px; height: 30px; object-fit: cover; }
.startline-app .app-brand-user .badge { width: 34px; height: 34px; border-radius: 50%; }
.startline-app .topbar { max-width: 560px; margin: 0 auto; padding-top: 12px; padding-bottom: 18px; gap: 10px; }
.startline-app .topbar .title { font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 700; }
.startline-app .topbar .back { border: 0; background: transparent; width: 28px; height: 40px; flex: none; }
.startline-app .page .app-brand { padding-inline: 0; }
.startline-app .home-head { display: block; padding: 0; margin: 0 0 14px; }
.startline-app .hh-hello { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 650; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.startline-app .feed-header { max-width: 560px; margin: 0 auto; padding: 12px 16px 0; }
.startline-app .feed-title { font-size: 27px; margin: 0 0 16px; }
.startline-app .section-label { font-size: 18px; font-weight: 700; margin: 22px 0 12px; }
.startline-app .section-label a { font-family: inherit; font-size: 13px; font-weight: 600; }
.startline-app .card, .startline-app .row-card, .startline-app .list-row, .startline-app .match-card,
.startline-app .acc-card, .startline-app .rating-card, .startline-app .notice,
.startline-app .menu, .startline-app .checklist, .startline-app .next-step,
.startline-app .scrim-card, .startline-app .duel-card, .startline-app .lv-card,
.startline-app .veto-box, .startline-app .participation-status, .startline-app .readiness-player,
.startline-app .coin-hero, .startline-app .hero-card, .startline-app .fold {
  border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(125deg, #1A2637, #121D2C); box-shadow: none;
}
.startline-app .btn { min-height: 44px; font-size: 14px; line-height: 1.3; font-weight: 650; padding: 12px 14px; border-radius: 11px; }
.startline-app .btn.ghost { background: transparent; border: 1px solid #6E8097; }
.startline-app .btn.small { min-height: 40px; font-size: 13px; }
.startline-app .round-btn { border-radius: 11px; border: 1px solid var(--border); background: var(--panel-2); flex: none; }
.startline-app .field input, .startline-app .field select, .startline-app .field textarea { border-color: #65758C; min-height: 42px; padding: 10px 12px; border-radius: 9px; }
.startline-app .field { margin-bottom: 13px; }
.startline-app .field label { font-size: 13px; margin-bottom: 5px; color: var(--soft); }
.startline-app .field textarea { min-height: 90px; }
.startline-app .chip { min-height: 34px; font-size: 12px; padding: 8px 12px; border-radius: 18px; }
.startline-app .search { padding: 11px 12px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 11px; }
.startline-app .tag { border-radius: 7px; font-size: 11px; line-height: 1.3; padding: 4px 7px; }
.startline-app .tournament-card { padding: 0; overflow: hidden; cursor: pointer; margin-bottom: 14px; }
.tournament-art { height: 100px; overflow: hidden; background: var(--panel-2); }
.tournament-art > .game-art { width: 100%; height: 100%; object-fit: cover; }
.tournament-art > .cover { height: 100%; min-height: 0; }
.tournament-card-body { padding: 13px 14px 14px; }
.tournament-card h2 { margin: 0 0 7px; font-size: 20px; line-height: 1.22; font-weight: 750; }
.tournament-date { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; color: var(--soft); font-size: 12px; line-height: 1.4; margin: 0 0 9px; }
.tournament-date .ic { width: 16px; height: 16px; flex: none; }
.tournament-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tournament-tags > span { background: #263448; border-radius: 7px; padding: 4px 8px; font-size: 11px; line-height: 1.3; color: var(--soft); }
.tournament-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.tournament-facts > span { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.35; min-width: 0; }
.tournament-facts > span + span { border-left: 1px solid var(--border); padding-left: 12px; }
.tournament-facts .ic { width: 17px; height: 17px; flex: none; }
.tournament-prize { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 10px 0; font-size: 12px; color: var(--gold); }
.tournament-prize .coin-value { font-size: 13px; }
.tournament-prize > span:last-child { color: var(--soft); font-size: 11px; }
.tournament-action { display: flex; align-items: center; gap: 8px; padding: 10px; background: #17332D; color: #86E7AF; border-radius: 9px; font-size: 12px; margin: 12px 0 10px; }
.tournament-action.warn { background: #3C3320; color: #FFD45D; }
.tournament-action .ic { width: 19px; height: 19px; flex: none; }
.tournament-open { margin-top: 12px; }
.tournament-card .slots-bar { height: 3px; margin: 12px 0 0; }
.startline-app .now-title { font-size: 20px; }
.startline-app .now-in { padding: 16px; }
.startline-app .now-text { font-size: 13px; line-height: 1.5; }
.startline-app .now { margin: 0 0 14px; background: linear-gradient(125deg,#1A2637,#121D2C); }
.startline-app .quick4 a { border-radius: 12px; font-size: 11px; background: var(--panel); }
.startline-app .tabbar { border: 0; border-top: 1px solid var(--border); }
.profile-summary, .balance-card, .linked-accounts, .referral-card, .team-summary, .team-readiness,
.product-preview, .coin-history, .organiser-summary { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(125deg,#1A2637,#121D2C); margin-bottom: 14px; }
.profile-summary { padding: 16px 14px 12px; }
.profile-summary-head { display: flex; align-items: center; gap: 12px; }
.profile-summary-head .badge.me-av { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.profile-summary-head .grow { min-width: 0; flex: 1; }
.profile-summary-head h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.profile-summary-head p { display: flex; gap: 4px; align-items: center; margin: 5px 0 0; font-size: 12px; color: var(--soft); }
.profile-summary-head p .ic { width: 14px; height: 14px; }
.profile-summary-head .round-btn { width: 36px; height: 36px; }
.profile-summary .p-facts { margin: 10px 0 0; gap: 6px; }
.profile-summary .fact { font-size: 11px; padding: 4px 7px; border-radius: 7px; background: transparent; }
.profile-summary .fact .ic { width: 13px; height: 13px; }
.profile-summary-stats, .team-summary-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); padding-top: 13px; margin-top: 14px; }
.profile-summary-stats > div, .team-summary-stats > div { display: flex; flex-direction: column; text-align: center; gap: 4px; padding: 0 7px; min-width: 0; }
.profile-summary-stats > div + div, .team-summary-stats > div + div { border-left: 1px solid var(--border); }
.profile-summary-stats b, .team-summary-stats b { font-size: 20px; line-height: 1.1; font-family: var(--display); }
.profile-summary-stats span, .team-summary-stats span { font-size: 11px; line-height: 1.35; color: var(--soft); overflow-wrap: anywhere; }
.balance-card { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--text); text-decoration: none; }
.balance-card > .ic:first-child { width: 34px; height: 34px; color: var(--gold); flex: none; }
.balance-card > .ic:last-child { width: 18px; height: 18px; flex: none; }
.balance-card .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.balance-label { font-size: 12px; color: var(--soft); }
.balance-card strong { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.balance-card strong small { font-size: 15px; }
.balance-week { font-size: 12px; color: #53E593; }
.coin-value { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.coin-value .ic { width: 18px; height: 18px; flex: none; }
.coin-value > span { flex: none; white-space: nowrap; }
.coin-value small { font-size: .8em; }
.linked-accounts { overflow: hidden; }
.linked-account { display: flex; align-items: center; padding: 0 10px; min-width: 0; }
.linked-account + .linked-account { border-top: 1px solid var(--border); }
.linked-account-main { display: flex; align-items: center; gap: 10px; padding: 12px 0; flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.linked-account-main .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.linked-account-main b { font-size: 14px; }
.linked-account-main > .ic { width: 16px; height: 16px; margin-right: 5px; flex: none; }
.account-symbol { width: 38px; height: 38px; border-radius: 11px; background: #233149; display: inline-flex; justify-content: center; align-items: center; flex: none; }
.account-symbol.faceit { color: var(--accent); background: #1C1A18; }
.account-symbol.dota { color: #EF7B72; }
.account-state { font-size: 11px; color: var(--muted); }
.account-state.ok { color: #53E593; }
.account-copy { border: 0; border-left: 1px solid var(--border); color: var(--soft); background: transparent; width: 40px; height: 40px; margin-left: 4px; flex: none; }
.account-copy .ic { width: 18px; height: 18px; }
.profile-edit { margin: 14px 0; }
.referral-card { padding: 14px; }
.referral-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.referral-heading > .ic { width: 24px; height: 24px; flex: none; }
.referral-heading .grow { min-width: 0; flex: 1; }
.referral-heading h3 { font-size: 14px; margin: 0 0 4px; }
.referral-heading p { font-size: 11px; color: var(--muted); line-height: 1.4; margin: 0; }
.referral-bonus { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; min-width: max-content; background: #3B3320; border: 1px solid #665432; border-radius: 9px; padding: 7px 9px; color: var(--gold); font-size: 17px; font-weight: 750; }
.profile-products { display: grid; gap: 10px; }
.product-preview { display: flex; align-items: center; gap: 12px; padding: 10px; color: var(--text); text-decoration: none; margin: 0; min-width: 0; }
.product-preview-image { width: 72px; height: 66px; overflow: hidden; border-radius: 10px; flex: none; background: var(--panel-2); display: flex; justify-content: center; align-items: center; }
.product-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.product-preview .grow { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.product-preview b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.product-preview .coin-value { font-size: 13px; color: var(--gold); }
.product-preview small { font-size: 11px; color: var(--muted); }
.product-preview > .ic { width: 16px; height: 16px; flex: none; }
.startline-app .account-details { margin-top: 16px; }
.startline-app .fold { padding: 0 14px; }
.startline-app .fold > summary { padding: 14px 0; font-size: 14px; }
.startline-app .menu { padding: 0 14px; overflow: hidden; }
.startline-app .menu-item { padding: 13px 0; gap: 10px; }
.startline-app .menu-ic { width: 34px; height: 34px; border-radius: 10px; }
.startline-app .menu-title { font-size: 14px; }
.startline-app .menu-sub { font-size: 11px; line-height: 1.4; }
.startline-app .share-cta { border-radius: 14px; padding: 14px; }
.startline-app .shop-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.startline-app .shop-card { padding: 0; overflow: hidden; }
.startline-app .shop-img { width: 100%; height: 145px; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.startline-app .shop-body { padding: 16px; }
.startline-app .shop-title { font-size: 23px; line-height: 1.2; margin-bottom: 8px; }
.startline-app .shop-price { font-size: 21px; color: var(--text); padding: 13px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.startline-app .shop-price .ic { color: var(--gold); }
.startline-app .shop-desc { font-size: 13px; line-height: 1.6; color: var(--soft); }
.shop-remaining { padding: 11px 0; margin: 0 0 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--soft); }
.coin-history { padding: 0 14px; }
.coin-history .kv { font-size: 13px; }
.coin-history .kv > span:last-child { flex: none; white-space: nowrap; overflow-wrap: normal; }
.team-summary { padding: 16px; }
.team-summary-head { display: flex; gap: 14px; align-items: center; }
.team-summary-head > .badge { width: 68px; height: 68px; border-radius: 14px; flex: none; }
.team-summary-head .grow { min-width: 0; }
.team-summary-head h1 { margin: 0; font-size: 23px; line-height: 1.15; }
.team-summary-head h1 small { font-size: 13px; }
.team-summary-head p { font-size: 13px; color: var(--soft); margin: 5px 0 0; }
.team-summary-stats { grid-template-columns: 1fr 1fr; }
.team-summary .team-rating-note { font-size: 11px; margin: 12px 0 0; }
.team-readiness { padding: 16px; }
.team-readiness h2 { font-size: 20px; margin: 0 0 6px; }
.team-readiness p { color: var(--soft); font-size: 13px; }
.startline-app .member-row { min-width: 0; padding: 13px 0; }
.startline-app .member-row > .grow { min-width: 0; }
.startline-app .registration-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(125deg,#1A2637,#121D2C); }
.registration-card .member-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; margin: 0; }
.registration-card .mini-btn { width: 100%; min-height: 42px; border-radius: 10px; font-size: 13px; }
.registration-card .mini-btn.good { background: var(--accent); color: white; border-color: var(--accent); }
.registration-card .mini-btn.bad { background: transparent; border: 1px solid #6E8097; }
.organiser-summary { padding: 14px; }
.organiser-art { height: 90px; border-radius: 11px; overflow: hidden; margin: 10px 0 12px; }
.organiser-art .game-art { width: 100%; height: 100%; object-fit: cover; }
.startline-app .checklist { margin: 14px 0; padding: 14px; }
.startline-app .ck-row { border-top: 1px solid var(--border); padding: 12px 0; }
.startline-app .checklist summary { font-size: 17px; font-weight: 700; }
.startline-app .info-grid { border-radius: 16px; padding: 4px; gap: 0; }
.startline-app .info-cell { padding: 13px 10px; background: transparent; }
.startline-app .info-label { font-size: 11px; line-height: 1.4; }
.startline-app .info-value { font-size: 22px; margin-top: 4px; }
.startline-app .chart { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); padding: 14px; }
.startline-app .t-tiles { gap: 8px; }
.startline-app .t-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.startline-app .t-count { padding: 14px; }
.startline-app .t-count-n { font-size: 27px; }
.startline-app .t-format { border-radius: 14px; }
.startline-app .t-page .detail-title { font-size: 23px; }
.startline-app .match-card { padding: 14px; }
.startline-app .match-line .sc { font-size: 22px; }
.startline-app .veto-box { padding: 14px; margin: 12px 0; }
.startline-app .upload-row { align-items: flex-start; gap: 14px; margin: 0 0 18px; }
.startline-app .upload-row > .badge { width: 76px; height: 76px; border-radius: 50%; }
.startline-app .upload-row .btn-row { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 10px; }
.startline-app .upload-row .rsub { font-size: 11px; }
@media (max-width:360px) {
  .startline-app .profile-summary-head { gap: 8px; }
  .profile-summary-head h2 { font-size: 18px; }
  .profile-summary-head .badge.me-av { width: 50px; height: 50px; }
  .startline-app .referral-heading { gap: 7px; }
  .referral-heading h3 { font-size: 13px; }
  .referral-bonus { font-size: 15px; padding: 7px; }
  .product-preview { gap: 9px; }
  .product-preview-image { width: 58px; height: 58px; }
  .product-preview .coin-value small { font-size: 10px; }
  .startline-app .team-summary-head { gap: 10px; }
}
@media (min-width:760px) {
  .panel.startline-app .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel.startline-app .topbar { max-width: none; }
}
.balance-card .grow, .linked-account-main .grow, .product-preview .grow, .team-summary-head .grow { flex: 1; }
.startline-app .topbar .title { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.startline-app .cc-btns .coin-meta { display: inline-block; flex: none; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.startline-app .lobby-card, .startline-app .pl-card, .startline-app .s-card,
.startline-app .duel-info, .startline-app .next-card, .startline-app .hub-card { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(125deg,#1A2637,#121D2C); box-shadow: none; }
.coin-operation { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.coin-operation + .coin-operation { border-top: 1px solid var(--border); }
.operation-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--panel-2); flex: none; }
.operation-icon .ic { width: 19px; height: 19px; }
.coin-operation .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.coin-operation b { font-size: 14px; }
.coin-operation .grow > span { font-size: 11px; color: var(--soft); line-height: 1.4; }
.coin-operation strong { font-size: 16px; flex: none; white-space: nowrap; }
.coins-page .balance-card strong { font-size: 32px; }
.startline-app .podium-card, .startline-app .rank-row, .startline-app .reward-row, .startline-app .lc-card { border-radius: 14px; border: 1px solid var(--border); box-shadow: none; background: linear-gradient(125deg,#1A2637,#121D2C); }
.admin-summary, .admin-attention { border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin: 0 0 14px; background: linear-gradient(125deg,#1A2637,#121D2C); }
.admin-summary h2, .admin-attention h2 { font-size: 18px; margin: 0 0 12px; }
.admin-summary .profile-summary-stats { border: 0; padding: 0; margin: 14px 0 18px; }
.admin-summary h3 { font-size: 14px; border-top: 1px solid var(--border); padding-top: 14px; margin: 0 0 8px; }
.trend-svg { display: block; width: 100%; height: auto; }
.trend-svg text { fill: var(--muted); font-size: 9px; }
.trend-dates { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.admin-shortcut { display: flex; gap: 10px; align-items: center; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 13px; }
.admin-shortcut + .admin-shortcut { border-top: 1px solid var(--border); }
.admin-shortcut span { flex: 1; min-width: 0; }
.admin-shortcut .ic { width: 18px; height: 18px; flex: none; }

/* Home uses normal document flow: flex auto-margins used to centre the brand
   and stack section margins on top of the page gap. */
.startline-app .page.home { display: block; padding-top: 0; }
.startline-app .home > .app-brand { width: 100%; max-width: none; margin: 0; padding: 12px 0 10px; }
.startline-app .home > .app-brand .app-brand-user { flex: none; margin-left: 12px; }
.startline-app .home > .section-label { margin: 16px 0 8px; font-size: 17px; }
.startline-app .home > .home-team { margin: 0 0 14px; }
.startline-app .home > .home-rating { margin: 12px 0; }
.startline-app .home > .row-card { margin-bottom: 12px; }
.startline-app .home-featured { margin: 0; }
.startline-app .home-featured .tournament-art { height: 92px; }
.startline-app .home-featured .tournament-card-body { padding: 12px 14px; }
.startline-app .home-featured h2 { font-size: 18px; margin-bottom: 7px; }
.startline-app .home-featured .tournament-tags { margin: 7px 0 10px; }
.home-tournament-open { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--accent); font-size: 13px; font-weight: 650; }
.home-tournament-open .ic { width: 17px; height: 17px; }

/* Content cards: padding and flexible text columns are part of the component,
   including when prize/award content spans several lines. */
.startline-app .reward-row { align-items: flex-start; gap: 12px; padding: 14px; margin: 0 0 12px; min-width: 0; height: auto; }
.startline-app .reward-row > .ic { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--panel-2); font-size: 21px; line-height: 1; }
.startline-app .reward-row > :last-child { flex: 1; min-width: 0; }
.startline-app .reward-title { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.startline-app .reward-sub { font-size: 12px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.startline-app .reward-sub p { margin: 0 0 5px; }
.startline-app .reward-sub p:last-child { margin-bottom: 0; }
.startline-app .reward-sub a { display: inline-block; margin-top: 4px; color: var(--soft); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.startline-app .prize-card { padding: 0 14px; }
.startline-app .prize-row { padding: 14px 0; gap: 10px; align-items: center; min-width: 0; }
.startline-app .prize-place { width: 34px; height: 34px; border-radius: 50%; }
.startline-app .prize-copy { flex: 1; min-width: 0; }
.startline-app .prize-label { color: var(--text); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.startline-app .prize-value { font-size: 13px; font-weight: 500; line-height: 1.45; margin-top: 5px; overflow-wrap: anywhere; }
.prize-note { font-size: 11px; line-height: 1.45; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.prize-amount { flex: none; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; color: var(--gold); }
.prize-amount .coin-value { font-family: var(--display); font-size: 20px; font-weight: 650; }
.prize-amount > span:last-child { font-size: 10px; line-height: 1.2; color: var(--soft); }
.startline-app .section-label { gap: 8px; flex-wrap: wrap; }
.startline-app .section-label > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.startline-app .sponsor-card { padding: 14px; }
.startline-app .sponsor-top { align-items: flex-start; }
.startline-app .sponsor-top > .grow, .startline-app .pl-head > .grow,
.startline-app .list-row > .grow, .startline-app .row-card > .grow { min-width: 0; flex: 1; }
.startline-app .soc-btn { min-height: 38px; height: auto; max-width: 100%; padding: 9px 11px; white-space: normal; overflow-wrap: anywhere; border-radius: 10px; line-height: 1.4; text-align: left; }
.startline-app .soc-btn .ic { flex: none; }
.startline-app .rname, .startline-app .row-title, .startline-app .rsub,
.startline-app .ticket-text, .startline-app .ticket-answer,
.startline-app .shop-desc, .startline-app .menu-title, .startline-app .menu-sub { overflow-wrap: anywhere; }
@media (max-width:360px) {
  .startline-app .prize-card { padding-inline: 12px; }
  .startline-app .prize-row { gap: 8px; }
  .prize-amount .coin-value { font-size: 18px; }
  .startline-app .reward-row { padding: 12px; gap: 10px; }
}
.startline-app .hub-alert { min-width: 0; align-items: flex-start; }
.startline-app .hub-alert > .ic { flex: none; }
.startline-app .hub-alert > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.startline-app .share-cta > .grow { flex: 1; min-width: 0; }
.startline-app .share-title, .startline-app .share-sub { white-space: normal; overflow-wrap: anywhere; }
.startline-app .podium { align-items: stretch; }
.startline-app .podium-card { display: flex; flex-direction: column; align-items: center; }
.startline-app .podium-name { display: block; -webkit-line-clamp: unset; height: auto; max-height: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.startline-app .podium-elo { margin-top: auto; padding-top: 6px; }
.tournament-cover-editor { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin: 14px 0 18px; min-width: 0; }
.tournament-cover-editor h3 { font-size: 15px; margin: 0 0 10px; }
.cover-current { display: flex; align-items: center; justify-content: center; aspect-ratio: 3/1; overflow: hidden; border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: 12px; }
.cover-current img { width: 100%; height: 100%; object-fit: cover; }
.cover-requirements { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: 12px; line-height: 1.5; }
.cover-requirements > span { color: var(--muted); }
.cover-editor-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cover-library { margin-top: 14px; }
.cover-library summary { font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.cover-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.cover-option { position: relative; display: flex; flex-direction: column; overflow: hidden; gap: 0; min-width: 0; background: var(--panel); color: var(--text); border: 2px solid var(--border); border-radius: 10px; padding: 0; text-align: left; cursor: pointer; }
.cover-option img { width: 100%; height: auto; aspect-ratio: 3/1; object-fit: cover; }
.cover-option > span { padding: 8px; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.cover-option.selected { border-color: var(--accent); }
.cover-option > .ic { position: absolute; right: 4px; top: 4px; width: 19px; height: 19px; background: var(--bg); color: var(--accent); border-radius: 50%; }
.cover-editor-status { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--soft); overflow-wrap: anywhere; }
@media (max-width:360px) { .cover-editor-actions { grid-template-columns: 1fr; } }
