@import url("./base.css");
/* Keep decorative foliage inside the viewport, including transformed leaves. */
.hero-world {
  overflow: clip;
}
.mascot img {
  mask-image: radial-gradient(
    ellipse 49% 46% at 50% 54%,
    #000 67%,
    transparent 100%
  );
}
:root {
  color-scheme: dark;
  --bg: #111c30;
  --panel: #1a2841;
  --cream: #fff0d8;
  --muted: #aebbd0;
  --gold: #ffbc70;
  --line: #ffffff18;
  --coral: #ee9c87;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font:
    16px/1.5 "Segoe UI",
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--gold);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #ffd59c;
  outline-offset: 5px;
}
button.primary {
  background: var(--gold);
  color: #292033;
  box-shadow:
    0 6px 0 #bc7d3b,
    0 14px 30px #0003;
  font-weight: 750;
  padding: 16px 32px;
  border-radius: 17px;
  min-height: 56px;
  transition: transform 0.2s;
}
button.primary:hover {
  transform: translateY(-2px);
  background: #ffca8c;
}
.secondary {
  background: #ffffff08;
  border: 1px solid #ffffff29;
  border-radius: 14px;
  padding: 12px 20px;
}
.quiet {
  background: none;
  color: var(--muted);
  padding: 10px;
}
.quiet:hover {
  color: var(--cream);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 750;
  color: var(--gold);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.brand {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  font-size: 25px;
  letter-spacing: 0;
  color: var(--gold);
}
.pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #ffbc7040;
  color: #ffd9aa;
  border-radius: 30px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffbc70;
}
header {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
header .header-left,
header .header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  text-align: left;
}
.avatar {
  background: var(--avatar-color, #ffb35c);
  color: #18253a;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  font-size: 25px;
}
.person strong {
  display: block;
  font-size: 14px;
}
.person small {
  color: var(--muted);
  font-size: 11px;
}
.icon-button {
  background: #ffffff07;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.credit {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.credit strong {
  font-size: 16px;
  color: var(--cream);
  display: block;
}
.page {
  max-width: 1184px;
  margin: auto;
  padding: 35px 48px 100px;
  animation: arrive 0.35s ease-out;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 455px;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -30px -40px 0;
  background: radial-gradient(ellipse at 68% 45%, #59415b66, transparent 60%);
  z-index: -2;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2.6px;
  margin: 16px 0 20px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-copy > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 360px;
  margin: 0 0 26px;
}
.hero .primary {
  min-width: 210px;
}
.opportunities {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #d0c6bd;
}
.opportunities span {
  color: #9ad7b8;
}
.hero-world {
  position: relative;
  height: 450px;
  display: grid;
  place-items: center;
}
.mascot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s;
  filter: drop-shadow(0 20px 28px #0003);
}
.mascot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-world .mascot {
  position: absolute;
  width: 370px;
  height: 410px;
  top: -18px;
  left: 45px;
  z-index: 1;
}
.world-floor {
  position: absolute;
  bottom: 10px;
  width: 370px;
  height: 80px;
  border-radius: 50%;
  background: #32413c;
  box-shadow:
    0 15px 0 #1e302e,
    0 23px 0 #0c1827;
  transform: rotate(-6deg);
  opacity: 0.7;
}
.floating-ticket {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 210px;
  padding: 19px;
  transform: rotate(-12deg);
  border-radius: 19px;
  background: #f4c883;
  color: #4a3140;
  border: 5px solid #e8b46e;
  box-shadow: 0 20px 30px #0004;
  z-index: 3;
  text-align: center;
}
.floating-ticket strong {
  display: block;
  font:
    700 22px Georgia,
    serif;
  margin-bottom: 12px;
}
.tiny-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.tiny-grid span {
  background: #fff1c4a3;
  border: 1px solid #b3844555;
  border-radius: 8px;
  height: 30px;
  font-size: 18px;
}
.leaf {
  position: absolute;
  width: 55px;
  height: 145px;
  border-radius: 90% 0 90% 0;
  background: #284e4b;
  bottom: 30px;
  right: 0;
  transform: rotate(33deg);
  z-index: -1;
}
.leaf.two {
  right: 50px;
  bottom: 13px;
  transform: rotate(-30deg);
  height: 110px;
  background: #3b6153;
}
.leaf.three {
  left: 10px;
  bottom: 5px;
  transform: rotate(-45deg);
  background: #223f43;
}
.star-dot {
  position: absolute;
  color: #e8c28f;
  right: 10%;
  top: 20%;
  font-size: 24px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 17px;
}
.section-label h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.quick-link {
  border: 1px solid var(--line);
  background: #1b2a40;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.quick-link:hover {
  background: #24334b;
  transform: translateY(-3px);
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #ffbc7010;
  color: var(--gold);
}
.quick-link strong {
  font-size: 14px;
  display: block;
}
.quick-link small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.journey {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  background: #ffffff02;
}
.journey .journey-title {
  font-size: 14px;
  max-width: 150px;
}
.journey ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: space-around;
}
.journey li {
  font-size: 13px;
  color: var(--muted);
}
.journey li b {
  color: var(--gold);
  margin-right: 9px;
}
.journey li small {
  display: block;
  font-size: 10px;
  margin-left: 22px;
  margin-top: 3px;
}
.footer {
  max-width: 1184px;
  margin: auto;
  padding: 0 48px 24px;
  color: #8292a9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 16px;
}
.footer button {
  font-size: 11px;
}
.bottom-nav {
  display: none;
}
.welcome {
  min-height: calc(100svh - 170px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-top: 15px;
}
.welcome .mascot {
  height: 490px;
}
.welcome h1 {
  font:
    500 clamp(38px, 4vw, 56px) / 1.12 Georgia,
    serif;
  letter-spacing: -1.8px;
  margin: 15px 0;
}
.welcome h1 em {
  font-style: normal;
  color: var(--gold);
}
.welcome p {
  color: var(--muted);
  font-size: 18px;
}
.welcome-actions {
  display: grid;
  gap: 15px;
  max-width: 355px;
  margin: 32px 0 22px;
}
.welcome-actions button {
  width: 100%;
}
.welcome .fine {
  font-size: 12px;
  max-width: 340px;
}
.back {
  background: none;
  color: var(--muted);
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.page-title {
  font:
    500 39px/1.2 Georgia,
    serif;
  margin: 4px 0 12px;
  letter-spacing: -1px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.panel h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.narrow {
  max-width: 660px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #cfdaea;
}
input,
select {
  background: #101b2e;
  border: 1px solid #ffffff30;
  border-radius: 11px;
  padding: 13px;
  color: var(--cream);
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--gold);
  width: 20px;
  height: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatars,
.colors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.avatars button {
  font-size: 30px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff09;
  border: 2px solid transparent;
}
.avatars button.selected,
.colors button.selected {
  border-color: var(--gold);
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.colors button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid transparent;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(300px, 600px) 1fr;
  gap: 40px;
  align-items: center;
}
.scratch-card {
  background: #f5d49a;
  padding: 24px;
  border-radius: 26px;
  color: #372b3f;
  box-shadow:
    0 12px 0 #a97c4d,
    0 28px 60px #0004;
  border: 5px solid #d7ad6e;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-title strong {
  font-size: 23px;
  letter-spacing: -1px;
}
.card-title small {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.scratch-cell {
  aspect-ratio: 1.12;
  position: relative;
  background: #fff0cb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #b98b5444;
}
.scratch-cell .symbol {
  font-size: 37px;
  line-height: 1.1;
}
.scratch-cell small {
  font-size: 10px;
  margin-top: 6px;
}
.scratch-cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  transition: opacity 0.25s;
}
.scratch-cell.done canvas {
  opacity: 0;
  pointer-events: none;
}
.scratch-cell.match {
  border: 3px solid #cc8b2c;
  background: #fff9e8;
  box-shadow: inset 0 0 18px #ffcc6577;
}
.scratch-card .card-foot {
  text-align: center;
  font-size: 11px;
  margin: 18px 0 0;
}
.progress {
  height: 4px;
  background: #ffffff15;
  border-radius: 8px;
  margin: 24px 0 10px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.2s;
}
.game-actions {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.game-info .mascot {
  height: 210px;
  max-width: 250px;
  margin: auto;
}
.game-info h2 {
  font:
    400 27px Georgia,
    serif;
}
.game-info p {
  color: var(--muted);
  font-size: 14px;
}
.steps {
  display: flex;
  gap: 10px;
  margin: 0 0 28px;
  list-style: none;
  padding: 0;
}
.steps li {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.steps li.active {
  color: var(--gold);
  border-color: #ffbc7066;
  background: #ffbc7009;
}
.result-box {
  margin-top: 25px;
}
.result-box h2 {
  font:
    400 27px Georgia,
    serif;
}
.result-box .prize {
  font-size: 25px;
  color: var(--gold);
  font-weight: 700;
}
.notice {
  border: 1px solid #ffbc7035;
  background: #ffbc7008;
  border-radius: 13px;
  padding: 14px 18px;
  color: #dac8b4;
  font-size: 13px;
  margin: 18px 0;
}
.wheel-wrap {
  position: relative;
  margin: 25px auto;
  width: min(100%, 330px);
  aspect-ratio: 1;
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #dba961;
  background: conic-gradient(
    #334d72 0deg 90deg,
    #b27a66 90deg 180deg,
    #654d80 180deg 270deg,
    #3e6661 270deg 360deg
  );
  box-shadow:
    0 10px 0 #a27743,
    0 25px 40px #0004;
  transition: transform 3.5s cubic-bezier(0.12, 0.72, 0.12, 1);
  position: relative;
}
.wheel .wheel-label {
  position: absolute;
  width: 110px;
  left: calc(50% - 55px);
  top: calc(50% - 15px);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transform: rotate(var(--angle)) translateY(-100px)
    rotate(calc(-1 * var(--angle)));
}
.wheel:after {
  content: "✦";
  display: grid;
  place-items: center;
  background: #ffcf8e;
  color: #46334c;
  width: 64px;
  height: 64px;
  border: 5px solid #e1ad65;
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  font-size: 30px;
}
.wheel-pointer {
  position: absolute;
  left: calc(50% - 15px);
  top: -6px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #fff0cc;
  z-index: 2;
}
.ticket {
  position: relative;
  background: #f8dfad;
  color: #352f40;
  border-radius: 20px;
  padding: 30px;
  border-left: 8px solid #d4a66a;
  overflow: hidden;
}
.ticket:after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg);
  right: -12px;
  top: 50%;
}
.ticket .eyebrow {
  color: #836039;
}
.ticket .number {
  font:
    700 26px ui-monospace,
    monospace;
  letter-spacing: 2px;
  margin: 15px 0;
}
.ticket dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  border-top: 1px dashed #8b6f4b77;
  padding-top: 15px;
}
.ticket dt {
  color: #796849;
}
.ticket dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.ticket .pill {
  color: #634d2f;
  border-color: #8b6f4b66;
}
.ticket .pill:before {
  background: #726841;
}
.history {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.empty .empty-icon {
  font-size: 48px;
}
.empty h2 {
  font-size: 20px;
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tabs button {
  font-size: 12px;
}
.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.balance-grid .panel {
  padding: 20px;
}
.balance-grid strong {
  font-size: 25px;
  display: block;
  margin-top: 12px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  display: block;
  font-size: 14px;
}
.list-row small {
  font-size: 11px;
  color: var(--muted);
}
.list-row .amount {
  color: var(--gold);
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 25px;
}
.settings .check {
  margin: 18px 0;
}
.settings button {
  margin-top: 12px;
}
dialog {
  background: #1a2841;
  border: 1px solid #ffffff30;
  border-radius: 24px;
  color: var(--cream);
  padding: 30px;
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: 85svh;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #070e1dcc;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font:
    400 28px Georgia,
    serif;
  margin-top: 0;
}
dialog .close {
  float: right;
  font-size: 23px;
  background: none;
  color: var(--muted);
}
dialog p,
dialog li {
  font-size: 14px;
  color: #c3cee0;
}
dialog li {
  margin-bottom: 10px;
}
dialog .form-grid {
  margin-top: 20px;
}
.dialog-error {
  color: #ffb9a2;
  font-size: 13px;
  min-height: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.admin-grid form {
  align-self: start;
}
.audit {
  font-size: 11px;
  overflow: auto;
  max-height: 350px;
}
.audit p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  overflow-wrap: anywhere;
}
.audit code {
  color: #e4cbaa;
}
.loading {
  height: 65svh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #f7deaf;
  color: #342d3e;
  border-radius: 14px;
  padding: 14px 22px;
  max-width: calc(100% - 32px);
  box-shadow: 0 10px 40px #0005;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.offline {
  background: #70452f;
  text-align: center;
  padding: 8px;
  font-size: 12px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.error-screen {
  text-align: center;
  padding: 80px 20px;
}
.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.rules-table td,
.rules-table th {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .page {
    padding-top: 50px;
  }
  .hero {
    min-height: 490px;
  }
}
@media (max-width: 900px) {
  header {
    padding: 20px 25px;
  }
  .page {
    padding: 25px 25px 110px;
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero-world .mascot {
    left: 0;
    width: 320px;
  }
  .hero-world {
    height: 410px;
  }
  .floating-ticket {
    width: 175px;
    left: -15px;
  }
  .quick-link {
    padding: 17px 12px;
    gap: 10px;
  }
  .quick-icon {
    width: 35px;
    height: 35px;
  }
  .journey {
    padding: 20px;
    gap: 10px;
  }
  .journey ol {
    gap: 15px;
  }
  .welcome {
    gap: 25px;
  }
  .game-layout {
    gap: 25px;
  }
  .footer {
    padding: 0 25px 25px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 15px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 29px;
  }
  .brand-mark {
    font-size: 22px;
  }
  header .header-left,
  header .header-right {
    gap: 12px;
  }
  header .header-left > .pill {
    display: none;
  }
  .person > span:last-child {
    display: none;
  }
  .credit strong {
    font-size: 13px;
  }
  .credit {
    font-size: 10px;
  }
  .avatar {
    width: 37px;
    height: 37px;
    font-size: 23px;
    border-radius: 12px;
  }
  .icon-button {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .page {
    padding: 20px 20px 105px;
  }
  .topline {
    margin-bottom: 5px;
    font-size: 12px;
  }
  .hero {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }
  .hero-world {
    height: 285px;
    width: 100%;
    max-width: 370px;
  }
  .hero-world .mascot {
    width: 260px;
    height: 290px;
    left: 90px;
    top: -16px;
  }
  .floating-ticket {
    width: 153px;
    bottom: 15px;
    left: 12px;
    padding: 12px;
    border-width: 4px;
    border-radius: 14px;
  }
  .floating-ticket strong {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .tiny-grid {
    gap: 5px;
  }
  .tiny-grid span {
    height: 23px;
    font-size: 15px;
  }
  .world-floor {
    width: 260px;
    height: 55px;
    right: 0;
    bottom: 5px;
  }
  .leaf {
    height: 100px;
    width: 38px;
    right: 0;
  }
  .leaf.two {
    right: 30px;
    height: 85px;
  }
  .star-dot {
    top: 20px;
    left: 35px;
    font-size: 20px;
  }
  .hero-copy {
    text-align: center;
    width: 100%;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
    margin: 4px 0 12px;
  }
  .hero h1 br {
    display: none;
  }
  .hero-copy > p {
    font-size: 14px;
    margin: 0 auto 22px;
  }
  .hero .primary {
    width: 100%;
    max-width: 360px;
  }
  .opportunities {
    justify-content: center;
    font-size: 11px;
    margin-top: 18px;
  }
  .hero-copy .eyebrow {
    font-size: 10px;
  }
  .section-label {
    margin: 30px 0 12px;
  }
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .quick-link {
    padding: 16px 13px;
    border-radius: 15px;
  }
  .quick-link strong {
    font-size: 12px;
  }
  .quick-link small {
    font-size: 10px;
  }
  .journey {
    margin-top: 25px;
    display: block;
    padding: 18px;
  }
  .journey .journey-title {
    font-size: 13px;
    max-width: none;
    margin-bottom: 15px;
  }
  .journey ol {
    gap: 8px;
    justify-content: space-between;
  }
  .journey li {
    font-size: 11px;
  }
  .journey li b {
    margin-right: 4px;
  }
  .journey li small {
    margin-left: 14px;
    font-size: 9px;
  }
  .footer {
    padding: 0 20px 100px;
    display: block;
    text-align: center;
    font-size: 10px;
  }
  .footer > div {
    margin: 10px 0;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #111c30f5;
    border-top: 1px solid #ffffff18;
    backdrop-filter: blur(15px);
    z-index: 10;
    justify-content: space-around;
  }
  .bottom-nav button {
    background: none;
    color: var(--muted);
    font-size: 10px;
    display: grid;
    gap: 2px;
    min-width: 60px;
    min-height: 43px;
  }
  .bottom-nav button span {
    font-size: 19px;
  }
  .bottom-nav button.active {
    color: var(--gold);
  }
  .welcome {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    min-height: 0;
    text-align: center;
  }
  .welcome .mascot {
    height: 300px;
    max-width: 350px;
  }
  .welcome-copy {
    margin-top: 0;
  }
  .welcome h1 {
    font-size: 40px;
  }
  .welcome p {
    font-size: 16px;
  }
  .welcome-actions {
    margin: 25px auto;
    max-width: 360px;
  }
  .welcome .fine {
    margin: 0 auto;
  }
  .page-title {
    font-size: 33px;
  }
  .panel {
    padding: 22px;
    border-radius: 20px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .game-info {
    order: -1;
  }
  .game-info .mascot {
    display: none;
  }
  .game-info h2 {
    font-size: 23px;
    margin: 0 0 10px;
  }
  .game-info p {
    font-size: 13px;
    margin: 0;
  }
  .game-info .notice {
    display: none;
  }
  .scratch-card {
    padding: 17px;
    border-radius: 21px;
    border-width: 4px;
  }
  .scratch-grid {
    gap: 9px;
  }
  .scratch-cell .symbol {
    font-size: 32px;
  }
  .scratch-cell small {
    font-size: 9px;
  }
  .steps {
    gap: 7px;
    margin: 10px 0 24px;
  }
  .steps li {
    font-size: 10px;
    padding: 6px 9px;
  }
  .history,
  .settings,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .balance-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .balance-grid .panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .balance-grid strong {
    font-size: 22px;
    margin: 0;
  }
  .balance-grid .small {
    font-size: 12px;
  }
  .game-actions button.primary {
    flex: 1;
  }
  .ticket {
    padding: 24px;
  }
  .ticket .number {
    font-size: 22px;
  }
  .avatars {
    gap: 8px;
  }
  .avatars button {
    width: 47px;
    height: 47px;
    font-size: 26px;
  }
  #toast {
    bottom: 85px;
    width: max-content;
    font-size: 13px;
  }
  .welcome ~ .footer {
    padding-bottom: 25px;
  }
  .tabs {
    gap: 7px;
  }
  .tabs button {
    padding: 8px 12px;
  }
  .topline .quiet {
    font-size: 11px;
  }
  .hero:before {
    inset: -10px -20px 0;
  }
  .error-screen {
    padding: 50px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body.reduce-motion *,
body.reduce-motion *:before,
body.reduce-motion *:after {
  animation: none !important;
  transition: none !important;
}
