/* ==========================================================
   Mad Tea Party Development · March Hare Games
   Theme: Dark Wonderland Forest — whimsy, magic & mania.
   Colours live in :root.
   ========================================================== */

:root {
  --void:   #040806;
  --forest: #0a140f;
  --moss:   #10211a;
  --bark:   #1a2b22;
  --line:   #2c4436;

  --text:   #e8efe6;
  --muted:  #9db3a5;
  --parch:  #f1e6cc;

  --glow:   #8dffc1;   /* portal green */
  --violet: #b088ff;   /* magic */
  --plum:   #4a2a78;
  --gold:   #f3c85e;   /* brass keys & pocket watches */
  --rose:   #ff5d7d;   /* the Queen's hearts */

  --title: "IM Fell English SC", Georgia, serif;
  --story: "IM Fell English", Georgia, serif;
  --ui:    "Alata", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 15% 20%, rgba(141,255,193,.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(176,136,255,.07), transparent 70%),
    var(--void);
  overflow-x: hidden;
}
html { background: var(--void); }

a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: #c4ffe0; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(4,8,6,.94), rgba(4,8,6,.82));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(141,255,193,.12);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--parch); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(243,200,94,.45)); transition: transform .5s; }
.brand:hover img { transform: rotate(-18deg) scale(1.08); }
.brand span { font-family: var(--title); font-size: 1.3rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--ui); font-size: .68rem; letter-spacing: .32em; color: var(--glow); text-transform: uppercase; }
.brand:hover { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(141,255,193,.07); }
.nav-links a[aria-current="page"] { color: var(--glow); }
.nav-links .btn { margin-left: 8px; color: #fff; }
.nav-links .btn:hover { color: #fff; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.menu-btn { display: none; background: none; border: 0; color: var(--parch); font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(4,8,6,.98); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------------- Buttons (chunky game-UI, dark outline) ---------------- */
.btn {
  --c1: #59e39a; --c2: #1f9c5c; --edge: #0d4a2b;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-size: 1rem; color: #fff; text-decoration: none; letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
  padding: 11px 24px; border-radius: 12px; cursor: pointer;
  border: 2px solid #050a07;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 var(--edge), 0 8px 18px rgba(0,0,0,.45);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px) rotate(-.6deg); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 1px 0 var(--edge), 0 3px 8px rgba(0,0,0,.4); }
.btn img { width: 22px; height: 22px; }
.btn.violet { --c1: #b98cff; --c2: #6b3fc4; --edge: #2e1661; }
.btn.gold   { --c1: #ffe08a; --c2: #d99a26; --edge: #6e4708; color: #2b1a02; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn.gold:hover { color: #2b1a02; }
.btn.ghost {
  background: rgba(10,20,15,.6); color: var(--parch);
  border: 2px solid rgba(241,230,204,.35); box-shadow: 0 8px 18px rgba(0,0,0,.35); text-shadow: none;
}
.btn.ghost:hover { border-color: var(--parch); color: #fff; }
.btn.small { padding: 7px 16px; font-size: .9rem; }
.btn.soon {
  background: repeating-linear-gradient(-45deg, #1a2420 0 10px, #16201b 10px 20px);
  color: var(--muted); border: 2px dashed #3a5246; box-shadow: none; text-shadow: none; cursor: default;
}
.btn.soon:hover, .btn.soon:active { transform: none; filter: none; color: var(--muted); }

/* ---------------- Hero: the forest clearing ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px); display: grid; place-items: center;
  padding: 90px 0 140px; text-align: center;
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -3;
  background: center 40% / cover no-repeat;
  filter: saturate(.95) brightness(.72);
  animation: breathe 18s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.hero::before {          /* vignette + fade into the page */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(4,8,6,.15), rgba(4,8,6,.75) 75%),
    linear-gradient(180deg, rgba(4,8,6,.55) 0%, transparent 25%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }

.kicker { font-family: var(--story); font-style: italic; font-size: 1.25rem; color: var(--gold); margin: 0 0 10px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero h1 {
  margin: 0; font-family: var(--title); font-weight: 400; line-height: .9;
  font-size: clamp(3.2rem, 11vw, 7.6rem);
  color: var(--parch);
  text-shadow: 0 0 28px rgba(141,255,193,.35), 0 4px 0 #06110b, 0 10px 30px rgba(0,0,0,.8);
}
.hero h1 .wob { display: inline-block; transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.hero h1 .wob:hover { transform: translateY(-8px) rotate(-6deg); color: var(--glow); }
.hero .sub {
  font-family: var(--ui); letter-spacing: .55em; text-transform: uppercase; font-size: clamp(.85rem, 2.2vw, 1.2rem);
  color: var(--glow); margin: 14px 0 0; padding-left: .55em; text-shadow: 0 0 12px rgba(141,255,193,.6);
}
.hero .tagline { max-width: 560px; margin: 22px auto 30px; font-size: 1.15rem; color: #dfe8dd; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.divider { width: min(520px, 80%); height: 26px; margin: 18px auto 0; background: url(assets/ui/divider.png) center / contain no-repeat; opacity: .7; }

/* drifting curiosities */
.float { position: absolute; z-index: -1; width: clamp(54px, 7vw, 96px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)) drop-shadow(0 0 16px rgba(141,255,193,.18)); animation: drift 9s ease-in-out infinite; }
.float.f1 { top: 16%; left: 7%;  animation-delay: -1s; }
.float.f2 { top: 22%; right: 8%; animation-delay: -4s; animation-duration: 11s; }
.float.f3 { bottom: 22%; left: 12%; animation-delay: -2s; animation-duration: 10s; }
.float.f4 { bottom: 26%; right: 13%; animation-delay: -6s; }
.float.f5 { top: 58%; left: 3%; width: clamp(40px, 4.5vw, 64px); animation-delay: -3s; animation-duration: 13s; opacity: .8; }
.float.f6 { top: 9%; right: 28%; width: clamp(36px, 4vw, 58px); animation-delay: -5s; animation-duration: 12s; opacity: .75; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  33% { transform: translate(8px, -16px) rotate(6deg); }
  66% { transform: translate(-6px, -6px) rotate(-2deg); }
}
.float img { width: 100%; }
.tag-note {      /* "Drink me" luggage tag */
  position: absolute; z-index: 1; bottom: -6px; left: -34px; white-space: nowrap; font-family: var(--story); font-style: italic; font-size: .95rem;
  background: var(--parch); color: #3a2a12; padding: 2px 10px 2px 14px; border-radius: 3px 8px 8px 3px;
  transform: rotate(-12deg); box-shadow: 0 4px 10px rgba(0,0,0,.5);
}
.tag-note::before { content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #3a2a12; }

/* fireflies */
.fireflies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fireflies i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #d9ffe9; box-shadow: 0 0 10px 3px rgba(141,255,193,.75);
  animation: fly var(--d, 12s) ease-in-out infinite, blink var(--b, 3s) ease-in-out infinite;
}
@keyframes fly {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--x1, 40px), var(--y1, -60px)); }
  50%  { transform: translate(var(--x2, -30px), var(--y2, -110px)); }
  75%  { transform: translate(var(--x3, 50px), var(--y3, -40px)); }
  100% { transform: translate(0, 0); }
}
@keyframes blink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

@media (max-width: 700px) {
  .float.f5, .float.f6 { display: none; }
  .float.f1 { top: 9%; } .float.f2 { top: 11%; }
  .float.f3 { bottom: 10%; } .float.f4 { bottom: 12%; }
  .hero { padding: 80px 0 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .float, .fireflies i, .art img.item { animation: none !important; }
}

/* ---------------- Section headings ---------------- */
.section { padding: 80px 0 30px; position: relative; }
.ribbon {
  position: relative; display: grid; place-items: center;
  width: min(340px, 86%); aspect-ratio: 349 / 129; margin: 0 auto 6px;
  background: url(assets/ui/ribbon.png) center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55));
}
.ribbon h2 {
  margin: -6% 0 0; font-family: var(--title); font-weight: 400; color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: .03em; text-shadow: 0 2px 0 #2a1052, 0 0 12px rgba(0,0,0,.4);
}
.lede { text-align: center; color: var(--muted); max-width: 620px; margin: 6px auto 44px; font-family: var(--story); font-style: italic; font-size: 1.2rem; }

/* ---------------- Product / game cards ---------------- */
.grid { display: grid; gap: 30px 26px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 15px solid transparent;
  border-image: url(assets/ui/card-frame.png) 24 fill / 15px / 0 stretch;
  background: linear-gradient(180deg, #17261e, #0d1712) padding-box;
  border-radius: 22px;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.55));
  transition: transform .35s cubic-bezier(.3,1.5,.5,1), filter .35s;
}
.card:hover { transform: translateY(-8px) rotate(-.8deg); filter: drop-shadow(0 22px 30px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(176,136,255,.28)); }
.card:nth-child(even):hover { transform: translateY(-8px) rotate(.8deg); }

.art {
  position: relative; height: 200px; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, var(--tint, rgba(141,255,193,.18)), transparent 70%), #0a130e;
}
.art::before { content: ""; position: absolute; inset: 0; background: url(assets/ui/glow.webp) center 35% / 70% no-repeat; opacity: .35; mix-blend-mode: screen; }
.art .platform { position: absolute; bottom: 14px; width: 62%; opacity: .9; }
.art img.item { position: relative; width: 120px; margin-bottom: 26px; filter: drop-shadow(0 12px 10px rgba(0,0,0,.55)); animation: hover-item 4.5s ease-in-out infinite; }
.card:hover .art img.item { animation-duration: 1.6s; }
@keyframes hover-item { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.art.wide img.item { width: 190px; margin-bottom: 18px; }

.bookmark {
  position: absolute; top: -15px; right: 14px; z-index: 2;
  width: 66px; height: 96px; padding-top: 22px; text-align: center;
  background: url(assets/ui/bookmark.png) top / 100% 100% no-repeat;
  font-size: .86rem; color: #fff; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.5);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.5));
}
.bookmark b { display: block; font-size: 1.02rem; font-weight: 400; }

.card-body { padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--parch); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px; color: var(--muted);
  background: rgba(141,255,193,.06); border: 1px solid rgba(141,255,193,.16);
}
.chip.itch { color: #ff9cad; border-color: rgba(255,93,125,.35); background: rgba(255,93,125,.07); }
.chip.gum  { color: #d6b8ff; border-color: rgba(176,136,255,.35); background: rgba(176,136,255,.08); }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- Ornate panel ---------------- */
.panel {
  position: relative;
  border: 15px solid transparent;
  border-image: url(assets/ui/card-frame.png) 24 fill / 15px / 0 stretch;
  background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(176,136,255,.10), transparent 70%), linear-gradient(180deg, #15231c, #0c1511);
  background-clip: padding-box;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,.6));
}
.panel::before, .panel::after {   /* filigree corners */
  content: ""; position: absolute; width: 74px; height: 74px; z-index: 2; pointer-events: none;
  background: center / contain no-repeat;
}
.panel::before { top: -22px; left: -22px; background-image: url(assets/ui/corner-left.png); }
.panel::after { bottom: -22px; right: -22px; background-image: url(assets/ui/corner-right.png); }
.panel-inner { padding: 26px 30px; }
@media (max-width: 600px) { .panel-inner { padding: 18px 12px; } }

/* featured game */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 6px; }
.shots img {
  border-radius: 14px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%;
  border: 3px solid #050a07; box-shadow: 0 0 0 2px rgba(176,136,255,.35), 0 14px 24px rgba(0,0,0,.6);
  background: linear-gradient(180deg, #2a1a4a, #120a24);
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.shots img:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
.shots img:nth-child(2) { transform: translateY(-12px) scale(1.05); z-index: 1; }
.shots img:nth-child(3) { transform: rotate(5deg) translateY(10px); }
.feature:hover .shots img:nth-child(1) { transform: rotate(-9deg) translate(-6px, 6px); }
.feature:hover .shots img:nth-child(3) { transform: rotate(9deg) translate(6px, 6px); }
.feature h3 { font-family: var(--title); font-weight: 400; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1; margin: 0; color: var(--parch); }
.feature .tag { font-family: var(--story); font-style: italic; font-size: 1.25rem; color: var(--gold); margin: 4px 0 0; }
.feature p { color: var(--muted); margin: 10px 0 0; }
.feature .info { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.price-line { color: var(--text) !important; }
.price-line b { color: var(--gold); font-weight: 400; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.store-row a img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 5px 9px; border: 2px solid #050a07; transition: transform .2s; }
.store-row a:hover img { transform: translateY(-2px) rotate(-2deg); }
.small-note { font-size: .85rem !important; }
.feature .card-actions { margin-top: 14px; }
.featured-flag {
  position: absolute; top: -48px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 230px; aspect-ratio: 349/129; display: grid; place-items: center;
  background: url(assets/ui/ribbon.png) center / contain no-repeat;
  font-family: var(--title); color: #fff; font-size: 1.15rem; padding-bottom: 10px; text-shadow: 0 2px 0 #2a1052;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .shots { max-width: 460px; margin: 0 auto; } }

/* ---------------- Story ---------------- */
.story { max-width: 880px; margin: 0 auto; display: grid; gap: 34px; }
.story h3 { font-family: var(--title); font-weight: 400; color: var(--violet); font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.story h3 img { width: 46px; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.story p { margin: 0 0 12px; color: #d4dfd6; font-size: 1.04rem; }
.quote {
  font-family: var(--story); font-style: italic; font-size: 1.45rem !important; color: var(--parch) !important;
  text-align: center; margin: 18px 0 !important; position: relative;
}
.quote::before, .quote::after { content: "❦"; color: var(--violet); font-style: normal; margin: 0 12px; font-size: 1.1rem; vertical-align: middle; }

/* ---------------- CTA ---------------- */
.cta { padding: 70px 0 100px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta .panel { max-width: 760px; margin: 0 auto; }
.cta h2 { font-family: var(--title); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin: 0 0 6px; color: var(--parch); line-height: 1.1; }
.cta p { color: var(--muted); margin: 0 auto 24px; max-width: 520px; font-family: var(--story); font-style: italic; font-size: 1.15rem; }
.cta .peek { position: absolute; width: 90px; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }

/* ---------------- Footer ---------------- */
footer { position: relative; padding: 50px 0 26px; margin-top: 30px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(840px, 90%); height: 26px; background: url(assets/ui/divider.png) center / contain no-repeat; opacity: .5; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.foot h4 { font-family: var(--title); font-weight: 400; color: var(--glow); font-size: 1.15rem; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--text); text-decoration: underline; }
.foot p { color: var(--muted); margin: 10px 0 0; max-width: 300px; font-family: var(--story); font-style: italic; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(141,255,193,.1); margin-top: 34px; padding-top: 18px; font-size: .85rem; color: #6f8578; }
.legal a { color: #8aa194; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------------- Reveal on scroll ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.grid.few { grid-template-columns: repeat(auto-fit, minmax(250px, 290px)); justify-content: center; }

/* ---------------- Logos ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand img.logo { width: 46px; height: 46px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(176,136,255,.45)); }
.hero-logo {
  width: clamp(210px, 30vw, 320px); margin: 0 auto 6px; border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(176,136,255,.45)) drop-shadow(0 0 70px rgba(141,255,193,.18)) drop-shadow(0 18px 30px rgba(0,0,0,.7));
  animation: logo-float 7s ease-in-out infinite;
  transition: transform .6s cubic-bezier(.3,1.6,.5,1);
}
.hero-logo:hover { transform: rotate(-8deg) scale(1.04); }
@keyframes logo-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero.compact { min-height: 0; padding: 70px 0 90px; }
.hero.compact .hero-logo { width: clamp(150px, 20vw, 200px); }
.hero.compact h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }

/* ---------------- Cover art on cards ---------------- */
.art img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .art img.shot { transform: scale(1.06); }
.art.has-shot::before { display: none; }
.art.has-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,19,14,.85)); pointer-events: none; }
.art img.item.logo-art { width: 150px; margin-bottom: 22px; }
.mm-title { display: flex; align-items: center; gap: 14px; }
.mm-title img { width: 64px; height: 64px; border-radius: 14px; border: 2px solid #050a07; box-shadow: 0 6px 14px rgba(0,0,0,.5); }

/* extra chips */
.chip.charity { color: #ffb3c2; border-color: rgba(255,93,125,.35); background: rgba(255,93,125,.08); }
.chip.code { color: var(--glow); border-color: rgba(141,255,193,.3); }

/* ---------------- House rules / pillars ---------------- */
.pillars { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar { text-align: center; }
.pillar .panel-inner { padding: 22px 16px 18px; }
.pillar img { width: 72px; margin: -6px auto 8px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); transition: transform .4s cubic-bezier(.3,1.8,.5,1); }
.pillar:hover img { transform: translateY(-6px) rotate(-8deg) scale(1.08); }
.pillar h3 { font-family: var(--title); font-weight: 400; font-size: 1.45rem; color: var(--parch); margin: 0 0 6px; line-height: 1.15; }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }
.pillar .big { display: block; font-family: var(--title); font-size: 2.4rem; line-height: 1; color: var(--rose); margin-bottom: 4px; text-shadow: 0 0 18px rgba(255,93,125,.35); }

/* ---------------- Socials ---------------- */
.social-group + .social-group { margin-top: 56px; }
.social-group h3 { text-align: center; font-family: var(--story); font-style: italic; font-weight: 400; color: var(--gold); font-size: 1.35rem; margin: 0 0 22px; }
.social-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 262px)); justify-content: center; }
.social-card { text-align: center; }
.social-card .panel-inner { padding: 26px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.social-card .icon {
  width: 92px; height: 92px; display: grid; place-items: center; border-radius: 24px; margin-bottom: 4px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.10), rgba(255,255,255,.02) 70%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .45s cubic-bezier(.3,1.8,.5,1), box-shadow .3s;
}
.social-card .icon img { width: 60px; height: 60px; object-fit: contain; }
.social-card:hover .icon { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 28px var(--brand, rgba(176,136,255,.4)); }
.social-card h4 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 1.6rem; color: var(--parch); }
.social-card .handle { color: var(--muted); font-size: .92rem; margin: -4px 0 6px; }
.social-card p { color: var(--muted); font-size: .94rem; margin: 0 0 10px; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: transform .3s, background .3s;
}
.social-row a:hover { transform: translateY(-3px) rotate(-6deg); background: rgba(255,255,255,.1); }
.social-row img { width: 22px; height: 22px; object-fit: contain; }

/* five-card menu: 3 + 2, centred */
.grid.flow { display: flex; flex-wrap: wrap; justify-content: center; }
.grid.flow > .card { flex: 0 1 330px; }

/* ---------------- Value comparison ---------------- */
.value { max-width: 880px; margin: 46px auto 0; }
.value .panel-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px; }
.value-col { text-align: center; }
.value-label { display: block; font-family: var(--ui); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--muted); }
.value-price { display: block; font-family: var(--title); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05; margin: 6px 0 10px; }
.value-price small { font-family: var(--ui); font-size: .95rem; margin-left: 4px; color: var(--muted); }
.value-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.them .value-price { color: #8a958e; }
.them .value-price s { text-decoration-color: var(--rose); text-decoration-thickness: 3px; }
.them li { color: #8a958e; }
.them li::before { content: "✗ "; color: var(--rose); }
.us .value-price { color: var(--gold); text-shadow: 0 0 22px rgba(243,200,94,.35); }
.us li { color: var(--text); }
.us li::before { content: "✓ "; color: var(--glow); }
.value-vs { text-align: center; font-family: var(--story); font-style: italic; font-size: 1.6rem; color: var(--violet); }
@media (max-width: 700px) { .value .panel-inner { grid-template-columns: 1fr; padding: 22px 12px; } }

/* card titles link to the product's own site */
.card h3 .card-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card h3 .card-link:hover { background-size: 100% 1px; color: #fff; }

/* House Rules: five promises, 3 + 2, each with a proof link */
#rules .pillars { display: flex; flex-wrap: wrap; justify-content: center; }
#rules .pillar { flex: 0 1 340px; }
.pillar .panel-inner { display: flex; flex-direction: column; height: 100%; }
.pillar .proof { margin-top: auto; padding-top: 12px; font-size: .9rem; color: var(--glow); text-decoration: none; }
.pillar .proof:hover { text-decoration: underline; }
.pillar h3 .card-link { color: inherit; text-decoration: none; }
.pillar h3 .card-link:hover { text-decoration: underline; text-decoration-color: var(--glow); }
#queens-court, #looking-glass, #menu { scroll-margin-top: 90px; }
#queens-court:target, #looking-glass:target { filter: drop-shadow(0 0 22px rgba(243,200,94,.55)); }
