/* The app shell for the stable pages: one phone-width column on the pitch, a top bar, a scrolling
   body and a foot that stays above the keyboard. Components come from matchday.css. */
html, body { height: 100%; }
body { margin: 0; background: var(--grass-dark); }
.app { position: relative; max-width: 480px; min-height: 100%; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--ground); overflow-x: hidden; }
@media (min-width: 520px) { .app { border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); } }
.app.chalk-bg { background: var(--chalk); }
.app > .top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.app > main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.app > .foot { position: sticky; bottom: 0; z-index: 10; display: grid; gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(transparent, rgb(15 81 50 / .45) 30%); }
.grow { flex: 1; }
.btn.icon.top-btn { width: 44px; min-height: 44px; }
.section-label { font: 900 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / .4); }
.hint-line { font: 700 13px/1.4 var(--f-body); color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / .35); text-align: center; margin: 0; }
.chalk-bg .hint-line, .chalk-bg .section-label { color: var(--ink-2); text-shadow: none; }
.avatar.photo { background: var(--chalk); }
.player-card .chip.clubs { white-space: normal; max-width: 100%; }
.player-card .credit { font: 600 11px/1.3 var(--f-body); color: var(--ink-3); }
.result-panel { position: relative; padding: 16px 140px 16px 16px; display: grid; gap: 6px; min-height: 116px; }
.cards { display: grid; gap: 24px; padding-top: 14px; }
.big-score { display: grid; justify-items: center; gap: 4px; padding: 18px 16px 16px; text-align: center; margin-top: 18px; }
.big-score .n { font: 400 84px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.holes-list { display: grid; gap: 8px; }
.holes-list .hr { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--chalk); border: 3px solid var(--ink); border-radius: 12px; }
.holes-list .h { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font: 400 16px var(--f-display); }
.holes-list .t { min-width: 0; }
.holes-list .t b { display: block; font: 400 15px/1.2 var(--f-display); }
.holes-list .t span { font: 700 12.5px/1.35 var(--f-body); color: var(--ink-2); }
.holes-list .p { font: 400 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.holes-list .hr.ace { background: var(--good-tint); } .holes-list .hr.ace .p { color: var(--good-text); }
.loading { display: grid; place-items: center; gap: 10px; padding: 40px 0; color: #fff; font-weight: 800; }
.loading svg { width: 56px; height: 56px; animation: md-spin 1.2s linear infinite; }
.chalk-bg .loading { color: var(--ink-2); }
.verdict-box { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.nowrap { flex-wrap: nowrap; }
.hello { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hello .name { font: 400 20px/1.1 var(--f-display); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.hello .sub { font: 800 12px/1.2 var(--f-body); color: #fff; }
.modal-host[hidden] { display: none; }
.modal-host { position: fixed; inset: 0; z-index: 40; }
.modal-host .scrim { position: absolute; }
@media (prefers-reduced-motion: reduce) { .loading svg { animation: none; } }
.app > .toast-host { position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); }
