:root {
  color-scheme: dark;
  --bg: #090604;
  --panel: rgba(25, 15, 10, .95);
  --panel-2: rgba(39, 23, 14, .97);
  --line: rgba(255, 177, 70, .3);
  --line-strong: rgba(255, 185, 77, .66);
  --text: #fff8eb;
  --muted: #cfbda5;
  --amber: #ffb33f;
  --amber-2: #ff7a24;
  --gold: #ffd878;
  --green: #7ee0a1;
  --danger: #ff766d;
  --shadow: rgba(0, 0, 0, .5);
  --radius: 1.2rem;
  --global-bar-height: var(--lexapyr-header-height, 6.15rem);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 18rem;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 18rem;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 5%, rgba(255, 118, 29, .16), transparent 30rem),
    radial-gradient(circle at 84% 58%, rgba(255, 187, 70, .08), transparent 36rem),
    linear-gradient(158deg, #110906 0%, #070403 72%);
  font-size: 17px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 205, 111, .82);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.spark-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark-field::before {
  position: absolute;
  inset: -25%;
  content: "";
  opacity: .34;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 3.9rem,
      rgba(255, 169, 48, .035) 4rem 4.08rem,
      transparent 4.16rem 8.2rem
    );
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  animation: heat-weave 34s linear infinite;
}

.spark-stream,
.spark-orbit,
.spark-aurora {
  position: absolute;
  display: block;
  pointer-events: none;
}

.spark-stream {
  inset: -12rem 0;
  opacity: .6;
  background-repeat: repeat;
  will-change: background-position, transform;
}

.spark-stream-a {
  background-image:
    radial-gradient(circle, rgba(255, 229, 155, .96) 0 1px, rgba(255, 128, 24, .5) 1.4px 2.2px, transparent 3px),
    radial-gradient(circle, rgba(255, 171, 55, .78) 0 1.3px, transparent 2.8px),
    radial-gradient(circle, rgba(202, 54, 16, .72) 0 1.8px, transparent 3.6px);
  background-size: 9rem 13rem, 13rem 17rem, 19rem 23rem;
  background-position: 14% 70%, 77% 30%, 46% 90%;
  animation: sparks-rise 20s linear infinite;
}

.spark-stream-b {
  opacity: .34;
  filter: blur(.4px);
  background-image:
    radial-gradient(circle, rgba(255, 196, 90, .7) 0 1px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 92, 18, .7) 0 1.5px, transparent 3px);
  background-size: 6.5rem 9rem, 11rem 15rem;
  animation: sparks-sway 13s ease-in-out infinite alternate;
}

.spark-orbit {
  width: 92vmax;
  aspect-ratio: 1;
  left: 50%;
  top: 48%;
  translate: -50% -50%;
  opacity: .28;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 8deg,
      transparent 0 8deg,
      rgba(255, 139, 28, .12) 8.4deg 9deg,
      transparent 9.4deg 20deg
    );
  mask-image: radial-gradient(circle, transparent 0 22%, #000 29% 55%, transparent 70%);
  animation: ambient-orbit 62s linear infinite;
}

.spark-aurora {
  inset: -18%;
  opacity: .52;
  background:
    radial-gradient(ellipse at 23% 32%, rgba(255, 93, 18, .18), transparent 22%),
    radial-gradient(ellipse at 74% 62%, rgba(255, 174, 53, .14), transparent 25%),
    radial-gradient(ellipse at 48% 88%, rgba(130, 29, 8, .2), transparent 22%);
  filter: blur(28px);
  animation: aurora-wander 17s ease-in-out infinite alternate;
}

.lexapyr-topbar,
.game-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.game-shell {
  width: min(100%, 76rem);
  min-height: calc(100dvh - var(--global-bar-height));
  margin: 0 auto;
  padding: clamp(.45rem, 1.4vw, .85rem) clamp(.32rem, 1.5vw, .85rem) max(1rem, env(safe-area-inset-bottom));
  flex: 1 0 auto;
}

.mode-badge {
  width: fit-content;
  margin: 0 auto .55rem;
  padding: .42rem .85rem;
  border: 1px solid rgba(126, 224, 161, .55);
  border-radius: 999px;
  color: #dcffe7;
  background: rgba(20, 67, 39, .88);
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.25rem, 1.1vw, .55rem);
  margin-bottom: clamp(.38rem, 1.2vw, .7rem);
}

.status-strip > div {
  min-width: 0;
  min-height: clamp(5rem, 9dvh, 6.2rem);
  padding: .62rem .22rem;
  display: grid;
  place-content: center;
  gap: .22rem;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(255, 190, 82, .1), transparent 48%),
    rgba(22, 13, 9, .94);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .045),
    0 .5rem 1.25rem rgba(0, 0, 0, .24);
}

.status-label {
  color: var(--muted);
  font-size: clamp(.76rem, 3.2vw, .98rem);
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-strip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--gold);
  font-size: clamp(1.35rem, 5.7vw, 1.9rem);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
}

.forge {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.38rem, 1.2vw, .7rem);
}

.checklist-panel,
.wheel-panel {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 162, 43, .12), transparent 50%),
    linear-gradient(155deg, rgba(43, 25, 15, .97), rgba(15, 9, 6, .98));
  box-shadow:
    0 1rem 2.8rem var(--shadow),
    inset 0 1px rgba(255, 255, 255, .055);
}

