:root {
  --paper: #f1f6e9;        /* scorecard stock: pale green-white */
  --ink: #17382b;          /* scorecard print green */
  --rule: #9fbfa3;
  --pencil: #3d4148;
  --flag: #d2283a;
  --board: #143d2b;        /* tee-sign green */
  --board-2: #1c4e38;
  --paint: #f4f3e6;        /* painted lettering */
  --marker: #f2c230;       /* tee marker yellow */
  --rough: #2f6b45;
  --print: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--rough);
  color: var(--ink);
  font-family: var(--print);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }

/* ---------- the course ---------- */
#course { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#course .polaroid { cursor: zoom-in; }
#course .polaroid:focus-visible { outline: none; }
#course .polaroid:focus-visible .frame { stroke: var(--marker); stroke-width: 8; }
body.on-card #course { filter: saturate(.85) brightness(.82); }
#course { transition: filter .6s ease; }

/* ---------- the tee box ---------- */
#scene { position: fixed; inset: 0; overflow: hidden; background: #0c1f15; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
#scene.in { opacity: 1; pointer-events: auto; }
#scene-img {
  position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; object-fit: cover;
  transform: translate(var(--px, 0), var(--py, 0)) scale(1.22); transition: transform 1.8s cubic-bezier(.16,.7,.2,1);
}
#scene.in #scene-img { transform: translate(var(--px, 0), var(--py, 0)) scale(1); }
#scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(to top, rgba(6, 22, 13, .55), rgba(6, 22, 13, 0)); pointer-events: none; }
#snaps { position: absolute; z-index: 1; left: 28px; bottom: 104px; display: flex; flex-wrap: wrap-reverse; gap: 14px 6px; max-width: calc(100vw - min(430px, 40vw) - 90px); }
.snap {
  appearance: none; border: 0; background: #fff; padding: 8px 8px 4px; width: 150px; cursor: zoom-in; position: relative;
  transform: rotate(var(--r)); box-shadow: 0 10px 22px rgba(4, 16, 9, .5); transition: transform .2s ease;
}
.snap:hover, .snap:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.06); z-index: 2; }
.snap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap span { display: block; font-family: var(--hand); color: var(--pencil); font-size: 21px; line-height: 1.1; padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap i { position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: rgba(255,255,255,.92); }
.snap i::after { content: ""; position: absolute; left: 15px; top: 11px; border: 9px solid transparent; border-left: 14px solid var(--ink); border-right: 0; }

/* ---------- the scorecard ---------- */
#card-wrap {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
  transition: transform .7s cubic-bezier(.6,0,.3,1), opacity .5s ease;
}
body:not(.on-card) #card-wrap { transform: translateY(110%) rotate(4deg); opacity: 0; pointer-events: none; }

/* who is in for VI: a starter's board standing beside the card */
#card-wrap { grid-template-columns: 232px minmax(0, 980px); justify-content: center; align-content: center; place-items: stretch; gap: 26px; }
#roster {
  min-height: 0; display: flex; flex-direction: column; gap: 10px;
  background: var(--board); color: var(--paint); border: 3px solid #0d2c1e; border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(244, 243, 230, .16), 0 24px 50px rgba(6, 24, 14, .55);
  padding: 20px 16px 16px; transform: rotate(.8deg);
  animation: card-in .9s .12s cubic-bezier(.2,.9,.25,1) both;
}
#roster h2 { margin: 0; font-size: 34px; line-height: 1; font-weight: 900; font-stretch: 118%; }
#roster-count { margin: 0; font-size: 16px; opacity: .85; }
#roster-list { list-style: none; margin: 4px 0 0; padding: 0; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 4px; counter-reset: in; }
#roster-list li {
  counter-increment: in; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px;
  background: var(--paint); color: #111c16; border-radius: 3px; padding: 6px 10px; font-weight: 700; font-size: 17px; overflow-wrap: anywhere;
}
#roster-list li::before { content: counter(in); font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
#roster-signup {
  appearance: none; border: 0; border-radius: 6px; background: var(--marker); color: #1b1a10;
  font: inherit; font-weight: 800; font-size: 17px; padding: 12px 10px; cursor: pointer; box-shadow: 0 4px 0 #a9851a;
}
#roster-signup:hover { transform: translateY(2px); box-shadow: 0 2px 0 #a9851a; }
#roster-signup:active { transform: translateY(4px); box-shadow: none; }
@media (max-width: 1100px) {
  #card-wrap { grid-template-columns: minmax(0, 980px); grid-auto-rows: max-content; align-content: start; overflow: auto; gap: 14px; }
  #roster { min-height: auto; transform: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; }
  #roster h2 { font-size: 24px; }
  #roster-count { flex: 1; }
  #roster-list { order: 3; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; overflow: visible; margin: 0; }
  #roster-list:empty { display: none; }
  #roster-list li { grid-template-columns: auto; padding: 4px 10px; font-size: 16px; }
  #roster-list li::before { content: none; }
  #roster-signup { padding: 9px 14px; font-size: 16px; }
}

