/* ============================================================
   STEAMPUNK HERO + NESSIE STYLES
   Loaded via <link> in index.html to avoid 4000-byte limit.
   ============================================================ */

/* ── Smoke color tokens ─────────────────────────────────────── */
:root {
  --smoke-white:     rgba(255,255,255,0.52);
  --smoke-gray:      rgba(200,200,215,0.45);
  --smoke-yellow:    rgba(240,215,80,0.40);
  --smoke-black:     rgba(18,18,18,0.55);
  --beer-amber:      rgba(210,160,40,0.85);
  /* Brand palette smoke -- uses hsl() so they match the live CSS vars */
  --smoke-primary:   hsl(var(--primary) / 0.55);
  --smoke-secondary: hsl(var(--secondary) / 0.50);
  --smoke-accent:    hsl(var(--accent) / 0.52);
  --beer-foam:    rgba(255,245,200,0.9);
  --pipe-dark:    #1a1a1a;
  --pipe-mid:     #2e2e2e;
  --pipe-light:   #4a4a4a;
  --pipe-shine:   #6a6a6a;
  --rivet-color:  #5a4a2a;
  --rivet-shine:  #8a7040;
  --water-blue:   rgba(40,120,200,0.55);
  --water-foam:   rgba(180,220,255,0.4);
}

/* ============================================================
   STEAM TITLE ROOT
   ============================================================ */
.steam-title-root {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 16px;
  user-select: none;
}

/* Bare text wrapper -- no card, no pipes, just the 3D letters */
.steam-title-text-bare {
  position: relative;
  z-index: 3;
  display: block;
  text-align: center;
  padding: 8px 0;
}

/* ── Smoke puff layer ── */
.steam-puff-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.steam-puff {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  animation: steamPuffRise linear infinite;
  transform-origin: center bottom;
}

@keyframes steamPuffRise {
  0%   { transform: translateY(0) scale(0.4); opacity: 0; }
  15%  { opacity: 1; }
  60%  { opacity: 0.7; }
  100% { transform: translateY(-90px) scale(2.2) translateX(var(--drift, 0px)); opacity: 0; }
}

/* ── Title text block ── */
.steam-title-text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Top pipe bar */
.steam-pipe-top,
.steam-pipe-bottom {
  display: block;
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, var(--pipe-shine) 0%, var(--pipe-mid) 40%, var(--pipe-dark) 100%);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 2px rgba(255,255,255,0.12);
}

/* ── Rivet ── */
.steam-rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--rivet-shine), var(--rivet-color) 60%, #2a1a08 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255,255,255,0.2);
  transform: translateY(-50%);
}

/* ── Letter wrap ── */
.steam-letter-wrap {
  position: relative;
  display: block;
  text-align: center;
  padding: 8px 0;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border-left: 8px solid var(--pipe-mid);
  border-right: 8px solid var(--pipe-mid);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.04);
}

/* Main letter text */
.steam-letter-inner {
  position: relative;
  z-index: 3;
  display: block;
  font-family: "Fredoka One", "Impact", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  /* Yellow gold gradient */
  background: linear-gradient(
    180deg,
    #ffe066 0%,
    #ffd700 18%,
    #ffec6e 32%,
    #D4A843 50%,
    #b8860b 68%,
    #D4A843 82%,
    #ffe066 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 4px 0 rgba(0,0,0,0.9))
    drop-shadow(0 8px 16px rgba(0,0,0,0.7))
    drop-shadow(0 0 28px rgba(212,168,67,0.6));
  text-shadow: none;
}

/* Depth layer 1 -- dark shadow offset */
.steam-letter-depth-1 {
  position: absolute;
  inset: 0;
  display: block;
  font-family: "Fredoka One", "Impact", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  padding: 8px 0;
  color: rgba(0,0,0,0.8);
  transform: translate(3px, 5px);
  z-index: 1;
  -webkit-text-fill-color: rgba(0,0,0,0.8);
}

/* Depth layer 2 -- mid shadow */
.steam-letter-depth-2 {
  position: absolute;
  inset: 0;
  display: block;
  font-family: "Fredoka One", "Impact", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  padding: 8px 0;
  color: rgba(30,20,5,0.6);
  transform: translate(1.5px, 2.5px);
  z-index: 2;
  -webkit-text-fill-color: rgba(30,20,5,0.6);
}

/* ── Beer valve layer ── */
.beer-valve-layer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
}