.checklist-panel {
  min-height: 7rem;
  padding: clamp(.68rem, 2vw, 1rem);
  display: grid;
  align-content: center;
}

.checklist-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .58rem .82rem;
}

.word-slot {
  max-width: 100%;
  padding: .42rem .5rem;
  display: flex;
  justify-content: center;
  gap: clamp(.22rem, 1.25vw, .42rem);
  border: 1.5px solid rgba(255, 158, 34, .34);
  border-radius: .88rem;
  background: linear-gradient(180deg, rgba(255, 161, 38, .08), rgba(0, 0, 0, .24));
  box-shadow: inset 0 0 1rem rgba(0, 0, 0, .25);
}

.word-slot.found {
  border-color: rgba(255, 190, 78, .72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 179, 55, .18), transparent 76%),
    linear-gradient(180deg, rgba(255, 141, 26, .15), rgba(43, 17, 6, .27));
}

.word-slot.just-found {
  animation: ignite .55s ease-out;
}

.slot-tile {
  width: clamp(2.45rem, 10.4vw, 3.55rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 181, 62, .52);
  border-radius: .66rem;
  color: var(--amber);
  background: linear-gradient(180deg, rgba(255, 164, 39, .05), rgba(0, 0, 0, .28));
  box-shadow: inset 0 0 .8rem rgba(0, 0, 0, .3);
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 950;
  text-transform: uppercase;
}

.word-slot.found .slot-tile {
  color: #ffe0a0;
  border-color: rgba(255, 185, 68, .9);
  background: linear-gradient(180deg, rgba(255, 151, 25, .28), rgba(79, 28, 7, .3));
  box-shadow: 0 0 1rem rgba(255, 117, 22, .18);
}

.word-slot.hinted .slot-tile:first-child {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 178, 63, .2);
}

.word-slot[data-letter-count="7"] .slot-tile,
.word-slot[data-letter-count="8"] .slot-tile {
  width: clamp(2.12rem, 8.9vw, 3.15rem);
  font-size: clamp(1.05rem, 4.45vw, 1.52rem);
}

.word-slot[data-letter-count="9"] .slot-tile,
.word-slot[data-letter-count="10"] .slot-tile,
.word-slot[data-letter-count="11"] .slot-tile,
.word-slot[data-letter-count="12"] .slot-tile {
  width: clamp(1.78rem, 7.45vw, 2.68rem);
  font-size: clamp(.9rem, 3.7vw, 1.32rem);
}

.bonus-row {
  margin-top: .62rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .45rem;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.28rem);
  font-weight: 750;
}

.bonus-row strong {
  color: var(--gold);
  font-size: clamp(1.45rem, 5.9vw, 1.95rem);
}

.bonus-total {
  opacity: .75;
}

.wheel-panel {
  position: relative;
  min-height: 0;
  padding: .35rem .42rem max(.68rem, env(safe-area-inset-bottom));
  overflow: visible;
}

.board-tools {
  position: absolute;
  z-index: 8;
  top: .72rem;
  left: .72rem;
  right: .72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.board-tool {
  min-height: 3.5rem;
  padding: .62rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  border: 1.5px solid var(--line-strong);
  border-radius: .95rem;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 167, 46, .1), rgba(255, 255, 255, .02)),
    rgba(19, 10, 7, .92);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
}

.board-tool-help {
  width: 3.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.5rem;
}

.wheel-wrap {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: var(--wheel-height, clamp(27rem, 56dvh, 48rem));
  min-height: var(--wheel-height, 27rem);
  margin: 0 auto;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.wheel-wrap::before,
.wheel-wrap::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  border-radius: 50%;
}

.wheel-wrap::before {
  inset: 5%;
  opacity: .48;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0 11deg,
      rgba(255, 153, 31, .11) 11.2deg 11.8deg,
      transparent 12deg 24deg
    ),
    repeating-radial-gradient(
      circle,
      transparent 0 4.15rem,
      rgba(255, 142, 28, .055) 4.25rem 4.35rem,
      transparent 4.45rem 8.4rem
    );
  animation: forge-orbit 32s linear infinite;
}

.wheel-wrap::after {
  inset: 15%;
  opacity: .68;
  background:
    radial-gradient(circle, rgba(255, 127, 21, .14), transparent 48%),
    conic-gradient(
      from 35deg,
      transparent 0 18%,
      rgba(255, 128, 20, .1) 24%,
      transparent 31% 62%,
      rgba(255, 174, 49, .08) 70%,
      transparent 78%
    );
  filter: blur(10px);
  animation: forge-breathe 7s ease-in-out infinite alternate;
}