#card {
  width: min(980px, 100%);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 2px 0 #d9e3cd, 0 30px 60px rgba(8, 30, 18, .5);
  transform: rotate(-1.2deg);
  padding: 30px 34px 22px;
  animation: card-in .9s cubic-bezier(.2,.9,.25,1) both;
}
@keyframes card-in { from { transform: translateY(40px) rotate(-5deg); opacity: 0; } }

/* the announcement: a red tournament notice clipped to the top of the card */
#announce {
  appearance: none; border: 0; width: 100%; margin: 0 0 22px; padding: 14px 16px 14px 18px; border-radius: 6px;
  background: var(--flag); color: #fff; display: flex; align-items: center; gap: 16px; text-align: left;
  box-shadow: 0 6px 0 #9c1c2a; transition: transform .12s ease, box-shadow .12s ease;
}
#announce:hover { transform: translateY(2px); box-shadow: 0 4px 0 #9c1c2a; }
#announce:active { transform: translateY(6px); box-shadow: 0 0 0 #9c1c2a; }
.an-flag { flex: none; display: grid; }
.an-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.an-text b { font-size: clamp(20px, 2.6vw, 30px); font-weight: 900; font-stretch: 118%; letter-spacing: -.01em; }
.an-text span { font-size: 17px; font-weight: 600; margin-top: 4px; }
.an-go { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--flag); font-weight: 800; padding: 10px 16px; border-radius: 999px; font-size: 16px; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.card-head h1 {
  margin: 0; font-size: clamp(28px, 4.6vw, 54px); line-height: .95;
  font-stretch: 125%; font-weight: 900; letter-spacing: -.02em;
}
.card-head p { margin: 0; font-size: 17px; max-width: 30ch; }

