@font-face { font-family: 'Fenix'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fenix.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Teahouse 4.0
   Epic fantasy layout in the spirit of the World of Warcraft: Forever site:
   painted skies, background films of the Forever scenes, layered parallax and a wandering wisp. */

:root{
  --ink:#070b14;--ink-2:#0b1322;--ink-3:#111b2e;
  --glass:rgba(9,15,28,.72);--glass-hi:rgba(14,22,40,.82);
  --line:rgba(255,221,153,.16);--line-hi:rgba(255,221,153,.42);
  --gold:#f7b90a;--gold-hi:#ffec71;--gold-soft:#ffdd99;--amber:#e39a2d;
  --cream:#f3eee2;--cream-2:#ebdec2;--sand:#c6af8d;
  --teal:#017caa;--teal-d:#063149;--sky:#9fdcff;--wisp:#bfe9ff;
  --text:#e8ecf1;--dim:#b3bfcc;--faint:#7f8d9e;
  --head:"Fenix",Georgia,"Times New Roman",serif;
  --caps:"Fenix",Georgia,serif;
  --body:"Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --q-legendary:#ff8000;--q-epic:#a335ee;--q-rare:#0070dd;--q-uncommon:#1eff00;--q-common:#ffffff;
  --ease:cubic-bezier(.2,.7,.2,1);
  --top:76px;
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--ink);overflow-x:clip;color-scheme:dark;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--top) + 16px)}
body{margin:0;min-height:100vh;color:var(--text);font:400 1.02rem/1.72 var(--body);overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg,canvas,picture{display:block;max-width:100%}
a{color:var(--gold-soft);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--gold-hi)}
h1,h2,h3,h4{font-family:var(--head);font-weight:400;line-height:1.12;margin:0 0 .45em;color:var(--cream);letter-spacing:.01em;text-wrap:balance}
h2{font-size:clamp(2rem,4.2vw,3.25rem)}
h3{font-size:clamp(1.35rem,2vw,1.7rem)}
p{margin:0 0 1em}
::selection{background:rgba(247,185,10,.35);color:#fff}
:focus-visible{outline:2px solid var(--gold-hi);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.th-skip:focus{position:fixed!important;z-index:200;top:12px;left:12px;width:auto;height:auto;clip:auto;padding:10px 18px;background:var(--gold);color:#140d03;border-radius:4px}
.th-wrap{width:min(1180px,100% - 40px);margin-inline:auto}
.th-center{text-align:center}
.th-main{position:relative;z-index:1}

/* ---------- Page backdrop ---------- */
.th-backdrop{position:fixed;inset:0;z-index:-1;pointer-events:none}
.th-backdrop{background:radial-gradient(ellipse 120% 55% at 50% -8%,rgba(60,70,160,.28),transparent 62%),linear-gradient(#070a18,#060913 55%,#05070f)}

/* ---------- The wisp ---------- */
.th-wisp{position:fixed;inset:0;width:100vw;height:100vh;z-index:45;pointer-events:none}

/* ---------- Header ---------- */
.th-top{position:fixed;inset:0 0 auto;z-index:60;height:var(--top);transition:background .4s,box-shadow .4s,backdrop-filter .4s}
.th-top::before{content:"";position:absolute;inset:0 0 -50px;background:linear-gradient(rgba(4,7,14,.78),rgba(4,7,14,.35) 60%,transparent);pointer-events:none;transition:opacity .4s}
.th-top.is-scrolled{background:rgba(6,10,19,.8);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 1px 0 var(--line),0 12px 30px -18px rgba(0,0,0,.9)}
.th-top.is-scrolled::before{opacity:0}
.th-top__inner{position:relative;display:flex;align-items:center;gap:18px;height:100%;width:min(1320px,100% - 40px);margin-inline:auto}
.th-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;margin-right:auto;flex:none}
.th-logo{display:block;width:auto;height:auto}
/* the teacup stand-in logo (an uploaded logo replaces it) */
svg.th-cup{display:block;width:auto;aspect-ratio:40/32;overflow:visible;filter:drop-shadow(0 1px 0 rgba(62,35,4,.9)) drop-shadow(0 0 10px rgba(255,196,96,.28))}
svg.th-brand__logo{height:38px;max-height:none;max-width:none;width:48px}
svg.th-hero__logo{height:clamp(64px,8vw,96px);width:calc(clamp(64px,8vw,96px) * 1.25);max-width:none;max-height:none;margin:0 auto 6px}
svg.th-foot__logo{height:52px;width:65px;max-height:none;margin:0 auto 10px}
.th-cup__st{transform-box:fill-box;transform-origin:50% 100%}
@media (prefers-reduced-motion:no-preference){
  .th-cup__st{animation:th-steam 3.6s ease-in-out infinite}
  .th-cup__st:nth-of-type(5){animation-delay:-1.2s}.th-cup__st:nth-of-type(6){animation-delay:-2.4s}
}
@keyframes th-steam{0%,100%{opacity:.35;transform:translateY(1px) scaleY(.92)}50%{opacity:1;transform:translateY(-1.5px) scaleY(1.06)}}
.th-brand__logo{max-height:44px;max-width:64px;flex:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
.th-brand__text{display:flex;flex-direction:column;line-height:1.05}
.th-wm{display:block;height:auto;max-width:100%}
.th-brand__name{width:152px;height:auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.th-brand__sub{font-family:var(--caps);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--dim);margin-top:5px}
/* The guild name as a gilded title: a bright top, deep amber base, a dark edge and a soft glow, like the Forever logo lettering. */
.th-wordmark{font-family:var(--head);font-weight:400;letter-spacing:.02em;color:#ffd977;
  background:linear-gradient(180deg,#fffdf0 0%,#fff0b8 28%,#ffd25e 50%,#e59a22 72%,#a8620f 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 0 #4a2a06) drop-shadow(0 2px 2px rgba(0,0,0,.65)) drop-shadow(0 0 18px rgba(255,190,80,.22))}

.th-nav ul{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.th-nav a{position:relative;display:block;padding:10px 13px;font-family:var(--caps);font-size:1.08rem;letter-spacing:.04em;color:var(--cream);text-decoration:none;text-shadow:0 1px 8px rgba(0,0,0,.6);transition:color .25s}
.th-nav a::after{content:"";position:absolute;left:13px;right:13px;bottom:4px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-hi),transparent);transform:scaleX(0);transition:transform .35s var(--ease);box-shadow:0 0 8px var(--gold)}
.th-nav a:hover,.th-nav a[aria-current]{color:var(--gold-hi)}
.th-nav a:hover::after,.th-nav a[aria-current]::after{transform:scaleX(1)}
.th-nav__foot{display:none}


.th-menu-btn{display:none;flex:none;width:44px;height:44px;padding:11px 9px;border:0;border-radius:4px;background:rgba(8,14,26,.45);box-shadow:inset 0 0 0 1px var(--line-hi);cursor:pointer;flex-direction:column;justify-content:space-between}
.th-menu-btn span:not(.screen-reader-text){display:block;height:2px;border-radius:2px;background:var(--gold-soft);transition:transform .3s var(--ease),opacity .2s}
.th-menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.th-menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
.th-menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

@media (max-width:1100px){
  .th-menu-btn{display:flex;position:relative;z-index:2}
  .th-brand{position:relative;z-index:2}
  .th-nav{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:26px;padding:100px 24px 40px;
    background:radial-gradient(ellipse 90% 50% at 50% 0%,rgba(60,90,170,.35),transparent 70%),radial-gradient(ellipse 80% 40% at 50% 100%,rgba(1,124,170,.22),transparent 70%),rgba(5,8,16,.97);
    opacity:0;visibility:hidden;transition:opacity .4s,visibility 0s .4s}
  .th-nav.is-open{opacity:1;visibility:visible;transition:opacity .4s}
  .th-nav ul{flex-direction:column;gap:4px}
  .th-nav li{opacity:0;transform:translateY(12px);transition:opacity .45s,transform .45s var(--ease)}
  .th-nav.is-open li{opacity:1;transform:none}
  .th-nav.is-open li:nth-child(2){transition-delay:.04s}.th-nav.is-open li:nth-child(3){transition-delay:.08s}.th-nav.is-open li:nth-child(4){transition-delay:.12s}
  .th-nav.is-open li:nth-child(5){transition-delay:.16s}.th-nav.is-open li:nth-child(6){transition-delay:.2s}.th-nav.is-open li:nth-child(7){transition-delay:.24s}
  .th-nav a{font-family:var(--head);font-size:1.75rem;padding:8px 20px;text-align:center}
  .th-nav a::after{bottom:2px}
  .th-nav__foot{display:block;margin:0}
  .menu-open{overflow:hidden}
  .menu-open .th-top{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media (max-width:560px){
  :root{--top:66px}
  .th-top__inner{width:calc(100% - 28px);gap:10px}
  .th-brand__logo{max-height:38px}
  .th-brand__name{width:118px}
  .th-brand__sub{display:none}
}

/* ---------- Ornaments ---------- */
.th-rule{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px auto 22px;width:min(320px,80%);color:var(--gold-soft)}
.th-rule span{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(255,221,153,.75))}
.th-rule span:last-child{background:linear-gradient(90deg,rgba(255,221,153,.75),transparent)}
.th-rule svg{width:30px;height:auto;flex:none;overflow:visible;filter:drop-shadow(0 0 6px rgba(255,200,90,.55))}
.th-rule svg path{fill:none;stroke:var(--gold-soft);stroke-width:1.4}
.th-rule svg path.in{fill:var(--gold-hi);stroke:none}
.th-rule--cup svg{width:34px}
.th-rule__cup path{fill:none;stroke:var(--gold-soft);stroke-width:1.5;stroke-linecap:round}
.th-rule__cup path:first-child{fill:rgba(255,221,153,.16)}
.th-rule__cup .st{stroke:var(--sky);opacity:.75}
.th-rule--edge{position:absolute;left:50%;bottom:14px;z-index:3;width:min(1100px,92%);margin:0;transform:translateX(-50%)}
.th-rule--edge span{background:linear-gradient(90deg,transparent,rgba(255,221,153,.55) 40%,rgba(255,236,113,.9))}
.th-rule--edge span:last-child{background:linear-gradient(90deg,rgba(255,236,113,.9),rgba(255,221,153,.55) 60%,transparent)}

.th-eyebrow{display:inline-flex;align-items:center;gap:12px;margin:0 0 14px;font-family:var(--caps);font-size:clamp(.8rem,1.2vw,.95rem);letter-spacing:.24em;text-transform:uppercase;color:#ffe6b0;text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 14px rgba(0,0,0,.9)}
.th-eyebrow::before,.th-eyebrow::after{content:"";width:34px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-soft))}
.th-eyebrow::after{background:linear-gradient(90deg,var(--gold-soft),transparent)}
.th-kicker{display:block;margin-bottom:10px;font-family:var(--caps);font-size:.8rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-soft)}

/* ---------- Buttons ---------- */
.th-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:50px;padding:0 30px;border:0;border-radius:4px;overflow:hidden;cursor:pointer;
  font:400 1.06rem/1 var(--caps);letter-spacing:.08em;text-decoration:none;white-space:nowrap;transition:transform .25s var(--ease),box-shadow .3s,filter .3s,background .3s,color .3s}
.th-btn--primary{color:#1d1204;background:linear-gradient(180deg,#fff3c0 0%,#ffd866 34%,#f4ac1e 68%,#c97a0b 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -2px 0 rgba(110,55,0,.35),0 0 0 1px rgba(90,48,0,.75),0 0 0 3px rgba(255,221,153,.16),0 10px 26px -10px rgba(247,185,10,.6)}
.th-btn--primary::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.65) 50%,transparent 65%);transform:translateX(-120%);transition:transform .8s var(--ease)}
.th-btn--primary:hover{color:#1d1204;filter:brightness(1.06);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -2px 0 rgba(110,55,0,.35),0 0 0 1px rgba(90,48,0,.75),0 0 0 3px rgba(255,236,113,.3),0 0 30px rgba(255,200,80,.5)}
.th-btn--primary:hover::after{transform:translateX(120%)}
.th-btn--ghost{color:var(--cream);background:rgba(8,14,26,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 1px rgba(255,221,153,.5)}
.th-btn--ghost:hover{color:var(--gold-hi);background:rgba(255,221,153,.08);box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 22px rgba(255,214,120,.22);transform:translateY(-1px)}
.th-btn--sm{min-height:40px;padding:0 20px;font-size:.95rem}
.th-hero__cta{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:8px}
.th-link{display:inline-flex;align-items:center;gap:10px;font-family:var(--caps);font-size:1.05rem;letter-spacing:.08em;color:var(--gold-soft);text-decoration:none}
.th-link::after{content:"";width:22px;height:1px;background:currentColor;box-shadow:0 0 6px currentColor;transition:width .3s var(--ease)}
.th-link:hover{color:var(--gold-hi)}
.th-link:hover::after{width:36px}

/* ---------- Sky stack ---------- */
.th-sky{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#070b14}
.th-sky__art{position:absolute;inset:-4% 0;will-change:transform}
.th-sky__art picture,.th-sky__art img,.th-sky__noscript img{width:100%;height:100%;object-fit:cover}
.th-sky__art img{will-change:transform;animation:th-breathe 38s ease-in-out infinite alternate}
.th-sky.is-off *,.th-sky.is-off::before,.th-sky.is-off::after{animation-play-state:paused!important}
.th-sky__noscript{position:absolute;inset:0}
@keyframes th-breathe{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.035) translate3d(-.6%,-.4%,0)}}

/* grading over a painting or film */
.th-sky__tint{position:absolute;inset:0;transition:opacity 2.4s}
.th-sky--night .th-sky__tint{background:linear-gradient(180deg,rgba(6,10,19,.55),rgba(6,10,19,.25) 40%,rgba(6,10,19,.7))}
.th-sky--bare{background:radial-gradient(ellipse 70% 60% at 75% 0%,rgba(70,90,190,.35),transparent 60%),radial-gradient(ellipse 60% 50% at 10% 100%,rgba(1,124,170,.2),transparent 70%),linear-gradient(#060914,#0a1430 55%,#070b16)}
.th-sky--bare .th-sky__tint{background:linear-gradient(100deg,transparent 18%,rgba(60,220,190,.16) 32%,rgba(110,120,255,.2) 48%,rgba(190,90,255,.14) 62%,transparent 78%);filter:blur(30px);transform:skewY(-8deg) translateY(-18%);height:60%;animation:th-aurora 26s ease-in-out infinite alternate}
@keyframes th-aurora{from{transform:skewY(-8deg) translate3d(-4%,-18%,0);opacity:.7}to{transform:skewY(-5deg) translate3d(4%,-12%,0);opacity:1}}


.th-sky__fx{position:absolute;inset:0;width:100%;height:100%}

.th-sky__clouds{position:absolute;inset:0;
  opacity:.3}
.th-sky--scene .th-sky__clouds{opacity:.4}
.th-sky__clouds span{position:absolute;left:0;top:-6%;width:200%;height:46%;background:url(../img/clouds-s.webp?r=9) repeat-x 0 0/50% 100%;will-change:transform;animation:th-drift 210s linear infinite}
.th-sky__clouds span+span{top:8%;height:34%;opacity:.7;transform:scaleY(-1);animation-duration:320s;animation-direction:reverse}
.th-sky--night .th-sky__clouds span{filter:brightness(.42) saturate(.6) sepia(.2) hue-rotate(180deg)}
@keyframes th-drift{to{transform:translate3d(-50%,0,0)}}
.th-sky__clouds span+span{animation-name:th-drift2}
@keyframes th-drift2{from{transform:scaleY(-1) translate3d(-50%,0,0)}to{transform:scaleY(-1) translate3d(0,0,0)}}

.th-sky__mist{position:absolute;inset:auto 0 0;height:46%}
.th-sky__mist span{position:absolute;will-change:transform;bottom:-10%;left:-20%;width:140%;height:100%;background:radial-gradient(ellipse 50% 60% at 30% 70%,rgba(200,215,240,.16),transparent 70%),radial-gradient(ellipse 45% 50% at 75% 80%,rgba(200,215,240,.13),transparent 70%);animation:th-mist 34s ease-in-out infinite alternate}
.th-sky__mist span+span{animation-duration:47s;animation-direction:alternate-reverse;opacity:.8}
@keyframes th-mist{from{transform:translate3d(-5%,0,0)}to{transform:translate3d(6%,-4%,0)}}
.th-sky::after{content:"";position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(to bottom,transparent,rgba(7,11,20,.7) 55%,#070b14)}
.th-sky::before{content:"";position:absolute;inset:0 0 auto;z-index:1;height:180px;background:linear-gradient(rgba(5,8,16,.55),transparent)}

/* ---------- Home hero ---------- */
.th-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:center;min-height:100vh;min-height:100svh;padding:calc(var(--top) + 40px) 0 120px;text-align:center}
.th-hero .th-sky::after{height:36%}
.th-hero__inner{position:relative;z-index:2}
.th-hero__copy{position:relative;max-width:820px;margin-inline:auto}
.th-hero__copy::before{content:"";position:absolute;inset:-60% -70%;z-index:-1;pointer-events:none;transition:opacity 2.4s;background:radial-gradient(closest-side,rgb(var(--scrim,8 12 24) / .34),rgb(var(--scrim,8 12 24) / .2) 45%,rgb(var(--scrim,8 12 24) / .08) 72%,rgb(var(--scrim,8 12 24) / 0));opacity:.55}
.th-hero .th-sky__tint{background:linear-gradient(180deg,rgba(5,8,16,.42),rgba(5,8,16,0) 26%,rgba(5,8,16,0) 62%,rgba(5,8,16,.5));opacity:1}
.th-hero__title .th-wm{width:clamp(280px,58vw,700px);margin:0 auto}
.th-hero__title{margin:0;padding:0 .04em .06em;font-size:clamp(4rem,12.5vw,10rem);line-height:1;letter-spacing:.015em;
  filter:drop-shadow(0 2px 0 #3e2304) drop-shadow(0 3px 3px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(10,8,14,.45)) drop-shadow(0 0 26px rgba(255,190,80,.18))}
.th-hero__logo{max-height:clamp(90px,14vw,170px);max-width:min(260px,60vw);margin:0 auto 12px;filter:drop-shadow(0 6px 16px rgba(0,0,0,.6))}
.th-hero__lede{max-width:34ch;margin:0 auto 26px;font-size:clamp(1.08rem,1.6vw,1.28rem);line-height:1.65;color:#f6f1e6;text-shadow:0 2px 12px rgba(0,0,0,.85),0 0 2px rgba(0,0,0,.7)}
.th-hero__scroll{position:absolute;left:50%;bottom:54px;z-index:3;width:28px;height:44px;margin-left:-14px;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,221,153,.55)}
.th-hero__scroll span{position:absolute;left:50%;top:9px;width:3px;height:8px;margin-left:-1.5px;border-radius:2px;background:var(--gold-hi);box-shadow:0 0 8px var(--gold);animation:th-scroll 2.2s ease-in-out infinite}
@keyframes th-scroll{0%{opacity:0;transform:translateY(0)}30%{opacity:1}100%{opacity:0;transform:translateY(16px)}}

.th-hero .th-eyebrow,.th-masthead .th-eyebrow{padding:6px 18px;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 12px rgba(5,9,18,.85),0 0 28px rgba(5,9,18,.6)}
/* entrance */
.js .th-enter{animation:th-enter 1.3s var(--ease) both}
.js .th-enter:nth-child(1){animation-delay:.15s}.js .th-enter:nth-child(2){animation-delay:.32s}.js .th-enter:nth-child(3){animation-delay:.5s}
.js .th-enter:nth-child(4){animation-delay:.66s}.js .th-enter:nth-child(5){animation-delay:.82s}.js .th-enter:nth-child(6){animation-delay:.98s}
@keyframes th-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.js .th-hero__title.th-enter{animation-name:th-enter-title}
@keyframes th-enter-title{from{opacity:0;transform:translateY(18px) scale(.97);letter-spacing:.1em}to{opacity:1;transform:none;letter-spacing:.015em}}
.js .th-hero .th-sky__art img,.js .th-masthead .th-sky__art img{animation:th-arrive 2.4s var(--ease) both,th-breathe 38s 2.4s ease-in-out infinite alternate}
@keyframes th-arrive{from{transform:scale(1.05);filter:brightness(.55)}to{transform:none;filter:none}}

/* ---------- Inner page mastheads ---------- */
.th-masthead{position:relative;isolation:isolate;overflow:hidden;display:grid;align-items:end;min-height:clamp(440px,66vh,700px);padding:calc(var(--top) + 70px) 0 96px;text-align:center}
.th-masthead__inner{position:relative;z-index:2}
.th-masthead__inner::before{content:"";position:absolute;inset:-40% -20%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgb(255 196 110 / .05),rgb(120 170 255 / .10) 45%,transparent 75%)}
.th-masthead__title{margin:0 0 .2em;padding-bottom:.06em;font-size:clamp(3rem,7.6vw,6rem);line-height:1.02;background:linear-gradient(180deg,#fffdf0 0%,#fff0b8 30%,#ffd25e 54%,#e59a22 78%,#b06a12 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 0 #3e2304) drop-shadow(0 3px 3px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(0,0,0,.5))}
.th-masthead__sub{max-width:58ch;margin:8px auto 0;font-size:clamp(1.02rem,1.5vw,1.2rem);color:#f3eee2;text-shadow:0 2px 12px rgba(0,0,0,.9)}

/* ---------- Content ---------- */
.th-page{position:relative;padding:clamp(56px,7vw,96px) 0 clamp(70px,8vw,120px)}
.th-page--home{padding-top:0}
.th-content > :first-child{margin-top:0}
.th-section{position:relative;padding:clamp(44px,5.5vw,80px) 0}
.th-section__head{max-width:760px;margin:0 auto clamp(34px,4.5vw,56px);text-align:center}
.th-section__head h2{margin-bottom:0;text-shadow:0 2px 18px rgba(0,0,0,.6)}
.th-section__head p{margin:0;color:var(--dim);font-size:1.1rem}
.th-section__head h2 + p{margin-top:14px}
.th-bleed{width:100vw;margin-left:calc(50% - 50vw)}
.th-note{max-width:680px;margin:28px auto;text-align:center;color:var(--dim);font-style:italic}

.th-card{position:relative;padding:clamp(26px,3.4vw,40px);border-radius:6px;background:linear-gradient(180deg,rgba(16,26,46,.78),rgba(8,13,25,.86));
  box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(255,236,190,.1),0 24px 50px -30px rgba(0,0,0,.95);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.th-card::before{content:"";position:absolute;left:12%;right:12%;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,236,113,.75),transparent)}
.th-card h2{font-size:clamp(1.8rem,3.4vw,2.6rem)}
.th-card--narrow{max-width:780px;margin:0 auto;font-size:1.08rem;text-align:center}
.th-card--narrow p{color:#dfe5ec}
.th-card--narrow p:last-child{margin-bottom:0}
.th-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,28px)}
.th-list{list-style:none;margin:16px 0 0;padding:0}
.th-list li{position:relative;padding:9px 0 9px 28px;border-top:1px solid rgba(255,221,153,.08);color:#dfe5ec}
.th-list li:first-child{border-top:0}
.th-list li::before{content:"";position:absolute;left:4px;top:18px;width:8px;height:8px;transform:rotate(45deg);background:linear-gradient(135deg,var(--gold-hi),var(--amber));box-shadow:0 0 8px rgba(255,200,90,.6)}

/* paper card: the teahouse note */
.th-card--quote{max-width:760px;padding:30px clamp(24px,4vw,48px) 34px;color:#2b2318;font-size:1.12rem;
  background:radial-gradient(ellipse 80% 70% at 50% 30%,#fbf7ec,#efe5cf 70%,#e2d2ad);box-shadow:inset 0 0 0 1px rgba(198,175,141,.9),inset 0 0 0 5px rgba(251,247,236,.6),inset 0 0 0 6px rgba(198,175,141,.6),inset 0 0 50px rgba(160,120,60,.25),0 30px 60px -30px rgba(0,0,0,.95);-webkit-backdrop-filter:none;backdrop-filter:none}
.th-card--quote::before{display:none}
.th-card--quote p{color:#2b2318!important}
.th-card--quote a{color:#0b5c80;font-weight:600}
.th-card--quote .th-rule{margin:0 auto 14px;color:#8a6a35}
.th-card--quote .th-rule span{background:linear-gradient(90deg,transparent,rgba(138,106,53,.6))}
.th-card--quote .th-rule span:last-child{background:linear-gradient(90deg,rgba(138,106,53,.6),transparent)}
.th-card--quote .th-rule svg{filter:none}
.th-card--quote .th-rule__cup path{stroke:#8a6a35}
.th-card--quote .th-rule__cup path:first-child{fill:rgba(138,106,53,.18)}
.th-card--quote .th-rule__cup .st{stroke:#0b7fae}

/* facts */
.th-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(12px,2vw,22px);max-width:900px;margin:0 auto clamp(40px,5vw,64px);padding:0}
.th-facts > div{position:relative;min-width:150px;padding:16px 26px 14px;text-align:center;border-radius:6px;background:linear-gradient(180deg,rgba(16,26,46,.7),rgba(8,13,25,.8));box-shadow:inset 0 0 0 1px var(--line)}
.th-facts > div::after{content:"";position:absolute;left:50%;bottom:-4px;width:7px;height:7px;margin-left:-3.5px;transform:rotate(45deg);background:var(--gold-soft);box-shadow:0 0 8px var(--gold)}
.th-facts dt{font-family:var(--caps);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.th-facts dd{margin:2px 0 0;font-family:var(--head);font-size:1.9rem;line-height:1.2;background:linear-gradient(#fff7da,#ffd66b 60%,#e2a548);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- What's brewing cards ---------- */
.th-section--menu::before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;pointer-events:none;background:radial-gradient(ellipse 46% 36% at 50% 34%,rgba(1,124,170,.13),transparent 72%),radial-gradient(ellipse 40% 50% at 85% 80%,rgba(120,90,200,.08),transparent 70%)}
.th-menu{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.8vw,22px)}
.th-menu__card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:470px;padding:26px 24px 28px;border-radius:6px;overflow:hidden;
  background:#0b1322;box-shadow:inset 0 0 0 1px var(--line),0 30px 50px -30px rgba(0,0,0,.95);transition:transform .5s var(--ease),box-shadow .5s}
.th-menu__art{position:absolute;inset:0;z-index:-2;background:#0b1322 center/cover no-repeat;transition:transform 1.2s var(--ease),filter .6s;filter:saturate(.95) brightness(.9)}
.th-menu__card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(7,11,20,.05) 20%,rgba(7,11,20,.6) 52%,rgba(7,11,20,.96) 82%)}
.th-menu__card::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,236,113,0);transition:box-shadow .5s;pointer-events:none}
.th-menu__card:hover{transform:translateY(-6px);box-shadow:inset 0 0 0 1px var(--line),0 36px 60px -30px rgba(0,0,0,.95),0 0 40px -12px rgba(255,214,120,.35)}
.th-menu__card:hover::after{box-shadow:inset 0 0 0 1px rgba(255,236,113,.55)}
.th-menu__card:hover .th-menu__art{transform:scale(1.07);filter:saturate(1.1) brightness(1)}
.th-menu__card--leveling .th-menu__art{background-image:url(../img/leveling2-c1.webp?r=5);background-image:image-set(url(../img/leveling2-c1.avif?r=5) type("image/avif") 1x,url(../img/leveling2-c1.webp?r=5) type("image/webp") 1x,url(../img/leveling2-c2.avif?r=5) type("image/avif") 2x,url(../img/leveling2-c2.webp?r=5) type("image/webp") 2x)}
.th-menu__card--dungeons .th-menu__art{background-image:url(../img/dungeons-c1.webp?r=4);background-image:image-set(url(../img/dungeons-c1.avif?r=4) type("image/avif") 1x,url(../img/dungeons-c1.webp?r=4) type("image/webp") 1x,url(../img/dungeons-c2.avif?r=4) type("image/avif") 2x,url(../img/dungeons-c2.webp?r=4) type("image/webp") 2x)}
.th-menu__card--adventures .th-menu__art{background-image:url(../img/adventures-c1.webp?r=4);background-image:image-set(url(../img/adventures-c1.avif?r=4) type("image/avif") 1x,url(../img/adventures-c1.webp?r=4) type("image/webp") 1x,url(../img/adventures-c2.avif?r=4) type("image/avif") 2x,url(../img/adventures-c2.webp?r=4) type("image/webp") 2x)}
.th-menu__card--raiding .th-menu__art{background-image:url(../img/raiding-c1.webp?r=4);background-image:image-set(url(../img/raiding-c1.avif?r=4) type("image/avif") 1x,url(../img/raiding-c1.webp?r=4) type("image/webp") 1x,url(../img/raiding-c2.avif?r=4) type("image/avif") 2x,url(../img/raiding-c2.webp?r=4) type("image/webp") 2x)}
.th-menu__icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:16px;border-radius:50%;background:radial-gradient(circle,rgba(10,18,34,.9),rgba(10,18,34,.6));box-shadow:inset 0 0 0 1px rgba(255,221,153,.55),0 0 0 4px rgba(7,11,20,.5),0 0 22px rgba(255,214,120,.2)}
.th-menu__icon svg{width:28px;height:28px;fill:none;stroke:var(--gold-soft);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.th-menu__card h3{margin:0 0 8px;font-size:1.75rem;text-shadow:0 2px 12px rgba(0,0,0,.8)}
.th-menu__card p{margin:0;color:#d5dde6;font-size:.98rem;line-height:1.6}
.th-tag{position:absolute;top:18px;right:18px;padding:6px 14px;border-radius:999px;font:400 .86rem/1 var(--caps);letter-spacing:.12em;color:#ffe9c2;
  background:linear-gradient(180deg,rgba(214,120,40,.5),rgba(120,50,10,.6));box-shadow:inset 0 0 0 1px rgba(255,190,120,.6),0 0 18px rgba(255,140,50,.35);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.th-tag::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;vertical-align:2px;background:#ffd48a;box-shadow:0 0 8px #ffb04a;animation:th-pulse 2.4s ease-in-out infinite}
@keyframes th-pulse{50%{opacity:.35}}

/* ---------- Night sky sections ---------- */
.th-night{isolation:isolate;padding:clamp(100px,12vw,170px) 0;overflow:hidden}
.th-night > .th-sky{-webkit-mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent);mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent)}
.th-night > .th-sky::after,.th-night > .th-sky::before{display:none}
.th-night__inner{position:relative;z-index:2;width:min(1180px,100% - 40px);margin-inline:auto}
.th-night .th-section__head h2{text-shadow:0 2px 24px rgba(0,0,0,.85)}
.th-night .th-center{margin-top:34px}

/* ---------- Events ---------- */
.th-events{display:grid;gap:22px}
.th-events--compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.th-event{position:relative;display:grid;grid-template-columns:minmax(220px,340px) 1fr;border-radius:6px;overflow:hidden;background:linear-gradient(180deg,rgba(14,22,40,.84),rgba(7,11,22,.9));
  box-shadow:inset 0 0 0 1px var(--line),0 26px 50px -30px #000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .45s var(--ease),box-shadow .45s}
.th-event:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px var(--line-hi),0 30px 60px -30px #000,0 0 36px -14px rgba(159,220,255,.4)}
.th-event--compact{grid-template-columns:1fr}
.th-event__art{position:relative;min-height:190px;aspect-ratio:16/9;background:linear-gradient(160deg,#16244a,#0a1226)}
.th-event__art img{width:100%;height:100%;object-fit:cover}
.th-event__placeholder{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 30%,rgba(100,150,255,.25),transparent 60%),linear-gradient(160deg,#16244a,#0a1226)}
.th-glyph{width:84px;overflow:visible}
.th-glyph .g-steam{fill:none;stroke:var(--gold-soft);stroke-width:2;stroke-linecap:round;opacity:.7;transform-box:fill-box;transform-origin:50% 100%}
.th-glyph .g-cup{fill:rgba(255,221,153,.15);stroke:var(--gold-soft);stroke-width:2}
.th-glyph .g-line{fill:none;stroke:var(--gold-soft);stroke-width:2.4;stroke-linecap:round}
.th-event__date{position:absolute;left:16px;top:16px;display:grid;place-items:center;width:62px;padding:8px 0 6px;border-radius:4px;text-align:center;line-height:1;
  background:linear-gradient(180deg,rgba(8,13,26,.92),rgba(8,13,26,.8));box-shadow:inset 0 0 0 1px rgba(255,221,153,.6),0 8px 18px -6px #000}
.th-event__date span{font:400 .78rem/1 var(--caps);letter-spacing:.16em;color:var(--gold-soft)}
.th-event__date b{font:400 1.75rem/1.1 var(--head);color:#fff}
.th-event__live{position:absolute;right:14px;top:16px;padding:5px 12px;border-radius:999px;font:600 .78rem/1 var(--body);letter-spacing:.06em;color:#08210f;background:#7cf09a;box-shadow:0 0 16px rgba(124,240,154,.6)}
.th-event__body{padding:22px 24px 24px}
.th-event__body h3{margin:0 0 8px;font-size:1.5rem}
.th-event__when{margin:0 0 4px;color:var(--sky);font-weight:600;font-size:.95rem}
.th-event__where{margin:0;color:var(--dim);font-size:.95rem}
.th-event__desc{margin-top:12px;color:#d5dde6}
.th-event__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.th-event__count{font-size:.9rem;color:var(--dim)}

.th-empty{max-width:640px;margin:0 auto;padding:38px 30px;text-align:center;border-radius:6px;background:linear-gradient(180deg,rgba(14,22,40,.72),rgba(7,11,22,.84));box-shadow:inset 0 0 0 1px var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.th-empty__title{margin:0 0 8px;font-family:var(--head);font-size:1.6rem;line-height:1.25;color:var(--gold-soft)}
.th-empty p:last-child{margin:0;color:var(--dim)}
.th-empty--filter{margin-top:20px;padding:22px}

/* ---------- Invite ---------- */
.th-invite{position:relative;isolation:isolate;overflow:hidden;max-width:1180px;margin:0 auto;padding:clamp(40px,6vw,80px) clamp(24px,5vw,72px);border-radius:8px;text-align:center;
  background:linear-gradient(180deg,rgba(7,11,20,.55),rgba(7,11,20,.82)),url(../img/join-1600.webp?r=4) center/cover;
  background:linear-gradient(180deg,rgba(7,11,20,.55),rgba(7,11,20,.82)),image-set(url(../img/join-1600.avif?r=4) type("image/avif"),url(../img/join-1600.webp?r=4) type("image/webp")) center/cover;
  box-shadow:inset 0 0 0 1px var(--line),0 40px 80px -40px #000}
.th-invite h2{text-shadow:0 2px 20px rgba(0,0,0,.8)}
.th-invite p{max-width:60ch;margin:0 auto 24px;color:#e3e8ee;font-size:1.1rem}
.th-invite--seat{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;min-height:520px;padding:0;text-align:left;background:linear-gradient(110deg,#0a1222 30%,#0c1830)}
.th-invite__art{position:absolute;inset:0 0 0 30%;z-index:-1;-webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.55) 22%,#000 48%);mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.55) 22%,#000 48%)}
.th-invite__art img{width:100%;height:100%;object-fit:cover;object-position:62% 28%;filter:brightness(.9) saturate(1.05)}
.th-invite--seat::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(10,18,34,.9) 0%,rgba(10,18,34,.55) 38%,rgba(10,18,34,0) 60%),linear-gradient(0deg,rgba(7,11,20,.45),transparent 40%)}
.th-invite__copy{position:relative;z-index:1;padding:clamp(36px,5vw,72px)}
.th-invite--seat h2{font-size:clamp(2.1rem,3.8vw,3.1rem)}
.th-invite--seat p{color:#e8edf3;text-shadow:0 1px 10px rgba(7,11,20,.9)}
.th-invite--seat p{margin-left:0}
.th-invite--seat .th-hero__cta{justify-content:flex-start}

/* ---------- Roster ---------- */
.th-roster{max-width:1100px;margin:0 auto}
.th-roster__bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding:0 0 18px;margin-bottom:8px;border-bottom:1px solid rgba(255,221,153,.12)}
.th-search{flex:0 1 300px}
.th-search input{width:100%;min-height:44px;padding:8px 16px 8px 42px;border:0;border-radius:8px;color:#fff;font:inherit;font-size:16px;
  background:rgba(8,14,26,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd99' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") 14px 50%/17px no-repeat;
  box-shadow:inset 0 0 0 1px rgba(255,221,153,.24);transition:box-shadow .25s}
.th-search input::placeholder{color:var(--faint)}
.th-search input:focus{outline:none;box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 18px rgba(255,214,120,.16)}
.th-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 auto}
.th-chip{--cc:#f3dca4;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:4px 12px;border:0;border-radius:6px;cursor:pointer;color:#dfe5ec;font:400 .95rem/1 var(--caps);
  background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);transition:background .2s,box-shadow .2s,color .2s}
.th-chip i{width:8px;height:8px;border-radius:50%;background:var(--cc)}
.th-chip:hover{color:#fff;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 60%,transparent)}
.th-chip.is-on{color:#fff;background:color-mix(in srgb,var(--cc) 16%,rgba(8,14,26,.9));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 75%,transparent)}
.th-chip[data-class="all"].is-on{color:#1d1204;background:var(--gold-soft);box-shadow:none}
.th-roster__count{margin:0 0 0 auto;color:var(--dim);font-size:.9rem;white-space:nowrap}
.th-roster__note{margin:40px 0 0;text-align:center;color:var(--faint);font-size:.9rem}

.th-tier--1{--tier:#ffb347}.th-tier--2{--tier:#c58cff}.th-tier--3{--tier:#5fb0ff}.th-tier--4{--tier:#6ee08a}.th-tier--5{--tier:#d8dde4}
.th-group{--tier:#d8dde4;margin-top:40px}
.th-group__head{display:flex;align-items:baseline;gap:10px;margin:0 0 14px;font-size:1.45rem;color:color-mix(in srgb,var(--tier) 55%,#fff)}
.th-group__head::after{content:"";flex:1;align-self:center;height:1px;background:linear-gradient(90deg,color-mix(in srgb,var(--tier) 45%,transparent),transparent 80%)}
.th-group__count{font:600 .8rem/1 var(--body);color:var(--dim)}
.th-group--lead .th-group__head,.th-group--officer .th-group__head{font-size:1.7rem}
.th-members{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.th-members--lead{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.th-members--officer{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.th-member{--cc:#d9c6a8;min-width:0}
.th-member__btn{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;height:100%;padding:12px 14px;border:0;border-radius:8px;text-align:left;color:inherit;font:inherit;
  background:rgba(12,19,34,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);transition:box-shadow .25s,transform .25s var(--ease),background .25s}
button.th-member__btn{cursor:pointer}
button.th-member__btn:hover,button.th-member__btn:focus-visible{background:rgba(16,25,44,.86);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 50%,transparent),0 12px 28px -18px #000;transform:translateY(-1px)}
.th-member__face{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;overflow:hidden;background:#0b1322;box-shadow:0 0 0 2px color-mix(in srgb,var(--cc) 70%,transparent),0 0 0 4px rgba(7,11,20,.9)}
.th-member__face img{width:100%;height:100%;object-fit:cover}
.th-member__face span{font:400 1.3rem/1 var(--head);color:var(--cc)}
.th-member__who{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.th-member__name{font-family:var(--head);font-size:1.12rem;color:var(--cc);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-member__meta{font-size:.86rem;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-member__lvl{font:400 1.05rem/1 var(--head);color:var(--gold-soft);white-space:nowrap}
.th-member__lvl small{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
/* Leaders and Officers: larger cards with a light in the group's colour */
.th-member--big .th-member__btn{padding:18px 18px;gap:16px;background:radial-gradient(ellipse 70% 120% at 0% 0%,color-mix(in srgb,var(--tier) 12%,transparent),transparent 70%),rgba(12,19,34,.8);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tier) 26%,transparent)}
.th-member--big .th-member__btn::before{content:"";position:absolute;left:18px;right:18px;top:0;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--tier) 80%,transparent),transparent)}
.th-members--lead .th-member__face{width:64px;height:64px}
.th-members--officer .th-member__face{width:56px;height:56px}
.th-member--big .th-member__name{font-size:1.32rem}
.th-member--big .th-member__meta{font-size:.92rem}

/* ---------- Leadership: leaders on top, officers beneath, centred cards with a title under each name ---------- */
.th-leadership{position:relative;margin:36px 0 10px;padding:34px clamp(14px,3vw,34px) 30px;border-radius:14px;text-align:center;
  background:radial-gradient(ellipse 60% 70% at 50% 0%,rgba(255,190,90,.10),transparent 70%),linear-gradient(180deg,rgba(14,21,38,.72),rgba(9,14,26,.6));
  box-shadow:inset 0 0 0 1px rgba(255,214,140,.16),0 30px 60px -40px #000}
.th-leadership::before{content:"";position:absolute;left:12%;right:12%;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,214,140,.75),transparent)}
.th-leadership__head{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 22px;font-size:clamp(1.6rem,2.6vw,2rem);color:#ffe2a6;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.th-leadership__head::before,.th-leadership__head::after{content:"";width:clamp(40px,7vw,90px);height:20px;background:url(../img/flourish.svg?r=6) center/contain no-repeat}
.th-leadership__head::after{transform:scaleX(-1)}
.th-leadership .th-members{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.th-leadership .th-members + .th-members{margin-top:18px;padding-top:18px;position:relative}
.th-leadership .th-members + .th-members::before{content:"";position:absolute;left:30%;right:30%;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(197,140,255,.45),transparent)}
.th-leadership .th-member{flex:0 1 250px}
.th-leadership .th-members--officer .th-member{flex-basis:220px}
.th-member--lead .th-member__btn{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:22px 16px 18px}
.th-member--lead .th-member__who{align-items:center;max-width:100%}
.th-member--lead .th-member__name{max-width:100%}
.th-member__role{display:inline-block;margin:4px 0 4px;padding:2px 10px;border-radius:999px;font:600 .7rem/1.5 var(--caps,inherit);letter-spacing:.16em;text-transform:uppercase;
  color:color-mix(in srgb,var(--tier) 70%,#fff);background:color-mix(in srgb,var(--tier) 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tier) 40%,transparent)}
.th-members--lead .th-member--lead .th-member__face{width:76px;height:76px}
.th-members--officer .th-member--lead .th-member__face{width:62px;height:62px}
.th-member--lead .th-member__lvl{position:absolute;top:12px;right:14px;font-size:.95rem}
@media (max-width:600px){
  .th-leadership{padding:26px 12px 20px}
  .th-leadership .th-members{gap:10px}
  .th-leadership .th-member,.th-leadership .th-members--officer .th-member{flex:1 1 calc(50% - 10px);max-width:calc(50% - 5px)}
  .th-leadership .th-members--lead .th-member:only-child{max-width:70%}
  .th-member--lead .th-member__btn{padding:18px 8px 14px}
  .th-member--lead .th-member__name{font-size:1.05rem}
  .th-member--lead .th-member__meta{font-size:.78rem;white-space:normal}
}

/* ---------- Character pop-up ---------- */
html.char-open{overflow:hidden}
.th-char{width:min(960px,100vw - 24px);max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;color:var(--text);overflow:visible}
.th-char::backdrop{background:rgba(3,5,10,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.th-char[open]{animation:th-char-in .35s var(--ease)}
@keyframes th-char-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.th-char__panel{position:relative;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border-radius:12px;background:linear-gradient(180deg,#101a2e,#0a1120);box-shadow:inset 0 0 0 1px rgba(255,221,153,.2),0 40px 90px -30px #000}
.th-char__close{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;cursor:pointer;color:var(--cream);font:400 1.6rem/1 var(--body);background:rgba(5,9,18,.7);box-shadow:inset 0 0 0 1px rgba(255,221,153,.3)}
.th-char__close:hover{color:var(--gold-hi);box-shadow:inset 0 0 0 1px var(--gold-hi)}
.th-char__body{--cc:#d9c6a8;min-height:300px}
.th-char__loading{margin:0;padding:120px 20px;text-align:center;color:var(--dim)}
.th-char__head{padding:28px 32px 0;background:radial-gradient(ellipse 60% 120% at 0% 0%,color-mix(in srgb,var(--cc) 12%,transparent),transparent 70%)}
.th-char__rank{margin:0 0 6px;font:400 .78rem/1.4 var(--caps);letter-spacing:.2em;text-transform:uppercase;color:var(--gold-soft)}
.th-char__name{margin:0 46px 4px 0;font-size:clamp(1.9rem,3.6vw,2.5rem);line-height:1.05;color:var(--cc)}
.th-char__name span{color:var(--cream-2)}
.th-char__line{margin:0 0 16px;color:#e3e8ee}
.th-char__facts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 26px}
.th-char__stats{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.th-char__stats div{min-width:96px;padding:9px 14px;border-radius:8px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,221,153,.14)}
.th-char__stats dt{font:400 .68rem/1.2 var(--caps);letter-spacing:.16em;text-transform:uppercase;color:var(--faint)}
.th-char__stats dd{margin:4px 0 0;font:400 1.25rem/1.1 var(--head);color:var(--gold-soft)}
.th-char__prof{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0;padding:0;font-size:.9rem;color:#dfe5ec;flex:1 1 260px}
.th-char__prof span{margin-left:6px;color:var(--faint)}
.th-char__note{margin:0 0 4px;color:var(--dim)}
.th-char__foot{padding:4px 32px 26px}
.th-char__armory{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font:400 .95rem/1 var(--caps);color:var(--gold-soft);text-decoration:none}
.th-char__armory::after{content:"↗";font-family:var(--body)}
.th-char__armory:hover{color:var(--gold-hi)}
/* character sheet, laid out like the in-game paper doll */
.th-sheet{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px) minmax(0,1fr);grid-template-areas:"l doll r" "w w w";gap:0 16px;padding:22px 28px 6px}
.th-sheet__slots{list-style:none;margin:0;padding:0;display:grid;align-content:space-between;gap:6px}
.th-sheet__slots--l{grid-area:l}
.th-sheet__slots--r{grid-area:r}
.th-sheet__slots--w{grid-area:w;display:flex;justify-content:center;gap:10px 18px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,221,153,.1)}
.th-sheet__slots--w .th-slot{flex:0 1 260px;min-width:0}
.th-sheet__doll{grid-area:doll;position:relative;overflow:hidden;min-height:440px;border-radius:10px;background:radial-gradient(ellipse 65% 50% at 50% 55%,color-mix(in srgb,var(--cc) 30%,transparent),transparent 72%),linear-gradient(180deg,#0e1729,#070b14);box-shadow:inset 0 0 0 1px rgba(255,221,153,.1)}
.th-sheet__doll::after{content:"";position:absolute;inset:auto 0 0;height:22%;background:linear-gradient(transparent,rgba(7,11,20,.8))}
.th-sheet__doll img{position:absolute;left:50%;top:50%;height:150%;width:auto;max-width:none;transform:translate(-50%,-56%)}
.th-sheet__doll.is-empty::before{content:"";position:absolute;inset:0;background:url(../img/sky-night-p.webp?r=24) center/cover;opacity:.45}
.th-slot{--q:#fff;min-width:0}
.th-slot__in{display:flex;align-items:center;gap:10px;width:100%;min-width:0;margin:0;padding:3px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left}
button.th-slot__in{cursor:pointer}
button.th-slot__in:hover,button.th-slot__in:focus-visible{background:rgba(255,255,255,.045);outline:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--q) 40%,transparent)}
.th-sheet__slots--r .th-slot__in{flex-direction:row-reverse;text-align:right}
.th-slot__icon{flex:none;position:relative;width:44px;height:44px;border-radius:6px;overflow:hidden;background:#05080f;box-shadow:0 0 0 2px color-mix(in srgb,var(--q) 80%,#000),0 0 10px -2px color-mix(in srgb,var(--q) 55%,transparent)}
.th-slot__icon img{display:block;width:100%;height:100%}
.th-slot__icon::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.6),inset 0 2px 6px rgba(255,255,255,.08)}
.th-slot.is-empty .th-slot__icon{background:linear-gradient(145deg,#141c2c,#090d16);box-shadow:0 0 0 1px rgba(255,221,153,.16)}
.th-slot.is-empty .th-slot__icon::after{inset:9px;border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);background:radial-gradient(circle,rgba(255,255,255,.05),transparent 70%)}
.th-slot.is-ghost .th-slot__icon img{opacity:.32;filter:grayscale(.7)}
.th-sheet__none{position:absolute;inset:auto 0 18px;z-index:1;margin:0;padding:0 16px;text-align:center;font-size:.82rem;color:var(--dim)}
.th-slot__text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.th-slot__name{font-size:.9rem;color:var(--q);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-slot__meta{font-size:.74rem;color:var(--faint)}
.th-slot.is-empty .th-slot__name{color:rgba(255,255,255,.28);font-style:italic}
/* item tooltip, styled after the game's */
.th-tip{position:absolute;z-index:5;padding:10px 12px 11px;border-radius:5px;background:linear-gradient(180deg,rgba(14,18,40,.97),rgba(6,8,22,.97));box-shadow:0 0 0 1px #6f7fa3,0 0 0 2px rgba(0,0,0,.6),0 14px 30px -8px #000;font:400 .84rem/1.38 var(--body);color:#fff;pointer-events:none}
.th-tip__name{margin-bottom:2px;font-size:.98rem;line-height:1.25;color:var(--q)}
.th-tip__row{display:flex;justify-content:space-between;gap:16px}
.th-tip__right{text-align:right;white-space:nowrap}
.th-tip__gold{color:#ffd100}
.th-tip__green{color:#1eff00}
.th-tip__desc{margin-top:2px}
@media (max-width:760px){
  .th-roster__bar{flex-direction:column;align-items:stretch}
  .th-search{flex:none}
  .th-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:2px 14px;scrollbar-width:none}
  .th-chips::-webkit-scrollbar{display:none}
  .th-chip{flex:none}
  .th-roster__count{margin:0}
  .th-members,.th-members--lead,.th-members--officer{grid-template-columns:1fr}
  .th-char{width:100vw;max-height:100dvh;margin:auto 0 0}
  .th-char__panel{max-height:94dvh;border-radius:14px 14px 0 0}
  .th-char__body{min-height:0}
  .th-char__head{padding:20px 18px 0}
  .th-char__foot{padding:2px 18px 24px}
  .th-sheet{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"doll doll" "l r" "w w";gap:0 8px;padding:16px 12px 4px}
  .th-sheet__doll{min-height:0;height:260px;margin-bottom:12px}
  .th-sheet__doll img{height:175%;transform:translate(-50%,-55%)}
  .th-sheet__slots{gap:4px}
  .th-sheet__slots--w{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px;padding-top:10px}
  .th-sheet__slots--w .th-slot__in{flex-direction:column;gap:5px;text-align:center}
  .th-slot__in{gap:8px;padding:3px 2px}
  .th-slot__icon{width:38px;height:38px}
  .th-slot__name{font-size:.8rem}
  .th-slot__meta{font-size:.68rem}
  .th-sheet__slots--w .th-slot__text{width:100%}
}

/* ---------- Gallery ---------- */
.th-gallery{columns:3 300px;column-gap:18px}
.th-shot{break-inside:avoid;margin:0 0 18px}
.th-shot__open{display:block;width:100%;padding:6px;border:0;border-radius:6px;cursor:zoom-in;background:linear-gradient(180deg,rgba(16,26,46,.9),rgba(8,13,25,.9));box-shadow:inset 0 0 0 1px var(--line),0 20px 40px -24px #000;transition:box-shadow .35s,transform .35s var(--ease)}
.th-shot__open img{width:100%;height:auto;border-radius:3px;transition:filter .35s}
.th-shot__open:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 1px var(--gold-soft),0 0 30px -8px rgba(255,214,120,.45),0 20px 40px -24px #000}
.th-shot__open:hover img{filter:brightness(1.08)}
.th-shot figcaption{padding:8px 4px 0;font-size:.9rem;color:var(--dim)}

.th-lightbox{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:rgba(3,5,10,.93);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.th-lightbox[hidden]{display:none}
.th-lightbox figure{margin:0;max-width:min(1400px,92vw);text-align:center}
.th-lightbox img{max-height:82vh;width:auto;margin:0 auto;border-radius:4px;box-shadow:0 0 0 1px var(--line-hi),0 30px 80px #000}
.th-lightbox figcaption{margin-top:12px;color:var(--dim)}
.th-lightbox__close,.th-lightbox__nav{position:absolute;display:grid;place-items:center;width:50px;height:50px;border:0;border-radius:50%;cursor:pointer;font-size:1.8rem;line-height:1;color:var(--cream);background:rgba(12,18,34,.8);box-shadow:inset 0 0 0 1px var(--line-hi)}
.th-lightbox__close:hover,.th-lightbox__nav:hover{color:var(--gold-hi);box-shadow:inset 0 0 0 1px var(--gold-hi)}
.th-lightbox__close{top:18px;right:18px}
.th-lightbox__nav--prev{left:18px;top:50%;margin-top:-25px}
.th-lightbox__nav--next{right:18px;top:50%;margin-top:-25px}

/* ---------- Application: a quest scroll under the stars ---------- */
.th-night--apply{padding-bottom:clamp(110px,12vw,170px)}
.th-apply{max-width:860px;margin:0 auto}
.th-form{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;padding:clamp(28px,4.4vw,52px);border-radius:6px;color:#2b2318;
  background:radial-gradient(ellipse 90% 60% at 50% 0%,#fdfaf1,#f2e9d4 55%,#e6d7b6);box-shadow:inset 0 0 0 1px #c6af8d,inset 0 0 0 6px rgba(253,250,241,.55),inset 0 0 0 7px rgba(198,175,141,.7),inset 0 0 60px rgba(150,110,50,.22),0 40px 90px -30px #000,0 0 60px -20px rgba(159,220,255,.25)}
.th-field{min-width:0}
.th-field--textarea,.th-field--checks,.th-field--number,.th-field:has(#th-f-found),.th-form__foot{grid-column:1/-1}
.th-field--number input{max-width:200px}
.th-field:has(#th-f-found) input{max-width:calc(50% - 12px)}
.th-field label,.th-field legend{display:block;margin-bottom:8px;font-family:var(--head);font-size:1.12rem;color:#2a2014}
.th-field fieldset{margin:0;padding:0;border:0;min-width:0}
.th-req,.th-opt{margin-left:6px;font:italic 400 .88rem var(--body);color:#7a6a52}
.th-form input[type=text],.th-form input[type=number],.th-form select,.th-form textarea{width:100%;min-height:50px;padding:12px 14px;border:1px solid #bda988;border-radius:4px;color:#1f1810;font:inherit;font-size:16px;background:rgba(255,253,247,.75);box-shadow:inset 0 1px 3px rgba(80,60,30,.12);transition:border-color .2s,box-shadow .2s,background .2s}
.th-form textarea{min-height:130px;resize:vertical;line-height:1.55}
.th-form ::placeholder{color:#9a8b72}
.th-form input:focus,.th-form select:focus,.th-form textarea:focus{outline:none;border-color:#017caa;background:#fffdf8;box-shadow:0 0 0 3px rgba(1,124,170,.18)}
.th-checks{display:flex;flex-wrap:wrap;gap:10px}
.th-check{position:relative;cursor:pointer}
.th-check input{position:absolute;opacity:0;pointer-events:none}
.th-check span{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 16px 8px 12px;border:1px solid #bda988;border-radius:999px;color:#2b2318;font-weight:600;font-size:.95rem;background:rgba(255,253,247,.65);transition:background .2s,border-color .2s,box-shadow .2s}
.th-check span::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;background:#fffdf8;box-shadow:inset 0 0 0 1.5px #a58f6a}
.th-check:hover span{border-color:#8a6a35}
.th-check input:checked + span{border-color:#017caa;background:rgba(1,124,170,.1);box-shadow:0 0 0 1px #017caa}
.th-check input:checked + span::before{background:radial-gradient(circle,#fff 0 22%,#0b8fc2 26% 60%,#065b80 62%);box-shadow:0 0 8px rgba(1,124,170,.5)}
.th-check input:focus-visible + span{outline:2px solid #017caa;outline-offset:2px}
.th-field.is-bad input,.th-field.is-bad select,.th-field.is-bad textarea,.th-field.is-bad .th-check span{border-color:#b3261e;box-shadow:0 0 0 2px rgba(179,38,30,.18)}
.th-field__err{margin:6px 0 0;font-size:.9rem;font-weight:600;color:#a3241b}
.th-hp{position:absolute!important;left:-9999px}
.th-form__foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:6px;padding-top:22px;border-top:1px solid rgba(160,130,80,.35)}
.th-form__foot .th-note{margin:0;text-align:left;color:#6c5c44;font-size:.95rem}
.th-notice{max-width:860px;margin:0 auto 22px;padding:14px 20px;border-radius:6px;font-weight:600}
.th-notice--ok{color:#dff7e6;background:rgba(16,48,32,.9);box-shadow:inset 0 0 0 1px #4fd08a}
.th-notice--warn{color:#ffe0da;background:rgba(56,14,12,.92);box-shadow:inset 0 0 0 1px #e0574a}

/* ---------- Join steps: a trail of light ---------- */
.th-steps{position:relative;list-style:none;counter-reset:step;max-width:860px;margin:0 auto;padding:0}
.th-steps::before{content:"";position:absolute;left:31px;top:34px;bottom:34px;width:2px;background:linear-gradient(180deg,rgba(191,233,255,.9),rgba(120,170,255,.4) 60%,rgba(191,233,255,.05));box-shadow:0 0 12px rgba(159,220,255,.6)}
.th-steps li{position:relative;counter-increment:step;display:grid;grid-template-columns:64px 1fr;gap:22px;margin-bottom:24px}
.th-steps li::before{content:counter(step);position:relative;z-index:1;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;font:400 1.6rem/1 var(--head);color:#0a1730;
  background:radial-gradient(circle at 50% 40%,#ffffff,#d8f1ff 35%,#86c8ff 70%,#4b88e0);box-shadow:0 0 0 4px rgba(7,11,20,.9),0 0 0 5px rgba(191,233,255,.4),0 0 26px rgba(159,220,255,.75);animation:th-node 4s ease-in-out infinite}
.th-steps li:nth-child(2)::before{animation-delay:-1s}.th-steps li:nth-child(3)::before{animation-delay:-2s}.th-steps li:nth-child(4)::before{animation-delay:-3s}
@keyframes th-node{50%{box-shadow:0 0 0 4px rgba(7,11,20,.9),0 0 0 5px rgba(191,233,255,.6),0 0 40px rgba(159,220,255,1)}}
.th-steps li > div{padding:24px 28px;border-radius:6px;background:linear-gradient(180deg,rgba(14,22,40,.82),rgba(7,11,22,.9));box-shadow:inset 0 0 0 1px var(--line),0 24px 44px -30px #000;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.th-steps h3{margin-bottom:8px}
.th-steps p{color:#dbe2ea}
.th-steps p:last-child{margin:14px 0 0}

/* ---------- 404 ---------- */
.th-404{max-width:620px;margin:0 auto;padding:clamp(28px,4vw,46px);border-radius:8px;text-align:center;background:linear-gradient(180deg,rgba(9,15,28,.66),rgba(7,11,20,.82));box-shadow:inset 0 0 0 1px var(--line),0 40px 80px -40px #000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.th-404__art{width:200px;margin:0 auto 6px}
.th-tipped{overflow:visible}
.th-tipped .tp-saucer{fill:rgba(255,221,153,.12);stroke:var(--gold-soft);stroke-width:2}
.th-tipped .tp-cup{transform-origin:150px 150px;transform:rotate(-14deg);animation:th-tip 6s ease-in-out infinite}
.th-tipped .tp-body{fill:rgba(255,221,153,.12);stroke:var(--gold-soft);stroke-width:3}
.th-tipped .tp-handle,.th-tipped .tp-band{stroke:var(--gold-soft);stroke-width:3;fill:none}
.th-tipped .tp-rim{fill:#0a1222;stroke:var(--gold-soft);stroke-width:3}
.th-tipped .tp-leaf path{fill:#7fc8a0}
@keyframes th-tip{50%{transform:rotate(-20deg)}}
.th-404__title{font-size:clamp(2.4rem,6vw,3.6rem);background:linear-gradient(#fffbea,#ffe2a0 55%,#e6a640);-webkit-background-clip:text;background-clip:text;color:transparent}
.th-404__text{color:#e3e8ee;font-size:1.1rem}

/* ---------- Footer ---------- */
.th-foot{position:relative;isolation:isolate;overflow:hidden;margin-top:clamp(20px,3vw,40px);padding:clamp(90px,10vw,130px) 0 44px;text-align:center}
.th-foot > .th-sky{-webkit-mask-image:linear-gradient(transparent,#000 22%);mask-image:linear-gradient(transparent,#000 22%)}
.th-foot > .th-sky::after{display:none}
.th-foot__inner{position:relative;z-index:2}
.th-foot__logo{max-height:96px;max-width:160px;margin:0 auto 12px}
.th-foot__name{margin:0 0 4px}
.th-foot__name .th-wm{width:min(240px,62vw);margin:0 auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,190,80,.16))}
.th-foot__line{margin:6px 0 0;font-family:var(--caps);font-size:.86rem;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
.th-foot__nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;list-style:none;margin:0 0 22px;padding:0}
.th-foot__nav a{display:block;padding:6px 10px;font-family:var(--caps);font-size:1rem;letter-spacing:.06em;color:var(--cream);text-decoration:none}
.th-foot__nav a:hover,.th-foot__nav a[aria-current]{color:var(--gold-hi)}
.th-foot__links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:34px}
.th-foot__legal{max-width:640px;margin:0 auto;font-size:.85rem;line-height:1.6;color:var(--faint)}

/* ---------- Parchment boxes ----------
   Our own aged paper card: worn deckled edges, gold-leaf trim with corner flourishes,
   a wax teacup seal, a faint tea ring, layered shadow and a warm light sweep on reveal. */
.th-parchment{position:relative;margin-top:clamp(28px,4vw,52px);margin-bottom:clamp(32px,4.5vw,60px);padding:30px 0 10px;color:#3b2414}
.th-parchment::before{content:"";position:absolute;z-index:3;top:30px;left:50%;width:76px;height:76px;transform:translate(-50%,-56%) rotate(-6deg);
  background:url(../img/seal.svg?r=5) center/contain no-repeat;pointer-events:none}
.th-parchment__inner{--edge:800px 36px;--eh:36px;position:relative;isolation:isolate;width:min(860px,100% - 40px);margin-inline:auto;
  padding:clamp(66px,7vw,84px) clamp(30px,6vw,76px) clamp(52px,6vw,72px);
  box-shadow:0 34px 60px -26px rgba(4,6,16,.85),0 14px 24px -12px rgba(10,8,14,.7),0 2px 0 -1px rgba(0,0,0,.25);
  transform:translateY(0);transition:transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .6s}
.th-parchment__inner::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-color:#e8d3a6;
  background-image:
    url(../img/scorch-top.webp?r=5),url(../img/scorch-bot.webp?r=5),
    linear-gradient(rgb(36 40 86 / .10),rgb(36 40 86 / .10)),
    radial-gradient(ellipse 72% 70% at 50% 46%,rgba(255,248,226,.34),rgba(255,248,226,0) 70%),
    linear-gradient(90deg,rgba(96,54,18,.38),rgba(96,54,18,0) 7%,rgba(96,54,18,0) 93%,rgba(96,54,18,.38)),
    radial-gradient(ellipse 80% 90% at 50% 50%,rgba(110,64,22,0) 58%,rgba(110,64,22,.32)),
    url(../img/tea-ring.webp?r=5),url(../img/tea-ring.webp?r=5),
    image-set(url(../img/parchment.avif?r=5) type("image/avif"),url(../img/parchment.webp?r=5) type("image/webp"));
  background-size:var(--edge),var(--edge),auto,auto,auto,auto,auto,clamp(150px,24%,240px) auto,0 0;
  background-position:center top,center bottom,0 0,0 0,0 0,0 0,0 0,right -4% bottom -7%,0 0;
  background-repeat:repeat-x,repeat-x,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  -webkit-mask:url(../img/edge-top.png?r=5) center top/var(--edge) repeat-x,linear-gradient(#000 0 0) center/100% calc(100% - var(--eh) * 2 + 2px) no-repeat,url(../img/edge-bot.png?r=5) center bottom/var(--edge) repeat-x;
  mask:url(../img/edge-top.png?r=5) center top/var(--edge) repeat-x,linear-gradient(#000 0 0) center/100% calc(100% - var(--eh) * 2 + 2px) no-repeat,url(../img/edge-bot.png?r=5) center bottom/var(--edge) repeat-x}
/* gold-leaf frame: a 2px outer line and a fine inner line, joined by corner flourishes */
.th-parchment__inner::after{content:"";position:absolute;inset:22px 16px;z-index:-1;pointer-events:none;
  border:2px solid #b8852f;border-radius:13px;outline:1px solid rgba(168,120,44,.62);outline-offset:-10px;
  box-shadow:0 1px 0 rgba(255,246,220,.55),inset 0 1px 0 rgba(255,246,220,.45);
  background:
    url(../img/corner-tl.svg?r=6) left -2px top -2px/86px no-repeat,url(../img/corner-tr.svg?r=6) right -2px top -2px/86px no-repeat,
    url(../img/corner-bl.svg?r=6) left -2px bottom -2px/86px no-repeat,url(../img/corner-br.svg?r=6) right -2px bottom -2px/86px no-repeat;
  background-origin:border-box;background-clip:border-box}
.th-parchment__inner:hover{transform:translateY(-3px);box-shadow:0 42px 70px -26px rgba(4,6,16,.9),0 18px 28px -12px rgba(10,8,14,.7),0 2px 0 -1px rgba(0,0,0,.25)}
@media (prefers-reduced-motion:reduce){.th-parchment__inner,.th-parchment__inner:hover{transform:none;transition:none}}
.th-parchment__inner--wide{width:min(980px,100% - 40px)}
.th-parchment__inner--story{text-align:center;font-size:1.12rem}
.th-parchment h2,.th-parchment h3{color:#5c1f0f;text-shadow:0 1px 0 rgba(255,246,222,.55)}
.th-parchment h2{font-size:clamp(2.1rem,4.2vw,3.1rem)}
.th-parchment p{color:#3b2414;text-shadow:none}
.th-parchment p:last-child{margin-bottom:0}
.th-parchment .th-kicker{color:#7a3a10;text-shadow:none}
.th-parchment a:not(.th-btn){color:#7a1a10;text-decoration-color:rgba(122,26,16,.45)}
.th-parchment .th-link{color:#7a1a10}
.th-parchment .th-link:hover{color:#a3260f}
.th-parchment .th-btn--ghost{color:#4a2a12;background:rgba(255,246,222,.4);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 0 0 1px rgba(110,66,24,.55)}
.th-parchment__lead{font-size:clamp(1.12rem,1.7vw,1.3rem);line-height:1.7;text-align:center}
.th-parchment .th-rule{margin:14px auto 20px;color:#8a5a1a}
.th-parchment .th-rule span{background:linear-gradient(90deg,rgba(138,90,26,0),rgba(138,90,26,.8))}
.th-parchment .th-rule span:last-child{background:linear-gradient(90deg,rgba(138,90,26,.8),rgba(138,90,26,0))}
.th-parchment .th-rule svg{filter:none}
.th-parchment .th-rule svg path{stroke:#8a5a1a}
.th-parchment .th-rule svg path.in{fill:#b8862c}
.th-parchment .th-rule__cup path{stroke:#8a5a1a}
.th-parchment .th-rule__cup path:first-child{fill:rgba(184,134,44,.18)}
.th-parchment .th-rule__cup .st{stroke:#9a6a3a;opacity:.8}
/* join steps on paper */
.th-parchment .th-steps::before{background:linear-gradient(180deg,rgba(122,74,26,.75),rgba(122,74,26,.35) 70%,rgba(122,74,26,0));box-shadow:none}
.th-parchment .th-steps li::before{color:#fbecc8;background:radial-gradient(circle at 50% 38%,#a8642a,#7a3a14 62%,#5a250c);box-shadow:0 0 0 3px #ead6aa,0 0 0 4px rgba(122,74,26,.75),0 6px 14px -4px rgba(70,36,10,.5);animation:none;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.th-parchment .th-steps li > div{background:linear-gradient(180deg,rgba(255,249,232,.5),rgba(255,244,218,.28));box-shadow:inset 0 0 0 1px rgba(122,80,30,.32),0 14px 26px -20px rgba(70,36,10,.55);-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:4px}
.th-parchment .th-steps p{color:#3b2414}
.th-content > .th-parchment:first-child{margin-top:0}

/* ---------- Reveal ---------- */
.js .th-rise{opacity:0;transform:translateY(28px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.js .th-rise.is-in{opacity:1;transform:none}
.th-menu .th-rise:nth-child(2){transition-delay:.1s}.th-menu .th-rise:nth-child(3){transition-delay:.2s}.th-menu .th-rise:nth-child(4){transition-delay:.3s}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .th-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
  .th-menu__card{min-height:400px}
  .th-events--compact{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .th-split{grid-template-columns:1fr}
  .th-event{grid-template-columns:1fr}
  .th-events--compact{grid-template-columns:1fr}
  .th-invite--seat{grid-template-columns:1fr;min-height:0}
  .th-invite__art{position:relative;inset:auto;height:300px;z-index:0;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
  .th-invite--seat::before{display:none}
  .th-invite__copy{position:relative;z-index:2;margin-top:-60px;padding:0 24px 36px}
  .th-form{grid-template-columns:1fr}
  .th-field:has(#th-f-found) input{max-width:none}
}
@media (max-width:560px){
  .th-wrap,.th-night__inner{width:calc(100% - 28px)}
  .th-menu{grid-template-columns:1fr}
  .th-menu__card{min-height:360px}
  .th-hero{padding-bottom:110px}
  .th-hero__scroll{bottom:40px}
  .th-eyebrow{letter-spacing:.12em;font-size:.74rem}
  .th-hero .th-eyebrow{padding-inline:4px}
  .th-eyebrow::before,.th-eyebrow::after{width:18px}
  .th-btn{padding:0 22px}
  .th-foot__line{letter-spacing:.06em;font-size:.95rem}
  .th-masthead{min-height:440px;padding-bottom:80px}
  .th-facts > div{min-width:0;flex:1 1 40%;padding:12px 10px}
  .th-facts dd{font-size:1.5rem}
  .th-steps::before{left:23px}
  .th-steps li{grid-template-columns:48px 1fr;gap:14px}
  .th-steps li::before{width:48px;height:48px;font-size:1.25rem}
  .th-steps li > div{padding:20px 18px}
  .th-lightbox__nav{top:auto;bottom:18px;margin:0}
  .th-parchment__inner,.th-parchment__inner--wide{--edge:560px 26px;--eh:26px;width:calc(100% - 24px);padding:64px 24px 48px}
  .th-parchment__inner::after{inset:16px 9px;border-radius:11px;outline-offset:-8px;background-size:58px,58px,58px,58px}
  .th-parchment::before{width:62px;height:62px}
  .th-brand__name{width:124px}
}

/* ---------- Reduced motion: still skies, the film's opening frame ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .js .th-rise{opacity:1;transform:none}
  .th-wisp{display:none}
  .th-sky__art{transform:none!important}
}
.th-night .th-sky__art{inset:-12% 0}
/* layer order inside a sky: painting or film (1-2), grading, stars, clouds, mist, fades */
.th-sky__tint{z-index:3}.th-sky__fx{z-index:5}.th-sky__clouds{z-index:6}.th-sky__mist{z-index:7}.th-sky::after,.th-sky::before{z-index:8}
[hidden]{display:none!important}

/* ---------- Wisp page transition (drawn on a canvas by teahouse.js) ---------- */
.th-go{position:fixed;inset:0;width:100vw;height:100vh;z-index:9999;pointer-events:none;isolation:isolate;contain:strict}
.th-go canvas{position:absolute;inset:0;width:100%;height:100%}
.th-go__add{mix-blend-mode:plus-lighter}
/* the next page starts under the wisp's veil until the canvas takes over; it lifts by itself if scripts never run */
html.th-land::after{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;background:#060a16;animation:th-land-lift .4s 1.8s ease-out forwards}
@keyframes th-land-lift{to{opacity:0;visibility:hidden}}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.12s}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
@media print{.th-go,html.th-land::after{display:none}}

/* ---------- Page titles as Vinque artwork, framed like the logo ---------- */
.th-title-art{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,22px);background:none!important;-webkit-text-fill-color:initial;color:inherit;line-height:0}
.th-title-art img{display:block;height:clamp(58px,8.6vw,104px);width:auto;max-width:min(78vw,760px);object-fit:contain;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(10,8,14,.45)) drop-shadow(0 0 26px rgb(255 190 80 / .2))}
.th-masthead__title.th-title-art{filter:none;margin-bottom:.35em}
.th-title-art::before,.th-title-art::after{content:"";flex:none;width:clamp(56px,8vw,110px);height:22px;background:url(../img/flourish.svg?r=6) center/contain no-repeat;opacity:.9;filter:drop-shadow(0 0 6px rgba(255,200,110,.35))}
.th-title-art::before{transform:scaleX(1)}
.th-title-art::after{transform:scaleX(-1)}
.th-404__title.th-title-art img{height:clamp(46px,6vw,76px)}
@media (max-width:600px){
  .th-title-art::before,.th-title-art::after{width:30px}
  .th-title-art img{max-width:calc(100vw - 110px)}
  .th-404__title.th-title-art::before,.th-404__title.th-title-art::after{display:none}
  .th-404__title.th-title-art img{max-width:88vw}
}
.th-ribbon{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.th-page--home .th-content > .th-section:last-child{padding-bottom:clamp(16px,2vw,28px)}
.th-page--home{padding-bottom:0!important}
body.home .th-foot{margin-top:0;padding-top:clamp(76px,8vw,108px)}
html.th-hold .th-sky__clouds span,html.th-hold .th-sky__mist span,html.th-hold .th-cup__st{animation-play-state:paused}

/* ==========================================================================
   Sub-page scenes (3.8): painted, time-of-day bands behind page sections,
   gilded "codex" cards, and illustrated empty states.
   ========================================================================== */
.th-scene{position:relative;padding:clamp(90px,11vw,150px) 0}
.th-scene::before,.th-scene::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none}
/* a soft, wide shade in the middle keeps text readable on any painting; stronger by day */
.th-scene::before{background:radial-gradient(ellipse 70% 62% at 50% 50%,rgba(6,10,22,.5),rgba(6,10,22,.18) 72%,transparent)}
.th-scene::after{background:linear-gradient(180deg,rgba(6,10,22,.2),rgba(6,10,22,.45) 50%,rgba(6,10,22,.2));opacity:.6}
.th-scene.th-sky--night::after,.th-scene:has(> .th-sky--night)::after{opacity:0}
.th-scene > .th-sky{-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}
.th-scene .th-night__inner{z-index:3}
/* a band that opens the page tucks up under the masthead; one that ends it runs into the footer */
.th-content > .th-scene--top:first-child{margin-top:calc(-1 * clamp(56px,7vw,96px))}
.th-content > .th-scene:last-child{margin-bottom:calc(-1 * clamp(70px,8vw,120px))}
.th-scene .th-note{color:#cfd8e3;text-shadow:0 1px 12px rgba(0,0,0,.9)}
.th-scene--paper .th-parchment{margin-top:0;margin-bottom:0}
.th-scene--roster{padding-top:clamp(70px,8vw,110px)}
.th-scene--roster .th-roster__group h2,.th-scene--roster .th-roster h2{text-shadow:0 2px 18px rgba(0,0,0,.9)}

/* gilded codex cards */
.th-split--codex{gap:clamp(20px,2.8vw,36px)}
.th-card--codex{padding:clamp(34px,3.8vw,50px) clamp(28px,3.4vw,46px);border-radius:4px;
  background:radial-gradient(ellipse 90% 60% at 50% 0%,rgba(255,214,140,.07),transparent 70%),linear-gradient(180deg,rgba(13,21,40,.86),rgba(6,10,21,.93));
  box-shadow:inset 0 0 0 1px rgba(255,221,153,.28),inset 0 0 0 6px rgba(5,8,17,.55),inset 0 0 0 7px rgba(255,221,153,.12),0 34px 70px -34px #000,0 0 60px -24px rgba(120,170,255,.25);
  transition:transform .6s var(--ease),box-shadow .6s var(--ease)}
.th-card--codex::after{content:"";position:absolute;inset:5px;pointer-events:none;opacity:.9;
  background:url(../img/corner-tl.svg?r=7) left top/40px no-repeat,url(../img/corner-tr.svg?r=7) right top/40px no-repeat,url(../img/corner-bl.svg?r=7) left bottom/40px no-repeat,url(../img/corner-br.svg?r=7) right bottom/40px no-repeat}
.th-card--codex::before{left:18%;right:18%;height:2px;top:-1px;box-shadow:0 0 14px rgba(255,214,120,.6)}
.th-card--codex .th-kicker{display:flex;align-items:center;gap:10px}
.th-card--codex .th-kicker::before{content:"";width:9px;height:9px;transform:rotate(45deg);background:linear-gradient(135deg,var(--gold-hi),var(--amber));box-shadow:0 0 10px rgba(255,200,90,.7)}
.th-card--codex h3{margin-bottom:6px;font-size:clamp(1.45rem,2.3vw,1.8rem);background:linear-gradient(180deg,#fff6d8,#ffd77a 70%,#e0a54b);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 10px rgba(0,0,0,.6))}
.th-card--codex h3::after{content:"";display:block;width:64px;height:1px;margin-top:14px;background:linear-gradient(90deg,var(--gold-soft),transparent)}
.th-card--codex .th-list li{padding:11px 0 11px 30px;border-top-color:rgba(255,221,153,.1);color:#e3e8ef}
@media (hover:hover){.th-card--codex:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px rgba(255,221,153,.45),inset 0 0 0 6px rgba(5,8,17,.55),inset 0 0 0 7px rgba(255,221,153,.18),0 40px 80px -34px #000,0 0 70px -18px rgba(130,185,255,.38)}}
.th-split--codex .th-rise:nth-child(2){transition-delay:.14s}

/* illustrated empty states */
.th-empty--events,.th-empty--gallery{position:relative;max-width:720px;padding:clamp(40px,5vw,58px) clamp(26px,4vw,52px) clamp(36px,4.4vw,50px);border-radius:4px;
  background:radial-gradient(ellipse 80% 55% at 50% 0%,rgba(150,205,255,.1),transparent 70%),linear-gradient(180deg,rgba(13,21,40,.84),rgba(6,10,21,.92));
  box-shadow:inset 0 0 0 1px rgba(255,221,153,.28),inset 0 0 0 6px rgba(5,8,17,.55),inset 0 0 0 7px rgba(255,221,153,.12),0 40px 80px -36px #000}
.th-empty--events::after,.th-empty--gallery::after{content:"";position:absolute;inset:5px;pointer-events:none;
  background:url(../img/corner-tl.svg?r=7) left top/40px no-repeat,url(../img/corner-tr.svg?r=7) right top/40px no-repeat,url(../img/corner-bl.svg?r=7) left bottom/40px no-repeat,url(../img/corner-br.svg?r=7) right bottom/40px no-repeat}
.th-empty--events .th-empty__title,.th-empty--gallery .th-empty__title{font-size:clamp(1.5rem,2.6vw,1.95rem)}
.th-empty__art{display:flex;justify-content:center;margin:-6px 0 14px}
.th-empty__art .th-glyph{width:104px;animation:th-bob 6s ease-in-out infinite}
@media (prefers-reduced-motion:no-preference){.th-glyph .g-steam{animation:th-wisp-steam 3.8s ease-in-out infinite}.th-glyph .g-steam:nth-of-type(2){animation-delay:-1.2s}.th-glyph .g-steam:nth-of-type(3){animation-delay:-2.4s}}
@keyframes th-bob{50%{transform:translateY(-5px)}}
@keyframes th-wisp-steam{0%,100%{opacity:.45;transform:translateY(1px) scaleY(.92)}50%{opacity:.9;transform:translateY(-2px) scaleY(1.06)}}
.th-empty__cta{margin:22px 0 0!important}
.th-empty__frames{display:flex;justify-content:center;align-items:flex-end;gap:clamp(10px,2vw,20px);margin:-4px 0 26px}
.th-frame{position:relative;display:block;width:clamp(78px,12vw,124px);aspect-ratio:4/3;border-radius:2px;
  background:linear-gradient(180deg,rgba(150,190,240,.10),rgba(255,214,140,.05)),linear-gradient(160deg,rgba(255,255,255,.05),transparent 50%);
  box-shadow:inset 0 0 0 2px rgba(255,221,153,.6),inset 0 0 0 6px rgba(28,20,8,.75),inset 0 0 0 7px rgba(255,221,153,.25),0 16px 30px -14px #000;overflow:hidden}
.th-frame--0{transform:rotate(-7deg) translateY(4px)}
.th-frame--1{width:clamp(96px,15vw,152px);transform:rotate(1.5deg) translateY(-6px)}
.th-frame--2{transform:rotate(6deg) translateY(2px)}
/* a faint hill-and-sky sketch waiting in each frame, with a slow glint */
.th-frame i{position:absolute;inset:9px;background:linear-gradient(170deg,transparent 58%,rgba(255,221,153,.16) 59%,rgba(255,221,153,.08)),radial-gradient(circle at 72% 30%,rgba(255,236,190,.28) 0 7%,transparent 8%)}
.th-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgba(255,245,215,.18) 50%,transparent 65%) -160% 0/250% 100% no-repeat;animation:th-glint 7s ease-in-out infinite}
.th-frame--1::after{animation-delay:1.2s}.th-frame--2::after{animation-delay:2.4s}
@keyframes th-glint{0%,55%{background-position:-160% 0}85%,100%{background-position:160% 0}}
.th-frame::before{content:"";position:absolute;left:50%;top:3px;z-index:1;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff1c2,#d49a35 60%,#7a4c12);box-shadow:0 1px 3px #000}

/* About / Recruitment invite gets a framed edge to match */
.th-invite{box-shadow:inset 0 0 0 1px rgba(255,221,153,.24),inset 0 0 0 6px rgba(5,8,17,.35),inset 0 0 0 7px rgba(255,221,153,.1),0 40px 80px -40px #000}

/* facts row: gilded tiles */
.th-facts > div{background:radial-gradient(ellipse 90% 70% at 50% 0%,rgba(255,214,140,.08),transparent 70%),linear-gradient(180deg,rgba(14,22,42,.82),rgba(7,11,22,.9));box-shadow:inset 0 0 0 1px rgba(255,221,153,.24),inset 0 0 0 4px rgba(5,8,17,.5),inset 0 0 0 5px rgba(255,221,153,.08),0 20px 40px -24px #000}

@media (max-width:700px){
  .th-scene{padding:clamp(70px,16vw,100px) 0}
  .th-card--codex::after,.th-empty--events::after,.th-empty--gallery::after{background-size:30px,30px,30px,30px}
  .th-empty__frames{margin-bottom:20px}
}
@media (prefers-reduced-motion:reduce){.th-frame::after,.th-empty__art .th-glyph,.th-glyph .g-steam{animation:none}}
html.th-hold .th-frame::after,html.th-hold .th-empty__art *,html.th-hold .th-glyph *{animation-play-state:paused}
#apply{scroll-margin-top:calc(var(--top) + 28px)}

/* ---------- Application form on our parchment (3.8) ---------- */
.th-apply.th-parchment{max-width:none;margin-top:6px;margin-bottom:0}
.th-parchment__inner--form{width:min(900px,100% - 40px);padding:clamp(70px,7vw,92px) clamp(26px,5vw,64px) clamp(50px,5vw,68px)}
.th-parchment__inner--form:hover{transform:none}
.th-parchment .th-form{gap:22px 26px;padding:0;border-radius:0;background:none;box-shadow:none;color:#3b2414}
.th-parchment .th-field label,.th-parchment .th-field legend{margin-bottom:9px;font-family:var(--head);font-size:1.16rem;letter-spacing:.01em;color:#5c1f0f;text-shadow:0 1px 0 rgba(255,246,222,.6)}
.th-parchment .th-req,.th-parchment .th-opt{margin-left:6px;font-family:var(--body);font-size:.78rem;font-style:italic;letter-spacing:0;color:#7a5a36}
.th-parchment .th-form input[type=text],.th-parchment .th-form input[type=number],.th-parchment .th-form select,.th-parchment .th-form textarea{
  min-height:50px;padding:12px 15px;border:1px solid rgba(110,66,24,.42);border-radius:3px;color:#2a180c;font-family:var(--body);font-size:16px;
  background:linear-gradient(180deg,rgba(255,250,236,.72),rgba(255,246,224,.55));box-shadow:inset 0 2px 6px rgba(110,66,24,.16),0 1px 0 rgba(255,250,236,.7);
  transition:border-color .2s,box-shadow .25s,background .25s}
.th-parchment .th-form select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%237a3a14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center/14px no-repeat,linear-gradient(180deg,rgba(255,250,236,.72),rgba(255,246,224,.55))}
.th-parchment .th-form ::placeholder{color:#9a7c58;opacity:1}
.th-parchment .th-form input:hover,.th-parchment .th-form select:hover,.th-parchment .th-form textarea:hover{border-color:rgba(110,66,24,.65)}
.th-parchment .th-form input:focus,.th-parchment .th-form select:focus,.th-parchment .th-form textarea:focus{outline:none;border-color:#9a6420;background-color:rgba(255,252,242,.92);
  box-shadow:inset 0 2px 6px rgba(110,66,24,.12),0 0 0 3px rgba(214,160,60,.32),0 0 18px rgba(240,190,90,.35)}
.th-parchment .th-check span{border:1px solid rgba(110,66,24,.42);border-radius:999px;color:#3b2414;font-weight:600;background:rgba(255,248,230,.55);box-shadow:0 1px 0 rgba(255,250,236,.7)}
.th-parchment .th-check span::before{background:#fff8e6;box-shadow:inset 0 0 0 1.5px rgba(122,74,26,.7)}
.th-parchment .th-check:hover span{border-color:#8a5a1a;background:rgba(255,248,230,.8)}
.th-parchment .th-check input:checked + span{border-color:#7a3a14;color:#4a1a08;background:linear-gradient(180deg,rgba(232,190,120,.45),rgba(214,160,80,.3));box-shadow:0 0 0 1px rgba(122,58,20,.55),0 0 14px rgba(230,170,70,.3)}
.th-parchment .th-check input:checked + span::before{background:radial-gradient(circle at 40% 35%,#d0743a,#9a3412 55%,#5a1a08);box-shadow:0 0 0 2px #f3dcae,0 0 0 3px rgba(122,58,20,.7)}
.th-parchment .th-check input:focus-visible + span{outline:2px solid #9a6420;outline-offset:3px}
.th-parchment .th-field.is-bad input,.th-parchment .th-field.is-bad select,.th-parchment .th-field.is-bad textarea,.th-parchment .th-field.is-bad .th-check span{border-color:#a3260f;box-shadow:0 0 0 2px rgba(163,38,15,.2)}
.th-parchment .th-field__err{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:.9rem;font-weight:600;color:#8e1d0e}
.th-parchment .th-field__err::before{content:"";flex:none;width:7px;height:7px;transform:rotate(45deg);background:#a3260f}
.th-parchment .th-form__foot{margin-top:8px;padding-top:24px;border-top:0;background:linear-gradient(90deg,rgba(138,90,26,0),rgba(138,90,26,.6) 20%,rgba(138,90,26,.6) 80%,rgba(138,90,26,0)) top/100% 1px no-repeat}
.th-parchment .th-form__foot .th-note{color:#6a4626;font-style:italic}
.th-parchment .th-form .th-btn--primary{min-width:220px}
.th-parchment .th-notice{position:relative;max-width:none;margin:0 0 28px;padding:16px 20px 16px 52px;border-radius:3px;font-weight:600;line-height:1.55}
.th-parchment .th-notice::before{content:"";position:absolute;left:18px;top:50%;width:20px;height:20px;margin-top:-10px;border-radius:50%}
.th-parchment .th-notice--ok{color:#1f3a1b;background:linear-gradient(180deg,rgba(120,160,90,.22),rgba(100,140,70,.14));box-shadow:inset 0 0 0 1px rgba(60,100,40,.45)}
.th-parchment .th-notice--ok::before{background:radial-gradient(circle at 40% 35%,#8fc06a,#3f7a2a 60%,#24481a);box-shadow:0 0 0 2px #efe0b8}
.th-parchment .th-notice--warn{color:#6e160a;background:linear-gradient(180deg,rgba(190,70,40,.16),rgba(170,50,30,.1));box-shadow:inset 0 0 0 1px rgba(150,40,20,.45)}
.th-parchment .th-notice--warn::before{background:radial-gradient(circle at 40% 35%,#d0743a,#9a3412 55%,#5a1a08);box-shadow:0 0 0 2px #efe0b8}
.th-parchment .th-notice strong{color:inherit}
@media (max-width:700px){
  .th-parchment__inner--form{padding:66px 20px 44px}
  .th-parchment .th-form .th-btn--primary{width:100%}
}
.th-parchment .th-form input[type=number]{-moz-appearance:textfield;appearance:textfield}
.th-parchment .th-form input[type=number]::-webkit-inner-spin-button,.th-parchment .th-form input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Sub-page tagline in the eyebrow's face (Fenix), sentence case */
.th-masthead__sub{margin-top:12px;font-family:var(--caps);font-weight:400;font-size:clamp(1.14rem,1.7vw,1.38rem);line-height:1.45;letter-spacing:.015em;color:#f6e7c6;
  text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 12px rgba(5,9,18,.85),0 0 28px rgba(5,9,18,.6)}
@media (max-width:700px){.th-masthead__sub{font-size:1.08rem;max-width:30ch}}
.th-404__text{font-family:var(--caps);font-size:clamp(1.12rem,1.6vw,1.3rem);line-height:1.5;letter-spacing:.015em;color:#f6e7c6}
/* page banners: the still in its own light, darkened only at the edges for the title */
.th-masthead .th-sky--banner .th-sky__tint{opacity:1;background:linear-gradient(180deg,rgba(5,8,16,.45),rgba(5,8,16,.08) 30%,rgba(5,8,16,.12) 60%,rgba(5,8,16,.6))}

/* 3.9.1: drifting cloud and aurora layers fade out at every edge, so no box ever shows */
.th-sky__clouds span{-webkit-mask-image:linear-gradient(180deg,transparent,#000 22%,#000 62%,transparent);mask-image:linear-gradient(180deg,transparent,#000 22%,#000 62%,transparent)}
.th-sky--bare .th-sky__tint{filter:none;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 35%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 35%,transparent 100%)}
/* Home intro line in the tagline face, to match the sub-page banners */
.th-hero__lede{font-family:var(--caps);font-weight:400;font-size:clamp(1.2rem,1.8vw,1.45rem);line-height:1.5;letter-spacing:.015em;color:#f6e7c6;max-width:38ch;
  text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 12px rgba(5,9,18,.85),0 0 28px rgba(5,9,18,.6)}
@media (max-width:700px){.th-hero__lede{font-size:1.12rem;max-width:30ch}}
/* Art protection (front end only): no drag or long-press save menu on pictures and footage */
img,picture,video,canvas,.th-sky,.th-title-art,.th-art,.th-frame,.th-lightbox{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}

/* ---------- 4.1 banner stills ----------
   The stage is sized like object-fit: cover (container units), so each light stays on its spot in the
   picture at any screen shape. Everything moves with transform and opacity only. */
.th-sky--banner .th-sky__art{container-type:size}
.th-sky__stage{--a:var(--ar);position:absolute;left:50%;top:50%;width:max(100cqw,calc(100cqh * var(--a)));height:max(100cqh,calc(100cqw / var(--a)));transform:translate(-50%,-50%)}
.th-sky__kb{position:absolute;inset:0;transform-origin:50% 55%}
.th-sky--banner .th-sky__art img{animation:none}
.js .th-hero .th-sky--banner .th-sky__art img,.js .th-masthead .th-sky--banner .th-sky__art img{animation:none}
/* a very slow push in, then back out */
.th-motion .th-sky__kb{will-change:transform;animation:th-arrive 2.4s var(--ease) both,th-kb 70s 2.4s ease-in-out infinite alternate}
@keyframes th-kb{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.07) translate3d(-1.2%,-.8%,0)}}
.th-sky__glows{position:absolute;inset:0;pointer-events:none}
.th-glow{position:absolute;left:calc(var(--x) * 100%);top:calc(var(--y) * 100%);width:calc(var(--w) * 100%);height:calc(var(--h) * 100%);transform:translate(-50%,-50%);border-radius:50%;opacity:.8;
  background:radial-gradient(closest-side,rgba(255,196,110,.55),rgba(255,150,60,.22) 45%,rgba(255,140,60,0))}
.th-glow--fire{background:radial-gradient(closest-side,rgba(255,214,140,.7),rgba(255,150,50,.32) 40%,rgba(255,120,40,0))}
.th-glow--firelight{background:radial-gradient(closest-side,rgba(255,170,80,.22),rgba(255,140,60,0));opacity:.9}
.th-glow--window,.th-glow--lantern{background:radial-gradient(closest-side,rgba(255,214,150,.75),rgba(255,180,90,.25) 50%,rgba(255,170,80,0))}
.th-glow--lantern-blue{background:radial-gradient(closest-side,rgba(200,235,255,.8),rgba(120,190,255,.28) 50%,rgba(100,170,255,0))}
.th-glow--sun{background:radial-gradient(closest-side,rgba(255,238,200,.32),rgba(255,214,150,.1) 55%,rgba(255,210,150,0));opacity:.7}
.th-glow--shimmer{background:radial-gradient(closest-side,rgba(220,235,255,.35),rgba(200,225,255,0));opacity:.5}
.th-glow--shimmer-gold{background:radial-gradient(closest-side,rgba(255,236,190,.5),rgba(255,220,160,0));opacity:.6}
.th-glow--shaft{border-radius:40%;background:radial-gradient(closest-side,rgba(150,215,255,.3),rgba(110,190,255,0));opacity:.6}
.th-glow--pool{background:radial-gradient(closest-side,rgba(170,255,210,.25),rgba(140,240,200,0));opacity:.6}
.th-glow--wisp{background:radial-gradient(closest-side,rgba(210,240,255,.7),rgba(130,200,255,.2) 50%,rgba(120,190,255,0))}
.th-motion .th-glow--fire{animation:th-flicker 2.6s steps(1) infinite;animation-delay:calc(var(--i) * -.7s)}
.th-motion .th-glow--firelight{animation:th-flicker-soft 3.4s ease-in-out infinite alternate}
.th-motion .th-glow--window,.th-motion .th-glow--lantern,.th-motion .th-glow--lantern-blue,.th-motion .th-glow--wisp{animation:th-pulse 5s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -1.3s)}
.th-motion .th-glow--sun{animation:th-pulse-slow 11s ease-in-out infinite alternate}
.th-motion .th-glow--shimmer,.th-motion .th-glow--shimmer-gold,.th-motion .th-glow--pool{animation:th-shimmer 4.2s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -1.1s)}
.th-motion .th-glow--shaft{animation:th-pulse-slow 8s ease-in-out infinite alternate}
@keyframes th-flicker{0%{opacity:.85}12%{opacity:.62}24%{opacity:.95}37%{opacity:.72}50%{opacity:1}63%{opacity:.68}76%{opacity:.9}88%{opacity:.75}}
@keyframes th-flicker-soft{from{opacity:.65}to{opacity:1}}
@keyframes th-pulse{from{opacity:.45}to{opacity:.95}}
@keyframes th-pulse-slow{from{opacity:.4}to{opacity:.85}}
@keyframes th-shimmer{0%{opacity:.25;transform:translate(-52%,-50%) scaleX(.94)}100%{opacity:.75;transform:translate(-48%,-50%) scaleX(1.06)}}
/* warm and cold mist */
.th-sky--banner .th-sky__mist{height:40%}
.th-sky--hearth .th-sky__mist span,.th-sky--village .th-sky__mist span,.th-sky--sunset .th-sky__mist span,.th-sky--lake .th-sky__mist span,.th-sky--neighbors .th-sky__mist span{
  background:radial-gradient(ellipse 50% 60% at 30% 70%,rgba(255,226,190,.12),transparent 70%),radial-gradient(ellipse 45% 50% at 75% 80%,rgba(255,220,185,.1),transparent 70%)}
/* phones: the portrait crop, and each light moved into its frame */
@media (max-width:700px) and (orientation:portrait){
  .th-sky__stage{--a:var(--par)}
  .th-glow{left:calc(var(--xp) * 100%);width:calc(var(--wp) * 100%)}
  .th-motion .th-sky__kb{animation-duration:2.4s,90s}
}
/* without container units the lights can't be pinned, so they stay off */
@supports not (width:1cqw){.th-sky__stage{inset:0;width:auto;height:auto;transform:none;left:0;top:0}.th-sky__glows{display:none}}
/* lighter tier: no fog layers, lights hold still */
html.th-lite .th-sky--banner .th-sky__mist{display:none}
html.th-lite .th-glow{animation:none!important}
html.th-hold .th-sky__kb,html.th-hold .th-glow{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.th-sky__kb,.th-glow{animation:none!important;transform:translate(-50%,-50%)}.th-sky__kb{transform:none}}

/* 4.2 home inn footage: sits over its first-frame still, fades in once it is really playing */
.th-sky__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;pointer-events:none}
.th-sky.is-film .th-sky__video{opacity:1}
.th-sky.is-film .th-glow{opacity:0;animation:none}
@media (max-width:700px) and (orientation:portrait){.th-sky__video{object-position:50% 50%}}
/* 4.2.22: banners that get footage hold the picture still. The slow push (a scale every frame) and the arrival's
   zoom + brightness filter sat on the video's parent, so the browser re-scaled the footage every frame and it rattled,
   worst during the fade-in. The footage moves on its own; the arrival is now a dark veil lifting off above it. */
.th-film .th-sky--vid .th-sky__kb{animation:none;transform:none;will-change:auto}
.th-film .th-sky--vid .th-sky__art::after{content:"";position:absolute;inset:0;background:#000;pointer-events:none;opacity:0;animation:th-veil 2.4s var(--ease) both}
@keyframes th-veil{from{opacity:.45;visibility:visible}to{opacity:0;visibility:hidden}}

/* 4.2 Join Us spacing: tighter rhythm, and the form sits closer to the footer */
.th-page--join-us{padding-bottom:0}
.th-page--join-us .th-parchment.th-bleed{margin-bottom:clamp(16px,2vw,24px)}
.th-page--join-us .th-night--apply{padding-top:clamp(56px,6vw,96px);padding-bottom:clamp(48px,5vw,72px)}
.th-page--join-us .th-night--apply .th-section__head{margin-bottom:clamp(26px,3vw,40px)}
body:has(.th-page--join-us) .th-foot{margin-top:0;padding-top:clamp(64px,7vw,96px)}
/* 4.2.2 home: the hero already carries the name and line, so the header keeps only the teacup (text stays for screen readers) */
body.home .th-brand__text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* 4.2.3 Members: Leadership sits straight on the page, no panel around it */
.th-leadership{background:none;box-shadow:none;border-radius:0;padding:8px 0 6px}
.th-leadership::before{display:none}
@media (max-width:600px){.th-leadership{padding:4px 0}}
/* 4.2.3 Members search on phones: the label grew to the input's intrinsic width (514px) and ran off the screen */
@media (max-width:760px){
  .th-search{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  .th-search input{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}
/* 4.2.4 parchment: the layer lists were one value out of step (left over from the sheen removal), so the paper
   texture showed only as a hard-edged 110px square near the top-left. The approved smooth paper stays; the stray square is gone.
   Phones: the big tea ring is scaled down, and the frame's corner list had 5 sizes for 4 corners, which stretched a flourish over the text. */
@media (max-width:760px){.th-parchment__inner::before{background-size:var(--edge),var(--edge),auto,auto,auto,auto,190px auto,120px auto,0 0;background-position:center top,center bottom,0 0,0 0,0 0,0 0,-40px -30px,right -6% bottom -4%,0 0}}
/* 4.2.6 Members on phones: the class filter wraps onto rows instead of a hidden side-scroll that looked cut off. Desktop unchanged. */
@media (max-width:760px){
  .th-chips{flex-wrap:wrap;overflow:visible;margin:0;padding:0;gap:8px;min-width:0;max-width:100%}
  .th-chip{flex:0 1 auto;min-height:40px;padding:6px 12px;font-size:.92rem;white-space:nowrap}
}
/* 4.2.8 the mouse parallax slides the banner art up to 13px sideways, which opened a dark sliver at one edge
   (seen on the About banner). The art is now 16px wider on each side so the edge never shows. */
.th-sky__art{inset:-4% -16px}
.th-night .th-sky__art{inset:-12% -16px}
/* 4.2.12 trial: on desktop the whole top bar (teacup + wordmark + menu) is one centred row. Revert = delete this block. */
@media (min-width:1101px){
  .th-top__inner{justify-content:center;gap:clamp(28px,3vw,48px)}
  .th-top__inner>.th-brand{margin-right:0}
}
/* 4.2.12 phone menu fix: the scrolled header's backdrop blur made the header the containing block for the
   fixed menu overlay, so after scrolling the menu opened squeezed into the 66px bar and then snapped full-screen
   as the blur faded out. The blur now lives on a pseudo-layer behind the bar, so the overlay always fills the screen. */
.th-top{transition:background .4s,box-shadow .4s}
.th-top.is-scrolled{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.th-top::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .4s;background:rgba(6,10,19,.8);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
.th-top.is-scrolled::after{opacity:1}
.menu-open .th-top::after{opacity:0;transition:none}
@media (max-width:1100px){.th-nav{background-color:#05080f}}
/* 4.2.13 Members: profession filter (a dropdown so it never adds another row of pills) and the skill badge. */
.th-prof{position:relative;flex:0 1 220px;min-width:0}
.th-prof select{-webkit-appearance:none;appearance:none;width:100%;min-height:44px;padding:8px 38px 8px 16px;border:0;border-radius:8px;color:#fff;font:inherit;font-size:16px;cursor:pointer;
  background:rgba(8,14,26,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat;
  box-shadow:inset 0 0 0 1px rgba(255,221,153,.24);transition:box-shadow .25s;text-overflow:ellipsis}
.th-prof select:focus{outline:none;box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 18px rgba(255,214,120,.16)}
.th-prof select option,.th-prof select optgroup{background:#0b1322;color:#f1e6cf}
.th-member__prof{display:inline-block;align-self:flex-start;margin-top:5px;padding:1px 9px;border-radius:999px;font:400 .78rem/1.6 var(--caps,inherit);letter-spacing:.04em;white-space:nowrap;
  color:#f3e4c2;background:rgba(8,14,26,.6);box-shadow:inset 0 0 0 1px rgba(255,221,153,.28)}
.th-member__prof.is-max{color:#1d1204;background:var(--gold-soft);box-shadow:none}
.th-member--lead .th-member__prof{align-self:center}
@media (max-width:760px){.th-prof{flex:none;width:100%;max-width:100%}}
/* 4.2.14 one guild-wide list while a profession is picked */
.th-group--prof{--tier:#f1d9a0;margin-top:28px}
.th-group--prof .th-member__role{align-self:flex-start;margin:2px 0 3px;font-size:.62rem;padding:1px 8px}
/* 4.2.15 Members toolbar: search, class dropdown, profession dropdown (custom listboxes with Blizzard icons), count on the right. */
.th-roster__bar{position:relative;z-index:30;flex-wrap:nowrap;gap:12px}
.th-roster__bar .th-search{flex:1 1 300px;max-width:340px;min-width:0}
.th-dd{position:relative;flex:0 1 230px;min-width:0}
.th-dd__btn{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 14px 8px 16px;border:0;border-radius:8px;cursor:pointer;color:#fff;font:inherit;font-size:16px;text-align:left;
  background:rgba(8,14,26,.75);box-shadow:inset 0 0 0 1px rgba(255,221,153,.24);transition:box-shadow .25s}
.th-dd__btn:hover{box-shadow:inset 0 0 0 1px rgba(255,221,153,.45)}
.th-dd__btn:focus-visible,.th-dd.is-open .th-dd__btn{outline:none;box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 18px rgba(255,214,120,.16)}
.th-dd__cur{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
.th-dd__label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.th-dd__chev{flex:none;width:16px;height:16px;transition:transform .2s;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat}
.th-dd.is-open .th-dd__chev{transform:rotate(180deg)}
.th-dd__ico{flex:none;display:block;width:20px;height:20px;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,221,153,.35),0 1px 3px rgba(0,0,0,.6)}
.th-dd__ico--all,.th-dd__ico--none{background:radial-gradient(circle,#ffdd99 0 3px,transparent 3.5px),rgba(255,221,153,.08)}
.th-dd__menu{position:absolute;left:0;top:calc(100% + 6px);z-index:60;min-width:100%;width:max-content;max-width:min(320px,calc(100vw - 28px));max-height:min(560px,72vh);overflow-y:auto;overscroll-behavior:contain;
  margin:0;padding:6px;list-style:none;border-radius:10px;background:#120d08;box-shadow:inset 0 0 0 1px rgba(255,221,153,.32),0 18px 40px rgba(0,0,0,.65);scrollbar-width:thin;scrollbar-color:rgba(255,221,153,.35) transparent}
.th-dd__menu[hidden]{display:none}
.th-dd__menu:focus{outline:none}
.th-dd__group{padding:10px 10px 4px;color:#d9b876;font:400 .72rem/1 var(--caps,inherit);letter-spacing:.14em;text-transform:uppercase}
.th-dd__group:not(:nth-child(2)){margin-top:4px;border-top:1px solid rgba(255,221,153,.12)}
.th-dd__opt{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px 6px 10px;border-radius:6px;cursor:pointer;color:#f1e6cf;font-size:.98rem;white-space:nowrap}
.th-dd__opt:hover,.th-dd__opt:focus{outline:none;background:rgba(255,221,153,.1);color:#fff}
.th-dd__opt:focus-visible{box-shadow:inset 0 0 0 1px rgba(255,221,153,.5)}
.th-dd__opt[aria-selected="true"]{background:rgba(255,214,120,.16);color:#fff}
.th-dd__opt[aria-selected="true"] .th-dd__name{color:#ffe6b0}
.th-dd__name{flex:1 1 auto}
.th-dd__n{margin-left:10px;color:#b3a688;font-size:.88rem}
.th-dd--class .th-dd__opt .th-dd__name{text-shadow:none}
.th-roster__bar .th-roster__count{flex:none}
@media (max-width:1000px) and (min-width:761px){.th-roster__bar{flex-wrap:wrap}.th-roster__bar .th-search{max-width:none;flex-basis:100%}}
@media (max-width:760px){
  .th-roster__bar{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:10px}
  .th-roster__bar .th-search,.th-dd{flex:none;width:100%;max-width:100%}
  .th-dd__menu{width:100%;max-width:100%;max-height:min(360px,55vh)}
  .th-dd__opt{min-height:44px}
}
/* 4.2.16 Members: the bar is just search + class + profession across the full width; the count sits under it only while filtering, with Clear. */
.th-roster__bar{gap:14px}
.th-roster__bar .th-search{flex:1.7 1 0;max-width:none}
.th-roster__bar .th-dd{flex:1 1 0}
.th-roster__status{display:flex;align-items:center;gap:12px;margin:-2px 0 6px;padding:2px 0}
.th-roster__status[hidden]{display:none}
.th-roster__status .th-roster__count{margin:0;color:var(--dim);font-size:.92rem}
.th-roster__status .th-roster__count span{color:#f1e6cf}
.th-roster__clear{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px 4px 10px;border:0;border-radius:999px;cursor:pointer;color:#f3e4c2;font:400 .86rem/1 var(--caps,inherit);letter-spacing:.04em;
  background:rgba(8,14,26,.6);box-shadow:inset 0 0 0 1px rgba(255,221,153,.3);transition:box-shadow .2s,color .2s}
.th-roster__clear::before{content:"";width:10px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffdd99' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 2l8 8M10 2l-8 8'/%3E%3C/svg%3E") center/10px no-repeat}
.th-roster__clear:hover{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,221,153,.6)}
.th-roster__clear:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 14px rgba(255,214,120,.2)}
@media (max-width:1000px) and (min-width:761px){.th-roster__bar{flex-wrap:nowrap}.th-roster__bar .th-search{flex-basis:0}}
@media (max-width:760px){.th-roster__bar .th-search,.th-roster__bar .th-dd{flex:none}.th-roster__status{margin:2px 0 8px}.th-roster__clear{min-height:40px;padding:6px 14px 6px 12px}}
/* 4.2.16b the three controls are one centred group of equal width; the count + Clear row is centred under it. */
@media (min-width:761px){
  .th-roster__bar{justify-content:center}
  .th-roster__bar .th-search,.th-roster__bar .th-dd{flex:0 1 240px;max-width:240px}
}
.th-roster__status{justify-content:center;text-align:center}
/* 4.2.17 primary profession icons on member cards, icon in the skill badge and in the armory popup. */
.th-member__profs{display:flex;gap:5px;line-height:0}
.th-member__profs img,.th-pico{display:block;flex:none;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,221,153,.35),0 1px 3px rgba(0,0,0,.6)}
.th-member__profs img{width:20px;height:20px}
/* list cards: level on top, icons under it in the right column (card height unchanged) */
.th-member__btn{grid-template-areas:"face who lvl" "face who profs"}
.th-member__face{grid-area:face;grid-row:1 / span 2}
.th-member__who{grid-area:who;grid-row:1 / span 2}
.th-member__lvl{grid-area:lvl}
.th-member__profs{grid-area:profs;justify-content:flex-end}
.th-member__btn{row-gap:6px}
.th-member__profs + .th-member__lvl{align-self:end}
.th-member__profs{align-self:start}
.th-member__btn:not(:has(.th-member__profs)) .th-member__lvl{grid-row:1 / span 2}
/* Leadership cards: level sits top-right, so the icons mirror it top-left */
.th-member--lead .th-member__profs{position:absolute;top:12px;left:14px}
/* skill badge with its icon */
.th-member__prof{display:inline-flex;align-items:center;gap:5px}
.th-member__prof .th-pico{width:14px;height:14px;border-radius:3px;margin-left:-4px}
.th-member__prof.is-max .th-pico{box-shadow:0 0 0 1px rgba(29,18,4,.45)}
/* armory popup */
.th-char__prof li{display:inline-flex;align-items:center;gap:7px}
.th-char__prof .th-pico{width:18px;height:18px}
/* while a profession is picked the badge carries the icon, so the resting icons tuck away and names keep their room */
.th-roster.is-prof .th-member__profs{display:none}
.th-roster.is-prof .th-member__lvl{grid-row:1 / span 2;align-self:center}
/* popup: primaries on the first row, secondaries under them */
.th-char__profs{display:flex;flex-direction:column;gap:6px;flex:1 1 260px;min-width:0}
.th-char__profs .th-char__prof{flex:none}
/* a little more room for long names in the 4-up list cards */
.th-member:not(.th-member--lead):not(.th-member--big) .th-member__btn{column-gap:10px;padding-left:12px;padding-right:12px}
/* 4.2.19 regular cards: 18px icons and a hair less gap so long names fit next to them */
.th-member:not(.th-member--lead):not(.th-member--big) .th-member__btn{column-gap:8px}
.th-member:not(.th-member--lead) .th-member__profs{gap:3px}
.th-member:not(.th-member--lead) .th-member__profs img{width:18px;height:18px}
/* 4.2.20 recipes: clickable professions in the popup, the recipe panel, and the "Crafts:" tag on matching cards */
.th-char__prof li b{font-weight:inherit}
.th-char__pbtn{display:inline-flex;align-items:center;gap:7px;margin:-3px -8px;padding:3px 8px;border:0;border-radius:999px;background:none;color:inherit;font:inherit;cursor:pointer;transition:background .2s,box-shadow .2s}
.th-char__pbtn b{text-decoration:underline;text-decoration-color:rgba(255,221,153,.35);text-underline-offset:3px}
.th-char__pbtn:hover,.th-char__pbtn:focus-visible{outline:none;background:rgba(255,221,153,.08);box-shadow:inset 0 0 0 1px rgba(255,221,153,.3)}
.th-char__pbtn.is-on{background:rgba(255,214,120,.14);box-shadow:inset 0 0 0 1px rgba(255,221,153,.5)}
.th-char__rc{display:inline-flex;align-items:center;gap:3px;margin-left:2px;padding:0 6px;border-radius:999px;font:400 .72rem/1.6 var(--caps,inherit);font-style:normal;color:#f3e4c2;background:rgba(255,221,153,.1)}
.th-char__rc::after{content:"";width:8px;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd99' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/8px no-repeat;transition:transform .2s}
.th-char__pbtn.is-on .th-char__rc::after{transform:rotate(180deg)}
.th-recipes{margin-top:8px;padding:12px;border-radius:10px;background:rgba(18,13,8,.82);box-shadow:inset 0 0 0 1px rgba(255,221,153,.22)}
.th-recipes[hidden]{display:none}
.th-recipes__head{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#ffe6b0;font:400 .95rem/1.2 var(--head,inherit)}
.th-recipes__head b{font-weight:400}
.th-recipes__n{margin-left:auto;color:var(--faint);font:400 .8rem/1 var(--caps,inherit)}
.th-recipes__q{display:block;width:100%;box-sizing:border-box;min-height:36px;margin-bottom:8px;padding:6px 12px 6px 34px;border:0;border-radius:7px;color:#fff;font:inherit;font-size:16px;
  background:rgba(8,14,26,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd99' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") 11px 50%/15px no-repeat;box-shadow:inset 0 0 0 1px rgba(255,221,153,.24)}
.th-recipes__q:focus{outline:none;box-shadow:inset 0 0 0 1px var(--gold-hi),0 0 14px rgba(255,214,120,.14)}
.th-recipes__q::placeholder{color:var(--faint)}
.th-recipes__list{columns:2 200px;column-gap:18px;max-height:200px;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0 4px 0 0;list-style:none;font-size:.88rem;color:#e9dfc8;scrollbar-width:thin;scrollbar-color:rgba(255,221,153,.35) transparent}
.th-recipes__list li{break-inside:avoid;padding:3px 0 3px 12px;position:relative}
.th-recipes__list li::before{content:"";position:absolute;left:0;top:.75em;width:4px;height:4px;border-radius:50%;background:rgba(255,221,153,.55)}
.th-recipes__list li[hidden]{display:none}
.th-recipes__none{margin:4px 0 0;color:var(--faint);font-size:.88rem}
.th-recipes__none[hidden]{display:none}
.th-member__craft{display:block;max-width:100%;margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#ffe2a6;font:400 .76rem/1.4 var(--caps,inherit);letter-spacing:.03em}
.th-member--lead .th-member__craft{text-align:center}
@media (max-width:760px){.th-recipes__list{columns:1;max-height:220px}}
.th-char__facts{align-items:flex-start}
.th-roster__bar .th-search input{padding-left:38px;padding-right:8px;background-position:13px 50%}.th-roster__bar .th-search input::placeholder{font-size:15px}
