:root {
  color-scheme: dark;
  --bg: #0d1012;
  --panel: rgba(18, 22, 24, 0.92);
  --panel-strong: rgba(31, 35, 36, 0.96);
  --line: rgba(255, 255, 255, 0.18);
  --text: #fbf2df;
  --muted: #c9bfae;
  --red: #f45d48;
  --gold: #f5c84c;
  --teal: #23c7ac;
  --blue: #5d9cec;
  --green: #87d37c;
  --ink: #08090a;
  --deep: #15100e;
  --accent: var(--teal);
  --accent-soft: rgba(35, 199, 172, 0.18);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(244, 93, 72, 0.16) 0 13%, transparent 13% 60%, rgba(35, 199, 172, 0.13) 60% 74%, transparent 74%),
    linear-gradient(180deg, #1b1714 0%, #111719 45%, #090b0c 100%);
  overflow: hidden;
  touch-action: manipulation;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(245, 200, 76, 0.08) 48% 49%, transparent 49% 100%);
  background-size: 72px 72px, 72px 72px, 280px 280px;
}

body::after {
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22));
  mix-blend-mode: soft-light;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid rgba(245, 200, 76, 0.92);
  outline-offset: 3px;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wall-shell {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-rows: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.top-bar,
.panel,
.customize-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.top-bar {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(420px, auto) minmax(210px, auto) 74px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  overflow: hidden;
}

.top-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal), var(--blue), var(--green));
}

.brand-lockup {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 78px;
  height: 78px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 200, 76, 0.22), rgba(244, 93, 72, 0.16) 48%, rgba(35, 199, 172, 0.18)),
    #121617;
  border: 1px solid rgba(245, 200, 76, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h2 {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.1;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 8px;
}

.mode-button,
.icon-command,
.small-command,
.touch-command {
  min-height: 54px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.mode-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.mode-button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
    var(--accent);
  color: var(--ink);
}

.mode-button:active,
.icon-command:active,
.small-command:active,
.touch-command:active,
.launcher-tile:active,
.tool-button:active {
  transform: scale(0.98);
}

.clock-stack {
  justify-self: end;
  min-width: 0;
  text-align: right;
}

#clockTime {
  display: block;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

#clockDate {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.icon-command {
  width: 62px;
  min-height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.wall-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 1.05fr 1fr;
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "now launch launch chooser"
    "note launch launch timer"
    "sketch sketch sketch random";
  gap: 12px;
}

@media (min-width: 1400px) and (min-height: 850px) {
  .wall-grid {
    grid-template-rows: minmax(0, 1.12fr) minmax(0, 1.08fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 980px) and (max-height: 820px) {
  .wall-shell {
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .top-bar {
    grid-template-columns: minmax(210px, 1fr) minmax(340px, auto) minmax(156px, auto) 56px;
    gap: 8px;
    padding: 7px 8px;
  }

  .brand-lockup {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .eyebrow {
    margin-bottom: 3px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 0.98rem;
  }

  .mode-switch {
    grid-template-columns: repeat(5, minmax(60px, 1fr));
    gap: 6px;
  }

  .mode-button,
  .small-command,
  .touch-command {
    min-height: 38px;
    font-size: 0.75rem;
  }

  .icon-command {
    width: 48px;
    min-height: 48px;
    font-size: 0.74rem;
  }

  #clockTime {
    font-size: 1.85rem;
  }

  #clockDate {
    margin-top: 2px;
    font-size: 0.7rem;
  }

  .wall-grid {
    grid-template-rows: minmax(145px, 0.92fr) minmax(124px, 0.72fr) minmax(128px, 0.7fr);
    gap: 8px;
  }

  .panel-heading {
    padding: 10px 12px 6px;
  }

  .now-readout {
    gap: 5px;
    padding: 0 12px;
  }

  .now-readout strong {
    font-size: 1.55rem;
  }

  .now-readout span {
    font-size: 0.8rem;
  }

  .status-strip {
    gap: 5px;
    padding: 0 12px 10px;
  }

  .status-strip span {
    min-height: 30px;
    font-size: 0.68rem;
  }

  .small-command {
    min-width: 52px;
    padding: 0 9px;
  }

  .launcher-grid {
    gap: 8px;
    padding: 0 12px 12px;
  }

  .launcher-tile {
    grid-template-rows: 68px auto minmax(0, 1fr) auto;
    gap: 4px;
    padding: 10px;
  }

  .launcher-icon {
    width: 60px;
    height: 60px;
  }

  .launcher-icon svg {
    width: 48px;
    height: 48px;
  }

  .launcher-tag {
    font-size: 0.58rem;
  }

  .launcher-tile strong {
    font-size: 1rem;
  }

  .launcher-tile small {
    font-size: 0.58rem;
  }

  .choice-stage {
    padding: 0 12px;
  }

  .choice-wheel {
    width: min(156px, 70%);
    border-width: 6px;
  }

  .choice-wheel::after {
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.24);
  }

  .choice-wheel span {
    width: 46px;
    font-size: 0.54rem;
  }

  .choice-wheel span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(30deg) translateY(-50px) rotate(-30deg);
  }

  .choice-wheel span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-50px) rotate(-90deg);
  }

  .choice-wheel span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(150deg) translateY(-50px) rotate(-150deg);
  }

  .choice-wheel span:nth-child(4) {
    transform: translate(-50%, -50%) rotate(210deg) translateY(-50px) rotate(-210deg);
  }

  .choice-wheel span:nth-child(5) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-50px) rotate(-270deg);
  }

  .choice-wheel span:nth-child(6) {
    transform: translate(-50%, -50%) rotate(330deg) translateY(-50px) rotate(-330deg);
  }

  .choice-pin {
    top: calc(50% - min(78px, 35%) - 16px);
    width: 20px;
    height: 18px;
  }

  .result-line {
    min-height: 28px;
    padding: 0 12px 9px;
    font-size: 0.78rem;
  }

  .timer-readout {
    font-size: 2.45rem;
  }

  .timer-controls {
    grid-template-columns: 54px 1fr 54px;
    gap: 6px;
    padding: 0 12px 12px;
  }

  .touch-command {
    min-height: 40px;
    padding: 0 10px;
  }

  .note-actions {
    gap: 6px;
  }

  .note-state {
    min-width: 42px;
    font-size: 0.68rem;
  }

  #wallNote {
    margin: 0 12px 12px;
    padding: 9px;
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .color-row {
    gap: 6px;
  }

  .color-swatch {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .sketch-canvas {
    margin: 0 12px 12px;
    background-size: 24px 24px;
  }

  .tool-grid {
    padding: 0 12px 9px;
  }

  .tool-button {
    grid-template-rows: auto minmax(58px, 1fr) auto;
    gap: 4px;
    padding: 8px;
  }

  .tool-label {
    font-size: 0.66rem;
  }

  .tool-result {
    font-size: 0.8rem;
  }

  .coin-graphic {
    width: min(76px, 64%);
    border-width: 3px;
    box-shadow:
      inset 0 -6px 0 rgba(0, 0, 0, 0.24),
      0 10px 16px rgba(0, 0, 0, 0.3);
  }

  .tool-button.coin-flip::after {
    bottom: 30px;
    width: 58px;
    height: 12px;
  }
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--accent);
  opacity: 0.82;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
  opacity: 0.38;
  pointer-events: none;
}

