:root {
  --paper: #fff8fb;
  --paper-soft: #f8fbff;
  --ink: #17202a;
  --ink-soft: #3e4854;
  --quiet: #66717f;
  --line: rgba(23, 32, 42, 0.1);
  --wine: #ff4f8b;
  /* Higher-contrast accent relative to the page background: darker than --wine
     in day theme, lighter than --wine in night theme. Not "darker pink". */
  --wine-deep: #d93470;
  --sage: #26c6a4;
  --rose: #ff8a5b;
  --sky: #61b7ff;
  --lavender: #8977ff;
  --cream: #ffffff;
  --gold: #ffd45c;
  --text: #17202a;
  --muted: #66717f;
  /* Radius scale. Use these tokens instead of ad-hoc px values so corners stay
     consistent and nest correctly (inner radius steps down from outer). */
  --r-sm: 8px;   /* chips, tags, inputs, small controls */
  --r-md: 14px;  /* default: buttons, small cards */
  --r-lg: 18px;  /* cards, menus, panels */
  --r-xl: 22px;  /* modals, large surfaces */
  --r-pill: 999px;
  /* Minimum comfortable tap target: 44px (iOS HIG) floor, 48px (Android Material) on touch devices. */
  --tap-min: 44px;
  --hud-height: clamp(48px, 6dvh, 56px);
  --pad-height: clamp(128px, 16dvh, 166px);
  --pad-width: clamp(198px, 56vw, 238px);
  --button-size: clamp(50px, 6.4dvh, 58px);
  --pad-edge-overhang: calc(var(--button-size) * 0.08);
  --pad-drop: clamp(10px, 1.6dvh, 18px);
  --pad-split: 0px;
  --gap: clamp(6px, 1dvh, 10px);
  --outer-pad-x: clamp(8px, 2.4vw, 16px);
  --outer-pad-y: clamp(6px, 1dvh, 12px);
  --app-height: 100svh;
  --board-width: 100%;
  --board-height: 100%;
  --reveal-modal-left: 50%;
  --reveal-modal-bottom: 18px;
  --hud-surface: rgba(255, 255, 255, 0.82);
  --panel-surface: rgba(255, 255, 255, 0.92);
  --control-surface: linear-gradient(145deg, #ffffff 0%, #fff5f8 48%, #f3fbff 100%);
  --canvas-shadow: none;
  --progress-fill: #26c6a4;
  --progress-text: #0c7f66;
  --game-border: #ff4f8b;
  --game-border-rgb: 255 79 139;
  /* Canvas palette. game.js reads these once per theme change — keep the board
     colors here so the canvas can never drift from the UI theme. */
  --board-bg-0: #fff8fb;
  --board-bg-1: #f8fbff;
  --board-bg-2: #fffaf5;
  --board-grid: rgba(62, 72, 84, 0.07);
  --board-veil: rgba(255, 248, 251, 0.86);
  --border-glow: rgba(255, 79, 139, 0.22);
  --trail-outer: rgba(255, 79, 139, 0.36);
  --trail-core: #ffd45c;
  --trail-glow: rgba(255, 212, 92, 0.5);
  --enemy-core: #ff6b9f;
  --enemy-edge: #9f1f4a;
  --enemy-glow: rgba(255, 79, 139, 0.32);
  --player-core: #26c6a4;
  --player-edge: #61b7ff;
  --player-fill: #61b7ff;
  --player-glow: rgba(38, 198, 164, 0.28);
  --player-aura: rgba(38, 198, 164, 0.18);
  --capture-flash: #ff7aa6;
  --capture-sweep: rgba(255, 255, 255, 0.7);
  --pass-heart-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e3122d' d='M16 28.2 13.78 26.14C5.88 18.82 1 14.28 1 8.55 1 3.84 4.68.5 9.1.5c2.58 0 5.08 1.2 6.9 3.08C17.82 1.7 20.32.5 22.9.5 27.32.5 31 3.84 31 8.55c0 5.73-4.88 10.27-12.78 17.59L16 28.2Z'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Keep keyboard focus visible without using decorative shadows. */
:is(.settings-support-button, .settings-theme-action, .settings-help-row,
    .settings-account-row, .settings-share-row, .pass-pack,
    .pass-actions button, .drop-card):focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

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

/* Touch devices (phones/tablets) get the larger Android Material 48px target.
   Pointer devices keep the 44px iOS floor so controls don't feel oversized. */
@media (pointer: coarse) {
  :root {
    --tap-min: 48px;
  }
}

.hidden {
  display: none !important;
}

html,
body {
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 79, 139, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(97, 183, 255, 0.18), transparent 26%),
    radial-gradient(circle at 66% 84%, rgba(38, 198, 164, 0.14), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 48%, #fffaf5 100%);
  color: var(--text);
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
}

body {
  position: fixed;
  inset: 0;
}

body[data-theme="night"] {
  --paper: #080b12;
  --paper-soft: #121722;
  --ink: #f7fbff;
  --ink-soft: #dce8f4;
  --quiet: #95a3b8;
  --line: rgba(142, 161, 190, 0.26);
  --wine: #f06f9f;
  --wine-deep: #ffb4cf;
  --sage: #64e6c6;
  --rose: #ff9b6b;
  --sky: #7bbcff;
  --lavender: #a99cff;
  --cream: #121722;
  --gold: #ffd45c;
  --text: #e9f0f8;
  --muted: #a8b4c7;
  --hud-surface: rgba(18, 23, 34, 0.84);
  --panel-surface: rgba(18, 23, 34, 0.94);
  --control-surface: linear-gradient(145deg, #343c4b 0%, #252b37 52%, #1d2430 100%);
  --canvas-shadow: none;
  --progress-fill: #8ef0d3;
  --progress-text: #8ef0d3;
  --game-border: #f06f9f;
  --game-border-rgb: 240 111 159;
  --board-bg-0: #0d1019;
  --board-bg-1: #141827;
  --board-bg-2: #101723;
  --board-grid: rgba(142, 161, 190, 0.1);
  --board-veil: rgba(13, 16, 25, 0.78);
  --border-glow: rgba(240, 111, 159, 0.32);
  --trail-outer: rgba(240, 111, 159, 0.34);
  --trail-core: #ffd36a;
  --trail-glow: rgba(255, 211, 106, 0.44);
  --enemy-core: #ffb36f;
  --enemy-edge: #e0525f;
  --enemy-glow: rgba(255, 155, 107, 0.44);
  --player-core: #8ef0d3;
  --player-edge: #7bbcff;
  --player-fill: #2fcdb0;
  --player-glow: rgba(142, 240, 211, 0.44);
  --player-aura: rgba(142, 240, 211, 0.22);
  --capture-flash: #8ef0d3;
  --capture-sweep: rgba(142, 240, 211, 0.36);
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 188, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(142, 240, 211, 0.1), transparent 28%),
    radial-gradient(circle at 68% 86%, rgba(240, 111, 159, 0.09), transparent 32%),
    linear-gradient(180deg, #070a11 0%, #0d111b 50%, #090d14 100%);
}

:root[data-theme="night"] {
  color-scheme: dark;
  --paper: #080b12;
  --paper-soft: #121722;
  --ink: #f7fbff;
  --ink-soft: #dce8f4;
  --quiet: #95a3b8;
  --line: rgba(142, 161, 190, 0.26);
  --wine: #f06f9f;
  --wine-deep: #ffb4cf;
  --sage: #64e6c6;
  --rose: #ff9b6b;
  --sky: #7bbcff;
  --lavender: #a99cff;
  --cream: #121722;
  --gold: #ffd45c;
  --text: #e9f0f8;
  --muted: #a8b4c7;
  --hud-surface: rgba(18, 23, 34, 0.84);
  --panel-surface: rgba(18, 23, 34, 0.94);
  --control-surface: linear-gradient(145deg, #343c4b 0%, #252b37 52%, #1d2430 100%);
  --canvas-shadow: none;
  --progress-fill: #8ef0d3;
  --progress-text: #8ef0d3;
  --game-border: #f06f9f;
  --game-border-rgb: 240 111 159;
  --board-bg-0: #0d1019;
  --board-bg-1: #141827;
  --board-bg-2: #101723;
  --board-grid: rgba(142, 161, 190, 0.1);
  --board-veil: rgba(13, 16, 25, 0.78);
  --border-glow: rgba(240, 111, 159, 0.32);
  --trail-outer: rgba(240, 111, 159, 0.34);
  --trail-core: #ffd36a;
  --trail-glow: rgba(255, 211, 106, 0.44);
  --enemy-core: #ffb36f;
  --enemy-edge: #e0525f;
  --enemy-glow: rgba(255, 155, 107, 0.44);
  --player-core: #8ef0d3;
  --player-edge: #7bbcff;
  --player-fill: #2fcdb0;
  --player-glow: rgba(142, 240, 211, 0.44);
  --player-aura: rgba(142, 240, 211, 0.22);
  --capture-flash: #8ef0d3;
  --capture-sweep: rgba(142, 240, 211, 0.36);
}

:root[data-theme="night"] body:not([data-theme="night"]) {
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 188, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(142, 240, 211, 0.1), transparent 28%),
    radial-gradient(circle at 68% 86%, rgba(240, 111, 159, 0.09), transparent 32%),
    linear-gradient(180deg, #070a11 0%, #0d111b 50%, #090d14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 40%, transparent 78%),
    radial-gradient(circle at 48% 18%, rgba(255, 79, 139, 0.045), transparent 38%);
}

body[data-theme="night"]::before {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 40%, transparent 78%),
    radial-gradient(circle at 48% 18%, rgba(123, 188, 255, 0.08), transparent 38%);
}

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

button.is-loading {
  position: relative;
  color: transparent !important;
  cursor: wait;
}

button.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  color: #ffffff;
  animation: loading-spin 760ms linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-block,
.loading-line,
.loading-pill {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.18), rgba(97, 183, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
  background-size: 100% 100%, 100% 100%;
}

.loading-copy {
  display: grid;
  align-content: center;
  gap: 9px;
}

.loading-line {
  height: 12px;
  border-radius: var(--r-pill);
}

.loading-line.short {
  width: 38%;
}

.loading-line.mid {
  width: 58%;
}

.loading-line.long {
  width: 82%;
}

.loading-pill {
  width: 92px;
  height: 34px;
  border-radius: var(--r-pill);
}

a {
  color: inherit;
  text-decoration: none;
}

.play-legal {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.play-legal a:hover {
  color: var(--text);
}

.shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  padding:
    max(12px, env(safe-area-inset-top))
    var(--outer-pad-x)
    max(var(--outer-pad-y), env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  align-items: stretch;
}

.shell.is-selecting {
  touch-action: pan-y;
}

.shell.is-overlay-scrollable {
  touch-action: pan-y;
}

.shell.is-selecting .game-card {
  visibility: hidden;
}

.game-card {
  position: relative;
  width: min(100%, 600px);
  height: 100%;
  display: grid;
  grid-template-rows: var(--hud-height) var(--board-height) var(--pad-height);
  gap: var(--gap);
  align-content: start;
}

.shell.pad-collapsed .game-card {
  grid-template-rows: var(--hud-height) var(--board-height) 0;
}

.game-card > .hud {
  width: var(--board-width);
  justify-self: center;
  min-width: 0;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 40px 34px minmax(82px, 1fr) 50px 54px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--hud-surface);
  border-radius: var(--r-md);
  box-shadow: none;
  backdrop-filter: blur(22px);
}

body[data-theme="night"] .hud {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.menu-button,
.theme-button,
.controls-toggle,
.settings-button,
.menu-icon-action,
.menu-action {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.menu-button {
  width: 40px;
  height: 40px;
  position: relative;
  display: block;
  border: 0;
  border-radius: var(--r-md);
  color: var(--wine);
  background: rgb(var(--game-border-rgb) / 0.14);
  box-shadow: none;
  transition: background 140ms ease;
}

.menu-button:active {
  background: rgb(var(--game-border-rgb) / 0.24);
}

body[data-theme="night"] .menu-button {
  color: var(--wine);
  background: rgb(var(--game-border-rgb) / 0.16);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  transform-origin: center;
  transition: transform 150ms ease, top 150ms ease, opacity 120ms ease;
}

.menu-button::before {
  top: 13px;
}

.menu-button span {
  top: 19px;
}

.menu-button::after {
  top: 25px;
}

.menu-button.is-open::before {
  top: 19px;
  transform: rotate(45deg);
}

.menu-button.is-open span {
  opacity: 0;
}

.menu-button.is-open::after {
  top: 19px;
  transform: rotate(-45deg);
}

.controls-toggle {
  width: 44px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
}

.settings-button {
  width: 44px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--ink);
  box-shadow: none;
}

.settings-button svg,
.controls-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.controls-toggle svg {
  width: 22px;
  height: 22px;
}

body[data-theme="night"] .controls-toggle {
  color: #fff8fb;
  background: rgb(var(--game-border-rgb) / 0.1);
  box-shadow: none;
}

body[data-theme="night"] .settings-button {
  color: #fff8fb;
  background: rgb(var(--game-border-rgb) / 0.1);
  box-shadow: none;
}

.theme-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
  box-shadow: none;
}

body[data-theme="night"] .theme-button {
  color: #fff8fb;
  background: rgb(var(--game-border-rgb) / 0.1);
  box-shadow: none;
}

.level {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 79, 139, 0.14);
  color: var(--wine);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0;
}

body[data-theme="night"] .level {
  background: rgba(169, 156, 255, 0.16);
  color: var(--lavender);
}

.meter {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(23, 32, 42, 0.08);
  box-shadow: none;
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--progress-fill);
  box-shadow: none;
  transition: width 180ms ease-out;
}

.meter-target {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  box-shadow: none;
}

.reveal {
  width: 50px;
  text-align: right;
  color: var(--progress-text);
  font-weight: 650;
  font-size: 17px;
}

.retries {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.retries span {
  display: inline-block;
}

.retries span:first-child,
.menu-pass-heart,
.pass-pack span::before,
.pass-confirm strong::before {
  background: var(--pass-heart-icon) center / contain no-repeat;
  filter: none;
}

.retries span:first-child {
  position: relative;
  width: 1.48em;
  height: 1.18em;
  flex: 0 0 1.48em;
  display: inline-block;
}

.game-menu {
  position: absolute;
  top: calc(var(--hud-height) + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  margin: 0 auto;
  width: var(--board-width);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-lg);
  background: #fff8fb;
  box-shadow: none;
  contain: paint;
}

body[data-theme="night"] .game-menu {
  border-color: rgba(255, 255, 255, 0.16);
  background: #121722;
  box-shadow: none;
}

.game-menu.hidden {
  display: none;
}

.menu-action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
}

.menu-pass-action {
  flex: 0 0 auto;
  gap: 5px;
  border-color: rgba(240, 111, 159, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(240, 111, 159, 0.12)),
    rgba(255, 255, 255, 0.1);
}

.menu-pass-heart {
  width: 17px;
  height: 15px;
  display: inline-block;
}

.menu-drops-action {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 62px;
  padding-inline: 14px;
  font-size: 12px;
}

.game-menu .controls-toggle,
.game-menu .settings-button {
  flex: 0 0 44px;
}

.game-menu .controls-toggle {
  margin-left: 0;
}

.menu-account-action {
  flex: 0 0 auto;
}

.menu-account-action.is-authenticated {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}

.menu-account-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f8b, #ff8a5b);
  background-position: center 18%;
  background-size: cover;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.menu-icon-action {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
}

.board-wrap {
  position: relative;
  width: var(--board-width);
  height: var(--board-height);
  min-height: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: start;
  padding: 0;
  touch-action: none;
}

body.is-loading-play .board-wrap::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--wine);
  border-right-color: var(--sky);
  border-radius: 50%;
  filter: none;
  animation: loading-spin 760ms linear infinite;
}