.beer-valve-wrap {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.beer-valve-cap {
  display: block;
  width: 14px;
  height: 8px;
  background: linear-gradient(180deg, var(--pipe-shine), var(--pipe-dark));
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.beer-valve-wheel {
  display: block;
  width: 20px;
  height: 6px;
  background: linear-gradient(180deg, var(--rivet-shine), var(--rivet-color));
  border-radius: 3px;
  margin: 1px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  animation: valveSpin 4s linear infinite;
}

@keyframes valveSpin {
  0%   { transform: rotate(0deg) scaleX(1); }
  25%  { transform: rotate(0deg) scaleX(0.1); }
  50%  { transform: rotate(0deg) scaleX(1); }
  75%  { transform: rotate(0deg) scaleX(0.1); }
  100% { transform: rotate(0deg) scaleX(1); }
}

/* Beer drip stream */
.beer-drip {
  display: block;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, var(--beer-amber), var(--beer-foam) 30%, var(--beer-amber));
  border-radius: 0 0 3px 3px;
  animation: beerDrip 1.8s ease-in infinite;
}

@keyframes beerDrip {
  0%   { height: 0; opacity: 0; }
  10%  { opacity: 1; }
  70%  { height: 40px; opacity: 1; }
  100% { height: 40px; opacity: 0; transform: translateY(8px); }
}

/* Beer splash drops */
.beer-splash {
  position: relative;
  width: 1px;
  height: 1px;
  animation: beerSplashTrigger 1.8s ease-in infinite;
}

@keyframes beerSplashTrigger {
  0%, 65%  { opacity: 0; }
  70%      { opacity: 1; }
  100%     { opacity: 0; }
}

.beer-drop {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--beer-amber);
  animation: beerDropFly 0.6s ease-out infinite;
  animation-delay: inherit;
}

@keyframes beerDropFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 8px), var(--dy, 10px)) scale(0.3); opacity: 0; }
}

/* Beer puddle row */
.beer-puddle-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
}

.beer-puddle {
  display: block;
  width: 60px;
  height: 8px;
  background: radial-gradient(ellipse, var(--beer-amber) 0%, transparent 70%);
  border-radius: 50%;
  animation: puddleGrow 3s ease-in-out infinite alternate;
}

.beer-puddle--2 { width: 40px; animation-delay: 0.8s; }
.beer-puddle--3 { width: 50px; animation-delay: 1.6s; }

@keyframes puddleGrow {
  0%   { transform: scaleX(0.7); opacity: 0.5; }
  100% { transform: scaleX(1.2); opacity: 0.9; }
}

/* ============================================================
   TOP STEAM BANNER
   ============================================================ */
.top-steam-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 190; /* below hamburger z-index 200, above page content */
  pointer-events: none;
  overflow: hidden;
}

/* Rising smoke columns -- same style as bottom banner but rising upward from top edge */
.top-rise-smoke {
  position: absolute;
  bottom: 0; /* anchored to bottom of the banner, rises up */
  border-radius: 50%;
  animation: topSmokeRise linear infinite;
  pointer-events: none;
}

@keyframes topSmokeRise {
  0%   { transform: translateX(0) translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.9; }
  65%  { opacity: 0.7; }
  100% { transform: translateX(var(--drift, 14px)) translateY(-140px) scale(2.2); opacity: 0; }
}

/* ============================================================
   BOTTOM STEAM BANNER
   ============================================================ */
.btm-steam-banner {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  margin-top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,20,30,0.6) 60%, rgba(5,15,25,0.85) 100%);
}

/* White/gray/yellow smoke blobs */
.btm-smoke {
  position: absolute;
  border-radius: 50%;
  animation: btmSmokeRise linear infinite;
  pointer-events: none;
}

