:root {
  --ink: #17332c;
  --paper: #f5f1e8;
  --card: #fffdf7;
  --lime: #d9f24f;
  --orange: #ff6938;
  --line: rgba(23, 51, 44, 0.16);
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button { font: inherit; color: inherit; }
.app-shell { width: min(100%, 520px); min-height: 100vh; margin: auto; padding: env(safe-area-inset-top) 18px calc(30px + env(safe-area-inset-bottom)); overflow: hidden; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-family: "Unbounded", sans-serif; font-size: 12px; letter-spacing: .08em; color: inherit; text-decoration: none; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-weight: 800; cursor: pointer; }
.hero { padding: 30px 4px 24px; position: relative; }
.hero::after { content: ""; position: absolute; width: 90px; height: 90px; right: -26px; top: 20px; border: 18px solid var(--lime); border-radius: 50%; opacity: .72; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 11px; letter-spacing: .16em; }
.eyebrow span { width: 22px; height: 8px; border-radius: 6px; background: var(--orange); }
h1 { position: relative; z-index: 1; margin: 13px 0 10px; font: 700 clamp(39px, 12vw, 60px)/.95 "Unbounded", sans-serif; letter-spacing: -.055em; }
h1 em { color: var(--orange); font-style: normal; }
.hero p { max-width: 390px; margin: 0; font-size: 14px; line-height: 1.55; color: #4d625d; }
.game-card { padding: 22px 18px 18px; border: 1px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 6px 6px 0 var(--ink); }
.game-meta { display: flex; justify-content: space-between; }
.game-meta div { display: flex; flex-direction: column; gap: 1px; }
.game-meta span { font-size: 9px; font-weight: 800; letter-spacing: .14em; color: #75847f; }
.game-meta strong { font: 700 22px "Unbounded", sans-serif; }
.streak { text-align: right; }
.progress { height: 5px; margin: 14px 0 25px; border-radius: 4px; background: #e5e3d8; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); transition: width .35s ease; }
.source-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; }
.source-word span { min-width: 25px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); text-align: center; font: 700 18px "Unbounded", sans-serif; }
.answer { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 14px; border: 1px dashed #b6b9ae; border-radius: 14px; color: var(--orange); font: 700 24px "Unbounded", sans-serif; text-transform: uppercase; }
.answer-placeholder { color: #9aa19d; font: 600 12px "Manrope", sans-serif; text-transform: none; }
.keyboard { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 16px; }
.letter { aspect-ratio: 1; padding: 0; border: 1px solid var(--ink); border-radius: 11px; background: var(--lime); box-shadow: 0 3px 0 var(--ink); font: 700 clamp(15px, 5vw, 20px) "Unbounded", sans-serif; cursor: pointer; transition: transform .08s, opacity .15s; }
.letter:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.letter.used { opacity: .25; box-shadow: none; transform: translateY(2px); }
.actions { display: grid; grid-template-columns: .9fr 1.6fr; gap: 8px; }
.actions button, .dialog-start { min-height: 51px; border: 1px solid var(--ink); border-radius: 13px; font-weight: 800; cursor: pointer; }
.secondary { background: transparent; }
.primary { background: var(--ink); color: white; }
.primary span { padding-left: 10px; color: var(--lime); }
.hint { width: 100%; margin-top: 12px; border: 0; background: transparent; font-weight: 700; font-size: 12px; cursor: pointer; }
.hint span { color: var(--orange); font-size: 16px; }
.hint small { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; background: var(--paper); }
.message { height: 18px; margin: 8px 0 0; text-align: center; font-size: 12px; font-weight: 700; }
.message.error { color: #c73e26; }
.message.success { color: #287a4a; }
.found-section { padding: 35px 4px 15px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; }
.section-title h2 { margin: 0; font: 700 17px "Unbounded", sans-serif; }
.section-title span { font-weight: 800; color: var(--orange); }
.found-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.found-list p { margin: 0; color: #89938f; font-size: 13px; }
.found-list span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.5); font-size: 12px; font-weight: 700; text-transform: uppercase; }
footer { margin: 20px 4px 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
footer p { margin: 0; font-size: 11px; color: #75847f; }
footer button { padding: 10px 13px; border: 1px solid var(--ink); border-radius: 10px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.seo-content, .rules-content, .faq, .more-games { margin: 38px 4px 0; padding-top: 34px; border-top: 1px solid var(--line); }
.seo-content h2, .rules-content h2, .faq h2 { margin: 9px 0 16px; font: 700 25px/1.15 "Unbounded", sans-serif; letter-spacing: -.035em; }
.seo-content > p { color: #4d625d; font-size: 14px; line-height: 1.65; }
.content-kicker { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.feature-grid { display: grid; gap: 9px; margin-top: 22px; }
.feature-grid article { position: relative; padding: 18px 18px 17px 52px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.46); }
.feature-grid article > b { position: absolute; left: 17px; top: 18px; color: var(--orange); font: 700 11px "Unbounded"; }
.feature-grid h3 { margin: 0 0 4px; font-size: 14px; }
.feature-grid p { margin: 0; color: #63736e; font-size: 12px; line-height: 1.45; }
.rules-content ol { list-style: none; padding: 0; margin: 0; }
.rules-content li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules-content li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font: 700 11px "Unbounded"; }
.rules-content li b { font-size: 14px; }
.rules-content li p { margin: 3px 0 0; color: #63736e; font-size: 12px; line-height: 1.45; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 28px 16px 0; font-size: 14px; font-weight: 800; cursor: pointer; }
.faq details p { margin: -5px 0 16px; color: #596b65; font-size: 13px; line-height: 1.55; }
.more-games .section-title span { font-size: 9px; letter-spacing: .12em; }
.game-links { display: grid; gap: 8px; margin-top: 15px; }
.game-links > span { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.45); font-size: 13px; font-weight: 800; color: #6f7c78; }
.game-links b { color: var(--orange); }
dialog { width: min(calc(100% - 36px), 450px); padding: 28px; border: 1px solid var(--ink); border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 7px 7px 0 var(--ink); }
dialog::backdrop { background: rgba(23,51,44,.62); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 17px; top: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.dialog-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 15px; background: var(--lime); font: 700 16px "Unbounded"; transform: rotate(-4deg); }
dialog h2 { margin: 20px 0 10px; font: 700 25px "Unbounded"; }
dialog p, dialog li { font-size: 14px; line-height: 1.5; }
dialog ul { padding-left: 20px; }
.dialog-start { width: 100%; margin-top: 8px; }
@media (min-width: 600px) { body { padding: 24px 0; } .app-shell { min-height: auto; border: 1px solid var(--line); border-radius: 30px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
