* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --paper: light-dark(#f6f4ec, #121513);
  --panel: light-dark(#fcfbf5, #1a1f1c);
  --ink: light-dark(#19281f, #f6f6ed);
  --muted: light-dark(#4e5b51, #b2bcb3);
  --border: light-dark(#c4c9b9, #384139);
  --orange: light-dark(#ba542d, #efa176);
  --accent: light-dark(#224d36, #d4f3a5);
  --focus: light-dark(#285fb0, #9eceff);
  background: var(--paper); color: var(--ink);
}
:root[data-appearance="light"] { color-scheme: light; }
:root[data-appearance="system"] { color-scheme: light dark; }
body { margin: 0; }
.site { width: min(calc(100% - clamp(2rem, 8vw, 7rem)), 72rem); margin: 0 auto; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: .4rem; left: 1rem; z-index: 3; padding: .7rem 1rem; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.mast, footer, footer nav { display: flex; align-items: center; gap: 1.3rem; }
.mast { min-height: 4.8rem; }
.brand { display: inline-flex; align-items: baseline; margin-right: auto; font-weight: 780; font-size: 1.7rem; letter-spacing: -.06em; }
.suffix { color: var(--muted); }
.brand-mark { align-self: center; width: 1.25rem; height: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-right: .52rem; transform: rotate(-7deg); }
.brand-mark i { background: var(--accent); border-radius: 2px; }
.brand-mark i:last-child { background: var(--orange); }
.account-link, footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.account-link { font-weight: 600; text-decoration: none; }
.account-link:hover, footer a:hover { text-decoration: underline; }
.appearance { position: relative; display: flex; align-items: center; }
.appearance-mark { position: absolute; left: .7rem; width: .9rem; height: .9rem; border: 1.5px solid var(--muted); border-radius: 50%; background: linear-gradient(90deg,var(--muted) 50%,transparent 50%); pointer-events: none; }
.appearance select { min-height: 44px; padding: .45rem .4rem .45rem 1.95rem; border: 1px solid var(--border); border-radius: .7rem; font: inherit; font-size: .85rem; color: var(--ink); background-color: var(--paper); cursor: pointer; }
/* Daily Cube uses a blue, white and red stripe across game surfaces. */
.daily-cube {
  --cube-blue: #618eff;
  --cube-white: #fff;
  --cube-red: light-dark(#e52c40, #ff5966);
  --hero: light-dark(#e4ecff, #192744);
  --hero-ink: light-dark(#172748, #f7f9ff);
  --hero-muted: light-dark(#394b6a, #c7d4ee);
  --action: light-dark(#204cb3, var(--cube-blue));
  --on-action: light-dark(#fff, #0b1731);
  --panel: light-dark(#fafbff, #1b202a);
  --ink: light-dark(#19263b, #f2f5ff);
  --muted: light-dark(#48556b, #b8c3d6);
  --border: light-dark(#b6c2d6, #435067);
  color: var(--ink);
}
.feature { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem; background: var(--hero); color: var(--hero-ink); }
.feature-copy { position: relative; z-index: 1; width: 64%; padding: clamp(2rem, 4.6vw, 4.2rem); }
.edition { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font: 650 .76rem/1.25 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.edition-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--action); }
h1 { margin: 1.35rem 0 .9rem; font-size: clamp(4.15rem, 8.6vw, 7.6rem); font-weight: 750; letter-spacing: -.045em; line-height: .97; }
.deck { max-width: 39ch; margin: 0; color: var(--hero-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.55; }
.play { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 1.4rem; margin-top: 1.5rem; padding: .8rem 1.2rem; border-radius: .65rem; background: var(--action); color: var(--on-action); font-weight: 700; text-decoration: none; }
.play:hover { box-shadow: 0 0 0 2px var(--hero), 0 0 0 3px var(--action); }
.play span, .sizes a span { font-family: system-ui,sans-serif; font-size: 1.2em; line-height: 1; }
.track { position: absolute; z-index: 0; inset: 0 0 0 55%; pointer-events: none; }
.lanes { position: absolute; width: 115%; height: 230%; left: 23%; top: -47%; transform: rotate(39deg); }
.lanes i { position: absolute; inset: 0; border: clamp(7px, 1.35vw, 19px) solid var(--cube-blue); border-radius: 99rem; }
.lanes i:nth-child(2) {
  inset: clamp(17px, 3vw, 43px);
  border-color: var(--cube-white);
  box-shadow: 0 0 0 1px light-dark(#6179a64d, transparent);
}
.lanes i:last-child { inset: clamp(34px, 6vw, 86px); border-color: var(--cube-red); }
.puzzles { margin-top: clamp(1.9rem, 3.6vw, 3rem); }
.puzzles h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 2.3vw, 1.9rem); letter-spacing: -.035em; }
.mode-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.mode { display: flex; flex-direction: column; padding: clamp(1.1rem, 2.6vw, 1.8rem); background: var(--panel); border: 1px solid var(--border); border-radius: 1.1rem; }
.standard { --tint: light-dark(#dfe9ff, #273858); --tone: light-dark(#234eb2, #a8c3ff); }
.memory { --tint: light-dark(#ffe2e5, #44282f); --tone: light-dark(#9d1930, #ff8b95); }
.mode-head { display: flex; align-items: center; gap: .8rem; }
.mode-head h3 { margin: 0; font-size: 1.48rem; line-height: 1.15; letter-spacing: -.025em; }
.mode-icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .8rem; background: var(--tint); color: var(--tone); }
.mode-icon i { position: relative; border: 2px solid currentColor; }
.standard .mode-icon i { width: 1.2rem; height: 1.2rem; margin-top: 3px; border-radius: 50%; }
.standard .mode-icon i::before, .standard .mode-icon i::after { content: ""; position: absolute; background: currentColor; }
.standard .mode-icon i::before { width: 6px; height: 2px; left: calc(50% - 3px); top: -5px; }
.standard .mode-icon i::after { width: 2px; height: 6px; bottom: 50%; left: calc(50% - 1px); transform-origin: bottom; transform: rotate(35deg); }
.memory .mode-icon i { width: 1.08rem; height: 1.08rem; transform: rotate(45deg); border-radius: 75% 12%; }
.memory .mode-icon i::after { content: ""; position: absolute; inset: 3px; background: currentColor; border-radius: 50%; }
.mode p { margin: .85rem 0 1.15rem; color: var(--muted); max-width: 41ch; line-height: 1.5; }
.sizes { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.sizes a { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: .55rem; font-size: .92rem; font-weight: 650; text-decoration: none; }
.sizes a span { color: var(--tone); }
.sizes a:hover, .sizes a:focus-visible { background: var(--tint); border-color: var(--tone); }
footer { margin-top: 1.75rem; padding: .4rem 0 1.25rem; color: var(--muted); border-top: 1px solid var(--border); }
.preview-status { margin-right: auto; font-size: .82rem; }
@media (max-width: 42rem) {
  .site { width: calc(100% - 2rem); }
  .mast, footer nav { gap: .8rem; }
  .mast { min-height: 4.1rem; }
  .feature-copy { width: 77%; padding: clamp(1.4rem, 5vw, 2.2rem); }
  .track { left: 70%; overflow: hidden; }
  .deck { font-size: 1rem; }
  .mode-list { grid-template-columns: 1fr; gap: .7rem; }
  .mode p { max-width: none; }
}
@media (max-width: 27rem) {
  .site { width: calc(100% - 1.5rem); }
  .mast { gap: .55rem; }
  .brand { font-size: 1.4rem; }
  .brand-mark { width: 1rem; height: 1rem; margin-right: .35rem; }
  .account-link { font-size: .8rem; }
  .appearance select { font-size: .8rem; }
  .feature { border-radius: 1rem; }
  .feature-copy { width: 100%; padding: 1.55rem 1.15rem; }
  .track { inset: 0 0 auto auto; width: 29%; height: 3.75rem; border-bottom-left-radius: 100%; }
  .lanes { width: 250%; left: -23%; height: 540%; top: -180%; }
  h1 { margin-top: 1.3rem; font-size: clamp(3.1rem, 13vw, 4rem); }
  .deck { max-width: 32ch; }
}
