* { min-width: 0; }
/* Author display rules must never override the native hidden state. */
[hidden] { display: none !important; }

html, body { max-width: 100%; overflow-x: hidden; }
#shell { width: 100%; max-width: 760px; }
.auth-wrap { width: 100%; max-width: 480px; }
.auth-card { width: 100%; overflow: hidden; }
.tabs { grid-template-columns: repeat(3, 1fr); }
.controls.strategy-controls { grid-template-columns: 1fr; }
.strategy-jump { position: relative; width: 100%; padding-bottom: 29px; text-align: left; color: var(--text); appearance: none; }
.strategy-jump:active { transform: translateY(1px); }
.strategy-jump-label { position: absolute; right: 12px; bottom: 9px; color: var(--blue); font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.strategy-section { display: grid; gap: 11px; padding: 12px; border: 1px solid #2a6267; border-radius: 22px; background: linear-gradient(160deg, rgba(9, 36, 47, .98), rgba(5, 22, 32, .98)); box-shadow: 0 14px 34px rgba(0, 0, 0, .2); }
.strategy-section + .strategy-section { margin-top: 8px; }
.strategy-header { padding: 16px 15px 15px; border: 1px solid rgba(244, 201, 75, .38); border-left: 4px solid var(--gold); border-radius: 17px; background: linear-gradient(145deg, #103443, #0a2330); }
.strategy-header .strategy-kicker { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.strategy-header h2 { margin: 6px 0 6px; color: #fff; font-size: 22px; line-height: 1.08; }
.strategy-header p { margin: 0; color: #a7bdc7; font-size: 11px; line-height: 1.45; }
.strategy-period, .strategy-caveat { padding: 13px 15px; border: 1px solid var(--line2); border-radius: 15px; background: #071a25; }
.strategy-period span { display: block; color: var(--dim); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.strategy-period strong { display: block; margin-top: 3px; }
.strategy-period small, .strategy-caveat { color: var(--muted); font-size: 10px; }
.strategy-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line2); border-radius: 15px; background: var(--line2); }
.strategy-stat { padding: 11px 9px; background: #081e2a; }
.strategy-stat span, .strategy-stat small { display: block; color: var(--dim); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.strategy-stat strong { display: block; margin: 4px 0 2px; font-size: 15px; }
.strategy-stat.good strong { color: var(--green); }
.strategy-stat.bad strong { color: var(--red); }
.strategy-subtitle { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 10px 3px 0; border-top: 1px solid rgba(116, 170, 176, .18); }
.strategy-header + .strategy-subtitle { padding-top: 2px; border-top: 0; }
.strategy-subtitle strong { color: #f3f8fa; font-size: 14px; }
.strategy-subtitle span { max-width: 55%; text-align: right; color: var(--dim); font-size: 9px; }
.strategy-sports { display: grid; grid-template-columns: 1fr; gap: 8px; }
.strategy-sport-card { overflow: hidden; border: 1px solid var(--line2); border-radius: 15px; background: #081e2a; }
.strategy-sport-card > h3 { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line2); color: var(--blue); font-size: 13px; }
.strategy-sport-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line2); }
.strategy-sport-metrics .strategy-stat { padding: 10px 8px; }
.strategy-sport-metrics .strategy-stat strong { font-size: 14px; }
.strategy-history { overflow: hidden; border: 1px solid var(--line2); border-radius: 15px; background: #071a25; }
.strategy-history summary { padding: 13px 15px; color: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.strategy-history[open] summary { border-bottom: 1px solid var(--line2); }
.strategy-history-list { display: grid; gap: 9px; padding: 10px; }
.strategy-game { padding: 14px 15px; border: 1px solid var(--line2); border-radius: 17px; background: #081e2a; }
.strategy-game-head, .strategy-outcome, .strategy-inverse-pick, .strategy-evidence { display: flex; justify-content: space-between; gap: 10px; }
.strategy-game-head { align-items: flex-start; }
.strategy-game-head h3 { margin: 3px 0 0; font-size: 15px; line-height: 1.2; }
.strategy-game-head small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.strategy-outcome { align-items: center; margin-top: 12px; padding: 10px 11px; border-radius: 12px; background: #0b2835; }
.strategy-outcome span, .strategy-inverse-pick span, .strategy-evidence span { color: var(--dim); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.strategy-outcome strong, .strategy-inverse-pick strong { text-align: right; color: var(--text); }
.strategy-inverse-pick { align-items: center; padding: 9px 11px; border: 1px solid rgba(105, 185, 255, .22); border-radius: 12px; background: #071a25; }
.strategy-inverse-pick strong { color: var(--blue); }
.strategy-evidence { margin-top: 10px; align-items: flex-end; }
.strategy-evidence b { text-align: right; color: var(--muted); font-size: 10px; font-weight: 700; }
.strategy-result.win { background: var(--green-bg); color: var(--green); }
.strategy-result.loss { background: var(--red-bg); color: var(--red); }
.strategy-result.pending { color: var(--blue); }
.strategy-empty { padding: 17px; border: 1px dashed #2a4d59; border-radius: 15px; color: var(--muted); font-size: 12px; }

@media (min-width: 680px) {
  .strategy-sports { grid-template-columns: repeat(3, 1fr); }
  .strategy-sport-metrics { grid-template-columns: 1fr; }
}