@keyframes btmSmokeRise {
  0%   { transform: translateX(0) translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  65%  { opacity: 0.75; }
  100% { transform: translateX(var(--drift, 14px)) translateY(-80px) scale(2.0); opacity: 0; }
}

/* Black smoke layer -- slower, drifts more */
.btm-black-smoke-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.btm-black-smoke-layer .btm-smoke {
  animation-name: btmBlackSmokeRise;
}

@keyframes btmBlackSmokeRise {
  0%   { transform: translateX(0) translateY(0) scale(0.5); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { transform: translateX(var(--drift, 20px)) translateY(-120px) scale(2.5); opacity: 0; }
}

/* Beer spatters */
.btm-beer-spatter {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--beer-amber);
  animation: btmBeerSpatter 2.4s ease-out infinite;
  transform: translateX(-50%);
}

@keyframes btmBeerSpatter {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  40%  { transform: translateX(calc(-50% + 12px)) translateY(-18px) scale(0.8); opacity: 0.9; }
  100% { transform: translateX(calc(-50% + 20px)) translateY(4px) scale(0.2); opacity: 0; }
}

/* Water surface */
.btm-water-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  overflow: hidden;
}

.btm-water-wave {
  position: absolute;
  bottom: 0;
  left: -20%;
  width: 140%;
  height: 20px;
  border-radius: 50% 50% 0 0;
  animation: waterWave linear infinite;
}

.btm-water-wave--1 {
  background: var(--water-blue);
  animation-duration: 4.5s;
  bottom: 0;
  opacity: 0.8;
}
.btm-water-wave--2 {
  background: rgba(60,140,220,0.4);
  animation-duration: 3.8s;
  animation-delay: 0.6s;
  bottom: 4px;
  opacity: 0.6;
}
.btm-water-wave--3 {
  background: var(--water-foam);
  animation-duration: 5.2s;
  animation-delay: 1.2s;
  bottom: 8px;
  opacity: 0.4;
}

@keyframes waterWave {
  0%   { transform: translateX(0) scaleY(1); }
  50%  { transform: translateX(5%) scaleY(1.15); }
  100% { transform: translateX(0) scaleY(1); }
}

/* ============================================================
   SPACIE -- anime blob girl
   ============================================================ */
.nessie-container {
  position: absolute;
  bottom: 14px;
  right: 6%;
  width: 100px;
  height: 115px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  transition: filter 0.2s, transform 0.2s;
}

.nessie-container:hover {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(180,140,255,0.7));
  transform: scale(1.06);
}