.panel-heading {
  position: relative;
  z-index: 2;
  padding: 18px 18px 10px;
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.now-panel {
  grid-area: now;
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(245, 200, 76, 0.1) 54%, rgba(0, 0, 0, 0.12)),
    var(--panel-strong);
}

.launcher-panel {
  grid-area: launch;
}

.chooser-panel {
  grid-area: chooser;
}

.timer-panel {
  grid-area: timer;
}

.sketch-panel {
  grid-area: sketch;
}

.note-panel {
  grid-area: note;
}

.random-panel {
  grid-area: random;
}

.now-readout {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

.now-readout strong {
  display: block;
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1;
}

.now-readout span {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 18px 18px;
  position: relative;
  z-index: 2;
}

.status-strip span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.small-command {
  min-width: 72px;
  min-height: 46px;
  padding: 0 14px;
  position: relative;
  z-index: 3;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.small-command[hidden],
.launcher-grid[hidden],
.app-frame-shell[hidden],
.frame-blocked-note[hidden] {
  display: none;
}

.small-command.hot,
.touch-command.primary {
  background: var(--accent);
  color: var(--ink);
}

.app-bay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-bay {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.launcher-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
  position: relative;
  z-index: 2;
}

.launcher-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 112px auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--tile-glow), rgba(255, 255, 255, 0.06) 44%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(0, 0, 0, 0.22);
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.launcher-tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: var(--tile-color);
  opacity: 0.86;
}

.launcher-icon {
  grid-column: 1;
  grid-row: 1;
  place-self: center;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
  color: var(--tile-tone);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.launcher-icon svg {
  width: 78px;
  height: 78px;
  display: block;
}

.launcher-tag {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.launcher-tile strong {
  grid-column: 1;
  grid-row: 3;
  max-width: 100%;
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.launcher-tile small {
  grid-column: 1;
  grid-row: 4;
  color: var(--tile-color);
  font-size: 0.82rem;
  font-weight: 850;
}

.app-frame-shell {
  flex: 1;
  min-height: 0;
  display: block;
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

.app-frame-stage {
  --app-scale: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 200, 76, 0.08), transparent 58%),
    #050607;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.app-frame-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.frame-blocked-note {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, var(--frame-glow, rgba(135, 211, 124, 0.16)), transparent 52%),
    rgba(0, 0, 0, 0.58);
}

.frame-blocked-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.32);
  color: var(--frame-color, var(--muted));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 28px var(--frame-glow, transparent),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.frame-blocked-icon svg {
  width: 68px;
  height: 68px;
  display: block;
}

.frame-blocked-note strong {
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
}

.frame-blocked-note span {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.app-frame-shell.frame-blocked .app-frame {
  opacity: 0;
  pointer-events: none;
}

.app-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: #050607;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(var(--app-scale));
  transform-origin: center center;
}

.choice-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 4px 18px 0;
  position: relative;
  z-index: 2;
}

.choice-wheel {
  --wheel-rotation: 0deg;
  --wheel-counter-rotation: 0deg;
  --wheel-label-radius: -68px;
  width: min(210px, 72%);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(180deg, #202526, #0d1012);
  box-shadow:
    inset 0 0 0 8px rgba(0, 0, 0, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.4);
}

.choice-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      #f45d48 0deg 60deg,
      #f5c84c 60deg 120deg,
      #23c7ac 120deg 180deg,
      #5d9cec 180deg 240deg,
      #87d37c 240deg 300deg,
      #ffffff 300deg 360deg
    );
  transform: rotate(var(--wheel-rotation));
  transition: transform 1800ms cubic-bezier(0.16, 0.9, 0.18, 1);
}

