@font-face {
  font-family:'DM Sans';
  src:url('../grid-rush/assets/fonts/DMSans.woff2') format('woff2');
  font-weight:100 1000;
  font-display:swap;
}
@font-face {
  font-family:'Space Grotesk';
  src:url('../grid-rush/assets/fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight:300 700;
  font-display:swap;
}
:root {
  font-family:'DM Sans',system-ui,sans-serif;
  color:#292f29;
  background:#f7f7f2;
  font-synthesis:none;
  --green:#17634f;
  --soft:#e8efe4;
  --muted:#61695e;
  --border:#dce1d5;
  --mono:'Space Grotesk',sans-serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input {
  font:inherit;
}
button {
  cursor:pointer;
}
button,a,input {
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
button:disabled {
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #285b89;
  outline-offset:4px;
}
svg {
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
}
[hidden] {
  display:none!important;
}
.site-top {
  max-width:1180px;
  margin:auto;
  padding:25px 24px;
  min-height:97px;
  display:flex;
  align-items:center;
  gap:30px;
  border-bottom:1px solid var(--border);
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:#272d27;
  font:700 29px var(--mono);
  letter-spacing:-1.9px;
  text-decoration:none;
}
.brand svg {
  width:35px;
  height:30px;
  color:var(--green);
  stroke-width:3;
}
.brand svg circle {
  fill:var(--green);
  stroke:none;
}
.brand-light {
  font-weight:400;
}
.brand-dot,.green {
  color:var(--green);
}
.header-note {
  margin-left:auto;
  font:500 12.1px var(--mono);
  letter-spacing:1.3px;
  color:var(--muted);
}
main {
  max-width:1180px;
  margin:auto;
  padding:0 24px;
}
.intro {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:42px 0 38px;
}
.eyebrow {
  font:600 12.1px var(--mono);
  letter-spacing:1.35px;
  margin:0;
  line-height:1.6;
}
.intro .eyebrow {
  color:var(--green);
  font-size:10px;
}
.spark {
  font-size:18px;
  vertical-align:middle;
  margin-right:6px;
}
h1 {
  font:600 clamp(44px,5.4vw,68px)/1.06 var(--mono);
  letter-spacing:-3.8px;
  margin:17px 0 0;
}
h1 em {
  font-style:normal;
  color:var(--green);
  position:relative;
}
h1 em:after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  height:5px;
  border-top:2px solid var(--green);
  border-radius:50%;
}
.intro-copy {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 5px;
}
.arena {
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:34px;
  align-items:start;
}
.round-info {
  min-width:0;
}
.target-card {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--soft);
  border:1px solid #d9e2d1;
  padding:24px 23px;
  border-radius:16px;
}
.target-card .eyebrow {
  font-size:10px;
  color:#3b6145;
}
.target-number {
  font:500 91px/1 var(--mono);
  letter-spacing:-6px;
  margin:17px 0 13px;
  color:#244e3e;
}
.target-number small {
  font-size:29px;
  letter-spacing:-1px;
  margin-left:7px;
}
.target-card>p:not(.eyebrow):not(.target-number) {
  font-size:12px;
  line-height:1.7;
  color:#50634d;
  margin:0 0 17px;
}
.shape-badge {
  display:inline-block;
  font-size:12.1px;
  font-weight:600;
  line-height:1.5;
  padding:6px 9px;
  background:#ffffffa1;
  border:1px solid #ccd9c5;
  border-radius:99px;
}
.target-art {
  position:absolute;
  width:160px;
  right:-34px;
  bottom:46px;
  color:#3a6c3d;
  opacity:.08;
  stroke-width:7;
  z-index:-1;
}
.how-to-play {
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  margin-top:24px;
  padding:10px 0;
}
.how-to-play summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font:600 12.1px var(--mono);
  letter-spacing:1px;
  list-style:none;
}
.how-to-play summary::-webkit-details-marker {
  display:none;
}
.how-to-play summary span {
  font-size:18px;
  font-weight:400;
}
.how-to-play[open] summary span {
  transform:rotate(45deg);
}
.how-to-play ol {
  padding:0 0 0 23px;
  margin:8px 0 15px;
}
.how-to-play li {
  font-size:12.1px;
  line-height:1.65;
  padding:7px 0 7px 5px;
  color:var(--green);
}
.how-to-play li b {
  display:block;
  color:#333b31;
  font-size:12px;
  font-weight:600;
}
.how-to-play li span {
  display:block;
  color:var(--muted);
  margin-top:3px;
}
.small-note {
  display:flex;
  gap:10px;
  font-size:12.1px;
  line-height:1.8;
  color:var(--muted);
  margin-top:19px;
}
.small-note svg {
  width:15px;
  height:18px;
  flex:none;
  stroke-width:1.7;
  margin-top:3px;
}
.panel {
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:30px;
  min-width:0;
}
.section-index {
  color:var(--green);
  font-size:10px;
}
.section-index>span {
  color:#787f74;
  margin-left:5px;
}
h2 {
  font:500 clamp(25px,3.3vw,36px)/1.13 var(--mono);
  letter-spacing:-1.5px;
  margin:15px 0 10px;
  overflow-wrap:anywhere;
}
.panel-copy {
  font-size:13px;
  line-height:1.75;
  color:var(--muted);
  margin:0 0 24px;
}
.primary-button,.secondary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:52px;
  padding:13px 20px;
  border:1px solid transparent;
  border-radius:10px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
}
.primary-button {
  background:#26352d;
  color:#fffdf4;
}
.primary-button>span {
  font-size:20px;
  margin-left:auto;
}
.primary-button svg {
  width:19px;
  height:19px;
  stroke-width:2;
  margin-left:auto;
}
.primary-button:hover:not(:disabled) {
  background:#174e3d;
}
.primary-button:disabled {
  background:#e6e9e1;
  color:#60695c;
  border-color:#dce1d5;
}
.secondary-button {
  background:transparent;
  border-color:var(--border);
  color:#3c493c;
  margin-top:10px;
}
.secondary-button:hover {
  background:#f4f6ef;
}
.footnote {
  font-size:12.1px;
  line-height:1.7;
  color:var(--muted);
  margin:12px 0 0;
}
.count-control {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:500;
  padding:13px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.count-control>div {
  display:flex;
  align-items:center;
  gap:12px;
}
.count-control button {
  width:44px;
  height:44px;
  border:1px solid var(--border);
  border-radius:50%;
  font-size:22px;
  color:#2f4c3a;
  background:#f7f9f2;
}
.count-control button:disabled {
  opacity:.4;
}
.count-control output {
  font:500 21px var(--mono);
  min-width:18px;
  text-align:center;
}
.player-rows {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px 16px;
  margin:23px 0 25px;
}
.player-row {
  position:relative;
  min-width:0;
}
.player-row label {
  display:flex;
  align-items:center;
  gap:7px;
  font:500 12.1px var(--mono);
  margin-bottom:7px;
  color:#566550;
}
.player-row label i {
  display:block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}
.player-row:nth-child(even) label i {
  background:#bc673b;
}
.player-row input {
  width:100%;
  min-height:46px;
  padding:12px 13px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fafbf6;
  font-size:15px;
  color:#292f29;
}
.shape-list {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding-top:23px;
  margin-top:23px;
  border-top:1px solid var(--border);
}
.shape-list span {
  font-size:12.1px;
  padding:5px 9px;
  border:1px solid var(--border);
  border-radius:99px;
  color:#52614d;
  background:#fafbf6;
}
.handoff-panel {
  text-align:center;
}
.handoff-panel h2 {
  margin-top:19px;
}
.player-monogram {
  display:grid;
  place-items:center;
  border:1px solid #cfdbc4;
  background:var(--soft);
  border-radius:50%;
  width:66px;
  height:66px;
  margin:24px auto 0;
  color:var(--green);
  font:500 28px var(--mono);
}
.handoff-panel .panel-copy {
  max-width:420px;
  margin:0 auto 8px;
}
.line-preview {
  display:block;
  width:100%;
  height:auto;
  max-height:190px;
  margin:5px 0;
  color:var(--green);
}
.locked-note {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:9px 0 23px;
}
.handoff-panel .primary-button {
  justify-content:center;
}
.handoff-panel .primary-button span {
  margin-left:3px;
}
.turn-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.turn-badge {
  padding:6px 11px;
  border:1px solid #d0ddc8;
  background:var(--soft);
  color:#335739;
  border-radius:99px;
  font-size:12.1px;
  max-width:65%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.play-panel-local .panel-copy {
  min-height:46px;
  margin-bottom:15px;
}
.drawing-board {
  background:#fafbf6;
  border:1px solid var(--border);
  border-radius:13px;
  padding:14px 15px 8px;
}
.line-topline,.line-bottomline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  font:500 10px var(--mono);
  letter-spacing:.8px;
  color:#6c7764;
  line-height:1.6;
}
.line-topline>span:last-child {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  white-space:nowrap;
}
.line-topline i {
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--green);
}
.line-scene {
  padding:45px 10px;
}
.path-stage {
  position:relative;
  aspect-ratio:1000/420;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  cursor:crosshair;
}
.path-stage.is-closed {
  max-width:400px;
  margin:0 auto;
}
.path-stage svg {
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.path-base {
  stroke:#84917d;
  stroke-width:6;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  vector-effect:non-scaling-stroke;
}
.path-selection {
  stroke:var(--green);
  stroke-width:9;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  vector-effect:non-scaling-stroke;
}
.end-cap {
  fill:#6c7d65;
  stroke:#fafbf6;
  stroke-width:1.5;
  vector-effect:non-scaling-stroke;
}
.marker {
  position:absolute;
  width:44px;
  height:44px;
  transform:translate(-50%,-50%);
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor:grab;
  z-index:1;
  touch-action:none;
  color:var(--green);
}
.marker:active {
  cursor:grabbing;
}
.marker span {
  display:grid;
  place-items:center;
  position:absolute;
  inset:12px;
  border-radius:50%;
  background:#fff;
  border:2px solid var(--green);
  font:700 10px var(--mono);
  box-shadow:0 2px 5px #26352d22;
  transition:background 120ms,scale 160ms;
}
.marker-end span {
  background:var(--green);
  color:#fff;
}
.marker-start:after,.marker-end:after {
  content:'START';
  position:absolute;
  font:600 10px var(--mono);
  letter-spacing:1px;
  white-space:nowrap;
  left:50%;
  transform:translateX(-50%);
  bottom:40px;
  background:#fafbf6;
  padding:3px 5px;
  border-radius:4px;
}
.marker-end:after {
  content:'END';
  bottom:auto;
  top:40px;
}
.marker.is-active {
  z-index:3;
}
.marker.is-active span {
  scale:1.12;
}
.marker.is-focused span {
  outline:3px solid #285b89;
  outline-offset:4px;
}
.marker:focus-visible {
  outline:none;
}
.line-bottomline {
  letter-spacing:.45px;
  flex-wrap:wrap;
}
.text-button {
  background:transparent;
  border:0;
  padding:8px 0;
  min-height:44px;
  font-size:12.1px;
  font-weight:500;
  color:#4e634a;
  letter-spacing:0;
}
.text-button span {
  font-size:16px;
  margin-left:6px;
}
.closed-controls {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0;
}
.closed-controls button {
  flex:1;
  min-height:44px;
  border:1px solid var(--border);
  border-radius:9px;
  padding:9px 12px;
  background:#fafbf6;
  color:#335739;
  font-size:12px;
}
.closed-controls button[aria-pressed="true"] {
  background:var(--soft);
  border-color:var(--green);
  box-shadow:inset 0 0 0 1px var(--green);
}
.closed-controls button:disabled {
  opacity:.45;
  cursor:default;
}
.point-controls {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}
.point-control {
  position:relative;
  border-radius:9px;
}
.point-control:focus-within {
  outline:3px solid #285b89;
  outline-offset:3px;
}
.point-control button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  width:100%;
  padding:9px 6px;
  border-radius:9px;
  border:1px solid var(--border);
  background:#fafbf6;
  color:#52614d;
  font-size:12px;
}
.point-control button[aria-pressed=true] {
  background:var(--soft);
  border-color:#a5bd9b;
  color:#264f3a;
}
.point-control button>span:last-child {
  margin-left:auto;
  font-size:15px;
  padding-right:5px;
}
.point-letter {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  border:1px solid #afc0a7;
  font:600 10px var(--mono);
}
.keyboard-help {
  font-size:12.1px;
  color:var(--muted);
  line-height:1.65;
  margin:12px 0 19px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.winner-icon {
  width:58px;
  height:58px;
  stroke-width:2.5;
  color:var(--green);
  margin-top:19px;
}
.result-panel h2 {
  margin-top:9px;
}
.result-reference {
  background:#f3f7ee;
  border:1px solid #dce6d2;
  border-radius:12px;
  padding:14px 17px;
  margin:18px 0 24px;
}
.result-reference>div {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  color:#2b553b;
  font-size:12px;
}
.result-reference>div span {
  font-size:12.1px;
  font-weight:400;
}
.result-reference svg {
  display:block;
  width:100%;
  height:auto;
  max-height:185px;
  margin:4px 0;
}
.result-reference p {
  font-size:12.1px;
  color:#586a50;
  line-height:1.6;
  margin:4px 0;
}
.standings-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.standings-heading h3 {
  font-size:13px;
  font-weight:600;
  margin:0;
}
.standings-heading>span {
  font:500 10px var(--mono);
  letter-spacing:.8px;
  color:var(--muted);
}
#standings {
  list-style:none;
  margin:7px 0 0;
  padding:0;
}
.result-row {
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:17px 0;
  border-bottom:1px solid var(--border);
}
.place {
  font:500 12px var(--mono);
  color:#819076;
}
.result-row.winner .place {
  display:grid;
  place-items:center;
  background:#e8eecf;
  color:#537140;
  width:26px;
  height:28px;
  border-radius:7px;
}
.result-person strong {
  display:block;
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.result-person small {
  display:block;
  font-size:12.1px;
  color:var(--muted);
  line-height:1.7;
  margin-top:4px;
}
.result-score {
  text-align:right;
}
.result-score strong {
  font:500 24px var(--mono);
  letter-spacing:-1px;
  display:block;
}
.result-score small {
  font-size:10px;
  color:var(--muted);
}
.win-tag {
  font:600 10px var(--mono);
  letter-spacing:.5px;
  color:var(--green);
  margin-left:7px;
}
.result-panel>.primary-button {
  margin-top:24px;
}
.site-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  border-top:1px solid var(--border);
  margin-top:39px;
  padding:23px 0 calc(27px + env(safe-area-inset-bottom));
  font-size:12.1px;
  color:var(--muted);
  line-height:1.7;
}
.site-footer>span:last-child {
  white-space:nowrap;
}
.noscript-note {
  padding:24px;
  text-align:center;
}
@media(max-width:900px) {
  .header-note {
    display:none;
  }
  .site-top {
    justify-content:space-between;
  }
  .arena {
    grid-template-columns:220px minmax(0,1fr);
    gap:22px;
  }
  .target-card {
    padding:21px 18px;
  }
  .target-number {
    font-size:79px;
  }
  .intro {
    padding-top:32px;
  }
  .intro-copy {
    font-size:12.1px;
    max-width:250px;
  }
  .panel {
    padding:24px;
  }
  .standings-heading>span {
    display:none;
  }
}
@media(max-width:650px) {
  .site-top {
    margin:0 16px;
    padding:17px 0;
    min-height:82px;
  }
  .brand {
    font-size:27px;
  }
  .brand svg {
    width:30px;
  }
  main {
    padding:0 16px;
  }
  .intro {
    padding:26px 0 28px;
    display:block;
  }
  .intro .eyebrow {
    font-size:10px;
    letter-spacing:.8px;
  }
  h1 {
    font-size:48px;
    letter-spacing:-2.8px;
    margin-top:12px;
  }
  .intro-copy {
    font-size:12px;
    max-width:none;
    margin-top:18px;
  }
  .intro-copy br {
    display:none;
  }
  .arena {
    display:flex;
    flex-direction:column;
    gap:20px;
  }
  .round-info,.game-stage {
    width:100%;
  }
  .target-card {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:5px 16px;
    padding:17px 19px;
  }
  .target-card .eyebrow {
    font-size:10px;
  }
  .target-number {
    grid-column:2;
    grid-row:1/4;
    font-size:68px;
    margin:0;
    letter-spacing:-4px;
  }
  .target-number small {
    font-size:23px;
    margin-left:4px;
  }
  .target-card>p:not(.eyebrow):not(.target-number) {
    font-size:12.1px;
    margin:0;
    line-height:1.6;
  }
  .target-card>p br {
    display:none;
  }
  .shape-badge {
    justify-self:start;
    font-size:10px;
    padding:4px 8px;
  }
  .target-art {
    bottom:-30px;
    right:15px;
    width:180px;
  }
  .how-to-play {
    margin-top:12px;
    padding:4px 0;
  }
  .how-to-play ol {
    margin-top:0;
  }
  .small-note {
    display:none;
  }
  .panel {
    padding:23px 19px;
    border-radius:15px;
  }
  h2 {
    font-size:28px;
    letter-spacing:-1.15px;
  }
  .panel-copy {
    font-size:12px;
    margin-bottom:19px;
  }
  .player-rows {
    gap:13px 10px;
    margin:19px 0 22px;
  }
  .player-row input {
    font-size:16px;
    padding:11px;
  }
  .count-control {
    font-size:12px;
  }
  .count-control>div {
    gap:9px;
  }
  .shape-list {
    padding-top:18px;
    margin-top:20px;
  }
  .shape-list span {
    font-size:10px;
    padding:5px 8px;
  }
  .drawing-board {
    padding:13px 9px 5px;
  }
  .line-scene {
    padding:42px 5px;
  }
  .line-topline {
    font-size:10px;
    letter-spacing:.4px;
  }
  .line-topline>span:last-child {
    font-size:10px;
  }
  .line-bottomline {
    font-size:10px;
    gap:0;
  }
  .text-button {
    font-size:12.1px;
  }
  .point-control button {
    font-size:12.1px;
    gap:6px;
  }
  .point-letter {
    width:20px;
    height:20px;
  }
  .keyboard-help {
    font-size:12.1px;
  }
  .target-card .shape-badge {
    max-width:190px;
  }
  .site-footer {
    flex-wrap:wrap;
    margin-top:28px;
    padding-top:18px;
    gap:9px 14px;
    font-size:10px;
  }
  .site-footer>span:nth-child(2) {
    order:3;
    width:100%;
  }
  .result-row {
    gap:8px;
  }
  .result-score strong {
    font-size:22px;
  }
  .result-reference {
    padding:13px;
  }
  .result-reference>div {
    font-size:12.1px;
  }
  .result-reference>div span {
    font-size:10px;
  }
  .result-panel h2 {
    font-size:30px;
  }
}
@media(max-width:360px) {
  .intro .eyebrow {
    font-size:10px;
  }
  .target-number {
    font-size:60px;
  }
  .target-card {
    padding:16px;
  }
  .panel {
    padding:21px 14px;
  }
  .line-topline>span:last-child {
    font-size:10px;
  }
  .point-control button {
    gap:5px;
  }
  .point-control button>span:last-child {
    padding:0;
  }
  .count-control button {
    width:44px;
    height:44px;
  }
  .count-control>div {
    gap:5px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .marker.is-active span {
    scale:1;
  }
}
