@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/6fe53d21e6e7ebd8-s.woff2) format("woff2");
  unicode-range: u+0460-052f, u+1c80-1c8a, u+20b4, u+2de0-2dff, u+a640-a69f,
    u+fe2e-fe2f;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/8ebc6e9dde468c4a-s.woff2) format("woff2");
  unicode-range: u+0102-0103, u+0110-0111, u+0128-0129, u+0168-0169, u+01a0-01a1,
    u+01af-01b0, u+0300-0301, u+0303-0304, u+0308-0309, u+0323, u+0329,
    u+1ea0-1ef9, u+20ab;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/9e7b0a821b9dfcb4-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff,
    u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020,
    u+20a0-20ab, u+20ad-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/636a5ac981f94f8b-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da,
    u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193,
    u+2212, u+2215, u+feff, u+fffd;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/6fe53d21e6e7ebd8-s.woff2) format("woff2");
  unicode-range: u+0460-052f, u+1c80-1c8a, u+20b4, u+2de0-2dff, u+a640-a69f,
    u+fe2e-fe2f;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8ebc6e9dde468c4a-s.woff2) format("woff2");
  unicode-range: u+0102-0103, u+0110-0111, u+0128-0129, u+0168-0169, u+01a0-01a1,
    u+01af-01b0, u+0300-0301, u+0303-0304, u+0308-0309, u+0323, u+0329,
    u+1ea0-1ef9, u+20ab;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/9e7b0a821b9dfcb4-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff,
    u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020,
    u+20a0-20ab, u+20ad-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/636a5ac981f94f8b-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da,
    u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193,
    u+2212, u+2215, u+feff, u+fffd;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/6fe53d21e6e7ebd8-s.woff2) format("woff2");
  unicode-range: u+0460-052f, u+1c80-1c8a, u+20b4, u+2de0-2dff, u+a640-a69f,
    u+fe2e-fe2f;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/8ebc6e9dde468c4a-s.woff2) format("woff2");
  unicode-range: u+0102-0103, u+0110-0111, u+0128-0129, u+0168-0169, u+01a0-01a1,
    u+01af-01b0, u+0300-0301, u+0303-0304, u+0308-0309, u+0323, u+0329,
    u+1ea0-1ef9, u+20ab;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/9e7b0a821b9dfcb4-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff,
    u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020,
    u+20a0-20ab, u+20ad-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff;
}
@font-face {
  font-family: Plus Jakarta Sans;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/636a5ac981f94f8b-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da,
    u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193,
    u+2212, u+2215, u+feff, u+fffd;
}
@font-face {
  font-family: Plus Jakarta Sans Fallback;
  src: local("Arial");
  ascent-override: 98.88%;
  descent-override: 21.15%;
  line-gap-override: 0%;
  size-adjust: 104.98%;
}
.__className_b80198 {
  font-family: Plus Jakarta Sans, Plus Jakarta Sans Fallback;
  font-style: normal;
}
.__variable_b80198 {
  --font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback";
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format("woff2");
  unicode-range: u+0460-052f, u+1c80-1c8a, u+20b4, u+2de0-2dff, u+a640-a69f,
    u+fe2e-fe2f;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format("woff2");
  unicode-range: u+0301, u+0400-045f, u+0490-0491, u+04b0-04b1, u+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format("woff2");
  unicode-range: u+1f??;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format("woff2");
  unicode-range: u+0370-0377, u+037a-037f, u+0384-038a, u+038c, u+038e-03a1,
    u+03a3-03ff;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format("woff2");
  unicode-range: u+0102-0103, u+0110-0111, u+0128-0129, u+0168-0169, u+01a0-01a1,
    u+01af-01b0, u+0300-0301, u+0303-0304, u+0308-0309, u+0323, u+0329,
    u+1ea0-1ef9, u+20ab;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff,
    u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020,
    u+20a0-20ab, u+20ad-20c4, u+2113, u+2c60-2c7f, u+a720-a7ff;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da,
    u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193,
    u+2212, u+2215, u+feff, u+fffd;
}
@font-face {
  font-family: Inter Fallback;
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
.__className_d8ebd1 {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}
.__variable_d8ebd1 {
  --font-body: "Inter", "Inter Fallback";
}
:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2f8;
  --card: #ffffff;
  --line: #e4e9f2;
  --line-strong: #d3dae6;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --primary: #2b54e6;
  --primary-deep: #1d3fc0;
  --primary-soft: #eaf0ff;
  --accent: #ff6b3d;
  --accent-deep: #e5521f;
  --accent-soft: #fff0ea;
  --star: #f5a524;
  --green: #15803d;
  --green-soft: #e9f8ef;
  --green-line: #bde5cb;
  --red: #dc2626;
  --tray:#07549b;
  --tray-deep:#06366e;
  --die: #ffffff;
  --die-edge: #cfd6e6;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 30px -14px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04),
    0 24px 60px -24px rgba(31, 42, 107, 0.35);
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
}
*,
:after,
:before {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-deep);
}
h1,
h2,
h3 {
  font-family: var(--font-display), system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
h1,
h2 {
  font-weight: 800;
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
strong {
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 780px;
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
}
.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand,
.brand:hover {
  color: var(--ink);
}
.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 15px);
  grid-gap: 2px;
  gap: 2px;
  padding: 3px;
  background: var(--tray);
  border-radius: 8px;
  transform: rotate(-5deg);
  box-shadow: 0 4px 10px -4px rgba(31, 42, 107, 0.6);
}
.logo-mark span {
  display: grid;
  place-items: center;
  height: 15px;
  background: var(--die);
  border-radius: 4px;
  font: 800 10px/1 var(--font-display), sans-serif;
  color: var(--ink);
}
.logo-mark span:first-child {
  background: var(--accent);
  color: #fff;
}
.brand-name {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-name span {
  color: var(--primary);
}
.nav-list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover {
  background: var(--surface);
  color: var(--primary);
}
@media (max-width: 680px) {
  .nav-list a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
  .brand-name {
    font-size: 1.02rem;
  }
}
@media (max-width: 420px) {
  .header-inner {
    gap: 8px;
    min-height: 58px;
  }
  .brand-name span {
    display: none;
  }
  .nav-list a {
    padding: 6px 8px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s,
    transform 0.1s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(43, 84, 230, 0.6);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-deep);
  color: #fff;
}
.btn-outline {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink-soft);
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  color: var(--ink);
}
.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

.hero {
    position: relative;
    padding: 24px 0 40px;
    background: transparent;
    min-height: 100vh;
    overflow: visible;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
  pointer-events: none;
}
.hero .container {
  position: relative;
}
.hero-head {
  max-width: 780px;
  margin-bottom: 26px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d6e0ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-kicker:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-head h1 {
  margin-bottom: 12px;
}
.hero-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0;
  max-width: 700px;
}
@media (max-width: 520px) {
  .hero {
    padding: 28px 0 40px;
  }
  .hero-lede {
    font-size: 1rem;
  }
}