.choice-wheel::after {
  content: "";
  position: relative;
  z-index: 2;
  width: 38%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background:
    linear-gradient(180deg, #202526, #0d1012);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.24);
}

.choice-wheel span {
  position: absolute;
  left: var(--label-left, 50%);
  top: var(--label-top, 50%);
  width: 58px;
  min-height: 18px;
  display: grid;
  place-items: center;
  transform-origin: center;
  z-index: 3;
  transition:
    opacity 180ms ease,
    left 1800ms cubic-bezier(0.16, 0.9, 0.18, 1),
    top 1800ms cubic-bezier(0.16, 0.9, 0.18, 1);
  transform: translate(-50%, -50%);
}

.choice-wheel.is-spinning span {
  opacity: 0;
}

.choice-wheel span > b {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  /* Dark outline painted BEHIND the white fill (paint-order) so the letters
     stay solid white and legible on every segment colour — light (white,
     gold) and mid (red, blue, green, teal) alike. */
  -webkit-text-stroke: 2.4px #06080a;
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: none;
}

.choice-wheel span:nth-child(1) {
  --label-angle: 30deg;
  --label-counter-angle: -30deg;
}

.choice-wheel span:nth-child(2) {
  --label-angle: 90deg;
  --label-counter-angle: -90deg;
}

.choice-wheel span:nth-child(3) {
  --label-angle: 150deg;
  --label-counter-angle: -150deg;
}

.choice-wheel span:nth-child(4) {
  --label-angle: 210deg;
  --label-counter-angle: -210deg;
}

.choice-wheel span:nth-child(5) {
  --label-angle: 270deg;
  --label-counter-angle: -270deg;
}

.choice-wheel span:nth-child(6) {
  --label-angle: 330deg;
  --label-counter-angle: -330deg;
}

.choice-pin {
  position: absolute;
  /* tip sits at the wheel's top outer edge: 50% (stage center) minus wheel radius */
  top: calc(50% - min(105px, 36%) - 22px);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 22px;
  margin: 0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
  z-index: 3;
}

.result-line {
  display: none;
}

.timer-readout {
  flex: 1;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 1;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.timer-controls {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  gap: 8px;
  padding: 0 18px 18px;
  position: relative;
  z-index: 2;
}

.touch-command {
  min-height: 58px;
  padding: 0 16px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.color-swatch[data-color="#f45d48"] {
  background: #f45d48;
}

.color-swatch[data-color="#23c7ac"] {
  background: #23c7ac;
}

.color-swatch[data-color="#f5c84c"] {
  background: #f5c84c;
}

.color-swatch.active {
  border-color: #ffffff;
}

.eraser-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.eraser-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.eraser-toggle.active {
  border-color: #ffffff;
  background: var(--accent);
  color: var(--ink);
}

.sketch-canvas {
  flex: 1;
  min-height: 0;
  margin: 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(35, 199, 172, 0.09), rgba(244, 93, 72, 0.08)),
    rgba(0, 0, 0, 0.24);
  background-size: 32px 32px;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-state {
  min-width: 52px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

#wallNote {
  flex: 1;
  min-height: 0;
  margin: 0 18px 18px;
  padding: 12px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 200, 76, 0.06), transparent),
    rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}

.tool-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 18px 10px;
  position: relative;
  z-index: 2;
}