.nessie-container--hidden  { opacity: 0; pointer-events: none; }
.nessie-container--rising  { animation: nessieRise 1.0s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.nessie-container--bobbing { animation: nessieBob 3.2s ease-in-out infinite; }
.nessie-container--sinking { animation: nessieSink 1.2s ease-in forwards; }

@keyframes nessieRise {
  0%   { transform: translateY(90px) scale(0.7); opacity: 0; }
  60%  { transform: translateY(-8px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes nessieBob {
  0%   { transform: translateY(0) rotate(-1deg); }
  25%  { transform: translateY(-12px) rotate(1deg); }
  50%  { transform: translateY(-6px) rotate(-0.5deg); }
  75%  { transform: translateY(-14px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}
@keyframes nessieSink {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(90px) scale(0.7); opacity: 0; }
}

.nessie-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 18px rgba(100,50,200,0.5)) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: filter 0.2s;
}

.nessie-svg.nessie-snort {
  filter: drop-shadow(0 6px 18px rgba(100,50,200,0.5)) drop-shadow(0 0 22px rgba(220,180,255,0.8));
}

/* Blob body wobble on hover */
.nessie-container:hover .spacie-blob-body {
  animation: blobWobble 0.6s ease-in-out;
}
@keyframes blobWobble {
  0%   { d: path("M 50 18 C 72 16, 88 30, 88 52 C 88 74, 74 92, 50 94 C 26 92, 12 74, 12 52 C 12 30, 28 16, 50 18 Z"); }
  30%  { d: path("M 50 16 C 76 14, 92 28, 90 54 C 88 76, 72 94, 50 96 C 28 94, 10 76, 10 54 C 8 28, 24 18, 50 16 Z"); }
  60%  { d: path("M 50 20 C 68 18, 86 32, 86 50 C 86 72, 76 90, 50 92 C 24 90, 14 72, 14 50 C 14 32, 32 22, 50 20 Z"); }
  100% { d: path("M 50 18 C 72 16, 88 30, 88 52 C 88 74, 74 92, 50 94 C 26 92, 12 74, 12 52 C 12 30, 28 16, 50 18 Z"); }
}

/* Sparkles orbit animation */
.spacie-sparkles {
  animation: sparkleOrbit 4s linear infinite;
  transform-origin: 50px 56px;
}
@keyframes sparkleOrbit {
  0%   { transform: rotate(0deg); opacity: 0.8; }
  50%  { opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0.8; }
}

/* Snort steam puffs */
.nessie-snort-puff {
  animation: snortPuff 0.8s ease-out forwards;
}
.nessie-snort-puff--1 { animation-delay: 0s; }
.nessie-snort-puff--2 { animation-delay: 0.15s; }
.nessie-snort-puff--3 { animation-delay: 0.3s; }

@keyframes snortPuff {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 1; }
  100% { transform: translate(8px, -14px) scale(1.8); opacity: 0; }
}

/* Speech bubble */
.nessie-speech-bubble {
  position: absolute;
  top: -30px;
  right: 0;
  background: rgba(20,10,40,0.94);
  border: 1px solid rgba(180,140,255,0.65);
  border-radius: 12px;
  padding: 5px 11px;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e0d4ff;
  white-space: nowrap;
  pointer-events: none;
  animation: bubblePop 0.3s ease-out;
}

.nessie-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(180,140,255,0.65);
}

@keyframes bubblePop {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Nessie drawer ── */
.nessie-drawer {
  position: fixed;
  bottom: -520px;
  right: 16px;
  width: min(380px, calc(100vw - 32px));
  background: linear-gradient(160deg, rgba(20,12,40,0.97) 0%, rgba(14,8,30,0.97) 100%);
  border: 1px solid rgba(180,140,255,0.45);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6), 0 0 30px rgba(140,80,255,0.18);
  z-index: 500;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 16px 16px;
}

.nessie-drawer--open {
  bottom: 0;
}

/* Backdrop -- covers page behind drawer, tap to close */
.spacie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  animation: spacie-backdrop-in 0.2s ease forwards;
}
@keyframes spacie-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Close bar -- full-width easy tap target at the very top of the drawer */
.nessie-drawer-close-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: calc(100% + 32px);
  margin: 0 -16px;
  padding: 10px 16px 8px;
  background: rgba(140,80,255,0.08);
  border: none;
  border-bottom: 1px solid rgba(180,140,255,0.15);
  border-radius: 20px 20px 0 0;
  cursor: pointer;
  transition: background 0.15s;
}
.nessie-drawer-close-bar:hover,
.nessie-drawer-close-bar:focus-visible {
  background: rgba(140,80,255,0.18);
  outline: none;
}
.nessie-drawer-close-bar-pill {
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(180,140,255,0.5);
  border-radius: 2px;
}
.nessie-drawer-close-bar-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(180,140,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legacy small close button -- hidden now, kept for safety */
.nessie-drawer-close {
  display: none;
}

.nessie-drawer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 32px;
}

.nessie-drawer-icon { font-size: 1.4rem; }

.nessie-drawer-title {
  font-family: "Fredoka One", sans-serif;
  font-size: 1.1rem;
  color: #c8a4f8;
  letter-spacing: 0.03em;
}

.nessie-drawer-snort-badge {
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2px 8px;
  animation: snortBadgePulse 0.6s ease-in-out infinite alternate;
}

@keyframes snortBadgePulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.nessie-drawer-body {
  min-height: 72px;
  margin-bottom: 14px;
}

.nessie-drawer-text {
  font-family: "Nunito", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d4cfc4;
  line-height: 1.55;
  margin: 0;
}

.nessie-drawer-loading {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 0;
}

.nessie-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b72ef;
  animation: nessieDotBounce 0.9s ease-in-out infinite;
}
.nessie-dot:nth-child(2) { animation-delay: 0.15s; }
.nessie-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes nessieDotBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(-6px); opacity: 1; }
}

.nessie-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nessie-btn {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  padding: 8px 14px;
  border: none;
}
.nessie-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.nessie-btn--joke {
  background: rgba(212,168,67,0.18);
  color: #D4A843;
  border: 1px solid rgba(212,168,67,0.4);
  align-self: flex-start;
}
.nessie-btn--joke:hover:not(:disabled) { background: rgba(212,168,67,0.28); }

.nessie-ask-form {
  display: flex;
  gap: 6px;
}