.game {
    position: relative;
    background: linear-gradient(
        135deg,
        #ffb91d 0%,
        #ff8716 30%,
        #f45116 65%,
        #c91f19 100%
    );
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    scroll-margin-top: 84px;
    max-width: 1100px;
    margin: 0 auto;
}


.game-toolbar {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.game-toolbar,
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar-right {
  gap: 8px;
}
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}
.segmented button small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
}
.segmented button:hover:not(:disabled) {
  color: var(--ink);
}
.segmented button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.segmented button:disabled:not(.is-active) {
  opacity: 0.5;
  cursor: not-allowed;
}
.segmented-sm button {
  justify-content: center;
  min-height: 38px;
}
.select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 46px;
  padding: 0 38px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f172a' stroke-width='1.8' fill='none'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.challenge-banner {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: #14532d;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.challenge-banner strong {
  color: #14532d;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}
.game-layout > * {
  min-width: 0;
}
.board-column {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.hud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.hud > div:not(.hud-progress) {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}
.hud-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-value {
  font-family: var(--font-display), sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hud-value.is-met {
  color: var(--green);
}
.hud-target {
  font-size: 0.6em;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}
.hud-timer.is-low .hud-value {
  color: var(--red);
  animation: pulse 1s ease-in-out infinite;
}
.hud-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.hud-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6f8cff);
  border-radius: 99px;
  transform-origin: left;
  transition: transform 0.25s linear;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.tray {
    position: relative;
    background: linear-gradient(
        145deg,
        #1269b3 0%,
        #07549b 45%,
        #06366e 100%
    );
    border: 5px solid #06447f;
    border-radius: 26px;
    padding: 12px;

    box-shadow:
        inset 0 5px 8px rgba(255,255,255,0.28),
        inset 0 -9px 14px rgba(0,20,55,0.55),
        inset 5px 0 8px rgba(255,255,255,0.08),
        0 7px 0 #032c59,
        0 13px 0 #022346,
        0 20px 25px rgba(0,25,65,0.35);
}

.grid,
.tray {
  position: relative;
}
.grid {
  --gap: 10px;
  --pad: 6px;
  display: grid;
  grid-gap: var(--gap);
  gap: var(--gap);
  padding: var(--pad);
  touch-action: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-select: none;
}
.grid.size-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid.size-5 {
  --gap: 8px;
  grid-template-columns: repeat(5, 1fr);
}
.grid.is-live {
  cursor: pointer;
}
.grid.shake .die {
  animation: settle 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.grid.shake .die:nth-child(3n) {
  animation-delay: 0.04s;
}
.grid.shake .die:nth-child(3n + 1) {
  animation-delay: 0.08s;
}
@keyframes settle {
  0% {
    transform: translateY(-10px) rotate(calc(var(--tilt) * 6));
    opacity: 0.3;
  }
  to {
    transform: rotate(var(--tilt));
    opacity: 1;
  }
}
.die {
    aspect-ratio: 1;
    transform: rotate(var(--tilt));
    background: #b7c9df;
    padding-bottom: 5px;
    border-radius: 16%;
    box-shadow: 0 4px 7px rgba(0, 24, 67, 0.35);
    transition: background .12s;
}
.die,
.die-face {
  border-radius: 18%;
}
.die-face {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff 10%, #edf4fc 100%);
    border-radius: 16%;
    border: 1px solid #d8e5f4;
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 6.4vw, 2.6rem);
    color: #123b70;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
    box-shadow: inset 0 2px 3px rgba(255,255,255,.9);
    transition: background .12s, color .12s, transform .12s;
}
.size-5 .die-face {
  font-size: clamp(1.15rem, 5vw, 2.1rem);
}
.die-u {
  font-size: 0.6em;
  font-weight: 700;
  margin-left: 1px;
}
.die-blank {
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: var(--die-edge);
}
.die.is-selected {
    background: #064b8c;
}
.die.is-selected .die-face {
    background: linear-gradient(145deg, #3184d0, #07549b);
    border-color: #07549b;
    color: #ffffff;
}
.die.is-last .die-face {
  transform: scale(1.04);
}
.path-line {
  position: absolute;
  inset: calc(var(--pad) - var(--gap) / 2);
  width: calc(100% - 2 * (var(--pad) - var(--gap) / 2));
  height: calc(100% - 2 * (var(--pad) - var(--gap) / 2));
  pointer-events: none;
  overflow: visible;
}
.path-line polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-width: 6px;
  opacity: 0.55;
}
.board-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 27, 77, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
}
.overlay-card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 22px 16px;
  text-align: center;
  width: 100%;
  max-width: 330px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}