.tool-button {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(72px, 1fr) auto;
  place-items: center;
  gap: 10px;
  padding: 12px;
  position: relative;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.tool-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tool-result {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  min-height: 1.1rem;
}

.coin-graphic {
  width: min(104px, 58%);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform-origin: center;
  will-change: transform;
  background:
    radial-gradient(circle at 38% 30%, #fff5bd 0 12%, transparent 13%),
    linear-gradient(135deg, #ffe48a, #c8841e 64%, #7a470f);
  border: 4px solid #fff0a6;
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.24),
    0 13px 20px rgba(0, 0, 0, 0.34);
}

.coin-graphic::before,
.coin-graphic::after {
  content: "";
  position: absolute;
}

.coin-graphic::before {
  inset: 12%;
  border-radius: 50%;
  border: 3px solid rgba(82, 45, 8, 0.4);
}

.coin-face {
  width: 56%;
  aspect-ratio: 1;
  display: block;
  position: relative;
  color: #7a470f;
}

.coin-head-mark,
.coin-tail-mark {
  display: none;
}

.coin-graphic[data-side="ready"] .coin-face {
  clip-path: polygon(50% 4%, 61% 37%, 96% 37%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 4% 37%, 39% 37%);
  background: #7a470f;
}

.coin-graphic[data-side="heads"] .coin-face {
  width: 72%;
  height: 72%;
  display: grid;
  place-items: center;
  border: 4px solid rgba(122, 71, 15, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 9%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 68% 15%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 82% 31%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 91% 50%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 82% 69%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 68% 85%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 91%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 32% 85%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 18% 69%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 9% 50%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 18% 31%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 32% 15%, #7a470f 0 2px, transparent 2.5px),
    linear-gradient(145deg, rgba(255, 242, 178, 0.32), rgba(184, 105, 24, 0.14));
  box-shadow:
    inset 0 0 0 3px rgba(255, 240, 166, 0.3),
    inset 0 0 0 9px rgba(122, 71, 15, 0.12),
    inset 0 -5px 0 rgba(122, 71, 15, 0.16);
}

.coin-graphic[data-side="heads"] .coin-head-mark {
  display: block;
  width: 76%;
  height: 76%;
  color: #7a470f;
  filter: drop-shadow(0 1px 0 rgba(255, 244, 184, 0.34));
}

.coin-graphic[data-side="tails"] .coin-face {
  width: 72%;
  height: 72%;
  display: grid;
  place-items: center;
  border: 4px solid rgba(122, 71, 15, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 9%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 68% 15%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 82% 31%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 91% 50%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 82% 69%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 68% 85%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 91%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 32% 85%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 18% 69%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 9% 50%, #7a470f 0 2.5px, transparent 3px),
    radial-gradient(circle at 18% 31%, #7a470f 0 2px, transparent 2.5px),
    radial-gradient(circle at 32% 15%, #7a470f 0 2px, transparent 2.5px),
    linear-gradient(145deg, rgba(255, 242, 178, 0.32), rgba(184, 105, 24, 0.14));
  box-shadow:
    inset 0 0 0 3px rgba(255, 240, 166, 0.3),
    inset 0 0 0 9px rgba(122, 71, 15, 0.12),
    inset 0 -5px 0 rgba(122, 71, 15, 0.16);
}

.coin-graphic[data-side="tails"] .coin-tail-mark {
  display: block;
  width: 74%;
  height: 74%;
  color: #7a470f;
  filter: drop-shadow(0 1px 0 rgba(255, 244, 184, 0.34));
}

.head-profile,
.head-line,
.head-shoulder {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.head-profile {
  stroke-width: 6;
}

.head-line,
.head-shoulder {
  stroke-width: 5;
}

.head-detail {
  fill: currentColor;
}

.tail-wing,
.tail-body,
.tail-shield {
  fill: currentColor;
}

.tail-wing {
  opacity: 0.92;
}

.tail-shield {
  fill: rgba(122, 71, 15, 0.82);
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

.tail-stripe,
.tail-branch {
  fill: none;
  stroke: rgba(255, 232, 141, 0.72);
  stroke-width: 4;
  stroke-linecap: round;
}

.tail-branch {
  stroke-width: 3;
}

.coin-flip .coin-graphic {
  animation: coinFlip 1080ms cubic-bezier(0.16, 0.82, 0.22, 1);
}

.tool-button.coin-flip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 82px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42) 0 38%, transparent 70%);
  pointer-events: none;
  transform: translateX(-50%) scale(1);
  animation: coinShadow 1080ms cubic-bezier(0.16, 0.82, 0.22, 1);
}

.coin-splash[hidden] {
  display: none;
}

.coin-splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(245, 200, 76, 0.27), transparent 28%),
    radial-gradient(circle at 50% 44%, rgba(244, 93, 72, 0.18), transparent 48%),
    rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
  opacity: 0;
}

.coin-splash.show {
  animation: coinSplashOverlay 2100ms ease forwards;
}

.coin-splash-burst {
  position: absolute;
  width: min(860px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, rgba(245, 200, 76, 0.7) 0deg 7deg, transparent 7deg 18deg),
    radial-gradient(circle, transparent 0 36%, rgba(255, 240, 166, 0.18) 37% 47%, transparent 48%);
  mask-image: radial-gradient(circle, transparent 0 21%, #000 22% 100%);
  opacity: 0;
}

.coin-splash.show .coin-splash-burst {
  animation: coinSplashBurst 1500ms ease-out forwards;
}

.coin-splash-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px 42px 32px;
  text-align: center;
  transform: scale(0.82);
}

.coin-splash.show .coin-splash-card {
  animation: coinSplashCard 1650ms cubic-bezier(0.16, 0.86, 0.22, 1) forwards;
}

.coin-splash-kicker {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.42);
}

.coin-splash-coin.coin-graphic {
  width: clamp(190px, 22vw, 340px);
  box-shadow:
    inset 0 -18px 0 rgba(0, 0, 0, 0.24),
    0 32px 62px rgba(0, 0, 0, 0.46),
    0 0 54px rgba(245, 200, 76, 0.34);
}

.coin-splash.show .coin-splash-coin {
  animation: coinSplashCoin 1450ms cubic-bezier(0.18, 0.8, 0.2, 1) forwards;
}

.coin-splash-result {
  color: #ffffff;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 950;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow:
    0 7px 0 rgba(0, 0, 0, 0.38),
    0 0 36px rgba(245, 200, 76, 0.42);
}

@keyframes coinSplashOverlay {
  0% {
    opacity: 0;
  }
  10%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes coinSplashBurst {
  0% {
    opacity: 0;
    transform: scale(0.46) rotate(-10deg);
  }
  16% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: scale(1.26) rotate(22deg);
  }
}

@keyframes coinSplashCard {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.72);
  }
  15%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
}

@keyframes coinSplashCoin {
  0% {
    transform: translateY(20px) scale(0.76);
  }
  22% {
    transform: translateY(-16px) scale(1.12);
  }
  43% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes coinFlip {
  0% {
    transform: translateY(0) rotate(0deg) scaleX(1) scaleY(1);
  }
  10% {
    transform: translateY(5px) rotate(38deg) scaleX(1.12) scaleY(0.88);
  }
  23% {
    transform: translateY(-34px) rotate(205deg) scaleX(0.2) scaleY(1.18);
  }
  37% {
    transform: translateY(-50px) rotate(390deg) scaleX(1.02) scaleY(1.02);
  }
  51% {
    transform: translateY(-35px) rotate(575deg) scaleX(0.18) scaleY(1.2);
  }
  66% {
    transform: translateY(-18px) rotate(760deg) scaleX(1.08) scaleY(0.96);
  }
  82% {
    transform: translateY(3px) rotate(900deg) scaleX(1.12) scaleY(0.88);
  }
  92% {
    transform: translateY(-4px) rotate(924deg) scaleX(0.96) scaleY(1.04);
  }
  100% {
    transform: translateY(0) rotate(936deg) scaleX(1) scaleY(1);
  }
}

@keyframes coinShadow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  20% {
    opacity: 0.26;
    transform: translateX(-50%) scale(0.76);
  }
  42% {
    opacity: 0.12;
    transform: translateX(-50%) scale(0.5);
  }
  68% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.82);
  }
  84% {
    opacity: 0.62;
    transform: translateX(-50%) scale(1.12);
  }
}

.customize-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
}

.customize-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
}

.customize-dialog form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customize-dialog label {
  display: grid;
  gap: 7px;
}

.customize-dialog label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.customize-dialog input {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0 12px;
  color: #ffffff;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body[data-mode="gaming"] {
  --accent: var(--red);
  --accent-soft: rgba(244, 93, 72, 0.18);
}

body[data-mode="work"] {
  --accent: var(--teal);
  --accent-soft: rgba(35, 199, 172, 0.18);
}

