:root {
  color-scheme:dark;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#f5f7f8;
  background:#071017;
  font-synthesis:none;
  --teal:#00d8c1;
  --cyan:#12c7db;
  --muted:#9aa6ae;
  --board-size:min(536px,calc(100svh - 180px),calc(100vw - 290px));
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  min-width:280px;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer;
  border:0;
}

a {
  color:inherit;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #b2f3a9;
  outline-offset:5px;
}

button:disabled {
  cursor:default;
}

svg {
  fill:currentColor;
  width:24px;
  height:24px;
  flex-shrink:0;
}

canvas {
  display:block;
  width:100%;
  height:100%;
  image-rendering:pixelated;
}

h1,h2,h3,p {
  margin:0;
}

[hidden] {
  display:none!important;
}

.icon-definitions {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

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

.home-screen {
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:48px 24px;
  background:radial-gradient(ellipse at 35% 36%,#003c3d55,transparent 49%),radial-gradient(ellipse at 83% 71%,#06374644,transparent 50%),#071017;
  position:relative;
  isolation:isolate;
}

.home-screen:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.25;
  background-image:radial-gradient(circle,#64848766 .7px,transparent 1px);
  background-size:31px 37px;
  mask-image:linear-gradient(transparent,#000 15%,#000 85%,transparent);
}

.home-layout {
  display:grid;
  grid-template-columns:360px 360px;
  align-items:center;
  gap:72px;
}

.brand {
  text-align:center;
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:4px;
  font-size:11px;
  font-weight:700;
  color:#8ba4aa;
}

.hero-art {
  height:220px;
  width:350px;
  position:relative;
  margin:22px auto 20px;
}

.hero-glyph {
  position:absolute;
  padding:5px;
  border:1px solid #72939766;
  border-radius:21px;
  background:#112a31;
  box-shadow:0 15px 35px #0004,inset 0 0 0 2px #0003;
  overflow:hidden;
}

.hero-glyph canvas {
  border-radius:14px;
}

.hero-glyph-main {
  width:188px;
  height:188px;
  left:77px;
  top:7px;
  transform:rotate(-8deg);
  z-index:2;
}

.hero-glyph-small {
  width:99px;
  height:99px;
  left:17px;
  top:88px;
  transform:rotate(-17deg);
  border-radius:16px;
}

.hero-glyph-small canvas,.hero-glyph-gray canvas {
  border-radius:10px;
}

.hero-glyph-gray {
  width:103px;
  height:103px;
  right:5px;
  top:28px;
  transform:rotate(17deg);
  border-radius:16px;
}

.hero-sparkle {
  color:var(--cyan);
  position:absolute;
}

.sparkle-one {
  left:60px;
  top:13px;
  width:24px;
  height:29px;
}

.sparkle-two {
  right:38px;
  bottom:9px;
  width:25px;
  height:25px;
  color:var(--teal);
}

.brand h1 {
  font-family:ui-rounded,"Arial Rounded MT Bold",-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:900;
  line-height:1.1;
}

.mega {
  display:block;
  text-transform:uppercase;
  letter-spacing:9px;
  font-size:36px;
  padding-left:9px;
}

.glyph {
  display:block;
  text-transform:uppercase;
  font-size:67px;
  letter-spacing:2px;
  margin-top:4px;
  background:linear-gradient(100deg,#00cdbb 5%,#cffac2 53%,#12c7db 96%);
  color:transparent;
  background-clip:text;
  -webkit-background-clip:text;
}

.tagline {
  font-size:16px;
  color:#b1bbc2;
  margin-top:20px;
}

.mode-picker {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mode-card {
  display:flex;
  align-items:center;
  text-align:left;
  gap:17px;
  border:1px solid #00cdbb36;
  border-radius:24px;
  padding:22px 20px;
  background:linear-gradient(110deg,#00cdbb13,#00cdbb05);
  box-shadow:inset 0 0 0 1px #ffffff03;
  transition:background .18s,transform .18s;
  min-height:111px;
}

.mode-card:hover {
  background:linear-gradient(110deg,#00cdbb23,#00cdbb0a);
  transform:translateY(-2px);
}

.timed-card {
  border-color:#12c7db36;
  background:linear-gradient(110deg,#12c7db13,#12c7db05);
}

.mode-icon {
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:var(--teal);
  background:#00cdbb19;
}

.mode-icon svg {
  width:27px;
  height:27px;
}

.timed-card .mode-icon {
  color:var(--cyan);
  background:#12c7db1c;
}

.mode-copy {
  flex:1;
}

.mode-copy strong {
  font-size:24px;
  display:block;
  margin-bottom:4px;
  line-height:1.1;
}

.mode-copy>span {
  font-size:16px;
  line-height:1.35;
  color:#9bafb7;
}

.mode-arrow {
  width:26px;
  height:26px;
  color:var(--teal);
  margin-left:10px;
}

.timed-card .mode-arrow {
  color:var(--cyan);
}

.duration-row {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  margin-top:3px;
}

.small-label {
  font-family:ui-monospace,SFMono-Regular,monospace;
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:10px;
  color:#94a3ad;
  white-space:nowrap;
}

.segmented {
  display:flex;
  padding:5px;
  border-radius:999px;
  border:1px solid #ffffff26;
  background:#0005;
  box-shadow:inset 0 0 0 1px #ffffff04;
}

.segmented button {
  border-radius:999px;
  background:transparent;
  color:#b9bec5;
  font-weight:650;
  transition:background .2s,color .2s;
}

.duration-picker button {
  min-width:76px;
  padding:10px 13px;
  font-size:15px;
}

.duration-picker button[aria-pressed=true] {
  background:var(--cyan);
  color:#04202a;
}

.privacy {
  font-size:11px;
  line-height:1.5;
  text-align:center;
  color:#94a3ad;
  margin:13px -5px 4px;
}

.privacy a {
  text-decoration:none;
}

.privacy a:hover,.rom-link:hover {
  text-decoration:underline;
}

.app-store {
  border:1px solid #ffffff4d;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  padding:8px 14px;
  background:#02080c;
  align-self:center;
  transition:border-color .2s;
}

.app-store:hover {
  border-color:#b9f4ed;
}

.app-store svg {
  width:25px;
  height:29px;
}

.app-store small {
  font-size:10px;
  line-height:1.1;
  display:block;
  letter-spacing:.15px;
}

.app-store strong {
  font-size:21px;
  font-weight:550;
  line-height:1.15;
  display:block;
}

.rom-link {
  font-size:11px;
  text-decoration:none;
  text-align:center;
  color:#7f959e;
  line-height:1.5;
  margin-top:3px;
}

.game-screen {
  min-height:100svh;
  background:linear-gradient(120deg,#0a0d17 0%,#142129 52%,#291c1f 100%);
  padding:16px 24px 104px;
}

.game-header {
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
  max-width:1280px;
  margin:0 auto;
  min-height:48px;
}

.game-header h1 {
  text-align:center;
  font-size:17px;
  font-weight:600;
  outline:none;
}

.home-button {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid #ffffff14;
  border-radius:50%;
  background:#ffffff08;
  color:var(--teal);
  box-shadow:inset 0 0 10px #6e74df0e;
}

.home-button svg {
  width:25px;
  height:25px;
}

.home-button:hover {
  background:#ffffff12;
}

.game-layout {
  display:grid;
  grid-template-columns:190px var(--board-size);
  align-items:center;
  gap:38px;
  justify-content:center;
  padding-top:30px;
}

.target-panel {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.target-panel h2 {
  font-size:21px;
  white-space:nowrap;
  line-height:1.2;
}

.target-preview {
  width:128px;
}

.target-preview canvas {
  border-radius:9px;
  aspect-ratio:1;
}

.point-marks {
  display:flex;
  gap:5px;
  height:6px;
  margin-top:15px;
}

.point-marks i {
  flex:1;
  background:#ffffff29;
  border-radius:8px;
  transition:background .15s;
}

.point-marks i.spent {
  background:#f53038;
}

.point-marks i.earned {
  background:var(--cyan);
}

.today-pill {
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:70px;
  border-radius:30px;
  background:#ffffff20;
  padding:5px 17px;
  line-height:1.1;
}

.today-pill strong {
  font-size:23px;
}

.today-pill span {
  font-size:12px;
  color:#aab3bc;
  font-weight:600;
  margin-top:2px;
}

.glyph-board {
  width:var(--board-size);
  aspect-ratio:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  overflow:hidden;
  border-radius:12px;
  position:relative;
  isolation:isolate;
  box-shadow:0 10px 28px #00000012;
}

.glyph-cell {
  position:relative;
  display:block;
  padding:0;
  background:transparent;
  min-width:0;
  aspect-ratio:1;
  touch-action:manipulation;
  transition:filter .12s;
}

.glyph-cell:hover {
  filter:brightness(1.12);
  z-index:1;
}

.glyph-cell:focus-visible {
  outline:3px solid #fff;
  outline-offset:-3px;
  z-index:2;
}

.glyph-cell.wrong:after {
  content:"";
  position:absolute;
  inset:2px;
  border:3px solid #ff453ae6;
  box-shadow:inset 0 0 20px #f35a;
  pointer-events:none;
}

.timer-card {
  background:#ffffff1c;
  border:1px solid #ffffff10;
  border-radius:10px;
  padding:7px 8px 9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:94px;
  line-height:1.15;
}

.timer-ring {
  width:76px;
  height:76px;
  position:relative;
  display:grid;
  place-items:center;
}

.timer-ring svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  fill:none;
  transform:rotate(-90deg);
}

.timer-ring circle {
  stroke-width:7;
  stroke-linecap:round;
}

.timer-track {
  stroke:#ffffff1c;
}

#timer-progress {
  stroke:var(--cyan);
  stroke-dasharray:276.46;
  stroke-dashoffset:0;
  transition:stroke-dashoffset .25s linear;
}

.timer-ring span {
  font-size:17px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

.timer-card>strong {
  font-size:21px;
  margin-top:2px;
}

.timer-card>span {
  font-size:12px;
  color:#aab3bc;
  margin-top:2px;
  font-weight:600;
}

.timer-card.urgent #timer-progress {
  stroke:#ffb15c;
}

.zen-tabs {
  position:fixed;
  bottom:max(18px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:344px;
  max-width:calc(100% - 36px);
  z-index:5;
  background:#0b0a0bd9;
  backdrop-filter:blur(16px);
}

.zen-tabs button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:1;
  padding:13px 10px;
  font-size:15px;
}

.zen-tabs svg {
  width:19px;
  height:19px;
}

.zen-tabs button[aria-current=page] {
  background:var(--teal);
  color:#052824;
}

.won-panel {
  max-width:1280px;
  margin:40px auto 0;
}

.won-panel h2 {
  font-size:25px;
  margin-bottom:20px;
}

.stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.stat {
  border:1px solid #ffffff12;
  border-radius:9px;
  background:#ffffff1b;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.stat strong {
  font-size:25px;
  line-height:1.1;
}

.stat span {
  font-size:13px;
  color:#aab3bc;
  font-weight:600;
}

.won-panel h3 {
  font-size:16px;
  font-weight:500;
  color:#aab3bc;
  margin:18px 0;
}

.collection {
  display:grid;
  grid-template-columns:repeat(auto-fill,104px);
  gap:14px;
}

.collected-glyph {
  border:1px solid #ffffff14;
  border-radius:10px;
  background:#ffffff16;
  padding:14px 8px;
  aspect-ratio:104/128;
}

.collected-glyph canvas {
  height:auto;
  aspect-ratio:1;
}

.empty-collection {
  text-align:center;
  color:var(--muted);
  line-height:1.7;
  padding:50px 16px;
  font-size:16px;
}

dialog {
  color:#f5f7f8;
  background:linear-gradient(145deg,#12252d,#201e28);
  border:1px solid #ffffff22;
  border-radius:25px;
  text-align:center;
  padding:30px;
  width:330px;
  max-width:calc(100vw - 32px);
  box-shadow:0 25px 100px #0008;
}

dialog::backdrop {
  background:#03070bbf;
  backdrop-filter:blur(8px);
}

.result-icon {
  width:36px;
  height:36px;
  color:var(--cyan);
  margin-bottom:15px;
}

dialog h2 {
  font-size:27px;
}

#result-duration {
  font-size:14px;
  color:var(--muted);
  margin-top:8px;
}

.result-score {
  display:block;
  font-size:60px;
  margin-top:15px;
  line-height:1.1;
}

.result-score-label {
  color:var(--muted);
  font-size:14px;
}

#result-best {
  margin:15px 0 24px;
  color:#b4c4cc;
  font-size:15px;
}

.primary-button {
  padding:14px;
  width:100%;
  border-radius:999px;
  color:#062824;
  background:var(--teal);
  font-weight:700;
}

.text-button {
  background:transparent;
  color:#c4cbd0;
  padding:15px 20px 0;
  margin-top:3px;
  font-size:15px;
}

@keyframes float-main {
  50% {
    transform:translateY(-7px) rotate(-6deg);
  }
}

@keyframes float-small {
  50% {
    transform:translateY(5px) rotate(-20deg);
  }
}

@keyframes float-gray {
  50% {
    transform:translateY(-5px) rotate(20deg);
  }
}

@media(max-width:850px) {
  .home-layout {
    grid-template-columns:310px 310px;
    gap:38px;
  }
  .hero-art {
    transform:scale(.9);
    transform-origin:center;
    width:350px;
    margin-left:-20px;
  }
  .mode-card {
    padding:20px 17px;
    gap:14px;
  }
  .duration-row {
    gap:10px;
  }
  .duration-picker button {
    min-width:67px;
  }
  .game-layout {
    gap:24px;
    grid-template-columns:175px var(--board-size);
  }
}

@media(max-width:640px) {
  :root {
    --board-size:min(calc(100vw - 32px),calc(100svh - 330px));
  }
  .home-screen {
    display:block;
    padding:38px 22px 22px;
  }
  .home-layout {
    display:flex;
    flex-direction:column;
    gap:30px;
    max-width:390px;
    margin:auto;
  }
  .brand {
    width:100%;
  }
  .eyebrow {
    font-size:10px;
    letter-spacing:3.5px;
  }
  .hero-art {
    width:330px;
    height:207px;
    margin:20px auto 14px;
    transform:none;
  }
  .hero-glyph-main {
    left:77px;
    width:182px;
    height:182px;
  }
  .hero-glyph-small {
    left:7px;
    top:90px;
    width:94px;
    height:94px;
  }
  .hero-glyph-gray {
    right:0;
    width:98px;
    height:98px;
  }
  .mega {
    font-size:35px;
    letter-spacing:8px;
  }
  .glyph {
    font-size:64px;
    letter-spacing:1px;
  }
  .tagline {
    font-size:16px;
    margin-top:19px;
  }
  .mode-picker {
    width:100%;
    gap:12px;
  }
  .mode-card {
    border-radius:24px;
    padding:20px;
    min-height:110px;
    gap:17px;
  }
  .mode-copy strong {
    font-size:24px;
  }
  .mode-copy>span {
    font-size:16px;
  }
  .duration-row {
    gap:17px;
    margin-top:2px;
  }
  .duration-picker button {
    min-width:75px;
  }
  .small-label {
    font-size:10px;
  }
  .privacy {
    font-size:11px;
    margin-top:14px;
  }
  .rom-link {
    font-size:11px;
  }
  .game-screen {
    padding:12px 16px 94px;
  }
  .game-header {
    grid-template-columns:46px 1fr 35px;
    min-height:46px;
  }
  .game-header h1 {
    font-size:17px;
  }
  .game-layout {
    display:flex;
    flex-direction:column;
    gap:23px;
    padding-top:28px;
  }
  .target-panel {
    width:100%;
    display:grid;
    grid-template-columns:1fr auto;
    gap:23px 12px;
    align-items:center;
  }
  .target-panel h2 {
    font-size:23px;
    grid-column:1;
    grid-row:1;
  }
  .target-preview {
    grid-column:1 / -1;
    grid-row:2;
    justify-self:center;
    width:94px;
  }
  .point-marks {
    margin-top:15px;
    height:5px;
    gap:5px;
  }
  .today-pill {
    grid-column:2;
    grid-row:1;
    min-width:76px;
    padding:6px 18px;
  }
  .today-pill strong {
    font-size:23px;
  }
  .timer-card {
    grid-column:2;
    grid-row:1;
    width:99px;
    padding:7px 8px 9px;
  }
  .timer-ring {
    width:81px;
    height:81px;
  }
  .timer-ring span {
    font-size:18px;
  }
  .timer-card>strong {
    font-size:22px;
  }
  .game-screen.timed .game-layout {
    padding-top:22px;
  }
  .game-screen.timed .target-panel {
    gap:23px 12px;
  }
  .game-screen.timed {
    --board-size:min(calc(100vw - 32px),calc(100svh - 365px));
  }
  .glyph-board {
    border-radius:11px;
  }
  .zen-tabs {
    width:calc(100% - 36px);
    max-width:390px;
    bottom:max(12px,env(safe-area-inset-bottom));
  }
  .zen-tabs button {
    font-size:16px;
    padding:12px 10px;
  }
  .won-panel {
    margin-top:37px;
  }
  .won-panel h2 {
    font-size:25px;
    margin-bottom:16px;
  }
  .stat {
    padding:13px;
  }
  .stat strong {
    font-size:25px;
  }
  .collection {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .collected-glyph {
    aspect-ratio:104/128;
    padding:15px 8px;
  }
  .won-panel h3 {
    margin:17px 0;
    font-size:16px;
  }
}

@media(max-width:360px) {
  .hero-art {
    transform:scale(.87);
    transform-origin:top left;
    margin-left:calc((100% - 287px)/2);
    width:330px;
    height:182px;
  }
  .home-screen {
    padding:28px 17px 20px;
  }
  .mega {
    font-size:30px;
  }
  .glyph {
    font-size:56px;
  }
  .mode-card {
    padding:18px 15px;
    gap:13px;
  }
  .duration-row {
    gap:10px;
  }
  .duration-picker button {
    min-width:65px;
    padding:10px;
  }
  .target-panel h2 {
    font-size:21px;
  }
  .game-header h1 {
    font-size:15px;
  }
  .home-layout {
    gap:25px;
  }
}

@media(max-height:600px) and (min-width:641px) {
  :root {
    --board-size:calc(100svh - 125px);
  }
  .game-screen {
    padding-top:10px;
    padding-bottom:75px;
  }
  .game-layout {
    padding-top:10px;
  }
  .zen-tabs {
    bottom:10px;
  }
  .target-panel {
    gap:12px;
  }
  .target-preview {
    width:90px;
  }
  .target-panel h2 {
    font-size:18px;
  }
  .home-screen {
    padding:22px;
  }
  .home-layout {
    gap:45px;
  }
  .hero-art {
    height:190px;
    margin-top:12px;
    transform:scale(.85);
  }
  .mega {
    font-size:30px;
  }
  .glyph {
    font-size:54px;
  }
  .tagline {
    margin-top:13px;
  }
  .mode-card {
    min-height:95px;
    padding:17px;
  }
  .mode-picker {
    gap:9px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
}

/* The board is one seamless image; transparent buttons preserve native input. */
#board-canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.glyph-cell {
  z-index:1;
}

.glyph-cell.correct:after {
  content:"";
  position:absolute;
  inset:2px;
  border:3px solid var(--teal);
  pointer-events:none;
}

.target-preview {
  position:relative;
}

.target-preview #target-canvas {
  transition:transform .14s;
  box-shadow:0 6px 12px #0004;
}

.target-preview #target-canvas.rerolling {
  transform:scale(.98);
}

.confetti {
  position:absolute;
  left:50%;
  top:calc(50% - 10px);
  z-index:3;
  pointer-events:none;
  border-radius:1px;
}

.score-toast {
  position:absolute;
  top:-35px;
  left:0;
  width:100%;
  color:var(--cyan);
  font-size:25px;
  font-weight:900;
  text-align:center;
  pointer-events:none;
}

.new-best {
  color:#32d74b!important;
}

.home-screen[hidden] .hero-glyph {
  animation-play-state:paused;
}

.mode-card:active {
  transform:scale(.98);
  filter:brightness(1.06);
}

.privacy a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

.external-icon {
  width:12px;
  height:12px;
  margin-left:3px;
}

.privacy {
  margin-top:0;
}

.hero-art:before {
  content:"";
  position:absolute;
  inset:14px 62px 22px 67px;
  border:1px dashed #00d8c124;
  transform:rotate(-7deg);
  border-radius:21px;
}

.hero-art:after {
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  right:25px;
  bottom:58px;
  background:#00d8c16b;
  transform:rotate(18deg);
}

@media(min-width:641px) and (orientation:portrait) {
  :root {
    --board-size:min(536px,calc(100vw - 32px),calc(100svh - 350px));
  }
  .game-layout {
    display:flex;
    flex-direction:column;
    gap:24px;
    padding-top:28px;
  }
  .target-panel {
    gap:15px;
  }
  .target-preview {
    width:120px;
  }
  .game-screen.timed .target-panel {
    display:grid;
    grid-template-columns:120px 100px;
    justify-content:center;
    gap:20px;
  }
  .game-screen.timed .target-panel h2 {
    grid-column:1 / -1;
    text-align:center;
  }
  .home-layout {
    display:flex;
    flex-direction:column;
    gap:30px;
  }
  .mode-picker {
    width:360px;
    max-width:100%;
  }
  .hero-art {
    margin-left:auto;
    margin-right:auto;
    transform:none;
  }
}

@media(min-width:641px) and (max-width:739px) {
  .home-layout {
    display:flex;
    flex-direction:column;
    gap:30px;
  }
  .mode-picker {
    width:360px;
    max-width:100%;
  }
  .hero-art {
    margin-left:auto;
    margin-right:auto;
    transform:none;
  }
}

@media(min-width:740px) and (orientation:landscape) {
  .home-layout {
    grid-template-columns:340px 360px;
    gap:64px;
  }
  .hero-art {
    width:340px;
    margin-left:auto;
    margin-right:auto;
    transform:none;
  }
  .game-layout {
    grid-template-columns:220px var(--board-size);
    gap:30px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .mode-card:active {
    transform:none;
  }
  .confetti {
    display:none;
  }
  .score-toast {
    opacity:1;
  }
}

.eyebrow {
  display:inline-block;
  text-decoration:none;
  padding:5px 8px;
}

.eyebrow:hover {
  text-decoration:underline;
  color:#c1d8dc;
}

body {
  overflow-x:clip;
}

.game-screen.timed {
  padding-bottom:28px;
}

.glyph-cell.wrong:after,.glyph-cell.correct:after {
  inset:0;
  border-width:4px;
}

dialog {
  background:#000b;
  border-radius:8px;
  padding:20px;
  width:340px;
}

dialog::backdrop {
  background:#0008;
  backdrop-filter:none;
}

dialog h2 {
  font-size:24px;
}

.result-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:20px 0;
}

.result-stats .stat {
  text-align:left;
}

.result-stats strong {
  font-size:27px;
}

#result-best {
  margin:0 0 20px;
  font-weight:600;
}

.glyph-cell.correct:after {
  box-shadow:0 6px 12px #00d8c16b;
}

.glyph-cell.wrong:after {
  box-shadow:0 6px 12px #ff453a6b;
}
.app-store {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  margin:12px;
}
.app-store img {
  display:block;
  width:auto;
  height:44px;
}
.trademark-credit {
  font-size:11px;
  line-height:1.5;
  color:#7f959e;
  text-align:center;
  margin-top:8px;
}
.play-panel,.won-panel {
  touch-action:pan-y pinch-zoom;
}
