/* Football documentary edition. Presentation only; game rules remain in game.js. */
:root {
  --bg-primary: #f3f5f1;
  --bg-secondary: #e9eeea;
  --bg-card-hover: #f5f8f5;
  --primary: #236548;
  --primary-dark: #174c35;
  --accent-gold: #c5ab67;
  --accent-orange: #8b6c2b;
  --success: #28704e;
  --danger: #b6433f;
  --blue: #346787;
  --accent-blue: #346787;
  --text-primary: #1c3027;
  --text-secondary: #56675e;
  --text-muted: #68776f;
  --border-ink: #1c3027;
  --border-thick: 1px;
  --radius: 10px;
  --radius-sm: 5px;
  --shadow-comic: none;
  --shadow-comic-sm: none;
  --shadow-comic-green: none;
  --shadow-comic-gold: none;
  --gradient-primary: #236548;
  --gradient-card: #fff;
  --line: #dce3dc;
  --paper: #fff;
  --number-font: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: #15271f;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #669d7d;
  outline-offset: 3px;
}
#app {
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-primary);
  border: 0;
  box-shadow: 0 0 80px #0003;
}
.screen { min-height: 100vh; min-height: 100svh; }
#app .screen:not(#screen-home) { background: var(--bg-primary); }
#screen-attributes::before, #screen-career::before,
#screen-matchday::before, #screen-offseason::before { display: none; }
#app .screen-header {
  position: sticky;
  top: 0;
  background: #f3f5f1f5;
  color: var(--text-primary);
  border-bottom: 1px solid var(--line);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 16px;
  min-height: 64px;
  gap: 14px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}
#app .screen-header h2 { font-size: 17px; font-weight: 750; letter-spacing: .02em; color: var(--text-primary); }
#app .screen-body { padding: 24px 22px calc(32px + env(safe-area-inset-bottom, 0px)); }
#app .screen-header .btn-back { min-height: 32px; font-size: 13px; font-weight: 500; }
#app .screen-header .draw-count, #app .screen-header .md-progress { margin-left: auto; font-size: 11px; letter-spacing: 0; color: var(--text-muted); }
#app h3, #app h4 { letter-spacing: 0; }
#app .btn {
  border-radius: 6px;
  border-width: 1px;
  box-shadow: none;
  min-height: 46px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 12px 18px;
  white-space: normal;
  line-height: 1.4;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease;
}
#app .btn:hover, #app .btn:active { transform: none; box-shadow: none; }
#app .btn::after { display: none; }
#app .btn-gold { background: var(--primary); border-color: var(--primary); color: #fff; }
#app .btn-gold:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
#app .btn-secondary { background: #fff; border-color: #cfd8d0; color: var(--text-primary); }
#app .btn-secondary:hover { background: #eaf0eb; }
#app .btn-outline { background: transparent; border-color: #d0d9d1; color: var(--text-secondary); }
#app .btn-danger { background: #f9eeec; border-color: #e7cfca; color: var(--danger); }
#app .btn-lg { min-height: 54px; font-size: 15px; }
#app .btn-sm { min-height: 34px; padding: 7px 12px; font-size: 12px; }
#app .toast {
  background: #172f24;
  color: #fff;
  border: 1px solid #496254;
  box-shadow: 0 4px 24px #0002;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 500;
  top: calc(22px + env(safe-area-inset-top, 0px));
}
#app .form-group { margin-bottom: 26px; }
#app .form-group label { color: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-bottom: 9px; }
#app .form-group input, #app .form-group select {
  border: 1px solid #ced8ce;
  background: white;
  border-radius: 6px;
  min-height: 50px;
  font-size: 16px;
  padding: 12px 14px;
}
#app .form-group input:focus, #app .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #23654812; }
#app .tag { border: 0; background: #edf2ee; padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 500; color: #4f6758; }
#app .tag-gold { color: #806628; background: #f4f0e4; }
#app .gradient-card { border: 1px solid var(--line); background: white; border-radius: 8px; box-shadow: none; padding: 18px; }