body[data-mode="watch"] {
  --accent: var(--blue);
  --accent-soft: rgba(93, 156, 236, 0.18);
}

body[data-mode="party"] {
  --accent: var(--gold);
  --accent-soft: rgba(245, 200, 76, 0.18);
}

body[data-mode="idle"] {
  --accent: var(--green);
  --accent-soft: rgba(135, 211, 124, 0.18);
}

/* Open button is always a primary CTA when visible */
#openAppButton:not([hidden]) {
  background: var(--accent);
  color: var(--ink);
  min-width: 86px;
}

/* Compact dock tiles in Work/Watch bottom-row */
body[data-mode="work"]:not(.app-open) .launcher-tile,
body[data-mode="watch"]:not(.app-open) .launcher-tile {
  grid-template-rows: 72px auto minmax(0, 1fr) auto;
  padding: 10px 12px;
}

body[data-mode="work"]:not(.app-open) .launcher-icon,
body[data-mode="watch"]:not(.app-open) .launcher-icon {
  width: 58px;
  height: 58px;
}

body[data-mode="work"]:not(.app-open) .launcher-icon svg,
body[data-mode="watch"]:not(.app-open) .launcher-icon svg {
  width: 44px;
  height: 44px;
}

body[data-mode="work"]:not(.app-open) .launcher-tile strong,
body[data-mode="watch"]:not(.app-open) .launcher-tile strong {
  font-size: 1.15rem;
}

body[data-mode="work"] .wall-grid,
body[data-mode="watch"] .wall-grid {
  grid-template-areas:
    "now sketch sketch chooser"
    "note sketch sketch timer"
    "launch launch launch random";
}

body[data-mode="work"].app-open .wall-grid,
body[data-mode="watch"].app-open .wall-grid {
  grid-template-areas:
    "now launch launch chooser"
    "note launch launch timer"
    "sketch sketch sketch random";
}

body.resting .wall-grid {
  opacity: 0.62;
}

body.resting .clock-stack {
  transform: scale(1.08);
  transform-origin: right center;
}

body.burst .top-bar,
body.burst .panel {
  animation: burstFlash 520ms ease;
}

@keyframes burstFlash {
  0%,
  100% {
    border-color: var(--line);
  }
  40% {
    border-color: rgba(245, 200, 76, 0.95);
    box-shadow: 0 0 46px rgba(245, 200, 76, 0.22);
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .wall-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto 1fr;
  }

  .top-bar {
    grid-template-columns: 1fr 74px;
  }

  .mode-switch,
  .clock-stack {
    grid-column: 1 / -1;
  }

  .clock-stack {
    justify-self: stretch;
    text-align: left;
  }

  .wall-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "now timer"
      "launch launch"
      "note chooser"
      "sketch sketch"
      "random random";
  }

  body[data-mode="work"] .wall-grid,
  body[data-mode="watch"] .wall-grid {
    grid-template-areas:
      "now timer"
      "sketch sketch"
      "sketch sketch"
      "note chooser"
      "launch launch"
      "random random";
  }

  body[data-mode="work"].app-open .wall-grid,
  body[data-mode="watch"].app-open .wall-grid {
    grid-template-areas:
      "now timer"
      "launch launch"
      "launch launch"
      "note chooser"
      "sketch sketch"
      "random random";
  }

  .panel {
    min-height: 260px;
  }

  .launcher-panel,
  .sketch-panel {
    min-height: 420px;
  }

  .launcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wall-shell {
    padding: 10px;
  }

  .top-bar,
  .wall-grid {
    gap: 10px;
  }

  .brand-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 1.55rem;
  }

  #clockTime {
    font-size: 2rem;
  }

  .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "now"
      "launch"
      "note"
      "timer"
      "chooser"
      "sketch"
      "random";
  }

  body[data-mode="work"] .wall-grid,
  body[data-mode="watch"] .wall-grid {
    grid-template-areas:
      "now"
      "sketch"
      "note"
      "timer"
      "chooser"
      "launch"
      "random";
  }

  body[data-mode="work"].app-open .wall-grid,
  body[data-mode="watch"].app-open .wall-grid {
    grid-template-areas:
      "now"
      "launch"
      "note"
      "timer"
      "chooser"
      "sketch"
      "random";
  }

  .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) and (max-height: 820px) {
  .launcher-tile {
    grid-template-rows: 64px auto minmax(32px, 1fr) auto;
    gap: 4px;
    padding: 10px;
  }

  .launcher-icon {
    width: 58px;
    height: 58px;
  }

  .launcher-icon svg {
    width: 46px;
    height: 46px;
  }

  .launcher-tag {
    font-size: 0.56rem;
  }

  .launcher-tile strong {
    font-size: 0.9rem;
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .launcher-tile small {
    font-size: 0.55rem;
  }

  .choice-wheel {
    grid-area: 1 / 1;
    --wheel-label-radius: -54px;
    width: min(146px, 68%);
    border-width: 6px;
  }

  .choice-wheel span {
    width: 54px;
    min-height: 17px;
  }

  .choice-wheel span > b {
    width: 100%;
    color: #fff8d8;
    font-size: 0.64rem;
    line-height: 0.9;
    -webkit-text-stroke: 1.15px rgba(5, 7, 8, 0.9);
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.95),
      0 2px 4px rgba(0, 0, 0, 0.82);
  }

  .choice-wheel span:nth-child(1),
  .choice-wheel span:nth-child(2),
  .choice-wheel span:nth-child(3),
  .choice-wheel span:nth-child(4),
  .choice-wheel span:nth-child(5),
  .choice-wheel span:nth-child(6) {
    transform: translate(-50%, -50%);
  }

  .choice-pin {
    grid-area: 1 / 1;
    position: relative;
    top: auto;
    left: auto;
    justify-self: center;
    align-self: center;
    width: 30px;
    height: 24px;
    transform: translateY(-80px);
    background: linear-gradient(180deg, #fff2b7 0%, #f45d48 62%, #a22d24 100%);
    filter:
      drop-shadow(0 0 4px rgba(255, 242, 183, 0.72))
      drop-shadow(0 5px 9px rgba(0, 0, 0, 0.72));
    z-index: 8;
  }

  .tool-grid {
    padding: 0 12px 9px;
  }

  .tool-button {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 7px;
  }

  .tool-label {
    display: none;
  }

  .tool-result {
    font-size: 0.78rem;
    line-height: 1;
    min-height: 0.9rem;
    position: relative;
    z-index: 2;
  }

  .coin-graphic {
    width: min(68px, 54%);
    border-width: 3px;
    box-shadow:
      inset 0 -5px 0 rgba(0, 0, 0, 0.24),
      0 8px 14px rgba(0, 0, 0, 0.3);
  }

  .coin-graphic::before {
    border-width: 2px;
  }

  .coin-graphic[data-side="heads"] .coin-face,
  .coin-graphic[data-side="tails"] .coin-face {
    border-width: 3px;
  }

  .coin-graphic[data-side="heads"] .coin-head-mark,
  .coin-graphic[data-side="tails"] .coin-tail-mark {
    width: 70%;
    height: 70%;
  }

  .tool-button.coin-flip::after {
    bottom: 28px;
    width: 58px;
    height: 12px;
  }
}

/* =====================================================================
   SPIN RESULT TOAST
   ===================================================================== */

.spin-toast[hidden] { display: none; }

.spin-toast {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(245,200,76,0.18), transparent 36%),
    rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}

