:root {
  --fp-art-primary: #66e6ff;
  --fp-art-secondary: #8b7bff;
  --fp-art-warm: #ffd166;
  --fp-art-ink: #f8fbff;
  --fp-art-muted: #aab9cf;
  --fp-art-deep: #050914;
  --fp-art-surface: #101a2f;
  --fp-art-radius: 22px;
  --fp-art-shadow: 0 28px 80px rgba(0, 0, 0, .48);
  --fp-art-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
  color-scheme: dark;
  background: var(--fp-art-deep);
}

body[data-fp-art] {
  color: var(--fp-art-ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-fp-art]::before,
body[data-fp-art]::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
}

body[data-fp-art]::before {
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--fp-art-primary) 19%, transparent), transparent 31%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--fp-art-secondary) 17%, transparent), transparent 29%),
    linear-gradient(145deg, color-mix(in srgb, var(--fp-art-surface) 62%, var(--fp-art-deep)), var(--fp-art-deep) 68%);
}

body[data-fp-art]::after {
  z-index: -1;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

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

.fp-artscape::before,
.fp-artscape::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  opacity: .24;
  filter: blur(1px);
}

.fp-artscape::before {
  top: 8%;
  left: -8vmax;
  width: 30vmax;
  height: 30vmax;
  border: 1px solid color-mix(in srgb, var(--fp-art-primary) 35%, transparent);
  box-shadow:
    inset 0 0 80px color-mix(in srgb, var(--fp-art-primary) 11%, transparent),
    0 0 110px color-mix(in srgb, var(--fp-art-primary) 10%, transparent);
  animation: fp-drift 15s var(--fp-art-ease) infinite alternate;
}

.fp-artscape::after {
  right: -5vmax;
  bottom: 3%;
  width: 23vmax;
  height: 23vmax;
  border: 1px solid color-mix(in srgb, var(--fp-art-secondary) 30%, transparent);
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--fp-art-secondary) 13%, transparent);
  animation: fp-drift 18s var(--fp-art-ease) -4s infinite alternate-reverse;
}

.fp-artscape__grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 75% 16%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 48% 72%, #fff 0 1px, transparent 1.2px),
    radial-gradient(circle at 87% 80%, #fff 0 1px, transparent 1.2px);
  background-size: 97px 83px, 131px 109px, 151px 137px, 179px 163px;
  animation: fp-star-drift 28s linear infinite;
}

/* Start, pause and result screens retain each engine's semantics but gain one
   consistent level of finish. The per-title variables are supplied locally. */
body[data-fp-art] :is(
  .fp-overlay,
  .arcade-overlay,
  .overlay,
  .screen,
  .modal
) {
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--fp-art-primary) 20%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--fp-art-deep) 72%, transparent), color-mix(in srgb, var(--fp-art-deep) 94%, transparent));
  backdrop-filter: blur(12px) saturate(118%);
}

body[data-fp-art] :is(
  .fp-overlay .fp-panel,
  .arcade-overlay .arcade-panel,
  .overlay .panel,
  .screen .start-panel,
  .modal .dialog
) {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fp-art-primary) 28%, rgba(255,255,255,.14));
  border-radius: var(--fp-art-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), transparent 28%),
    linear-gradient(155deg,
      color-mix(in srgb, var(--fp-art-surface) 94%, transparent),
      color-mix(in srgb, var(--fp-art-deep) 96%, transparent));
  box-shadow:
    var(--fp-art-shadow),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.28);
}

body[data-fp-art] :is(
  .fp-overlay .fp-panel,
  .arcade-overlay .arcade-panel,
  .overlay .panel,
  .screen .start-panel,
  .modal .dialog
)::before {
  position: absolute;
  z-index: 0;
  top: -7rem;
  right: -7rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fp-art-secondary) 18%, transparent), transparent 68%);
  content: "";
  pointer-events: none;
}

body[data-fp-art] :is(
  .fp-overlay .fp-panel,
  .arcade-overlay .arcade-panel,
  .overlay .panel,
  .screen .start-panel,
  .modal .dialog
) > * {
  position: relative;
  z-index: 1;
}