.card-grid { display: grid; grid-template-columns: 96px repeat(6, 1fr); border: 2px solid var(--ink); }
.card-grid .labels, .card-grid .col { display: grid; grid-template-rows: 62px 40px 48px 56px 56px; }
.card-grid .labels > div, .card-grid .col > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-bottom: 1px solid var(--rule); padding: 0 6px;
}
.card-grid .labels > div:last-child, .card-grid .col > span:last-child { border-bottom: 0; }
.card-grid .labels > div { justify-content: flex-start; padding-left: 12px; font-weight: 600; font-size: 14px; }
.card-grid .labels > div:first-child, .card-grid .col > span:first-child { background: var(--ink); color: var(--paper); border-bottom: 0; }
.card-grid .col {
  appearance: none; border: 0; border-left: 1px solid var(--ink); background: transparent; padding: 0;
  position: relative; transition: background .15s ease;
}
.card-grid .col .num { font-size: 34px; font-weight: 900; font-stretch: 125%; }
.card-grid .col .yr { font-weight: 600; font-variant-numeric: tabular-nums; }
.card-grid .col .where { font-size: 15px; line-height: 1.1; font-stretch: 88%; font-weight: 500; }
.card-grid .col .pencil { font-size: 30px; }
.card-grid .col:hover, .card-grid .col:focus-visible { background: #e2edd3; }
.card-grid .col:hover .num, .card-grid .col:focus-visible .num { background: var(--flag); }
.card-grid .col .ring { position: absolute; left: 50%; top: 31px; width: 58px; height: 50px; transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none; opacity: 0; }
.card-grid .col.next-up .ring { opacity: 1; }

.pencil { font-family: var(--hand); color: var(--pencil); font-weight: 400; line-height: 1; }

.card-foot { display: flex; gap: 28px; margin-top: 16px; font-size: 14px; flex-wrap: wrap; }
.card-foot div { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding: 0 6px 2px 0; min-width: 150px; }
.card-foot b { font-size: 28px; }

#announce { cursor: default; }
#announce:hover, #announce:active { transform: none; box-shadow: 0 6px 0 #9c1c2a; }
.an-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
button.an-go { appearance: none; border: 2px solid #fff; margin: 0; cursor: pointer; }
button.an-go.ghost { background: transparent; color: #fff; }
button.an-go:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }

/* sign-up */
.when-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.signup-cta, #entry-submit, .entry-btn {
  appearance: none; border: 0; background: var(--marker); color: #1b1a10; font-weight: 800; font-size: 17px; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 4px 0 #b38a12; text-decoration: none; display: inline-block; cursor: pointer;
}
.signup-cta:hover, #entry-submit:hover, .entry-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b38a12; }
#entry { position: fixed; inset: 0; z-index: 9; background: rgba(6, 20, 13, .82); display: grid; place-items: center; padding: 16px; overflow: auto; }
#entry[hidden] { display: none; }
#entry-form, #entry-done { width: min(560px, 100%); background: var(--paper); color: var(--ink); border-radius: 6px; padding: 26px 28px 24px; box-shadow: 0 30px 70px rgba(0,0,0,.55); display: grid; gap: 16px; }
#entry-form[hidden], #entry-done[hidden] { display: none; }
#entry header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#entry h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 900; font-stretch: 122%; letter-spacing: -.02em; line-height: 1; }
#entry-close { appearance: none; border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.entry-when { margin: -6px 0 0; font-size: 17px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 6px; }
.field input:not([type=radio]):not([type=checkbox]) { font: inherit; font-size: 18px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 3px; }
#entry-error { margin: 0; color: #a01322; font-weight: 700; }
#entry-submit { justify-self: start; }
#entry-submit:disabled { opacity: .6; }
#entry-done p { margin: 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
#entry-done-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* back of the card */
.flip { appearance: none; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 15px; margin-left: auto; align-self: center; }
.flip:hover { background: var(--ink); color: var(--paper); }
#card { transition: transform .22s ease-in; }
#card.turning { transform: rotate(-1.2deg) rotateY(90deg); }
.face-back { display: none; }
#card.flipped > :not(.face-back) { display: none; }
#card.flipped > .face-back { display: block; }
.face-back .card-head { margin-bottom: 8px; align-items: center; }
.att-key { margin: 0 0 14px; font-size: 16px; }
.att-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.att { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; align-self: start; }
.att th, .att td { border-bottom: 1px solid var(--rule); height: 30px; padding: 0 4px; text-align: center; }
.att thead th { background: var(--ink); color: var(--paper); font-weight: 800; font-stretch: 112%; border-bottom: 0; height: 32px; }
.att th:first-child { text-align: left; padding-left: 10px; font-weight: 600; white-space: nowrap; }
.att td.pencil { font-size: 25px; width: 34px; }
.att .m-W { color: var(--flag); }
.att .m-S { opacity: .55; }
.att .vi { border-left: 2px solid var(--ink); width: 44px; }
.att thead .vi { border-left-color: var(--paper); }
.att .trips { font-weight: 900; font-stretch: 112%; width: 52px; }
.att { table-layout: fixed; }
.att td.vi.pencil { width: 44px; }
.att thead th:not(:first-child) { width: 34px; }
.att thead th.vi { width: 44px; }
.att thead th:last-child { width: 52px; }

.whos-in { margin-top: 12px; padding-top: 12px; border-top: 2px solid rgba(244,243,230,.35); font-size: 17px; }
.whos-in b { font-weight: 800; }
.whos-in p { margin: 4px 0 0; opacity: .8; }
.whos-in ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.whos-in li { background: var(--paint); color: var(--board); border-radius: 3px; padding: 3px 10px; font-weight: 700; }

/* ---------- tee sign ---------- */
#sign {
  position: fixed; top: 22px; right: 22px; bottom: 96px; width: min(430px, 40vw);
  background: var(--board); color: var(--paint);
  border-radius: 10px; border: 3px solid #0d2c1e;
  box-shadow: inset 0 0 0 2px rgba(244, 243, 230, .16), 0 24px 50px rgba(6, 24, 14, .55);
  padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px;
  transform: translateX(calc(100% + 40px)); transition: transform .65s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
#sign.open { transform: none; }
#sign.wide { width: min(880px, 56vw); }

.sign-top { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; }
.sign-num {
  grid-row: span 2; width: 92px; height: 92px; border-radius: 50%; background: var(--paint); color: var(--board);
  display: grid; place-items: center; font-size: 56px; font-weight: 900; font-stretch: 125%; line-height: 1;
}
.sign-top h2 { margin: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1; font-weight: 800; font-stretch: 112%; align-self: end; }
.sign-top p { margin: 0; align-self: start; font-size: 16px; opacity: .85; }
.sign-line { margin: 0; font-size: 18px; line-height: 1.3; }

.result { display: flex; align-items: center; gap: 12px; background: var(--board-2); border-radius: 6px; padding: 10px 14px; }
.result .flag { flex: none; }
.result b { font-weight: 800; font-size: 20px; }
.result .sc { margin-left: auto; font-size: 30px; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tabs { display: flex; gap: 6px; }
.tabs button {
  appearance: none; border: 2px solid rgba(244,243,230,.35); background: transparent; color: var(--paint);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.tabs button[aria-selected="true"] { background: var(--paint); color: var(--board); border-color: var(--paint); }
.pane { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.pane[hidden] { display: none; }

.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { padding: 5px 0; border-top: 1px solid rgba(244,243,230,.2); font-size: 17px; }
.team .won-tag { font-size: 13px; font-weight: 700; background: var(--marker); color: var(--board); padding: 2px 8px; border-radius: 4px; }

/* hand-operated leaderboard: white slats on the green board */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board li {
  display: grid; grid-template-columns: 30px 1fr 30px 56px; align-items: center; gap: 8px;
  background: var(--paint); color: #111c16; border-radius: 3px; padding: 5px 10px; font-weight: 700; font-size: 17px;
}
.board .pos { font-variant-numeric: tabular-nums; opacity: .6; font-weight: 600; }
.board .chip { width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--board); }
.board .chip.alt { background: var(--flag); }
.board .pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 900; }

/* how it started: the group chat, on the board */
.origin p { margin: 0; font-size: 17px; line-height: 1.35; }
.origin time { display: block; text-align: center; font-size: 14px; opacity: .7; margin: 14px 0 8px; }
.chat { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat li { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.chat li.me { align-self: flex-end; align-items: flex-end; }
.chat b { font-size: 13px; font-weight: 700; opacity: .75; margin: 8px 6px 2px; }
.chat span { background: var(--paint); color: #111c16; border-radius: 14px; padding: 7px 12px; font-size: 16px; line-height: 1.3; }
.chat li.me span { background: var(--marker); }

.courses { list-style: none; margin: 0; padding: 0; }
.courses li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(244,243,230,.2); font-size: 17px; }
.courses li:first-child { border-top: 0; }
.courses span { opacity: .75; }
.courses b { font-weight: 700; }
.photo-note { margin: 12px 0 0; font-size: 15px; opacity: .75; }

.film { position: relative; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; flex: none; }
.film video { width: 100%; height: 100%; display: block; }
.when { font-size: clamp(30px, 3.4vw, 52px); font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--marker); margin: 0; }

/* ---------- bottom strip ---------- */
#strip {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
  display: flex; align-items: stretch; gap: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 0 14px 30px rgba(6, 24, 14, .45); transition: transform .6s cubic-bezier(.2,.8,.2,1); overflow: hidden;
}
#strip.open { transform: translate(-50%, 0); }
#strip button { appearance: none; border: 0; background: transparent; padding: 0 16px; min-height: 52px; font-weight: 700; display: grid; place-items: center; }
#strip button:hover { background: #e2edd3; }
#strip button:disabled { opacity: .3; cursor: default; }
#to-card { background: var(--ink) !important; color: var(--paper); }
#strip ol { list-style: none; display: flex; margin: 0; padding: 0; }
#strip ol button { width: 52px; padding: 0; font-size: 22px; font-weight: 900; font-stretch: 125%; border-left: 1px solid var(--rule); position: relative; }
#strip ol button[aria-current="true"] { background: var(--ink); color: var(--paper); }
#next { border-left: 1px solid var(--rule) !important; }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; background: rgba(6, 20, 13, .9); display: grid; place-items: center; padding: 24px; z-index: 10; }
#lightbox[hidden] { display: none; }
#lb-fig { margin: 0; background: #fff; padding: 14px 14px 10px; border-radius: 3px; max-width: min(1200px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
#lb-fig img, #lb-fig video { display: block; max-width: 100%; max-height: calc(100vh - 170px); margin: 0 auto; }
#lb-fig figcaption { font-family: var(--hand); color: var(--pencil); font-size: 30px; text-align: center; padding-top: 6px; }
#lb-close { position: absolute; top: 18px; right: 18px; appearance: none; border: 2px solid var(--paint); background: transparent; color: var(--paint); border-radius: 999px; padding: 8px 18px; font-weight: 700; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  #card-wrap { padding: 12px; align-items: start; overflow: auto; }
  #card { padding: 20px 16px 16px; transform: rotate(-.6deg); margin: auto 0; }
  .card-head { margin-bottom: 14px; }
  #announce { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; padding: 12px 14px; }
  .an-text { flex: 1; }
  .an-actions { margin-left: 0; width: 100%; }
  .an-actions .an-go { flex: 1; justify-content: center; padding: 10px 8px; font-size: 15px; white-space: nowrap; }
  .field-row { grid-template-columns: 1fr; }
  #entry-form, #entry-done { padding: 20px 18px; }
  .card-head p { font-size: 16px; }
  /* the card turns on its side: one row per hole */
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .labels { display: none; }
  .card-grid .col { grid-template-rows: none; grid-template-columns: 46px 50px 1fr 86px 80px; border-left: 0; border-top: 1px solid var(--ink); min-height: 54px; }
  .card-grid .col:first-of-type { border-top: 0; }
  .card-grid .col > span { border-bottom: 0; }
  .card-grid .col > span:first-child { height: 100%; }
  .card-grid .col .num { font-size: 26px; }
  .card-grid .col .where { justify-content: flex-start; text-align: left; font-size: 16px; }
  .card-grid .col .pencil { font-size: 23px; white-space: nowrap; }
  .card-grid .col .ring { display: none; }
  .card-foot { gap: 14px; }
  .card-foot div { min-width: 0; }
  .card-foot div:nth-child(3) { display: none; }
  .att-cols { grid-template-columns: 1fr; }
  .att-cols .att + .att thead { display: none; }
  .att th, .att td { height: 28px; }

  #sign, #sign.wide {
    top: auto; left: 8px; right: 8px; bottom: 76px; width: auto; height: 54vh; padding: 16px 16px 14px; gap: 10px;
    transform: translateY(calc(100% + 100px));
  }
  #sign.open { transform: none; }
  .sign-num { width: 60px; height: 60px; font-size: 36px; }
  .sign-top { gap: 2px 12px; }
  .sign-line { font-size: 16px; }
  .result .sc { font-size: 24px; }
  .team li, .board li, .courses li { font-size: 16px; }
  .team li, .courses li { padding: 4px 0; }
  .courses li { grid-template-columns: 8.5em 1fr; }
  .team h3 { font-size: 16px; flex-wrap: wrap; }
  #strip { bottom: 10px; width: calc(100% - 16px); }
  #snaps { left: 8px; right: 8px; bottom: calc(54vh + 88px); max-width: none; flex-wrap: nowrap; overflow-x: auto; padding: 14px 6px 8px; gap: 8px; scrollbar-width: none; }
  .snap { width: 96px; flex: none; padding: 5px 5px 2px; }
  .snap span { font-size: 15px; }
  #scene-img { object-position: 50% 78% !important; height: 60%; top: 0; }
  #scene::after { height: 70%; background: linear-gradient(to top, #0c1f15 55%, rgba(12,31,21,0)); }
  #strip ol { flex: 1; }
  #strip ol li { flex: 1; display: flex; }
  #strip ol button { flex: 1; width: 100%; min-width: 0; }
  #strip button { padding: 0 10px; }
  #to-card { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #card, #roster, #card-wrap, #sign, #strip, #course, #scene, #scene-img { animation: none; transition: none; }
}
