@font-face {
  font-family: Geist;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Geist, Arial, sans-serif;
  color: #222826;
  background: #f8f6f0;
  font-synthesis: none;
  --ink: #222826;
  --orange: #e35c3b;
  --muted: #666a61;
  --cream: #f8f6f0;
  --line: #dedfd5;
  --sage: #c6dbb7;
  --sky: #c9def0;
  --lilac: #dfd7f4;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #3264ad;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 750;
  letter-spacing: -0.055em;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
h1 {
  font-size: clamp(40px, 5.7vw, 78px);
  line-height: 1.03;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  margin-bottom: 0;
}
h3 {
  font-size: 28px;
  line-height: 1.1;
}
h1:focus,
main:focus {
  outline: none;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px 24px;
}
.shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -1.9px;
  min-height: 44px;
}
.brand i,
.brand-eyes {
  font-size: 0;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transform: rotate(-8deg);
  margin: 0 4px;
}
.brand i:before,
.brand i:after,
.brand-eyes:before,
.brand-eyes:after {
  content: "";
  display: block;
  width: 10px;
  height: 16px;
  border-radius: 100%;
  background: var(--orange);
}
.brand i:after,
.brand-eyes:after {
  height: 7px;
  transform: rotate(-16deg);
}
.header-tools {
  display: flex;
  gap: 20px;
  align-items: center;
}
.pill {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 12px;
  color: #585e53;
}
.languages {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50px;
  gap: 2px;
  background: #fff9;
}
.languages a {
  min-width: 44px;
  min-height: 38px;
  padding: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
}
.languages a[aria-current] {
  background: var(--ink);
  color: white;
}
.languages > .ui-icon {
  width: 16px;
  margin: 0 5px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 12px;
}
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c6258;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.coral {
  color: var(--orange);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #e35c3b10;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fffdf7;
  font-size: 13px;
  font-weight: 650;
  padding: 13px 22px;
  text-decoration: none;
  box-shadow: 0 3px 0 #10181315;
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
.btn:hover:not(:disabled) {
  background: #3b443f;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px #22282613;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #cfd2c7;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #eeeee6;
}
.btn.orange {
  background: #ae3e25;
  border-color: #ae3e25;
  color: #fff;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 8px;
  color: #545e52;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 12px;
}
.icon-button {
  width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}
/* The home page is a little playground, with room to breathe. */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 430px;
  align-items: center;
  padding: 26px 0 60px;
  margin-bottom: 36px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.home-hero h1 {
  margin-top: 24px;
  max-width: 650px;
}
.intro {
  font-size: 15px;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #74796e;
}
.hero-bottom > span {
  color: var(--orange);
  font-size: 18px;
}
.hero-cast {
  position: relative;
  height: 340px;
  width: 100%;
  isolation: isolate;
}
.hero-cast:before {
  content: "";
  position: absolute;
  inset: 24px 0 25px 10px;
  background: #eeeade;
  border-radius: 49% 51% 53% 47%/56% 48% 52% 44%;
  transform: rotate(-12deg);
  z-index: -1;
}
.mascot {
  display: block;
  aspect-ratio: 1;
  position: relative;
}
.mascot svg,
.mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-cast .mascot {
  position: absolute;
  width: 70%;
  filter: drop-shadow(0 8px 4px #534c2c0b);
  animation: mascot-float 6s ease-in-out infinite;
}
.cast-one {
  left: -5%;
  top: -6%;
  transform: rotate(-10deg);
  z-index: 2;
}
.hero-cast .cast-two {
  right: -12%;
  top: 17%;
  width: 70%;
  animation-delay: -2s;
  z-index: 3;
}
.hero-cast .cast-three {
  left: 8%;
  top: 36%;
  width: 60%;
  animation-delay: -4s;
  z-index: 4;
}
.cast-spark {
  position: absolute;
  color: var(--orange);
  font-size: 42px;
}
.spark-one {
  right: 1%;
  top: 8%;
  transform: rotate(8deg);
}
.spark-two {
  left: 0;
  bottom: 18%;
  font-size: 26px;
  color: #849f72;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 0 0 24px;
}
.sectionhead .eyebrow {
  margin-bottom: 10px;
}
.sectionhead p {
  font-size: 12px;
  margin: 0 0 3px;
}
.catalog {
  scroll-margin-top: 30px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.game-card {
  border: 1px solid #2228260c;
  border-radius: var(--radius);
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 4px 0 #22282604;
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #22282609;
}
.game-card-art {
  position: relative;
  overflow: hidden;
  height: 225px;
  isolation: isolate;
  background: var(--card-tint);
}
.theme-sage {
  --card-tint: #d7e4ca;
  --art-ink: #5d7650;
}
.theme-sky {
  --card-tint: #d8e7f3;
  --art-ink: #5e89ab;
}
.theme-peach {
  --card-tint: #f6d1bd;
  --art-ink: #bd7053;
}
.theme-lilac {
  --card-tint: #e4def0;
  --art-ink: #8b76a6;
}
.game-card-art:before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #fff4;
  right: -60px;
  bottom: -80px;
}
.game-card-art:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid #fff7;
  border-radius: 50%;
  left: 15%;
  top: 20%;
  z-index: -1;
}
.card-mascot {
  position: absolute;
  width: 235px;
  right: 0;
  bottom: -29px;
  transform: rotate(8deg);
}
.theme-sky .card-mascot {
  transform: rotate(-9deg);
  right: -4px;
}
.theme-peach .card-mascot {
  right: -15px;
  bottom: -35px;
}
.theme-lilac .card-mascot {
  transform: rotate(11deg);
}
.card-art-mark {
  position: absolute;
  left: 30px;
  top: 48px;
  display: flex;
  align-items: center;
  color: var(--art-ink);
  transform: rotate(-11deg);
  width: 145px;
  height: 130px;
}
.art-fleck {
  position: absolute;
  right: 35px;
  top: 25px;
  color: var(--art-ink);
  font-size: 24px;
}
.mini-word {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 68px;
  height: 91px;
  background: #fff7ed;
  border: 1px solid #22282620;
  border-radius: 12px;
  font-size: 33px;
  font-weight: 750;
  box-shadow: 0 6px 0 #2228260d;
  transform: rotate(-12deg);
}
.mini-word:nth-child(2) {
  left: 43px;
  top: 16px;
  transform: rotate(2deg);
}
.mini-word:nth-child(3) {
  left: 79px;
  top: 37px;
  transform: rotate(15deg);
  background: #91ad7e;
  color: white;
}
.mini-envelope {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 91px;
  border-radius: 13px;
  background: #fffdf5;
  box-shadow: 0 8px 0 #6b92ac22;
  transform: rotate(-4deg);
}
.mini-envelope:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background:
    linear-gradient(145deg, transparent 49%, #d8e7f3 50%, transparent 51%),
    linear-gradient(215deg, transparent 49%, #d8e7f3 50%, transparent 51%);
  opacity: 0.7;
}
.mini-envelope > span {
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #7099b9;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}
.whisper-dot {
  position: absolute;
  background: #7099b9;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  right: -6px;
  top: 17px;
}
.dot-two {
  right: -19px;
  top: 3px;
  width: 6px;
  height: 6px;
}
.double-word {
  position: absolute;
  display: grid;
  place-items: center;
  left: 0;
  top: 0;
  width: 104px;
  height: 72px;
  border-radius: 13px;
  background: #fff6eb;
  color: #bd7053;
  font-size: 35px;
  font-weight: 700;
  box-shadow: 0 6px 0 #bd705320;
  transform: rotate(-4deg);
}
.double-word:nth-child(2) {
  left: 42px;
  top: 60px;
  transform: rotate(13deg);
  background: #c78061;
  color: #fff5e7;
}
.detour-path {
  width: 155px;
  filter: drop-shadow(0 6px 0 #8b76a61c);
}
.game-card-content {
  padding: 25px 27px 27px;
  position: relative;
}
.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #62695f;
  font-size: 10px;
}
.card-kicker > span:first-child {
  letter-spacing: 0.025em;
}
.game-card h3 {
  margin: 0 0 9px;
  font-size: 30px;
}
.game-card p {
  font-size: 13px;
  margin: 0;
  max-width: calc(100% - 58px);
  min-height: 42px;
}
.card-play {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  border: 0;
  color: var(--ink);
  margin-top: 22px;
  padding: 0;
  min-height: 44px;
  font-size: 12px;
  font-weight: 700;
}
.card-play:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.card-play .ui-icon {
  background: var(--ink);
  color: white;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  position: absolute;
  right: 26px;
  bottom: 27px;
  transition: transform 0.2s;
}
.card-play:hover .ui-icon {
  transform: rotate(9deg);
  background: #465343;
}
.recess {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.recess .sectionhead {
  margin-bottom: 22px;
}
.recess-doodle {
  font-size: 44px;
  color: var(--orange);
  transform: rotate(-14deg);
}
.recess-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.recess-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 17px;
  min-height: 112px;
  padding: 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #d7dace;
  border-radius: 20px;
  transition: background 0.2s;
}
.recess-card:hover {
  background: #eeeee5;
}
.recess-card > span:nth-child(2) {
  flex: 1;
}
.recess-card strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.recess-card small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 220px;
}
.recess-card > .ui-icon {
  width: 17px;
}
.recess-art {
  display: grid;
  place-items: center;
  background: #dce5cc;
  border-radius: 16px;
  width: 58px;
  height: 64px;
  font-size: 52px;
  color: #637a50;
  flex-shrink: 0;
  transform: rotate(-7deg);
}
.tempo-art {
  background: #e6ddf1;
  color: #8d75a5;
  font-weight: 700;
  transform: rotate(7deg);
}
.home-signoff {
  text-align: center;
  padding: 40px 0 50px;
}
.signoff-mascot {
  width: 108px;
  margin: 0 auto -4px;
  transform: rotate(-8deg);
}
.home-signoff h2 {
  font-size: 25px;
}
.home-signoff p {
  font-size: 12px;
  margin: 10px 0 0;
}
.shell > footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 10px;
  color: #687061;
  line-height: 1.7;
}
.shell > footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.shell > footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
}
.shell > footer .ui-icon {
  width: 14px;
  height: 14px;
}
.footer-disclaimer {
  flex-basis: 100%;
  font-size: 9px;
  max-width: 740px;
  margin: 0;
  color: #6c7267;
}
/* Shared game surfaces and intentionally tactile controls. */
.play {
  max-width: 680px;
  margin: 0 auto;
  min-height: 65vh;
}
.play h1 {
  font-size: 44px;
  letter-spacing: -0.055em;
  margin: 16px 0;
}
.play h2 {
  font-size: 27px;
}
.play h3 {
  font-size: 21px;
}
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.game-header h1 {
  margin: 10px 0;
}
.game-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.game-toolbar .btn {
  min-height: 44px;
  padding: 10px 13px;
}
.game-settings {
  display: grid;
  gap: 20px;
}
.panel {
  background: #fffdf8;
  border: 1px solid #dedfd4;
  padding: 28px;
  border-radius: 24px;
  margin: 22px 0;
  box-shadow: 0 4px 0 #22282603;
}
.panel p:first-child {
  margin-top: 0;
}
.panel > p:last-child {
  margin-bottom: 0;
}
.settings-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.settings-group legend {
  padding: 0;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 750;
}
.settings-group + .settings-group {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.actions,
.bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.actions > .btn,
.bottom-actions > .btn {
  flex: 1;
  min-width: 130px;
}
.field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}
.field > label,
.field-label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin: 0;
}
.field small,
.field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 12px 0;
}
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid #cbd0c2;
  border-radius: 12px;
  background: #fffefa;
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 2px 0 #22282603;
  transition: border-color 0.2s;
}
textarea {
  min-height: 155px;
  resize: vertical;
  line-height: 1.7;
}
input:hover,
textarea:hover {
  border-color: #929e85;
}
input[type="range"] {
  accent-color: #566c49;
  width: 100%;
}
.control-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #cbd0c2;
  border-radius: 14px;
  background: #fffefa;
  min-height: 52px;
  padding: 5px;
  gap: 10px;
}
.control-stepper button {
  border: 0;
  display: grid;
  place-items: center;
  min-height: 40px;
  min-width: 40px;
  border-radius: 9px;
  background: #f0f1e9;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.control-stepper input {
  border: 0;
  box-shadow: none;
  background: transparent;
  text-align: center;
  font-weight: 750;
  width: 70px;
  padding: 0;
  min-height: 38px;
  -moz-appearance: textfield;
}
.control-stepper input::-webkit-inner-spin-button {
  appearance: none;
}
.control-stepper output {
  font-weight: 750;
  min-width: 36px;
  text-align: center;
}
.switch-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 0;
  margin: 0;
  font-weight: 550;
  font-size: 13px;
}
.switch-control input {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border: 1px solid #bfc6b7;
  border-radius: 30px;
  background: #dfe3d7;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-control input:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #22282625;
  transition: transform 0.2s;
}
.switch-control input:checked {
  background: #526b43;
  border-color: #526b43;
}
.switch-control input:checked:after {
  transform: translateX(18px);
}
.switch-control .switch-copy {
  flex: 1;
}
.switch-control small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #cbd0c2;
  background: #fffefa;
  color: var(--ink);
  border-radius: 12px;
  font-size: 13px;
}
.option-list {
  display: grid;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
  padding: 4px;
}
.option-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 12px 15px;
  font-size: 13px;
}
.option-button:hover,
.option-button[aria-selected="true"] {
  background: #e9efdf;
}
.known-options {
  display: grid;
  gap: 5px;
}
.known-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 450;
  min-height: 44px;
  margin: 0;
  font-size: 13px;
}
.known-options input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: #526b43;
}
.compact-note,
.note,
.known-notice {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.compact-note {
  margin: 10px 0;
}
.error {
  color: #a6301d;
  font-size: 13px;
  font-weight: 650;
}
.private-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 27px;
  padding: 30px;
  background: #e4ebdc;
  border: 1px solid #cad5bd;
}
.private-card:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: #ffffff25;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  pointer-events: none;
}
.private-card > * {
  position: relative;
}
.private-card .score {
  margin: 18px 0;
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.private-card h2 {
  font-size: 32px;
}
.private-card .mascot {
  width: 130px;
  margin: -15px auto;
}
.secret {
  background: #2d3b32;
  color: #fffaf1;
  border-color: #2d3b32;
}
.secret p,
.secret .eyebrow,
.secret .compact-note {
  color: #d0dac7;
}
.group-board {
  text-align: center;
  padding: 20px 0;
}
.group-board h2 {
  font-size: 30px;
}
.player-orbit {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  margin: 15px auto 30px;
  isolation: isolate;
}
.player-orbit:before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px dashed #bac5b0;
  background: radial-gradient(circle, #edf0e5 0, transparent 68%);
  z-index: -1;
}
.orbit-player {
  position: absolute;
  left: calc(50% + 38% * cos(var(--angle)));
  top: calc(50% + 38% * sin(var(--angle)));
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  gap: 6px;
  font-size: 11px;
}
.orbit-player .avatar {
  width: 49px;
  height: 49px;
}
.orbit-player > span:last-child {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orbit-player.eliminated,
.orbit-player.is-out {
  opacity: 0.35;
}
.orbit-player.active .avatar,
.orbit-player.is-active .avatar,
.orbit-player.highlight .avatar {
  outline: 3px solid #df7c5f;
  outline-offset: 4px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background: #d6e4c8;
  color: #3d5233;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 0 #2228260a;
}
.orbit-player:nth-child(4n + 2) .avatar {
  background: #e4daf0;
  color: #76618d;
}
.orbit-player:nth-child(4n + 3) .avatar {
  background: #f5d5bf;
  color: #9c6446;
}
.orbit-player:nth-child(4n) .avatar {
  background: #cee2ef;
  color: #5b7e96;
}
.orbit-center {
  position: absolute;
  inset: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #6b7861;
}
.orbit-center .ui-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-grid > button {
  min-height: 66px;
  text-align: left;
  padding: 12px;
  border: 1px solid #d1d7c9;
  border-radius: 14px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.choice-grid > button[aria-pressed="true"],
.choice-grid > button.selected {
  background: #e8efdc;
  border-color: #738962;
  box-shadow: 0 0 0 1px #738962;
}
.choice-grid .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.progress {
  display: flex;
  gap: 5px;
  margin: 20px 0;
}
.progress span {
  height: 4px;
  border-radius: 8px;
  background: #dce0d4;
  flex: 1;
}
.progress .done {
  background: #849974;
}
.sequence {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
}
.symbol {
  display: grid;
  place-items: center;
  width: 80px;
  height: 85px;
  font-size: 40px;
  border: 1px solid #c4ceba;
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: 0 4px 0 #22282606;
}
.symbol.selected {
  outline: 3px solid #bb4b2e;
  outline-offset: 0;
}
.picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.picker button {
  min-height: 65px;
  background: #fffdf8;
  border: 1px solid #c4ceba;
  border-radius: 13px;
  font-size: 30px;
  box-shadow: 0 3px 0 #22282606;
}
.bigmark {
  text-align: center;
  font-size: 64px;
  margin: 28px;
}
.vote,
.range,
.timeline {
  display: grid;
  gap: 10px;
}
.vote .btn,
.range .btn {
  text-align: left;
  justify-content: flex-start;
}
.range .btn {
  background: #fffdf8;
  color: var(--ink);
  border-color: #c4ceba;
}
.timeline > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.timeline p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.score {
  font-size: 58px;
  font-weight: 750;
  letter-spacing: -0.06em;
}
.countdown {
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.known-limits {
  margin: 24px 0;
  font-size: 12px;
}
.known-limits summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.known-limits li {
  color: var(--muted);
}
li {
  line-height: 1.65;
  margin-bottom: 8px;
}
.legal {
  max-width: 700px;
  margin: 45px auto 65px;
}
.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
}
.legal h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 30px 0 12px;
}
.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.8;
}
.legal p {
  white-space: pre-line;
}
.legal .actions {
  margin: 30px 0;
}
.draft-notice {
  padding: 14px;
  border-left: 3px solid #c7cdbb;
  background: #eeeee5;
  font-size: 12px;
  line-height: 1.6;
  color: #5c6653;
}
/* Native dialogs preserve keyboard focus and the platform's escape behaviour. */
dialog {
  position: fixed;
  border: 1px solid #d8ddce;
  border-radius: 28px;
  padding: 24px;
  background: var(--cream);
  color: var(--ink);
  width: calc(100% - 32px);
  max-width: 430px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 30px 100px #101b1b35;
}
dialog::backdrop {
  background: #17241eb3;
  backdrop-filter: blur(5px);
}
.picker-dialog h2 {
  font-size: 25px;
  margin: 10px 0 20px;
}
.tutorial-view {
  position: relative;
  text-align: center;
  padding: 12px 0 0;
}
.tutorial-close {
  position: absolute;
  right: -8px;
  top: -12px;
  z-index: 2;
  background: #fff9;
  border-color: transparent;
}
.tutorial-art {
  height: 220px;
  margin: 0 -8px 20px;
  border-radius: 20px;
  background: #eeeee4;
  display: grid;
  place-items: center;
}
.tutorial-art svg {
  width: 100%;
  height: 100%;
}
.tutorial-view > .eyebrow {
  font-size: 9px;
}
.tutorial-view h2 {
  font-size: 29px;
  margin: 14px 0 13px;
  letter-spacing: -0.045em;
}
.tutorial-view > p {
  font-size: 13px;
  line-height: 1.7;
  min-height: 65px;
  margin: 0 auto;
  max-width: 320px;
}
.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 25px;
}
.tutorial-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccd2c2;
}
.tutorial-dots .active {
  width: 19px;
  border-radius: 5px;
  background: #566c49;
}
.tutorial-actions {
  display: flex;
  gap: 10px;
}
.tutorial-actions > .btn:last-child {
  flex: 1;
}
.tutorial-actions > .secondary {
  padding: 12px 15px;
}
.art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.game-mascot {
  width: 230px;
  margin: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.card .visual {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #e0e8d5;
  border-radius: 14px;
  font-size: 65px;
  margin-bottom: 20px;
}
.card p {
  font-size: 13px;
}
.card .btn {
  width: 100%;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.tile {
  display: grid;
  place-items: center;
  width: 110px;
  height: 130px;
  border-radius: 20px;
  background: var(--sage);
  font-size: 60px;
}
@keyframes mascot-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@media (min-width: 1100px) {
  .game-card-art {
    height: 245px;
  }
  .card-mascot {
    width: 265px;
    bottom: -38px;
  }
  .card-art-mark {
    left: 48px;
    top: 56px;
  }
  .home-hero {
    min-height: 470px;
  }
  .hero-cast {
    height: 380px;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 24px 20px;
  }
  .shell > header {
    min-height: 85px;
    margin-bottom: 20px;
  }
  .header-tag {
    display: none;
  }
  .home-hero {
    min-height: 400px;
    grid-template-columns: 1.1fr 1fr;
    margin-bottom: 32px;
    padding-bottom: 44px;
  }
  .home-hero h1 {
    font-size: 48px;
    letter-spacing: -0.06em;
  }
  .hero-cast {
    height: 260px;
  }
  .intro {
    font-size: 13px;
  }
  .game-grid {
    gap: 18px;
  }
  .game-card-art {
    height: 185px;
  }
  .card-mascot {
    width: 190px;
    right: -26px;
    bottom: -25px;
  }
  .card-art-mark {
    left: 17px;
    top: 43px;
    transform: rotate(-11deg) scale(0.8);
    transform-origin: left top;
  }
  .game-card-content {
    padding: 21px;
  }
  .game-card h3 {
    font-size: 26px;
  }
  .game-card p {
    font-size: 12px;
    max-width: 100%;
    min-height: 38px;
  }
  .card-kicker {
    font-size: 9px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .card-play .ui-icon {
    right: 20px;
    bottom: 21px;
  }
  .sectionhead p {
    display: none;
  }
  .recess-grid {
    gap: 12px;
  }
  .recess-card {
    padding: 15px;
    gap: 12px;
  }
  .recess-art {
    width: 45px;
    height: 54px;
    font-size: 42px;
  }
  .recess-card small {
    font-size: 10px;
  }
  .recess-card strong {
    font-size: 15px;
  }
  .recess-card > .ui-icon {
    display: none;
  }
}
@media (max-width: 520px) {
  .shell {
    padding: 0 19px 20px;
  }
  .shell > header {
    min-height: 78px;
    margin-bottom: 12px;
  }
  .brand {
    font-size: 29px;
  }
  .brand i:before,
  .brand-eyes:before {
    width: 8px;
    height: 13px;
  }
  .brand i:after,
  .brand-eyes:after {
    width: 8px;
    height: 6px;
  }
  .header-tools {
    gap: 8px;
  }
  .languages {
    padding: 2px;
  }
  .languages a {
    min-width: 36px;
    min-height: 36px;
    font-size: 10px;
  }
  .languages > .ui-icon {
    display: none;
  }
  .home-hero {
    display: block;
    min-height: 365px;
    padding: 27px 0 47px;
    margin-bottom: 34px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .home-hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.09em;
  }
  .home-hero h1 {
    font-size: clamp(36px, 10.5vw, 49px);
    margin: 20px 0 17px;
    letter-spacing: -0.065em;
    line-height: 1.04;
    position: relative;
    z-index: 2;
  }
  .home-hero .intro {
    font-size: 12px;
    max-width: 205px;
    line-height: 1.6;
    margin-bottom: 19px;
  }
  .hero-actions {
    gap: 8px;
    position: relative;
    z-index: 5;
  }
  .hero-actions .btn {
    font-size: 11px;
    padding: 12px 15px;
    min-height: 46px;
    border-radius: 12px;
    gap: 9px;
  }
  .hero-actions .text-button {
    font-size: 10px;
    padding: 8px 4px;
  }
  .hero-cast {
    position: absolute;
    right: -18px;
    top: 117px;
    width: 160px;
    height: 165px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.99;
  }
  .hero-cast:before {
    inset: 6px 0 9px 5px;
  }
  .hero-cast .cast-one {
    width: 78%;
    left: -3%;
    top: -10%;
  }
  .hero-cast .cast-two {
    width: 78%;
    right: -7%;
    top: 19%;
  }
  .hero-cast .cast-three {
    width: 67%;
    top: 40%;
    left: 5%;
  }
  .cast-spark {
    font-size: 20px;
  }
  .spark-two {
    font-size: 14px;
  }
  .hero-bottom {
    font-size: 9px;
    bottom: 0;
  }
  .hero-bottom > span {
    font-size: 15px;
  }
  .sectionhead {
    margin-bottom: 18px;
    gap: 10px;
  }
  .sectionhead h2 {
    font-size: 28px;
  }
  .sectionhead .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .game-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .game-card {
    display: grid;
    grid-template-columns: 40% 1fr;
    border-radius: 21px;
    min-height: 185px;
    overflow: hidden;
  }
  .game-card-art {
    height: 100%;
    min-height: 185px;
  }
  .card-mascot {
    width: 182px;
    max-width: none;
    right: -37px;
    bottom: -23px;
  }
  .card-art-mark {
    left: 12px;
    top: 15px;
    transform: scale(0.56) rotate(-10deg);
  }
  .game-card-art:before {
    width: 140px;
    height: 140px;
    right: -30px;
    bottom: -30px;
  }
  .game-card-art:after {
    width: 90px;
    height: 90px;
    left: -30px;
    top: 40px;
  }
  .art-fleck {
    top: 18px;
    right: 16px;
    font-size: 16px;
  }
  .game-card-content {
    padding: 20px 17px 16px;
  }
  .card-kicker {
    font-size: 8px;
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
  }
  .card-kicker > span:first-child {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #767c70;
  }
  .game-card h3 {
    font-size: 25px;
    margin-bottom: 7px;
  }
  .game-card p {
    font-size: 10px;
    line-height: 1.55;
    max-width: 100%;
    min-height: 30px;
  }
  .card-play {
    margin-top: 12px;
    font-size: 10px;
    min-height: 33px;
  }
  .card-play .ui-icon {
    width: 32px;
    height: 32px;
    padding: 8px;
    right: 15px;
    bottom: 15px;
  }
  .recess {
    margin-top: 36px;
    padding: 28px 0 15px;
  }
  .recess-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .recess-card {
    min-height: 88px;
    padding: 15px;
    gap: 15px;
    border-radius: 17px;
  }
  .recess-art {
    width: 48px;
    height: 51px;
  }
  .recess-card strong {
    font-size: 16px;
  }
  .recess-card small {
    max-width: 220px;
    font-size: 10px;
  }
  .recess-card > .ui-icon {
    display: block;
  }
  .recess-doodle {
    font-size: 31px;
  }
  .home-signoff {
    padding: 20px 0 25px;
  }
  .home-signoff h2 {
    font-size: 22px;
  }
  .home-signoff p {
    font-size: 10px;
    max-width: 260px;
    margin: 10px auto 0;
  }
  .signoff-mascot {
    width: 95px;
  }
  .shell > footer {
    margin-top: 28px;
    gap: 8px;
    font-size: 9px;
    padding-top: 18px;
  }
  .shell > footer > span {
    flex-basis: 100%;
  }
  .shell > footer nav {
    gap: 14px;
    font-size: 10px;
  }
  .play h1 {
    font-size: 36px;
  }
  .play h2 {
    font-size: 25px;
  }
  .panel {
    padding: 21px;
    border-radius: 21px;
    margin: 18px 0;
  }
  .game-header {
    gap: 10px;
    margin-bottom: 18px;
  }
  .game-header h1 {
    font-size: 32px;
  }
  .game-toolbar {
    gap: 6px;
  }
  .game-toolbar .btn {
    padding: 10px;
    font-size: 10px;
  }
  .game-header .eyebrow {
    font-size: 9px;
  }
  .game-header .icon-button {
    width: 40px;
    min-height: 40px;
  }
  .actions,
  .bottom-actions {
    gap: 8px;
    margin-top: 20px;
  }
  .actions > .btn,
  .bottom-actions > .btn {
    min-width: 110px;
    padding: 13px 14px;
    font-size: 12px;
  }
  .private-card {
    min-height: 300px;
    padding: 23px;
  }
  .player-orbit {
    max-width: 355px;
    margin-top: 18px;
  }
  .orbit-player {
    width: 58px;
    font-size: 9px;
    gap: 5px;
  }
  .orbit-player .avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .orbit-player > span:last-child {
    max-width: 63px;
  }
  .orbit-center {
    font-size: 10px;
    inset: 35%;
  }
  .choice-grid {
    gap: 8px;
  }
  .choice-grid > button {
    padding: 10px;
    min-height: 62px;
    font-size: 12px;
    gap: 8px;
  }
  .choice-grid .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .symbol {
    width: 70px;
    height: 78px;
    font-size: 36px;
  }
  .sequence {
    gap: 8px;
  }
  .picker {
    gap: 8px;
  }
  .picker button {
    min-height: 60px;
  }
  .legal {
    margin-top: 30px;
  }
  .legal h1 {
    font-size: 39px;
    overflow-wrap: anywhere;
  }
  .legal h2 {
    font-size: 22px;
  }
  .legal p,
  .legal li {
    font-size: 13px;
  }
  .tutorial-art {
    height: 190px;
    margin-top: 8px;
  }
  .tutorial-view h2 {
    font-size: 26px;
  }
  .tutorial-view > p {
    font-size: 12px;
    min-height: 60px;
  }
  .tutorial-view .eyebrow {
    font-size: 8px;
  }
  .tutorial-actions .btn {
    font-size: 12px;
  }
  .score {
    overflow-wrap: anywhere;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 15px;
  }
  .card h3 {
    font-size: 21px;
  }
}
@media (max-width: 350px) {
  .shell {
    padding-right: 15px;
    padding-left: 15px;
  }
  .home-hero h1 {
    font-size: 35px;
  }
  .hero-cast {
    right: -15px;
    width: 135px;
    top: 135px;
  }
  .hero-actions {
    gap: 4px;
  }
  .hero-actions .text-button {
    font-size: 9px;
  }
  .game-card {
    grid-template-columns: 37% 1fr;
  }
  .game-card-content {
    padding-left: 14px;
  }
  .game-card h3 {
    font-size: 23px;
  }
  .card-mascot {
    right: -42px;
  }
  .game-card p {
    font-size: 9px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Shared control and board integration. */
.field-hint {
  margin: 0;
}
.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 13px 0;
}
.switch-field > div {
  flex: 1;
}
.switch-field .field-hint {
  margin-top: 5px;
}
.switch-field .switch-control {
  flex-shrink: 0;
  position: relative;
  display: block;
  width: 46px;
  min-width: 46px;
  height: 28px;
  min-height: 28px;
  padding: 3px;
  border: 1px solid #bfc6b7;
  border-radius: 50px;
  background: #dfe3d7;
  box-shadow: none;
}
.switch-thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #22282625;
  transition: transform 0.2s;
}
.switch-field .switch-control[aria-checked="true"] {
  background: #526b43;
  border-color: #526b43;
}
.switch-control[aria-checked="true"] .switch-thumb {
  transform: translateX(18px);
}
.switch-field .switch-control:hover {
  transform: none;
  background: #cfd8c4;
}
.switch-field .switch-control[aria-checked="true"]:hover {
  background: #455c38;
}
.select-trigger {
  box-shadow: 0 2px 0 #22282603;
}
.select-trigger > .ui-icon {
  width: 16px;
  transform: rotate(90deg);
}
.option-button[aria-checked="true"] {
  background: #e9efdf;
}
.option-button strong {
  font-size: 13px;
  font-weight: 650;
}
.option-button small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading .btn {
  padding: 10px;
  min-height: 40px;
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
}
.sheet-handle {
  width: 35px;
  height: 4px;
  background: #cfd4c7;
  border-radius: 5px;
  margin: 0 auto 20px;
}
.orbit-board {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.orbit-board .player-orbit {
  list-style: none;
  padding: 0;
  margin: 10px auto 26px;
  width: 100%;
}
.orbit-core {
  position: absolute;
  z-index: 1;
  inset: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.orbit-core > span {
  font-size: 35px;
  color: #849c70;
  line-height: 1;
}
.orbit-core small {
  font-size: 10px;
  color: #647159;
  margin-top: 8px;
}
.orbit-board .orbit-player {
  left: calc(50% + var(--orbit-radius, 38%) * cos(var(--angle) - 90deg));
  top: calc(50% + var(--orbit-radius, 38%) * sin(var(--angle) - 90deg));
  margin: 0;
  line-height: 1.2;
}
.orbit-player .avatar {
  position: relative;
}
.avatar b {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: #697b5a;
  color: white;
  font-size: 8px;
  font-weight: 600;
}
.orbit-player .orbit-name {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orbit-first {
  font-size: 8px;
  color: #ac482e;
  margin-top: -3px;
}
.orbit-player.is-current .avatar {
  outline: 3px solid #df7c5f;
  outline-offset: 4px;
}
.player-orbit.is-large .orbit-player {
  --orbit-radius: 42%;
  width: 52px;
  font-size: 9px;
}
.player-orbit.is-large .orbit-player:nth-child(even) {
  --orbit-radius: 29%;
}
.player-orbit.is-large .avatar {
  width: 35px;
  height: 35px;
  font-size: 11px;
}
.player-orbit.is-large .orbit-name {
  max-width: 55px;
}
.player-orbit.is-large .orbit-first {
  font-size: 7px;
}
.player-orbit.is-large ~ .orbit-core,
.orbit-board:has(.is-large) .orbit-core {
  inset: 40%;
}
.orbit-board:has(.is-large) .orbit-core > span {
  font-size: 25px;
}
.orbit-board:has(.is-large) .orbit-core small {
  font-size: 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd4c0;
  border-radius: 50px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 600;
  background: #edf1e6;
  color: #5b6b4e;
}
.player-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #d9dfd0;
  border-radius: 50px;
  padding: 5px 11px 5px 5px;
  background: #fffdf8;
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.player-chip > .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
  flex-shrink: 0;
}
.choice-grid > .player-chip {
  border-radius: 14px;
  font-size: 13px;
  min-height: 65px;
  justify-content: flex-start;
}
.role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.role-summary > span {
  padding: 6px 9px;
  background: #eeeee6;
  border-radius: 8px;
}
.private-handoff {
  text-align: center;
  padding: 18px 0;
}
.avatar-large {
  width: 78px;
  height: 78px;
  margin: 5px auto 20px;
  font-size: 25px;
  box-shadow: inset 0 -5px 0 #22282609;
}
.private-handoff h2 {
  margin: 10px 0;
}
.private-handoff p {
  font-size: 13px;
}
.secret-word {
  display: block;
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.15;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.card-back {
  background: #e5eadc;
  min-height: 285px;
}
.secret-symbol {
  font-size: 70px;
  color: #779260;
  line-height: 1;
  margin: 0 0 24px;
}
.private-card.secret .secret-word {
  color: #fffaf1;
}
.timer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #eaeddf;
  border-radius: 20px;
  padding: 20px 23px;
  margin: 20px 0;
}
.timer-panel .countdown {
  font-size: 36px;
}
.game-management {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 25px;
}
.source-details {
  font-size: 10px;
}
.source-details summary {
  font-size: 11px;
}
.source-details p,
.source-details a {
  font-size: 10px;
  line-height: 1.7;
}
.source-details ul {
  padding-left: 18px;
}
.game-settings .panel:first-child {
  margin-top: 0;
}
.secret .badge {
  background: #41523c;
  color: #e2ebd8;
  border-color: #64735c;
}
@media (max-width: 520px) {
  .orbit-board {
    max-width: 355px;
  }
  .orbit-board .player-orbit {
    margin-bottom: 22px;
  }
  .orbit-core small {
    font-size: 9px;
  }
  .orbit-core > span {
    font-size: 28px;
  }
  .player-orbit.is-large .orbit-player {
    width: 42px;
    font-size: 8px;
  }
  .player-orbit.is-large .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .player-orbit.is-large .orbit-name {
    max-width: 43px;
  }
  .player-orbit.is-large .avatar b {
    width: 14px;
    height: 14px;
    font-size: 6px;
    right: -3px;
    bottom: -2px;
  }
  .player-orbit.is-large .orbit-first {
    font-size: 6px;
  }
  .orbit-board:has(.is-large) .orbit-core small {
    font-size: 7px;
    line-height: 1.4;
  }
  .orbit-board:has(.is-large) .orbit-core > span {
    font-size: 20px;
  }
  .section-heading {
    margin-bottom: 17px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .role-summary {
    font-size: 10px;
    gap: 5px;
  }
  .role-summary > span {
    padding: 5px 7px;
  }
  .player-list {
    gap: 6px;
  }
  .player-chip {
    font-size: 10px;
    padding: 4px 9px 4px 4px;
    gap: 6px;
  }
  .choice-grid > .player-chip {
    font-size: 11px;
    padding: 10px;
    min-height: 59px;
  }
  .private-handoff {
    padding: 10px 0;
  }
  .private-handoff p {
    font-size: 12px;
  }
  .timer-panel {
    padding: 16px 18px;
  }
  .timer-panel .countdown {
    font-size: 32px;
  }
  .secret-word {
    font-size: clamp(31px, 9vw, 44px);
  }
}
/* Small visual controls keep a generous touch area. */
.languages a {
  min-width: 44px;
  min-height: 44px;
}
.control-stepper {
  min-height: 56px;
}
.control-stepper button {
  min-width: 44px;
  min-height: 44px;
}
.switch-field .switch-control:after {
  content: "";
  position: absolute;
  inset: -9px -2px;
  border-radius: 30px;
}
.game-header .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.card-play {
  min-height: 44px;
}
@media (max-width: 520px) {
  .languages a {
    min-width: 44px;
    min-height: 44px;
  }
  .hero-actions .text-button {
    min-height: 44px;
  }
}
/* A dedicated stage keeps the mobile cast away from reading and touch areas. */
.how-link {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px;
  color: #606a58;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}
.how-link .ui-icon {
  width: 18px;
  height: 18px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
}
.footer-note {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
  max-width: 750px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0;
  font-size: 10px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.site-footer .ui-icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 520px) {
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 26px 0 35px;
    margin-bottom: 30px;
    overflow: visible;
  }
  .home-hero h1 {
    font-size: clamp(35px, 10.5vw, 49px);
    max-width: 100%;
    margin-bottom: 17px;
  }
  .home-hero .intro {
    max-width: 290px;
    font-size: 12px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-cast {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 330px);
    height: 235px;
    margin: 14px auto 5px;
    flex-shrink: 0;
    opacity: 1;
    overflow: hidden;
  }
  .hero-cast:before {
    inset: 25px 5px 8px 5px;
  }
  .hero-cast .cast-one {
    width: 61%;
    left: 0;
    top: -2%;
    z-index: 2;
  }
  .hero-cast .cast-two {
    width: 61%;
    right: 0;
    top: 12%;
    z-index: 3;
  }
  .hero-cast .cast-three {
    width: 56%;
    left: 20%;
    top: 29%;
    z-index: 4;
  }
  .spark-one {
    top: 12%;
    right: 7%;
    font-size: 25px;
  }
  .spark-two {
    left: 7%;
    bottom: 15%;
    font-size: 19px;
  }
  .hero-bottom {
    position: static;
    margin-top: 3px;
    font-size: 9px;
  }
  .header-tools {
    gap: 6px;
    min-width: 0;
  }
  .header-tools > .how-link span {
    display: none;
  }
  .how-link {
    padding: 8px;
    min-width: 40px;
  }
  .shell > header {
    gap: 8px;
  }
  .shell {
    overflow-wrap: break-word;
  }
  .home-hero .eyebrow {
    font-size: 8px;
  }
  .footer-top {
    gap: 8px 15px;
  }
  .footer-note {
    font-size: 9px;
  }
  .site-footer {
    margin-top: 26px;
    padding-top: 20px;
  }
}
@media (max-width: 350px) {
  .hero-cast {
    height: 215px;
    width: 290px;
    max-width: 100%;
    margin-top: 12px;
  }
  .hero-actions .btn {
    padding: 12px 13px;
    font-size: 10px;
  }
  .hero-actions .text-button {
    font-size: 9px;
  }
  .home-hero h1 {
    font-size: 35px;
  }
  .brand {
    font-size: 26px;
  }
  .header-tools {
    gap: 1px;
  }
  .languages a {
    min-width: 37px;
    min-height: 44px;
  }
  .how-link {
    min-width: 38px;
    padding: 8px 5px;
  }
  .hero-cast .cast-one {
    width: 63%;
  }
  .hero-cast .cast-two {
    width: 63%;
  }
  .hero-cast .cast-three {
    width: 56%;
  }
}
@media (max-width: 520px) {
  .hero-cast {
    height: 250px;
    overflow: visible;
  }
  .hero-cast .cast-one {
    width: 58%;
    top: 0;
    left: 0;
  }
  .hero-cast .cast-two {
    width: 58%;
    top: 13%;
    right: 0;
  }
  .hero-cast .cast-three {
    width: 54%;
    top: 28%;
    left: 21%;
  }
}
@media (max-width: 350px) {
  .hero-cast {
    height: 225px;
  }
  .hero-cast .cast-one,
  .hero-cast .cast-two {
    width: 58%;
  }
  .hero-cast .cast-three {
    width: 54%;
  }
}
@media (max-width: 520px) {
  .game-header {
    align-items: flex-start;
  }
  .game-header > div:first-child {
    min-width: 0;
    flex: 1;
  }
  .game-header > [data-tutorial] {
    font-size: 0;
    gap: 0;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 11px;
    margin-top: 5px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .game-header > [data-tutorial] .ui-icon {
    width: 20px;
    height: 20px;
  }
  .game-header h1 {
    font-size: 32px;
  }
  .game-header > .btn {
    box-shadow: none;
  }
}
/* Character avatars use the intact transparent illustrations, never extracted sprites. */
.avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  pointer-events: none;
}
.orbit-player .avatar {
  overflow: visible;
}
.orbit-player .avatar > img {
  border-radius: 50%;
}
.orbit-name {
  font-size: 11px;
}
.mascot > picture,
.avatar > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.avatar > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  pointer-events: none;
}
.variant-badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  background: #eee8f7;
  color: #675080;
  border: 1px solid #dcd1ef;
  border-radius: 50px;
  padding: 6px 10px;
  margin-bottom: 18px;
}
@media (min-width: 900px) {
  .home-hero h1 {
    font-size: clamp(52px, 4.5vw, 64px);
    max-width: 650px;
  }
}

/* Large groups keep names readable in ordered rows instead of crowded rings. */
.orbit-board .player-orbit.is-large {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 7px;
  aspect-ratio: auto;
  padding: 18px 0;
  margin: 5px auto 20px;
}
.player-orbit.is-large:before {
  display: none;
}
.orbit-board .player-orbit.is-large .orbit-player {
  position: static;
  transform: none;
  width: auto;
  min-width: 0;
  gap: 7px;
  font-size: 11px;
}
.player-orbit.is-large .avatar {
  width: 43px;
  height: 43px;
}
.player-orbit.is-large .orbit-name {
  max-width: 100%;
  font-size: 11px;
}
.orbit-board:has(.is-large) .orbit-core {
  display: none;
}
@media (max-width: 520px) {
  .orbit-board .player-orbit.is-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 5px;
  }
  .player-orbit.is-large .avatar {
    width: 40px;
    height: 40px;
  }
  .player-orbit.is-large .avatar b {
    width: 17px;
    height: 17px;
    font-size: 8px;
  }
  .player-orbit.is-large .orbit-name {
    max-width: 100%;
    font-size: 10px;
  }
}

/* Review: player names stay readable on shared phones. */
.orbit-player .orbit-name,
.player-orbit.is-large .orbit-name {
  font-size: 13px;
  line-height: 1.3;
}
.player-orbit.is-large .orbit-name {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.player-chip,
.player-list .player-chip {
  font-size: 13px;
}
.speaking-order {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.speaking-order summary {
  font-size: 14px;
  font-weight: 650;
  min-height: 44px;
  cursor: pointer;
}

/* The orange character belongs to Oddwink; game characters retain their roles. */
.hero-cast.brand-cast {
  height: 365px;
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 0;
}
.hero-cast.brand-cast:before {
  inset: 36px 18px 25px;
  background: #f3ead8;
  transform: rotate(-7deg);
}
.hero-cast.brand-cast .brand-mascot {
  position: relative;
  width: 88%;
  height: 100%;
  max-width: 355px;
  aspect-ratio: auto;
  inset: auto;
  transform: none;
  animation: mascot-float 6s ease-in-out infinite;
}
.brand-cast .spark-one {
  top: 8%;
  right: 6%;
}
.brand-cast .spark-two {
  bottom: 12%;
  left: 3%;
}
.tutorial-brand {
  width: 175px;
  height: 190px;
  aspect-ratio: auto;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .hero-cast.brand-cast {
    height: 280px;
    margin-top: 10px;
  }
  .hero-cast.brand-cast .brand-mascot {
    width: 87%;
    max-width: 270px;
  }
  .hero-cast.brand-cast:before {
    inset: 20px 18px;
  }
  .brand-cast .spark-one {
    right: 6%;
    top: 13%;
  }
}
@media (max-width: 350px) {
  .hero-cast.brand-cast {
    height: 255px;
  }
  .hero-cast.brand-cast .brand-mascot {
    max-width: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cast.brand-cast .brand-mascot {
    animation: none;
  }
}

.game-attribution {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Six game identities; shared navigation remains the neutral Oddwink brand. */
.game-card[data-game-card] {
  --card-tint: var(--game-surface);
  --art-ink: var(--game-primary);
}
.game-card[data-game-card] .card-play {
  color: var(--game-interactive);
}
.known-catalog {
  margin-top: 65px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.echo-trail {
  font-size: 38px;
  white-space: nowrap;
  letter-spacing: -5px;
}
.tempo-wave {
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
}
.play[data-game] .btn:not(.secondary):not(.ghost),
.tutorial-view[data-game] .tutorial-actions > .btn:not(.secondary) {
  background: var(--game-interactive);
  border-color: var(--game-interactive);
  color: #fff;
}
.play[data-game] .btn.secondary,
.play[data-game] .btn.ghost {
  color: var(--ink);
}
.play[data-game] .private-card:not(.secret),
.play[data-game] .timer-panel {
  background: var(--game-surface);
  border-color: var(--game-primary);
}
.play[data-game] .private-card.secret {
  border-color: var(--game-primary);
}
.play[data-game] .avatar {
  background: var(--game-surface);
}
.play[data-game] .avatar b {
  background: var(--game-interactive);
}
.play[data-game] .role-summary > span {
  background: var(--game-surface);
}
.play[data-game] .switch-control[aria-checked="true"] {
  background: var(--game-interactive);
  border-color: var(--game-interactive);
}
.tutorial-view[data-game] .tutorial-art {
  background: var(--game-surface);
}
.play[data-game] .game-header {
  border-top: 3px solid var(--game-primary);
  padding-top: 16px;
}
@media (max-width: 520px) {
  .known-catalog {
    margin-top: 42px;
    padding-top: 28px;
  }
}

.play[data-game] > .game-mascot,
.play[data-game] .game-mascot {
  width: 120px;
  height: 125px;
  aspect-ratio: auto;
  margin: 10px auto;
}
.play[data-game] .player-orbit:before {
  border-color: var(--game-primary);
  background: radial-gradient(circle, var(--game-surface), transparent 68%);
}
.play[data-game] .orbit-core > span {
  color: var(--game-primary);
}
.play[data-game] .progress span.done {
  background: var(--game-primary);
}

/* Approved logo 1 is a brand sign, separate from all seven mascot illustrations. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 1px 0 #2228260c;
}
.brand .brand-logo {
  width: 40px;
  height: 40px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-brand > .brand-logo {
  width: 28px;
  height: 28px;
}
.footer-brand > span {
  margin: 0;
}
@media (max-width: 520px) {
  .brand {
    gap: 8px;
  }
  .brand .brand-logo {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 350px) {
  .brand {
    font-size: 24px;
    gap: 6px;
  }
  .brand .brand-logo {
    width: 30px;
    height: 30px;
  }
}

.creator-credit{font-size:.875rem;margin:.75rem 0}.creator-credit a{color:inherit;text-underline-offset:.2em;display:inline-flex;align-items:center;min-height:44px}.creator-credit a:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:4px}

/* Quiet exit action remains readable alongside every game palette. */
.play[data-game] .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.play[data-game] .btn.ghost:hover:not(:disabled) {
  background: var(--game-surface);
}

/* A separate hit target stays above the stretched card link. */
.card-info {
  position:absolute;top:12px;left:12px;z-index:2;
  width:44px;height:44px;min-width:44px;min-height:44px;
  display:grid;place-items:center;border:1px solid #22282618;
  border-radius:50%;background:#fffdf8ed;color:var(--game-interactive,var(--ink));
  box-shadow:0 3px 10px #2228260d;cursor:pointer;
}
.card-info .ui-icon {width:23px;height:23px;}
.card-info:hover {background:#fff;box-shadow:0 4px 13px #2228261a;}
.card-info:focus-visible {outline:3px solid var(--ink);outline-offset:3px;}
.quick-info-game {font-size:14px;font-weight:750;margin:14px 0 5px;color:var(--ink);}