.fp-visual-hero {
  position: relative;
  width: min(100%, 29rem);
  height: 8.25rem;
  margin: -.35rem auto .75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fp-art-primary) 23%, rgba(255,255,255,.08));
  border-radius: calc(var(--fp-art-radius) - 7px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 35%),
    radial-gradient(circle at 70% 28%, color-mix(in srgb, var(--fp-art-warm) 20%, transparent), transparent 26%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--fp-art-primary) 24%, var(--fp-art-deep)),
      color-mix(in srgb, var(--fp-art-secondary) 20%, var(--fp-art-deep)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 16px 34px rgba(0,0,0,.24);
  isolation: isolate;
}

.fp-visual-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: perspective(180px) rotateX(61deg) scale(1.45) translateY(42%);
  transform-origin: 50% 100%;
}

.fp-visual-hero__horizon {
  position: absolute;
  right: -4%;
  bottom: -42%;
  left: -4%;
  height: 72%;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--fp-art-primary) 22%, var(--fp-art-deep)),
      color-mix(in srgb, var(--fp-art-deep) 96%, transparent));
  box-shadow: 0 -1px 25px color-mix(in srgb, var(--fp-art-primary) 20%, transparent);
}

.fp-visual-hero__orb {
  position: absolute;
  top: 13%;
  right: 10%;
  width: 2.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff, var(--fp-art-warm) 20%, var(--fp-art-secondary) 68%);
  box-shadow: 0 0 32px color-mix(in srgb, var(--fp-art-warm) 36%, transparent);
  animation: fp-float 4.2s var(--fp-art-ease) infinite;
}

.fp-visual-hero__spark {
  position: absolute;
  width: .3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--fp-art-primary);
  opacity: .8;
  animation: fp-twinkle 2.8s ease-in-out infinite;
}

.fp-visual-hero__spark:nth-child(2) { top: 20%; left: 16%; animation-delay: -.8s; }
.fp-visual-hero__spark:nth-child(3) { top: 66%; left: 76%; animation-delay: -1.7s; }
.fp-visual-hero__spark:nth-child(4) { top: 24%; left: 87%; animation-delay: -2.2s; }

.fp-visual-hero__mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 5.15rem;
  height: 5.15rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 1.55rem;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.03)),
    linear-gradient(135deg, var(--fp-art-primary), var(--fp-art-secondary));
  box-shadow:
    0 16px 34px rgba(0,0,0,.32),
    0 0 36px color-mix(in srgb, var(--fp-art-primary) 25%, transparent),
    inset 0 1px 0 rgba(255,255,255,.35);
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: fp-mark-enter .65s var(--fp-art-ease) both, fp-mark-breathe 4s 1s ease-in-out infinite;
}

.fp-visual-hero__mark svg {
  width: 66%;
  height: 66%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.22));
}