.spin-toast.show {
  animation: spinToastOverlay 2.8s ease forwards;
  pointer-events: all;
}

.spin-toast-burst {
  position: absolute;
  width: min(880px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, rgba(245,200,76,0.6) 0deg 6deg, transparent 6deg 18deg),
    radial-gradient(circle, transparent 0 34%, rgba(255,240,166,0.14) 35% 46%, transparent 47%);
  mask-image: radial-gradient(circle, transparent 0 22%, #000 23% 100%);
  opacity: 0;
}

.spin-toast.show .spin-toast-burst {
  animation: spinToastBurst 1.8s ease-out forwards;
}

.spin-toast-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px 56px 36px;
  text-align: center;
  transform: scale(0.78);
}

.spin-toast.show .spin-toast-card {
  animation: spinToastCard 2.2s cubic-bezier(0.16, 0.86, 0.22, 1) forwards;
}

.spin-toast-kicker {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 8px rgba(0,0,0,0.38);
}

.spin-toast-result {
  display: block;
  max-width: 90vw;
  color: #ffffff;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
  word-break: break-word;
  text-shadow:
    0 7px 0 rgba(0,0,0,0.34),
    0 0 48px rgba(245,200,76,0.36);
}

@keyframes spinToastOverlay {
  0% { opacity: 0; }
  11%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes spinToastBurst {
  0% { opacity: 0; transform: scale(0.42) rotate(-14deg); }
  16% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.28) rotate(20deg); }
}

@keyframes spinToastCard {
  0% { opacity: 0; transform: translateY(36px) scale(0.68); }
  16%, 74% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.96); }
}

/* =====================================================================
   SPINNER OVERLAY SYSTEM
   ===================================================================== */

.spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  transition: opacity 380ms ease;
  cursor: pointer;
}

.spinner-overlay.show { opacity: 1; }
.spinner-overlay[hidden] { display: none; }

.spinner-overlay[data-type="clock"] {
  background: linear-gradient(135deg, #0d1012 0%, #15100e 52%, #101316 100%);
}
.spinner-overlay[data-type="weather"] { background: #1a2a3a; }
.spinner-overlay[data-type="ambient"] {
  background: #000;
  cursor: pointer;
}

.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* fill (not cover) so the whole frame is visible edge-to-edge — may stretch,
     but nothing is cropped (keeps the imby.gg watermark in view). */
  object-fit: fill;
  background: #000;
}

.ambient-video[hidden],
.ambient-saver-fallback[hidden] {
  display: none;
}
.spinner-overlay[data-type="mood"] {
  background: #050707;
  cursor: pointer;
}

body.wall-screen-active .wall-shell {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.spinner-overlay[data-type="sketch"] { background: #08090a; cursor: default; }
.spinner-overlay[data-type="note"] {
  background:
    linear-gradient(180deg, rgba(245,200,76,0.08), transparent 28%),
    #0d1012;
  cursor: default;
}
.spinner-overlay[data-type="timer"] { background: linear-gradient(135deg, #08090a, #0d1012); cursor: default; }
.spinner-overlay[data-type="meme"] { background: #000; cursor: pointer; }

.spinner-overlay-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spinner-overlay-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(0,0,0,0.44);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.spinner-overlay-close[hidden] { display: none; }

.overlay-tap-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255,255,255,0.26);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* ── CLOCK OVERLAY ─────────────────────────────────────────────────── */

.clock-overlay-wrap {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}

.overlay-big-time {
  display: block;
  color: #ffffff;
  font-size: clamp(5rem, 20vw, 20rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 14px 0 rgba(0,0,0,0.26);
}

.overlay-big-date {
  display: block;
  color: var(--muted);
  font-size: clamp(1.2rem, 3.2vw, 3.4rem);
  font-weight: 700;
}

/* ── AMBIENT OVERLAY ───────────────────────────────────────────────── */

.ambient-saver {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
}

.ambient-saver::before,
.ambient-saver::after {
  content: "";
  position: absolute;
  left: -18%;
  width: 136%;
  height: 5px;
  border-radius: 999px;
  opacity: 0.72;
  filter: blur(0.2px);
  transform: rotate(-11deg);
  animation: ambientSweep 9s linear infinite;
}

.ambient-saver::before {
  top: 28%;
  background: linear-gradient(90deg, transparent, rgba(35, 199, 172, 0.95), rgba(245, 200, 76, 0.86), transparent);
}

.ambient-saver::after {
  top: 67%;
  background: linear-gradient(90deg, transparent, rgba(93, 156, 236, 0.86), rgba(244, 93, 72, 0.9), transparent);
  animation-delay: -4.4s;
}

@keyframes ambientSweep {
  0% { translate: -34% 0; opacity: 0; }
  12% { opacity: 0.72; }
  58% { opacity: 0.5; }
  100% { translate: 34% 0; opacity: 0; }
}

/* ── MOOD LIGHT OVERLAY ────────────────────────────────────────────── */

.mood-light-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 93, 72, 0.62), rgba(245, 200, 76, 0.54) 28%, rgba(35, 199, 172, 0.58) 58%, rgba(93, 156, 236, 0.52)),
    #050707;
  animation: moodLightBase 22s ease-in-out infinite;
}

.mood-light-overlay::before,
.mood-light-overlay::after {
  content: "";
  position: absolute;
  inset: -16%;
  pointer-events: none;
}

.mood-light-overlay::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 26px);
  opacity: 0.32;
  transform: rotate(-8deg);
}

.mood-light-overlay::after {
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(255, 255, 255, 0.2) 23% 24%, transparent 25% 100%),
    linear-gradient(72deg, transparent 0 58%, rgba(255, 240, 166, 0.16) 59% 61%, transparent 62% 100%);
  animation: moodLightSheen 16s linear infinite;
  mix-blend-mode: screen;
}