/* Full photograph, quiet title area, one clear primary action. */
#screen-home { color: #f6f7f1; background: #142325; }
.home-bg {
  min-height: 720px;
  min-height: max(720px, 100svh);
  padding: calc(34px + env(safe-area-inset-top, 0px)) 32px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #142325 url('assets/stadium-career-20261023.webp') center 52% / cover no-repeat;
  display: flex;
  align-items: stretch;
  justify-content: initial;
}
.home-bg::before { background: linear-gradient(180deg, #06111e45 0%, transparent 35%, #07170e00 53%, #07170e70 72%, #07170ef5 100%); }
.home-bg::after, .home-title-wrap::before { display: none; }
.home-content { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: left; width: 100%; }
.home-title-wrap { margin: 28px 0 0; padding: 0; }
.home-subtitle { color: #c2cfcf; font-family: var(--number-font); font-size: 10px; font-weight: 500; letter-spacing: .3em; margin-bottom: 20px; }
.home-title { color: #fff; -webkit-text-fill-color: currentColor; text-shadow: none; font-weight: 800; letter-spacing: -.055em; line-height: 1.05; font-size: clamp(42px, 12vw, 60px); }
.home-title-main { display: block; }
.home-tagline { display: block; font-size: 19px; font-weight: 400; letter-spacing: .16em; margin-top: 19px; color: #dfe6e3; }
.home-bottom { margin-top: 280px; }
.home-desc { color: #d0d9d2; line-height: 1.65; font-size: 12px; margin: 0 0 18px; font-weight: 400; letter-spacing: .03em; }
.home-buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; max-width: none; margin: 0; }
#screen-home .home-buttons .btn { border: none; border-radius: 5px; font-size: 13px; min-height: 42px; margin: 0; padding: 10px 8px; }
#screen-home .home-buttons .home-primary { order: 0; width: 100%; background: #e4ebdd; color: #152e22; min-height: 54px; font-size: 15px; font-weight: 700; letter-spacing: .07em; }
#screen-home .home-buttons .home-primary:hover { background: #fff; }
#screen-home .home-buttons .home-secondary { order: 1; flex: 1; background: transparent; color: #d1ddd3; border-bottom: 1px solid #ffffff20; border-radius: 0; }
#screen-home .home-buttons .home-secondary:hover { color: white; background: #ffffff08; }
.home-tip { color: #aebeb2; margin: 18px 0 0; font-size: 10px; letter-spacing: .02em; font-weight: 400; }

/* Create / scouting report. */
#app .pos-btn { border: 1px solid var(--line); box-shadow: none; background: #fff; border-radius: 6px; padding: 12px 4px; }
#app .pos-btn.active { border-color: var(--primary); background: #e7eee7; color: var(--primary-dark); box-shadow: inset 0 -2px var(--primary); }
#app .pos-btn small { font-size: 11px; font-weight: 400; }
#app .player-preview-card { background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: 8px; }
#app .player-preview-card::before, #app .ppc-ovr::after { display: none; }
#app .ppc-header { padding: 22px 20px 20px; gap: 8px; align-items: center; background: #163e2c; }
#app .ppc-header::after { display: none; }
#app .ppc-ovr { font-family: var(--number-font); font-size: 52px; letter-spacing: -.04em; color: #f0f1dc; }
#app .ppc-name { color: #fff; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
#app .ppc-pos { color: #c7d9c5; background: #ffffff10; font-weight: 500; }
#app .ppc-number { color: #a9c2af; }
#app .attr-grid-33 { padding: 18px 16px; gap: 12px 18px; }
#app .attr-group-title { font-size: 10px; letter-spacing: .07em; margin-bottom: 5px; color: #62756a; }
#app .attr-group-title::before { width: 3px; height: 9px; background: #a9bcae; }
#app .attr-slot-33 { padding: 3px 2px; }
#app .as14-name { font-size: 11px; }
#app .as14-val { font-family: var(--number-font); font-size: 13px; font-weight: 700; }
#app .as14-lock { opacity: .35; }
#app #draw-area { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 18px; }
#app .draw-club-card { border-bottom: 1px solid var(--line); }
#app .draw-roster-list { border-color: var(--line); border-radius: 5px; }
#app .draw-roster-item { min-height: 46px; }
#app .draw-roster-item:hover { background: #edf3ed; }
#app .dc-attr-row { min-height: 32px; border-radius: 3px; }
#app .dc-attr-row.selectable { background: #f4f8f2; border-left-color: #527e59; }
#app .dc-attr-row.selectable:hover { background: #e6efe7; }
#app .draw-actions { gap: 8px; }
#app .draw-actions .btn { padding: 10px 8px; font-size: 12px; }
#app .league-tabs { gap: 6px; margin-bottom: 20px; }
#app .league-tab { border: 1px solid var(--line); background: #fff; color: #68776f; border-radius: 4px; box-shadow: none; }
#app .league-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
#app .club-card { margin-bottom: 10px; background: white; border: 1px solid var(--line); box-shadow: none; border-radius: 8px; padding: 16px; }
#app .club-card:hover { border-color: #a4b8a6; transform: none; }
#app .club-badge { border-radius: 50%; border: 0; width: 42px; height: 42px; font-size: 20px; }

/* Player dossier: shirt, number and identity above the statistical record. */
#app .career-player-card { padding: 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; margin-bottom: 20px; background: white; overflow: hidden; }
#app .career-player-card::before { display: none; }
#app .career-identity.cpc-header {
  position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto;
  grid-template-rows: auto auto; align-items: center; gap: 8px 15px;
  padding: 26px 20px; margin: 0 0 20px; color: #f6f8f2; background: #163e2c;
}
.career-shirt { position: relative; width: 82px; height: 100px; grid-column: 1; grid-row: 1 / 3; color: #c8d7c2; }
.career-shirt svg { display: block; width: 100%; height: 100%; }
.career-shirt-number { position: absolute; left: 0; right: 0; top: 36px; color: #163e2c; font-family: var(--number-font); font-size: 31px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: -.06em; }
#app .career-identity .cpc-info { min-width: 0; grid-column: 2; grid-row: 1 / 3; }
.career-dossier { color: #a5c0ab; font-size: 9px; letter-spacing: .08em; margin-bottom: 8px; }
.career-dossier span { display: block; font-family: var(--number-font); font-size: 7px; letter-spacing: .14em; margin-top: 2px; }
#app .career-identity .cpc-info h3 { color: #fff; font-size: 23px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; margin: 0 0 6px; }
#app .career-identity .cpc-info p { color: #c2d3c3; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
#app .career-identity .cpc-contract { color: #9db8a4; font-size: 9px; margin-top: 4px; }
.career-position { display: inline-block; color: #e3eadd; font-family: var(--number-font); letter-spacing: .04em; }
#app .career-identity .cpc-ovr { grid-column: 3; grid-row: 1; align-self: end; color: #e8ebd5; font-family: var(--number-font); font-size: 38px; font-weight: 650; letter-spacing: -.055em; line-height: 1; text-align: center; }
#app .career-identity .cpc-ovr small { display: block; font-size: 8px; font-weight: 400; letter-spacing: .15em; color: #a1b8a3; margin-top: 6px; }
#app .career-identity .cpc-age { grid-column: 3; grid-row: 2; align-self: start; color: #a8bcab; font-family: var(--number-font); font-size: 11px; white-space: nowrap; text-align: center; margin: 7px 0 0; }
#app .cpc-tags, #app .cpc-strengths, #app .cpc-season-info, #app .cpc-bars, #app .cpc-nt-stats { margin-left: 20px; margin-right: 20px; }
#app .cpc-strengths { font-size: 11px; line-height: 1.9; }
#app .cpc-season-info { border-top: 1px solid var(--line); padding-top: 14px; font-size: 11px; justify-content: space-between; gap: 8px; }
#app .cpc-bars { padding: 2px 0 12px; }
#app .bar-label { color: #617568; text-align: left; }
#app .bar-track { height: 4px; background: #e9eee9; }
#app .bar-morale { background: #427553; }
#app .bar-reputation { background: #6b8b9b; }
#app .cpc-career-summary { padding: 17px 12px; margin-top: 16px; background: #f7f9f6; border-top: 1px solid var(--line); }
#app .stat-mini .stat-val { font-family: var(--number-font); font-size: 26px; font-weight: 600; letter-spacing: -.04em; }
#app .stat-mini .stat-label { font-size: 10px; font-weight: 400; }
#app .career-actions { gap: 0; }
#app .career-actions .btn { border-color: #d0d9d1; }
#app .career-actions .btn-gold { border-color: var(--primary); }

/* Match centre. The pitch belongs to the fixture, data stays on clean paper. */
#app .matchday-header { background: #173e2d; border-bottom: 0; overflow: hidden; }
#app .matchday-header h2 { color: #f4f7ef; }
#app .matchday-header .btn-back, #app .matchday-header .md-progress { color: #b4cbb9; }
.matchday-pitch { position: absolute; right: 18px; top: 5px; width: 130px; height: 65px; color: #c9e3cd; opacity: .12; pointer-events: none; }
.matchday-pitch svg { display: block; width: 100%; height: 100%; }
#app .md-stats { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 18px 8px; box-shadow: none; margin-bottom: 20px; }
#app .md-sv { font-family: var(--number-font); font-size: 26px; font-weight: 600; letter-spacing: -.045em; color: #204b36; }
#app .md-sl { font-size: 9px; letter-spacing: 0; font-weight: 500; }
#app .md-form { border: 0; background: none; padding: 8px 0; }
#app .md-next-match { background: #173e2d; border: 0; border-radius: 9px; padding: 22px 18px; box-shadow: none; overflow: hidden; }
#app .md-next-match::before { display: none; }
#app .md-next-match .md-comp { color: #c0d0c2 !important; font-size: 10px; letter-spacing: .04em; }
#app .md-next-match .md-team { color: white; font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
#app .md-next-match .md-vs { color: #b7c9b7; background: none; font-family: var(--number-font); font-size: 13px; font-weight: 400; }
#app .md-next-match .md-meta, #app .md-next-match .md-skip-msg { color: #b7cbbd; font-size: 11px; }
#app .md-last-result { border: 1px solid var(--line); border-left-width: 3px; background: #fff; border-radius: 6px; box-shadow: none; padding: 16px; }
#app .md-lr-score { font-family: var(--number-font); font-size: 24px; font-weight: 650; }
#app .md-events { background: #f4f7f3; border-radius: 4px; }
#app .md-table { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; }
#app .md-table h4 { margin: 0; padding: 16px; color: var(--text-primary); font-size: 13px; border: 0; background: #fff; }
#app .md-table th, #app .md-table-scroll thead th { background: #edf2ed; color: #6a7b70; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
#app .md-table td { padding-top: 11px; padding-bottom: 11px; font-variant-numeric: tabular-nums; }
#app .md-table tr.md-table-me td { background: #edf4eb; color: #245638; border: 0; font-weight: 700; }
#app .match-cal { margin: 20px 0; }
#app .match-cal-header h4 { color: #425c4c; letter-spacing: .02em; font-size: 12px; font-weight: 600; }
#app .match-cal-plan-btn { background: transparent; border: 1px solid var(--line); border-radius: 4px; min-height: 34px; padding: 6px 10px; }
#app .match-cal-grid { gap: 5px; }
#app .match-cal-cell { min-width: 33px; min-height: 33px; border-radius: 4px; font-size: 10px; border-width: 1px; font-weight: 600; }
#app .cal-future { color: #62766a; background: #e7ede7; border-color: #dce5dc; }
#app .cal-current { box-shadow: 0 0 0 2px #547660; }
#app .nt-callup-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 22px; box-shadow: none; }
#app .nt-callup-icon { font-size: 28px; margin-bottom: 18px; }
#app .nt-callup-card h3 { color: #274d38; font-size: 23px; }
#app .nt-callup-card p { color: #5b6c61; font-size: 13px; line-height: 1.9; }

/* Season report, decisions and records share the same editorial rhythm. */
#app #screen-season .screen-header::after { display: none; }
#app .sr-competitions .team-result > span { color: #53675a !important; }
#app .sr-cover-header { background: #173e2d; color: white; border: 0; border-radius: 9px 9px 0 0; padding: 25px 20px; }
#app .sr-season-badge { background: none; color: white; box-shadow: none; padding: 0; font-family: var(--number-font); font-size: 36px; letter-spacing: -.04em; transform: none; }
#app .sr-season-badge::before, #app .sr-cover-header::after { display: none; }
#app .sr-club-line { color: #dde7dd; font-size: 13px; margin-top: 9px; }
#app .sr-age-line { color: #a8c0ad; background: none; padding: 0; font-size: 11px; }
#app .sr-hero-block { background: #fff; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 24px 16px; }
#app .sr-hero-num { border: 0; }
#app .sr-hero-val { font-family: var(--number-font); font-size: 52px; font-weight: 650; color: #214e34; letter-spacing: -.055em; }
#app .sr-hero-label { color: #6c7f70; letter-spacing: .04em; font-size: 11px; font-weight: 400; }
#app .sr-rating-badge { background: #edf2e9; border: 0; color: #284d35; border-radius: 6px; box-shadow: none; transform: none; }
#app .sr-rating-badge::before { display: none; }
#app .sr-rating-val { font-family: var(--number-font); font-weight: 650; }
#app .sr-rating-label { color: #5e7563; }
#app .sr-minor-row { background: #fff; padding: 16px 0; border-radius: 0 0 8px 8px; margin-bottom: 24px; }
#app .sr-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
#app .sr-section-tag { background: none; color: #294e39; padding: 0; font-weight: 650; font-size: 13px; letter-spacing: .02em; }
#app .golden-ball-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
#app .golden-ball-section.gb-won { background: #f9f6e9; border-color: #e1d8b8; }
#app .golden-ball-section.gb-won::after { display: none; }
#app .gb-reason { font-style: normal; border-bottom-style: solid; line-height: 1.75; }
#app .gb-cand-score, #app .sr-ovr-val { color: #29563a; font-family: var(--number-font); }
#app .sr-trophy-strip { border: 0; border-radius: 6px; background: #f3eedc; }
#app .sr-trophy-strip::before, #app .sr-trophy-strip::after, #app .sr-footer::before, #app .sr-ovr-val::after { display: none; }
#app .sr-trophy-chip { border: 0; background: transparent; color: #826a35; }
#app .sr-footer { background: transparent; border-top: 1px solid var(--line); padding-top: 24px; }
#app .ev-progress { justify-content: flex-start; gap: 6px; margin: 2px 0 22px; }
#app .ev-dot { width: 24px; height: 3px; border: 0; border-radius: 0; background: #dce4dc; box-shadow: none; }
#app .ev-dot.ev-done, #app .ev-dot.ev-current { background: #356b48; box-shadow: none; }
#app .ev-card { padding: 22px 18px; border: 1px solid var(--line); border-radius: 9px; box-shadow: none; background: white; }
#app .ev-title { color: #294e38; font-size: 17px; }
#app .ev-icon { font-size: 20px; opacity: .85; }
#app .ev-background { padding: 0; background: none; border: 0; line-height: 1.95; color: #5b6c61; }
#app .ev-status-bar { justify-content: flex-start; font-size: 11px; border-bottom: 0; padding-top: 14px; gap: 14px; }
#app .ev-choice-btn { padding: 16px; border: 1px solid #d7e0d7; border-radius: 6px; font-size: 13px; font-weight: 550; background: #fff; }
#app .ev-choice-btn:hover { border-color: #557c61; background: #f2f6f0; }
#app .ev-effect-tag { border: 0; color: #3e7050; background: #edf4ea; font-weight: 400; border-radius: 3px; }
#app .ev-risk-tag { color: var(--danger); background: #f9eeeb; }
#app .ev-summary-row { background: #fff; border-color: var(--line); }
#app .alloc-card, #app .contract-card, #app .free-agent-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: none; }
#app .history-card { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
#app .history-season { color: #29503a; font-family: var(--number-font); }
#app .lb-tab { background: transparent; border: 1px solid #d6dfd6; color: #647568; border-radius: 4px; box-shadow: none; font-weight: 550; min-height: 34px; }
#app .lb-tab.active { color: white; background: var(--primary); border-color: var(--primary); }
#app .lb-entry { background: white; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 19px 12px; gap: 12px; }
#app .lb-entry.gold { background: #f5f1e3; border-bottom-color: #e6dfc8; }
#app .lb-entry.silver, #app .lb-entry.bronze { background: #f8faf7; }
#app .lb-name { overflow-wrap: anywhere; font-size: 15px; font-weight: 650; }
#app .lb-rank { font-family: var(--number-font); font-size: 19px; font-weight: 500; }
#app .lb-score { color: #315d40; font-family: var(--number-font); font-size: 28px; font-weight: 600; }
#app .lb-meta, #app .lb-stats { font-size: 10px; line-height: 1.75; }
#app .leaderboard-note { flex-basis: 100%; font-size: 10px; color: #6e7c73; margin: -4px 0 0; font-weight: 400; }
#app .nt-section-title { border-left-width: 2px; color: #345840; margin-top: 24px; font-size: 13px; }
#app .nt-header-row, #app .nt-comp-header { gap: 12px; flex-wrap: wrap; }
#app .nt-comp-name, #app .nt-hist-result { overflow-wrap: anywhere; }
#app .nt-role-tag, #app .nt-result-badge { border-radius: 4px; background: #94514d; font-weight: 500; }
#app .nt-honor-item { background: #f7f3e7; border: 0; color: #7d6b3c; }
#app .nt-match-row { gap: 8px; flex-wrap: wrap; }
#app .retire-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 20px; box-shadow: none; }
#app .retire-card::before, #app .retire-legend-score::before { display: none; }
#app .retire-ovr { font-family: var(--number-font); color: #285039; font-size: 58px; letter-spacing: -.06em; }
#app .retire-header h3 { color: #234a33; font-size: 26px; overflow-wrap: anywhere; }
#app .retire-quote { color: #69786d; border: 0; font-size: 13px; line-height: 1.9; font-style: normal; padding: 14px 8px; }
#app .retire-stats { border: 0; background: #f4f7f2; border-radius: 6px; gap: 14px 8px; padding: 18px 10px; }
#app .retire-stats .rs span, #app .rls-val { color: #315b3e; font-family: var(--number-font); }
#app .retire-clubs { line-height: 1.9; }
#app .retire-nt-honors { color: #827040; }
#app .retire-actions { gap: 2px; }

/* Dialogs and status remain clear above every screen. */
.match-modal-overlay, .transfer-modal { background: #10241990; padding: 20px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.match-modal, .transfer-modal-content { background: #fff; border: 1px solid #dce4db; border-radius: 10px; box-shadow: 0 18px 60px #0003; max-width: 430px; max-height: 85svh; padding: 22px; }
.match-modal-header { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.match-modal-header strong { color: #536d5b; font-size: 12px; }
.match-modal-close { min-width: 36px; min-height: 36px; }
.match-modal-score { overflow-wrap: anywhere; gap: 8px; }
.match-modal-score-num { font-family: var(--number-font); white-space: nowrap; }
.rest-plan-opt { border-color: var(--line); border-radius: 5px; min-height: 44px; padding: 12px; }
#app .save-status { background: #fffaf0; border-color: #d7cba3; color: #705f32; border-radius: 7px; box-shadow: 0 4px 20px #0002; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.save-conflict-body { padding: 8px 0 0; font-size: 13px; }
.retire-confirm-body p, .contract-confirm-body p { margin: 16px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.retire-confirm-actions, .contract-confirm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.retire-confirm-actions .btn, .contract-confirm-actions .btn { min-height: 46px; border-width: 1px; border-radius: 6px; box-shadow: none; }

@media (max-width: 380px) {
  #app .screen-body { padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  #app .screen-header { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .home-bg { padding-left: 25px; padding-right: 25px; }
  .home-title { font-size: 44px; }
  .home-tagline { font-size: 17px; }
  #app .career-identity.cpc-header { grid-template-columns: 62px minmax(0, 1fr) auto; padding: 23px 14px; gap: 6px 10px; }
  .career-shirt { width: 62px; height: 90px; }
  .career-shirt-number { top: 34px; font-size: 25px; }
  #app .career-identity .cpc-info h3 { font-size: 21px; }
  #app .career-identity .cpc-ovr { font-size: 33px; }
  #app .cpc-tags, #app .cpc-strengths, #app .cpc-season-info, #app .cpc-bars { margin-left: 16px; margin-right: 16px; }
  #app .attr-grid-33 { padding: 14px 12px; gap: 10px; }
  #app .md-next-match .md-team { font-size: 17px; }
  #app .md-sv { font-size: 22px; }
  #app .sr-hero-val { font-size: 44px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .home-bg { min-height: 680px; }
  .home-title-wrap { margin-top: 10px; }
  .match-modal { max-height: 88svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