/* Scene identities */
body[data-fp-scene="sky"] .fp-visual-hero {
  background:
    radial-gradient(circle at 76% 22%, #fff7, transparent 2%),
    linear-gradient(180deg, color-mix(in srgb, var(--fp-art-primary) 48%, #284b88), color-mix(in srgb, var(--fp-art-secondary) 35%, #eff9ff));
}
body[data-fp-scene="sky"] .fp-visual-hero__horizon {
  bottom: -48%;
  background: linear-gradient(180deg, #fff9, color-mix(in srgb, var(--fp-art-primary) 25%, #e8f7ff));
  box-shadow: -8rem -1.2rem 0 -1.6rem #fff7, 8rem -.8rem 0 -1.8rem #fff8;
}

body[data-fp-scene="nature"] .fp-visual-hero {
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--fp-art-warm) 75%, white), transparent 11%),
    linear-gradient(165deg, color-mix(in srgb, var(--fp-art-primary) 42%, #173c39), color-mix(in srgb, var(--fp-art-secondary) 42%, #10241b));
}
body[data-fp-scene="nature"] .fp-visual-hero__horizon {
  height: 80%;
  clip-path: polygon(0 72%, 13% 39%, 28% 64%, 45% 21%, 61% 58%, 78% 29%, 100% 64%, 100% 100%, 0 100%);
  border-radius: 0;
  background: color-mix(in srgb, var(--fp-art-secondary) 43%, #08190f);
}

body[data-fp-scene="industrial"] .fp-visual-hero::before {
  opacity: .3;
  background-image:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.12) 48% 52%, transparent 53%),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 38px 100%, 100% 19px;
  transform: none;
}
body[data-fp-scene="industrial"] .fp-visual-hero__horizon {
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #07101d 0 25px, color-mix(in srgb, var(--fp-art-primary) 24%, #07101d) 26px 48px);
}

body[data-fp-scene="table"] .fp-visual-hero {
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--fp-art-primary) 38%, #19473d), #071a20 72%);
}
body[data-fp-scene="table"] .fp-visual-hero::before {
  opacity: .13;
  background: repeating-radial-gradient(ellipse at center, #fff 0 1px, transparent 1px 12px);
  transform: none;
}
body[data-fp-scene="table"] .fp-visual-hero__horizon { display: none; }

body[data-fp-scene="urban"] .fp-visual-hero__horizon {
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  border-radius: 0;
  clip-path: polygon(0 52%, 6% 52%, 6% 25%, 14% 25%, 14% 61%, 23% 61%, 23% 6%, 34% 6%, 34% 45%, 42% 45%, 42% 20%, 51% 20%, 51% 58%, 61% 58%, 61% 32%, 70% 32%, 70% 9%, 82% 9%, 82% 48%, 90% 48%, 90% 22%, 100% 22%, 100% 100%, 0 100%);
  background: color-mix(in srgb, var(--fp-art-secondary) 22%, #050914);
}

body[data-fp-scene="ocean"] .fp-visual-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--fp-art-primary) 40%, #195275), #06182d);
}
body[data-fp-scene="ocean"] .fp-visual-hero::after {
  position: absolute;
  right: -10%;
  bottom: 14%;
  left: -10%;
  height: 22%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 9px, rgba(255,255,255,.24) 10px 11px, transparent 12px 21px);
  content: "";
  animation: fp-wave 5s ease-in-out infinite alternate;
}
body[data-fp-scene="ocean"] .fp-visual-hero__horizon { bottom: -56%; background: #06101f99; }

body[data-fp-scene="cosmic"] .fp-visual-hero {
  background:
    radial-gradient(circle at 22% 34%, color-mix(in srgb, var(--fp-art-secondary) 42%, transparent), transparent 24%),
    radial-gradient(circle at 78% 52%, color-mix(in srgb, var(--fp-art-primary) 34%, transparent), transparent 20%),
    #050617;
}
body[data-fp-scene="cosmic"] .fp-visual-hero::before {
  opacity: .4;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.4px);
  background-size: 23px 23px;
  transform: none;
}

body[data-fp-scene="neon"] .fp-visual-hero {
  background:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--fp-art-primary) 36%, transparent) 50%, transparent 51%),
    linear-gradient(180deg, #091123, #03050b);
}
body[data-fp-scene="neon"] .fp-visual-hero::before {
  opacity: .46;
  transform: perspective(150px) rotateX(64deg) scale(1.6) translateY(35%);
  background-size: 21px 21px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fp-art-primary) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fp-art-secondary) 35%, transparent) 1px, transparent 1px);
}

/* Existing textual/emoji marks become secondary; the local vector scene is primary. */
body[data-fp-art] :is(
  .fp-overlay .game-mark,
  .arcade-overlay .game-mark,
  .overlay .game-icon,
  .screen .start-icon,
  .modal .mark
) {
  display: none !important;
}

body[data-fp-art] :is(.eyebrow, .kicker) {
  color: var(--fp-art-primary);
  font-weight: 900;
  letter-spacing: .16em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--fp-art-primary) 20%, transparent);
}

body[data-fp-art] :is(
  .fp-panel h1,
  .arcade-panel h1,
  .overlay .panel h1,
  .start-panel h2,
  .modal .dialog h2
) {
  color: var(--fp-art-ink);
  font-weight: 900;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0,0,0,.24);
}

