/* Kick for the Posts only. Shared rules are in ../shared/base.css. The picture (sky, stand, grass) is scenery; the
   bar, the cards and the buttons over it stay flat. The rugby family's colour marks the kicker line and the card. */
.home-head .kicker { color: var(--rugby); }
.age-note { font-size: 17px; font-weight: 600; margin: 0 0 6px; padding-left: 12px; border-left: 4px solid var(--rugby); }
.age-note:empty { display: none; }
.today-line { font-size: 18px; font-weight: 600; margin: 20px 0 14px; }
.needs { margin-top: 20px; }

/* the scoring card: the five ways to score, points big */
.score-card { margin-top: 28px; padding: 14px 16px 4px; border: 2px solid var(--rugby); border-radius: 16px; }
.score-head { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rugby); line-height: 1.2; }
.score-list { margin: 8px 0 0; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--edge); }
.score-row:last-child { border-bottom: 0; }
.score-row dt { font-weight: 800; font-size: 18px; }
.score-points { grid-row: span 2; grid-column: 2; margin: 0; font-size: 34px; font-weight: 800; line-height: 1; color: var(--rugby); align-self: center; }
.score-how { margin: 2px 0 0; grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.4; }
.score-card .note { margin: 8px 0 10px; }

/* ---- kicking: the play screen covers the whole screen ---- */
#play:not([hidden]) {
  position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--ground);
  padding: calc(env(safe-area-inset-top, 0px) + 4px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px));
}
#play > * { width: 100%; max-width: 980px; margin-inline: auto; }
.kbar { display: flex; align-items: center; gap: 2px 14px; }
.kbar .stat { margin: 0; display: flex; flex-direction: column; }
.kbar .label { font-size: 12px; }
.kbar .num { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
#pos { color: var(--accent); }
.kbar #mute { margin-left: auto; }
#mute[aria-pressed="true"] { text-decoration: line-through; color: var(--muted); }
.practice-tag { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--rugby); max-width: 12em; line-height: 1.25; }
.kick-what { margin: 4px 0 2px; font-size: 15px; line-height: 1.35; }
.kick-what b { font-weight: 800; color: var(--rugby); }
.kick-what b:focus { outline: none; }
.kick-wind { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field { position: relative; flex: 1; min-height: 120px; border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kick-verdict { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0 auto; max-width: 520px; padding: 10px 14px; border-radius: 12px; background: var(--raised); border: 2px solid var(--edge); }
.kick-verdict.right { border-style: solid; border-color: var(--right); }
.kick-verdict.wrong { border-style: dashed; border-color: var(--wrong); }
.kick-verdict .verdict-head { font-size: 26px; margin: 0 0 4px; }
.kick-verdict.right .verdict-head { color: var(--right); }
.kick-verdict.wrong .verdict-head { color: var(--wrong); }
.verdict-line { margin: 0; font-size: 15px; line-height: 1.4; }
.kick-controls { display: flex; gap: 10px; margin-top: 8px; }
.kick-controls .btn { min-height: 54px; }
.kick-controls .aim { flex: 0 0 64px; font-size: 20px; }
#kick { flex: 1; }
html:has(#play:not([hidden])), html:has(#play:not([hidden])) body { overflow: hidden; overscroll-behavior: none; }

/* the day's kicks on the result screen */
.kick-log { margin: 8px 0 24px; padding-left: 28px; }
.kick-log li { padding: 6px 0; border-bottom: 1px solid var(--edge); }
.kick-log li.kick-made::marker { color: var(--right); }
.kick-log li.kick-missed { color: var(--muted); }

@media (max-height: 600px) {
  .kick-what { font-size: 14px; }
  .kbar .num { font-size: 19px; }
  .kick-controls .btn { min-height: 48px; }
  .kick-verdict .verdict-head { font-size: 22px; }
}