body[data-theme="night"].is-loading-play .board-wrap::after {
  border-color: rgba(220, 232, 244, 0.22);
  border-top-color: var(--wine);
  border-right-color: var(--sky);
  box-shadow: none;
  filter: none;
}

body.is-loading-play #gameCanvas {
  opacity: 0.42;
}

#gameCanvas {
  width: var(--board-width);
  height: var(--board-height);
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: var(--r-xl);
  box-shadow: none;
  touch-action: none;
}

.pad {
  position: relative;
  width: var(--pad-width);
  height: var(--pad-height);
  justify-self: center;
  align-self: end;
  border-radius: var(--r-xl);
  touch-action: none;
  opacity: 1;
  transform: translateY(var(--pad-drop));
  transition: opacity 180ms ease, transform 180ms ease;
}

.shell.pad-left .pad {
  justify-self: start;
}

.shell.pad-center .pad {
  justify-self: center;
}

.shell.pad-right .pad {
  justify-self: end;
}

.shell.pad-collapsed .pad {
  height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

/* The result toast is positioned over the pad area; hide the pad while any
   result modal is up so buttons never peek around it. */
.shell.is-modal-open .pad {
  pointer-events: none;
  opacity: 0;
}

.play-hint,
.resume-overlay {
  position: absolute;
  inset: auto 0 18%;
  z-index: 6;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--r-pill);
  background: var(--panel-surface);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 650;
  animation: hint-in 260ms ease;
}

