/* Waystone 2026 — playful stone-and-lilac visual language */
:root{
  --bg:#100d17;
  --bg-deep:#09070e;
  --panel:#211a2b;
  --panel-2:#2a2037;
  --panel-3:#18131f;
  --text:#f8f2ff;
  --muted:#c3b8cd;
  --dim:#92859f;
  --accent:#b880cc;
  --accent-bright:#e9cfff;
  --accent-deep:#76508b;
  --stone:#73859c;
  --stone-light:#aebed0;
  --line:#5d486b;
  --block-shadow:#08060d;
  --max:1240px;
}

html{scroll-padding-top:82px}
body{
  min-height:100vh;
  background-color:var(--bg);
  background-image:
    linear-gradient(145deg,rgba(16,13,23,.16),rgba(9,7,14,.24)),
    url('/assets/bg.png?v=20261016-1');
  background-position:0 0,0 0;
  background-size:auto,64px 64px;
  background-repeat:no-repeat,repeat;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 18%,rgba(184,128,204,.08),transparent 25rem),
    radial-gradient(circle at 88% 72%,rgba(102,126,155,.065),transparent 28rem);
}

/* Chunkier shared shapes */
.surface,.event-card,.news-card,.status-bar,.hero-about,.count-card,.form-stack,
.calendar-event,.news-latest-mark,.event-detail-heading>time,.event-attendee-list a,
.stats-player img,.player-avatar,.profile-avatar,.account-avatar,dialog{
  border-radius:3px;
}
.surface,.event-card,.news-card,.event-home-empty{
  border:2px solid var(--line);
  background:
    linear-gradient(135deg,rgba(255,255,255,.035),transparent 42%),
    var(--panel);
  box-shadow:6px 6px 0 var(--block-shadow),inset 0 1px rgba(255,255,255,.045);
}
.surface:hover,.event-card:hover,.news-card:hover,.news-archive-card:hover{
  border-color:#9270a3;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:9px;
  color:#c8a4dc;
  font-size:10px;
  letter-spacing:.18em;
}
.eyebrow:before{
  content:"";
  width:8px;
  height:8px;
  flex:none;
  background:var(--accent);
  box-shadow:3px 3px 0 #4a3459;
  transform:rotate(45deg);
}

