:root {
  --ink: #101311;
  --paper: #edf0e9;
  --muted: #879087;
  --line: rgba(237, 240, 233, .16);
  --acid: #d4f367;
  --orange: #ff9368;
  --teal: #8be8bd;
  --panel: #171c18;
  --panel-2: #1d251f;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
  height: 80px;
  max-width: 1180px;
  margin: auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--acid);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-links a {
  color: #aeb6ae;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.nav-links a:hover { color: var(--acid); }
.top-actions { display: flex; gap: 9px; }

.icon-button {
  width: 34px;
  height: 34px;
  color: var(--paper);
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 32px 54px;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 57px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--acid);
  font: 500 11px var(--mono);
  letter-spacing: .11em;
}

.pulse,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(212, 243, 103, .12);
}

.slash {
  color: var(--muted);
  margin: 0 7px;
}

h1 {
  font-size: 78px;
  line-height: .96;
  letter-spacing: 0;
  margin: 0;
  font-weight: 800;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.intro {
  color: #aeb6ae;
  font-size: 15px;
  line-height: 1.7;
  margin: 26px 0 0;
  max-width: 560px;
}

.date-stamp {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 8px;
  font: 500 12px var(--mono);
  color: var(--acid);
}

.date-stamp > span {
  font-size: 67px;
  line-height: .8;
  letter-spacing: 0;
}

.date-stamp small {
  font-size: 10px;
  line-height: 1.25;
  color: #aeb6ae;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 56px;
}

.board-panel,
.side-panel {
  border-top: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 14px;
  color: #bbc3bb;
  text-transform: uppercase;
  font: 500 11px var(--mono);
  letter-spacing: .12em;
}

.attempt-count b {
  color: var(--acid);
  font-weight: 400;
}

.guess-list {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guess-row {
  display: grid;
  grid-template-columns: 44px minmax(92px, 1fr) auto;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid rgba(237, 240, 233, .1);
  animation: appear .3s ease both;
}

.guess-index {
  font: 11px var(--mono);
  color: #657067;
}

.guess-number {
  font: 500 19px var(--mono);
  letter-spacing: .02em;
}

.guess-feedback {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: right;
}

.near { color: var(--orange); }
.far { color: var(--teal); }
.correct { color: var(--acid); }

@keyframes appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.guess-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 22px;
}

.guess-form input {
  width: 100%;
  height: 82px;
  background: #1b221d;
  border: 2px solid #536054;
  color: var(--paper);
  font: 500 29px var(--mono);
  letter-spacing: .08em;
  padding: 0 24px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.guess-form input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 5px rgba(212, 243, 103, .14), inset 0 0 0 1px rgba(212, 243, 103, .18);
}

.guess-form input::placeholder { color: #657067; }

.submit-button {
  width: 100%;
  height: 88px;
  border: 0;
  padding: 0 25px;
  background: var(--acid);
  color: var(--ink);
  font: 800 16px var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.submit-button:hover { background: #e6ff91; }
.submit-button:disabled { opacity: .55; cursor: not-allowed; }
.arrow { font-family: var(--mono); }

.form-message {
  min-height: 25px;
  margin: 11px 0 0;
  color: #879087;
  font: 11px var(--mono);
}

.side-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.side-block .panel-heading { padding-top: 16px; }
.mono { font-family: var(--mono); color: #89968b; letter-spacing: 0; }

.range-line {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 20px;
  color: #89968b;
  font: 10px var(--mono);
}

.range-track {
  display: flex;
  flex: 1;
  gap: 4px;
}

.range-track i {
  height: 7px;
  display: block;
  flex: 1;
  background: #394239;
}

.range-track i:first-child,
.range-track i:last-child { background: var(--acid); }

.hint-icon {
  color: var(--acid);
  font-size: 17px;
}

.hint-copy {
  max-width: 280px;
  margin: 8px 0 0;
  color: #aeb6ae;
  font-size: 14px;
  line-height: 1.7;
}

.streak-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border: 0;
}

.side-label {
  display: block;
  color: #879087;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.streak-block strong {
  font: 500 35px var(--mono);
  color: var(--acid);
}

.streak-dots {
  display: flex;
  gap: 5px;
  padding-bottom: 4px;
}

.streak-dots i {
  display: block;
  width: 18px;
  height: 5px;
  background: #3b443d;
}

.streak-dots i.active { background: var(--acid); }
.keyboard { display: none; }

.bottom-row {
  display: flex;
  justify-content: space-between;
  margin-top: 57px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: #879087;
  font: 10px var(--mono);
  letter-spacing: .04em;
}

.bottom-row strong {
  color: var(--paper);
  font-weight: 400;
}

.keyboard-note span {
  display: inline-grid;
  place-items: center;
  border: 1px solid #4a554c;
  min-width: 44px;
  height: 18px;
  margin-left: 5px;
  padding: 0 6px;
  color: #b8c1b9;
}

.content-section {
  margin-top: 86px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.section-copy h2,
.strategy-card h2,
.faq-grid h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p,
.strategy-card p,
.faq-list p {
  color: #aeb6ae;
  font-size: 14px;
  line-height: 1.75;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.3fr);
  gap: 44px;
  align-items: start;
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-steps article,
.strategy-card {
  background: var(--panel);
  border: 1px solid rgba(237, 240, 233, .12);
  padding: 22px;
}

.info-steps span,
.card-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  background: var(--acid);
  color: var(--ink);
  font: 700 11px var(--mono);
  margin-bottom: 28px;
}

.info-steps h3,
.strategy-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0;
}

.info-steps p {
  margin: 0;
  color: #aeb6ae;
  font-size: 13px;
  line-height: 1.65;
}

.clue-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr);
  gap: 44px;
  align-items: center;
}

.clue-visual {
  min-height: 390px;
  background:
    linear-gradient(90deg, rgba(212,243,103,.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(237,240,233,.06) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--panel-2);
  border: 1px solid rgba(237, 240, 233, .12);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.number-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-top: 32px;
  font: 10px var(--mono);
  color: #aeb6ae;
}

.number-scale::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--acid), var(--orange));
}