body[data-theme="night"] .play-hint,
body[data-theme="night"] .resume-overlay {
  border-color: rgba(255, 255, 255, 0.16);
}

.play-hint p {
  margin: 0;
}

.play-hint-dismiss {
  min-width: 44px;
  min-height: 44px;
  margin: -8px -10px -8px 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.play-hint-dismiss:hover,
.play-hint-dismiss:focus-visible {
  background: rgba(23, 32, 42, 0.08);
}

.play-hint-gesture {
  position: relative;
  flex: 0 0 34px;
  height: 22px;
}

.play-hint-gesture::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: var(--r-pill);
  background: rgb(var(--game-border-rgb) / 0.28);
}

.play-hint-gesture::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--wine);
  animation: hint-swipe 1400ms ease-in-out infinite;
}

.resume-overlay {
  cursor: pointer;
  color: var(--wine);
}

@keyframes hint-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hint-swipe {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }

  55% {
    transform: translateX(22px);
    opacity: 1;
  }

  70% {
    transform: translateX(22px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-hint,
  .resume-overlay {
    animation: none;
  }

  .play-hint-gesture::after {
    animation: none;
  }
}

.pad::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 79, 139, 0.12) 0 18%, transparent 19%),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 32, 42, 0.06) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(23, 32, 42, 0.06) 50%, transparent calc(50% + 0.5px)),
    rgba(255, 255, 255, 0.18);
  opacity: 1;
}

body[data-theme="night"] .pad::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(142, 240, 211, 0.1) 0 18%, transparent 19%),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(142, 161, 190, 0.12) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(142, 161, 190, 0.12) 50%, transparent calc(50% + 0.5px)),
    rgba(18, 23, 34, 0.76);
}

.pad::after {
  content: "";
  display: none;
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: transparent;
  transform: translateX(-50%);
}

.pad-button {
  position: absolute;
  z-index: 1;
  width: var(--button-size);
  height: var(--button-size);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: clamp(var(--r-md), 2dvh, var(--r-lg));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(248, 249, 246, 0.08)),
    var(--control-surface);
  box-shadow: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.pad-button::before {
  content: "";
  position: absolute;
  inset: calc(var(--button-size) * 0.265);
  background: var(--wine);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: none;
}

body[data-theme="night"] .pad-button {
  border-color: rgba(142, 161, 190, 0.26);
  box-shadow: none;
}

body[data-theme="night"] .pad-button::before {
  background: #f7fbff;
  filter: none;
}

.pad-button:active,
.pad-button.is-active {
  transform: translateY(2px) scale(0.98);
  box-shadow: none;
}

.pad-button.is-active {
  border-color: rgba(255, 79, 139, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 220, 231, 0.46)),
    var(--control-surface);
}

body[data-theme="night"] .pad-button.is-active {
  border-color: rgba(142, 240, 211, 0.46);
  box-shadow: none;
}

.up {
  left: calc((var(--pad-width) - var(--button-size)) / 2);
  top: max(var(--pad-edge-overhang), calc(var(--pad-split) * -1));
}

.down {
  left: calc((var(--pad-width) - var(--button-size)) / 2);
  bottom: var(--pad-edge-overhang);
}

.down::before {
  transform: rotate(180deg);
}

.left {
  left: var(--pad-edge-overhang);
  top: calc((var(--pad-height) - var(--button-size)) / 2);
}

.left::before {
  transform: rotate(-90deg);
}

.right {
  right: var(--pad-edge-overhang);
  top: calc((var(--pad-height) - var(--button-size)) / 2);
}

.right::before {
  transform: rotate(90deg);
}

.modal {
  position: fixed;
  left: 12px;
  right: 12px;
  top: auto;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 18px);
  max-width: 470px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--r-lg);
  background: var(--panel-surface);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transform: none;
  z-index: 20;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding:
    max(18px, env(safe-area-inset-top))
    16px
    max(18px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  align-items: center;
  overflow-y: auto;
  background: rgba(2, 8, 16, 0.58);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.settings-modal.hidden {
  display: none;
}

.pass-modal {
  z-index: 34;
}

.guest-gate {
  z-index: 42;
}

.settings-panel {
  width: min(100%, 420px);
  max-height: calc(var(--app-height) - max(36px, env(safe-area-inset-top)) - max(36px, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--paper-soft) 96%, #020810);
  box-shadow: none;
  touch-action: pan-y;
}

body[data-theme="night"] .settings-panel {
  background: #121722;
}

.pass-panel {
  width: min(100%, 390px);
}

.guest-gate-panel {
  width: min(100%, 390px);
}

.guest-gate-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.guest-gate-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--wine);
}

