/* Kick or go for 2: an orange event field (each call's win chance and how its games end) beside a navy panel with
   the three rates. Navy text on orange. Base in ../style.css. */
.stage { display: grid; }
.field { position: relative; overflow: hidden; background: var(--orange); color: var(--ink); padding: 0 var(--pad) 22px; display: flex; flex-direction: column; }
.field > * { position: relative; }
.field .mast a { color: var(--ink); }
/* One giant pictogram, cropped off the field's edge. */
.giant { position: absolute; top: 70px; right: calc(-1 * clamp(14px, 2vw, 30px)); width: clamp(110px, 11vw, 160px); aspect-ratio: 1; color: var(--ink); }
.giant svg { width: 100%; height: 100%; display: block; }
@media (max-width: 899px) { .giant { top: 44px; right: -5vw; width: 34vw; color: rgba(20, 33, 61, 0.14); } }
.field h1 { font-size: clamp(36px, 9vw, 68px); margin: 22px 0 20px; max-width: min(7em, calc(100% - clamp(80px, 16vw, 220px))); }

/* The two calls side by side. The better one sits in a navy block. */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); max-width: 760px; }
.answers > div { padding: 12px 14px 14px; outline: var(--rule) solid var(--ink); outline-offset: calc(-1 * var(--rule)); }
.answers > div.best { background: var(--ink); color: #fff; }
.answers .big { margin-top: 8px; font-size: clamp(56px, 9vw, 116px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.verdict { margin-top: 14px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }

/* How each call's games end: navy for a win in regulation, navy stripes for a win in overtime, white for a loss in
   overtime, outlined for a loss in regulation. The two navy pieces together are the win chance above. */
.ends { display: grid; gap: 12px; margin-top: 24px; padding-top: 12px; border-top: var(--rule) solid var(--ink); max-width: 760px; }
.bar { display: flex; height: 44px; margin-top: 6px; outline: 2px solid var(--ink); outline-offset: -2px; }
.bar i { display: grid; place-items: center; min-width: 0; flex-basis: 0; overflow: hidden; font-style: normal; transition: flex-grow 0.25s var(--ease); }
.bar b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar .win { background: var(--ink); color: #fff; }
.bar .otwin, .key .otwin { background: repeating-linear-gradient(135deg, var(--ink) 0 5px, #fff 5px 8px); }
.bar .otwin b { background: var(--ink); color: #fff; padding: 2px 5px; }
.bar .otloss { background: #fff; color: var(--ink); }
.bar .lose { color: var(--ink); }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 14px; height: 14px; outline: 2px solid var(--ink); outline-offset: -2px; }
.key .win { background: var(--ink); }
.key .otloss { background: #fff; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

.panel { background: var(--navy); color: #fff; padding: 24px var(--pad) 28px; }
.soft, .ev.soft { color: var(--navy-soft); }
.panel-title { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; line-height: 1.05; }
.panel .more { display: inline-block; margin-top: 28px; color: #fff; }

.inputs { display: grid; gap: 14px; margin-top: 20px; max-width: 560px; }
.inputs label { display: grid; grid-template-columns: minmax(0, 1fr) 7.2em; align-items: center; gap: 8px 12px; }
.inputs label > .ev { grid-column: 1; }
.inputs .unit { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: baseline; gap: 4px; border: 2px solid #fff; padding: 8px 10px; font-size: 18px; font-weight: 800; color: var(--navy-soft); }
.inputs .unit:focus-within { border-color: var(--orange); }
.inputs input[type="number"] { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: #fff; font: 800 26px var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; outline: 0; -moz-appearance: textfield; }
.inputs input::-webkit-inner-spin-button, .inputs input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* The slider: a white rule with a square orange handle. */
.slide { grid-column: 1; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slide::-webkit-slider-runnable-track { height: 4px; background: #fff; }
.slide::-moz-range-track { height: 4px; background: #fff; }
.slide::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--orange); border: 0; border-radius: 0; }
.slide::-moz-range-thumb { width: 22px; height: 22px; background: var(--orange); border: 0; border-radius: 0; }
.slide:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.even { margin-top: 18px; max-width: 560px; padding: 10px 12px; background: var(--orange); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.even b { font-weight: 800; }
.note { margin-top: 10px; font-size: 14px; max-width: 560px; }

/* The math: each call's four paths, the worked line, the table by 2-point rate, and the seasons. */
.math { padding-top: clamp(40px, 7vw, 72px); }
.math h2 { font-size: clamp(36px, 6vw, 64px); padding-bottom: 14px; border-bottom: var(--rule) solid var(--ink); }
.math .therefore { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(18px, 2vw, 22px); max-width: 36em; color: var(--ink-soft); }
.math .paths { display: grid; gap: clamp(24px, 4vw, 48px); margin-top: clamp(24px, 4vw, 40px); }
.math .paths h3, .math .seasons h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.math .paths table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.math .paths th, .math .paths td { padding: 10px 0; border-top: 1px solid rgba(20, 33, 61, 0.2); text-align: left; vertical-align: baseline; }
.math .paths th { font-weight: 600; font-size: 17px; padding-right: 12px; }
.math .paths tr:first-child th { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-top: var(--rule) solid var(--ink); }
.math .paths td { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 14px; }
.math .paths td.ev, .math .paths tr:first-child th:last-child { text-align: right; padding-right: 0; font-size: 13px; }
.math .paths tr:first-child th:nth-child(2) { padding-right: 14px; }
.math .worked { margin-top: clamp(24px, 4vw, 40px); font-size: clamp(26px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.math .worked .hl { background: var(--orange); padding: 0 0.12em; }
.math .odds { margin-top: clamp(32px, 5vw, 56px); background: var(--orange); color: var(--ink); padding: clamp(20px, 4vw, 40px); }
.math .odds h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; }
.math .odds table { width: 100%; border-collapse: collapse; margin: 18px 0 20px; }
.math .odds th, .math .odds td { padding: 12px 0; border-top: 2px solid rgba(20, 33, 61, 0.5); text-align: left; vertical-align: baseline; }
.math .odds th { font-weight: 700; font-size: 17px; padding-right: 16px; }
.math .odds tr:first-child th { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-top: 0; }
.math .odds tr:first-child th + th { text-align: right; padding-right: 0; }
.math .odds td { text-align: right; font-size: clamp(18px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.math .odds tr.you th, .math .odds tr.you td { background: var(--ink); color: #fff; }
.math .odds tr.you th { padding-left: 10px; }
.math .odds tr.you td:last-child { padding-right: 10px; }
.math .odds p { max-width: 40em; }
.math .seasons { margin-top: clamp(32px, 5vw, 56px); }
.math .ladder { list-style: none; margin: 14px 0 0; padding: 0; max-width: 900px; }
.math .ladder li { display: grid; grid-template-columns: 5em 6em 1fr; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(20, 33, 61, 0.15); }
.math .ladder b { font-size: clamp(17px, 2vw, 22px); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.math .ladder i { display: block; height: 14px; min-width: 2px; background: var(--ink); }
.math .ladder .last i { background: var(--orange); }
.math .source { margin-top: 20px; font-size: 15px; color: var(--ink-soft); max-width: 60em; }

@media (min-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr); min-height: 100svh; }
  .field { padding-bottom: 36px; }
  .field h1 { margin: 30px 0 0; }
  .answers { margin-top: 28px; }
  .ends { margin-bottom: auto; }
  .panel { padding-top: 76px; padding-bottom: 36px; display: flex; flex-direction: column; }
  .panel .more { margin-top: auto; padding-top: 28px; align-self: flex-start; }
  .math .paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .answers .big { font-size: clamp(48px, 15vw, 72px); }
  .math .ladder li { grid-template-columns: 3.6em 5em 1fr; gap: 8px; }
  .math .paths th { font-size: 15px; }
}