.number-scale span { text-align: center; }

.sample-stack {
  display: grid;
  gap: 9px;
  margin-top: 34px;
}

.sample-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(16, 19, 17, .76);
  border: 1px solid rgba(237, 240, 233, .12);
}

.sample-row b {
  font: 500 22px var(--mono);
  letter-spacing: .03em;
}

.sample-row span {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.dense-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.dense-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #aeb6ae;
  font-size: 13px;
}

.dense-list b {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strategy-card.primary {
  background: #20281f;
  border-color: rgba(212, 243, 103, .28);
}

.strategy-card p { margin: 12px 0 0; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr);
  gap: 44px;
  padding-bottom: 30px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr);
  gap: 44px;
  padding-bottom: 30px;
}

.feedback-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #aeb6ae;
  font-size: 14px;
  line-height: 1.75;
}

.feedback-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(212, 243, 103, .42);
  background: #20281f;
  color: var(--acid);
  text-decoration: none;
  font: 500 15px var(--mono);
}

.feedback-link:hover {
  background: var(--acid);
  color: var(--ink);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
}

summary::marker { color: var(--acid); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 6, .78);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 4;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  max-width: 475px;
  width: 100%;
  background: #1a211c;
  border: 1px solid #4a584b;
  padding: 37px 38px 38px;
  box-shadow: 0 18px 80px rgba(0, 0, 0, .45);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: 0;
  color: #879087;
  font-size: 16px;
  cursor: pointer;
}

.modal h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 21px;
  letter-spacing: 0;
}

.modal p:not(.eyebrow) {
  color: #acb8ad;
  line-height: 1.75;
  font-size: 14px;
}

.modal-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.modal-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #b8c2b9;
  font-size: 13px;
}

.modal-list b {
  display: inline-block;
  width: 23px;
  color: var(--acid);
  font-family: var(--mono);
}

.result-number {
  font: 500 58px var(--mono);
  color: var(--acid);
  margin: 3px 0 22px;
}

.share-button {
  width: 100%;
  height: 48px;
  background: var(--acid);
  border: 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .top-actions { justify-content: end; }
  h1 { font-size: 60px; }
  .section-copy h2,
  .strategy-card h2,
  .faq-grid h2 { font-size: 38px; }
  .intro-grid,
  .clue-lab,
  .faq-grid,
  .feedback-section { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-card.primary { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 20px;
  }

  .page-shell { padding: 43px 20px 32px; }
  .hero-row { margin-bottom: 43px; }
  .date-stamp { margin-top: 0; }
  .date-stamp > span { font-size: 47px; }
  .date-stamp small { font-size: 8px; }
  h1 { font-size: 48px; }
  .section-copy h2,
  .strategy-card h2,
  .faq-grid h2 { font-size: 31px; }
  .intro { font-size: 13px; margin-top: 19px; }
  .game-layout { display: block; }

  .side-panel {
    margin-top: 47px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .side-block {
    margin: 0;
    padding-bottom: 21px;
  }

  .side-block:last-child { grid-column: 1 / -1; }
  .guess-list { min-height: 160px; }
  .guess-row { grid-template-columns: 38px 1fr; gap: 8px; }
  .guess-feedback { grid-column: 2; text-align: left; padding-bottom: 9px; }
  .guess-form { grid-template-columns: 1fr; }
  .submit-button { width: 100%; }
  .bottom-row { margin-top: 40px; display: block; line-height: 2.2; }
  .keyboard-note { display: none; }

  .keyboard {
    display: block;
    margin-top: 28px;
  }

  .key-row {
    display: flex;
    gap: 5px;
    margin-top: 5px;
  }

  .key {
    height: 36px;
    flex: 1;
    background: #1a211c;
    border: 1px solid #303a32;
    color: #b8c2b9;
    font: 500 11px var(--mono);
    cursor: pointer;
  }

  .key:hover {
    border-color: var(--acid);
    color: var(--acid);
  }

  .key-wide { flex: 1.8; }
  .content-section { margin-top: 58px; }
  .info-steps,
  .strategy-grid { grid-template-columns: 1fr; }
  .clue-visual { min-height: 320px; padding: 22px; }
  .number-scale { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .number-scale span:nth-child(2),
  .number-scale span:nth-child(4) { display: none; }
  .dense-list li { grid-template-columns: 1fr; gap: 5px; }
  .modal { padding: 31px 25px 28px; }
  .modal h2 { font-size: 26px; }
}