.nessie-ask-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(180,140,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  color: #e8e0ff;
  outline: none;
  transition: border-color 0.15s;
}
.nessie-ask-input:focus { border-color: rgba(180,140,255,0.7); }
.nessie-ask-input::placeholder { color: rgba(180,140,255,0.4); }
.nessie-ask-input:disabled { opacity: 0.5; }

.nessie-btn--ask {
  background: #9b72ef;
  color: #fff;
  flex-shrink: 0;
}
.nessie-btn--ask:hover:not(:disabled) { background: #b08af8; }

/* Spacie drawer tabs */
.spacie-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(180,140,255,0.18);
  margin-bottom: 4px;
}
.spacie-tab {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(180,140,255,0.25);
  background: transparent;
  color: rgba(180,140,255,0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.spacie-tab:hover { background: rgba(140,80,255,0.12); color: #c8a4f8; }
.spacie-tab--active {
  background: rgba(140,80,255,0.2);
  color: #c8a4f8;
  border-color: rgba(180,140,255,0.55);
}

/* Spacie cheat form */
.spacie-cheat-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 12px;
}
.spacie-cheat-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(180,140,255,0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  color: #e8e0ff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.spacie-cheat-select:focus { border-color: rgba(180,140,255,0.7); }
.spacie-cheat-select option { background: #14082a; color: #e8e0ff; }

/* Cheat panel wrapper */
.spacie-cheat-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 8px;
}

/* Quick tip pill buttons */
.spacie-quick-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 4px;
}
.spacie-quick-tip-btn {
  font-family: "Nunito", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(180,140,255,0.4);
  background: rgba(140,80,255,0.12);
  color: #c8a4f8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.spacie-quick-tip-btn:hover:not(:disabled) {
  background: rgba(140,80,255,0.28);
  border-color: rgba(180,140,255,0.7);
  transform: translateY(-1px);
}
.spacie-quick-tip-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Gold variant for money tips */
.spacie-quick-tip-btn--gold {
  border-color: rgba(212,168,67,0.45);
  background: rgba(212,168,67,0.1);
  color: #D4A843;
}
.spacie-quick-tip-btn--gold:hover:not(:disabled) {
  background: rgba(212,168,67,0.22);
  border-color: rgba(212,168,67,0.7);
}

/* Personalised pattern tip -- highlighted, full-width */
.spacie-pattern-tip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,180,60,0.55);
  background: rgba(255,140,30,0.1);
  color: #ffb84a;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  margin-bottom: 6px;
  animation: spacie-pattern-pulse 2.5s ease-in-out infinite;
}
.spacie-pattern-tip-btn:hover:not(:disabled) {
  background: rgba(255,140,30,0.22);
  border-color: rgba(255,180,60,0.8);
  transform: translateY(-1px);
  animation: none;
}
.spacie-pattern-tip-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.spacie-pattern-tip-icon { font-size: 1rem; flex-shrink: 0; }
@keyframes spacie-pattern-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,30,0); }
  50%       { box-shadow: 0 0 8px 2px rgba(255,140,30,0.25); }
}

/* ============================================================
   IPHONE KICKER -- wet/drip style
   ============================================================ */
.hm-iphone-kicker-wet {
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  font-weight: 700;
  color: rgba(180,220,255,0.85);
  text-align: center;
  margin: -6px 0 0;
  max-width: 180px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(100,180,255,0.5), 0 1px 3px rgba(0,0,0,0.5);
  animation: wetDrip 3s ease-in-out infinite alternate;
}

@keyframes wetDrip {
  0%   { text-shadow: 0 0 8px rgba(100,180,255,0.5), 0 1px 3px rgba(0,0,0,0.5); }
  100% { text-shadow: 0 0 16px rgba(100,200,255,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 2px rgba(100,180,255,0.3); }
}

/* ============================================================
   STEAM TITLE -- responsive
   ============================================================ */
@media (max-width: 480px) {
  .steam-letter-inner,
  .steam-letter-depth-1,
  .steam-letter-depth-2 {
    font-size: clamp(1.6rem, 8.5vw, 2.8rem);
    letter-spacing: 0.03em;
  }
  .steam-title-root { padding-bottom: 56px; }
  .nessie-container { width: 90px; height: 68px; right: 4%; }
  .nessie-drawer { right: 8px; width: calc(100vw - 16px); }
}