/* Controls */
body[data-fp-art] :is(
  button,
  select,
  .icon-button,
  .tab-button,
  .skin-button
) {
  border-color: color-mix(in srgb, var(--fp-art-primary) 18%, rgba(255,255,255,.13));
  transition:
    transform 150ms var(--fp-art-ease),
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

body[data-fp-art] button {
  position: relative;
  overflow: hidden;
}

body[data-fp-art] button::after {
  position: absolute;
  top: -160%;
  bottom: -160%;
  left: -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(20deg);
  transition: left 420ms var(--fp-art-ease), opacity 180ms ease;
}

body[data-fp-art] button:hover:not(:disabled)::after {
  left: 118%;
  opacity: 1;
}

body[data-fp-art] button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--fp-art-primary) 58%, white);
  box-shadow: 0 9px 24px rgba(0,0,0,.24);
  transform: translateY(-2px);
}

body[data-fp-art] button:active:not(:disabled) {
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  transform: translateY(1px) scale(.98);
}

body[data-fp-art] button:disabled {
  filter: grayscale(.35) saturate(.6);
}

body[data-fp-art] :is(
  .primary,
  .primary-button,
  #play-button,
  #start-button
) {
  border: 1px solid rgba(255,255,255,.26);
  color: color-mix(in srgb, var(--fp-art-deep) 91%, black);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 46%),
    linear-gradient(135deg, var(--fp-art-primary), var(--fp-art-secondary));
  box-shadow:
    0 12px 30px color-mix(in srgb, var(--fp-art-primary) 25%, transparent),
    inset 0 1px 0 rgba(255,255,255,.38);
  font-weight: 950;
  letter-spacing: .015em;
}

body[data-fp-art] :is(
  .primary,
  .primary-button,
  #play-button,
  #start-button
)::before {
  display: inline-block;
  width: .58em;
  height: .72em;
  margin-right: .55em;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
  content: "";
  vertical-align: -.04em;
}

body[data-fp-art] button:focus-visible,
body[data-fp-art] select:focus-visible,
body[data-fp-art] [tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fp-art-primary) 75%, white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--fp-art-primary) 18%, transparent);
}

/* Icon buttons use local vector masks rather than text glyphs. */
body[data-fp-art] [data-fp-icon] {
  display: inline-grid;
  place-items: center;
  font-size: 0 !important;
}

body[data-fp-art] [data-fp-icon]::before {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  content: "";
  mask: var(--fp-control-icon) center / contain no-repeat;
}