.mood-light-band {
  position: absolute;
  left: -24%;
  width: 148%;
  height: 18%;
  border-radius: 999px;
  filter: blur(5px);
  opacity: 0.5;
  transform: rotate(-10deg);
  animation: moodLightBand 18s ease-in-out infinite;
}

.mood-light-band-1 {
  top: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 242, 183, 0.72), rgba(244, 93, 72, 0.64), transparent);
}

.mood-light-band-2 {
  top: 43%;
  background: linear-gradient(90deg, transparent, rgba(35, 199, 172, 0.72), rgba(93, 156, 236, 0.58), transparent);
  animation-delay: -6s;
}

.mood-light-band-3 {
  top: 70%;
  background: linear-gradient(90deg, transparent, rgba(135, 211, 124, 0.58), rgba(245, 200, 76, 0.62), transparent);
  animation-delay: -11s;
}

@keyframes moodLightBase {
  0%, 100% { filter: saturate(1.08) brightness(0.88); }
  45% { filter: saturate(1.38) brightness(1.04); }
  70% { filter: saturate(1.18) brightness(0.96); }
}

@keyframes moodLightSheen {
  0% { transform: translateX(-18%) rotate(0deg); }
  100% { transform: translateX(18%) rotate(0deg); }
}

@keyframes moodLightBand {
  0%, 100% { translate: -18% 0; opacity: 0.38; }
  50% { translate: 18% 0; opacity: 0.64; }
}

/* ── WEATHER OVERLAY ───────────────────────────────────────────────── */