.overlay-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.overlay-title {
  font-family: var(--font-display), sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.overlay-note {
  margin: 12px 0 0;
}
.overlay-note,
.overlay-stars {
  font-size: 0.84rem;
  color: var(--muted);
}
.overlay-stars {
  margin: -8px 0 14px;
}
.level-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.level-stepper .overlay-kicker {
  margin: 0;
}
.level-stepper button {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.level-stepper button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.level-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 400px) {
  .overlay-card {
    padding: 16px 14px 12px;
  }
  .overlay-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  .overlay-note {
    display: none;
  }
}
.word-entry {
  margin-top: 16px;
}
.current-word {
  min-height: 44px;
  text-align: center;
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.current-word.is-off {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.current-word .placeholder {
  font-family: var(--font-body), sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0;
  color: var(--muted);
}
.entry-row {
  display: flex;
  gap: 8px;
}
.entry-input {
  flex: 1 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.entry-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.entry-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(43, 84, 230, 0.15);
}
.entry-input:disabled {
  background: var(--surface);
}
.entry-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
.toast {
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 5;
  animation: toast 1.6s ease forwards;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}
.toast-good {
  background: var(--green);
  color: #fff;
}
.toast-bad {
  background: var(--ink);
  color: #fff;
}
.toast-info {
  background: #fff;
  color: var(--ink);
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  12%,
  80% {
    opacity: 1;
    transform: translate(-50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
.round-summary {
  margin-top: 18px;
  text-align: center;
}
.level-verdict {
  font-family: var(--font-display), sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  color: var(--ink-soft);
}
.level-verdict.is-pass {
  color: var(--green);
}
.verdict-stars {
  font-size: 2rem;
  letter-spacing: 6px;
  margin-bottom: 4px;
  color: var(--line-strong);
}
.verdict-stars .on {
  color: var(--star);
  display: inline-block;
  animation: star-in 0.4s ease both;
}
.verdict-stars .on:nth-child(2) {
  animation-delay: 0.15s;
}
.verdict-stars .on:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes star-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
}
.summary-score {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.summary-score span {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 4px;
}
.summary-detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.words-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 100%;
  max-height: 660px;
  display: flex;
  flex-direction: column;
}
.words-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.words-title {
  font-size: 1.08rem;
  margin: 0;
}
.words-best {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.words-empty,
.words-hint {
  font-size: 0.9rem;
  color: var(--muted);
}
.words-sub {
  font-family: var(--font-body), sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0;
}
.word-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1;
}
.word-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.word-list li:first-child {
  animation: pop 0.4s ease;
}
.word-list b {
  color: var(--green);
}
@keyframes pop {
  0% {
    background: var(--green-soft);
    border-color: var(--green-line);
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.chips-scroll {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1;
  align-content: flex-start;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chip-found {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: #14532d;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 6px;
  gap: 6px;
  overflow-y: auto;
  padding: 2px;
}
.level-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.1;
  transition: border-color 0.15s, transform 0.1s;
}
.level-cell:hover:not(:disabled) {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.level-cell:disabled {
  background: transparent;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.55;
}
.level-cell:disabled .level-num {
  font-size: 0.7rem;
  filter: grayscale(1);
}
.level-cell.is-done {
  background: var(--green-soft);
  border-color: var(--green-line);
}
.level-cell.is-current {
  background: var(--primary);
  border-color: var(--primary-deep);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(43, 84, 230, 0.7);
}
.level-stars {
  font-size: 0.55rem;
  color: var(--star);
  letter-spacing: 1px;
}
.level-cell.is-current .level-stars {
  color: #fff;
}
.level-hint {
  margin: 10px 0 0;
}
@media (max-width: 960px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .words-column {
    max-height: 440px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .level-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }
}
@media (max-width: 520px) {
  .game {
    padding: 12px;
    border-radius: 18px;
  }
  .game-toolbar {
    gap: 8px;
  }
  .game-toolbar > .segmented,
  .toolbar-right {
    flex: 1 1 100%;
  }
  .toolbar-right .segmented {
    flex: 1 1;
  }
  .segmented button {
    flex: 1 1;
    padding: 6px 10px;
  }
  .game-toolbar > .segmented {
    display: flex;
  }
  .tray {
    padding: 8px;
  }
  .board-overlay,
  .tray {
    border-radius: 16px;
  }
  .grid {
    --gap: 7px;
    --pad: 4px;
  }
  .grid.size-5 {
    --gap: 5px;
  }
  .hud-value {
    font-size: 1.35rem;
  }
  .hud > div:not(.hud-progress) {
    padding: 6px 10px;
  }
  .summary-actions .btn-lg {
    flex: 1 1 auto;
  }
}
@media (max-width: 360px) {
  .hud-label {
    font-size: 0.62rem;
  }
  .entry-tools .btn-ghost {
    padding: 0 10px;
  }
}
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.prose {
  max-width: 740px;
}
.prose li,
.prose p {
  color: var(--ink-soft);
}
.prose h2 {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose ol,
.prose ul {
  padding-left: 1.25em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li::marker {
  color: var(--primary);
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-gap: 56px;
  gap: 56px;
  align-items: start;
}
.two-col > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .section {
    padding: 56px 0;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 520px) {
  .section {
    padding: 44px 0;
  }
  .section-head {
    margin-bottom: 24px;
  }
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 66px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.steps li:before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}
@media (max-width: 420px) {
  .steps li {
    padding: 14px 14px 14px 56px;
  }
  .steps li:before {
    left: 12px;
    width: 30px;
    height: 30px;
  }
}
.score-card {
  background: radial-gradient(
      120% 60% at 100% 0,
      rgba(111, 140, 255, 0.25),
      transparent 60%
    ),
    linear-gradient(160deg, var(--tray), var(--tray-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.score-card h3 {
  color: #fff;
  margin-bottom: 4px;
}
.score-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
}
.score-table td,
.score-table th {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.score-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}
.score-table td:first-child {
  white-space: nowrap;
}
.score-table td:last-child,
.score-table th:last-child {
  text-align: right;
}
.score-table td:last-child {
  font-family: var(--font-display), sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.example-word {
  display: inline-flex;
  gap: 3px;
}
.example-word span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--die);
  color: var(--ink);
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.72rem;
}
@media (max-width: 420px) {
  .score-card {
    padding: 18px 14px;
  }
  .score-table td,
  .score-table th {
    padding: 9px 3px;
  }
  .example-word {
    gap: 2px;
  }
  .example-word span {
    width: 16px;
    height: 18px;
    font-size: 0.62rem;
    border-radius: 4px;
  }
}
@media (max-width: 360px) {
  .score-table td:nth-child(2),
  .score-table th:nth-child(2) {
    display: none;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
  gap: 18px;
}
.cards > * {
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.96rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.cards .card:nth-child(3n + 2) .card-icon {
  background: var(--accent-soft);
}
.cards .card:nth-child(3n) .card-icon {
  background: var(--green-soft);
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 20px;
  }
}
.level-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 18px;
}
.level-stat {
  background: linear-gradient(160deg, var(--tray), var(--tray-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.level-stat b {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}
.level-stat:nth-child(3) b {
  color: var(--star);
}
.level-stat span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 14px;
  gap: 14px;
}
.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tier:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--tier-color, var(--primary));
}
.tier-range {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tier-color, var(--muted));
}
.tier h3 {
  margin: 4px 0 6px;
}
.tier p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.tier-goal {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
}
@media (max-width: 960px) {
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .level-stats,
  .tiers {
    grid-template-columns: 1fr;
  }
  .level-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
  }
  .level-stat b {
    font-size: 1.8rem;
  }
}
.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 18px 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table td,
.compare-table th {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.compare-table thead th:nth-child(2) {
  color: var(--primary);
}
.compare-table thead th:nth-child(3) {
  color: var(--accent-deep);
}
.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.compare-table td {
  color: var(--ink-soft);
}
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: 0;
}
.table-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 8px 0;
}
@media (max-width: 420px) {
  .table-card {
    padding: 6px 10px 12px;
  }
  .compare-table {
    font-size: 0.86rem;
  }
  .compare-table td,
  .compare-table th {
    padding: 10px 5px;
  }
  .compare-table tbody th {
    white-space: normal;
  }
}
.callout {
  background: var(--primary-soft);
  border: 1px solid #d6e0ff;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ink);
  margin: 20px 0;
}
.faq {
  max-width: 860px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq details[open] {
  border-color: #c9d6ff;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s;
}
.faq details[open] summary:after {
  transform: rotate(45deg);
}
.faq summary .faq-q {
  display: inline;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.faq details p {
  color: var(--ink-soft);
  margin: 0;
  padding: 0 0 18px;
}
@media (max-width: 520px) {
  .faq details {
    padding: 0 14px;
  }
  .faq summary .faq-q {
    font-size: 0.98rem;
  }
}
.cta-band {
  background: radial-gradient(
      80% 140% at 100% 0,
      rgba(111, 140, 255, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, var(--tray), var(--tray-deep));
  color: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  margin: 0 0 4px;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.cta-band .btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(255, 107, 61, 0.8);
}
.cta-band .btn-primary:hover {
  background: var(--accent-deep);
}
@media (max-width: 520px) {
  .cta-band {
    padding: 28px 22px;
    border-radius: 18px;
  }
  .cta-band .btn {
    width: 100%;
  }
}
.page-hero {
  padding: 56px 0 36px;
  margin-bottom: 44px;
  background: radial-gradient(
      700px 260px at 90% -20%,
      rgba(43, 84, 230, 0.1),
      transparent 70%
    ),
    linear-gradient(180deg, #f7f9ff, #ffffff);
  border-bottom: 1px solid var(--line);
}
.page-hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 660px;
  margin: 0;
}
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.breadcrumb,
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.page-body {
  padding-bottom: 80px;
}
.page-body.prose h2 {
  margin-top: 1.6em;
}
.meta-note {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
}
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 640px) {
  .values {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .page-hero {
    padding: 36px 0 26px;
    margin-bottom: 30px;
  }
  .page-hero p {
    font-size: 1rem;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-gap: 32px;
  gap: 32px;
  align-items: start;
}
.contact-grid > * {
  min-width: 0;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.9rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(43, 84, 230, 0.15);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 20px;
  }
  .form .btn-lg {
    width: 100%;
  }
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}
.aside-card h2 {
  font-size: 1.1rem;
}
.aside-card li,
.aside-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.aside-card ul {
  padding-left: 1.1em;
  margin: 0;
}
.site-footer {
  background: #0b1229;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 26px;
  font-size: 0.95rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
  text-decoration: none;
}
.site-footer .brand-name span {
  color: #8ea6ff;
  display: inline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.3fr;
  grid-gap: 32px;
  gap: 32px;
}
.footer-brand p {
  margin-top: 14px;
}
.footer-heading {
  font-family: var(--font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-legal p {
  margin: 0;
  max-width: 660px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .site-footer {
    padding: 44px 0 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  :after,
  :before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.legal h2 {
  scroll-margin-top: 84px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}
.legal h3 {
  font-size: 1.05rem;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 20px 0 8px;
}
.toc-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.toc ol {
  column-count: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.93rem;
}
.toc li {
  margin-bottom: 0.35em;
  page-break-inside: avoid;
  break-inside: avoid;
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}
.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.callout ul {
  margin: 10px 0 0;
}
.callout li {
  color: var(--ink-soft);
}
.legal-table {
  margin: 16px 0 20px;
}
.legal-table .compare-table {
  min-width: 560px;
  font-size: 0.88rem;
}
.legal-table .compare-table tbody th {
  white-space: normal;
}
@media (max-width: 600px) {
  .toc ol {
    column-count: 1;
  }
}
.legal-table .compare-table thead th {
  color: var(--muted);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.feature-art {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.feature-art svg {
  width: 100%;
  height: 100%;
}
.feature-art.tone-blue {
  background: var(--primary-soft);
}
.feature-art.tone-coral {
  background: var(--accent-soft);
}
.feature-art.tone-green {
  background: var(--green-soft);
}
.feature-item h3 {
  font-size: 1.08rem;
  margin: 0 0 4px;
}
.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .feature-item {
    gap: 14px;
    padding: 14px;
  }
  .feature-art {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    padding: 8px;
  }
  .feature-item h3 {
    font-size: 1rem;
  }
  .feature-item p {
    font-size: 0.9rem;
  }
}
.steps-titled strong {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.fun-card {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 0;
}
.fun-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
}
.prose .steps {
  padding-left: 0;
  margin-top: 12px;
}
.prose .steps li {
  margin-bottom: 0;
}
.prose .steps li::marker {
  content: none;
}
.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
@media (max-width: 420px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.rules-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  grid-gap: 40px;
  gap: 40px;
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.rules-panel > * {
  min-width: 0;
}
.rules-intro h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
}
.rules-intro p {
  color: var(--ink-soft);
  margin: 0;
}
.rules-panel h4 {
  font-family: var(--font-display), sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 4px 0 14px;
}
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.rules-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-soft);
}
.rules-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--green-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 14px;
}
@media (max-width: 860px) {
  .rules-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}
@media (max-width: 420px) {
  .rules-panel {
    padding: 20px 16px;
    margin-top: 28px;
  }
}
.score-points .compare-table thead th {
  color: var(--muted);
}
.score-points .compare-table td:nth-child(2) {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.score-points .compare-table td:last-child,
.score-points .compare-table th:last-child {
  text-align: right;
}
.score-points .compare-table td:last-child {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.fun-card ul {
  padding-left: 1.2em;
}
.fun-card li {
  margin-bottom: 0.5em;
}
.fun-card li::marker {
  color: var(--primary);
}
.nav-list a {
  white-space: nowrap;
}
@media (max-width: 400px) {
  .brand-name {
    display: none;
  }
  .nav-list a {
    padding: 6px 7px;
    font-size: 0.86rem;
  }
}
@media (max-width: 330px) {
  .nav-list a {
    padding: 6px 5px;
    font-size: 0.82rem;
  }
}
.about > section {
  margin-top: 52px;
}
.about h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.about-fact {
  background: linear-gradient(160deg, var(--tray), var(--tray-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.about-fact b {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.about-fact span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
.about-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.about-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.about-list li:nth-child(3n + 2) {
  border-left-color: var(--accent);
}
.about-list li:nth-child(3n) {
  border-left-color: var(--green);
}
.about-list h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.about-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
.about .values {
  margin: 18px 0 0;
}
.about-cta {
  margin-top: 56px;
  background: radial-gradient(
      80% 140% at 100% 0,
      rgba(111, 140, 255, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, var(--tray), var(--tray-deep));
  color: #fff;
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.about-cta h2 {
  color: #fff;
  margin: 0 0 6px;
}
.about-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.about-cta a:not(.btn) {
  color: #fff;
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-cta .btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(255, 107, 61, 0.8);
}
.about-cta .btn-primary:hover {
  background: var(--accent-deep);
}
.about-cta .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.about-cta .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}
@media (max-width: 720px) {
  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .about > section {
    margin-top: 40px;
  }
  .about-cta {
    padding: 24px 20px;
  }
  .about-cta-actions .btn {
    flex: 1 1 auto;
  }
}
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}
.footer-logo {
  height: 56px;
}
@media (max-width: 680px) {
  .brand-logo {
    height: 38px;
  }
}
@media (max-width: 400px) {
  .site-header .brand-logo {
    height: 32px;
  }
}
@media (max-width: 340px) {
  .site-header .brand-logo {
    height: 28px;
  }
}
.tool-hero {
  padding-bottom: 48px;
}
.tool-cta {
  margin-top: 18px;
}
.fun-card code,
.prose code {
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.solver-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: center;
}
.solver-input {
  border: 0;
  padding: 0;
  margin: 0;
  text-align: center;
  text-transform: none;
  caret-color: var(--primary);
  cursor: text;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.solver-input:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.die.is-empty {
  background: var(--red);
}
.die.is-empty .solver-input {
  background: #fff5f5;
  box-shadow: inset 0 0 0 2px var(--red);
}
.solver-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.solver-actions .btn {
  min-width: 220px;
}
.solver-notice {
  min-height: 1.6em;
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.solver-notice.is-error {
  color: var(--red);
  font-weight: 600;
}
.solver-results:focus {
  outline: none;
}
.solver-summary {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.solver-summary b {
  color: var(--primary);
  font-size: 1.1rem;
}
.solver-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid #ffd3c2;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.solver-selected .btn-ghost {
  min-height: 32px;
  padding: 0 10px;
}
.word-group + .word-group {
  margin-top: 6px;
}
.chip-active {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: #fff;
}
.chip-active:hover {
  color: #fff;
}
.solver-links {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.solver .words-column {
  max-height: 720px;
}
@media (max-width: 520px) {
  .solver-actions .btn {
    width: 100%;
  }
  .toolbar-right .btn-ghost {
    flex: 1 1;
  }
}
.generator-notice {
  min-height: 1.6em;
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.generator-meta {
  margin: 0 0 14px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.generator-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.generator-meta dd {
  margin: 0;
}
.generator-meta code {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
}
.generator-letters,
.generator-meta code {
  font-size: 1rem;
  font-weight: 700;
  background: var(--card);
}
.generator-letters {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}
.generator-actions {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.generator-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.generator-copy .btn {
  flex: 1 1 auto;
}
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.generator-help {
  margin: 12px 0 0;
}
.tool-crosslinks {
  margin: 24px 0 0;
  color: var(--ink-soft);
}
.generator .game-toolbar > .btn-primary {
  min-height: 46px;
}
@media (max-width: 520px) {
  .generator .game-toolbar > .btn-primary {
    width: 100%;
  }
}
.daily-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.daily-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.daily-date {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.02rem;
}
.daily-next b,
.link-button {
  color: var(--primary);
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}
.daily-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.daily-links {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.fixed-toolbar {
  justify-content: flex-start;
  gap: 6px 14px;
}
.fixed-label {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 14px;
}
.fixed-meta {
  font-size: 0.88rem;
  color: var(--muted);
}
.group-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 6px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  color: inherit;
  border-color: var(--primary);
}
.tool-card p {
  flex: 1 1;
}
.tool-card-link {
  margin-top: 14px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
@media (max-width: 360px) {
  .header-inner {
    gap: 6px;
  }
  .site-header .brand-logo {
    height: 24px;
  }
  .nav-list a {
    padding: 6px 4px;
    font-size: 0.8rem;
  }
}
.header-inner {
  position: relative;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.menu-icon {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  width: 16px;
}
.menu-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.main-nav.is-open .menu-icon span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.main-nav.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}
.main-nav.is-open .menu-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.main-nav .nav-list a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}
@media (min-width: 1081px) {
  .main-nav .nav-list a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
}
@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: auto;
    width: min(300px, calc(100vw - 32px));
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
  }
  .main-nav.is-open .nav-list {
    display: flex;
  }
  .main-nav .nav-list li {
    display: block !important;
  }
  .main-nav .nav-list a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 10px;
    white-space: normal;
  }
  .site-header .brand-logo {
    height: 40px;
  }
}
@media (max-width: 400px) {
  .site-header .brand-logo {
    height: 34px;
  }
  .main-nav .nav-list {
    right: 12px;
  }
}
.desktop-nav .nav-list a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
}
@media (min-width: 1081px) {
  .desktop-nav .nav-list a {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
}
.site-header .header-inner {
  position: static;
}
.site-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.site-header .menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.burger span:first-child {
  top: 0;
}
.burger span:nth-child(2) {
  top: 6px;
}
.burger span:nth-child(3) {
  top: 12px;
}
.menu-open .burger span:first-child {
  top: 6px;
  transform: rotate(45deg);
}
.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
.menu-open .burger span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
.menu-backdrop,
.mobile-menu {
  display: none;
}
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .site-header .menu-toggle {
    display: grid;
  }
  .menu-open .menu-backdrop {
    display: block;
    position: fixed;
    inset: 66px 0 0 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: menu-fade 0.2s ease both;
  }
  .mobile-menu:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.45);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: menu-slide 0.22s ease both;
  }
  .mobile-menu-inner {
    padding-top: 18px;
    padding-bottom: 20px;
  }
  .menu-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 18px 20px;
    gap: 18px 20px;
  }
  .menu-group-title {
    margin: 0 0 6px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .menu-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-gap: 4px;
    gap: 4px;
  }
  .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.15s, border-color 0.15s;
  }
  .menu-link:hover {
    background: var(--surface);
    color: var(--ink);
  }
  .menu-link[aria-current="page"] {
    background: var(--primary-soft);
    border-color: #d6e0ff;
  }
  .menu-link[aria-current="page"] .menu-label {
    color: var(--primary);
  }
  .menu-icon-tile {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
  }
  .icon-about,
  .icon-game {
    background: var(--primary-soft);
    color: var(--primary);
  }
  .icon-contact,
  .icon-daily {
    background: var(--accent-soft);
    color: var(--accent-deep);
  }
  .icon-generator,
  .icon-solver {
    background: var(--green-soft);
    color: var(--green);
  }
  .menu-text {
    display: grid;
    min-width: 0;
  }
  .menu-label {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
  }
  .menu-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
  }
  .menu-cta {
    display: flex;
    width: 100%;
    margin-top: 18px;
  }
}
@media (max-width: 760px) {
  .menu-groups {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 420px) {
  .menu-open .menu-backdrop {
    inset: 58px 0 0 0;
  }
  .mobile-menu:not([hidden]) {
    max-height: calc(100dvh - 58px);
  }
  .site-header .menu-toggle {
    width: 42px;
    height: 42px;
  }
}
@keyframes menu-slide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes menu-fade {
  0% {
    opacity: 0;
  }
}
.site-header.menu-open {
  background: var(--card);
}
@media (max-width: 1080px) {
  .mobile-menu-inner {
    padding-top: 8px;
    padding-bottom: 20px;
  }
  .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .menu-list li + li {
    border-top: 1px solid var(--line);
  }
  .menu-list .menu-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 6px 0 16px;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-display), sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
  }
  .menu-list .menu-link:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--muted);
    border-right: 2px solid var(--muted);
    transform: rotate(45deg);
    margin-right: 6px;
    flex-shrink: 0;
    transition: transform 0.15s, border-color 0.15s;
  }
  .menu-list .menu-link:hover {
    background: none;
    color: var(--primary);
  }
  .menu-list .menu-link:hover:after {
    border-color: var(--primary);
    transform: translateX(3px) rotate(45deg);
  }
  .menu-list .menu-link[aria-current="page"] {
    background: none;
    border: 0;
    color: var(--primary);
  }
  .menu-list .menu-link[aria-current="page"]:before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: var(--primary);
  }
  .menu-list .menu-link[aria-current="page"]:after {
    border-color: var(--primary);
  }
  .menu-cta {
    margin-top: 16px;
  }
}
@media (min-width: 640px) and (max-width: 1080px) {
  .menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 32px;
    column-gap: 32px;
  }
  .menu-list li + li {
    border-top: 0;
  }
  .menu-list li {
    border-bottom: 1px solid var(--line);
  }
}
:root {
  --ink-soft: #3a4558;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px -10px rgba(15, 23, 42, 0.16);
  --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.05),
    0 18px 36px -18px rgba(31, 42, 107, 0.32);
  --die-shadow: 0 3px 0 #d3dae6, 0 6px 14px -6px rgba(15, 23, 42, 0.25);
}
.section {
  padding: 104px 0;
}
h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.prose p,
.section-head p {
  line-height: 1.75;
}
.section-head {
  margin-bottom: 44px;
}
.section-head h2 {
  margin-bottom: 14px;
}
.section .prose > h2:before,
.section .section-head > h2:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 14px 0 0 var(--primary), 28px 0 0 var(--star);
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}
.section-head.center > h2:before {
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-14px);
}
.hero {
  padding: 56px 0 80px;
}
.hero-head {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}
.hero-head .hero-lede {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.12rem;
}
.hero-kicker {
  margin-bottom: 18px;
}
.hero-head h1 {
  margin-bottom: 16px;
}
.tool-cta {
  margin-top: 24px;
}
.hero:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(1100px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong),
    transparent
  );
}

.game {
    border-radius: 0;
    padding: 24px;
    box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-gap: 64px;
  gap: 64px;
  align-items: start;
}
.split > .section-head {
  position: -webkit-sticky;
  position: sticky;
  top: 104px;
  margin: 0;
  max-width: none;
}
.split .feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.split .feature-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}
.aside-card,
.card,
.faq details,
.feature-item,
.steps li,
.table-card,
.tier {
  box-shadow: var(--shadow-card);
}
.card,
.feature-item,
.steps-grid li {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover,
.feature-item:hover,
.steps-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line-strong);
}
.card {
  padding: 28px;
  border-radius: 18px;
}
.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.card-icon,
.cards .card:nth-child(3n) .card-icon,
.cards .card:nth-child(3n + 2) .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #f2f5fb);
  border: 1px solid var(--line);
  box-shadow: var(--die-shadow);
  color: var(--tray);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.cards .card:nth-child(3n + 1) .card-icon {
  color: var(--primary);
}
.cards .card:nth-child(3n + 2) .card-icon {
  color: var(--accent-deep);
}
.cards .card:nth-child(3n) .card-icon {
  color: var(--green);
}
.feature-art,
.feature-art.tone-blue,
.feature-art.tone-coral,
.feature-art.tone-green {
  background: linear-gradient(160deg, #ffffff, #f2f5fb);
  border: 1px solid var(--line);
  box-shadow: var(--die-shadow);
}
.feature-item,
.steps li {
  border-radius: 18px;
}
.steps li {
  padding: 22px 22px 22px 78px;
  line-height: 1.65;
}
.steps li:before {
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(160deg, #ffffff, #f2f5fb);
  border: 1px solid var(--line);
  box-shadow: var(--die-shadow);
  color: var(--tray);
  font-size: 1.05rem;
}
.steps-titled strong {
  font-size: 1.06rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.steps-grid {
  gap: 20px;
}
.steps-grid li {
  padding: 26px 24px 24px;
}
.steps-grid li:before {
  position: static;
  display: grid;
  margin-bottom: 18px;
}
.two-col {
  gap: 64px;
}
.two-col > .aside-card,
.two-col > .table-card {
  position: -webkit-sticky;
  position: sticky;
  top: 104px;
}
.fun-card {
  border-radius: 20px;
  padding: 30px;
  border-top: 4px solid var(--primary);
}
.fun-card h3 + p {
  margin-top: 4px;
}
.fun-card h3:not(:first-child) {
  margin-top: 22px;
}
.table-card {
  border-radius: 20px;
  padding: 10px 22px 16px;
}
.compare-table thead th {
  padding-top: 16px;
  padding-bottom: 14px;
}
.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
  background: var(--surface);
}
#history .two-col > .prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: none;
  height: 100%;
}
#history .two-col {
  align-items: stretch;
}
.rules-panel {
  margin-top: 56px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--card), var(--surface));
  box-shadow: var(--shadow-card);
}
.container > .faq {
  margin: 0 auto;
}
.faq details {
  border-radius: 16px;
}
.faq summary {
  padding: 20px 44px 20px 0;
}
.tool-card {
  padding: 30px;
}
.site-footer {
  position: relative;
  padding-top: 72px;
}
.site-footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--primary) 50%,
    var(--star)
  );
}
.page-hero {
  padding: 72px 0 48px;
}
.page-hero h1 {
  margin-bottom: 14px;
}
@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split > .section-head,
  .two-col > .aside-card,
  .two-col > .table-card {
    position: static;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }
  .two-col {
    gap: 36px;
  }
  .section-head {
    margin-bottom: 32px;
  }
}
@media (max-width: 640px) {
  .split .feature-list {
    grid-template-columns: 1fr;
  }
  .split .feature-item {
    flex-direction: row;
    align-items: center;
    padding: 18px;
  }
  #history .two-col > .prose {
    padding: 26px 22px;
  }
  .rules-panel {
    padding: 24px 20px;
  }
}
@media (max-width: 520px) {
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero-head {
    margin-bottom: 28px;
  }
  .hero-head .hero-lede {
    font-size: 1rem;
  }
  .game {
    padding: 14px;
    border-radius: 20px;
  }
  .card,
  .tool-card {
    padding: 22px;
  }
  .fun-card {
    padding: 24px 20px;
  }
  .steps li {
    padding: 18px 16px 18px 66px;
  }
  .steps li:before {
    left: 14px;
    top: 16px;
    width: 36px;
    height: 36px;
  }
  .steps-grid li {
    padding: 20px;
  }
}
#history .two-col {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 920px;
}
#history .two-col > .prose {
  height: auto;
}
h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}
.section .two-col:has(> .prose:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.section .two-col > .prose:only-child,
.section > .container > .prose:only-child {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .section .two-col > .prose:only-child,
  .section > .container > .prose:only-child {
    padding: 28px 22px;
  }
}
@media (min-width: 901px) {
  .two-col > .aside-card,
  .two-col > .table-card {
    position: static;
    align-self: center;
  }
}
.article-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  max-width: 760px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}
.article-meta span + span:before {
  content: "·";
  margin-right: 16px;
  color: var(--line-strong);
}
.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.article-body {
  max-width: 740px;
  font-size: 1.06rem;
}
.article-body li,
.article-body > p {
  line-height: 1.8;
}
.article-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}
.article-body h3 {
  font-size: 1.18rem;
  margin-top: 1.7em;
  margin-bottom: 0.45em;
}
.article-body ol,
.article-body ul {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.article-body li {
  margin-bottom: 0.55em;
}
.article-body a {
  font-weight: 600;
}
.takeaways {
  margin: 28px 0 8px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
}
.takeaways-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.takeaways ul {
  margin: 0;
  padding-left: 1.2em;
}
.takeaways li {
  margin-bottom: 0.4em;
  color: var(--ink);
}
.takeaways li:last-child {
  margin-bottom: 0;
}
.article-note {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid #ffd3c2;
  border-radius: 14px;
  color: var(--ink);
  line-height: 1.7;
}
.article-note strong {
  color: var(--accent-deep);
}
.article-table {
  margin: 20px 0 24px;
}
.table-footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -12px;
}
.article-end {
  padding: 0 0 88px;
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 32px;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(
      80% 140% at 100% 0,
      rgba(111, 140, 255, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, var(--tray), var(--tray-deep));
  box-shadow: var(--shadow-lg);
}
.article-cta h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 4px;
}
.article-cta h2:before {
  display: none;
}
.article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.article-cta .btn-primary {
  background: var(--accent);
}
.related {
  margin-top: 56px;
}
.related h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.blog-grid,
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.blog-card,
.related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover,
.related-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line-strong);
}
.blog-card-title,
.related-title {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-card-excerpt,
.related-excerpt {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.blog-card-excerpt {
  flex: 1 1;
}
.blog-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.blog-index {
  max-width: 1080px;
}
.blog-group + .blog-group {
  margin-top: 52px;
}
.blog-group h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .blog-grid,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .blog-grid,
  .related-list {
    grid-template-columns: 1fr;
  }
  .article-body {
    font-size: 1rem;
  }
  .takeaways {
    padding: 18px;
  }
  .article-cta {
    padding: 24px 20px;
  }
  .article-cta .btn {
    width: 100%;
  }
  .article-meta span + span:before {
    margin-right: 8px;
  }
}
.article-body {
  max-width: 780px;
}
.article-end .related {
  margin-top: 8px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article-figure {
  margin: 0 0 32px;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.blog-card .card-media,
.related-card .card-media {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  margin: -22px -22px 6px;
  border-radius: 17px 17px 0 0;
}
@media (max-width: 600px) {
  .article-figure {
    margin-bottom: 24px;
  }
  .article-figure img {
    border-radius: 14px;
  }
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: var(--surface);
  color: var(--primary);
}
.nav-dropdown-toggle.is-current {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
  transition: transform 0.15s, margin 0.15s;
}
.nav-dropdown.is-open .nav-caret {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  z-index: 60;
}
.nav-dropdown-panel[hidden] {
  display: none;
}
.nav-dropdown-panel ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  width: 210px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35),
    0 2px 6px rgba(15, 23, 42, 0.06);
  animation: menu-fade 0.15s ease both;
}
.desktop-nav .nav-list .nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
}
.desktop-nav .nav-list .nav-dropdown-link:hover {
  background: var(--surface);
  color: var(--primary);
}
.desktop-nav .nav-list .nav-dropdown-link[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
}
@media (max-width: 1080px) {
  .menu-list .menu-tools {
    padding: 14px 0 6px;
  }
  .menu-tools-title {
    margin: 0 0 2px;
    padding-left: 16px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .menu-tools-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
  }
  .menu-list .menu-tools-list li + li {
    border-top: 0;
  }
  .menu-list .menu-tools-list .menu-link {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
  }
}
@media (min-width: 640px) and (max-width: 1080px) {
  .menu-list .menu-tools {
    grid-column: 1/-1;
  }
  .menu-list .menu-tools-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column-gap: 24px;
    column-gap: 24px;
    padding-left: 0;
  }
  .menu-list .menu-tools-list li {
    border-bottom: 0;
  }
}
.blog-hero h1 {
  margin-bottom: 12px;
}
.blog-hero p {
  max-width: 620px;
}
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.blog-cat:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.blog-cat-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}
.blog-group {
  scroll-margin-top: 96px;
}
.blog-group + .blog-group {
  margin-top: 64px;
}
.blog-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.blog-group-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
}
.blog-group-count {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.blog-grid.blog-grid-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.blog-grid-index .blog-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
}
.blog-card-media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--tray);
}
.blog-grid-index .blog-card .card-media {
  width: 100%;
  margin: 0;
  border-radius: 0;
  transition: transform 0.35s ease;
}
.blog-grid-index .blog-card:hover .card-media {
  transform: scale(1.03);
}
.blog-card-body {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 26px 24px;
}
.blog-grid-index .blog-card-title {
  font-size: 1.22rem;
  line-height: 1.3;
}
.blog-grid-index .blog-card:hover .blog-card-title {
  color: var(--primary);
}
.blog-grid-index .blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  width: 100%;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.blog-card-more {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
}
@media (max-width: 700px) {
  .blog-grid.blog-grid-index {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-card-body {
    padding: 18px 20px 20px;
  }
  .blog-grid-index .blog-card-title {
    font-size: 1.1rem;
  }
  .blog-cats {
    gap: 8px;
  }
  .blog-cat {
    font-size: 0.86rem;
    padding: 7px 8px 7px 13px;
  }
  .blog-group + .blog-group {
    margin-top: 48px;
  }
}
:root {
  --accent-text: #c2410c;
}
.article-note strong,
.compare-table thead th:nth-child(3) {
  color: var(--accent-text);
}
.cta-band .btn-primary {
  background: #cc4a14;
}
.cta-band .btn-primary:hover {
  background: #b93d0c;
}
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 8px 10px 8px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid rgba(15, 17, 26, 0.09);
  border-radius: 18px;
  box-shadow: 0 10px 30px -14px rgba(10, 12, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.site-header .brand-logo {
  height: 40px;
}
.site-header .desktop-nav {
  flex: 1 1;
  display: flex;
  justify-content: center;
}
.site-header .desktop-nav .nav-list {
  gap: 2px;
}
.site-header .desktop-nav .nav-list > li > a,
.site-header .nav-dropdown-toggle {
  padding: 8px 12px;
  border-radius: 10px;
  background: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(23, 26, 35, 0.72);
}
.site-header .desktop-nav .nav-list > li > a:hover,
.site-header .desktop-nav .nav-list > li > a[aria-current="page"],
.site-header .nav-dropdown-toggle.is-current,
.site-header .nav-dropdown-toggle:hover,
.site-header .nav-dropdown.is-open .nav-dropdown-toggle {
  background: rgba(15, 17, 26, 0.05);
  color: var(--ink);
}
.site-header .nav-dropdown-panel {
  padding-top: 14px;
}
.site-header .nav-dropdown-panel ul {
  border-color: rgba(15, 17, 26, 0.09);
  border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(10, 12, 20, 0.28);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 7px 0 18px;
  border-radius: 13px;
  background: #141118;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.header-cta:hover {
  background: var(--primary);
  color: #fff;
}
.header-cta-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #141118;
  transition: transform 0.2s ease;
}
.header-cta:hover .header-cta-icon {
  transform: translateX(2px);
  color: var(--primary);
}
.site-header .menu-toggle {
  border: 1px solid rgba(15, 17, 26, 0.12);
  background: rgba(15, 17, 26, 0.04);
  border-radius: 12px;
}
.site-header.menu-open .menu-toggle {
  background: #141118;
  border-color: #141118;
  color: #fff;
}
.site-header.menu-open {
  background: transparent;
}
@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }
  .site-header .header-inner {
    justify-content: space-between;
    min-height: 58px;
    padding: 7px 8px 7px 16px;
  }
  .menu-open .menu-backdrop {
    inset: 0;
  }
  .mobile-menu:not([hidden]) {
    top: calc(100% + 8px);
    left: max(16px, calc((100% - 1200px) / 2));
    right: max(16px, calc((100% - 1200px) / 2));
    border: 1px solid rgba(15, 17, 26, 0.09);
    border-radius: 18px;
    box-shadow: 0 24px 48px -18px rgba(10, 12, 20, 0.35);
    max-height: calc(100dvh - 100px);
  }
  .site-header .menu-cta {
    background: #141118;
    border-color: #141118;
  }
}
@media (max-width: 680px) {
  .site-header {
    padding-top: 10px;
  }
  .site-header .brand-logo {
    height: 34px;
  }
}
@media (max-width: 400px) {
  .site-header .brand-logo {
    height: 30px;
  }
}
.site-header .header-inner.container {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 1080px) {
  .mobile-menu:not([hidden]) {
    left: 16px;
    right: 16px;
  }
  .site-header .desktop-nav {
    display: none;
  }
  .menu-open .menu-backdrop {
    z-index: 0;
  }
  .site-header .header-inner {
    z-index: 2;
  }
  .mobile-menu:not([hidden]) {
    z-index: 3;
  }
}
.site-header.menu-open .header-inner {
  background: #fff;
}
.site-header {
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(15, 17, 26, 0.08);
  pointer-events: auto;
  transition: transform 0.28s ease, box-shadow 0.2s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header .header-inner,
.site-header .header-inner.container {
  width: 100%;
  max-width: 1180px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.menu-open {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.menu-open .header-inner {
  background: none;
}
@media (max-width: 1080px) {
  .site-header .header-inner,
  .site-header .header-inner.container {
    min-height: 62px;
    padding: 0 16px;
  }
  .mobile-menu:not([hidden]) {
    top: 100%;
    left: 0;
    right: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}
@media (max-width: 1080px) {
  .menu-open .menu-backdrop {
    inset: 62px 0 0 0;
  }
}
.site-header .desktop-nav .nav-list > li > a,
.site-header .nav-dropdown-toggle {
  color: #2a3566;
}
.site-header .desktop-nav .nav-list > li > a:hover,
.site-header .desktop-nav .nav-list > li > a[aria-current="page"],
.site-header .nav-dropdown-toggle.is-current,
.site-header .nav-dropdown-toggle:hover,
.site-header .nav-dropdown.is-open .nav-dropdown-toggle {
  background: var(--primary-soft);
  color: var(--primary);
}
.desktop-nav .nav-list .nav-dropdown-link {
  color: #2a3566;
}
.desktop-nav .nav-list .nav-dropdown-link:hover,
.desktop-nav .nav-list .nav-dropdown-link[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
}
.header-cta {
  background: var(--primary);
  box-shadow: 0 8px 18px -10px rgba(43, 84, 230, 0.8);
}
.header-cta:hover {
  background: var(--primary-deep);
}
.header-cta-icon,
.header-cta:hover .header-cta-icon {
  color: var(--primary);
}
.site-header.menu-open .menu-toggle {
  background: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 1080px) {
  .site-header .menu-cta {
    background: var(--primary);
    border-color: var(--primary);
  }
  .menu-list .menu-link {
    color: #2a3566;
  }
}
.blog-card-meta,
.blog-grid-index .blog-card-meta {
  font-size: 0.86rem;
  font-weight: 600;
  color: #3a4558;
}
.blog-grid-index .blog-card-meta span:not(.blog-card-more) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-grid-index .blog-card-meta span:nth-child(2):before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.article-meta {
  color: #3a4558 !important;
  font-weight: 600;
}
.not-found {
  padding: 96px 0 120px;
  background: radial-gradient(
      60% 50% at 50% 0,
      rgba(43, 84, 230, 0.08),
      transparent 70%
    ),
    var(--bg, #fff);
  text-align: center;
}
.not-found-inner {
  max-width: 640px;
}
.not-found-tiles {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.not-found-tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display), sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 6px 0 var(--line-strong),
    0 14px 26px -12px rgba(15, 23, 42, 0.3);
  transform: rotate(-4deg);
}
.not-found-tile:nth-child(2) {
  transform: rotate(3deg) translateY(-6px);
}
.not-found-tile:nth-child(3) {
  transform: rotate(-2deg);
}
.not-found-tile.is-lit {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 0 var(--accent-deep),
    0 14px 26px -12px rgba(229, 82, 31, 0.5);
}
.not-found h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
}
.not-found p {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.not-found-actions {
  gap: 12px;
}
.not-found-actions,
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.not-found-links {
  gap: 8px 22px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.not-found-links a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.not-found-links a:hover {
  text-decoration: underline;
}
@media (max-width: 520px) {
  .not-found {
    padding: 64px 0 88px;
  }
  .not-found-tile {
    width: 68px;
    height: 68px;
    font-size: 2.1rem;
  }
  .not-found-actions .btn {
    width: 100%;
  }
}
/* Standalone game view */
.site-header,
.site-footer,
.skip-link,
.hero-head,
main > section:not(.hero),
.cta-band {
  display: none !important;
}

body {
    margin: 0 !important;
    background: linear-gradient(
        135deg,
        #ffb91d 0%,
        #ff8716 30%,
        #f45116 65%,
        #c91f19 100%
    ) !important;
    background-attachment: fixed !important;
}

main,
section.hero,
section.hero > .container {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}
section.hero > .container {
  max-width: 1200px !important;
}
.game {
  margin-top: 0 !important;
}

.game-toolbar {
    position: relative;
}

.game-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 250px;
    z-index: 2;
}

.game-logo img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .game-logo {
        position: static;
        transform: none;
        width: 200px;
        margin: 12px auto;
    }

    .game-toolbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
