/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Palette – warm, refined neutrals */
  --bg: #f6f2eb;
  --sky-a: #a8d4ff;
  --sky-b: #fce8b8;
  --text: #1a2332;
  --muted: #6b7a8a;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(26, 35, 50, 0.08);
  --coin-a: #f9d97a;
  --coin-b: #b87a1a;
  --coin-c: #fff8d4;
  --shadow: rgba(40, 30, 10, 0.22);
  --result-bg: rgba(255, 255, 255, 0.88);
  --control-bg: rgba(255, 255, 255, 0.55);
  --accent: #c4842a;
  --accent-soft: rgba(196, 132, 42, 0.12);

  /* Radii scale */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1.25rem;
  --r-full: 999px;

  /* Shadow scale */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1), 0 16px 48px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.12), 0 24px 64px rgba(0, 0, 0, 0.08);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;

  /* Type scale */
  --fs-xs: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-md: 0.95rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(2.2rem, 5vw, 4rem);

  /* Easing */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.18, 0.9, 0.25, 1.1);
}

/* ============================================
   DARK THEME
   ============================================ */
body[data-theme="night"] {
  --bg: #0d1220;
  --sky-a: #101828;
  --sky-b: #1e2d45;
  --text: #eaf0f8;
  --muted: #8a9bb5;
  --panel: rgba(16, 22, 38, 0.72);
  --panel-border: rgba(234, 240, 248, 0.08);
  --coin-a: #e8c85a;
  --coin-b: #8a5c14;
  --coin-c: #f5e09a;
  --shadow: rgba(0, 0, 0, 0.5);
  --result-bg: rgba(16, 22, 38, 0.88);
  --control-bg: rgba(14, 20, 34, 0.6);
  --accent: #e8b84a;
  --accent-soft: rgba(232, 184, 74, 0.1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, 0.6), transparent 20rem),
    radial-gradient(ellipse at 80% 80%, rgba(255, 240, 200, 0.15), transparent 18rem),
    linear-gradient(160deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--bg) 100%);
  transition:
    background 600ms var(--ease-out),
    color 400ms ease;
}

/* ============================================
   AMBIENT SKY SCENE
   ============================================ */
.sky-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-scene::before,
.sky-scene::after {
  position: absolute;
  inset: -25%;
  content: "";
  opacity: 0.3;
  animation: drift 20s ease-in-out infinite alternate;
}

.sky-scene::before {
  background:
    radial-gradient(circle at 22% 32%, rgba(255, 255, 255, 0.7), transparent 12rem),
    radial-gradient(circle at 74% 22%, rgba(255, 225, 150, 0.35), transparent 14rem),
    radial-gradient(circle at 58% 78%, rgba(100, 165, 200, 0.12), transparent 16rem);
}

.sky-scene::after {
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(70deg, transparent 48%, rgba(255, 235, 180, 0.1), transparent 70%);
  animation-duration: 28s;
}