.guest-gate-check a {
  color: var(--wine-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guest-gate-exit {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.report-panel {
  width: min(100%, 430px);
}

.report-field {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
}

.report-field select,
.report-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 650;
}

.report-field select {
  min-height: 48px;
  padding-right: 44px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' fill='none' stroke='%233e4854' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 15px center / 18px 18px no-repeat,
    rgba(255, 255, 255, 0.76);
  appearance: none;
  -webkit-appearance: none;
}

.report-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.35;
}

.report-status {
  min-height: 18px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-header p {
  margin: 0 0 4px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#settingsModal .settings-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

#settingsModal .settings-header > div {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

#settingsModal .settings-close {
  grid-column: 3;
  justify-self: end;
}

.settings-title {
  margin: 0;
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.08;
}

.settings-close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.settings-close::before,
.settings-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
}

.settings-close::before {
  transform: rotate(45deg);
}

.settings-close::after {
  transform: rotate(-45deg);
}

.settings-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 620px) {
  .settings-modal {
    padding:
      max(14px, env(safe-area-inset-top))
      12px
      max(14px, env(safe-area-inset-bottom));
  }

  .settings-panel {
    max-height: calc(var(--app-height) - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  }
}

.settings-row {
  position: relative;
  min-height: 74px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.settings-pass-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  cursor: default;
}

.settings-pass-actions {
  justify-self: end;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.settings-support-button {
  min-height: 38px;
  width: min(34vw, 148px);
  min-width: 104px;
  padding: 0 14px;
  border: 1px solid rgba(255, 79, 139, 0.34);
  border-radius: var(--r-md);
  background:
    linear-gradient(145deg, rgba(255, 79, 139, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.settings-support-button:focus-visible,
.settings-support-button:hover {
  border-color: rgba(255, 79, 139, 0.54);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: none;
}

.settings-support-terms {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-support-terms:focus-visible,
.settings-support-terms:hover {
  color: var(--ink);
  outline: 0;
}

.settings-theme-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  cursor: default;
}

.settings-pad-position-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  cursor: default;
}

.pad-position-group {
  justify-self: end;
  min-width: 0;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(48px, 1fr));
  gap: 3px;
  border: 1px solid rgba(255, 79, 139, 0.24);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.pad-position-option {
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
}

.pad-position-option.is-selected {
  background:
    linear-gradient(145deg, rgba(255, 79, 139, 0.2), rgba(255, 79, 139, 0.08)),
    rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: none;
}

.pad-position-option:focus-visible,
.pad-position-option:hover {
  color: var(--ink);
  outline: 0;
}

.settings-help-row,
.settings-account-row,
.settings-share-row {
  color: var(--ink);
  text-decoration: none;
}

.settings-share-row {
  text-align: left;
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row strong {
  font-size: 16px;
  line-height: 1.2;
}

.settings-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.settings-theme-action {
  justify-self: end;
  min-width: 76px;
  padding: 0 14px;
  border: 1px solid rgba(255, 79, 139, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 79, 139, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.settings-theme-action:focus-visible,
.settings-theme-action:hover {
  border-color: rgba(255, 79, 139, 0.54);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: none;
}

.settings-help-row:focus-visible,
.settings-help-row:hover,
.settings-account-row:focus-visible,
.settings-account-row:hover,
.settings-share-row:focus-visible,
.settings-share-row:hover {
  outline: 0;
  border-color: rgba(255, 79, 139, 0.38);
  transform: translateY(-1px);
  box-shadow: none;
}

body[data-theme="night"] .settings-support-button,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-support-button {
  border-color: rgb(var(--game-border-rgb) / 0.34);
  background:
    linear-gradient(145deg, rgb(var(--game-border-rgb) / 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
}

body[data-theme="night"] .settings-support-button:focus-visible,
body[data-theme="night"] .settings-support-button:hover,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-support-button:focus-visible,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-support-button:hover {
  border-color: rgb(var(--game-border-rgb) / 0.54);
  box-shadow: none;
}

body[data-theme="night"] .pad-position-group,
:root[data-theme="night"] body:not([data-theme="day"]) .pad-position-group {
  border-color: rgb(var(--game-border-rgb) / 0.24);
}

body[data-theme="night"] .pad-position-option.is-selected,
:root[data-theme="night"] body:not([data-theme="day"]) .pad-position-option.is-selected {
  background:
    linear-gradient(145deg, rgb(var(--game-border-rgb) / 0.2), rgb(var(--game-border-rgb) / 0.08)),
    rgba(255, 255, 255, 0.12);
}

body[data-theme="night"] .settings-theme-action,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-theme-action {
  border-color: rgb(var(--game-border-rgb) / 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgb(var(--game-border-rgb) / 0.1)),
    rgba(255, 255, 255, 0.08);
}

body[data-theme="night"] .settings-theme-action:focus-visible,
body[data-theme="night"] .settings-theme-action:hover,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-theme-action:focus-visible,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-theme-action:hover {
  border-color: rgb(var(--game-border-rgb) / 0.54);
  box-shadow: none;
}

body[data-theme="night"] .settings-help-row:focus-visible,
body[data-theme="night"] .settings-help-row:hover,
body[data-theme="night"] .settings-account-row:focus-visible,
body[data-theme="night"] .settings-account-row:hover,
body[data-theme="night"] .settings-share-row:focus-visible,
body[data-theme="night"] .settings-share-row:hover,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-help-row:focus-visible,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-help-row:hover,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-account-row:focus-visible,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-account-row:hover,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-share-row:focus-visible,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-share-row:hover {
  border-color: rgb(var(--game-border-rgb) / 0.38);
}

.settings-share-row:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.settings-row-icon {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.share-row-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-status {
  min-height: 17px;
  margin: -4px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.pass-screen.hidden {
  display: none;
}

.pass-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pass-pack {
  min-height: 112px;
  padding: 13px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.pass-pack strong {
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 650;
  line-height: 1;
}

.pass-pack span {
  display: block;
  width: 100%;
  min-height: 34px;
  min-width: 0;
  color: var(--muted);
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 560;
  letter-spacing: 0.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
}

.pass-pack span::before,
.pass-confirm strong::before {
  content: "";
  display: inline-block;
}

.pass-pack span::before {
  width: 16px;
  height: 14px;
  margin: 0 auto 4px;
  display: block;
}

.pass-pack:focus-visible,
.pass-pack:hover {
  border-color: rgba(255, 79, 139, 0.34);
  outline: 0;
  box-shadow: none;
}

.pass-confirm {
  margin: 0 0 16px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 79, 139, 0.06)),
    rgba(255, 255, 255, 0.08);
  text-align: center;
}

.pass-confirm strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.08;
}

.pass-support-copy {
  max-width: 360px;
  margin: -4px auto 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  text-align: center;
}

.support-link {
  min-height: 42px;
  margin: 0 auto 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 79, 139, 0.34);
  border-radius: var(--r-pill);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 79, 139, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.pass-creator-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 79, 139, 0.72), rgba(255, 79, 139, 0.34)),
    rgba(255, 255, 255, 0.1);
  background-position: center 18%;
  background-size: cover;
  box-shadow: none;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.pass-creator-avatar.has-image {
  background-color: rgba(255, 255, 255, 0.1);
}

.support-note {
  margin: -4px 0 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
}

.support-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.38;
  text-align: center;
}

.support-note p + p {
  margin-top: 6px;
}

.support-note a {
  width: fit-content;
  margin: 10px auto 0;
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 560;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pass-confirm strong::before {
  width: 29px;
  height: 26px;
}

.pass-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 160px));
  gap: 10px;
  justify-content: center;
}

.pass-actions button {
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}

.pass-actions .secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.pass-actions .primary {
  background: linear-gradient(145deg, var(--wine) 0%, var(--rose) 100%);
  color: #ffffff;
  box-shadow: none;
}

body:not([data-theme="night"]) .pass-actions .primary {
  background: linear-gradient(145deg, var(--wine) 0%, var(--rose) 100%);
  color: #ffffff;
  box-shadow: none;
}

.pass-actions button:focus-visible,
.pass-actions button:hover {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: none;
}

.switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.switch-track {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: var(--r-pill);
  background: rgba(16, 32, 51, 0.18);
  box-shadow: none;
  transition: background 160ms ease;
}

.switch-track::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  transition: transform 160ms ease;
}

.switch-input:checked + .switch-track,
.switch-input[aria-checked="true"] + .switch-track {
  background: #ff4f8b;
  box-shadow: none;
}

body:not([data-theme="night"]) .switch-input:checked + .switch-track,
body:not([data-theme="night"]) .switch-input[aria-checked="true"] + .switch-track {
  background: #ff4f8b;
  box-shadow: none;
}

body[data-theme="night"] .support-link,
:root[data-theme="night"] body:not([data-theme="day"]) .support-link {
  border-color: rgb(var(--game-border-rgb) / 0.34);
  background:
    linear-gradient(145deg, rgb(var(--game-border-rgb) / 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

body[data-theme="night"] .pass-creator-avatar,
:root[data-theme="night"] body:not([data-theme="day"]) .pass-creator-avatar {
  background-image:
    linear-gradient(145deg, rgba(255, 79, 139, 0.72), rgb(var(--game-border-rgb) / 0.34));
}

body[data-theme="night"] .switch-input:checked + .switch-track,
body[data-theme="night"] .switch-input[aria-checked="true"] + .switch-track,
:root[data-theme="night"] body:not([data-theme="day"]) .switch-input:checked + .switch-track,
:root[data-theme="night"] body:not([data-theme="day"]) .switch-input[aria-checked="true"] + .switch-track {
  background: var(--game-border);
  box-shadow: none;
}

.switch-input:checked + .switch-track::before,
.switch-input[aria-checked="true"] + .switch-track::before {
  transform: translateX(24px);
}

.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 430px) {
  :root {
    --hud-height: clamp(46px, 5.6dvh, 54px);
    --pad-height: clamp(118px, 14.8dvh, 142px);
    --pad-width: min(62vw, 232px);
    --button-size: clamp(44px, 5.6dvh, 52px);
    --gap: 4px;
    --outer-pad-y: 4px;
  }

  .shell {
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .game-card {
    height: 100%;
    max-height: 100%;
    grid-template-rows: var(--hud-height) var(--board-height) var(--pad-height);
    align-content: start;
  }

  .board-wrap {
    justify-self: center;
  }

  .modal {
    grid-template-columns: 1fr;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 6px);
  }

  .modal.is-reveal:not(.is-complete) {
    left: var(--reveal-modal-left);
    right: auto;
    bottom: var(--reveal-modal-bottom);
    width: min(var(--pad-width), calc(100vw - 12px));
    max-width: 330px;
    min-height: 50px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border-radius: var(--r-lg);
    background: rgba(255, 248, 251, 0.72);
    box-shadow: none;
    transform: translateX(-50%);
  }

  body[data-theme="night"] .modal.is-reveal:not(.is-complete) {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(18, 23, 34, 0.72);
    box-shadow: none;
  }

  .modal.is-reveal:not(.is-complete) .modal-title {
    overflow: hidden;
    font-size: 14px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal.is-reveal:not(.is-complete) p {
    display: none;
  }

  .modal.is-reveal:not(.is-complete) .modal-actions {
    gap: 6px;
    justify-content: flex-end;
  }

  .modal.is-reveal:not(.is-complete) button {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hud {
    grid-template-columns: 40px 34px minmax(64px, 1fr) 48px 58px;
    gap: 6px;
  }

  .game-menu {
    grid-template-columns: 40px 40px 40px minmax(62px, 0.8fr) minmax(62px, 0.72fr) minmax(58px, 0.68fr);
    gap: 5px;
  }

  .controls-toggle,
  .settings-button {
    width: 40px;
  }

  .game-menu .controls-toggle,
  .game-menu .settings-button {
    flex-basis: 40px;
  }

  .menu-action {
    padding: 0 7px;
    font-size: 12px;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal button {
    flex: 1;
  }

  .settings-pad-position-row {
    grid-template-columns: 1fr;
  }

  .pad-position-group {
    justify-self: stretch;
  }

  .retries {
    width: 56px;
    padding-right: 8px;
  }
}

@media (max-width: 402px) {
  :root {
    --hud-height: clamp(44px, 5.4svh, 50px);
    --pad-height: clamp(110px, 13.6svh, 124px);
    --pad-width: clamp(190px, 54vw, 212px);
    --button-size: clamp(44px, 5.5svh, 50px);
    --pad-edge-overhang: calc(var(--button-size) * 0.04);
    --pad-drop: 0px;
    --gap: 2px;
    --outer-pad-x: clamp(2px, 1vw, 4px);
    --outer-pad-y: 2px;
  }
}

.drop-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  padding:
    max(10px, env(safe-area-inset-top))
    10px
    max(10px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: stretch;
  align-items: start;
  background:
    linear-gradient(180deg, #fff8fb 0%, #f8fbff 42%, #fffaf5 100%),
    #fffaf5;
  backdrop-filter: blur(18px);
  touch-action: pan-y;
  z-index: 5;
}

.drop-screen.hidden {
  display: none;
}

.drop-panel {
  width: min(100%, 1120px);
  max-height: calc(100svh - max(20px, env(safe-area-inset-top)));
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0 18px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  color: #17202a;
  scrollbar-width: none;
}

.drop-panel::-webkit-scrollbar {
  display: none;
}

.drop-brand {
  min-height: 44px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.drop-logo,
.drop-home-link {
  display: inline-flex;
  align-items: center;
  font-weight: 620;
}

.drop-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drop-logo {
  min-height: 44px;
  gap: 9px;
  font-size: 14px;
}

.drop-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4f8b, #ff8a5b);
  box-shadow: none;
}

.drop-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.drop-home-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: #fff;
  background: #17202a;
  font-size: 14px;
}

.drop-account-link.is-authenticated {
  width: 46px;
  min-width: 46px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.drop-account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f8b, #ff8a5b);
  background-position: center 18%;
  background-size: cover;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
}

.creator {
  margin: 0 0 4px;
  color: #ff4f8b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.creator-profile-badge {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #17202a;
  letter-spacing: 0;
  text-transform: none;
}

.creator-profile-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4f8b, #ff765e);
  background-position: center 18%;
  background-size: cover;
  font-size: 13px;
  font-weight: 650;
}

.creator-profile-badge strong,
.creator-profile-badge small {
  display: block;
}

.creator-profile-badge strong {
  color: #17202a;
  font-size: 16px;
  line-height: 1.1;
}

.creator-profile-badge small {
  margin-top: 2px;
  color: #6f7a86;
  font-size: 12px;
  font-weight: 560;
}

.drop-title {
  margin: 0;
  max-width: 760px;
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-weight: 640;
  font-size: 26px;
  line-height: 1.12;
}

.drop-copy {
  max-width: 640px;
  margin: 8px 0 12px;
  color: #3e4854;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 420;
}

.drop-controls {
  margin: 10px 0 12px;
  display: grid;
  gap: 8px;
}

.personal-discovery {
  display: grid;
  gap: 16px;
  margin: 4px 0 18px;
}

.personal-shelf {
  min-width: 0;
}

.personal-shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.personal-shelf-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.personal-shelf-heading a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.personal-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 42%);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.personal-track::-webkit-scrollbar {
  display: none;
}

.personal-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  scroll-snap-align: start;
  text-decoration: none;
}

.personal-card-cover {
  width: 66px;
  aspect-ratio: 1;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.14), rgba(97, 183, 255, 0.15)),
    var(--personal-cover, none) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.personal-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.personal-card-copy strong,
.personal-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-card-copy strong {
  font-size: 14px;
}

.personal-card-copy span {
  color: #66717e;
  font-size: 12px;
}

.drop-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  scrollbar-width: none;
}

.drop-sort-tabs::-webkit-scrollbar {
  display: none;
}

.drop-sort-tabs {
  padding: 0;
  gap: 6px;
}

.drop-sort-tab {
  min-height: var(--tap-min);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 32, 42, 0.1);
  color: #17202a;
  background: transparent;
  box-shadow: none;
  font-weight: 620;
  letter-spacing: 0;
  white-space: nowrap;
  min-width: 88px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
}

.drop-sort-tab.is-active {
  border-color: rgba(255, 79, 139, 0.42);
  color: #d93470;
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}

.drop-sort-tab:focus-visible {
  outline: 3px solid rgba(255, 79, 139, 0.28);
  outline-offset: 2px;
}

.drop-category-select-wrap {
  position: relative;
  width: min(100%, 430px);
  min-height: var(--tap-min);
  margin: 0;
  padding: 0 44px 0 12px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 79, 139, 0.22);
  border-radius: var(--r-pill);
  color: #17202a;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.09), rgba(255, 138, 91, 0.07)),
    rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.drop-category-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #17202a;
  border-bottom: 2px solid #17202a;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.drop-category-select-wrap span {
  color: #d93470;
  font-size: 12px;
  font-weight: 620;
}

.drop-category-select-wrap strong {
  min-width: 0;
  color: #17202a;
  font-size: 14px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-category-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.drop-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  overflow: visible;
}

.drop-list.is-focused {
  width: min(100%, 430px);
  grid-template-columns: minmax(0, 1fr);
}

.drop-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: clamp(112px, 28%, 152px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: var(--r-sm);
  background:
    #ffffff;
  box-shadow: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.drop-card.has-cover {
  border-color: rgba(23, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.drop-card:focus-visible,
.drop-card:hover {
  border-color: rgba(255, 79, 139, 0.32);
  outline: 0;
  box-shadow: none;
  transform: translateY(-2px);
}

.drop-card.is-locked,
.drop-card.is-locked:hover {
  cursor: not-allowed;
  border-color: rgba(23, 32, 42, 0.08);
  box-shadow: none;
  transform: none;
}

.drop-card.is-loading {
  pointer-events: none;
}

.drop-card.is-loading .drop-card-cover {
  min-height: 124px;
  background-image: none;
}

.drop-card.is-loading .loading-block,
.drop-card.is-loading .loading-line,
.drop-card.is-loading .loading-pill {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.18), rgba(97, 183, 255, 0.14)),
    rgba(23, 32, 42, 0.06);
  box-shadow: none;
}

.drop-card.is-loading .loading-block::after,
.drop-card.is-loading .loading-line::after,
.drop-card.is-loading .loading-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: drop-loading-sheen 1.25s ease-in-out infinite;
}

.drop-card.is-locked .drop-card-cover {
  filter: saturate(0.7);
  opacity: 0.76;
}

.drop-card.is-locked em,
.drop-card.is-locked .drop-play-button {
  color: #3e4854;
  background: rgba(23, 32, 42, 0.08);
  box-shadow: none;
}

.drop-card.has-cover:hover {
  border-color: rgba(255, 79, 139, 0.34);
}

.drop-card-copy {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-content: start;
}

.drop-card strong,
.drop-card small,
.drop-card .drop-creator-link {
  display: block;
}

.drop-card strong {
  min-width: 0;
  color: #17202a;
  overflow: hidden;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.14;
  text-overflow: clip;
  white-space: normal;
}

.drop-creator-row {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drop-creator-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f8b, #ff8a5b);
  background-position: center 18%;
  background-size: cover;
  font-size: 12px;
  font-weight: 680;
}

.drop-card .drop-creator-link {
  max-width: 100%;
  overflow: hidden;
  color: #3e4854;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.drop-meta-row {
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-card .drop-creator-link[href]:hover {
  color: #d93470;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-card small {
  margin: 0;
  color: #3e4854;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.32;
}

.drop-card p {
  margin: 2px 0 0;
  color: #283342;
  font-size: 13px;
  font-weight: 420;
  line-height: 1.42;
}

.drop-card.has-cover small {
  color: #3e4854;
}

.drop-card-cover {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  aspect-ratio: 9 / 13;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background-image: linear-gradient(135deg, rgba(255, 79, 139, 0.2), rgba(97, 183, 255, 0.22));
  background-color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

.drop-card.has-cover .drop-card-cover {
  background-image:
    var(--cover-image),
    linear-gradient(135deg, rgba(255, 79, 139, 0.2), rgba(97, 183, 255, 0.22));
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
}

.drop-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border: 1px dashed rgba(23, 32, 42, 0.16);
  border-radius: var(--r-lg);
  color: #3e4854;
  background: rgba(255, 255, 255, 0.64);
}

.drop-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4f8b, #ff8a5b);
  box-shadow: none;
}

.drop-empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-empty-icon svg path:only-child {
  fill: currentColor;
  stroke: none;
}

.drop-empty-title {
  color: #17202a;
  font-size: 17px;
  font-weight: 600;
}

.drop-empty-text {
  margin: 0;
  max-width: 30ch;
  color: #3e4854;
  font-size: 14px;
  line-height: 1.45;
}

.drop-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-top: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  color: #fff;
  background: linear-gradient(135deg, #b51f55, #ad3e1b);
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.drop-empty-action:focus-visible {
  outline: 3px solid rgba(255, 79, 139, 0.32);
  outline-offset: 2px;
}

.drop-status-badge,
.drop-play-button {
  border: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #b51f55, #ad3e1b);
  box-shadow: none;
  font-style: normal;
  font-weight: 620;
  font-size: 13px;
}

.drop-status-badge {
  position: static;
  width: auto;
  min-height: 28px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  box-shadow: none;
}

.drop-play-button {
  width: min(100%, 190px);
  min-height: var(--tap-min);
  margin-top: 2px;
  border-radius: var(--r-sm);
  cursor: pointer;
  justify-self: start;
}

@media (min-width: 700px) {
  .drop-screen {
    padding:
      max(18px, env(safe-area-inset-top))
      18px
      max(18px, env(safe-area-inset-bottom));
  }

  .drop-panel {
    max-height: calc(100svh - 36px);
  }

  .drop-brand {
    margin-bottom: 12px;
  }

  .drop-title {
    font-size: 28px;
  }

  .drop-controls {
    margin-right: 0;
    margin-left: 0;
  }

  .drop-sort-tabs {
    padding-right: 0;
    padding-left: 0;
  }

  .drop-category-select-wrap {
    max-width: 340px;
    margin: 0;
  }

  .drop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .drop-card {
    grid-template-columns: clamp(128px, 30%, 174px) minmax(0, 1fr);
  }
}

@media (min-width: 1020px) {
  .drop-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .drop-card strong {
    font-size: 17px;
  }
}

:root[data-theme="night"] .drop-screen {
  background:
    radial-gradient(circle at 8% 4%, rgba(240, 111, 159, 0.13), transparent 25%),
    radial-gradient(circle at 88% 12%, rgba(123, 188, 255, 0.12), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(100, 230, 198, 0.1), transparent 30%),
    linear-gradient(180deg, #070a11 0%, #0d1420 46%, #090d15 100%);
}

:root[data-theme="night"] .drop-panel {
  color: var(--text);
}

:root[data-theme="night"] .drop-logo,
:root[data-theme="night"] .drop-title,
:root[data-theme="night"] .creator-profile-badge,
:root[data-theme="night"] .creator-profile-badge strong,
:root[data-theme="night"] .drop-card strong {
  color: var(--text);
}

:root[data-theme="night"] .drop-copy,
:root[data-theme="night"] .creator-profile-badge small,
:root[data-theme="night"] .drop-card small,
:root[data-theme="night"] .drop-card p,
:root[data-theme="night"] .drop-card .drop-creator-link,
:root[data-theme="night"] .drop-empty {
  color: var(--muted);
}

:root[data-theme="night"] .drop-empty-title {
  color: var(--text);
}

:root[data-theme="night"] .drop-empty-text {
  color: var(--muted);
}

:root[data-theme="night"] .drop-home-link {
  color: var(--text);
  background: #273044;
  box-shadow: none;
}

:root[data-theme="night"] .drop-account-link.is-authenticated {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="night"] .drop-sort-tab,
:root[data-theme="night"] .drop-category-select-wrap,
:root[data-theme="night"] .drop-card,
:root[data-theme="night"] .drop-empty,
:root[data-theme="night"] .personal-card {
  border-color: var(--line);
  background: rgba(18, 23, 34, 0.84);
  box-shadow: none;
}

:root[data-theme="night"] .personal-card-copy span {
  color: var(--muted);
}

:root[data-theme="night"] .drop-sort-tab {
  color: var(--text);
  background: rgba(220, 232, 244, 0.08);
  box-shadow: none;
}

:root[data-theme="night"] .drop-sort-tab.is-active {
  border-color: rgba(240, 111, 159, 0.42);
  color: #ffb4cf;
  background: rgba(240, 111, 159, 0.13);
  box-shadow: none;
}

:root[data-theme="night"] .drop-category-select-wrap {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(240, 111, 159, 0.13), rgba(255, 155, 107, 0.1)),
    rgba(18, 23, 34, 0.84);
}

:root[data-theme="night"] .drop-category-select-wrap::after {
  border-color: var(--text);
}

:root[data-theme="night"] .drop-category-select-wrap span {
  color: #ffb4cf;
}

:root[data-theme="night"] .drop-category-select-wrap strong {
  color: var(--text);
}

:root[data-theme="night"] .drop-card.has-cover {
  border-color: rgba(142, 161, 190, 0.16);
  background: rgba(18, 23, 34, 0.9);
}

:root[data-theme="night"] .drop-card:focus-visible,
:root[data-theme="night"] .drop-card:hover,
:root[data-theme="night"] .drop-card.has-cover:hover {
  border-color: rgba(240, 111, 159, 0.38);
  box-shadow: none;
}

:root[data-theme="night"] .drop-card-cover {
  background-color: #121722;
  box-shadow: none;
}

:root[data-theme="night"] .drop-card.is-locked,
:root[data-theme="night"] .drop-card.is-locked:hover {
  border-color: rgba(142, 161, 190, 0.12);
  box-shadow: none;
}

:root[data-theme="night"] .drop-card.is-locked em,
:root[data-theme="night"] .drop-card.is-locked .drop-play-button {
  color: var(--muted);
  background: rgba(220, 232, 244, 0.08);
}

:root[data-theme="night"] .drop-card.is-loading .loading-block,
:root[data-theme="night"] .drop-card.is-loading .loading-line,
:root[data-theme="night"] .drop-card.is-loading .loading-pill {
  background:
    linear-gradient(135deg, rgba(240, 111, 159, 0.2), rgb(var(--game-border-rgb) / 0.16)),
    rgba(220, 232, 244, 0.1);
  box-shadow: none;
}

:root[data-theme="night"] .drop-card.is-loading .loading-block::after,
:root[data-theme="night"] .drop-card.is-loading .loading-line::after,
:root[data-theme="night"] .drop-card.is-loading .loading-pill::after {
  background: linear-gradient(90deg, transparent, rgba(248, 251, 255, 0.2), transparent);
}

@keyframes drop-loading-sheen {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-card.is-loading .loading-block::after,
  .drop-card.is-loading .loading-line::after,
  .drop-card.is-loading .loading-pill::after,
  :root[data-theme="night"] .drop-card.is-loading .loading-block::after,
  :root[data-theme="night"] .drop-card.is-loading .loading-line::after,
  :root[data-theme="night"] .drop-card.is-loading .loading-pill::after {
    animation: none;
    transform: none;
  }
}

.profile-page {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  color: #17202a;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 79, 139, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(97, 183, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #fff8fb 0%, #f8fbff 48%, #fffaf5 100%);
}

.profile-document,
.profile-document body {
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
}

.profile-document {
  background: #fff8fb;
}

.profile-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow-x: clip;
  padding:
    max(clamp(14px, 3svh, 42px), env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
}

.profile-nav {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 12;
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.profile-nav .drop-logo {
  min-width: 0;
  gap: 9px;
  color: #17202a;
}

.profile-nav .drop-logo > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-nav .drop-home-link {
  min-height: 42px;
  padding: 0 18px;
  background: #17202a;
  box-shadow: none;
}

.creator-profile-hero {
  position: relative;
  margin: 12px 0 18px;
  padding: clamp(16px, 3.2vw, 24px);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.profile-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 18px);
  align-items: center;
}

.profile-summary {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.profile-name-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.creator-profile-photo {
  width: clamp(84px, 12vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4f8b, #ff765e);
  background-position: center 18%;
  background-size: cover;
  box-shadow: none;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 650;
}

.is-loading-profile .creator-profile-photo {
  color: transparent;
  background-image:
    linear-gradient(135deg, rgba(255, 79, 139, 0.28), rgba(97, 183, 255, 0.2));
  background-size: 100% 100%;
}

.creator-profile-photo.is-loading-avatar,
.is-loading-profile .creator-profile-photo {
  position: relative;
  overflow: hidden;
  color: transparent;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.28), rgba(97, 183, 255, 0.2)),
    rgba(23, 32, 42, 0.07);
  background-size: 100% 100%;
}

.creator-profile-photo.is-loading-avatar::after,
.is-loading-profile .creator-profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-100%);
  animation: avatar-loading-sheen 1.25s ease-in-out infinite;
}