[data-fp-icon="audio"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 9v6h4l5 4V5L8 9H4Zm12.2-.9a5.5 5.5 0 0 1 0 7.8l1.4 1.4a7.5 7.5 0 0 0 0-10.6l-1.4 1.4Z'/%3E%3C/svg%3E"); }
[data-fp-icon="pause"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 4h4v16H6zm8 0h4v16h-4z'/%3E%3C/svg%3E"); }
[data-fp-icon="restart"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5a7 7 0 1 1-6.4 4.2l2 1A5 5 0 1 0 12 7v3L7 6l5-4v3Z'/%3E%3C/svg%3E"); }
[data-fp-icon="settings"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m14 2 .6 2.2 2 .9 2-1.1 1.9 1.9-1.1 2 .9 2 2.2.6v2.8l-2.2.6-.9 2 1.1 2-1.9 1.9-2-1.1-2 .9-.6 2.2h-2.8l-.6-2.2-2-.9-2 1.1-1.9-1.9 1.1-2-.9-2L2 14.4v-2.8l2.2-.6.9-2-1.1-2L5.9 4l2 1.1 2-.9L10.5 2H14Zm-1.4 7A3.6 3.6 0 1 0 12.6 16a3.6 3.6 0 0 0 0-7Z'/%3E%3C/svg%3E"); }
[data-fp-icon="help"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 18h2v2h-2v-2Zm1-16a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-10c-2 0-3.4 1.2-3.5 3h2c.1-.8.6-1.2 1.5-1.2.8 0 1.4.4 1.4 1.2 0 .7-.4 1.1-1.2 1.6-1.1.7-1.3 1.4-1.3 2.7h2c0-.8.1-1.1.9-1.7 1-.7 1.7-1.4 1.7-2.8C15.5 7 14 6 12 6Z'/%3E%3C/svg%3E"); }
[data-fp-icon="effects"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 1.5 6.5L20 10l-6.5 1.5L12 18l-1.5-6.5L4 10l6.5-1.5L12 2Zm7 13 .8 3.2L23 19l-3.2.8L19 23l-.8-3.2L15 19l3.2-.8L19 15Z'/%3E%3C/svg%3E"); }
[data-fp-icon="vibration"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 5h10v14H7V5Zm2 2v10h6V7H9ZM3 8h2v8H3V8Zm-3 2h2v4H0v-4Zm19-2h2v8h-2V8Zm3 2h2v4h-2v-4Z'/%3E%3C/svg%3E"); }
[data-fp-icon="skin"] { --fp-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 2 3 6 7 .9-5 4.7 1.3 6.8L12 17l-6.3 3.4L7 13.6 2 9l7-.9 3-6Z'/%3E%3C/svg%3E"); }

.fp-score-bump {
  animation: fp-score-bump .28s var(--fp-art-ease);
}

.fp-ripple {
  position: fixed;
  z-index: 999;
  width: 10px;
  height: 10px;
  border: 2px solid color-mix(in srgb, var(--fp-art-primary) 78%, white);
  border-radius: 50%;
  pointer-events: none;
  animation: fp-ripple .45s var(--fp-art-ease) forwards;
}

.fp-result-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .2rem auto .65rem;
  padding: .35rem .7rem;
  border: 1px solid color-mix(in srgb, var(--fp-art-warm) 44%, transparent);
  border-radius: 999px;
  color: var(--fp-art-warm);
  background: color-mix(in srgb, var(--fp-art-warm) 10%, transparent);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-fp-art] :is(
  .hud-pill,
  .hud-box,
  .stat,
  .hud-stat,
  .fp-hud .stat,
  .resource-chip
) {
  border-color: color-mix(in srgb, var(--fp-art-primary) 18%, rgba(255,255,255,.12));
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    color-mix(in srgb, var(--fp-art-deep) 84%, transparent);
  box-shadow:
    0 8px 22px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
}

body[data-fp-art] :is(
  .hud-pill,
  .hud-box,
  .stat,
  .hud-stat,
  .fp-hud .stat
) strong {
  color: color-mix(in srgb, var(--fp-art-primary) 78%, white);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px color-mix(in srgb, var(--fp-art-primary) 20%, transparent);
}

body[data-fp-art] :is(
  .hero-card,
  .panel,
  .generator-card,
  .upgrade-card,
  .achievement-card,
  .mission-card,
  .stat-card,
  .prestige-card,
  .card,
  .instruction-card,
  .instructions p
) {
  box-shadow:
    0 12px 30px rgba(0,0,0,.17),
    inset 0 1px 0 rgba(255,255,255,.055);
}

body[data-fp-art] :is(
  .generator-card,
  .upgrade-card,
  .achievement-card,
  .mission-card,
  .stat-card,
  .prestige-card
):hover {
  border-color: color-mix(in srgb, var(--fp-art-primary) 35%, rgba(255,255,255,.12));
  transform: translateY(-1px);
}

.fp-manual-action {
  display: grid !important;
  overflow: visible !important;
  place-items: center;
  color: #fff !important;
  font-size: 0 !important;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.34), transparent 18%),
    linear-gradient(145deg, var(--fp-art-primary), var(--fp-art-secondary)) !important;
  box-shadow:
    0 18px 44px color-mix(in srgb, var(--fp-art-primary) 28%, transparent),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -10px 24px rgba(0,0,0,.16) !important;
}

.fp-manual-action::before {
  position: absolute;
  z-index: -1;
  width: 118%;
  height: 118%;
  border: 1px solid color-mix(in srgb, var(--fp-art-primary) 32%, transparent);
  border-radius: inherit;
  content: "";
  animation: fp-action-ring 2.6s ease-out infinite;
}

.fp-manual-action__icon {
  display: grid;
  width: 52%;
  height: 52%;
  place-items: center;
  pointer-events: none;
}

.fp-manual-action__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.22));
}

.fp-manual-action:active .fp-manual-action__icon {
  transform: scale(.88) rotate(-4deg);
}

body[data-fp-art] :is(.progress, .meter, .progress-wrap, .turbo-meter, .speed-meter) {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: color-mix(in srgb, var(--fp-art-deep) 80%, black);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28);
}

body[data-fp-art] :is(.progress, .meter, .progress-wrap, .turbo-meter, .speed-meter) :is(i, span, div) {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent) 0 0 / 70px 100%,
    linear-gradient(90deg, var(--fp-art-primary), var(--fp-art-secondary));
  box-shadow: 0 0 16px color-mix(in srgb, var(--fp-art-primary) 28%, transparent);
}