.wx-overlay {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-overlay[data-wx="clear"]      { background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 35%, #fb923c 75%, #f97316 100%); }
.wx-overlay[data-wx="partlycloud"]{ background: linear-gradient(180deg, #1d4ed8 0%, #60a5fa 60%, #93c5fd 100%); }
.wx-overlay[data-wx="cloud"]      { background: linear-gradient(180deg, #374151 0%, #6b7280 100%); }
.wx-overlay[data-wx="rain"]       { background: linear-gradient(180deg, #1a2a4a 0%, #1e3a5f 55%, #0f172a 100%); }
.wx-overlay[data-wx="drizzle"]    { background: linear-gradient(180deg, #1f2d3d 0%, #374151 100%); }
.wx-overlay[data-wx="snow"]       { background: linear-gradient(180deg, #6b8ea8 0%, #b8d0e0 55%, #dce8f0 100%); }
.wx-overlay[data-wx="thunder"]    { background: linear-gradient(180deg, #050714 0%, #0f0f2e 55%, #1a0a2e 100%); }
.wx-overlay[data-wx="fog"]        { background: linear-gradient(180deg, #374151 0%, #6b7280 55%, #9ca3af 100%); }

.wx-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* Sun */
.wx-sun {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(110px, 18vw, 220px);
  height: clamp(110px, 18vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff9c4, #f5c84c 55%, #f4a020);
  box-shadow: 0 0 60px rgba(245,200,76,0.75), 0 0 120px rgba(244,160,32,0.45), 0 0 220px rgba(244,93,72,0.22);
  animation: wxSunPulse 5s ease-in-out infinite;
}
.wx-sun.wx-sun-small {
  top: 8%; left: 64%;
  width: clamp(70px, 11vw, 140px);
  height: clamp(70px, 11vw, 140px);
}
@keyframes wxSunPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(245,200,76,0.75), 0 0 120px rgba(244,160,32,0.45), 0 0 220px rgba(244,93,72,0.22); }
  50%       { box-shadow: 0 0 90px rgba(245,200,76,0.95), 0 0 180px rgba(244,160,32,0.65), 0 0 300px rgba(244,93,72,0.32); }
}

/* Clouds */
.wx-cloud {
  position: absolute;
  border-radius: 60px;
  background: rgba(255,255,255,0.88);
  animation: wxCloudDrift ease-in-out infinite;
}
.wx-cloud::before, .wx-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.wx-cloud.wx-cloud-dark  { background: rgba(55,55,85,0.88); }
.wx-cloud.wx-cloud-grey  { background: rgba(180,195,210,0.82); }

.wx-cloud-1 { top: 12%; left: 10%; width: clamp(200px, 34vw, 420px); height: clamp(58px, 10vw, 110px); animation-duration: 9s; }
.wx-cloud-1::before { width: 48%; height: 145%; top: -44%; left: 18%; }
.wx-cloud-1::after  { width: 36%; height: 125%; top: -28%; right: 22%; }

.wx-cloud-2 { top: 7%; right: 5%; width: clamp(160px, 26vw, 320px); height: clamp(44px, 8vw, 90px); animation-duration: 12s; animation-direction: reverse; opacity: 0.8; }
.wx-cloud-2::before { width: 44%; height: 150%; top: -48%; left: 20%; }
.wx-cloud-2::after  { width: 30%; height: 120%; top: -22%; right: 20%; }

.wx-cloud-3 { top: 26%; left: -3%; width: clamp(140px, 22vw, 280px); height: clamp(38px, 7vw, 80px); animation-duration: 15s; opacity: 0.65; }
.wx-cloud-3::before { width: 40%; height: 140%; top: -40%; left: 22%; }

@keyframes wxCloudDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.5%); } }

/* Rain */
.wx-drop {
  position: absolute;
  top: -26px;
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(148,210,255,0.78));
  border-radius: 1px;
  transform: rotate(14deg);
  animation: wxDropFall linear infinite;
}
@keyframes wxDropFall { to { transform: rotate(14deg) translateY(110vh); } }

/* Snow */
.wx-flake {
  position: absolute;
  top: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.84);
  animation: wxFlakeFall linear infinite;
}
@keyframes wxFlakeFall { to { transform: translateY(110vh) translateX(44px); } }

/* Lightning */
.wx-lightning {
  position: absolute;
  top: 20%;
  left: 44%;
  width: clamp(22px, 3.5vw, 42px);
  height: clamp(90px, 14vw, 180px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #c8d8ff 38%, #ffffff 55%, rgba(255,255,255,0) 100%);
  clip-path: polygon(38% 0%, 100% 0%, 62% 48%, 100% 48%, 0% 100%, 40% 48%, 0% 48%);
  animation: wxLightning 4.2s ease-in-out infinite;
}
@keyframes wxLightning {
  0%, 70%, 74%, 78%, 100% { opacity: 0; }
  71%, 76% { opacity: 1; filter: drop-shadow(0 0 18px #a0b8ff); }
}

/* Fog */
.wx-fog {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(160,174,192,0.5) 22%, transparent 48%, rgba(160,174,192,0.42) 72%, transparent 100%),
    linear-gradient(90deg, rgba(160,174,192,0.3) 0%, transparent 32%, rgba(160,174,192,0.38) 62%, transparent 100%);
  background-size: 200% 100%;
  animation: wxFogDrift 14s linear infinite;
}
@keyframes wxFogDrift { from { background-position: 0 0, 100% 0; } to { background-position: 200% 0, -100% 0; } }

/* Weather readout card */
.wx-readout {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 40px 56px;
  text-align: center;
  border-radius: 18px;
  background: rgba(0,0,0,0.34);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.13);
}
.wx-condition {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2.4vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wx-temp {
  display: block;
  color: #ffffff;
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 10px 0 rgba(0,0,0,0.26);
}
.wx-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.85rem, 1.6vw, 1.4rem);
  font-weight: 700;
}
.wx-details span + span::before { content: "·"; margin-right: 20px; opacity: 0.45; }

.overlay-loading, .overlay-error {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  text-align: center;
}

/* ── SKETCH OVERLAY ────────────────────────────────────────────────── */

.overlay-sketch-toolbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 80px 12px 18px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.overlay-sketch-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: crosshair;
}
.overlay-sketch-swatch {
  width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.overlay-sketch-swatch.active { border-color: #ffffff; box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.overlay-sketch-swatch[data-color="#f45d48"] { background: #f45d48; }
.overlay-sketch-swatch[data-color="#23c7ac"] { background: #23c7ac; }
.overlay-sketch-swatch[data-color="#f5c84c"] { background: #f5c84c; }
.overlay-sketch-swatch[data-color="#ffffff"]  { background: rgba(255,255,255,0.88); }
.overlay-sketch-swatch[data-color="#87d37c"]  { background: #87d37c; }
.overlay-sketch-swatch[data-color="#9b7cff"]  { background: #9b7cff; }
.overlay-sketch-clear {
  margin-left: auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* ── NOTE OVERLAY ──────────────────────────────────────────────────── */

.overlay-note-wrap {
  width: 100%;
  height: 100%;
  padding: 80px 10vw 60px;
  box-sizing: border-box;
  display: flex;
}
.overlay-note-area {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: clamp(1.4rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.45;
  outline: none;
  caret-color: var(--accent);
}
.overlay-note-area::placeholder { color: rgba(255,255,255,0.2); }

/* ── TIMER OVERLAY ─────────────────────────────────────────────────── */

.overlay-timer-wrap { display: grid; place-items: center; gap: 36px; text-align: center; }

.overlay-timer-readout {
  display: block;
  color: #ffffff;
  font-size: clamp(5rem, 20vw, 18rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 0 rgba(0,0,0,0.24);
}

.overlay-timer-controls { display: flex; gap: 16px; }

.overlay-timer-btn {
  min-height: 68px;
  min-width: 140px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.09);
  color: #ffffff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}
.overlay-timer-btn.primary {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}

/* ── MEME OVERLAY ──────────────────────────────────────────────────── */

.meme-overlay {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.meme-overlay.meme-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.meme-img-wrap {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 0;
}

.meme-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.meme-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.meme-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(35,199,172,0.18);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.meme-title {
  flex: 1;
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meme-next-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
}