/* ============================================
   ORBS & CLOUDS
   ============================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  transition:
    opacity 600ms var(--ease-out),
    transform 800ms var(--ease-out);
}

.orb-sun {
  right: 10%;
  top: 15%;
  width: clamp(5rem, 9vw, 7.5rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 38% 35%, #fff9c4, #ffcc44 50%, #e08a20);
  box-shadow:
    0 0 3rem rgba(255, 200, 60, 0.4),
    0 0 8rem rgba(255, 200, 60, 0.15);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-moon {
  right: 11%;
  top: 14%;
  width: clamp(4.5rem, 8.5vw, 6.5rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 35%, #ffffff, #d4e2ff 55%, #8ea5c8);
  box-shadow:
    inset -1rem -0.5rem 0 rgba(80, 100, 140, 0.2),
    0 0 4rem rgba(180, 210, 255, 0.3);
  opacity: 0;
  transform: translateY(2rem) scale(0.8);
  animation: floatOrb 9s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: clamp(8rem, 16vw, 14rem);
  height: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.3);
  filter: blur(1px);
  animation: cloudDrift 28s linear infinite;
}

.cloud::before,
.cloud::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 18%;
  bottom: 20%;
  width: 36%;
  aspect-ratio: 1;
}

.cloud::after {
  right: 16%;
  bottom: 16%;
  width: 44%;
  aspect-ratio: 1;
}

.cloud-one {
  left: 6%;
  top: 22%;
}

.cloud-two {
  right: 12%;
  bottom: 16%;
  animation-delay: -14s;
  animation-duration: 34s;
}

/* Stars */
.star {
  position: absolute;
  width: 0.22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0.8rem rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

.star-one { left: 14%; top: 22%; }
.star-two { left: 70%; top: 28%; animation-delay: 800ms; }
.star-three { left: 58%; top: 65%; animation-delay: 1.4s; }

/* Night overrides */
body[data-theme="night"] .orb-sun,
body[data-theme="night"] .cloud {
  opacity: 0;
}

body[data-theme="night"] .orb-sun {
  transform: translateY(-2rem) scale(0.8);
}

body[data-theme="night"] .orb-moon,
body[data-theme="night"] .star {
  opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes drift {
  from { transform: translate3d(-1.2%, -0.8%, 0) rotate(0deg); }
  to   { transform: translate3d(1.2%, 0.8%, 0) rotate(2.5deg); }
}

@keyframes floatOrb {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 0.8rem; }
}

@keyframes cloudDrift {
  from { translate: -7vw 0; }
  to   { translate: 7vw 0; }
}

@keyframes twinkle {
  0%, 100% { scale: 0.7; opacity: 0.6; }
  50%      { scale: 1.4; opacity: 1; }
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  padding: var(--space-xl) clamp(1rem, 3vw, 2.5rem);
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: min(100%, 1100px);
  margin: 0 auto;
}

.eyebrow {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  margin-top: 0.3rem;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hint {
  margin: 0;
}

/* ============================================
   GAME PANEL (CONTROLS)
   ============================================ */
.game-panel {
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: min(100%, 1100px);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  background: var(--control-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

/* Fields */
.field {
  display: grid;
  gap: var(--space-xs);
}

.field.is-hidden {
  display: none;
}

.field label {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Form controls */
select,
input,
.control-button {
  min-height: 2.6rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--r-md);
  margin-top: auto;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--panel);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

select,
input {
  min-width: 8.5rem;
  padding: 0 0.8rem;
}

input {
  width: 6.5rem;
  min-width: 6.5rem;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Buttons */
.control-button {
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.control-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.control-button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: 0 2px 8px rgba(196, 132, 42, 0.3);
}

/* ============================================
   THEME PICKER
   ============================================ */
.theme-picker {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--r-full);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.theme-option {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.2rem;
  padding: 0 0.7rem;
  cursor: pointer;
  border: none;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  background: transparent;
  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.theme-option.is-active {
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.sun,
.moon {
  z-index: 1;
  justify-self: center;
  width: 0.9rem;
  height: 0.9rem;
}

.sun {
  border-radius: 50%;
  background: #f5a623;
  box-shadow: 0 0 0 0.25rem rgba(245, 166, 35, 0.18);
}

.moon {
  border-radius: 50%;
  background: #5a6d8a;
  box-shadow: inset -0.3rem 0.05rem 0 #eef2ff;
}

/* ============================================
   COIN STAGE
   ============================================ */
.coin-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  perspective: 1000px;
}

.coin-button {
  display: grid;
  place-items: center;
  width: clamp(12rem, 40vmin, 22rem);
  aspect-ratio: 1;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 2rem 2.5rem var(--shadow));
  transition: transform 300ms var(--ease-out);
}

.coin-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1rem;
  border-radius: 50%;
}

.coin-button:disabled {
  cursor: wait;
  opacity: 0.85;
}

.coin-button:hover {
  transform: translateY(-0.2rem) scale(1.02);
}

.coin-button:active {
  transform: translateY(0) scale(0.98);
}

/* Coin 3D */
.coin {
  position: relative;
  width: 84%;
  height: 84%;
  transform-style: preserve-3d;
  transform: rotateY(0deg) rotateX(0deg);
}

.coin::before {
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: conic-gradient(from 25deg, #7a4a10, #ffe896, #905810, #f0c050, #7a4a10);
  content: "";
  transform: translateZ(-0.1rem);
}

.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0.4rem solid var(--coin-b);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, var(--coin-c), transparent 20%),
    radial-gradient(circle at 50% 55%, var(--coin-a) 30%, var(--coin-b) 100%);
  box-shadow:
    inset 0 0 0 0.5rem rgba(255, 255, 255, 0.2),
    inset 0 -1rem 2rem rgba(100, 60, 10, 0.22);
  backface-visibility: hidden;
}

.coin-front {
  transform: translateZ(0.65rem);
}

.coin-back {
  transform: rotateY(180deg) translateZ(0.65rem);
}

.coin-ring {
  position: absolute;
  inset: 14%;
  border: 0.3rem dashed rgba(110, 70, 10, 0.35);
  border-radius: 50%;
}

.coin-image {
  z-index: 1;
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter:
    drop-shadow(0 0.15rem 0.2rem rgba(255, 255, 255, 0.3))
    drop-shadow(0 0.4rem 0.5rem rgba(80, 50, 5, 0.2));
  pointer-events: none;
  user-select: none;
}

.coin-label {
  position: absolute;
  bottom: 18%;
  color: rgba(90, 55, 8, 0.7);
  font-size: clamp(0.8rem, 2.2vmin, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hint */
.hint {
  position: absolute;
  bottom: clamp(4.5rem, 9vh, 7rem);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    opacity 300ms ease,
    transform 300ms var(--ease-out);
}

.hint.is-hidden {
  opacity: 0;
  transform: translateY(0.5rem);
}

/* ============================================
   SCORE PANEL
   ============================================ */
.score-panel {
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-md);
  width: min(100%, 1100px);
  margin: 0 auto var(--space-sm);
}

.score-card,
.score-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: min(11rem, 30vw);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  background: var(--control-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.score-card span,
.score-status span {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-card strong,
.score-status strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.score-status {
  min-width: min(16rem, 34vw);
}

.score-status strong {
  color: var(--accent);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================
   RESULT PANEL
   ============================================ */
.result-panel {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  display: grid;
  gap: 0.15rem;
  min-width: min(20rem, calc(100vw - 2rem));
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  background: var(--result-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  opacity: 0;
  transform: translate(-50%, 130%);
  transition:
    opacity 350ms var(--ease-out),
    transform 500ms var(--ease-spring);
}

.result-panel.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.result-caption {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-panel strong {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-panel small {
  min-height: 1.2rem;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ============================================
   SECRET BUTTON
   ============================================ */
.secret-button {
  min-width: 3.4rem;
  letter-spacing: 0.08em;
}

/* ============================================
   CELEBRATION (CONFETTI)
   ============================================ */
.celebration {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.celebration span {
  position: absolute;
  top: -1rem;
  width: 0.5rem;
  height: 0.85rem;
  border-radius: 0.1rem;
  background: var(--accent);
  opacity: 0;
  animation: confettiFall 3s cubic-bezier(0.2, 0.7, 0.25, 1) var(--delay) forwards;
}

.celebration span:nth-child(3n)  { background: #5cc8f0; }
.celebration span:nth-child(4n)  { background: #f06080; }
.celebration span:nth-child(5n)  { background: #f5e86c; }

@keyframes confettiFall {
  0%   { opacity: 0; transform: translate3d(0, -1rem, 0) rotate(0deg); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), 108vh, 0) rotate(var(--spin)); }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  background: rgba(5, 10, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.modal-panel {
  display: grid;
  gap: var(--space-md);
  width: min(26rem, 100%);
  padding: var(--space-xl);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  color: var(--text);
  background: var(--result-bg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-panel strong {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.modal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.modal-panel label {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-list {
  display: grid;
  gap: var(--space-sm);
  max-height: min(48vh, 22rem);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-md);
  background: var(--control-bg);
  transition: background 200ms ease;
}

.leaderboard-list li:hover {
  background: var(--panel);
}

.leaderboard-list strong {
  font-size: var(--fs-md);
  font-weight: 700;
}

.leaderboard-list span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: right;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: min(44rem, calc(100vw - 2rem));
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  color: var(--text);
  background: var(--result-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: var(--fs-md);
  font-weight: 700;
}

.cookie-banner p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-sm);
}

/* ============================================
   SCROLLBAR (subtle)
   ============================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: var(--r-full);
  background: var(--muted);
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .app {
    padding: var(--space-lg) var(--space-md);
    row-gap: var(--space-lg);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }

  .game-panel {
    justify-content: stretch;
    flex-direction: column;
    gap: var(--space-md);
  }

  .field,
  select,
  input,
  .control-button {
    width: 100%;
  }

  .coin-button {
    width: min(72vw, 16rem);
  }

  .score-panel {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .score-card,
  .score-status {
    min-width: 0;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

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

/* ============================================
   ACCESSIBILITY – REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