@keyframes avatar-loading-sheen {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-profile-photo.is-loading-avatar::after,
  .is-loading-profile .creator-profile-photo::after {
    animation: none;
    transform: none;
  }
}

.profile-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: #17202a;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 660;
  line-height: 1.06;
}

.is-loading-profile .profile-name,
.is-loading-profile .profile-bio {
  overflow: hidden;
  border-radius: var(--r-pill);
  color: transparent;
  background:
    rgba(23, 32, 42, 0.07);
  background-size: 100% 100%;
}

.is-loading-profile .profile-name {
  width: min(360px, 74vw);
  min-height: 38px;
}

.is-loading-profile .profile-bio {
  width: min(520px, 78vw);
  min-height: 18px;
}

.profile-bio {
  max-width: 680px;
  margin: 0;
  color: #3e4854;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.42;
}

.profile-tags {
  margin-top: -2px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-tags span,
.drop-pinned-badge {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 79, 139, 0.22);
  border-radius: var(--r-pill);
  color: #963556;
  background: rgba(255, 79, 139, 0.1);
  font-size: 12px;
  font-weight: 560;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.profile-actions:has(.profile-support-link.hidden) {
  grid-template-columns: minmax(0, 1fr);
}

.profile-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-support-link,
.profile-social-links a,
.profile-follow-button,
.profile-report-button,
.profile-share-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: var(--r-pill);
  color: #3e4854;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 12px;
  font-weight: 560;
}

