/* ============================================================
   Haunted Sea — seasonal theme (Halloween)
   Switched on in Website settings → General → Theme. Nothing here applies
   unless <html data-theme="haunted-sea"> is set, so the everyday look is untouched.
   Palette: stormy black-teal, ghost-fire green, lantern gold
   ============================================================ */

:root[data-theme="haunted-sea"] {
  /* The everyday colour names are kept so every existing rule picks these up. */
  --sand:        #0a1214;   /* page background */
  --sand-deep:   #1d3134;   /* borders, empty photo frames */
  --foam:        #0f1b1d;   /* alternate section background */
  --sea:         #5dffa8;   /* accent lines and dots */
  --teal:        #5dffa8;   /* links, outline buttons, menu button */
  --teal-deep:   #e4f5ec;   /* headings */
  --coral:       #e3b448;   /* small highlights */
  --coral-deep:  #e3b448;   /* main button, prices, eyebrows */
  --driftwood:   #8c9a94;   /* "unavailable" badge */
  --ink:         #c4d6cf;   /* body text */
  --ink-soft:    #84a097;   /* softer text */
  --white:       #122224;   /* cards and panels, and text on bright buttons */

  /* Theme-only colours */
  --haunt-light: #e4f5ec;   /* text on dark panels */
  --haunt-night: #050a0b;   /* footer */
  --haunt-glow:  93, 255, 168; /* ghost-fire green as R, G, B, for see-through glows */
  --haunt-gold:  227, 180, 72; /* lantern gold as R, G, B */

  --shadow: 0 0 0 1px rgba(var(--haunt-glow), 0.12), 0 12px 34px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- Surfaces the everyday palette paints light ---------- */
[data-theme="haunted-sea"] body { background-image: radial-gradient(rgba(var(--haunt-glow), 0.035) 1px, transparent 1px); background-size: 9px 9px; }
[data-theme="haunted-sea"] .site-header { background: rgba(10, 18, 20, 0.88); border-bottom-color: rgba(var(--haunt-glow), 0.12); }
[data-theme="haunted-sea"] .announcement { background: var(--foam); color: var(--haunt-light); border-bottom: 1px solid rgba(var(--haunt-glow), 0.25); }
[data-theme="haunted-sea"] .site-footer { background: var(--haunt-night); color: var(--ink); }
[data-theme="haunted-sea"] .contact-card { background-color: var(--foam); color: var(--haunt-light); box-shadow: 0 0 0 1px rgba(var(--haunt-glow), 0.25), 0 0 40px rgba(var(--haunt-glow), 0.08); }
[data-theme="haunted-sea"] .contact-card h2,
[data-theme="haunted-sea"] .contact-card .form-status,
[data-theme="haunted-sea"] .contact-card #inquiry-help,
[data-theme="haunted-sea"] .contact-form input,
[data-theme="haunted-sea"] .contact-form textarea { color: var(--haunt-light); }
[data-theme="haunted-sea"] .contact-card .eyebrow,
[data-theme="haunted-sea"] .contact-links a,
[data-theme="haunted-sea"] .contact-form label { color: var(--teal); }
[data-theme="haunted-sea"] .contact-card :focus-visible { outline-color: var(--teal); }
[data-theme="haunted-sea"] .card { box-shadow: 0 0 0 1px rgba(var(--haunt-glow), 0.1), 0 6px 20px rgba(0, 0, 0, 0.4); }
[data-theme="haunted-sea"] img[src$="placeholder.svg"] { filter: invert(0.88) hue-rotate(180deg) saturate(0.6); }
[data-theme="haunted-sea"] .btn-primary { box-shadow: 0 6px 18px rgba(var(--haunt-gold), 0.25); }
[data-theme="haunted-sea"] .btn-ghost:hover { background: rgba(var(--haunt-glow), 0.08); }
[data-theme="haunted-sea"] .hero-image img { box-shadow: 0 0 0 1px rgba(var(--haunt-glow), 0.2), 0 0 60px rgba(var(--haunt-glow), 0.12); }

/* The badge becomes a torn scrap of sail. */
[data-theme="haunted-sea"] .hero-badge {
  background: #1d3134;
  border-radius: 0;
  box-shadow: none;
  padding: 0.7rem 1.4rem;
  clip-path: polygon(0 12%, 9% 0, 22% 9%, 36% 2%, 50% 10%, 63% 0, 78% 8%, 91% 1%, 100% 14%, 97% 52%, 100% 88%, 86% 100%, 72% 91%, 58% 100%, 44% 92%, 30% 100%, 16% 90%, 4% 100%, 2% 56%);
}

/* ---------- Tattered-sail section dividers (browsers without CSS `d` keep the waves) ---------- */
[data-theme="haunted-sea"] .wave-bottom path {
  d: path("M0,46 L60,38 L95,52 L130,34 L180,44 L210,30 L255,48 L300,40 L330,58 L338,72 L346,56 L370,36 L420,46 L455,30 L500,50 L540,42 L575,60 L610,38 L660,48 L700,32 L745,52 L790,40 L820,56 L828,70 L836,54 L860,34 L910,46 L945,30 L990,50 L1030,40 L1065,58 L1100,36 L1150,46 L1185,32 L1230,52 L1270,42 L1300,58 L1308,74 L1316,56 L1340,36 L1390,48 L1440,38 L1440,90 L0,90 Z");
}
[data-theme="haunted-sea"] .wave-top path {
  d: path("M0,44 L50,52 L85,38 L125,56 L170,46 L205,60 L240,42 L290,50 L320,32 L328,18 L336,34 L365,54 L410,44 L450,60 L490,40 L535,48 L570,30 L610,52 L650,42 L690,58 L735,38 L780,50 L815,34 L823,20 L831,36 L860,56 L905,44 L940,60 L985,40 L1025,50 L1060,32 L1100,54 L1140,44 L1180,58 L1225,38 L1265,48 L1295,30 L1303,16 L1311,34 L1340,54 L1395,42 L1440,52 L1440,0 L0,0 Z");
}

/* ---------- Icons ---------- */
[data-theme="haunted-sea"] .brand-mark { color: var(--teal); filter: drop-shadow(0 0 4px rgba(var(--haunt-glow), 0.9)); animation: haunt-flicker 3.2s infinite; }

/* Feature-box emoji are swapped for a skull, a ghost lantern and a cursed treasure chest. */
[data-theme="haunted-sea"] .strip-icon { font-size: 0; width: 38px; height: 38px; flex-shrink: 0; background: center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(var(--haunt-glow), 0.7)); transition: transform 0.3s ease; }
[data-theme="haunted-sea"] .strip-item:nth-child(3n+1) .strip-icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%235dffa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 4C9.5 4 5.5 8.5 5.5 14c0 3.2 1.4 5.6 3.5 7v4h14v-4c2.1-1.4 3.5-3.8 3.5-7C26.5 8.5 22.5 4 16 4z'/><circle cx='11.5' cy='14.5' r='2.6'/><circle cx='20.5' cy='14.5' r='2.6'/><path d='M16 18.5l-1.5 2.5h3z'/><path d='M13 25v3M16 25v3M19 25v3'/></svg>"); }
[data-theme="haunted-sea"] .strip-item:nth-child(3n+2) .strip-icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%235dffa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M13 4h6M16 4v3'/><path d='M11 9h10l-1-2h-8z'/><rect x='10' y='9' width='12' height='15' rx='2'/><path d='M10 24h12l-1 3h-10z'/><path d='M16 21c-2 0-3-1.4-3-3 0-2 3-4 3-6 0 2 3 4 3 6 0 1.6-1 3-3 3z'/></svg>"); }
[data-theme="haunted-sea"] .strip-item:nth-child(3n) .strip-icon { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%235dffa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 5l1 2.5M16 3v3M22 5l-1 2.5'/><path d='M5 15c0-4.5 4.5-7 11-7s11 2.5 11 7'/><rect x='5' y='15' width='22' height='12' rx='1.5'/><path d='M5 19h22'/><rect x='14' y='17' width='4' height='5' rx='1'/><path d='M10 15v12M22 15v12'/></svg>"); }
[data-theme="haunted-sea"] .strip-item:hover .strip-icon { transform: translateY(-4px) rotate(-6deg); }

/* ---------- Prices: ghost-fire text with a gold doubloon in front and a ship's rope underneath ---------- */
[data-theme="haunted-sea"] .price {
  color: #7dffc0;
  text-shadow: 0 0 6px rgba(var(--haunt-glow), 0.7), 0 0 16px rgba(var(--haunt-glow), 0.35);
  transition: text-shadow 0.3s ease;
}
/* Coin and rope belong to the amount alone, so a price note such as "each" sits beside it, not under the rope. */
[data-theme="haunted-sea"] .price-amount {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-right: 0.3em;
  padding-bottom: 0.35em;
  white-space: nowrap;
}
[data-theme="haunted-sea"] .price-amount::before {
  content: "";
  flex: none;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5d77a, #c8962e 70%);
  box-shadow: inset 0 0 0 2px #a87a22, inset 0 0 0 4px #e9c25e, 0 0 8px rgba(var(--haunt-gold), 0.5);
}
[data-theme="haunted-sea"] .price-amount::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 3px;
  background: repeating-linear-gradient(115deg, #8a6a3f 0 4px, #5a4630 4px 8px);
}
[data-theme="haunted-sea"] .price small { color: var(--ink-soft); text-shadow: none; }
[data-theme="haunted-sea"] .card:hover .price { text-shadow: 0 0 8px rgba(var(--haunt-glow), 0.9), 0 0 24px rgba(var(--haunt-glow), 0.5); }
[data-theme="haunted-sea"] .card:hover .price-amount::before { animation: haunt-coin 1.2s ease-in-out; }
[data-theme="haunted-sea"] .size-price { color: var(--teal); text-shadow: 0 0 8px rgba(var(--haunt-glow), 0.45); }
[data-theme="haunted-sea"] .size-pill { border: 1px dashed rgba(var(--haunt-glow), 0.35); }
[data-theme="haunted-sea"] .size-pill strong { color: var(--haunt-light); }

/* ---------- Hover effects ---------- */
[data-theme="haunted-sea"] .card:hover { box-shadow: 0 0 0 1px rgba(var(--haunt-glow), 0.55), 0 0 30px rgba(var(--haunt-glow), 0.25); }
[data-theme="haunted-sea"] .card img { transition: filter 0.4s ease; }
[data-theme="haunted-sea"] .card:hover img { filter: saturate(1.15) brightness(1.06); }
[data-theme="haunted-sea"] .nav-links a:not(.nav-cta):hover { color: var(--teal); text-shadow: 0 0 8px rgba(var(--haunt-glow), 0.8); }
[data-theme="haunted-sea"] .btn:hover,
[data-theme="haunted-sea"] .nav-cta:hover { box-shadow: 0 0 18px rgba(var(--haunt-glow), 0.45); }
[data-theme="haunted-sea"] .btn-primary:hover { box-shadow: 0 0 20px rgba(var(--haunt-gold), 0.6); }
[data-theme="haunted-sea"] .nav-cta:hover { background: var(--haunt-light); }

/* ---------- Skeleton-hand cursor ---------- */
/* Kept in variables so the editor preview (editor/canvas.css) can use the same hands. */
:root[data-theme="haunted-sea"] {
  --haunt-cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='%23eef3e8' stroke='%230a1214' stroke-width='1.1'><rect x='8.5' y='1' width='4' height='5' rx='2'/><rect x='8.5' y='6.8' width='4' height='5' rx='2'/><rect x='8.5' y='12.6' width='4' height='5' rx='2'/><circle cx='15.5' cy='17.5' r='2.1'/><circle cx='19.3' cy='18.3' r='2'/><circle cx='22.8' cy='19.6' r='1.9'/><path d='M7.5 18.5h16.5l-1 7.5h-13.5z'/><path d='M7.5 19.5l-3.5-2.5-1.5 1.6 3.5 4.4 2 .5z'/><rect x='10.5' y='26.5' width='3.4' height='4.5' rx='1.5'/><rect x='15.6' y='26.5' width='3.4' height='4.5' rx='1.5'/><path d='M10 21.5h12M10.5 23.8h11' fill='none' stroke-width='.9'/></svg>") 10 1;
  --haunt-cursor-point: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='%23dfffee' stroke='%230a1214' stroke-width='1.1'><rect x='8.5' y='1' width='4' height='5' rx='2'/><rect x='8.5' y='6.8' width='4' height='5' rx='2'/><rect x='8.5' y='12.6' width='4' height='5' rx='2'/><circle cx='15.5' cy='17.5' r='2.1'/><circle cx='19.3' cy='18.3' r='2'/><circle cx='22.8' cy='19.6' r='1.9'/><path d='M7.5 18.5h16.5l-1 7.5h-13.5z'/><path d='M7.5 19.5l-3.5-2.5-1.5 1.6 3.5 4.4 2 .5z'/><rect x='10.5' y='26.5' width='3.4' height='4.5' rx='1.5'/><rect x='15.6' y='26.5' width='3.4' height='4.5' rx='1.5'/><path d='M10 21.5h12M10.5 23.8h11' fill='none' stroke-width='.9'/></svg>") 10 1;
}
[data-theme="haunted-sea"] body { cursor: var(--haunt-cursor), auto; }
[data-theme="haunted-sea"] :is(a, button, summary, select, label, .btn, [role="button"]) { cursor: var(--haunt-cursor-point), pointer; }
[data-theme="haunted-sea"] :is(input, textarea) { cursor: text; }

/* ---------- Ghost ship and rolling green fog (added to the hero by script.js) ---------- */
[data-theme="haunted-sea"] .hero > .hero-text,
[data-theme="haunted-sea"] .hero > .hero-image { position: relative; z-index: 1; }
[data-theme="haunted-sea"] .hero > .wave { z-index: 1; }
.haunt-hero { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.haunt-voyage {
  position: absolute;
  bottom: 13%;
  left: 0;
  width: clamp(150px, 17vw, 240px);
  animation: haunt-sail 75s linear infinite;
}
.haunt-ship {
  display: block;
  width: 100%;
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(var(--haunt-glow), 0.8)) drop-shadow(0 0 18px rgba(var(--haunt-glow), 0.35));
  transform-origin: 50% 85%;
  animation: haunt-bob 5s ease-in-out infinite;
}
.haunt-ship .hull { fill: #0c211d; stroke: rgba(var(--haunt-glow), 0.55); stroke-width: 1.2; }
.haunt-ship .rig { stroke: #0c211d; stroke-width: 3; stroke-linecap: round; }
.haunt-ship .sail {
  fill: rgba(var(--haunt-glow), 0.26);
  stroke: rgba(var(--haunt-glow), 0.6);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: haunt-flutter 2.8s ease-in-out infinite;
}
.haunt-ship .sail:nth-of-type(2) { animation-delay: -0.9s; }
.haunt-ship .sail:nth-of-type(3) { animation-delay: -1.7s; }
.haunt-ship .flag { fill: rgba(var(--haunt-glow), 0.55); transform-box: fill-box; transform-origin: 0 50%; animation: haunt-flutter 1.4s ease-in-out infinite; }
.haunt-ship .lantern { fill: rgb(var(--haunt-gold)); filter: drop-shadow(0 0 4px rgb(var(--haunt-gold))); animation: haunt-flicker 1.9s infinite; }
.haunt-ship .lantern:nth-of-type(2) { animation-delay: -0.6s; }
.haunt-ship .lantern:nth-of-type(3) { animation-delay: -1.3s; }

/* Each fog layer is two identical halves, so sliding it by half loops without a seam. Every blob has to
   fade out inside its half (centre ± 70% of its width between 0% and 100%), or it is cut off in a
   straight line where the two halves meet. */
.haunt-fog {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  background-size: 50% 100%;
  background-repeat: repeat-x;
}
.haunt-fog-back {
  height: 45%;
  background-image:
    radial-gradient(ellipse 22% 55% at 18% 85%, rgba(var(--haunt-glow), 0.13), transparent 70%),
    radial-gradient(ellipse 28% 45% at 45% 95%, rgba(var(--haunt-glow), 0.10), transparent 70%),
    radial-gradient(ellipse 20% 60% at 78% 80%, rgba(var(--haunt-glow), 0.12), transparent 70%);
  animation: haunt-roll 55s linear infinite;
}
.haunt-fog-front {
  height: 28%;
  background-image:
    radial-gradient(ellipse 30% 50% at 25% 100%, rgba(var(--haunt-glow), 0.16), transparent 70%),
    radial-gradient(ellipse 25% 60% at 70% 100%, rgba(200, 255, 230, 0.10), transparent 70%);
  animation: haunt-roll 32s linear infinite reverse;
}

/* ---------- Skeleton mermaid rising from the water (added to the hero by script.js) ---------- */
/* The water box clips her below its bottom edge, which sits behind the torn-sail waterline. */
.haunt-mermaid-water {
  position: absolute;
  bottom: 26px;
  left: 44%;
  width: clamp(80px, 8.5vw, 120px);
  aspect-ratio: 100 / 130;
  overflow: hidden;
}
.haunt-mermaid {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(var(--haunt-glow), 0.3));
  animation: haunt-surface 15s ease-in-out infinite;
}
.haunt-mermaid .head { transform-box: view-box; transform-origin: 50px 62px; animation: haunt-look 15s ease-in-out infinite; }
.haunt-mermaid .hair { fill: rgba(28, 78, 64, 0.9); stroke: rgba(var(--haunt-glow), 0.3); stroke-width: 0.8; }
.haunt-mermaid .bone { fill: #d6e2d2; }
.haunt-mermaid .bone-line { fill: none; stroke: #d6e2d2; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.haunt-mermaid .rib { stroke-width: 2.4; }
.haunt-mermaid .socket { fill: #0a1214; }
.haunt-mermaid .teeth { fill: none; stroke: #0a1214; stroke-width: 0.9; }
.haunt-mermaid .shell { fill: #e8b7a0; opacity: 0.85; }
.haunt-mermaid .eye { fill: #b4ffdc; filter: drop-shadow(0 0 2px rgb(var(--haunt-glow))) drop-shadow(0 0 6px rgb(var(--haunt-glow))); animation: haunt-flicker 2.2s infinite; }

/* ---------- Kraken tentacle peeking over the footer (added by script.js) ---------- */
/* One 24s story shared by the ship, the tentacle and the splash: the ship sails in, the tentacle rises,
   grabs it and drags it under. The strip's bottom 69px sit over the footer's torn edge and are masked
   to the same shape, so anything that sinks disappears behind the ragged waterline. */
.haunt-kraken {
  --prey-stop: calc(91% - 120px);   /* where the ship is caught: just left of the tentacle */
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 69px);
  height: 200px;
  pointer-events: none;
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 69px) no-repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,44 L50,52 L85,38 L125,56 L170,46 L205,60 L240,42 L290,50 L320,32 L328,18 L336,34 L365,54 L410,44 L450,60 L490,40 L535,48 L570,30 L610,52 L650,42 L690,58 L735,38 L780,50 L815,34 L823,20 L831,36 L860,56 L905,44 L940,60 L985,40 L1025,50 L1060,32 L1100,54 L1140,44 L1180,58 L1225,38 L1265,48 L1295,30 L1303,16 L1311,34 L1340,54 L1395,42 L1440,52 L1440,0 L0,0 Z'/></svg>") bottom / 100% 69px no-repeat;
  mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 69px) no-repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0,44 L50,52 L85,38 L125,56 L170,46 L205,60 L240,42 L290,50 L320,32 L328,18 L336,34 L365,54 L410,44 L450,60 L490,40 L535,48 L570,30 L610,52 L650,42 L690,58 L735,38 L780,50 L815,34 L823,20 L831,36 L860,56 L905,44 L940,60 L985,40 L1025,50 L1060,32 L1100,54 L1140,44 L1180,58 L1225,38 L1265,48 L1295,30 L1303,16 L1311,34 L1340,54 L1395,42 L1440,52 L1440,0 L0,0 Z'/></svg>") bottom / 100% 69px no-repeat;
}
.haunt-tentacle {
  position: absolute;
  right: 9%;
  bottom: 18px;
  width: 70px;
  height: 140px;
  transform-origin: 40% 100%;
  animation: haunt-grab 24s ease-in-out infinite;
}
.haunt-prey {
  position: absolute;
  bottom: 22px;
  left: 30%;
  width: 110px;
  transform-origin: 50% 90%;
  animation: haunt-prey 24s linear infinite;
}
.haunt-prey .haunt-ship { opacity: 0.85; }
.haunt-splash {
  position: absolute;
  bottom: 14px;
  left: calc(var(--prey-stop) + 10px);
  width: 100px;
  height: 22px;
  border: 2px solid rgba(var(--haunt-glow), 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: haunt-splash 24s ease-out infinite;
}
.haunt-tentacle svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 30% 100%;
  filter: drop-shadow(0 0 6px rgba(var(--haunt-glow), 0.35));
  animation: haunt-sway 3.4s ease-in-out infinite;
}
.haunt-tentacle .flesh { fill: #143f35; stroke: rgba(var(--haunt-glow), 0.45); stroke-width: 1; }
.haunt-tentacle .sucker { fill: #6f9f8a; }

/* ---------- Little ghosts that fly out of "Ask about this piece" (added by script.js) ---------- */
.haunt-ghost {
  position: fixed;
  z-index: 50;
  width: 30px;
  height: 35px;
  margin-left: -15px;
  pointer-events: none;
  color: #dfffee;
  filter: drop-shadow(0 0 6px rgba(var(--haunt-glow), 0.9));
  opacity: 0;
  animation: haunt-ghost 1.9s ease-out forwards;
}
.haunt-ghost svg { display: block; width: 100%; height: 100%; }

/* ---------- Animations ---------- */
@keyframes haunt-sail { from { transform: translateX(-110%); } to { transform: translateX(100vw); } }
@keyframes haunt-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(5px) rotate(2deg); } }
@keyframes haunt-flutter { 0%, 100% { transform: skewX(-3deg) scaleX(0.97); } 50% { transform: skewX(3deg) scaleX(1.03); } }
@keyframes haunt-flicker { 0%, 100% { opacity: 1; } 42% { opacity: 0.7; } 48% { opacity: 0.95; } 55% { opacity: 0.55; } 62% { opacity: 1; } }
@keyframes haunt-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes haunt-prey {
  0% { left: -15%; transform: none; }
  55% { left: var(--prey-stop); transform: none; }
  61% { left: var(--prey-stop); transform: rotate(-6deg); }
  64% { left: var(--prey-stop); transform: translateY(4%) rotate(8deg); }
  74%, 100% { left: var(--prey-stop); transform: translateY(120%) rotate(22deg); }
}
@keyframes haunt-grab {
  0%, 46% { transform: translateY(105%) rotate(0); }
  56% { transform: translateY(0) rotate(4deg); }
  61% { transform: translateY(0) rotate(-24deg); }
  64% { transform: translateY(5%) rotate(-30deg); }
  74%, 100% { transform: translateY(105%) rotate(-30deg); }
}
@keyframes haunt-splash { 0%, 63% { opacity: 0; transform: scale(0.3); } 67% { opacity: 1; } 82%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes haunt-coin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes haunt-surface { 0%, 16% { transform: translateY(105%); } 28%, 72% { transform: translateY(6%); } 84%, 100% { transform: translateY(105%); } }
@keyframes haunt-look { 0%, 34% { transform: rotate(0); } 42%, 50% { transform: translateX(-2px) rotate(-14deg); } 58%, 64% { transform: translateX(2px) rotate(12deg); } 70%, 100% { transform: rotate(0); } }
@keyframes haunt-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(8deg); } }
@keyframes haunt-ghost {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--ghost-x, 0), -120px) scale(1.1) rotate(var(--ghost-turn, 0deg)); }
}

@media (max-width: 640px) {
  .haunt-voyage { bottom: 2%; width: 130px; }
  .haunt-kraken { --prey-stop: calc(95% - 92px); height: 120px; }
  .haunt-tentacle { right: 5%; width: 54px; height: 108px; }
  .haunt-prey { width: 80px; }
  .haunt-splash { width: 76px; }
  .haunt-mermaid-water { bottom: 18px; width: 64px; }
}

/* Visitors who ask for less motion get a still ship, still fog and a resting tentacle; no ghosts are released. */
@media (prefers-reduced-motion: reduce) {
  .haunt-voyage { animation: none; left: auto; right: 6%; }
  .haunt-ship, .haunt-ship .sail, .haunt-ship .flag, .haunt-ship .lantern,
  .haunt-fog, .haunt-tentacle, .haunt-tentacle svg, .haunt-prey, .haunt-splash,
  .haunt-mermaid, .haunt-mermaid .head, .haunt-mermaid .eye, [data-theme="haunted-sea"] .card:hover .price-amount::before,
  [data-theme="haunted-sea"] .brand-mark { animation: none; }
}
