:root { color-scheme: light; font-family: system-ui, sans-serif; color: #23332d; background: #f6f5ef; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #d59d48; outline-offset: 3px; }
.page { max-width: 1440px; margin: auto; padding: 0 7.1%; }
.header { height: 85px; border-bottom: 1px solid #dedfd5; display: flex; align-items: center; justify-content: space-between; }
.brand { color: #263c32; text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -1.3px; }
.brand span:not(.brand-mark):not(.brand-dot) { font-weight: 400; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 50%; background: #426d51; color: #fff; font-size: 23px; margin-right: 7px; vertical-align: -2px; }
.brand-dot { color: #d29d58; }
.header-right { display: flex; align-items: center; gap: 25px; }
.header-label, .eyebrow, .card-kicker, .side-heading, .card-foot, footer, .stats span { font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
.header-label { color: #8d978b; }
.icon-button { background: transparent; border: 1px solid #c9cfc5; color: #405748; border-radius: 50%; width: 33px; height: 33px; font-size: 17px; }
.intro { padding: 62px 0 42px; }
.eyebrow { color: #647d69; display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { width: 7px; height: 7px; background: #dca35b; border-radius: 50%; }
.eyebrow-line { width: 28px; height: 1px; background: #c9d0c4; }
.intro h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(52px, 6vw, 78px); line-height: .98; letter-spacing: -2px; margin: 24px 0 18px; }
.intro h1 em { color: #63866b; font-weight: 400; }
.intro p { color: #78867a; font-size: 15px; margin: 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 24px; align-items: start; }
.game-card, .side-card { background: #fff; border: 1px solid #e8e9e1; border-radius: 10px; }
.game-card { padding: 30px 38px 23px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-kicker, .side-heading { color: #8e9a8d; }
.card-top h2, .how-card h3, dialog h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin: 7px 0 0; }
.card-top h2 span { color: #d2a15d; font-size: 18px; margin-left: 4px; }
.puzzle-number { background: #f4f6ef; color: #6f826f; border-radius: 4px; font-size: 10px; letter-spacing: 1px; font-weight: 700; padding: 9px 10px; }
.rule { height: 1px; background: #eceee8; margin: 23px 0 19px; }
.game-instruction { text-align: center; color: #8a968a; font-size: 12px; margin: 0 0 20px; }
.board { display: grid; gap: 6px; justify-content: center; }
.board-row { display: flex; gap: 6px; }
.tile { width: 51px; height: 51px; border: 1px solid #dce2d9; border-radius: 4px; background: #fafbf8; display: grid; place-items: center; font-size: 21px; font-weight: 700; }
.tile.filled { border-color: #9bab9e; background: white; }
.correct, .tile.correct, .key.correct { color: #fff; background: #71977a; border-color: #71977a; }
.present, .tile.present, .key.present { color: #fff; background: #d2ad6c; border-color: #d2ad6c; }
.absent, .tile.absent, .key.absent { color: #fff; background: #aeb8ad; border-color: #aeb8ad; }
.message { min-height: 18px; text-align: center; color: #6b806e; font-size: 12px; margin: 13px 0 5px; }
.keyboard { max-width: 500px; margin: 0 auto; display: grid; gap: 5px; }
.keyboard-row { display: flex; justify-content: center; gap: 5px; }
.key { flex: 1; min-width: 0; max-width: 42px; height: 42px; border: 0; border-radius: 4px; background: #edf0ea; color: #53665a; font-weight: 700; font-size: 12px; }
.key.wide { max-width: 64px; flex: 1.5; font-size: 10px; }
.key:disabled { cursor: default; opacity: 1; }
.card-foot { border-top: 1px solid #eceee8; margin-top: 27px; padding-top: 20px; display: flex; justify-content: space-between; color: #adb6aa; font-size: 9px; }
.tiny-spark { color: #d3a466; font-size: 13px; }
.sidebar { display: grid; gap: 16px; }
.side-card { padding: 25px; }
.streak-card { background: #eaf0e7; border-color: #e1e9de; }
.side-heading { display: flex; justify-content: space-between; align-items: center; font-size: 9px; }
.sun-icon { font-size: 22px; color: #9bac97; }
.streak-number { font-family: Georgia, serif; font-size: 64px; line-height: 1; margin-top: 12px; color: #496e53; }
.streak-flame { font-size: 21px; color: #d7a769; vertical-align: 16px; margin-left: 7px; }
.streak-card h3 { margin: 4px 0 10px; font-size: 16px; }
.side-card p { color: #819082; font-size: 12px; line-height: 1.7; margin: 0; }
.stats { display: flex; justify-content: space-between; border-top: 1px solid #d5e0d3; margin-top: 22px; padding-top: 18px; }
.stats div { display: grid; gap: 5px; }
.stats strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.stats span { font-size: 8px; letter-spacing: .8px; color: #92a092; }
.how-card h3 { margin: 15px 0 8px; }
.how-card p { margin-bottom: 19px; }
.legend { display: flex; align-items: center; gap: 11px; color: #728075; font-size: 12px; margin: 9px 0; }
.legend-tile { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 3px; font-weight: 700; }
.text-button { padding: 17px 0 0; color: #577960; font-weight: 700; font-size: 11px; border: 0; background: none; }
.text-button span { margin-left: 6px; }
.sidebar-note { color: #9aa79a; text-align: center; font-size: 11px; padding: 7px 0; }
.sidebar-note span { color: #d3a466; font-size: 17px; vertical-align: middle; margin-right: 4px; }
footer { border-top: 1px solid #dedfd5; margin-top: 64px; padding: 25px 0; color: #a9b2a7; display: flex; justify-content: space-between; font-size: 9px; }
footer span span { color: #d5a35f; font-size: 15px; }
dialog { max-width: 450px; width: calc(100% - 32px); padding: 28px; border: 1px solid #e0e6dc; border-radius: 10px; color: #23332d; }
dialog::backdrop { background: #1d2b24a3; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
dialog p { color: #728075; font-size: 14px; line-height: 1.65; }
.dialog-done { border: 0; border-radius: 5px; background: #567d60; color: white; font-weight: 700; padding: 12px 24px; margin-top: 10px; }
@media (max-width: 800px) {
  .page { padding: 0 5%; }
  .game-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-note { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .header { height: 70px; }
  .header-label { display: none; }
  .intro { padding: 45px 0 32px; }
  .intro h1 { font-size: 54px; }
  .game-card { padding: 24px 15px 20px; }
  .tile { width: 46px; height: 46px; }
  .key { height: 43px; }
  .keyboard-row { gap: 3px; }
  .card-foot { font-size: 7px; letter-spacing: .7px; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar-note { grid-column: auto; }
  footer { margin-top: 40px; font-size: 8px; letter-spacing: .6px; }
}
