:root {
  --hero-desktop: url("assets/backgrounds/hero-tavern-desktop-v2.webp");
  --hero-mobile: url("assets/backgrounds/hero-tavern-mobile-v2.webp");
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f7e9d1;
  background: #08121f;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; background: #ffe4a5; color: #142231; }
.skip:focus { top: 12px; }
.stage { position: relative; isolation: isolate; min-height: 720px; height: 100svh; overflow: hidden; }
.bg { position: absolute; z-index: -3; inset: 0; background: var(--hero-desktop) center 45% / cover no-repeat; }
.stage::before { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(0deg,#050c19ed 0%,#050c194d 34%,#03091926 70%), radial-gradient(ellipse at 50% 60%,#030a1870,transparent 65%); }
.hero { position: absolute; inset: 0; pointer-events: none; }
.brand-lockup { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); width: min(31vw,500px); text-align: center; }
.brand-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px #0009); }
.brand-lockup p { margin: 5px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 5px #000; }
.characters { position: absolute; inset: 0; }
.character-rig { position: absolute; bottom: 0; width: 28vw; height: min(83vh,820px); transform-origin: center bottom; }
.character-rig img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 9px 16px #0008); }
.character-rig.bri { left: 1vw; }
.character-rig.mi { right: 1vw; }
.character-rig.speaking { animation: react .8s ease-in-out; }
@keyframes react { 40% { transform: rotate(.6deg); } }
.character-rig.mi.yelling { animation: protest .75s ease-in-out; }
@keyframes protest { 30% { transform: rotate(-1deg); } 65% { transform: rotate(.4deg); } }
.bubble { position: absolute; z-index: 5; top: 27%; width: 180px; padding: 12px 14px; border: 1px solid #b6a17a; border-radius: 16px 16px 4px 16px; background: linear-gradient(#fff8e7,#eddbb8); color: #302315; text-align: center; font-size: 13px; line-height: 1.35; font-weight: 700; box-shadow: 0 5px 18px #0006; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.bubble.visible { opacity: 1; visibility: visible; }
.bubble b { display: block; margin-bottom: 3px; font: 900 21px Georgia,serif; color: #a64924; }
.bubble-bri { left: 20%; }
.bubble-mi { right: 19%; border-radius: 16px 16px 16px 4px; }
.bubble-mi b { color: #75429b; }
.bubble span { display: block; }
.how { position: absolute; z-index: 10; left: 50%; bottom: 86px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(570px,40vw); }
.tabs { display: flex; justify-content: center; align-items: start; gap: 32px; width: 100%; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 90px; margin: 0; padding: 0 4px 6px; border: 0; background: transparent; color: #d8cab5; font: 750 15px/1.25 system-ui,sans-serif; cursor: pointer; }
.tab span { display: block; width: 82px; height: 82px; transition: transform .2s ease, filter .2s ease; }
.tab img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px #0009); }
.tab.active { color: #ffe4a5; }
.tab.active span { filter: drop-shadow(0 0 9px #e5b34c70); }
.tab:hover span { transform: translateY(-3px); }
.tab:focus-visible { outline: 2px solid #f5d08c; outline-offset: 5px; border-radius: 8px; }
.feature-copy { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 80px; text-align: center; text-shadow: 0 2px 5px #000; }
.feature-copy h3 { margin: 0; font: 800 26px/1.15 Georgia,serif; color: #ffe6ad; }
.feature-copy p { max-width: 440px; margin: 0; font-size: 13px; line-height: 1.55; color: #e1d7c8; text-wrap: pretty; }
.cta { width: 280px; max-width: 100%; }
.play-mark { width: 13px; height: 14px; fill: currentColor; }
.site-footer { position: absolute; z-index: 15; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; width: min(600px,90%); color: #c4bba9; font-size: 11px; line-height: 1.6; text-align: center; }
.site-footer a { color: #e4c48b; text-underline-offset: 3px; }
@media (min-width: 901px) and (max-height: 780px) {
  .stage { min-height: 600px; }
  .brand-lockup { width: min(27vw,390px); top: 8px; }
  .how { bottom: 70px; gap: 14px; }
  .tab span { width: 65px; height: 65px; }
  .feature-copy { min-height: 85px; }
  .feature-copy h3 { font-size: 23px; }
  .character-rig { height: 80vh; }
  .site-footer { bottom: 16px; }
}
@media (max-width: 900px) {
  .stage { display: flex; flex-direction: column; min-height: 100svh; height: auto; overflow: clip; }
  .bg { background-image: var(--hero-mobile); background-position: center top; }
  .stage::before { background: linear-gradient(0deg,#050c19 0%,#050c19ef 27%,#050c1910 65%); }
  .hero { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; padding-top: max(18px,env(safe-area-inset-top)); }
  .brand-lockup { position: relative; left: auto; top: auto; transform: none; width: min(76vw,360px); }
  .brand-lockup p { margin-top: 2px; font-size: 9px; letter-spacing: .09em; }
  .characters { position: relative; inset: auto; width: min(100%,600px); height: clamp(180px,24svh,260px); margin-top: 88px; }
  .character-rig { bottom: 0; height: 100%; width: 48%; }
  .character-rig.bri { left: 0; }
  .character-rig.mi { right: 0; }
  .bubble { top: min(calc(38vw + 44px),234px); bottom: auto; width: 145px; font-size: 11px; padding: 8px 11px; }
  .bubble b { font-size: 17px; }
  .bubble-bri { left: 32%; }
  .bubble-mi { right: 30%; }
  .how { position: relative; left: auto; bottom: auto; transform: none; width: min(100% - 32px,520px); margin: 0 auto; padding: 20px 0 0; gap: 16px; }
  .tabs { gap: clamp(16px,5vw,34px); }
  .tab { min-width: 78px; font-size: 13px; gap: 5px; }
  .tab span { width: 67px; height: 67px; }
  .feature-copy { min-height: 78px; gap: 9px; }
  .feature-copy h3 { font-size: 23px; }
  .feature-copy p { max-width: 345px; font-size: 12px; line-height: 1.5; }
  .cta { width: min(280px,85%); }
  .site-footer { position: relative; left: auto; bottom: auto; transform: none; flex-direction: column; gap: 5px; width: 100%; margin: auto 0 0; padding: 24px 16px max(18px,env(safe-area-inset-bottom)); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