.letter-wheel,
.drag-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.drag-line {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.letter-wheel {
  z-index: 3;
}

.letter-tile {
  position: absolute;
  translate: -50% -50%;
  width: var(--orb-size, 7rem);
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2.5px solid rgba(255, 188, 74, .82);
  border-radius: 50%;
  color: #fff7dd;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 214, 133, .36), transparent 24%),
    radial-gradient(circle, #5a2711, #180b07 71%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, .3),
    inset 0 0 1.8rem rgba(255, 126, 24, .1),
    0 .85rem 2rem rgba(0, 0, 0, .54),
    0 0 1.5rem rgba(255, 121, 22, .13);
  font-size: var(--orb-font-size, 3rem);
  font-weight: 950;
  text-shadow: 0 .12rem .15rem rgba(0, 0, 0, .75);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.letter-tile.selected {
  color: #2b1000;
  border-color: #ffe0a0;
  background:
    radial-gradient(circle at 34% 27%, #fff4c5, transparent 22%),
    radial-gradient(circle, #ffd67a 0 38%, #ff9b28 72%, #f36b17 100%);
  transform: scale(1.1);
  box-shadow:
    0 0 0 .22rem rgba(255, 181, 57, .16),
    0 0 2rem rgba(255, 139, 23, .95),
    0 0 4rem rgba(255, 83, 15, .48),
    inset 0 0 1rem rgba(255, 255, 255, .35);
  animation: selected-pulse .75s ease-in-out infinite alternate;
}

.letter-wheel.rejected {
  animation: shake .26s linear;
}

.wheel-wrap.shuffling {
  animation: shuffle-forge .58s cubic-bezier(.2, .82, .28, 1);
}

.wheel-wrap.shuffling .letter-tile {
  animation: shuffle-orb-a .56s cubic-bezier(.18, .78, .25, 1);
}

.wheel-wrap.shuffling .letter-tile:nth-child(even) {
  animation-name: shuffle-orb-b;
}

.wheel-wrap.shuffling .letter-tile:nth-child(3n) {
  animation-delay: .035s;
}

.wheel-wrap.shuffling::after {
  animation: shuffle-flare .58s ease-out;
}

.current-word {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(84%, 34rem);
  min-height: 3.8rem;
  padding: .45rem 1rem;
  display: grid;
  place-items: center;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
  border-radius: 1.2rem;
  color: var(--gold);
  background: transparent;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
  text-shadow:
    0 0 .7rem rgba(255, 203, 100, .7),
    0 0 1.8rem rgba(255, 102, 19, .65);
}

.current-word:not(:empty) {
  border-color: rgba(255, 174, 46, .34);
  background: rgba(12, 6, 4, .62);
  box-shadow: inset 0 0 1.2rem rgba(255, 117, 20, .08);
  backdrop-filter: blur(5px);
}

.drag-line path {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-trail-glow {
  stroke: rgba(255, 67, 12, .34);
  stroke-width: clamp(44px, 10vw, 76px);
  filter: blur(10px) drop-shadow(0 0 26px rgba(255, 67, 10, .95));
}

.spark-trail-core {
  stroke: rgba(255, 158, 38, .97);
  stroke-width: clamp(18px, 4.6vw, 30px);
  filter: drop-shadow(0 0 11px rgba(255, 93, 12, 1));
}

.spark-trail-hot {
  stroke: rgba(255, 239, 174, .98);
  stroke-width: clamp(5px, 1.35vw, 9px);
  stroke-dasharray: 24 9 5 12;
  animation: hot-flow .45s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 235, 167, .95));
}

.spark-trail-embers {
  stroke: rgba(255, 248, 202, .98);
  stroke-width: clamp(3px, .9vw, 6px);
  stroke-dasharray: 1 13;
  animation: spark-flow .36s linear infinite;
  filter: drop-shadow(0 0 7px rgba(255, 226, 137, 1));
}

.spark-trail-tip {
  fill: #fff1b8;
  stroke: rgba(255, 137, 27, .92);
  stroke-width: 5px;
  filter: drop-shadow(0 0 8px #fff1b8) drop-shadow(0 0 18px #ff7118);
  animation: trail-tip-pulse .42s ease-in-out infinite alternate;
}

.feedback {
  min-height: 2.8rem;
  margin: .35rem .3rem .12rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: clamp(1.08rem, 4.4vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.feedback.success {
  color: #a7ef8e;
  text-shadow: 0 0 1rem rgba(111, 222, 91, .26);
}

.feedback.error {
  color: #ff9584;
}

.wheel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .58rem;
}

.primary-button,
.secondary-button,
.jump-form button {
  min-height: 3.5rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.primary-button,
.jump-form button {
  color: #271103;
  background: linear-gradient(145deg, #ffd37d, var(--amber-2));
}

.secondary-button {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 176, 58, .08), rgba(255, 255, 255, .025)),
    rgba(22, 12, 8, .96);
}

.wheel-actions .secondary-button {
  min-height: clamp(4.3rem, 8dvh, 5.5rem);
  font-size: clamp(1.22rem, 5vw, 1.7rem);
}

button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.text-button {
  min-height: 2.8rem;
  display: block;
  margin: .18rem auto 0;
  padding: .4rem .7rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: clamp(.96rem, 3.5vw, 1.15rem);
  text-decoration: underline;
  cursor: pointer;
}

.modal {
  width: min(calc(100% - 1rem), 44rem);
  max-height: min(90dvh, 54rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-y: auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 1.25rem;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 161, 45, .13), transparent 56%),
    linear-gradient(180deg, #27140b, #0d0705);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .78);
}

.modal::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.modal-header {
  margin-bottom: .9rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.modal h2 {
  margin: .12rem 0 0;
}

.eyebrow {
  color: var(--amber);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .15em;
}

.close-button {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  font-size: 1.8rem;
  cursor: pointer;
}

.jump-form {
  margin-bottom: .9rem;
}

.jump-form label {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
}

.jump-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
}

.jump-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: .68rem .78rem;
  border: 1.5px solid var(--line);
  border-radius: .8rem;
  color: var(--text);
  background: rgba(0, 0, 0, .32);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: .52rem;
}

.level-card {
  min-height: 5.2rem;
  padding: .58rem;
  border: 1.5px solid var(--line);
  border-radius: .88rem;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.level-card strong,
.level-card span {
  display: block;
}

.level-card strong {
  font-size: 1.2rem;
}

.level-card .level-tier {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
}

.level-card .level-stars {
  min-height: 1rem;
  margin-top: .3rem;
  color: var(--amber);
}

.level-card.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 178, 63, .18);
}

.load-more {
  width: 100%;
  margin-top: .75rem;
}

.help-content {
  display: grid;
  gap: .72rem;
}

.rule-row {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  align-items: start;
  gap: .68rem;
}

.rule-row > span {
  width: 2.35rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #291103;
  background: var(--amber);
  font-weight: 950;
}

.rule-row p {
  margin: .18rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.complete-modal {
  width: min(calc(100vw - .7rem), 58rem);
  min-height: min(84dvh, 52rem);
  max-height: calc(100dvh - .7rem);
  padding: clamp(1.3rem, 4vw, 2.5rem);
  text-align: center;
}

.complete-modal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.completion-mark {
  width: clamp(6rem, 22vw, 8.4rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto .8rem;
  border-radius: 50%;
  color: #2a1102;
  background: var(--amber);
  box-shadow: 0 0 2.4rem rgba(255, 132, 37, .58);
  font-size: clamp(2.8rem, 10vw, 4.3rem);
}

.complete-modal h2 {
  max-width: 20ch;
  margin: .4rem auto .2rem;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  line-height: 1.08;
}

.earned-stars {
  margin: .8rem 0;
  color: var(--amber);
  font-size: clamp(3rem, 11vw, 5rem);
  letter-spacing: .18rem;
}

.complete-stats {
  width: 100%;
  margin: .8rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.complete-stats div {
  min-height: 4.8rem;
  padding: .65rem .3rem;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: .82rem;
  background: rgba(255, 255, 255, .035);
}

.complete-stats span {
  color: var(--muted);
  font-size: .78rem;
}

.complete-stats strong {
  margin-top: .12rem;
  font-size: 1.35rem;
}

#completeSummary {
  color: var(--muted);
  line-height: 1.45;
}

.completion-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.completion-actions button {
  min-height: 4rem;
}

.report-form {
  display: grid;
  gap: .8rem;
}

.report-form label {
  color: var(--muted);
}

.report-form select,
.report-form textarea {
  margin-top: .3rem;
}

.site-footer {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: .5rem 1rem max(1rem, env(safe-area-inset-bottom));
  color: #907b69;
  font-size: .72rem;
  text-align: center;
}

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

@keyframes heat-weave {
  to { transform: translate3d(7rem, -5rem, 0); }
}

@keyframes sparks-rise {
  from { background-position: 14% 70%, 77% 30%, 46% 90%; }
  to { background-position: 18% -30rem, 72% -42rem, 51% -58rem; }
}

@keyframes sparks-sway {
  from { transform: translate3d(-2.5%, 1%, 0) rotate(-1deg); }
  to { transform: translate3d(3%, -2%, 0) rotate(1.4deg); }
}

@keyframes ambient-orbit {
  to { transform: rotate(360deg); }
}

@keyframes aurora-wander {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  48% { transform: translate3d(3%, 1%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.03); }
}

@keyframes forge-orbit {
  to { transform: rotate(360deg); }
}

@keyframes forge-breathe {
  from { transform: scale(.96) rotate(-2deg); opacity: .42; }
  to { transform: scale(1.06) rotate(3deg); opacity: .78; }
}

@keyframes ignite {
  0% { transform: scale(.92); filter: brightness(2); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@keyframes shuffle-forge {
  0% { filter: brightness(1); }
  42% { filter: brightness(1.28); }
  100% { filter: brightness(1); }
}

@keyframes shuffle-orb-a {
  0% { scale: 1; rotate: 0deg; opacity: 1; }
  38% { scale: .68; rotate: -28deg; opacity: .72; }
  72% { scale: 1.1; rotate: 8deg; opacity: 1; }
  100% { scale: 1; rotate: 0deg; opacity: 1; }
}

@keyframes shuffle-orb-b {
  0% { scale: 1; rotate: 0deg; opacity: 1; }
  38% { scale: .68; rotate: 28deg; opacity: .72; }
  72% { scale: 1.1; rotate: -8deg; opacity: 1; }
  100% { scale: 1; rotate: 0deg; opacity: 1; }
}

@keyframes shuffle-flare {
  0% { opacity: .2; scale: .78; rotate: -8deg; }
  46% { opacity: .92; scale: 1.08; rotate: 7deg; }
  100% { opacity: .68; scale: 1; rotate: 0deg; }
}

@keyframes selected-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}

@keyframes hot-flow {
  to { stroke-dashoffset: -50; }
}

@keyframes spark-flow {
  to { stroke-dashoffset: -17; }
}

@keyframes trail-tip-pulse {
  from { r: 7px; opacity: .78; }
  to { r: 11px; opacity: 1; }
}

@media (min-width: 64rem) and (orientation: landscape) {
  .game-shell {
    width: min(96vw, 94rem);
    min-height: calc(100dvh - var(--global-bar-height));
    padding: .8rem 1rem 1rem;
  }

  .status-strip {
    gap: .75rem;
    margin-bottom: .8rem;
  }

  .status-strip > div {
    min-height: 4.65rem;
    padding: .5rem .75rem;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    border-radius: .9rem;
  }

  .status-label {
    font-size: .78rem;
  }

  .status-strip strong {
    font-size: 1.55rem;
  }

  .forge {
    min-height: 0;
    grid-template-columns: minmax(20rem, .72fr) minmax(38rem, 1.28fr);
    align-items: stretch;
    gap: 1rem;
  }

  .checklist-panel {
    position: sticky;
    top: calc(var(--global-bar-height) + .8rem);
    min-height: calc(100dvh - var(--global-bar-height) - 7.7rem);
    max-height: calc(100dvh - var(--global-bar-height) - 1.6rem);
    padding: 1.2rem;
    align-content: start;
    overflow-y: auto;
  }

  .checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    align-content: center;
    flex: 1 0 auto;
    gap: .8rem;
  }

  .word-slot {
    align-self: start;
    padding: .55rem;
  }

  .slot-tile {
    width: clamp(2rem, 2.7vw, 3rem);
    font-size: clamp(1rem, 1.55vw, 1.45rem);
  }

  .word-slot[data-letter-count="7"] .slot-tile,
  .word-slot[data-letter-count="8"] .slot-tile,
  .word-slot[data-letter-count="9"] .slot-tile,
  .word-slot[data-letter-count="10"] .slot-tile,
  .word-slot[data-letter-count="11"] .slot-tile,
  .word-slot[data-letter-count="12"] .slot-tile {
    width: clamp(1.55rem, 1.9vw, 2.25rem);
    font-size: clamp(.8rem, 1.05vw, 1.12rem);
  }

  .bonus-row {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 1rem;
  }

  .bonus-row strong {
    font-size: 1.55rem;
  }

  .wheel-panel {
    min-height: calc(100dvh - var(--global-bar-height) - 7.7rem);
    max-height: calc(100dvh - var(--global-bar-height) - 1.6rem);
    padding: .7rem 1rem .9rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    overflow: hidden;
  }

  .board-tools {
    position: static;
    grid-row: 1;
    padding: 0 0 .15rem;
  }

  .board-tool {
    min-height: 3rem;
    padding: .5rem .9rem;
    font-size: 1rem;
  }

  .board-tool-help {
    width: 3rem;
    padding: 0;
  }

  .wheel-wrap {
    grid-row: 2;
    width: min(100%, var(--wheel-height, 34rem));
    height: var(--wheel-height, 34rem);
    min-height: 0;
    aspect-ratio: 1;
  }

  .current-word {
    width: min(68%, 24rem);
    min-height: 3.2rem;
    font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  }

  .feedback {
    grid-row: 3;
    min-height: 2.25rem;
    margin: .1rem .3rem;
    font-size: 1rem;
  }

  .wheel-actions {
    grid-row: 4;
    width: min(100%, 42rem);
    margin: 0 auto;
  }

  .wheel-actions .secondary-button {
    min-height: 3.8rem;
    font-size: 1.15rem;
  }

  .text-button {
    grid-row: 5;
    min-height: 2.3rem;
    font-size: .9rem;
  }

  .spark-trail-glow { stroke-width: 44px; }
  .spark-trail-core { stroke-width: 18px; }
  .spark-trail-hot { stroke-width: 5px; }
  .spark-trail-embers { stroke-width: 3px; }
}

@media (max-width: 63.99rem), (orientation: portrait) {
  .game-shell {
    width: 100%;
    padding-inline: .28rem;
  }

  .site-footer {
    display: none;
  }
}

/* v0.6.0 — Lexapyrin yhteinen mobiili-UI-standardi, osat 1–3 */
@media (max-width: 63.99rem), (orientation: portrait) {
  .status-strip {
    gap: 8.8px;
    margin-bottom: 8.8px;
    padding-top: 13px;
  }

  .status-strip > div {
    min-height: 94.4px;
    padding: 18px 3px 10px;
    gap: 4px;
    border-width: 1.2px;
    border-radius: 16px;
  }

  .status-label {
    max-width: calc(100% - 12px);
    padding-inline: 5.8px;
    font-size: 26px;
    font-weight: 850;
  }

  .status-strip strong {
    font-size: 39.2px;
    font-weight: 950;
  }

  .checklist-panel {
    min-height: 112px;
    padding: 16px;
    border-width: 1.2px;
    border-radius: 19.2px;
  }

  .checklist-grid {
    gap: 6.7px 8px;
  }

  .word-slot {
    flex: 0 0 auto;
    padding: 6.7px 8px;
    gap: 6.7px;
    border-width: 1.2px;
    border-radius: 14.1px;
  }

  .slot-tile {
    width: 75.5px;
    border-width: 1.2px;
    border-radius: 10.6px;
    font-size: 27.2px;
    font-weight: 950;
  }

  .word-slot[data-letter-count="7"] .slot-tile,
  .word-slot[data-letter-count="8"] .slot-tile {
    width: 56px;
    font-size: 25px;
  }

  .word-slot[data-letter-count="9"] .slot-tile,
  .word-slot[data-letter-count="10"] .slot-tile,
  .word-slot[data-letter-count="11"] .slot-tile,
  .word-slot[data-letter-count="12"] .slot-tile {
    width: 43px;
    font-size: 22px;
  }

  .bonus-row {
    margin-top: 9.9px;
    gap: 7.2px;
    font-size: 32px;
    font-weight: 750;
  }

  .bonus-row strong {
    font-size: 32px;
    font-weight: 950;
  }

  .close-button {
    width: 75.5px;
    height: 75.5px;
    border-width: 3px;
    font-size: 48px;
  }

  .level-modal {
    width: 100%;
    max-width: 100%;
    padding:
      max(16px, env(safe-area-inset-top))
      16px
      max(16px, env(safe-area-inset-bottom));
    border-width: 1.2px;
  }

  .level-modal .modal-header {
    margin-bottom: 14.4px;
    gap: 16px;
  }

  .level-modal .modal-header h2 {
    margin-top: 2px;
    font-size: 44.8px;
    line-height: 1.08;
  }

  .level-modal .eyebrow {
    font-size: 32px;
  }

  .level-modal .jump-form {
    margin-bottom: 14.4px;
  }

  .level-modal .jump-form label {
    margin-bottom: 5.6px;
    font-size: 32px;
  }

  .level-modal .jump-form > div {
    gap: 8px;
  }

  .level-modal .jump-form input,
  .level-modal .jump-form button {
    min-height: 64px;
    font-size: 32px;
  }

  .level-modal .jump-form input {
    padding: 8px 13px;
    border-width: 1.2px;
    border-radius: 12.8px;
  }

  .level-modal .jump-form button {
    padding-inline: 6.1px;
    border-width: 1.2px;
    border-radius: 16px;
  }

  .level-groups {
    min-height: 0;
    padding: 5.1px .8px 12.8px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .level-range-group,
  .level-batch-group {
    margin: 0 0 8px;
  }

  .level-range-summary,
  .level-batch-summary {
    min-height: 64px;
    padding: 8px 48px 8px 16px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1.2px solid var(--line);
    color: var(--text);
    background:
      linear-gradient(180deg, rgba(255, 176, 58, .09), rgba(255, 255, 255, .02)),
      rgba(22, 12, 8, .96);
    font-size: 32px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
  }

  .level-range-summary {
    min-height: 75.5px;
    border-radius: 16px;
    color: var(--gold);
    font-size: 36px;
  }

  .level-batch-summary {
    border-radius: 12.8px;
  }

  .level-range-summary::-webkit-details-marker,
  .level-batch-summary::-webkit-details-marker {
    display: none;
  }

  .level-range-summary::after,
  .level-batch-summary::after {
    position: absolute;
    right: 16px;
    top: 50%;
    translate: 0 -50%;
    content: "⌄";
    color: var(--amber);
    font-size: 36px;
    line-height: 1;
    transition: rotate .18s ease;
  }

  .level-range-group[open] > .level-range-summary::after,
  .level-batch-group[open] > .level-batch-summary::after {
    rotate: 180deg;
  }

  .level-batch-list {
    padding: 8px 0 0 16px;
  }

  .level-batch-group[open] > .level-batch-summary {
    border-color: var(--line-strong);
  }

  .level-modal .level-grid {
    padding: 7.7px .8px 12.8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7.7px;
    overflow: visible;
  }

  .level-modal .level-card {
    position: relative;
    min-width: 0;
    min-height: 102.4px;
    padding: 8.8px 1.9px;
    display: grid;
    align-content: center;
    justify-items: center;
    border-width: 1.2px;
    border-radius: 12px;
  }

  .level-modal .level-card .level-number {
    font-size: 32px;
    font-weight: 950;
    line-height: 1;
  }

  .level-modal .level-card .level-stars {
    min-height: 40px;
    margin-top: 6.1px;
    font-size: 40px;
    line-height: 1;
    white-space: nowrap;
  }

  .level-lock {
    position: relative;
    width: 40px;
    height: 40px;
    margin-top: 6.1px;
    display: block !important;
  }

  .level-lock::before {
    position: absolute;
    left: 9px;
    top: 1px;
    width: 22px;
    height: 22px;
    border: 4px solid currentColor;
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    content: "";
  }

  .level-lock::after {
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 30px;
    height: 23px;
    border: 3px solid currentColor;
    border-radius: 5px;
    content: "";
    background:
      radial-gradient(circle at 50% 46%, currentColor 0 3px, transparent 3.5px);
  }

  .level-badge {
    position: absolute;
    z-index: 1;
    top: -7px;
    right: 8px;
    min-width: 34px;
    height: 34px;
    padding-inline: 6px;
    display: grid !important;
    place-items: center;
    border: 1.2px solid rgba(255, 202, 104, .72);
    border-radius: 999px 999px 999px 7px;
    color: #281104;
    background: linear-gradient(145deg, #ffe09a, var(--amber));
    box-shadow: 0 5px 13px rgba(0, 0, 0, .38);
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
  }

  .level-badge[data-tier="rauta"] {
    color: #1c1714;
    background: linear-gradient(145deg, #dbd0c8, #81756e);
  }

  .level-badge[data-tier="teräs"] {
    color: #11191d;
    background: linear-gradient(145deg, #e0edf2, #72909e);
  }

  .level-badge[data-tier="kulta"] {
    color: #2a1600;
    background: linear-gradient(145deg, #fff0a8, #e8a319);
  }

  .level-badge[data-tier="obsidiaani"] {
    color: #fff4e7;
    background: linear-gradient(145deg, #6d4b70, #171018);
  }

  .level-card:disabled {
    opacity: .42;
  }

  .level-batch-status {
    grid-column: 1 / -1;
    min-height: 75.5px;
    margin: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 32px;
    text-align: center;
  }

  .help-modal {
    width: min(calc(100% - 32px), 849.3px);
    max-height: min(calc(100dvh - 32px), 1086px);
    padding: 24px;
    border-width: 1.2px;
    border-radius: 20px;
  }

  .help-modal .modal-header {
    margin-bottom: 14.4px;
  }

  .help-modal .eyebrow {
    font-size: 26px;
  }

  .help-modal h2 {
    font-size: 32.5px;
  }

  .help-content {
    gap: 11.5px;
  }

  .rule-row {
    grid-template-columns: 53px 1fr;
    gap: 10.9px;
  }

  .rule-row > span {
    width: 53px;
    font-size: 32px;
  }

  .rule-row p {
    margin-block: 2.9px;
    font-size: 32px;
    line-height: 1.5;
  }

  .help-content .primary-button {
    min-height: 56px;
    border-width: 1.2px;
    border-radius: 16px;
    font-size: 32px;
  }
}

@media (max-width: 35rem) {
  .status-strip > div {
    min-height: 4.75rem;
    padding-inline: .12rem;
  }

  .status-label {
    font-size: clamp(.7rem, 3.2vw, .88rem);
  }

  .status-strip strong {
    font-size: clamp(1.25rem, 5.8vw, 1.72rem);
  }

  .checklist-panel {
    min-height: 6.5rem;
    padding-inline: .4rem;
  }

  .board-tool {
    min-height: 3.25rem;
    padding-inline: .72rem;
  }

  .board-tool-help {
    width: 3.25rem;
    padding: 0;
  }

  .wheel-wrap {
    height: var(--wheel-height, 25rem);
    min-height: var(--wheel-height, 25rem);
  }
}

@media (max-width: 30rem) {
  .complete-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .completion-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* v0.5.1 — mobiilin kenttävalikko, tulosruutu ja kehysotsikot */
@media (max-width: 63.99rem), (orientation: portrait) {
  .status-strip {
    padding-top: .62rem;
  }

  .status-strip > div {
    position: relative;
    min-height: clamp(5.9rem, 11dvh, 7rem);
    padding: 1.08rem .14rem .55rem;
    overflow: visible;
  }

  .status-label {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 0;
    width: max-content;
    max-width: calc(100% - .45rem);
    padding: 0 .36rem;
    translate: -50% -50%;
    overflow: hidden;
    color: #f2d7b4;
    background: #130a06;
    font-size: clamp(.76rem, 3.3vw, 1rem);
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .status-strip strong {
    font-size: clamp(1.75rem, 7.5vw, 2.45rem);
  }

  .level-modal {
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding:
      max(1rem, env(safe-area-inset-top))
      clamp(.55rem, 2.5vw, 1rem)
      max(1rem, env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 0;
  }

  .level-modal[open] {
    display: flex;
    flex-direction: column;
  }

  .level-modal .modal-header {
    flex: 0 0 auto;
  }

  .level-modal .modal-header h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .level-modal .eyebrow,
  .level-modal .jump-form label {
    font-size: clamp(.92rem, 3.8vw, 1.18rem);
  }

  .level-modal .jump-form input,
  .level-modal .jump-form button {
    min-height: 4rem;
    font-size: clamp(1.18rem, 4.7vw, 1.45rem);
  }

  .level-modal .level-grid {
    min-height: 0;
    padding: .32rem .05rem .8rem;
    flex: 1 1 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.28rem, 1.25vw, .48rem);
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .level-modal .level-card {
    min-width: 0;
    min-height: clamp(5.25rem, 11dvh, 6.4rem);
    padding: .55rem .12rem;
    border-radius: .75rem;
  }

  .level-modal .level-card strong {
    font-size: clamp(1.3rem, 5.7vw, 1.75rem);
    line-height: 1;
  }

  .level-modal .level-card .level-tier {
    margin-top: .35rem;
    overflow: hidden;
    font-size: clamp(.66rem, 2.75vw, .84rem);
    text-overflow: ellipsis;
  }

  .level-modal .level-card .level-stars {
    margin-top: .38rem;
    font-size: clamp(.82rem, 3.4vw, 1.05rem);
  }

  .level-modal .load-more {
    flex: 0 0 auto;
  }

  .complete-modal {
    inset: 0;
    width: 100dvw;
    min-height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    padding:
      max(1rem, env(safe-area-inset-top))
      clamp(.7rem, 3vw, 1.25rem)
      max(1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 0;
  }

  .complete-modal[open] {
    justify-content: flex-start;
  }

  .complete-modal .completion-mark {
    width: clamp(5rem, 21vw, 7rem);
    margin-bottom: .55rem;
    font-size: clamp(2.3rem, 9vw, 3.5rem);
  }

  .complete-modal > .eyebrow {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
    line-height: 1.1;
  }

  .complete-modal h2 {
    margin-top: .55rem;
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .complete-modal .earned-stars {
    margin: .55rem 0 .8rem;
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .complete-modal .complete-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem .65rem;
    margin: .9rem 0 1rem;
  }

  .complete-modal .complete-stats div {
    position: relative;
    min-height: clamp(6.7rem, 13dvh, 7.8rem);
    padding: 1.3rem .35rem .55rem;
    overflow: visible;
    border-width: 1.5px;
  }

  .complete-modal .complete-stats span {
    position: absolute;
    left: 50%;
    top: 0;
    width: max-content;
    max-width: calc(100% - .8rem);
    padding: 0 .48rem;
    translate: -50% -50%;
    overflow: hidden;
    color: #f3d7b2;
    background: #160b07;
    font-size: clamp(.95rem, 4vw, 1.2rem);
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .complete-modal .complete-stats strong {
    margin: 0;
    font-size: clamp(2.05rem, 8.8vw, 2.85rem);
    line-height: 1;
  }

  .complete-modal #completeSummary {
    margin: .2rem auto .8rem;
    font-size: clamp(1.08rem, 4.5vw, 1.4rem);
  }

  .complete-modal .completion-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: auto;
  }

  .complete-modal .completion-actions button {
    min-width: 0;
    min-height: clamp(7rem, 15dvh, 8.5rem);
    padding: .65rem .25rem;
    overflow: hidden;
    font-size: clamp(1.35rem, 5.7vw, 2rem);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* v0.6.0 — pidetään hyväksytyt arvot viimeisinä mobiilikaskadissa */
@media (max-width: 63.99rem), (orientation: portrait) {
  .status-strip {
    gap: 8.8px;
    margin-bottom: 8.8px;
    padding-top: 13px;
  }

  .status-strip > div {
    min-height: 94.4px;
    padding: 18px 3px 10px;
    gap: 4px;
    border-width: 1.2px;
    border-radius: 16px;
  }

  .status-label {
    max-width: calc(100% - 12px);
    padding-inline: 5.8px;
    font-size: 26px;
    font-weight: 850;
  }

  .status-strip strong {
    font-size: 39.2px;
  }

  .board-tool {
    min-height: 75.5px;
    padding: 10px 16px;
    gap: 8px;
    border-width: 1.2px;
    border-radius: 16px;
    font-size: 32px;
  }

  .board-tool-help {
    width: 75.5px;
    padding: 0;
    border-width: 3px;
    border-radius: 50%;
    font-size: 48px;
  }

  .feedback {
    min-height: 48px;
    font-size: 32px;
  }

  .wheel-actions {
    gap: 8.8px;
  }

  .wheel-actions .secondary-button {
    min-height: 75.5px;
    border-width: 1.2px;
    border-radius: 16px;
    font-size: 32px;
  }

  .level-modal {
    padding:
      max(16px, env(safe-area-inset-top))
      16px
      max(16px, env(safe-area-inset-bottom));
    border-width: 1.2px;
  }

  .level-modal .modal-header {
    margin-bottom: 14.4px;
  }

  .level-modal .modal-header h2 {
    font-size: 44.8px;
  }

  .level-modal .eyebrow,
  .level-modal .jump-form label {
    font-size: 32px;
  }

  .level-modal .jump-form input,
  .level-modal .jump-form button {
    min-height: 64px;
    font-size: 32px;
  }

  .level-modal .level-grid {
    padding: 7.7px .8px 12.8px;
    flex: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7.7px;
    overflow: visible;
  }

  .level-modal .level-card {
    min-height: 102.4px;
    padding: 8.8px 1.9px;
    border-width: 1.2px;
    border-radius: 12px;
  }

  .level-modal .level-card .level-number {
    font-size: 32px;
  }

  .level-modal .level-card .level-stars {
    min-height: 40px;
    margin-top: 6.1px;
    font-size: 40px;
  }

  .report-modal {
    width: min(calc(100% - 32px), 849.3px);
    max-height: min(calc(100dvh - 32px), 1086px);
    padding: 24px;
    border-width: 1.2px;
    border-radius: 20px;
  }

  .report-modal .modal-header {
    margin-bottom: 14.4px;
  }

  .report-modal .eyebrow {
    font-size: 26px;
  }

  .report-modal h2 {
    font-size: 32.5px;
  }

  .report-form {
    gap: 16px;
  }

  .report-form label {
    font-size: 32px;
  }

  .report-form select,
  .report-form textarea {
    margin-top: 6px;
    padding: 12px 13px;
    border-width: 1.2px;
    border-radius: 12.8px;
    font-size: 32px;
  }

  .report-form select {
    min-height: 64px;
  }

  .report-form .primary-button {
    min-height: 56px;
    border-width: 1.2px;
    border-radius: 16px;
    font-size: 32px;
  }
}