/* Header: a compact game-style toolbar */
.site-header{
  height:78px;
  background:rgba(15,11,21,.96);
  border-bottom:2px solid #4d3b59;
  box-shadow:0 5px 0 rgba(5,4,8,.72);
  backdrop-filter:blur(12px);
}
.header-inner{gap:27px}
.site-header .brand{gap:12px;font-size:21px;letter-spacing:.02em}
.site-header .brand img{width:48px;height:56px;filter:drop-shadow(3px 4px 0 #050408)}
.site-header .brand span{font-size:32px;text-shadow:3px 3px 0 #07050b}
.desktop-nav{gap:6px;padding:5px;border:1px solid #3f3149;background:#0b0910;box-shadow:3px 3px 0 #050408}
.desktop-nav a{
  height:36px;
  padding:0 12px;
  color:#b7aebe;
  font-size:12px;
  font-weight:750;
}
.desktop-nav a:hover{background:#201827;color:#fff}
.desktop-nav .active{
  color:#1a1020;
  background:linear-gradient(180deg,#dfb8ef,#b880cc);
  box-shadow:inset 0 -3px #825895,2px 2px 0 #050408;
}
.desktop-nav .active:after{display:none}
.button{
  border-width:2px;
  border-radius:3px;
  box-shadow:4px 4px 0 var(--block-shadow),inset 0 1px rgba(255,255,255,.16);
  transition:transform .14s,box-shadow .14s,background .14s,border-color .14s;
}
.button:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 var(--block-shadow)}
.button:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--block-shadow)}
.button-gold{
  border-color:#e3c4ef;
  background:linear-gradient(180deg,#d9b2e9,#ad71c2);
  box-shadow:4px 4px 0 #3a2744,inset 0 1px #f7eaff;
}
.button-outline{border-color:#687a90;background:#17131e;color:#f6effb}
.account-menu-trigger{box-shadow:4px 4px 0 #382640!important}
.account-dropdown{
  border:2px solid var(--line);
  border-radius:3px;
  background:#1d1726;
  box-shadow:7px 7px 0 #07050b;
}

/* Home hero: image window + layered information blocks */
.home-page .hero{
  min-height:830px;
  align-items:stretch;
  border-bottom:0;
  background:
    radial-gradient(circle at 24% 32%,rgba(184,128,204,.09),transparent 28rem),
    linear-gradient(180deg,rgba(18,14,25,.25),rgba(9,7,14,.42));
}
.home-page .hero:after{
  display:none;
}
.home-page .hero-image{
  inset:0;
  border:0;
  background-image:
    linear-gradient(90deg,rgba(10,7,14,.9) 0%,rgba(10,7,14,.72) 34%,rgba(10,7,14,.22) 65%,rgba(10,7,14,.06) 100%),
    linear-gradient(0deg,rgba(10,7,14,.94) 0%,rgba(10,7,14,.63) 22%,transparent 52%),
    url('assets/waystone-hero.png?v=20261006-2');
  background-position:center 48%;
  box-shadow:none;
  clip-path:none;
}
.home-page .hero-content{
  justify-content:flex-start;
  padding-block:72px 54px;
}
.home-page .hero-content>.hero-eyebrow,
.home-page .hero-content>h1,
.home-page .hero-content>.hero-lead,
.home-page .hero-content>.hero-copy,
.home-page .hero-content>.button-row,
.home-page .hero-content>.server-address{position:relative;width:min(570px,47%);z-index:2}
.home-page .hero-content>h1{
  margin:6px 0 21px;
  color:#fff8ff;
  font-size:clamp(52px,5.6vw,78px);
  letter-spacing:-.07em;
  line-height:.98;
  text-shadow:5px 5px 0 #0a0710;
}
.home-page .hero h1 em{
  color:#ddafea;
  text-shadow:5px 5px 0 #0a0710;
}
.home-page .hero-lead{font-size:clamp(19px,1.7vw,25px);line-height:1.35}
.home-page .hero-copy{color:#d7cedd}
.copy-address{
  border:2px solid #776489;
  border-radius:3px;
  background:#15101d;
  box-shadow:4px 4px 0 #07050b;
}
.home-page .hero-about{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(300px,.8fr) minmax(540px,1.3fr);
  margin-top:42px;
  border:2px solid #675174;
  border-radius:3px;
  background:#1d1726;
  box-shadow:8px 8px 0 #07050b;
  backdrop-filter:none;
}
.home-page .hero-about>header{padding:18px 21px;border-right:2px solid #4e3d59}
.home-page .hero-about h2{font-size:24px}
.home-page .hero-values article{border-right:2px solid #4e3d59;background:#18131f}
.home-page .hero-values article:nth-child(2){background:#211829}
.home-page .hero-values article>span{color:#d5a7e5}
.home-page .hero-status{position:relative;z-index:2;margin-top:18px}
.home-page .hero-status .status-bar{
  border:2px solid #59697d;
  border-radius:3px;
  background:#15151e;
  box-shadow:6px 6px 0 #07050b;
}

/* Content sections resemble stacked world regions */
.section{position:relative;padding:78px 0 84px;border:0}
.section:nth-of-type(even){background:rgba(9,7,14,.44)}
.section-heading h2,.rules-strip h2,.join-section h2,
.community-main h1,.community-main h2{
  text-shadow:3px 3px 0 #09070e;
}
.line-heading{padding-bottom:17px;border-bottom:2px dashed #554261}
.line-heading>a{
  padding:9px 12px;
  border:1px solid #665075;
  background:#18121f;
  box-shadow:3px 3px 0 #07050b;
}
.event-grid,.news-grid{gap:22px}
.event-card{min-height:128px;padding:20px}
.event-card:hover,.news-card:hover{transform:translate(-2px,-3px);box-shadow:9px 10px 0 #07050b}
.date{
  border:2px solid #7d688c;
  border-radius:2px;
  background:#130f19;
  box-shadow:3px 3px 0 #09070e;
}
.news-card{overflow:hidden}
.news-card img{filter:saturate(.82) contrast(1.05)}
.news-body{border-top:2px solid var(--line)}

.join-section{
  margin:18px 0 0;
  padding:105px 20px;
  border-block:2px solid #665075;
}
.join-section:before{filter:saturate(.72) contrast(1.06)}
.join-section:after{
  background:
    linear-gradient(90deg,rgba(12,8,17,.9),rgba(30,20,37,.6),rgba(12,8,17,.9)),
    linear-gradient(0deg,#100d17,transparent 35%,transparent 70%,#100d17);
}
.join-inner:before{
  content:"";
  position:absolute;
  inset:32px max(20px,calc((100% - 900px)/2));
  z-index:-1;
  border:2px solid #88699a;
  box-shadow:8px 8px 0 #07050b;
  clip-path:polygon(0 15px,15px 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%);
}
.rules-strip{padding:52px 0;border-bottom:2px solid #4b3a56;background:#17121e}
.site-footer{padding:45px 0;background:#09070e;border-top:2px solid #3f3049}
.site-footer .brand span{font-family:"Waystone Norse",serif;font-size:28px;letter-spacing:.03em}

/* Interior pages */
.community-main{min-height:calc(100vh - 290px)}
.auth-section,.directory-section,.profile-section,.admin-section,
.events-page,.news-page,.stats-page{padding-block:64px 110px}
.community-main>.wrap>header:first-child,.events-hero,.news-hero,.stats-hero,.profile-hero,.admin-hero{
  position:relative;
  overflow:hidden;
  border:2px solid #6a5278;
  border-radius:3px;
  background:
    linear-gradient(135deg,transparent 68%,rgba(184,128,204,.13)),
    #211a2b;
  box-shadow:8px 8px 0 #07050b;
}
.community-main>.wrap>header:first-child:after,.events-hero:after,.news-hero:after,.stats-hero:after,.profile-hero:after,.admin-hero:after{
  content:"";
  position:absolute;
  top:-40px;
  right:-26px;
  width:150px;
  height:150px;
  border:22px solid rgba(184,128,204,.075);
  transform:rotate(45deg);
  pointer-events:none;
}
.form-stack input,.form-stack textarea,.player-search input,
.editor-form input,.editor-form select,.editor-form textarea,.admin-event-actions select{
  border:2px solid #554565;
  border-radius:2px;
  background:#0e0b13;
  box-shadow:inset 3px 3px 0 #07050b;
}
.form-stack input:focus,.form-stack textarea:focus,.player-search input:focus,
.editor-form input:focus,.editor-form select:focus,.editor-form textarea:focus{
  border-color:#c18bd4;
  box-shadow:inset 3px 3px 0 #07050b,0 0 0 2px #b880cc22;
}
.player-grid{gap:20px}
.player-card{box-shadow:5px 5px 0 #07050b}
.player-card:hover{border-color:#9972aa;transform:translate(-2px,-2px);box-shadow:8px 8px 0 #07050b}
.player-avatar,.profile-avatar,.stats-player img,.account-avatar{border-radius:2px;image-rendering:pixelated}
.count-card{border-width:2px;box-shadow:4px 4px 0 #07050b}
.tab-links{border-bottom:2px solid #4d3b59}
.tab-links a[aria-current=page]{border-bottom:4px solid var(--accent)}
.wiki-nav,.editor-accordion,.calendar-toolbar nav a,.rsvp-options button,
.remember-login-option,.content-list-item,.template-library article{
  border-radius:2px;
}
.calendar-day{background:#15101c}
.calendar-day.is-outside{background:#0b0910}
.calendar-event{border-radius:1px}
.stats-time>i,.xp-track{height:7px;border-radius:1px;border:1px solid #31263a}
.stats-time>i span,.xp-track span{border-radius:0}
.map-frame-shell{border-top:2px solid #4d3b59}

@media(max-width:1050px){
  .desktop-nav a{padding-inline:8px}
  .home-page .hero-content>.hero-eyebrow,.home-page .hero-content>h1,
  .home-page .hero-content>.hero-lead,.home-page .hero-content>.hero-copy,
  .home-page .hero-content>.button-row,.home-page .hero-content>.server-address{width:min(520px,50%)}
}

@media(max-width:900px){
  .site-header{height:68px}
  .home-page .hero{min-height:auto}
  .home-page .hero-image{
    inset:0;
    border:0;
    box-shadow:none;
    clip-path:none;
    background-image:
      linear-gradient(90deg,rgba(12,9,17,.91),rgba(12,9,17,.53)),
      linear-gradient(0deg,#100d17,transparent 55%),
      url('assets/waystone-hero.png?v=20261006-2');
  }
  .home-page .hero-content{padding-block:62px 55px}
  .home-page .hero-content>.hero-eyebrow,.home-page .hero-content>h1,
  .home-page .hero-content>.hero-lead,.home-page .hero-content>.hero-copy,
  .home-page .hero-content>.button-row,.home-page .hero-content>.server-address{width:100%;max-width:620px}
  .home-page .hero-about{grid-template-columns:1fr;margin-top:38px}
  .home-page .hero-about>header{border-right:0;border-bottom:2px solid #4e3d59}
}

@media(max-width:760px){
  html{scroll-padding-top:68px}
  .site-header{height:68px}
  .site-header .brand img{width:42px;height:48px}
  .site-header .brand span{font-size:28px}
  .menu-toggle{border:2px solid #5b4868;border-radius:2px;background:#1c1624;box-shadow:3px 3px 0 #07050b}
  .mobile-nav{top:68px;border-bottom:2px solid #5b4868;background:#120e19;box-shadow:0 7px 0 #07050b}
  .mobile-nav a[aria-current=page]{padding-left:12px;background:#b880cc1c;border-left:4px solid var(--accent)}
  .home-page .hero h1{font-size:clamp(44px,12vw,66px)}
  .section{padding:62px 0 70px}
  .surface,.event-card,.news-card,.event-home-empty{box-shadow:4px 4px 0 var(--block-shadow)}
}

@media(max-width:520px){
  .wrap{width:calc(100% - 30px)}
  .home-page .hero-content{padding-top:48px}
  .home-page .hero-content>h1{text-shadow:3px 3px 0 #09070e}
  .home-page .hero h1 em{text-shadow:3px 3px 0 #0a0710}
  .home-page .hero-about{box-shadow:5px 5px 0 #07050b}
  .home-page .hero-values{grid-template-columns:1fr}
  .home-page .hero-values article{flex-direction:row;align-items:center;border-right:0;border-bottom:2px solid #4e3d59;padding:13px 16px}
  .home-page .hero-values article:last-child{border-bottom:0}
  .home-page .hero-values small{white-space:normal}
  .line-heading{display:flex;align-items:flex-start;flex-direction:column;gap:15px}
  .join-inner:before{inset:24px 10px}
  .community-main>.wrap>header:first-child,.events-hero,.news-hero,.stats-hero,.profile-hero,.admin-hero{box-shadow:5px 5px 0 #07050b}
}

@media(prefers-reduced-motion:reduce){
  .button,.event-card,.news-card,.player-card{transition:none}
}

/* Mockup direction: framed game site, flat colour blocks and display type */
body{
  background-color:#08070b;
  background-image:
    linear-gradient(145deg,rgba(8,6,13,.74),rgba(8,6,13,.82)),
    url('/assets/bg.png?v=20261016-1');
  background-size:auto,64px 64px;
  background-position:0 0,0 0;
  background-repeat:no-repeat,repeat;
}
body:before{display:none}

.site-header{
  height:88px;
  padding-top:16px;
  background:linear-gradient(#08070be8,#08070bb8);
  border:0;
  box-shadow:none;
  backdrop-filter:blur(8px);
}
.header-inner{
  height:58px;
  padding:0 16px;
  border:1px solid #604b6e;
  background:#17101d;
  box-shadow:0 5px 0 #33253d;
}
.site-header .brand{min-width:64px}
.site-header .brand img{width:45px;height:52px;filter:drop-shadow(3px 3px 0 #050408)}
.site-header .brand span{display:none}
.desktop-nav{
  align-self:stretch;
  align-items:center;
  gap:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.desktop-nav a{
  height:40px;
  padding:0 13px;
  font-family:"Waystone Norse",Manrope,sans-serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.desktop-nav a:hover{background:#281c30}
.desktop-nav .active{
  background:#d2b5e7;
  box-shadow:inset 0 -5px #9a78ae;
}
.header-actions .button{font-family:"Waystone Norse",Manrope,sans-serif;font-size:17px;letter-spacing:.025em}
.account-menu-trigger .account-name{font-family:Manrope,sans-serif;font-size:12px;letter-spacing:0;text-transform:none}

.home-page .hero{
  width:min(var(--max),calc(100% - 80px));
  min-height:800px;
  margin:30px auto 56px;
  border:2px solid #6a5078;
  background:#17101d;
  box-shadow:0 10px 0 #3c2a47;
}
.home-page .hero-image{
  background-image:
    linear-gradient(90deg,rgba(12,8,16,.91) 0%,rgba(12,8,16,.67) 35%,rgba(12,8,16,.18) 67%,rgba(12,8,16,.04) 100%),
    linear-gradient(0deg,rgba(12,8,16,.96) 0%,rgba(12,8,16,.56) 23%,transparent 52%),
    url('assets/waystone-hero.png?v=20261006-2');
}
.home-page .hero-content{
  width:100%;
  padding:62px 46px 48px;
}
.home-page .hero-content>.hero-eyebrow,
.home-page .hero-content>h1,
.home-page .hero-content>.hero-lead,
.home-page .hero-content>.hero-copy,
.home-page .hero-content>.button-row,
.home-page .hero-content>.server-address{width:min(650px,60%)}
.home-page .hero-content>h1{
  max-width:650px;
  margin:8px 0 25px;
  font-family:"Waystone Norse",Manrope,sans-serif;
  font-size:clamp(66px,6.1vw,94px);
  font-weight:700;
  letter-spacing:.015em;
  line-height:.82;
  text-transform:uppercase;
  text-shadow:5px 5px 0 #100b15;
}
.home-page .hero h1 em{color:#d6b4e8;text-shadow:5px 5px 0 #100b15}
.home-page .hero-lead{max-width:620px;font-size:22px}
.home-page .hero-copy{max-width:540px}
.button{box-shadow:0 5px 0 var(--block-shadow);border-radius:1px}
.button:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--block-shadow)}
.button:active{transform:translateY(4px);box-shadow:0 1px 0 var(--block-shadow)}
.button-gold{box-shadow:0 5px 0 #704f80,inset 0 1px #f7eaff}
.button-gold:hover{box-shadow:0 7px 0 #704f80}
.copy-address{box-shadow:0 4px 0 #07050b}

.home-page .hero-about{
  margin-top:38px;
  border:2px solid #e1c8f0;
  background:#cdb3e2;
  box-shadow:0 8px 0 #725985;
  color:#170f1d;
}
.home-page .hero-about>header{border-color:#9e7eb2;background:#d7bee8}
.home-page .hero-about .eyebrow{color:#563d66}
.home-page .hero-about .eyebrow:before{background:#684779;box-shadow:3px 3px 0 #aa8ebc}
.home-page .hero-about>header>p{color:#403047}
.home-page .hero-values article,.home-page .hero-values article:nth-child(2){border-color:#9e7eb2;background:#cdb3e2}
.home-page .hero-values article>span{color:#543563}
.home-page .hero-values small{color:#4f3d57}
.home-page .hero-status{margin-top:24px}
.home-page .hero-status .status-bar{box-shadow:0 6px 0 #07050b}

.section{padding:26px 0 42px;background:transparent!important}
.section>.wrap{
  padding:42px 44px 48px;
  border:1px solid #493653;
  background:#160f1b;
  box-shadow:0 8px 0 #08060b;
}
.section h2,.rules-strip h2,.join-section h2,.community-main h1,.community-main h2{
  font-family:"Waystone Norse",Manrope,sans-serif;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.section h2{font-size:clamp(36px,3.6vw,52px)}
.line-heading{border-bottom:2px solid #493653}
.event-card,.news-card,.surface,.event-home-empty{
  border-radius:2px;
  box-shadow:0 6px 0 #08060b;
}
.event-card:hover,.news-card:hover,.news-archive-card:hover{
  transform:translateY(-3px);
  box-shadow:0 9px 0 #08060b;
}
.join-section{
  width:min(var(--max),calc(100% - 80px));
  margin:26px auto 0;
  border:2px solid #5d466a;
  box-shadow:0 9px 0 #08060b;
}
.rules-strip{width:min(var(--max),calc(100% - 80px));margin:34px auto 55px;border:1px solid #493653;box-shadow:0 7px 0 #08060b}
.site-footer{border-top:1px solid #3f3049}

.community-main>section.wrap,.community-main>.wrap{
  border-left:1px solid rgba(93,72,107,.2);
  border-right:1px solid rgba(93,72,107,.2);
}
.events-hero,.news-hero,.stats-hero,.profile-hero,.admin-hero,
.community-main>.wrap>header:first-child{box-shadow:0 8px 0 #08060b}

@media(max-width:1050px){
  .desktop-nav a{padding-inline:9px;font-size:18px}
  .home-page .hero-content>.hero-eyebrow,.home-page .hero-content>h1,
  .home-page .hero-content>.hero-lead,.home-page .hero-content>.hero-copy,
  .home-page .hero-content>.button-row,.home-page .hero-content>.server-address{width:min(590px,64%)}
}

@media(max-width:900px){
  .home-page .hero{width:min(var(--max),calc(100% - 48px));margin-top:24px}
  .home-page .hero-content{padding:55px 30px 40px}
  .home-page .hero-content>.hero-eyebrow,.home-page .hero-content>h1,
  .home-page .hero-content>.hero-lead,.home-page .hero-content>.hero-copy,
  .home-page .hero-content>.button-row,.home-page .hero-content>.server-address{width:100%}
  .section>.wrap{padding:34px 28px 40px}
  .join-section,.rules-strip{width:min(var(--max),calc(100% - 48px))}
}

@media(max-width:760px){
  .site-header{height:78px;padding-top:10px}
  .header-inner{height:58px}
  .site-header .brand span{display:none}
  .mobile-nav{top:68px}
  .home-page .hero{width:calc(100% - 30px);margin:20px auto 40px}
  .home-page .hero-content{padding:45px 20px 32px}
  .home-page .hero-content>h1{font-size:clamp(54px,16vw,76px);line-height:.85}
  .home-page .hero-about{margin-top:32px}
  .section{padding-block:18px 30px}
  .section>.wrap{width:calc(100% - 30px);padding:28px 20px 34px}
  .join-section,.rules-strip{width:calc(100% - 30px)}
}

/* Complete home page system */
.home-page main{padding-bottom:34px}
.home-page .section{padding:22px 0 30px}
.home-page .section>.wrap{
  position:relative;
  overflow:hidden;
  padding:40px 44px 46px;
}
.home-page .section>.wrap:after{
  position:absolute;
  right:25px;
  bottom:-36px;
  z-index:0;
  color:rgba(255,255,255,.035);
  font-family:"Waystone Norse",sans-serif;
  font-size:190px;
  line-height:1;
  pointer-events:none;
}
.home-page .section>.wrap>*{position:relative;z-index:1}
.home-page .events>.wrap{
  border:2px solid #694d77;
  background:#1c1322;
  box-shadow:0 9px 0 #09060c;
  color:#f7effb;
}
.home-page .events>.wrap:after{content:"01";color:rgba(208,169,226,.035)}
.home-page .events .eyebrow{color:#c69ed8}
.home-page .events .eyebrow:before{background:#b880cc;box-shadow:3px 3px 0 #4b3356}
.home-page .events .line-heading{border-color:#533b60}
.home-page .events .line-heading>a{
  border:2px solid #7b5b89;
  background:#2a1d31;
  box-shadow:0 5px 0 #0a070d;
  color:#dcb8ec;
}
.home-page .event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-page .event-grid:has(>:only-child){grid-template-columns:1fr}
.home-page .event-card{
  min-height:142px;
  border:2px solid #5a4166;
  background:#25192c;
  box-shadow:0 6px 0 #0a070d;
  color:#f9f0ff;
}
.home-page .event-grid>.event-card:only-child{
  display:grid;
  grid-template-columns:86px minmax(0,1fr) auto;
  max-width:none;
  min-height:170px;
  padding:27px 30px;
}
.home-page .event-grid>.event-card:only-child .date{width:78px;height:96px}
.home-page .event-grid>.event-card:only-child h3{font-size:23px}
.home-page .event-grid>.event-card:only-child p{max-width:720px;font-size:14px}
.home-page .event-card:hover{border-color:#9670a7;box-shadow:0 9px 0 #0a070d}
.home-page .events .event-home-empty{border-color:#60466e;background:#201626;color:#fff}

.home-page .news>.wrap{
  border:2px solid #5e466b;
  background:#19111f;
  box-shadow:0 9px 0 #08060b;
}
.home-page .news>.wrap:after{content:"02"}
.home-page .news-grid{gap:22px}
.home-page .news-grid:has(>:only-child){grid-template-columns:1fr}
.home-page .news-grid>.news-card:only-child{
  display:grid;
  grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);
  min-height:300px;
}
.home-page .news-grid>.news-card:only-child>img,
.home-page .news-grid>.news-card:only-child>.news-card-placeholder{width:100%;height:100%;min-height:300px}
.home-page .news-grid>.news-card:only-child .news-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:36px 40px;
  border-top:0;
  border-left:2px solid var(--line);
}
.home-page .news-grid>.news-card:only-child h3{font-family:"Waystone Norse",sans-serif;font-size:34px;letter-spacing:.025em;text-transform:uppercase}
.home-page .news-grid>.news-card:only-child p{max-width:620px;font-size:14px}
.home-page .news-grid>.news-card:only-child .news-read-more{font-size:11px}

.home-page .join-section{
  padding:75px 35px 80px;
  border:2px solid #e1c8f0;
  background:#cdb3e2;
  box-shadow:0 10px 0 #725985;
  color:#170f1d;
}
.home-page .join-section:before,.home-page .join-section:after,.home-page .join-inner:before{display:none}
.home-page .join-section .eyebrow{color:#563d66}
.home-page .join-section .eyebrow:before{background:#684779;box-shadow:3px 3px 0 #a98ab9}
.home-page .join-section h2{font-size:clamp(48px,5vw,72px);line-height:.92;text-shadow:none}
.home-page .join-section p:not(.eyebrow):not(.join-tip){font-size:21px}
.home-page .join-section .button-outline{
  border-color:#35243e;
  background:#1b1221;
  color:#fff;
}
.home-page .join-section .button-gold{
  border-color:#5b4068;
  background:#f1dffd;
  box-shadow:0 5px 0 #80608f;
}
.home-page .join-tip{color:#493750}
.home-page .join-tip strong{color:#27172e}

.home-page .rules-strip{
  padding:38px 44px;
  border:2px solid #594365;
  background:#19111f;
  box-shadow:0 8px 0 #08060b;
}
.home-page .rules-strip .wrap{width:100%}
.home-page .rules-strip h2{font-size:35px}
.home-page .rules-strip p:last-child{font-size:13px}
.home-page .site-footer{
  width:min(var(--max),calc(100% - 80px));
  margin:0 auto;
  padding:34px 38px;
  border:1px solid #493653;
  background:#110c16;
  box-shadow:0 7px 0 #050407;
}
.home-page .site-footer .wrap{width:100%}

/* One consistent lower edge on every large home-page panel */
.home-page .events>.wrap,
.home-page .news>.wrap,
.home-page .join-section,
.home-page .rules-strip,
.home-page .site-footer{
  box-shadow:0 10px 0 #3c2a47;
}

@media(max-width:900px){
  .home-page .event-grid{grid-template-columns:1fr}
  .home-page .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-page .news-grid>.news-card:only-child{grid-template-columns:1fr}
  .home-page .news-grid>.news-card:only-child>img,
  .home-page .news-grid>.news-card:only-child>.news-card-placeholder{height:260px;min-height:0}
  .home-page .news-grid>.news-card:only-child .news-body{border-top:2px solid var(--line);border-left:0}
  .home-page .site-footer{width:min(var(--max),calc(100% - 48px))}
}

@media(max-width:620px){
  .home-page .section>.wrap{padding:28px 20px 34px}
  .home-page .section>.wrap:after{font-size:120px}
  .home-page .event-grid>.event-card:only-child{display:flex;min-height:0;padding:20px}
  .home-page .event-grid>.event-card:only-child .date{width:60px;height:72px}
  .home-page .event-grid>.event-card:only-child h3{font-size:17px}
  .home-page .news-grid{grid-template-columns:1fr}
  .home-page .news-grid>.news-card:only-child .news-body{padding:25px 22px}
  .home-page .news-grid>.news-card:only-child h3{font-size:27px}
  .home-page .join-section{padding:58px 20px 64px}
  .home-page .rules-strip{padding:30px 20px}
  .home-page .site-footer{width:calc(100% - 30px);padding:28px 20px}
}

/* Interior pages — the same framed Waystone language as the home page */
body:not(.home-page) .community-main{padding-bottom:42px}
body:not(.home-page) .community-main>section.wrap{width:min(var(--max),calc(100% - 80px))}
body:not(.home-page) .community-main h1,
body:not(.home-page) .community-main h2,
body:not(.home-page) .community-main h3{
  font-family:"Waystone Norse",Manrope,sans-serif;
  letter-spacing:.025em;
  text-transform:uppercase;
}
body:not(.home-page) .community-main h1{
  font-size:clamp(52px,5.5vw,78px);
  line-height:.88;
  letter-spacing:.015em;
  text-shadow:4px 4px 0 #08060b;
}
body:not(.home-page) .page-lead{max-width:720px;color:#d2c5d9;font-size:15px;line-height:1.65}

/* Crisp frames and a shared purple lower edge */
body:not(.home-page) .surface{
  border:2px solid #5b4268;
  border-radius:1px;
  background:#1c1423;
  box-shadow:0 8px 0 #3c2a47;
}
body:not(.home-page) .surface:hover{border-color:#7e5d8d}
body:not(.home-page) .events-hero,
body:not(.home-page) .news-hero,
body:not(.home-page) .stats-hero,
body:not(.home-page) .wiki-hero,
body:not(.home-page) .profile-hero,
body:not(.home-page) .admin-hero,
body:not(.home-page) .directory-hero,
body:not(.home-page) .auth-hero{
  position:relative;
  overflow:hidden;
  min-height:220px;
  padding:38px 40px;
  border-color:#795989;
  background:
    linear-gradient(90deg,#211629 0%,#1a121f 62%,#25172d 100%);
  box-shadow:0 10px 0 #3c2a47!important;
}
body:not(.home-page) .events-hero:after,
body:not(.home-page) .news-hero:after,
body:not(.home-page) .stats-hero:after,
body:not(.home-page) .wiki-hero:after,
body:not(.home-page) .profile-hero:after,
body:not(.home-page) .admin-hero:after,
body:not(.home-page) .directory-hero:after,
body:not(.home-page) .auth-hero:after{
  content:"W";
  position:absolute;
  right:28px;
  bottom:-54px;
  color:rgba(216,179,232,.055);
  font-family:"Waystone Norse",sans-serif;
  font-size:220px;
  line-height:1;
  pointer-events:none;
}
body:not(.home-page) .events-hero>*,
body:not(.home-page) .news-hero>*,
body:not(.home-page) .stats-hero>*,
body:not(.home-page) .wiki-hero>*,
body:not(.home-page) .profile-hero>*,
body:not(.home-page) .admin-hero>*,
body:not(.home-page) .directory-hero>*,
body:not(.home-page) .auth-hero>*{position:relative;z-index:1}

/* Shared controls */
body:not(.home-page) input,
body:not(.home-page) textarea,
body:not(.home-page) select{
  border:2px solid #4e3b59!important;
  border-radius:1px!important;
  background:#0f0b14!important;
  color:#f8f2ff!important;
  box-shadow:inset 0 2px 0 #08060b;
}
body:not(.home-page) input:focus,
body:not(.home-page) textarea:focus,
body:not(.home-page) select:focus{
  border-color:#b880cc!important;
  box-shadow:0 0 0 2px rgba(184,128,204,.18),inset 0 2px 0 #08060b!important;
}
body:not(.home-page) .tab-links{gap:6px;border-bottom:2px solid #493653}
body:not(.home-page) .tab-links a{padding:11px 15px;border:0;color:#bfb0c7}
body:not(.home-page) .tab-links a[aria-current=page]{border:0;background:#c9a7dc;color:#170f1d;box-shadow:0 4px 0 #70517e}
body:not(.home-page) .notice{border-radius:1px;box-shadow:0 5px 0 #08060b}

/* Players */
.page-players .directory-section{padding-block:46px 90px}
.directory-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:34px;margin-bottom:24px}
.directory-hero .page-lead{margin:0}
.directory-hero .count-card{
  position:relative;
  z-index:1;
  min-width:142px;
  border:2px solid #8a6899;
  border-radius:1px;
  background:#130e18;
  box-shadow:0 5px 0 #08060b;
}
.page-players .online-summary{margin:0 0 24px;padding:17px 20px;box-shadow:0 8px 0 #3c2a47!important}
.page-players .player-search{
  padding:19px 20px;
  margin-bottom:46px;
  border:2px solid #5b4268;
  background:#15101a;
  box-shadow:0 8px 0 #3c2a47;
}
.page-players .player-search label{color:#c9a7dc;text-transform:uppercase;letter-spacing:.12em}
.page-players .player-group{padding:28px 30px 34px;border:1px solid #493653;background:#160f1b;box-shadow:0 8px 0 #3c2a47}
.page-players .player-directory{gap:34px}
.page-players .player-group-heading>span{border-radius:1px;background:#24192b;box-shadow:0 4px 0 #08060b}
.page-players .player-card{min-height:104px;padding:18px;border-width:2px;box-shadow:0 6px 0 #08060b}
.page-players .player-card:hover{transform:translateY(-3px);box-shadow:0 9px 0 #08060b}
.page-players .player-avatar,.page-profile .profile-avatar{border-radius:1px;box-shadow:3px 3px 0 #08060b}
.page-players .role-badge,.page-profile .role-badge{border-radius:1px}
.page-players .player-avatar{
  flex:0 0 58px;
  width:58px;
  height:58px;
  aspect-ratio:1;
  object-fit:cover;
}

/* Statistics */
.page-stats .stats-page{padding-block:46px 90px}
.page-stats .stats-summary{gap:16px;margin:24px 0}
.page-stats .stats-summary article{min-height:122px;padding:23px 25px;border-color:#574062}
.page-stats .stats-summary strong{font-family:"Waystone Norse",sans-serif;font-size:30px}
.page-stats .stats-board{box-shadow:0 10px 0 #3c2a47}
.page-stats .stats-board>header{background:#24182b;border-bottom:2px solid #5b4268}
.page-stats .stats-table-head{background:#110c16;border-bottom:2px solid #493653}
.page-stats .stats-row{background:#1a1220}
.page-stats .stats-row:nth-child(even){background:#17101c}
.page-stats .stats-row:hover{background:#281b30}
.page-stats .stats-coming{margin-top:24px;padding:28px}

/* Events */
.page-events .events-page{padding-block:46px 90px}
.page-events .events-layout{gap:22px;margin-top:24px}
.page-events .event-calendar,.page-events .upcoming-events,.page-events .event-detail{box-shadow:0 9px 0 #3c2a47}
.page-events .calendar-toolbar,.page-events .upcoming-events>header{background:#24182b;border-bottom:2px solid #5b4268}
.page-events .calendar-toolbar nav a{border-radius:1px;background:#130e18;box-shadow:0 3px 0 #08060b}
.page-events .calendar-day{background:#17101d}
.page-events .calendar-day.is-outside{background:#0e0a12}
.page-events .calendar-event{border-radius:1px;background:#34203e}
.page-events .upcoming-event.is-selected{background:#302039;box-shadow:inset 4px 0 #b880cc}
.page-events .event-detail-main{background:#1c1423}
.page-events .event-rsvp{background:#130e18}
.page-events .rsvp-options button{border-radius:1px;background:#1d1423;box-shadow:0 4px 0 #08060b}

/* News */
.page-news .news-page{padding-block:46px 90px}
.page-news .news-article{margin-top:24px;box-shadow:0 10px 0 #3c2a47}
.page-news .news-archive{padding:30px;margin-top:30px;border:1px solid #493653;background:#160f1b;box-shadow:0 8px 0 #3c2a47}
.page-news .news-archive-grid{gap:20px}
.page-news .news-archive-card{box-shadow:0 7px 0 #08060b}
.page-news .news-archive-card:hover{transform:translateY(-3px);box-shadow:0 10px 0 #08060b}
.page-news .news-archive-card>div:last-child{border-top:2px solid #5b4268}

/* Wiki */
.page-wiki .wiki-section{padding-block:46px 90px}
.page-wiki .wiki-layout{gap:28px;margin-top:26px}
.page-wiki .wiki-toc{top:92px;border-color:#5b4268;box-shadow:0 8px 0 #3c2a47}
.page-wiki .wiki-toc a{border-left:3px solid #493653}
.page-wiki .wiki-content{padding:8px 30px 32px;border:1px solid #493653;background:#160f1b;box-shadow:0 8px 0 #3c2a47}
.page-wiki .wiki-block{border-bottom:2px solid #493653}
.page-wiki .wiki-callout,.page-wiki .wiki-steps li,.page-wiki .wiki-class-grid article,
.page-wiki .wiki-stats div,.page-wiki .wiki-workflow>div{
  border-radius:1px;
  background:#211629;
  box-shadow:0 5px 0 #08060b;
}
.page-wiki .wiki-steps li>span,.page-wiki .wiki-workflow span{border-radius:1px;background:#c9a7dc;color:#170f1d}
.page-wiki .wiki-command-group{box-shadow:0 6px 0 #08060b}

/* Account and forms */
.page-account .auth-section{padding-block:46px 90px}
.page-account .auth-hero{display:block;min-height:0;margin-bottom:24px;padding:34px 36px}
.page-account .invite-callout{border-radius:1px;margin-bottom:22px;box-shadow:0 7px 0 #3c2a47}
.page-account .form-stack{padding:30px 32px;box-shadow:0 9px 0 #3c2a47}
.page-account .creator-fields{border:2px solid #4e3b59;border-radius:1px;background:#15101a}

/* Profiles and dungeon information */
.page-profile .profile-section{padding-block:46px 90px}
.page-profile .profile-hero{min-height:190px;margin-bottom:25px}
.page-profile .profile-grid,.page-profile .profile-playtime-grid,.page-profile .class-grid{gap:18px}
.page-profile .profile-grid .surface,
.page-profile .profile-playtime-grid .surface,
.page-profile .class-card,
.page-profile .gear-card,
.page-profile .history-card,
.page-profile .profile-edit-grid .surface,
.page-profile .dungeon-empty{
  border-color:#5b4268;
  box-shadow:0 8px 0 #3c2a47!important;
}
.page-profile .profile-grid{margin-bottom:30px}
.page-profile .profile-playtime{margin-top:38px}
.page-profile .profile-playtime-grid{margin-top:16px}
.page-profile .dungeon-columns{gap:26px}
.page-profile .dungeon-heading{border-top:2px solid #493653}
.page-profile .class-card:before{width:5px}
.page-profile .class-stats div{border-radius:1px;background:#110c16}

/* Admin workspace */
.page-admin .admin-section{padding-block:46px 90px}
.page-admin .admin-hero{margin-bottom:26px}
.page-admin .admin-section-grid{gap:18px}
.page-admin .admin-section-accordion{box-shadow:0 7px 0 #3c2a47}
.page-admin .admin-section-summary{background:#1c1423}
.page-admin .admin-section-accordion[open] .admin-section-summary{background:#281b30}
.page-admin .editor-accordion,.page-admin .admin-panel,.page-admin .application-review{
  border:1px solid #493653;
  border-radius:1px;
  background:#17101d;
  box-shadow:0 6px 0 #08060b;
}
.page-admin table{border:1px solid #493653;background:#130e18}
.page-admin th{color:#d7afE8;background:#24182b}

/* The map remains edge-to-edge, while its frame matches the site */
.page-map .community-main{padding-bottom:0}
.page-map .map-frame-shell{border-top:2px solid #5b4268;background:#08060b}

/* Footer is a framed panel on every page */
body:not(.home-page) .site-footer{
  width:min(var(--max),calc(100% - 80px));
  margin:0 auto 42px;
  padding:34px 38px;
  border:1px solid #493653;
  background:#110c16;
  box-shadow:0 10px 0 #3c2a47;
}
body:not(.home-page) .site-footer .wrap{width:100%}
.page-map .site-footer{display:none}

@media(max-width:900px){
  body:not(.home-page) .community-main>section.wrap,
  body:not(.home-page) .site-footer{width:min(var(--max),calc(100% - 48px))}
  .directory-hero{align-items:flex-start;flex-direction:column}
  .page-wiki .wiki-content{padding-inline:24px}
}

@media(max-width:620px){
  body:not(.home-page) .community-main>section.wrap,
  body:not(.home-page) .site-footer{width:calc(100% - 30px)}
  body:not(.home-page) .events-hero,
  body:not(.home-page) .news-hero,
  body:not(.home-page) .stats-hero,
  body:not(.home-page) .wiki-hero,
  body:not(.home-page) .profile-hero,
  body:not(.home-page) .admin-hero,
  body:not(.home-page) .directory-hero,
  body:not(.home-page) .auth-hero{min-height:0;padding:28px 22px}
  body:not(.home-page) .community-main h1{font-size:clamp(46px,15vw,66px)}
  .page-players .player-group{padding:24px 18px 29px}
  .page-news .news-archive{padding:24px 18px}
  .page-wiki .wiki-content{padding:6px 18px 26px}
  .page-account .form-stack{padding:25px 20px}
  body:not(.home-page) .site-footer{padding:28px 20px}
  .site-footer nav button{justify-self:start;text-align:left}
  .page-players .player-card{
    min-height:184px;
    aspect-ratio:auto;
  }
}
