/* Bad Spells landing page.
   Layout idea: the page is the Reject Guild's notice board. The hero is the painted guild yard; below it everything is
   paper pinned to dark timber, with one black-ink section for the misfires. */

@font-face { font-family: "Bangers"; src: url("assets/fonts/bangers.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("assets/fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* colour */
  --timber: #3b2516;
  --timber-deep: #26160c;
  --timber-line: #1b0f08;
  --paper: #f7edd3;
  --paper-edge: #e6d5ab;
  --paper-warm: #fbf4e2;
  --ink: #2a1a10;
  --ink-soft: #6a5240;
  --black-ink: #100d10;
  --black-ink-2: #1c171c;
  --gold: #f6b730;
  --gold-deep: #c9801a;
  --hazard: #ff5a2a;
  --emerald: #1ee072;
  --fire: #ff8a2a;
  --water: #3fb8e0;
  --lightning: #ffd92e;
  --wind: #6fdcb6;
  --earth: #c9922e;
  --arcane: #9a6bf0;
  --discord: #5865f2;

  /* type */
  --display: "Bangers", "Impact", "Arial Narrow Bold", sans-serif;
  --hand: "Permanent Marker", "Comic Sans MS", "Marker Felt", cursive;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* motion */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 25.2%, 1.097 28.1%, 1.092 31.1%, 1.043 39.7%, 1.012 46.2%, 0.996 53.5%, 0.995 62.5%, 1);
  --out: cubic-bezier(.2, .8, .2, 1);

  --gutter: clamp(18px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--timber-deep);
  color: var(--paper);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  font: 400 1.05rem/1 var(--hand);
  color: var(--gold);
  letter-spacing: .02em;
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: .7rem;
}
.eyebrow--ink { color: #b9aebb; }
.title {
  font: 400 clamp(2.5rem, 6.2vw, 4.6rem)/.95 var(--display);
  letter-spacing: .015em;
  color: var(--paper-warm);
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.title--light { color: #fff; }
.title--small { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--ink); text-shadow: none; }
.body { max-width: 60ch; color: #e9dcc0; margin-top: 1.1rem; }
.body strong { color: #fff; font-weight: 650; }
.body--light { color: #cfc6d2; }
.head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.fineprint { font-size: .82rem; color: #b9a58a; max-width: 44ch; margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --press: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 400 1.35rem/1 var(--display);
  letter-spacing: .04em;
  padding: .72em 1.15em .66em;
  border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transform: translateY(0);
  transition: transform .12s var(--out), box-shadow .12s var(--out), filter .2s;
  white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--paper-warm); box-shadow: 0 var(--press) 0 #000; }
.btn--discord { background: var(--discord); color: #fff; box-shadow: 0 var(--press) 0 #2f3aa8; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--press) + 2px) 0 rgba(0, 0, 0, .85); filter: brightness(1.08); }
.btn--discord:hover { box-shadow: 0 calc(var(--press) + 2px) 0 #2f3aa8; }
.btn:active { transform: translateY(var(--press)); box-shadow: 0 0 0 #000; }

/* ---------- pins, tape ---------- */
.pin {
  position: absolute; top: -11px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fff8 0 14%, transparent 15%), radial-gradient(circle at 50% 50%, var(--pin, #d8372b) 0 60%, #0006 61% 100%);
  box-shadow: 0 5px 6px rgba(0, 0, 0, .45);
}
.pin--red { --pin: #d8372b; }
.pin--blue { --pin: #2f77c9; }
.pin--brass { --pin: #d9a233; }
.tape {
  position: absolute; top: -13px; left: 50%; width: 92px; height: 28px; margin-left: -46px; z-index: 3;
  background: linear-gradient(180deg, rgba(255, 244, 200, .82), rgba(240, 222, 160, .78));
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25);
  transform: rotate(-3deg);
  clip-path: polygon(0 12%, 4% 0, 9% 14%, 14% 2%, 96% 0, 100% 16%, 97% 50%, 100% 86%, 95% 100%, 6% 98%, 2% 84%, 0 60%);
}
.tape--l { left: 22%; transform: rotate(-7deg); }
.tape--r { left: 76%; transform: rotate(6deg); }

/* ---------- paper ---------- */
.notice, .card, .photo, .combo, .tile, .tower {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, #fffdf2 0, transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-edge));
  color: var(--ink);
  box-shadow: 0 1px 0 #fff8 inset, 0 14px 22px -8px rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .35);
}

/* ============ HERO ============ */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #6db3e8;
}
.hero__sky { position: absolute; inset: -4% -2% -2%; z-index: -2; will-change: transform; }
.hero__backdrop { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: settle 2.4s var(--out) both; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 40, 80, .38) 0, transparent 22%),
    radial-gradient(90% 60% at 50% 38%, transparent 0 55%, rgba(18, 10, 4, .32) 100%),
    linear-gradient(180deg, transparent 62%, rgba(38, 22, 12, .78) 90%, var(--timber-deep) 100%);
}
@keyframes settle { from { transform: scale(1.12); filter: blur(6px) saturate(1.2); } to { transform: scale(1); filter: none; } }

.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 18px var(--gutter);
  font: 400 .98rem/1 var(--hand);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 20, 60, .6);
  animation: drop-in .7s .2s var(--out) both;
}
.topbar__links { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 1.8rem); }
.topbar a { text-decoration: none; position: relative; padding: 6px 0; }
.topbar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--out); }
.topbar a:hover::after { transform: scaleX(1); }
.topbar__discord { background: rgba(16, 13, 16, .55); padding: 9px 14px !important; border-radius: 999px; backdrop-filter: blur(6px); }
.topbar__discord::after { display: none; }

.hero__inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(.9rem, 2.4vh, 1.6rem);
  padding: clamp(.5rem, 3vh, 2rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
  text-align: center;
}
.logo { width: min(760px, 92vw); filter: drop-shadow(0 14px 18px rgba(20, 12, 4, .45)); animation: logo-drop 1.1s .25s var(--spring) both; transform-origin: 50% 100%; }
.logo img { width: 100%; will-change: transform; }
@keyframes logo-drop { from { transform: translateY(-70vh) rotate(-7deg) scale(.9); opacity: 0; } 12% { opacity: 1; } to { transform: none; opacity: 1; } }

.pitch { display: grid; gap: .1em; font: 400 clamp(1.25rem, 3.1vw, 2.15rem)/1.15 var(--hand); color: #fff; text-shadow: 0 3px 0 rgba(28, 16, 8, .8), 0 6px 18px rgba(0, 20, 50, .55); }
.pitch__line { display: block; clip-path: inset(0 100% 0 0); animation: write 0.9s 1.15s cubic-bezier(.5, 0, .3, 1) forwards; }
.pitch__line--bad { animation-delay: 2s; }
.pitch em { font-style: normal; color: var(--gold); display: inline-block; animation: cow-pop .8s 3s var(--spring) both; }
@keyframes write { to { clip-path: inset(0 -2% 0 0); } }
@keyframes cow-pop { from { transform: translateY(-1.4em) rotate(-25deg) scale(1.8); opacity: 0; } to { transform: rotate(-4deg) scale(1.12); opacity: 1; } }
@keyframes drop-in { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

.notice { width: min(560px, 100%); padding: 1.6rem clamp(1.1rem, 3.4vw, 2rem) 1.5rem; border-radius: 4px; text-align: left; }
.notice--hero { transform-origin: 50% -6px; animation: swing-in 1.5s 1.5s var(--spring) both; margin-top: .4rem; }
@keyframes swing-in { from { transform: translateY(-40px) rotate(9deg) scale(.96); opacity: 0; } 18% { opacity: 1; } to { transform: rotate(-.8deg); opacity: 1; } }
.notice__lead { font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.notice__lead strong { font-weight: 700; }
.notice__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 1.1rem; }

.signup { margin-top: 1.1rem; }
.signup__label { display: block; font: 400 1rem/1.2 var(--hand); color: var(--ink-soft); margin-bottom: .45rem; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 210px; min-width: 0;
  padding: .7em .9em; font-size: 1.02rem;
  background: #fffaf0; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 rgba(42, 26, 16, .18) inset;
  transition: box-shadow .2s, border-color .2s;
}
.signup input::placeholder { color: #a89478; }
.signup input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(246, 183, 48, .55); }
.signup__note { min-height: 1.3em; margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }
.signup__note.is-good { color: #14803f; font-weight: 600; }
.signup__note.is-bad { color: #b3271b; font-weight: 600; }

.sealed {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center;
  padding: .5em 3.1em .3em 1em; min-height: 3.4rem;
  border: 2px dashed rgba(42, 26, 16, .45); border-radius: 10px;
  color: var(--ink-soft); cursor: default; user-select: none;
}
.sealed__label { font: 400 1.15rem/1 var(--display); letter-spacing: .04em; opacity: .7; padding-bottom: 1.5em; }
.sealed__stamp {
  position: absolute; left: 50%; top: 50%;
  font: 400 1.05rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #b3271b; border: 3px solid #b3271b; border-radius: 6px; padding: .22em .5em .16em;
  transform: translate(-58%, -8%) rotate(-5deg);
  background: rgba(247, 237, 211, .82); opacity: .95;
  animation: stamp 0.5s 3.1s cubic-bezier(.3, 1.6, .5, 1) both;
}
.sealed__wax {
  position: absolute; right: -10px; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 47% 53% 50% 50% / 52% 48% 55% 45%;
  background: radial-gradient(circle at 36% 30%, #ff8a7a 0 10%, transparent 26%), radial-gradient(circle, #c42a1e 0 46%, #8f1a12 47% 62%, #b8251a 63% 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .35);
}
@keyframes stamp { from { transform: translate(-58%, -8%) rotate(-5deg) scale(2.6); opacity: 0; } to { transform: translate(-58%, -8%) rotate(-5deg) scale(1); opacity: .95; } }

.hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 16px; opacity: .8; animation: drop-in 1s 3.4s both; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }

/* ============ THE BOARD ============ */
.board {
  position: relative;
  overflow-x: clip;
  background-color: var(--timber);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='1200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09 .0035' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -.9 .46'/%3E%3C/filter%3E%3Cg id='a'%3E%3Crect width='600' height='600' filter='url(%23g)'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate(0 1200) scale(1 -1)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 238px, rgba(0, 0, 0, .34) 238px 241px, rgba(255, 220, 170, .05) 241px 243px, transparent 243px 480px),
    linear-gradient(180deg, var(--timber-deep) 0, var(--timber) 140px, #442b1a 50%, var(--timber) calc(100% - 320px), #160c06 100%);
  background-size: 600px 1200px, auto, auto;
}
.board::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; background: linear-gradient(180deg, rgba(22, 12, 6, 0), #160c06); }
.section { position: relative; z-index: 1; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-top: clamp(2rem, 5vw, 4rem); }
.section--last { padding-top: clamp(1rem, 3vw, 2rem); }

/* ---------- draw to cast ---------- */
.draw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tiers { display: grid; gap: .55rem; margin-top: 1.6rem; }
.tier { display: flex; align-items: baseline; gap: .7rem; color: #dccfb2; font-size: .98rem; }
.tier b { font: 400 1.5rem/1 var(--display); letter-spacing: .05em; min-width: 5.6em; display: inline-block; transform: rotate(-3deg); }
.tier--perfect b { color: var(--gold); }
.tier--nice b { color: #fff; }
.tier--misfire b { color: #0d0a0d; background: var(--paper); border-radius: 6px; padding: .12em .3em .04em; min-width: 0; margin-right: 1.05em; }

.quire-stage { display: grid; gap: 1rem; justify-items: center; }
/* the invitation to draw: big, hand-lettered, with an arrow down to the paper */
.quire-call { position: relative; z-index: 6; display: grid; justify-items: center; gap: .35rem; text-align: center; margin-bottom: -.4rem; }
.quire-call__tag {
  font: 400 .95rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); padding: .35em .7em .28em; border-radius: 6px; rotate: -3deg; box-shadow: 0 3px 0 #8a5a12;
}
.quire-hint { font: 400 clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--hand); color: #fff; rotate: -2deg; min-height: 1.1em; margin: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .45); text-wrap: balance; }
.quire-hint b { color: var(--gold); font-weight: 400; }
.quire-call__how { font: 400 1rem/1 var(--hand); color: #d9c9a6; rotate: -1deg; }
.quire-call__arrow { position: absolute; right: -4%; top: 58%; width: clamp(70px, 8vw, 100px); overflow: visible; scale: -1 1; animation: nudge 1.6s ease-in-out infinite; }
.quire-call__arrow path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 50% { translate: -4px 6px; } }
.quire.is-busy ~ * .quire-call__arrow, .quire-stage.has-drawn .quire-call__arrow { opacity: 0; }
@media (max-width: 980px) { .quire-call__arrow { right: 6%; } }
@media (max-width: 640px) { .quire-call__arrow { display: none; } }

/* the paper itself invites a pen until the first stroke */
.quire__paper::after {
  content: "draw here"; position: absolute; left: 50%; bottom: 8%; translate: -50% 0; pointer-events: none;
  font: 400 clamp(.9rem, 2vw, 1.15rem)/1 var(--hand); color: rgba(42, 26, 16, .35); letter-spacing: .04em;
  transition: opacity .3s;
}
.quire.is-busy .quire__paper::after, .quire-stage.has-drawn .quire__paper::after { opacity: 0; }
.quire__guide path { animation: guide-pulse 2.4s ease-in-out infinite; }
@keyframes guide-pulse { 50% { stroke: rgba(210, 38, 44, .32); } }
.quire {
  position: relative; width: min(470px, 100%); aspect-ratio: 268 / 226;
  margin-top: clamp(48px, 6vw, 68px); /* room for the gold clip, which sticks out above the board */
  padding: 7% 7% 6.5%;
  border-radius: 14px;
  background: linear-gradient(160deg, #a66a35, #7a4a22 60%, #5d3617);
  box-shadow: 0 0 0 3px #3a2010 inset, 0 0 0 7px #8a5628 inset, 0 26px 36px -12px rgba(0, 0, 0, .7);
  transform: rotate(1.4deg);
  transition: transform .5s var(--spring);
  touch-action: none;
}
.quire.is-busy { transform: rotate(0deg) scale(1.02); }
.quire__clip {
  position: absolute; top: -7%; left: 50%; width: 34%; height: 15%; margin-left: -17%; z-index: 4;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #ffd76a, var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 4px 0 #8a5a12, 0 8px 10px rgba(0, 0, 0, .4);
}
.quire__clip::before { content: ""; position: absolute; left: 38%; right: 38%; top: -34%; height: 60%; border-radius: 8px 8px 0 0; background: inherit; box-shadow: 0 0 0 3px #8a5a12 inset; }
.quire__corner { position: absolute; bottom: -5px; width: 15%; aspect-ratio: 1; background: linear-gradient(135deg, #ffd76a, var(--gold-deep)); z-index: 4; }
.quire__corner--bl { left: -5px; clip-path: polygon(0 0, 34% 0, 34% 66%, 100% 66%, 100% 100%, 0 100%); border-radius: 0 0 0 10px; }
.quire__corner--br { right: -5px; clip-path: polygon(66% 0, 100% 0, 100% 100%, 0 100%, 0 66%, 66% 66%); border-radius: 0 0 10px 0; }
.quire__paper {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(130% 100% at 20% 0, #fff 0, #fbf6e8 55%, #efe5cb 100%);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #cbbd98, 0 6px 10px rgba(0, 0, 0, .28);
  cursor: crosshair;
}
.quire__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.quire__guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.quire__guide path { fill: none; stroke: rgba(42, 26, 16, .18); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 20; transition: opacity .3s; }
.quire.is-busy .quire__guide path { opacity: 0; }
.quire__cow { position: absolute; left: 50%; top: 62%; width: 56%; height: auto; transform: translate(-50%, -260%) rotate(-20deg); pointer-events: none; opacity: 0; }
.quire__cow.is-falling { animation: cow-fall 1s cubic-bezier(.55, 0, .9, .5) forwards, cow-squash .5s 1s var(--spring) forwards; opacity: 1; }
@keyframes cow-fall { from { transform: translate(-50%, -260%) rotate(-25deg); } to { transform: translate(-50%, -50%) rotate(6deg); } }
@keyframes cow-squash { from { transform: translate(-50%, -38%) rotate(6deg) scale(1.25, .7); } to { transform: translate(-50%, -50%) rotate(4deg) scale(1); } }
.quire.is-shaking { animation: shake .45s; }
@keyframes shake { 10% { transform: translate(-6px, 3px) rotate(0deg); } 30% { transform: translate(7px, -3px) rotate(2deg); } 50% { transform: translate(-5px, 4px) rotate(.4deg); } 70% { transform: translate(4px, -2px) rotate(1.8deg); } }

.stamp {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none;
  font: 400 clamp(2.2rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: .06em; white-space: nowrap;
  padding: .12em .36em .06em; border: 5px solid currentColor; border-radius: 12px;
  transform: translate(-50%, -50%) rotate(-10deg) scale(2.4); opacity: 0;
}
.stamp.is-in { animation: stamp-in .42s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.stamp--perfect { color: #d7900f; background: rgba(255, 226, 130, .25); text-shadow: 0 0 18px rgba(255, 200, 60, .8); }
.stamp--nice { color: #2a6d2f; }
.stamp--misfire { color: #0d0a0d; background: rgba(251, 246, 232, .9); top: 22%; }
@keyframes stamp-in { to { transform: translate(-50%, -50%) rotate(-10deg) scale(1); opacity: .96; } }

/* the spell you loaded: the game's own card, popped out of the paper */
.spellcard {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: 38%; pointer-events: none;
  display: grid; justify-items: center; gap: .35rem; padding: 7% 6% 6%;
  background: linear-gradient(180deg, #fffaf0, var(--paper-edge)); border-radius: 12px;
  box-shadow: 0 0 0 3px var(--ink), 0 14px 22px -6px rgba(42, 26, 16, .55);
  transform: translate(-50%, -50%) scale(.2) rotate(-14deg); opacity: 0;
}
.spellcard__icon { width: 100%; height: auto; border-radius: 8px; }
.spellcard__name { font: 400 clamp(1.1rem, 3vw, 1.5rem)/1 var(--display); letter-spacing: .05em; color: var(--ink); }
.spellcard__charges { display: flex; gap: 6px; }
.spellcard__charges i { width: 10px; height: 10px; background: #fff; border: 2px solid var(--ink); transform: rotate(45deg); opacity: 0; animation: charge-in .3s var(--spring) forwards; }
.spellcard__charges i.is-bonus { background: var(--gold); }
.spellcard.is-in { animation: card-pop .65s var(--spring) forwards; }
.spellcard.is-perfect { box-shadow: 0 0 0 3px var(--gold-deep), 0 0 26px 4px rgba(255, 200, 60, .75), 0 14px 22px -6px rgba(42, 26, 16, .55); }
.spellcard.is-perfect::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 66%) no-repeat;
  background-size: 250% 100%; animation: shimmer 1.1s .45s ease-out forwards; background-position: 150% 0;
}
@keyframes card-pop { to { transform: translate(-50%, -50%) scale(1) rotate(-3deg); opacity: 1; } }
@keyframes charge-in { from { transform: rotate(45deg) scale(0); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
@keyframes shimmer { to { background-position: -60% 0; } }
.quire__canvas { transition: opacity .35s, filter .35s; }
.quire.has-card .quire__canvas { opacity: .22; filter: blur(1px); }
.stamp.is-tucked { animation: stamp-tuck .45s var(--out) forwards; }
@keyframes stamp-tuck {
  from { transform: translate(-50%, -50%) rotate(-10deg) scale(1); opacity: .96; }
  to { left: 82%; top: 17%; transform: translate(-50%, -50%) rotate(12deg) scale(.42); opacity: .96; }
}

.sigils { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: .4rem; }
.sigil {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .85rem .5rem .6rem; cursor: pointer;
  background: rgba(16, 9, 4, .42); color: #e9dcc0; border: 2px solid rgba(255, 235, 190, .18); border-radius: 12px;
  transition: transform .2s var(--spring), background .2s, border-color .2s;
}
.sigil svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.sigil span { display: grid; text-align: left; font-size: .8rem; line-height: 1.15; color: #c8b796; }
.sigil b { font: 400 1.15rem/1 var(--display); letter-spacing: .05em; color: #fff; }
.sigil:hover { transform: translateY(-2px) rotate(-1deg); border-color: rgba(255, 235, 190, .45); }
.sigil.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(-1.5deg); }
.sigil.is-on b { color: var(--ink); }
.sigil.is-on span { color: var(--ink-soft); }
.quire-result { min-height: 1.6em; font: 400 1.35rem/1.2 var(--hand); color: var(--gold); text-align: center; }

/* ---------- the in-game drawing clip ---------- */
.ingame { position: relative; margin: clamp(3rem, 7vw, 5rem) auto 0; max-width: 980px; padding: 12px 12px 4px; border-radius: 3px; rotate: -.6deg;
  background: linear-gradient(180deg, var(--paper), var(--paper-edge)); color: var(--ink);
  box-shadow: 0 1px 0 #fff8 inset, 0 22px 30px -10px rgba(0, 0, 0, .6), 0 2px 3px rgba(0, 0, 0, .35); }
.ingame__media { aspect-ratio: 16 / 9; overflow: hidden; background: #1a2417; border-radius: 2px; }
.ingame video { width: 100%; height: 100%; object-fit: cover; }
.ingame figcaption { padding: .9rem .4rem 1rem; font-size: .97rem; color: var(--ink-soft); max-width: 70ch; }
.ingame figcaption b { font: 400 1.5rem/1 var(--display); letter-spacing: .04em; color: var(--ink); margin-right: .6rem; }

/* ---------- clip tiles ---------- */
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 26px); margin-top: clamp(2rem, 4vw, 3rem); }
.tile { padding: 9px 9px 0; border-radius: 3px; rotate: var(--tilt, 0deg); transition: rotate .4s var(--spring), translate .4s var(--spring), box-shadow .3s; }
.tile:hover, .combo:hover, .photo:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 1px 0 #fff8 inset, 0 26px 30px -10px rgba(0, 0, 0, .65), 0 2px 3px rgba(0, 0, 0, .35); z-index: 2; }
.tile__media, .combo__media, .card__art { position: relative; overflow: hidden; background: #1a2417; border-radius: 2px; }
.tile__media { aspect-ratio: 3 / 2; }
.tile video, .combo video { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { display: flex; align-items: center; gap: .5rem; font: 400 1.05rem/1 var(--hand); padding: .7rem .2rem .75rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(42, 26, 16, .85); }
.dot--fire { background: var(--fire); } .dot--water { background: var(--water); } .dot--lightning { background: var(--lightning); }
.dot--wind { background: var(--wind); } .dot--earth { background: var(--earth); } .dot--arcane { background: var(--arcane); }
/* the spell count: one big number under the clips */
.bigstat { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.4rem); margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.bigstat__num {
  display: flex; align-items: flex-start;
  font: 400 clamp(6rem, 17vw, 11rem)/.8 var(--display); color: var(--gold); letter-spacing: .01em;
  text-shadow: 0 6px 0 #6b3c0c, 0 14px 26px rgba(0, 0, 0, .45);
  rotate: -4deg;
}
.bigstat__num span { font-variant-numeric: tabular-nums; min-width: 1.1em; text-align: right; }
.bigstat__num i { font-style: normal; font-size: .5em; line-height: 1; margin: .08em 0 0 .04em; color: #fff3cf; }
.bigstat__copy { display: grid; gap: .9rem; max-width: 30rem; }
.bigstat__label { font: 400 clamp(1.5rem, 3.4vw, 2.3rem)/1.05 var(--display); letter-spacing: .03em; color: var(--paper-warm); text-wrap: balance; }
.bigstat__els { display: flex; flex-wrap: wrap; gap: 8px; }
.bigstat__els .el { font-size: 1rem; }
.js .bigstat.is-in .el { animation: el-pop .5s var(--spring) both; }
.bigstat__els .el:nth-child(2) { animation-delay: .06s; } .bigstat__els .el:nth-child(3) { animation-delay: .12s; }
.bigstat__els .el:nth-child(4) { animation-delay: .18s; } .bigstat__els .el:nth-child(5) { animation-delay: .24s; }
.bigstat__els .el:nth-child(6) { animation-delay: .30s; }
@keyframes el-pop { from { translate: 0 10px; scale: .6; opacity: 0; } to { translate: 0 0; scale: 1; opacity: 1; } }
@media (max-width: 640px) { .bigstat { flex-direction: column; text-align: center; } .bigstat__els { justify-content: center; } }

/* ---------- misfires: the black ink section ---------- */
.section--ink {
  background:
    radial-gradient(60% 50% at 80% 0, rgba(120, 90, 130, .16), transparent 70%),
    linear-gradient(180deg, var(--black-ink), var(--black-ink-2));
  color: #fff;
  clip-path: inset(0 0 -120px 0); /* keeps the ink blots inside, lets the drips hang over the timber below */
}
.section--ink::before, .section--ink::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; pointer-events: none; z-index: 1;
  background: var(--black-ink);
  /* ink dripping over the timber above and pooling at the bottom */
  -webkit-mask: radial-gradient(34px 62px at 50% 0, #000 98%, transparent) 0 0 / 118px 100% repeat-x, radial-gradient(22px 34px at 50% 0, #000 98%, transparent) 59px 0 / 190px 100% repeat-x;
  mask: radial-gradient(34px 62px at 50% 0, #000 98%, transparent) 0 0 / 118px 100% repeat-x, radial-gradient(22px 34px at 50% 0, #000 98%, transparent) 59px 0 / 190px 100% repeat-x;
}
.section--ink::before { top: 100%; }
.section--ink::after { bottom: 100%; transform: scaleY(-1); background: var(--black-ink); display: none; }
.splat { position: absolute; border-radius: 50%; background: #1f1a21; opacity: .8; pointer-events: none; }
.splat--a { width: 320px; height: 300px; right: -90px; top: 40px; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.splat--b { width: 190px; height: 170px; left: -60px; bottom: 80px; border-radius: 45% 55% 40% 60% / 60% 42% 58% 40%; }
.section--ink .wrap { position: relative; z-index: 2; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; gap: clamp(16px, 2.6vw, 30px) clamp(14px, 2.2vw, 26px); }
.card {
  padding: 10px 10px 16px; border-radius: 3px; rotate: var(--tilt, 0deg);
  transition: rotate .45s var(--spring), translate .45s var(--spring), scale .45s var(--spring), box-shadow .3s;
}
.card:hover, .card:focus-within { rotate: 0deg; translate: 0 -8px; scale: 1.04; z-index: 3; box-shadow: 0 1px 0 #fff8 inset, 0 30px 34px -10px rgba(0, 0, 0, .8), 0 0 0 3px var(--gold); }
.card__art { aspect-ratio: 1; background: #f3e7c8; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--out); }
.card:hover .card__art img { scale: 1.06; }
.card__art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.card.is-playing .card__art video { opacity: 1; }
.card h3 { font: 400 1.6rem/1 var(--display); letter-spacing: .04em; margin: .85rem .2rem .3rem; }
.card p { font-size: .9rem; line-height: 1.42; color: var(--ink-soft); margin-inline: .2rem; }
.card--more { display: grid; background: linear-gradient(180deg, #2a222b, #151116); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08) inset, 0 14px 22px -8px rgba(0, 0, 0, .7); }
.card--more:hover { box-shadow: 0 0 0 3px var(--gold), 0 30px 34px -10px rgba(0, 0, 0, .8); }
.more { display: grid; align-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 1.4rem 1rem; min-height: 100%; }
.card--more .more__num { margin: 0; font: 400 clamp(4rem, 10vw, 7rem)/.85 var(--display); color: var(--gold); text-shadow: 0 5px 0 #6b3c0c; rotate: -4deg; }
.card--more .more__label { margin: 0; font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.05 var(--display); letter-spacing: .04em; color: #fff; }
.card--more .more__hint { margin: 0; font-size: .92rem; line-height: 1.45; color: #ddd3df; max-width: 26ch; }
.cards__note { margin-top: 2rem; text-align: center; font: 400 1rem/1.3 var(--hand); color: #a99fad; }

/* ---------- combos ---------- */
.combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.combo { padding: 10px 10px 4px; border-radius: 3px; rotate: var(--tilt, 0deg); transition: rotate .4s var(--spring), translate .4s var(--spring), box-shadow .3s; }
.combo__media { aspect-ratio: 16 / 10; }
.combo figcaption { padding: .9rem .35rem 1rem; font-size: .93rem; line-height: 1.45; color: var(--ink-soft); }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.formula i { font: 400 1.4rem/1 var(--display); color: var(--ink); font-style: normal; }
.el { font: 400 1.18rem/1 var(--display); letter-spacing: .05em; padding: .3em .55em .22em; border-radius: 7px; color: #1a120c; box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.el--fire { background: var(--fire); } .el--water { background: var(--water); } .el--lightning { background: var(--lightning); }
.el--wind { background: var(--wind); } .el--earth { background: var(--earth); } .el--arcane { background: var(--arcane); color: #fff; }

/* ---------- arenas ---------- */
.arenas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3.6vw, 44px); }
.photo { padding: 12px 12px 6px; border-radius: 3px; rotate: var(--tilt, 0deg); transition: rotate .4s var(--spring), translate .4s var(--spring), box-shadow .3s; }
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1a2417; border-radius: 2px; }
.photo figcaption { padding: .85rem .3rem .9rem; font-size: .95rem; color: var(--ink-soft); }
.photo figcaption b { display: block; font: 400 1.75rem/1.05 var(--display); letter-spacing: .04em; color: var(--ink); margin-bottom: .15rem; }

.tower { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: center; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; max-width: 820px; padding: 1.7rem clamp(1.2rem, 3.5vw, 2.2rem); border-radius: 4px; rotate: .7deg; }
.tower h3 { font: 400 1.9rem/1 var(--display); letter-spacing: .04em; margin-bottom: .45rem; }
.tower p { color: var(--ink-soft); font-size: .98rem; }
.tower__mark { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; flex: none; }
.tower__mark span { display: block; height: 15px; background: var(--ink); border-radius: 3px; }
.tower__mark span:nth-child(1) { width: 58px; } .tower__mark span:nth-child(2) { width: 50px; } .tower__mark span:nth-child(3) { width: 42px; }
.tower__mark span:nth-child(4) { width: 34px; } .tower__mark span:nth-child(5) { width: 26px; background: var(--gold-deep); }

/* ---------- facts + final notice ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3.4rem); padding-block: clamp(2rem, 5vw, 3.5rem); text-align: center; color: #cdbd9c; font-size: .92rem; }
.facts li { display: grid; gap: .1rem; min-width: 7.5em; }
.facts b { font: 400 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--gold); letter-spacing: .03em; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.notice--final { width: min(720px, 100%); margin: 1rem auto 0; padding: 2.4rem clamp(1.2rem, 4vw, 2.8rem) 2rem; rotate: -.7deg; }
.notice--final .body { color: var(--ink-soft); }
.notice--final .title { padding-right: clamp(70px, 14vw, 120px); }
.notice__sticker { position: absolute; right: -34px; top: -48px; width: 150px; height: auto; rotate: 12deg; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); pointer-events: none; }

.foot { background: #160c06; padding-block: 3rem 3.4rem; text-align: center; color: #a8946f; }
.foot__inner { display: grid; gap: .7rem; justify-items: center; }
.foot img { width: 220px; opacity: .95; }
.foot p { font: 400 1.1rem/1.3 var(--hand); }
.foot .foot__small { font: 400 .8rem/1.4 var(--text); color: #7a694e; }

/* ---------- scroll reveals (only when the script is running, so the page reads without it) ---------- */
.js .reveal { opacity: 0; translate: 0 34px; scale: .97; transition: opacity .6s var(--out), translate .9s var(--spring), scale .9s var(--spring), rotate .4s var(--spring), box-shadow .3s; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }
.js .card.reveal, .js .tile.reveal, .js .photo.reveal, .js .combo.reveal { rotate: calc(var(--tilt, 0deg) * 4); }
.js .card.reveal.is-in, .js .tile.reveal.is-in, .js .photo.reveal.is-in, .js .combo.reveal.is-in { rotate: var(--tilt, 0deg); }
.js .card.reveal.is-in:hover, .js .tile.reveal.is-in:hover, .js .photo.reveal.is-in:hover, .js .combo.reveal.is-in:hover { rotate: 0deg; translate: 0 -7px; transition-delay: 0s; }

/* ---------- narrow screens ---------- */
@media (max-width: 980px) {
  .draw { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combos { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__guild { display: none; }
  .topbar { justify-content: flex-end; }
  .topbar__links a:not(.topbar__discord) { display: none; }
  .arenas { grid-template-columns: minmax(0, 1fr); }
  .tower { flex-direction: column; text-align: center; }
  .notice__sticker { width: 104px; right: -8px; top: -52px; }
  .hero__scroll { display: none; }
  .card h3 { font-size: 1.35rem; }
  .sealed { padding-right: 2.6em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; translate: none; scale: 1; }
}

@media (max-width: 640px) {
  .card--more .more { padding: .8rem .4rem; gap: .4rem; }
  .card--more .more__label { font-size: 1.15rem; }
  .card--more .more__hint { font-size: .78rem; }
}

/* the arenas not shown */
.arenas-more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(.8rem, 2.4vw, 1.8rem); margin-top: clamp(2rem, 5vw, 3.2rem); text-align: left; }
.arenas-more__num { margin: 0; font: 400 clamp(4.5rem, 12vw, 7.5rem)/.8 var(--display); color: var(--gold); text-shadow: 0 5px 0 #6b3c0c, 0 12px 22px rgba(0, 0, 0, .45); rotate: -4deg; }
.arenas-more__label { margin: 0; max-width: 22ch; font: 400 clamp(1.4rem, 3.2vw, 2.1rem)/1.05 var(--display); letter-spacing: .03em; color: var(--paper-warm); text-wrap: balance; }
@media (max-width: 640px) { .arenas-more { flex-direction: column; text-align: center; } }

/* what signing up gets you */
.perks__head { margin: 1rem 0 .5rem; font: 400 1.05rem/1.2 var(--hand); color: var(--ink-soft); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perks li { position: relative; padding: .5rem .6rem .5rem 2rem; background: rgba(255, 250, 238, .7); border: 1.5px solid rgba(42, 26, 16, .18); border-radius: 9px; font-size: .84rem; line-height: 1.3; color: var(--ink-soft); }
.perks li::before { content: ""; position: absolute; left: .6rem; top: .62rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.perks li:first-child { background: #fff3cf; border-color: var(--gold-deep); }
.perks b { display: block; font: 400 1.08rem/1.05 var(--display); letter-spacing: .04em; color: var(--ink); margin-bottom: .1rem; }
@media (max-width: 420px) { .perks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- gameplay: one big pinned player and a strip of clips under it ---------- */
.section--fights { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.head--center { margin-inline: auto; text-align: center; }
.theatre { margin-top: 0; max-width: 1040px; }
.theatre__media { position: relative; }
.theatre__media video { transition: opacity .25s; }
.theatre__media video.is-swapping { opacity: 0; }
.theatre__controls { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 8px; }
.theatre__btn {
  font: 400 1rem/1 var(--display); letter-spacing: .05em; color: #fff;
  background: rgba(16, 13, 16, .62); border: 0; border-radius: 999px; padding: .55em .9em .5em; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s;
}
.theatre__btn:hover { background: rgba(16, 13, 16, .85); }
.theatre__sound[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.theatre__media video { cursor: pointer; }
.theatre__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .35); }
.theatre__progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.theatre figcaption b { margin-right: .6rem; }

.strip { position: relative; max-width: 1040px; margin: 1.2rem auto 0; }
.strip__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 28px 30px 22px; scroll-padding-inline: 30px; scrollbar-width: none;
  /* fade an edge only while there are more clips past it */
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.strip.more-l .strip__track { --fade-l: 48px; }
.strip.more-r .strip__track { --fade-r: 48px; }
.strip__track::-webkit-scrollbar { display: none; }
.clip {
  flex: 0 0 clamp(150px, 22vw, 210px); scroll-snap-align: start; cursor: pointer; text-align: left;
  padding: 6px 6px 0; border: 0; border-radius: 3px; color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-edge));
  box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .6), 0 2px 3px rgba(0, 0, 0, .3);
  rotate: var(--tilt, 0deg); transform-origin: 50% 85%; transition: rotate .35s var(--spring), translate .35s var(--spring), scale .4s var(--spring), margin .4s var(--spring), box-shadow .25s;
}
.clip { position: relative; }
.clip__thumb { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.clip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1a2417; transition: scale .4s var(--out), filter .3s; }
.clip__play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(16, 13, 16, .7); box-shadow: 0 0 0 3px var(--paper), 0 6px 14px rgba(0, 0, 0, .5);
  opacity: 0; scale: .7; transition: opacity .2s, scale .3s var(--spring); pointer-events: none;
}
.clip__play::before { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.clip:hover .clip__play, .clip:focus-visible .clip__play { opacity: 1; scale: 1; }
.clip:hover img { scale: 1.05; filter: brightness(.85); }
.clip.is-on .clip__play { display: none; }
.clip > span:last-child { display: block; padding: .45rem .15rem .55rem; font: 400 .92rem/1.1 var(--hand); }
.clip small { display: block; font: 500 .72rem/1.2 var(--text); color: var(--ink-soft); }
.clip:hover { rotate: 0deg; translate: 0 -4px; }
.clip.is-on { rotate: 0deg; translate: 0 -4px; scale: 1.14; z-index: 1; margin-inline: 14px; box-shadow: 0 0 0 3px var(--gold), 0 18px 24px -8px rgba(0, 0, 0, .75); }
.strip__arrow {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 0; cursor: pointer;
  font: 700 1.6rem/1 var(--text); color: var(--ink); background: var(--paper); box-shadow: 0 6px 12px rgba(0, 0, 0, .45);
  transition: transform .2s var(--spring), opacity .2s;
}
.strip__arrow:hover { transform: scale(1.08); }
.strip__arrow[disabled] { opacity: 0; pointer-events: none; }
.strip__arrow--l { left: -14px; } .strip__arrow--r { right: -14px; }
@media (max-width: 640px) { .strip__arrow { display: none; } .theatre__controls { top: 8px; right: 8px; gap: 6px; } .theatre__btn { font-size: .9rem; } }

/* the last drawing fading out while a new one starts */
.quire__ghost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .38s ease, filter .38s ease, translate .38s ease; }
.quire__ghost.is-going { opacity: 0; filter: blur(2px); translate: 0 6px; }
.stamp.is-leaving, .spellcard.is-leaving, .quire__cow.is-leaving { animation: leave .38s ease forwards !important; pointer-events: none; }
@keyframes leave { to { opacity: 0; filter: blur(2px); } }
.quire-result { transition: opacity .3s; }
.quire-result.is-leaving { opacity: 0; }

/* ---------- hero, lighter: one line, icon chips, the form, a slim link row ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice--hero { width: min(520px, 100%); padding: 1.5rem clamp(1.1rem, 3.4vw, 1.8rem) 1.25rem; }
.hero-lead { font-size: 1.12rem; line-height: 1.4; color: var(--ink); text-align: center; text-wrap: balance; }
.hero-lead strong { font-weight: 700; }
.platforms { display: inline-block; margin-left: .3rem; padding: .18em .55em .14em; border-radius: 999px; font: 600 .72rem/1.2 var(--text);
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: rgba(42, 26, 16, .08); vertical-align: .12em; }
.notice--hero .perks__head { text-align: center; margin: .95rem 0 .5rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.chips li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem .34rem .5rem; border-radius: 999px;
  font: 400 1rem/1 var(--display); letter-spacing: .04em; color: var(--ink);
  background: #fffaf0; border: 1.5px solid rgba(42, 26, 16, .2);
}
.chips li:first-child { background: #fff0c2; border-color: var(--gold-deep); }
.chips svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice--hero .signup { margin-top: 1rem; }
.notice__row--slim { justify-content: center; gap: 10px; margin-top: .85rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem .4rem .6rem; border-radius: 999px; text-decoration: none;
  font: 600 .85rem/1 var(--text); color: var(--ink-soft); background: rgba(42, 26, 16, .06); border: 1.5px dashed rgba(42, 26, 16, .25);
}
.link-pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-pill--discord { color: #fff; background: var(--discord); border: 1.5px solid #4752c4; transition: transform .15s var(--out), filter .2s; }
.link-pill--discord:hover { transform: translateY(-1px); filter: brightness(1.08); }
.link-pill--discord[aria-disabled="true"] { opacity: .8; }
.link-pill--sealed b { color: #b3271b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.slim-note { margin-top: .55rem; text-align: center; font: 400 .92rem/1.25 var(--hand); color: var(--ink-soft); }
.platforms { display: inline-flex; align-items: center; gap: .45rem; padding: .28em .6em; vertical-align: -.2em; }
.platforms svg { width: 18px; height: 18px; fill: var(--ink); }

/* ---------- the Tower card: illustration beside the pitch and its chips ---------- */
.tower { max-width: 880px; gap: clamp(1rem, 3vw, 2rem); align-items: stretch; padding: 1.4rem clamp(1.1rem, 3vw, 2rem); }
.tower__art { position: relative; flex: 0 0 clamp(150px, 24%, 220px); display: grid; place-items: center; }
.tower__art img { width: 100%; height: auto; border-radius: 6px; filter: drop-shadow(0 10px 14px rgba(42, 26, 16, .35)); rotate: -2deg; }
.tower__art .tower__mark { display: none; }
.tower__art.no-art img { display: none; }
.tower__art.no-art .tower__mark { display: flex; }
.tower__body { display: grid; align-content: center; gap: .45rem; min-width: 0; }
.eyebrow--dark { color: var(--gold-deep); margin-bottom: 0; }
.tower h3 { font: 400 clamp(2.2rem, 4vw, 3rem)/.95 var(--display); letter-spacing: .03em; margin: 0; }
.tower__body > p:not(.eyebrow) { font-size: 1rem; color: var(--ink-soft); }
.tower__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: .35rem; }
.tower__chips li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem .36rem .55rem; border-radius: 999px;
  font: 400 1.02rem/1 var(--display); letter-spacing: .04em; color: var(--ink); background: #fffaf0; border: 1.5px solid rgba(42, 26, 16, .2);
}
.tower__chips li:nth-child(-n+2) { background: #fff0c2; border-color: var(--gold-deep); }
.tower__chips svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .tower { flex-direction: column; text-align: left; } .tower__art { flex-basis: auto; width: 55%; margin-inline: auto; } }

/* sign-up extras: the Turnstile box (only shows when Cloudflare asks) and the reassurance line */
.signup__check:empty { display: none; }
.signup__check { margin-top: .6rem; display: flex; justify-content: center; }
.signup__note:empty { min-height: 0; margin-top: 0; }
.signup__fine { margin-top: .35rem; font-size: .78rem; color: var(--ink-soft); opacity: .8; text-align: center; }