.profile-follow-button {
  border-color: rgba(255, 79, 139, 0.28);
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f8b, #ff765e);
  font-weight: 650;
}

.profile-follow-button.is-following {
  border-color: rgba(23, 32, 42, 0.12);
  color: #17202a;
  background: rgba(255, 255, 255, 0.78);
}

.profile-follow-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.follow-auth-copy {
  margin: 0 0 16px;
  color: #4e5866;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.profile-report-button,
.profile-share-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: #17202a;
  background: rgba(255, 255, 255, 0.82);
}

.profile-share-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.profile-report-button svg,
.profile-share-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-share-status {
  margin: 7px 0 0;
  color: #667280;
}

.profile-share-status:empty {
  display: none;
}

.profile-support-link {
  border-color: rgba(38, 198, 164, 0.32);
  color: #123f35;
  background: rgba(38, 198, 164, 0.16);
}

.profile-social-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-social-links a {
  color: #17202a;
}

.drop-pinned-badge {
  width: max-content;
  min-height: 24px;
  padding: 0 9px;
  color: #123f35;
  border-color: rgba(38, 198, 164, 0.28);
  background: rgba(38, 198, 164, 0.14);
}

.profile-stat {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.profile-stat.is-loading {
  min-width: 0;
  pointer-events: none;
}

.profile-stat-pending {
  opacity: 0.78;
}

.profile-stat-pending strong {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-stat-pending .stat-loading-value {
  width: 34px;
  height: 11px;
  border-radius: var(--r-pill);
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat strong {
  color: #17202a;
  font-size: 16px;
  font-weight: 660;
  line-height: 1;
}

.profile-stat span {
  margin-top: 4px;
  color: #6f7a86;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.06em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.profile-drops-section > .creator {
  margin-bottom: 6px;
}

.profile-drops-title {
  margin: 0 0 12px;
  color: #17202a;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 660;
  line-height: 1.12;
}

@media (max-width: 620px) {
  .drop-screen {
    padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
    place-items: stretch;
  }

  .drop-panel {
    max-height: calc(100svh - 16px);
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .drop-brand {
    margin-bottom: 6px;
  }

  .drop-title {
    font-size: 30px;
  }

  .drop-copy {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .drop-controls {
    gap: 10px;
  }

  .drop-sort-tabs {
    margin-inline: 0;
    padding-inline: 0;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .drop-sort-tab {
    min-width: 88px;
    min-height: 44px;
    padding-inline: 13px;
  }

  .drop-category-select-wrap {
    width: 100%;
    min-height: 44px;
  }

  .personal-track {
    grid-auto-columns: minmax(238px, 86%);
  }

  .drop-list {
    gap: 10px;
  }

  .drop-card {
    grid-template-columns: minmax(92px, 31%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .drop-card-copy {
    gap: 7px;
  }

  .drop-card strong {
    font-size: 15px;
  }

  .drop-play-button {
    width: 100%;
    min-height: 44px;
  }

  .drop-home-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .profile-shell {
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      calc(84px + env(safe-area-inset-bottom));
  }

  .profile-nav {
    top: max(8px, env(safe-area-inset-top));
    min-height: 54px;
    gap: 6px;
    padding: 7px;
    backdrop-filter: none;
  }

  .profile-nav .drop-mark {
    width: 38px;
    height: 38px;
  }

  .profile-nav .drop-logo {
    font-size: 15px;
  }

  .profile-nav .drop-home-link {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .creator-profile-hero {
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--r-xl);
    box-shadow: none;
  }

  .profile-identity {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
  }

  .creator-profile-photo {
    width: 78px;
  }

  .profile-summary {
    gap: 10px;
  }

  .profile-name-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .profile-name {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .profile-stats {
    gap: 5px;
  }

  .profile-stat {
    padding: 7px 4px;
  }

  .profile-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .profile-icon-actions {
    gap: 6px;
  }

  .profile-report-button,
  .profile-share-button {
    width: 44px;
    min-height: 44px;
  }

  .profile-support-link {
    min-height: 40px;
  }

  .profile-follow-button {
    min-height: 44px;
  }

  .profile-social-links {
    width: 100%;
  }

  .profile-social-links a {
    min-height: 44px;
    flex: 1 1 auto;
  }

  .profile-page .settings-modal {
    padding:
      max(14px, env(safe-area-inset-top))
      12px
      max(14px, env(safe-area-inset-bottom));
    place-items: center;
  }

  .profile-page .settings-panel {
    width: min(100%, 430px);
    max-height: calc(100svh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
    overflow-y: auto;
    border-radius: var(--r-xl);
  }

  .profile-page .modal-actions.pass-actions {
    grid-template-columns: 1fr;
  }
}

.modal.hidden {
  display: none;
}

.modal-title {
  margin: 0;
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  font-size: 20px;
  line-height: 1.1;
}

.modal.is-complete {
  animation: modal-pop 340ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.modal.is-complete .modal-title {
  background: linear-gradient(120deg, var(--wine), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal.is-complete {
    animation: none;
  }
}

.modal p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal button {
  min-width: 72px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.primary {
  background: linear-gradient(135deg, #b51f55, #ad3e1b);
  color: #ffffff;
}

.secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.accent {
  background: var(--ink);
  color: var(--paper);
}

.modal-actions.pass-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 160px));
  gap: 10px;
  justify-content: center;
}

@media (max-width: 430px) {
  .drop-card {
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
  }

  .drop-card p {
    font-size: 12px;
    line-height: 1.34;
  }

  .profile-nav .drop-logo > span:last-child {
    display: none;
  }

  .modal-actions.pass-actions {
    grid-template-columns: repeat(2, minmax(112px, 140px));
  }
}

@media (max-width: 360px) {
  :root {
    --pad-height: clamp(104px, 13svh, 118px);
    --pad-width: clamp(184px, 56vw, 204px);
    --button-size: clamp(44px, 5.5svh, 48px);
    --pad-drop: 0px;
    --gap: 2px;
  }

  .shell {
    padding-left: 2px;
    padding-right: 2px;
  }

  .hud {
    grid-template-columns: 40px 34px minmax(54px, 1fr) 46px 58px;
    gap: 6px;
    padding: 0 8px;
  }

  .controls-toggle {
    width: 44px;
  }

  .level {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .retries {
    width: 56px;
    padding-right: 8px;
    gap: 5px;
    font-size: 16px;
  }

  .retries span:first-child {
    width: 1.28em;
    height: 1em;
    flex-basis: 1.28em;
  }

  .modal-actions.pass-actions {
    grid-template-columns: repeat(2, minmax(104px, 1fr));
  }
}

:root[data-theme="night"] .profile-page {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 188, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(142, 240, 211, 0.1), transparent 28%),
    radial-gradient(circle at 68% 86%, rgba(240, 111, 159, 0.09), transparent 32%),
    linear-gradient(180deg, #070a11 0%, #0d111b 50%, #090d14 100%);
}

:root[data-theme="night"].profile-document {
  background: #080b12;
}

:root[data-theme="night"] .profile-nav,
:root[data-theme="night"] .creator-profile-hero,
:root[data-theme="night"] .profile-page .drop-card,
:root[data-theme="night"] .profile-page .drop-empty {
  border-color: var(--line);
  background: rgba(18, 23, 34, 0.84);
  box-shadow: none;
}

:root[data-theme="night"] .profile-nav .drop-logo,
:root[data-theme="night"] .profile-name,
:root[data-theme="night"] .profile-drops-title,
:root[data-theme="night"] .profile-stat strong,
:root[data-theme="night"] .profile-page .drop-card strong,
:root[data-theme="night"] .profile-page .drop-card p,
:root[data-theme="night"] .profile-page .drop-card .drop-creator-link,
:root[data-theme="night"] .profile-social-links a {
  color: var(--text);
}

:root[data-theme="night"] .profile-bio,
:root[data-theme="night"] .profile-stat span,
:root[data-theme="night"] .profile-share-status,
:root[data-theme="night"] .profile-page .drop-card small,
:root[data-theme="night"] .profile-page .drop-empty,
:root[data-theme="night"] .follow-auth-copy {
  color: var(--muted);
}

:root[data-theme="night"] .profile-nav .drop-home-link {
  color: var(--text);
  background: #273044;
  box-shadow: none;
}

:root[data-theme="night"] .profile-support-link,
:root[data-theme="night"] .profile-social-links a,
:root[data-theme="night"] .profile-follow-button.is-following,
:root[data-theme="night"] .profile-report-button,
:root[data-theme="night"] .profile-share-button,
:root[data-theme="night"] .profile-stat {
  border-color: var(--line);
  color: var(--text);
  background: rgba(220, 232, 244, 0.1);
  box-shadow: none;
}

:root[data-theme="night"] .profile-support-link,
:root[data-theme="night"] .drop-pinned-badge {
  border-color: rgba(100, 230, 198, 0.32);
  color: #b9f8e8;
  background: rgba(100, 230, 198, 0.12);
}

:root[data-theme="night"] .profile-tags span {
  border-color: rgba(240, 111, 159, 0.34);
  color: #ffb4cf;
  background: rgba(240, 111, 159, 0.12);
}

:root[data-theme="night"] .profile-page .drop-card-cover {
  background-color: #121722;
  box-shadow: none;
}

:root[data-theme="night"] .profile-page .drop-card:focus-visible,
:root[data-theme="night"] .profile-page .drop-card:hover {
  border-color: rgba(240, 111, 159, 0.38);
  box-shadow: none;
}

body[data-theme="night"] .modal,
:root[data-theme="night"] body:not([data-theme="day"]) .modal {
  border-color: rgba(142, 161, 190, 0.18);
  background: rgba(18, 23, 34, 0.92);
  color: var(--ink);
  box-shadow: none;
}

body[data-theme="night"] .settings-panel,
:root[data-theme="night"] body:not([data-theme="day"]) .settings-panel {
  border-color: rgba(142, 161, 190, 0.18);
  background: #121722;
  color: var(--ink);
}

body[data-theme="night"] .secondary,
:root[data-theme="night"] body:not([data-theme="day"]) .secondary {
  color: var(--ink);
  background: rgba(220, 232, 244, 0.1);
}

/* Recovery stays in the browsing layout, above the mobile navigation. */
.recovery-panel {
  grid-column: 1 / -1;
}

.recovery-panel .drop-empty-title:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
