:root {
  --ink: #14200d; --cream: #fff3d6; --pickle: #8fd62a; --gold: #ffc83a; --hot: #ff5438;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0d1a0c; overflow: hidden; font-family: var(--font); color: var(--cream); overscroll-behavior: none; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- sticker buttons ---- */
.sheet button, .padbtn, .pill {
  min-height: 50px; padding: 0 22px; border-radius: 16px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: 17px; letter-spacing: 0.01em; box-shadow: 0 5px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.sheet button:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.sheet button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.sheet button.primary { background: var(--pickle); }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- chrome ---- */
#chrome { position: fixed; z-index: 6; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: 8px; }
#chrome button { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
#chrome button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
#chrome button[hidden] { display: none; }
#chrome svg { width: 22px; height: 22px; fill: currentColor; }
#btn-sound .on { display: none; } #btn-sound.on .on { display: inline; } #btn-sound.on .off { display: none; }

/* ---- menu ---- */
#menu { position: fixed; inset: 0; z-index: 3; overflow-y: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(13, 26, 12, 0.1) 0, rgba(13, 26, 12, 0.55) 46%, rgba(13, 26, 12, 0.92) 100%); }
#menu[hidden] { display: none; }
#menu header { max-width: 1080px; margin: 0 auto; padding-top: 4px; text-align: center; }
#back { position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(18px, env(safe-area-inset-top)); color: var(--cream); font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 6px; opacity: 0.85; }
#back:hover { opacity: 1; }
h1 { margin: 34px 0 0; font-size: clamp(54px, 13vw, 132px); line-height: 0.86; font-weight: 900; letter-spacing: -0.045em; text-transform: uppercase; color: var(--pickle);
  -webkit-text-stroke: clamp(3px, 0.55vw, 6px) var(--ink); paint-order: stroke fill; text-shadow: 0 clamp(5px, 0.9vw, 10px) 0 var(--ink); }
h1 span { display: inline-block; animation: wob 3.4s ease-in-out infinite; }
h1 span + span { color: var(--gold); animation-delay: -1.7s; }
@keyframes wob { 0%, 100% { transform: rotate(-2.2deg) translateY(0); } 50% { transform: rotate(2.2deg) translateY(-6px); } }
#strap { margin: 20px 0 0; font-weight: 800; font-size: clamp(15px, 2.2vw, 20px); letter-spacing: 0.02em; color: var(--cream); text-shadow: 0 2px 0 var(--ink); }
#grid { max-width: 1080px; margin: clamp(120px, 26vh, 260px) auto 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.game { position: relative; text-align: left; padding: 18px 18px 16px; min-height: 148px; border-radius: 24px; border: 4px solid var(--ink); background: var(--c, var(--pickle)); color: var(--ink);
  box-shadow: 0 8px 0 var(--ink); transition: transform 0.12s cubic-bezier(.3,1.6,.5,1), box-shadow 0.12s; display: flex; flex-direction: column; overflow: hidden; }
.game::after { content: ''; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.game:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 12px 0 var(--ink); }
.game:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.game.big { grid-column: span 2; min-height: 176px; }
.game h3 { margin: 0; font-size: 30px; line-height: 0.95; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; position: relative; z-index: 1; }
.game.big h3 { font-size: clamp(34px, 5vw, 50px); }
.game p { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.25; opacity: 0.86; position: relative; z-index: 1; max-width: 30ch; }
.game .best { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0.8; position: relative; z-index: 1; }
.game .tag { position: absolute; right: 14px; bottom: 14px; z-index: 1; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--cream); }
@media (max-width: 560px) { #grid { grid-template-columns: 1fr 1fr; gap: 12px; } .game { min-height: 132px; padding: 14px; border-radius: 20px; } .game h3 { font-size: 22px; } .game p { font-size: 13px; } .game.big { grid-column: span 2; } .game .tag { display: none; } }

/* ---- sheets ---- */
.sheet { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 20px; background: rgba(8, 16, 7, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[hidden] { display: none; }
.card { width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 26px 24px 24px; border-radius: 28px; border: 4px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 0 10px 0 var(--ink); text-align: center; animation: pop 0.35s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(0.8) rotate(-3deg); opacity: 0; } }
.card h2 { margin: 0; font-size: clamp(38px, 9vw, 64px); line-height: 0.9; font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.card p { margin: 10px 0 0; font-weight: 700; font-size: 17px; line-height: 1.35; }
.card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.card li { padding: 11px 14px; border-radius: 14px; background: rgba(20, 32, 13, 0.08); font-weight: 700; font-size: 15px; line-height: 1.3; }
.card li b { font-weight: 900; }
.card .row { margin-top: 22px; }
#res-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; }
#res-score { margin-top: 14px; font-size: clamp(56px, 16vw, 104px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #2f7a12; }
#res-best { font-size: 15px; opacity: 0.75; }
#res-best.new { opacity: 1; color: var(--hot); font-weight: 900; }
#res-lines { margin-top: 12px; display: grid; gap: 6px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
#res-lines .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(20, 32, 13, 0.08); text-align: left; }
#res-lines .line.you { background: var(--pickle); font-weight: 900; }
#howto-extra { margin-top: 16px; }
#howto-extra:empty { display: none; }

/* ---- HUD ---- */
#hud { position: fixed; z-index: 4; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: 120px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.chip { display: flex; flex-direction: column; justify-content: center; min-width: 74px; padding: 6px 14px 7px; border-radius: 16px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 var(--ink); font-variant-numeric: tabular-nums; }
.chip small { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; line-height: 1.1; }
.chip small:empty { display: none; }
.chip b { font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.chip.bump b { animation: bump 0.22s; display: inline-block; }
@keyframes bump { 40% { transform: scale(1.18); } }
#custom { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#custom > * { pointer-events: auto; }
#big { position: fixed; z-index: 5; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; font-size: clamp(64px, 20vw, 190px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; text-transform: uppercase; color: var(--gold);
  -webkit-text-stroke: clamp(4px, 0.8vw, 9px) var(--ink); paint-order: stroke fill; text-shadow: 0 clamp(6px, 1.2vw, 14px) 0 var(--ink); opacity: 0; transform: scale(0.4) rotate(-8deg); }
#big.show { animation: bigin 0.5s cubic-bezier(.3,1.7,.5,1) forwards; }
@keyframes bigin { to { opacity: 1; transform: scale(1) rotate(-3deg); } }
#toast { position: fixed; z-index: 5; left: 50%; bottom: max(110px, calc(env(safe-area-inset-bottom) + 96px)); translate: -50% 0; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 800; font-size: 15px; text-align: center; box-shadow: 0 4px 0 var(--ink); opacity: 0; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

/* ---- touch pad ---- */
#pad { position: fixed; z-index: 5; inset: auto 0 0 0; height: 46%; pointer-events: none; }
#pad[hidden] { display: none; }
#pad .steer { position: absolute; left: 0; bottom: 0; width: 56%; height: 100%; pointer-events: auto; display: flex; align-items: flex-end; gap: 12px; padding: 0 0 max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); touch-action: none; }
#pad .steer span { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 22px; border: 3px solid var(--ink); background: rgba(255, 243, 214, 0.86); color: var(--ink); font-size: 30px; box-shadow: 0 5px 0 var(--ink); }
#pad .steer[data-on="l"] span:first-child, #pad .steer[data-on="r"] span:last-child { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); background: var(--pickle); }
#pad .btns { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: flex-end; pointer-events: auto; }
.padbtn { min-width: 82px; height: 82px; padding: 0 12px; border-radius: 24px; background: var(--c); font-size: 15px; touch-action: none; }
.padbtn.on { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

#wipe { position: fixed; inset: 0; z-index: 20; background: var(--pickle); pointer-events: none; clip-path: circle(0% at 50% 50%); transition: clip-path 0.38s cubic-bezier(.6,0,.3,1); }
#wipe.on { clip-path: circle(150% at 50% 50%); }
@media (prefers-reduced-motion: reduce) { h1 span, .card { animation: none; } #wipe { transition: none; } }

/* ---- Pickle Cart ---- */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: left; max-height: 38vh; overflow-y: auto; padding: 2px 4px 8px 2px; }
.tracks h4 { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
.sheet .trk { min-height: 54px; padding: 6px 12px 6px 8px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border-radius: 14px; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }
.trk i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--cream); font-style: normal; font-weight: 900; font-size: 15px; }
.trk span { font-weight: 900; line-height: 1.1; align-self: end; }
.trk small { font-size: 12px; font-weight: 700; opacity: 0.65; font-variant-numeric: tabular-nums; align-self: start; }
.sheet .trk[aria-pressed="true"] { background: var(--gold); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.track-blurb { min-height: 2.7em; font-size: 15px !important; }
@media (max-width: 460px) { .tracks { grid-template-columns: 1fr; max-height: 34vh; } }
.minimap { position: fixed; right: max(12px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 58px); width: 132px; height: 132px; border-radius: 20px; border: 3px solid var(--ink); background: rgba(255, 243, 214, 0.82); box-shadow: 0 4px 0 var(--ink); pointer-events: none !important; }
.itemslot { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); translate: -50% 0; min-width: 132px; height: 50px; padding: 0 16px; display: grid; place-items: center; border-radius: 16px; border: 3px dashed rgba(20, 32, 13, 0.55); background: rgba(255, 243, 214, 0.5); color: var(--ink); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; pointer-events: none !important; }
.itemslot.has { border-style: solid; border-color: var(--ink); background: var(--cream); box-shadow: 0 4px 0 var(--ink); animation: bump 0.25s; }
@media (max-width: 640px) { .minimap { width: 96px; height: 96px; } .itemslot { top: auto; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 96px); left: auto; right: max(16px, env(safe-area-inset-right)); translate: 0 0; min-width: 0; height: 40px; font-size: 13px; } }
@media (max-width: 640px) { #hud { right: 118px; gap: 6px; } .chip { min-width: 52px; padding: 4px 9px 5px; border-radius: 13px; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); } .chip b { font-size: 18px; } .chip small { font-size: 9px; } }

/* ---- guide ---- */
#guide-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; }
#guide .card h2 { font-size: clamp(30px, 7vw, 46px); line-height: 0.95; margin-top: 16px; }
#guide-text { min-height: 4.1em; }
#guide-art:empty, #guide-chips:empty { display: none; }
.art { display: grid; justify-items: center; gap: 10px; padding: 22px 16px 16px; border-radius: 22px; background: var(--pickle); border: 3px solid var(--ink); }
.art-word { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.keys { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
kbd { min-width: 58px; height: 58px; padding: 0 14px; display: grid; place-items: center; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 6px 0 var(--ink); font: 900 24px/1 var(--font); animation: key 1.5s ease-in-out infinite; }
kbd:nth-child(2) { animation-delay: 0.75s; } kbd:nth-child(3) { animation-delay: 0.35s; }
kbd.wide { font-size: 16px; min-width: 96px; }
@keyframes key { 0%, 40%, 100% { transform: none; box-shadow: 0 6px 0 var(--ink); } 15% { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); background: var(--gold); } }
.gesture { position: relative; width: 190px; height: 74px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.gesture .arrow { font-style: normal; font-size: 22px; opacity: 0.55; }
.finger { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.finger.mouse { border-radius: 16px 16px 22px 22px; height: 52px; width: 38px; }
.g-swipe-lr .finger, .g-drag .finger { animation: swipeLR 1.5s ease-in-out infinite; }
.g-swipe-up .finger { animation: swipeUp 1.3s ease-in-out infinite; } .g-swipe-up, .g-swipe-down, .g-drag-back { flex-direction: column; height: 112px; gap: 6px; }
.g-swipe-down .finger { animation: swipeDown 1.3s ease-in-out infinite; }
.g-tap .finger { animation: tap 1.1s ease-in-out infinite; }
.g-hold .finger { animation: hold 2.2s ease-in-out infinite; }
.g-drag-back .finger { animation: pull 1.8s cubic-bezier(.5,0,.2,1) infinite; } .g-drag-back .post { width: 70px; height: 10px; border-radius: 6px; background: var(--ink); }
.g-steer .pad { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 5px 0 var(--ink); font-size: 24px; }
.g-steer .pad.on { animation: key 1.5s ease-in-out infinite; }
@keyframes swipeLR { 0%, 100% { transform: translateX(-46px); } 50% { transform: translateX(46px); } }
@keyframes swipeUp { 0%, 20% { transform: translateY(22px); opacity: 1; } 70% { transform: translateY(-14px); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes swipeDown { 0%, 20% { transform: translateY(-14px); opacity: 1; } 70% { transform: translateY(22px); opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
@keyframes tap { 0%, 100% { transform: scale(1); box-shadow: 0 5px 0 var(--ink), 0 0 0 0 rgba(20,32,13,0.4); } 30% { transform: scale(0.82) translateY(4px); box-shadow: 0 1px 0 var(--ink), 0 0 0 0 rgba(20,32,13,0.4); } 70% { box-shadow: 0 5px 0 var(--ink), 0 0 0 22px rgba(20,32,13,0); } }
@keyframes hold { 0%, 8% { transform: none; box-shadow: 0 5px 0 var(--ink); background: var(--cream); } 16%, 78% { transform: scale(0.86) translateY(4px); box-shadow: 0 1px 0 var(--ink), 0 0 0 9px rgba(20,32,13,0.18); background: var(--gold); } 90%, 100% { transform: none; box-shadow: 0 5px 0 var(--ink); background: var(--cream); } }
@keyframes pull { 0%, 12% { transform: translateY(0); } 62%, 72% { transform: translateY(34px) scale(0.9); background: var(--gold); } 80%, 100% { transform: translateY(0); } }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; text-align: left; }
.chips .col { display: grid; gap: 6px; align-content: start; }
.pillchip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; font-size: 14px; font-weight: 800; line-height: 1.15; background: rgba(20, 32, 13, 0.08); }
.pillchip i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; }
.good .pillchip i { background: #2f8a12; } .bad .pillchip i { background: #d8341c; }
#guide-dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
#guide-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(20, 32, 13, 0.2); transition: 0.2s; }
#guide-dots i.on { width: 26px; border-radius: 6px; background: var(--ink); }
.card .row.minor { margin-top: 12px; }
.sheet .row.minor button { min-height: 40px; font-size: 14px; padding: 0 16px; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
.sheet button:disabled { opacity: 0.35; pointer-events: none; }
.sheet button[hidden] { display: none; }

/* ---- demo ---- */
#demo { position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; padding: 60px 16px max(18px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 10px; text-align: center; background: linear-gradient(180deg, rgba(8, 16, 7, 0), rgba(8, 16, 7, 0.78) 55%); pointer-events: none; }
#demo[hidden] { display: none; }
#demo > * { pointer-events: auto; }
.demo-tag { padding: 5px 12px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; border: 2.5px solid var(--ink); }
#demo-cap { margin: 0; max-width: 22ch; font-size: clamp(24px, 5.4vw, 40px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; color: var(--cream); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
#demo-cap.in { animation: capin 0.4s cubic-bezier(.3,1.6,.5,1); }
@keyframes capin { from { transform: translateY(16px) scale(0.9); opacity: 0; } }
#demo-bar { width: min(420px, 80%); height: 8px; border-radius: 6px; background: rgba(255, 243, 214, 0.25); overflow: hidden; }
#demo-bar i { display: block; height: 100%; width: 0; background: var(--pickle); }
#demo button { min-height: 46px; padding: 0 20px; border-radius: 16px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 800; font-size: 16px; box-shadow: 0 5px 0 var(--ink); }
#demo button.primary { background: var(--pickle); }
#demo button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { kbd, .finger, .g-steer .pad.on, #demo-cap.in { animation: none; } }

/* loading screen: a spinning pickle, shown until the first frame is drawn */
#loader { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 22px; background: #12301a; transition: opacity 0.6s, visibility 0.6s; }
#loader.gone { opacity: 0; visibility: hidden; }
#loader .pk { width: 46px; height: 118px; border-radius: 46px; background: radial-gradient(circle at 34% 24%, #cfee6a 0 9%, transparent 10%), radial-gradient(circle at 66% 46%, #cfee6a 0 7%, transparent 8%), radial-gradient(circle at 40% 70%, #cfee6a 0 8%, transparent 9%), linear-gradient(100deg, #3f8f12, #8fd62a 45%, #4a9a16); box-shadow: inset -7px 0 0 rgba(0, 0, 0, 0.16), 0 0 46px rgba(143, 214, 42, 0.35); animation: pkspin 1.25s cubic-bezier(.6,0,.4,1) infinite; }
#loader p { margin: 0; font: 700 14px/1.3 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif; letter-spacing: 0.04em; color: var(--cream); text-align: center; }
#loader p small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity 0.4s; }
#loader.slow p small { opacity: 0.7; }
@keyframes pkspin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { #loader .pk { animation-duration: 4s; } }
