@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff") format("woff"); font-style: normal; font-weight: 200 1000; font-display: swap; }
body.product button,
body.product select,
body.product summary {
  min-height: 44px;
}
body.product .app-header {
  position: relative;
  top: auto;
  background: var(--brand);
  padding: max(16px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right)) 18px
    max(18px, env(safe-area-inset-left));
  gap: 14px;
}
body.product .brand-icon { flex: 0 0 auto; width: 64px; height: 64px; object-fit: contain; }
body.product .app-header h1 {
  color: white;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}
.product-nav {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 5px;
  flex: 1 0 100%;
  width: min(760px, 100%);
  margin-inline: auto;
  min-width: 0;
}
.product-nav button {
  border: 1px solid #ffffff40;
  border-radius: 11px;
  background: #ffffff10;
  color: white;
  font: 800 clamp(0.8rem, 1.6vw, 0.95rem) / 1.2 "Nunito", sans-serif;
  padding: 7px;
  min-width: 0;
}
.product-nav button[aria-pressed="true"] {
  background: #ffda71;
  color: #172033;
  border-color: #ffda71;
}
body.product button:focus-visible,
body.product select:focus-visible,
body.product summary:focus-visible {
  outline: 3px solid #e4a120;
  outline-offset: 3px;
}
.product-quick {
  width: min(1160px, calc(100% - 28px));
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: white;
  color: #192443;
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #dfe3ed;
}
.product-quick h2,
.product-quick > p,
.product-eyebrow,
.product-presets {
  grid-column: 1/-1;
  margin: 0;
}
.product-quick h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}
.product-eyebrow {
  color: #566391;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 900;
}
.product-quick > p {
  color: #64708a;
}
.product-field {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 850;
  min-width: 0;
}
.product-field select,
.product-presets select,
.product-presets input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cdd4e3;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafc;
  color: #192443;
  font: inherit;
}
.product-button {
  border: 1px solid #cdd4e3;
  border-radius: 11px;
  background: white;
  color: #27365d;
  padding: 9px 14px;
  font: 800 .875rem/1.2 "Nunito", sans-serif;
  cursor: pointer;
}
.product-start {
  grid-column: span 3;
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  font-size: 1rem;
}
.product-advanced {
  padding: 16px;
  border: 1px solid #dce1eb;
  border-radius: 18px;
  background: white;
  color: #192443;
  min-width: 0;
}
.product-advanced summary {
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.product-advanced .control-column {
  margin-top: 16px;
}
.product-a11y {
  display: grid;
  gap: 12px;
  margin-block: 18px;
}
.product-a11y label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.product-a11y input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.product-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #e5e8f0;
  padding-top: 14px;
}
.product-presets h3 {
  font-size: 0.82rem;
  margin: 0 8px 0 0;
}
.product-presets select,
.product-presets input {
  width: 160px;
}
.product-sound-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  padding: 12px 0;
}
.product-sound-row input {
  min-width: 0;
  flex: 1 1 160px;
}
.product-notice {
  margin: 12px auto;
  padding: 12px;
  width: min(1160px, calc(100% - 28px));
  background: #fff2c3;
  color: #4b380d;
  border-radius: 10px;
}
.product-dialog {
  border: 0;
  border-radius: 18px;
  padding: 25px;
  max-width: min(560px, 90vw);
  color: #192443;
  background: white;
  line-height: 1.6;
}
.product-dialog::backdrop {
  background: #11182c99;
}
body.product.game-active {
  overflow: hidden;
}
body.product .game-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(4px, 1vh, 12px);
  overflow: hidden;
  padding: max(8px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: #15203b;
}
body.product .game-view > .game-topbar {
  display: none !important;
}
body.product .game-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vh, 12px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
body.product .game-art,
body.product .game-graphic-wrap,
body.product .game-parcel-wrap {
  flex: 0 1 auto;
  width: min(46vh, 64vw, 430px) !important;
  height: min(44vh, 58vw, 410px) !important;
  min-height: 0;
  aspect-ratio: auto;
  grid-area: auto !important;
  margin: 0;
}
body.product .game-graphic-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-art {
  object-fit: contain;
  flex: 0 1 auto;
  width: min(48vh, 68vw, 440px);
  height: min(46vh, 62vw, 420px);
  min-height: 0;
  max-height: 65%;
}
body.product .product-art[hidden] {
  display: none !important;
}
body.product.has-product-art .game-graphic-wrap,
body.product.has-product-art .game-parcel-wrap {
  display: none !important;
}
body.product.has-product-art .game-aura,
body.product.has-product-art .game-tree {
  display: none !important;
}
body.product .game-parcel-wrap .gift {
  animation: productFloat 2.5s ease-in-out infinite !important;
  transform: scale(0.95);
}
body.product .game-parcel-wrap .eyeball {
  width: min(32vh, 48vw, 300px);
  height: min(23vh, 35vw, 210px);
}
body.product .game-time,
body.product .game-view.round-ended .game-time,
body.product .game-view.exploded .game-time {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: clamp(1.7rem, 6vw, 4.5rem) !important;
  line-height: 1.05;
  grid-area: auto !important;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.product[data-display="hidden"]
  .game-view:not(.exploded):not(.round-ended):not(.paused)
  .game-time,
body.product[data-display="visual"]
  .game-view:not(.exploded):not(.round-ended):not(.paused)
  .game-time {
  display: none;
}
body.product .game-message,
body.product .game-view.round-ended .game-message {
  margin: 0;
  grid-area: auto !important;
  font-size: clamp(0.85rem, 2vw, 1.35rem);
  letter-spacing: 0.09em;
  text-align: center;
}
body.product .game-submessage {
  margin: 0;
  grid-area: auto !important;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
}
body.product .game-actions {
  position: relative !important;
  inset: auto !important;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 0 !important;
  min-height: 44px;
}
body.product .game-actions button {
  flex: 1;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 7px !important;
  font-size: clamp(0.68rem, 1.7vw, 0.9rem);
  white-space: normal;
}
body.product .product-progress {
  width: min(500px, 80%);
  height: 16px;
  accent-color: #ffda71;
  display: none;
  flex: none;
}
body.product[data-display="visual"] .product-progress {
  display: block;
}
body.product.reduce-motion *,
body.product.reduce-motion *::before,
body.product.reduce-motion *::after,
body.product.low-stimulation *,
body.product.low-stimulation *::before,
body.product.low-stimulation *::after {
  animation: none !important;
  transition: none !important;
}
body.product.low-stimulation .scene-decor,
body.product.low-stimulation .game-halo,
body.product.low-stimulation .game-aura {
  display: none !important;
}
body.product footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
}
body.product footer button {
  min-height: 44px;
}
@keyframes productFloat {
  50% {
    transform: translateY(-7px) scale(0.95);
  }
}
@media (max-width: 650px) {
  .product-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-start {
    grid-column: auto;
  }
  body.product .app-header .prototype-badge {
    display: none;
  }
  body.product .brand-mark,
  body.product .brand-icon {
    width: 45px;
    height: 45px;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  body.product .game-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    column-gap: 20px;
    align-items: center;
  }
  body.product .game-graphic-wrap,
  body.product .game-parcel-wrap,
  body.product .product-art {
    grid-column: 1 !important;
    grid-row: 1/4 !important;
    justify-self: center;
    width: min(53vh, 39vw, 460px) !important;
    height: min(49vh, 33vw, 430px) !important;
    max-height: 100%;
  }
  body.product .game-time {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end;
  }
  body.product .game-message {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  body.product .game-submessage,
  body.product .product-progress {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: center;
  }
  body.product .game-submessage {
    display: none;
  }
  body.product[data-display="hidden"] .game-message {
    grid-row: 1/4 !important;
    align-self: center;
  }
  body.product[data-display="visual"] .game-message {
    grid-row: 1/3 !important;
    align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.product *,
  body.product *::before,
  body.product *::after {
    animation: none !important;
    transition: none !important;
  }
}

.product-preview-art {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  z-index: 4;
}
body.product.has-product-art .bomb-frame > img:not(.product-preview-art),
body.product.has-product-art .preview-scene > .gift,
body.product.has-product-art .preview-scene > .eyeball {
  visibility: hidden;
}
body.product.has-product-art .product-preview-art[hidden] {
  display: none;
}
.product-art {
  animation: productFloat 2.7s ease-in-out infinite;
}
.product-sound-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.product-sound-row input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
}
.product-bank label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.product-bank input {
  width: 22px;
  height: 22px;
}
/* Setup may scroll; the original preview remains useful without a large empty column. */
body.product .setup-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.product .ready-card {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 14px;
  padding: 16px;
}
body.product .ready-card .ready-status {
  display: none;
}
body.product .ready-card .bomb-frame,
body.product .ready-card .preview-scene {
  grid-column: 1;
  grid-row: 1/3;
  width: 90px;
  height: 90px;
  margin: 0;
}
body.product .ready-card .ready-time {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 2rem;
  margin: 0;
}
body.product .ready-card .ready-mode {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
  font-size: 0.65rem;
}
body.product .ready-card .start-button {
  grid-column: 3;
  grid-row: 1/3;
  min-width: 0;
  font-size: 0.8rem;
  padding: 12px;
}
body.product .ready-card .awake-note {
  grid-column: 1/-1;
  margin: 5px 0 0;
}
body.product .ready-card .preview-scene > .gift {
  transform: scale(0.38);
}
body.product .ready-card .eyeball {
  width: 78px;
  height: 55px;
}
@media (max-width: 450px) {
  body.product .ready-card {
    grid-template-columns: 65px minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.product .ready-card .bomb-frame,
  body.product .ready-card .preview-scene {
    width: 65px;
    height: 70px;
  }
  body.product .ready-card .ready-time {
    font-size: 1.5rem;
  }
  body.product .ready-card .start-button {
    font-size: 0.7rem;
  }
}

/* Modal confirmation stays visible above the fullscreen game. */
.product-round-confirm { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.product-round-confirm h2 { margin: 0 0 8px; font-size: 1.35rem; }
.product-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.product-confirm-actions button { flex: 1; min-height: 44px; }

.product-confirm-backdrop { position: fixed; inset: 0; z-index: 1000; background: #11182c99; }
.product-round-confirm[data-fallback] { display: block; position: fixed; z-index: 1001; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }

/* Both documents share the same product shell, on tablets as on desktop. */
body.product { color-scheme: light; margin: 0; font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.product .app-header { background: var(--brand); min-height: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; overflow: visible; }
body.product .app-header::after { display: none; }
body.product .brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
body.product .app-header h1 { margin: 0; font-family: inherit; font-weight: 700; letter-spacing: normal; line-height: 1.05; text-shadow: none; }
body.product .app-header p { margin: 6px 0 0; color: #d6dcec; font-size: .92rem; }
body.product .product-nav { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
body.product .product-nav button { touch-action: manipulation; }
body.product .ready-card { background: #172033; color: white; border: 1px solid #33405e; box-shadow: none; }
body.product .ready-card .ready-time { color: #ffda71; }
body.product .ready-card .ready-mode, body.product .awake-note { color: #d6dcec; }
body.product .ready-card .start-button { background: var(--brand); color: white; border: 1px solid #ffffff30; box-shadow: none; }
body.product .game-time { color: #ffda71; }
body.product .game-message { color: white; text-transform: none; }
body.product .game-submessage { display: none; }
body.product .game-actions button { touch-action: manipulation; background: #ffffff12; border: 1px solid #ffffff30; color: white; box-shadow: none; font-family: inherit; }
body.product .game-actions button:disabled { opacity: .55; cursor: wait; }
body.product .game-actions button:focus-visible { outline: 3px solid #ffda71; outline-offset: 2px; }
body.product .setup-wrap, body.product .setup-layout { width: min(1160px, calc(100% - 28px)); margin: 22px auto 30px; }
body.product .setup-wrap .setup-layout { width: 100%; margin: 0; }
body.product footer { display: flex; justify-content: center; padding: 20px 14px; background: var(--paper); color: #64708a; }

body.product .prototype-badge { display: none; }

/* AWSM product shell. These tokens deliberately do not depend on game/theme.
   Legacy game-engine styles remain intact below this presentation boundary. */
body.product, body.product[data-product-theme] {
  --brand: #EE7800; --orange: #EE7800; --orange-dark: #B95400;
  --primary: #EE7800; --primary-dark: #B95400;
  --yellow: #FFDC00; --blue: #52A5DC; --green: #008554;
  --paper: #F7F7F4; --canvas: #F7F7F4; --panel: #FFFFFF;
  --ink: #373435; --navy: #373435; --navy-dark: #292728;
  --muted: #676365; --line: #DEDCDA; --soft: #F7F7F4;
  --focus-ring: #52A5DC55; --shadow: 0 4px 18px #37343508;
  color-scheme: light; color: var(--ink); background: var(--paper);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
}
body.product h1, body.product h2, body.product h3 { font-family: inherit; color: var(--ink); }
body.product button, body.product input, body.product select { font-family: inherit; }
body.product button { touch-action: manipulation; transition: background .15s, border-color .15s; }
body.product button:disabled { opacity: .5; cursor: not-allowed; }
body.product button:focus-visible, body.product input:focus-visible, body.product select:focus-visible,
body.product summary:focus-visible, body.product a:focus-visible {
  outline: 3px solid #28719F; outline-offset: 3px;
}
body.product .app-shell { width: 100%; }
body.product .app-header {
  width: min(1160px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 580px);
  align-items: center; gap: 20px;
  padding: max(22px, env(safe-area-inset-top)) 0 22px;
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  box-shadow: none;
}
body.product .brand-lockup { order: 0; gap: 12px; }
body.product .brand-icon { width: 62px; height: 62px; border-radius: 16px; }
body.product .app-header h1 {
  font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.7px;
  color: var(--ink); text-shadow: none;
}
body.product .app-header .brand-attribution {
  display: flex; align-items: center; gap: 7px; margin: 5px 0 0;
  color: var(--muted); font-size: 13px; line-height: 1;
}
body.product .awsm-wordmark { display: block; width: 98px; height: 31px; object-fit: contain; }
body.product .product-nav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  width: min(760px, 100%); gap: 4px; margin: 0 auto; padding: 5px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 15px;
}
body.product .app-header > .product-nav { order: 1; width: 100%; }
body.product .product-nav button {
  color: var(--ink); background: transparent; border: 1px solid transparent;
  border-radius: 10px; min-height: 44px; font-weight: 800;
  padding: 8px 12px; font-family: inherit; box-shadow: none;
}
body.product .product-nav button:hover { background: #F7F7F4; }
body.product .product-nav button[aria-pressed="true"] {
  background: #FFF1DF; border-color: #EE7800; color: #753800;
}
body.product .product-nav button:last-child { border-left-color: var(--line); border-radius: 0 10px 10px 0; }
body.product .install-button { order: 2; grid-column: 1/-1; justify-self: end; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; }
body.product .product-quick {
  width: min(1160px, calc(100% - 32px)); margin: 24px auto 16px;
  padding: clamp(20px, 3vw, 32px); gap: 18px 16px;
  color: var(--ink); background: white; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
body.product .product-eyebrow { font-size: 12px; color: #8D4600; letter-spacing: .12em; font-weight: 800; line-height: 1.2; }
body.product .product-quick h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; font-weight: 900; letter-spacing: -1px; }
body.product .product-quick > p { color: var(--muted); font-size: 16px; margin-top: -8px; }
body.product .product-field { font-size: 14px; font-weight: 700; gap: 8px; }
body.product .product-field select, body.product .product-presets select, body.product .product-presets input,
body.product .time-field input, body.product .select-field select, body.product .product-sounds > input,
body.product .product-sound-row input:not([type=checkbox]), body.product .favourite-search input {
  border: 1px solid #B7B2AF; border-radius: 10px; background: white; color: var(--ink);
  min-height: 48px; padding: 10px 12px; font-size: 15px; font-weight: 600;
  line-height: 1.35; box-shadow: none; max-width: 100%;
}
body.product .product-button, body.product .small-button, body.product .preview-button,
body.product .import-button, body.product .preset-row button, body.product .favourite-actions button {
  background: white; border: 1px solid #B7B2AF; color: var(--ink); border-radius: 10px;
  min-height: 44px; padding: 10px 14px; font-size: 14px; font-weight: 800; box-shadow: none;
}
body.product .product-button:hover, body.product .small-button:hover, body.product .preview-button:hover,
body.product .import-button:hover, body.product .preset-row button:hover { background: #FFF7ED; border-color: var(--orange); }
/* White-on-orange follows the supplied primary style; 24px bold meets large-text contrast. */
body.product .product-start, body.product .game-actions #playAgainButton {
  background: #EE7800; border: 1px solid #EE7800; color: white;
  font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: 0;
  text-transform: none; border-radius: 12px; min-height: 56px; box-shadow: none;
}
body.product .product-start:hover, body.product .game-actions #playAgainButton:hover { background: #B95400; border-color: #B95400; }
body.product .product-start:active { background: #994600; transform: none; }
body.product .product-presets { border-color: var(--line); gap: 8px; padding-top: 20px; }
body.product .product-presets h3 { font-size: 14px; font-weight: 800; }
body.product .product-presets select { flex: 1 1 150px; }
body.product .product-presets input { flex: 1 1 150px; }
body.product .setup-wrap, body.product .setup-layout { width: min(1160px, calc(100% - 32px)); margin: 0 auto 24px; gap: 16px; }
body.product .setup-wrap .setup-layout { width: 100%; margin: 0; }
body.product .ready-card {
  grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto;
  padding: 16px 20px; gap: 2px 20px; min-height: 130px; border-radius: 16px;
  background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
body.product .ready-card::before, body.product .ready-card::after { display: none; }
body.product .ready-card .bomb-frame, body.product .ready-card .preview-scene { width: 96px; height: 96px; border-radius: 14px; background: #FFF4E5; overflow: hidden; grid-row: 1/4; }
body.product .ready-card .ready-time { font: 900 32px/1.1 "Nunito", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: var(--ink); align-self: end; }
body.product .ready-card .ready-mode { font-size: 12px; line-height: 1.3; color: var(--muted); letter-spacing: .06em; }
body.product .ready-card .awake-note { grid-column: 2; font-size: 13px; line-height: 1.3; color: var(--muted); text-align: left; margin: 0; }
body.product .product-advanced { padding: 8px 20px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; color: var(--ink); }
body.product .product-advanced > summary { font-size: 16px; font-weight: 800; gap: 12px; min-height: 56px; }
body.product .product-advanced > summary::after { content: "+"; margin-left: auto; color: #8D4600; font-size: 24px; font-weight: 600; }
body.product .product-advanced[open] > summary::after { content: "−"; }
body.product .product-advanced[open] { padding-bottom: 24px; }
body.product .product-advanced .control-column { gap: 20px; margin-top: 12px; }
body.product .control-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; background: var(--paper); }
body.product .section-heading { gap: 12px; margin-bottom: 20px; }
body.product .section-number { background: #FFF1DF; color: #753800; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; font-weight: 900; }
body.product .section-heading h2 { font-size: 20px; font-weight: 800; margin: 0 0 3px; }
body.product .section-heading p { font-size: 14px; color: var(--muted); line-height: 1.5; }
body.product .time-field > span, body.product .select-field > span, body.product .range-field > span { font-size: 14px; letter-spacing: 0; font-weight: 700; }
body.product .segmented, body.product .segmented-control { padding: 4px; gap: 5px; margin-bottom: 20px; background: #EEECEA; border: 1px solid var(--line); border-radius: 12px; }
body.product .segmented span, body.product .segmented-control span { min-height: 44px; font-size: 14px; font-weight: 800; border-radius: 8px; }
body.product .segmented input:checked + span, body.product .segmented-control input:checked + span { background: white; color: var(--ink); box-shadow: 0 1px 4px #37343518; }
body.product .segmented input:focus-visible + span, body.product .segmented-control input:focus-visible + span,
body.product .switch-row input:focus-visible + .switch, body.product .eye-style-picker input:focus-visible + span { outline: 3px solid #28719F; outline-offset: 2px; }
body.product .switch-row { min-height: 58px; gap: 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
body.product .switch-row input:checked + .switch { background: #008554; }
body.product input[type=checkbox], body.product input[type=range], body.product .product-progress { accent-color: #008554; }
body.product input[type=range] { background: #DEDCDA; }
body.product .import-status, body.product .favourites-note, body.product .eye-style-help { font-size: 13px; line-height: 1.5; color: var(--muted); }
body.product .product-a11y, body.product .product-sounds, body.product .product-bank { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
body.product .product-a11y h3, body.product .product-sounds h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
body.product .product-sounds > input { margin: 10px 0; width: 100%; }
body.product .product-sound-row { align-items: center; gap: 8px; border-color: var(--line); }
body.product .product-sound-row label { font-size: 14px; }
body.product .product-bank summary { cursor: pointer; font-weight: 800; }
body.product .theme-picker { margin-top: 24px; }
body.product .theme-tile { box-shadow: none; }
body.product .theme-choice input:checked + .theme-tile { border-color: #EE7800; box-shadow: 0 0 0 2px #EE7800; }
body.product .remove-button { border-color: #B23A32; background: white; color: #A42D26; }
body.product .product-notice { background: #FFF8E5; color: #614919; border: 1px solid #E4CC8C; font-size: 14px; }
body.product .product-dialog { padding: 28px; color: var(--ink); font: 400 16px/1.5 "Nunito", sans-serif; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 70px #37343533; }
body.product .product-dialog h2 { font-size: 24px; font-weight: 900; }
body.product .product-dialog::backdrop, body.product .product-confirm-backdrop { background: #37343599; }
body.product .product-confirm-actions [data-confirm=accept] { color: white; background: #B95400; border-color: #B95400; }
body.product footer { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 24px; justify-content: flex-start; gap: 6px; color: var(--muted); font-size: 13px; }
body.product footer > span { margin-right: auto; }
body.product footer .product-button { border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; padding: 8px; }
body.product footer .product-button:hover { color: var(--ink); text-decoration: underline; }
/* The outer gameplay frame remains the same product in every mode. */
body.product .game-view, body.product[data-product-theme] .game-view {
  background: var(--paper); color: var(--ink); gap: 12px;
}
body.product .game-view::before { display: none; }
body.product .game-stage {
  isolation: isolate; border: 1px solid #E9D8BF; border-radius: 24px;
  background: radial-gradient(ellipse at 50% 40%, #FFF8E8, #F9E6CA);
}
body.product .game-stage > .scene-decor { z-index: -1; }
body.product .game-stage > .light-string { pointer-events: none; }
body.product .game-stage .game-aura { z-index: -1; }
body.product .game-stage .game-time, body.product .game-stage .game-message { position: relative; z-index: 5; }
body.product[data-product-theme=cute] .game-stage { background: radial-gradient(ellipse at 50% 40%, #FDF5FF, #E9E0F0); border-color: #D8C8E0; }
body.product[data-product-theme=christmas] .game-stage { background: radial-gradient(ellipse at 50% 40%, #21604C, #103D2E); border-color: #21604C; }
body.product[data-product-theme=halloween] .game-stage { background: radial-gradient(ellipse at 50% 40%, #442750, #21112D); border-color: #442750; }
body.product[data-product-theme=cute] .ready-card .bomb-frame, body.product[data-product-theme=cute] .ready-card .preview-scene { background: #F3EAF7; }
body.product[data-product-theme=christmas] .ready-card .bomb-frame, body.product[data-product-theme=christmas] .ready-card .preview-scene { background: #164D39; }
body.product[data-product-theme=halloween] .ready-card .bomb-frame, body.product[data-product-theme=halloween] .ready-card .preview-scene { background: #34203F; }
body.product .game-time { color: var(--ink); font-family: "Nunito", sans-serif; font-weight: 1000; font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-shadow: none; }
body.product .game-message { color: var(--ink); font-family: inherit; font-weight: 800; letter-spacing: .02em; text-shadow: none; }
body.product[data-product-theme=christmas] .game-time, body.product[data-product-theme=halloween] .game-time { color: #FFDC00; }
body.product[data-product-theme=christmas] .game-message, body.product[data-product-theme=halloween] .game-message { color: white; }
body.product .game-actions button { background: white; border: 1px solid #B7B2AF; border-radius: 12px; color: var(--ink); font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; min-height: 48px !important; }
body.product .game-actions button:hover { background: #FFF1DF; border-color: #EE7800; }
body.product .game-actions #pauseButton { border-color: #EE7800; color: #753800; background: #FFF1DF; }
body.product .game-actions #playAgainButton { font-size: 19px; }
body.product .product-progress { accent-color: #EE7800; }
body.product.low-stimulation .light-string { display: none; }
@media (max-width: 760px) {
  body.product .app-header { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 18px; }
  body.product .app-header h1 { font-size: 28px; }
  body.product .brand-icon { width: 58px; height: 58px; }
  body.product .product-nav button { padding: 8px; font-size: 13px; }
  body.product .product-quick { gap: 16px 12px; }
  body.product .product-start { font-size: 24px; }
  body.product .product-advanced { padding-inline: 16px; }
  body.product .control-card { padding: 16px; }
}
@media (max-width: 450px) {
  body.product .product-presets h3 { flex-basis: 100%; }
  body.product .ready-card { grid-template-columns: 80px minmax(0, 1fr); padding: 14px; gap: 3px 14px; }
  body.product .ready-card .bomb-frame, body.product .ready-card .preview-scene { width: 80px; height: 88px; }
  body.product .ready-card .ready-time { font-size: 28px; }
  body.product .ready-card .awake-note { font-size: 12px; }
  body.product .game-actions button { font-size: 14px; }
  body.product .game-actions #playAgainButton { font-size: 19px; }
  body.product footer > span { flex-basis: 100%; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.product .game-view { gap: 8px; }
  body.product .game-stage { border-radius: 16px; }
  body.product .game-actions button { min-height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.product button { transition: none; }
}
/* Shared neutral borders also override the legacy Halloween switch rows. */
body.product .switch-stack { border-color: var(--line); }
body.product .switch-row { border-color: var(--line); }
body.product .eye-style-picker input:checked + span { background: #FFF1DF; border-color: #EE7800; color: #753800; box-shadow: none; }

body.product .ready-card { top: auto; }
body.product .ui-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; flex: none; }