body[data-fp-art] :is(.toast, .announcement, .hand-name, .combo, .combo-pill) {
  border-color: color-mix(in srgb, var(--fp-art-primary) 38%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
}

@keyframes fp-mark-enter {
  from { opacity: 0; transform: translate(-50%, -36%) rotate(-10deg) scale(.72); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
}
@keyframes fp-mark-breathe {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
  50% { transform: translate(-50%, -53%) rotate(1deg) scale(1.035); }
}
@keyframes fp-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
@keyframes fp-twinkle {
  0%, 100% { opacity: .22; transform: scale(.7); }
  50% { opacity: .9; transform: scale(1.3); }
}
@keyframes fp-drift {
  to { transform: translate(8vw, 4vh) scale(1.08); }
}
@keyframes fp-star-drift {
  to { transform: translate3d(0, 83px, 0); }
}
@keyframes fp-wave {
  to { transform: translateX(2%) translateY(-5px); }
}
@keyframes fp-score-bump {
  40% { color: #fff; transform: scale(1.22); }
}
@keyframes fp-ripple {
  to { opacity: 0; transform: scale(7); }
}
@keyframes fp-action-ring {
  0% { opacity: .8; transform: scale(.86); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}

@media (max-width: 620px) {
  :root { --fp-art-radius: 19px; }
  .fp-visual-hero {
    height: 6.35rem;
    margin-bottom: .55rem;
  }
  .fp-visual-hero__mark {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
  }
  body[data-fp-art] :is(
    .fp-overlay .fp-panel,
    .arcade-overlay .arcade-panel,
    .overlay .panel,
    .screen .start-panel,
    .modal .dialog
  ) {
    max-width: min(100%, 31rem);
  }
}

@media (max-height: 680px) {
  .fp-visual-hero { height: 4.8rem; margin-bottom: .4rem; }
  .fp-visual-hero__mark { width: 3.65rem; height: 3.65rem; border-radius: 1rem; }
  body[data-fp-art] :is(.screen-copy, .fp-copy, #screen-copy) { margin-block: .45rem; line-height: 1.35; }
}

@media (max-height: 450px) and (orientation: landscape) {
  .fp-visual-hero {
    position: absolute;
    top: .8rem;
    left: .8rem;
    width: 5rem;
    height: 5rem;
    margin: 0;
  }
  .fp-visual-hero__horizon,
  .fp-visual-hero__orb,
  .fp-visual-hero__spark { display: none; }
  .fp-visual-hero__mark { width: 3.4rem; height: 3.4rem; }
  body[data-fp-art] :is(
    .fp-overlay .fp-panel,
    .arcade-overlay .arcade-panel,
    .overlay .panel,
    .screen .start-panel,
    .modal .dialog
  ) { padding-left: 6.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-artscape *,
  .fp-artscape::before,
  .fp-artscape::after,
  .fp-visual-hero *,
  .fp-visual-hero::before,
  .fp-visual-hero::after,
  .fp-score-bump,
  .fp-ripple {
    animation: none !important;
    transition-duration: .001ms !important;
  }
  body[data-fp-art] button::after { display: none; }
}

body[data-effects-reduced="true"] .fp-artscape,
body[data-effects-reduced="true"] .fp-visual-hero__spark,
body[data-effects-reduced="true"] .fp-visual-hero__orb {
  animation: none !important;
  opacity: .08;
}
