/* Vellum — default theme for Depot. Every colour, face and size below is a variable the Customizer can change. */
.site{
  --u:2px;                                   /* one art pixel */
  --ink:#2a1a0e; --ink-2:#5b4024; --ink-3:#7a5d3a;
  --vellum:#ecdcb6; --vellum-2:#dfcb9c; --vellum-3:#f7eed6; --vellum-line:#c9b07c;
  --oak:#3a2616; --oak-2:#5a3c20;
  --brass:#d2a640; --brass-hi:#f6dc8c; --brass-lo:#8d661d;
  --moss:#1f3b2d; --moss-hi:#2f5a43; --moss-lo:#14281e;
  --night:#101b16; --night-2:#182820; --night-line:#2c4436; --on-night:#e9e0c6; --on-night-2:#a9b5a0;
  --hp:#3fc25a; --hp-ink:#1a6a2c; --mana:#4b7bec; --mana-ink:#1d49a6; --blood:#b3261e; --coin:#f0c330;
  --accent:var(--ui-accent,var(--brass));
  --f-display:"Grenze Gotisch","Grenze",Georgia,serif;
  --f-head:"Grenze",Georgia,serif;
  --f-body:"Alegreya Sans","Trebuchet MS",Verdana,sans-serif;
  --f-game:"Jersey 15","Courier New",monospace;
  --corner:polygon(0 2px,2px 2px,2px 0,calc(100% - 2px) 0,calc(100% - 2px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 2px),0 calc(100% - 2px));
  background:var(--night) url(../img/grain-stone.png);
  color:var(--ink); font:400 17px/26px var(--f-body); font-feature-settings:"lnum","tnum";
  min-height:100vh; min-height:100dvh; -webkit-font-smoothing:antialiased;
}
/* The page itself: no browser margin and no white edge around .site. html sits outside .site and cannot read --night,
   so it repeats the colour for overscroll; a child theme that changes --night sets html's background too (Vellum Winter does). */
html,body{margin:0;padding:0}
html{background:#101b16}
.site *{box-sizing:border-box}
.site a{color:var(--mana-ink);text-decoration-thickness:2px;text-underline-offset:3px}
.site a:hover{color:var(--ink)}
.site :focus-visible{outline:2px solid var(--mana);outline-offset:2px}
.site h1,.site h2,.site h3,.site p,.site ul,.site ol,.site dl,.site dd,.site figure{margin:0;padding:0}
.site ul,.site ol{list-style:none}
.wrap{max-width:1360px;margin:0 auto;padding:0 20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.game{font-family:var(--f-game);font-size:20px;line-height:20px;letter-spacing:.3px}
.num{text-align:right;white-space:nowrap}
.muted{color:var(--ink-2)}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:16px}
.grow{flex:1 1 auto;min-width:0}

/* ---------- status strip ---------- */
.strip{background:var(--moss-lo);border-bottom:2px solid #070d0a;color:var(--on-night);font-size:15px;line-height:20px}
.strip .wrap{display:flex;align-items:center;gap:8px 22px;flex-wrap:wrap;min-height:48px;padding-top:6px;padding-bottom:6px}
.strip a{color:var(--on-night)} .strip a.strip__stat{text-decoration:none} .strip a:hover{color:var(--brass-hi)}
.strip__stat{display:flex;align-items:center;gap:8px;white-space:nowrap}
.strip__stat b{font-family:var(--f-game);font-weight:400;font-size:22px;line-height:20px;color:var(--brass-hi)}
.dot{width:10px;height:10px;background:var(--hp);box-shadow:0 0 0 2px #0b2a13;flex:none}
.dot--off{background:var(--blood);box-shadow:0 0 0 2px #2a0a06}
.dot--live{animation:blink 1.6s steps(1) infinite}
@keyframes blink{50%{background:#8dffa4}}
.lang{display:flex;gap:2px}
.lang a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:32px;padding:0 6px;text-decoration:none;font-weight:700;font-size:14px}
.lang a[aria-current="true"]{background:var(--moss-hi);color:var(--brass-hi);clip-path:var(--corner)}

/* ---------- hero: the world map ---------- */
.hero{position:relative;height:392px;--mx:60;--my:50;background:#182e54 url(../img/world.png) calc(var(--mx)*1%) calc(var(--my)*1%)/auto no-repeat;image-rendering:pixelated;overflow:hidden;border-bottom:2px solid #070d0a}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:80px;background:url(../img/fade.png) 0 100%/auto 80px repeat-x;pointer-events:none}
.hero--slim{height:148px;--my:52}
.hero--slim::after{height:48px;background-size:auto 48px}
.hero .wrap{position:relative;height:100%}
.town{position:absolute;display:flex;align-items:center;gap:6px;transform:translate(-8px,-100%);font-family:var(--f-game);font-size:20px;line-height:20px;color:#fff;text-shadow:2px 0 #10182a,-2px 0 #10182a,0 2px #10182a,0 -2px #10182a,2px 2px #10182a,-2px 2px #10182a,2px -2px #10182a,-2px -2px #10182a;white-space:nowrap;image-rendering:auto}
.town::before{content:"";width:8px;height:8px;background:var(--coin);box-shadow:0 0 0 2px #10182a;flex:none}
.town--main{font-size:30px;line-height:28px}
.town--main::before{width:12px;height:12px;background:#fff}
.cartouche{position:absolute;left:20px;bottom:34px;z-index:2;max-width:520px;padding:22px 26px 24px;background:var(--moss-lo) url(../img/grain-stone.png);border:2px solid #070d0a;box-shadow:inset 2px 2px 0 var(--brass-hi),inset -2px -2px 0 var(--brass-lo),inset 0 0 0 4px var(--moss-lo),inset 0 0 0 6px var(--night-line),8px 8px 0 rgba(7,13,10,.55);clip-path:none;color:var(--on-night);image-rendering:auto}
.cartouche h1{font:900 84px/72px var(--f-display);color:var(--vellum-3);letter-spacing:.5px;text-shadow:4px 4px 0 #070d0a}
.cartouche p{margin-top:12px;font-size:18px;line-height:26px;max-width:46ch;text-wrap:balance}
.cartouche .row{margin-top:18px}
.hero--slim .cartouche{bottom:22px;padding:10px 18px 12px;box-shadow:inset 2px 2px 0 var(--brass-hi),inset -2px -2px 0 var(--brass-lo),6px 6px 0 rgba(7,13,10,.55)}
.hero--slim .cartouche h1{font-size:44px;line-height:40px;text-shadow:2px 2px 0 #070d0a}
.hero--slim .cartouche h1 a{color:inherit;text-decoration:none}

/* ---------- shell ---------- */
.shell{display:grid;grid-template-columns:236px minmax(0,1fr) 272px;gap:20px;align-items:start;padding-top:20px;padding-bottom:40px}
.shell--wide{grid-template-columns:236px minmax(0,1fr)}
.main{display:flex;flex-direction:column;gap:20px;min-width:0}
.rail{display:flex;flex-direction:column;gap:20px;min-width:0}
.foot__widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px;margin-bottom:20px}
.navcol{min-width:0}
/* ---------- phone top bar: logo left, menu right ---------- */
.topbar{display:none}
.topbar__brand{display:flex;align-items:center;gap:8px;min-width:0;font:900 30px/32px var(--f-display);letter-spacing:.3px;text-shadow:2px 2px 0 #070d0a}
.site a.topbar__brand{color:var(--vellum-3);text-decoration:none}
.topbar__brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar__brand img{height:36px;width:auto;image-rendering:pixelated}
.topbar__link{display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap}
.site a.topbar__link{color:var(--on-night)}
.burger{position:relative;width:18px;height:2px;background:currentColor;box-shadow:0 6px 0 currentColor,0 -6px 0 currentColor;flex:none}
.when-open{display:none}

/* ---------- navigation: stone tablets ---------- */
.nav{display:flex;flex-direction:column;gap:12px}
.nav__group{background:var(--night-2) url(../img/grain-stone.png);border:2px solid #070d0a;box-shadow:inset 2px 2px 0 var(--night-line),inset -2px -2px 0 #0a100d;clip-path:var(--corner);padding:6px}
.nav__title{display:flex;align-items:center;gap:10px;padding:6px 8px 8px;font:700 21px/24px var(--f-head);color:var(--brass-hi)}
.nav__list a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:4px 10px 4px 16px;color:var(--on-night);text-decoration:none;font-size:16px;line-height:22px}
.nav__list a:hover{background:var(--night-line);color:#fff}
.nav__list a[aria-current="page"]{background:var(--vellum);color:var(--ink);font-weight:700;box-shadow:inset 6px 0 0 var(--brass),inset 0 0 0 2px var(--ink);clip-path:var(--corner)}
.nav__count{font-family:var(--f-game);font-size:18px;line-height:18px;color:var(--hp)}
.nav__list a[aria-current="page"] .nav__count{color:var(--hp-ink)}

/* ---------- panel: vellum in a brass-edged frame ---------- */
.panel{background:var(--vellum) url(../img/grain-vellum.png);border:2px solid #120a04;box-shadow:inset 2px 2px 0 var(--brass-hi),inset -2px -2px 0 var(--brass-lo),inset 0 0 0 4px var(--oak);padding:4px;clip-path:var(--corner);min-width:0}
.panel__head{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 16px;background:var(--moss) url(../img/grain-stone.png);border-bottom:2px solid #120a04;box-shadow:inset 0 -2px 0 var(--moss-lo),inset 0 2px 0 var(--moss-hi);color:var(--vellum-3)}
.panel__head h1,.panel__head h2{font:700 25px/30px var(--f-head);letter-spacing:.2px;color:var(--vellum-3)}
.panel__head .ic{margin:-2px 0}
.panel__head a{color:var(--brass-hi)}
.panel__aside{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:15px;color:#cfd8c4}
.panel__body{padding:20px 22px 22px}
.panel__body--flush{padding:0}
.panel--plugin .panel__head{background-color:#3b2d52;box-shadow:inset 0 -2px 0 #261c38,inset 0 2px 0 #55427a}
.plugin-tag{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:16px;color:#d9cdf0;white-space:nowrap}
.section-title{font:700 22px/28px var(--f-head);color:var(--ink)}
.rule{height:2px;background:var(--vellum-line);border:0;margin:0}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 20px;border:2px solid #120a04;background:var(--vellum-3);color:var(--ink);font:700 19px/22px var(--f-head);letter-spacing:.2px;text-decoration:none;cursor:pointer;clip-path:var(--corner);box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 var(--vellum-line);white-space:nowrap}
.site a.btn{color:var(--ink);text-decoration:none}
.btn:hover{filter:brightness(1.06)}
.btn:active{box-shadow:inset 2px 2px 0 rgba(0,0,0,.3)}
.btn--primary{background:var(--accent);box-shadow:inset 2px 2px 0 var(--brass-hi),inset -2px -2px 0 var(--brass-lo)}
.btn--hp{background:var(--hp);box-shadow:inset 2px 2px 0 #a6f2b4,inset -2px -2px 0 #1e7a33}
.btn--stone{background:var(--moss-hi);box-shadow:inset 2px 2px 0 rgba(255,255,255,.22),inset -2px -2px 0 rgba(0,0,0,.4)}
.site a.btn--stone,.btn--stone{color:var(--on-night)}
.btn--danger{background:#c8372c;box-shadow:inset 2px 2px 0 #f08a7c,inset -2px -2px 0 #7a1810}
.site a.btn--danger,.btn--danger{color:#fff}
.btn--l{min-height:56px;padding:0 26px;font-size:23px}
.btn--s{min-height:36px;padding:0 12px;font-size:16px}
.btn--block{display:flex;width:100%}

/* ---------- tables ---------- */
.tablebox{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:16px;line-height:22px}
.table th{position:relative;text-align:left;padding:10px 12px;background:var(--vellum-2);border-bottom:2px solid var(--ink);font-weight:700;font-size:15px;color:var(--ink-2);white-space:nowrap}
.table th.num{text-align:right}
.table td{padding:8px 12px;vertical-align:middle;border-bottom:2px solid var(--vellum-line)}
.table tr:last-child td{border-bottom:0}
.table tbody tr:nth-child(even){background:rgba(160,120,50,.13)}
.table tbody tr.is-me{background:#f7e9a8;box-shadow:inset 6px 0 0 var(--brass)}
.table tbody tr.is-mine{box-shadow:inset 6px 0 0 var(--brass)}
.table .rank{font-family:var(--f-game);font-size:24px;line-height:22px;width:1%;white-space:nowrap;color:var(--ink-2)}
.table .rank--top{color:var(--ink)}
.table a{font-weight:700;text-decoration:none} .table a:hover{text-decoration:underline}
.who{display:flex;align-items:center;gap:12px;min-width:0}
.portrait{width:44px;height:44px;overflow:hidden;flex:none;background:var(--vellum-2);box-shadow:inset 0 0 0 2px var(--vellum-line);display:flex;justify-content:center;clip-path:var(--corner)}
.portrait .outfit{margin-top:-4px}
.who__name{display:block;font-weight:700}
.who__sub{display:block;font-size:14px;line-height:18px;color:var(--ink-2)}

/* ---------- small parts ---------- */
.tag{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 8px;background:var(--vellum-2);box-shadow:inset 0 0 0 2px var(--vellum-line);font-size:14px;line-height:18px;font-weight:700;color:var(--ink-2);white-space:nowrap;clip-path:var(--corner)}
.tag--hp{background:#cfeccc;box-shadow:inset 0 0 0 2px #7cc48a;color:var(--hp-ink)}
.tag--blood{background:#f3cdc4;box-shadow:inset 0 0 0 2px #d98f84;color:#8a1a12}
.tag--mana{background:#cfdcf6;box-shadow:inset 0 0 0 2px #8eaae6;color:var(--mana-ink)}
.tag--coin{background:#f8e7a4;box-shadow:inset 0 0 0 2px #d2a640;color:#6a4a08}
.tag--night{background:#22382d;box-shadow:inset 0 0 0 2px #3b5a48;color:var(--on-night)}
.bar{position:relative;height:16px;background:#3a2616;border:2px solid #120a04;clip-path:var(--corner)}
.bar__fill{display:block;height:100%;background:var(--hp);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.25)}
.bar--mana .bar__fill{background:var(--mana)} .bar--coin .bar__fill{background:var(--coin)} .bar--blood .bar__fill{background:#d8402c}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);font-weight:700;font-size:16px;text-decoration:none;clip-path:var(--corner)}
.site a.chip{color:var(--ink-2);text-decoration:none}
.site a.chip[aria-current="true"]{background:var(--ink);box-shadow:none;color:var(--vellum-3)}
.pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:14px 16px;border-top:2px solid var(--ink)}
.pager a,.pager span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;font-family:var(--f-game);font-size:22px;text-decoration:none;color:var(--ink)}
.site .pager a{color:var(--ink);box-shadow:inset 0 0 0 2px var(--vellum-line);background:var(--vellum-3);clip-path:var(--corner)}
.site .pager a[aria-current="page"]{background:var(--ink);color:var(--vellum-3);box-shadow:none}
.pager__info{margin-left:auto;font-family:var(--f-body) !important;font-size:15px !important;color:var(--ink-2) !important}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.label{font-weight:700;font-size:16px;line-height:22px}
.field small,.hint{font-size:14px;line-height:20px;color:var(--ink-2)}
.input,.select{width:100%;height:44px;padding:0 12px;border:2px solid var(--ink);background:var(--vellum-3);color:var(--ink);font:400 17px/24px var(--f-body);box-shadow:inset 2px 2px 0 rgba(90,60,20,.22);border-radius:0;clip-path:var(--corner)}
.input--ok{border-color:var(--hp-ink)}
.input--bad{border-color:var(--blood)}
.field__msg{display:flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:700}
.field__msg--ok{color:var(--hp-ink)} .field__msg--bad{color:#8a1a12}
.search{display:flex;gap:8px}
.search .input{flex:1 1 auto;min-width:0}
.notice{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);clip-path:var(--corner)}
.notice--warn{background:#f8e7a4;box-shadow:inset 0 0 0 2px #d2a640}
.notice--bad{background:#f3cdc4;box-shadow:inset 0 0 0 2px #d98f84}
.notice--ok{background:#cfeccc;box-shadow:inset 0 0 0 2px #7cc48a}
.dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0}
.dl dt,.dl dd{padding:8px 12px;border-bottom:2px solid var(--vellum-line)}
.dl dt{color:var(--ink-2);font-size:15px;white-space:nowrap}
.dl dd{font-weight:700;text-align:right}
.dl dt:last-of-type,.dl dd:last-of-type{border-bottom:0}
.dl--left dd{text-align:left}
/* a settings list: label, value and the row's own actions on the right; stacked on phones */
.dl--rows{grid-template-columns:max-content minmax(0,1fr) max-content}
.dl--rows>div{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;border-bottom:2px solid var(--vellum-line)}
.dl--rows>div:last-child{border-bottom:0}
.dl--rows dt,.dl--rows dd{border-bottom:0;text-align:left}
.dl--rows dd:not(.dl__actions):last-child{grid-column:span 2}
.dl--rows .dl__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media (max-width:780px){
  .dl--rows{grid-template-columns:minmax(0,1fr)}
  .dl--rows dt{padding-bottom:0}
  .dl--rows dd:not(.dl__actions):last-child{grid-column:auto}
  .dl--rows .dl__actions{justify-content:flex-start;padding-top:0}
}
.slot{position:relative;display:flex;align-items:center;justify-content:center;width:72px;height:72px;flex:none;background:#3a2c1c;border:2px solid #120a04;box-shadow:inset 2px 2px 0 #1c130a,inset -2px -2px 0 #6b5236;clip-path:var(--corner)}
.slot--s{width:48px;height:48px}
.slot__n{position:absolute;right:4px;bottom:2px;font-family:var(--f-game);font-size:18px;line-height:16px;color:#fff;text-shadow:2px 2px 0 #000}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px}

/* ---------- news ---------- */
.ticker li{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 18px;border-bottom:2px solid var(--vellum-line)}
.ticker li:last-child{border-bottom:0}
.ticker time{font-family:var(--f-game);font-size:20px;line-height:20px;color:var(--ink-2);white-space:nowrap}
.article h1,.article h2{font:700 34px/38px var(--f-head);text-wrap:balance}
.article h2 a{color:inherit;text-decoration:none}
.article__quote{padding:4px 0 4px 16px;border-left:4px solid var(--brass);font-style:italic}
.article__meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:8px;font-size:15px;color:var(--ink-2)}
.article__body{margin-top:16px;display:flex;flex-direction:column;gap:14px;max-width:68ch}
.article__body h3{font:700 22px/28px var(--f-head)}
.article__foot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}

/* ---------- footer ---------- */
.foot{border-top:2px solid #070d0a;background:var(--moss-lo);color:var(--on-night-2);font-size:15px;line-height:22px}
.foot .wrap{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between;padding-top:22px;padding-bottom:26px}
.foot a{color:var(--on-night)}
.foot p{max-width:70ch}
.foot__links{display:flex;flex-wrap:wrap;gap:6px 20px}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .shell{grid-template-columns:236px minmax(0,1fr)}
  .rail{grid-column:1 / -1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
}
@media (max-width:780px){
  .site{font-size:16px;line-height:24px}
  .wrap{padding:0 12px}
  .shell,.shell--wide{grid-template-columns:minmax(0,1fr);gap:14px;padding-top:14px}
  .topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 12px;background:var(--moss-lo) url(../img/grain-stone.png);border-bottom:2px solid #070d0a;box-shadow:inset 0 -2px 0 var(--brass-lo)}
  .strip .wrap{min-height:40px}
  .navcol{display:contents}
  .nav{display:none}
  .nav-toggle:checked ~ .shell .nav{display:flex;position:fixed;top:60px;left:0;right:0;z-index:30;max-height:calc(100vh - 60px);overflow-y:auto;gap:10px;padding:12px;background:var(--night) url(../img/grain-stone.png);border-bottom:2px solid #070d0a;box-shadow:0 8px 0 rgba(7,13,10,.6)}
  .nav__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 6px}
  .nav__list a{min-height:44px;padding-left:10px}
  .nav-toggle:checked ~ .topbar .topbar__menu{background:var(--vellum-3);box-shadow:inset 2px 2px 0 rgba(0,0,0,.3)}
  .nav-toggle:checked ~ .topbar .burger{box-shadow:none;transform:rotate(45deg)}
  .nav-toggle:checked ~ .topbar .burger::after{content:"";position:absolute;inset:0;background:currentColor;transform:rotate(90deg)}
  .nav-toggle:checked ~ .topbar .when-closed{display:none}
  .nav-toggle:checked ~ .topbar .when-open{display:inline}
  .nav-toggle:focus-visible ~ .topbar .topbar__menu{outline:2px solid var(--mana);outline-offset:2px}
  .hero{height:auto;padding:132px 0 40px;--mx:66;--my:8}
  .hero .wrap{height:auto}
  .hero--slim{height:56px;padding:0;--my:52}
  .hero--slim::after{display:none}
  .cartouche{position:relative;left:auto;right:auto;bottom:auto;padding:16px 18px 18px}
  .hero--slim .cartouche{display:none}
  .town--main{display:none}
  .cartouche h1{font-size:60px;line-height:54px}
  .town:not(.town--main){display:none}
  .panel__body{padding:16px 14px 18px}
  .panel__head h1,.panel__head h2{font-size:22px;line-height:26px}
  .article h2{font-size:28px;line-height:32px}
  .hide-s{display:none !important}
  .ticker li{grid-template-columns:auto minmax(0,1fr)} .ticker li .ic{display:none}
}
@media (prefers-reduced-motion:reduce){.dot--live{animation:none}}
/* ---------- widgets ---------- */
.countdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.countdown__part{display:flex;flex-direction:column;align-items:center;padding:8px 4px 6px;background:#3a2c1c;border:2px solid #120a04;box-shadow:inset 2px 2px 0 #1c130a,inset -2px -2px 0 #6b5236;clip-path:var(--corner)}
.countdown__part b{font:400 44px/36px var(--f-game);color:var(--coin);text-shadow:2px 2px 0 #000}
.countdown__part span{font-size:14px;line-height:18px;color:#e9dcc0}
.bullets{display:flex;flex-direction:column;gap:6px}
.bullets li{position:relative;padding-left:22px}
.bullets li::before{content:"";position:absolute;left:2px;top:9px;width:8px;height:8px;background:var(--brass);box-shadow:0 0 0 2px var(--ink)}

/* ---------- character stage: the way the game shows a character ---------- */
.stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;flex:none;width:224px;height:224px;padding-bottom:24px;background:repeating-conic-gradient(#639a43 0 25%,#5b9040 0 50%) 0 0/128px 128px;border:2px solid #120a04;box-shadow:inset 2px 2px 0 #86b862,inset -2px -2px 0 #3d6a2c;clip-path:var(--corner)}
.stage--s{width:160px;height:176px;padding-bottom:14px}
.nameplate{font:400 24px/22px var(--f-game);color:#5cf07a;text-shadow:2px 0 #000,-2px 0 #000,0 2px #000,0 -2px #000,2px 2px #000,-2px -2px #000,2px -2px #000,-2px 2px #000;white-space:nowrap}
.hpline{width:56px;height:8px;background:#000;padding:2px}
.hpline i{display:block;height:100%;background:#3fe060}
/* ---------- choices ---------- */
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(132px,100%),1fr));gap:10px}
.choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px 12px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);text-align:center;cursor:pointer;clip-path:var(--corner)}
.choice input{position:absolute;opacity:0;inset:0}
.choice b{font:700 19px/22px var(--f-head)}
.choice small{font-size:14px;line-height:18px;color:var(--ink-2)}
.choice.is-on{background:#fbf3c9;box-shadow:inset 0 0 0 2px var(--ink),inset 0 0 0 4px var(--brass)}
.choice.is-on::after{content:"";position:absolute;top:6px;right:6px;width:16px;height:16px;background:url(../img/icons.png) -304px 0/auto 16px;image-rendering:pixelated}
.choice--row{flex-direction:row;justify-content:center;min-height:44px;padding:8px 12px}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px 20px}
.form .span{grid-column:1 / -1}
.form--2{grid-template-columns:repeat(auto-fit,minmax(min(400px,100%),1fr))}
.check{display:flex;gap:10px;align-items:flex-start}
.check input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--ink);flex:none}
.split{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}
.keybox{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:22px 16px;background:#3a2c1c;border:2px solid #120a04;box-shadow:inset 2px 2px 0 #1c130a,inset -2px -2px 0 #6b5236;clip-path:var(--corner)}
.keybox span{font:400 40px/36px var(--f-game);letter-spacing:3px;color:var(--coin);text-shadow:2px 2px 0 #000}
/* ---------- profile ---------- */
.profile{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}
.profile__name{font:700 40px/42px var(--f-head)}
.skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px 22px}
.skill{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:end}
.skill .bar{grid-column:1 / -1;height:12px}
.skill b{font:400 26px/22px var(--f-game)}
.deathlist li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 18px;border-bottom:2px solid var(--vellum-line)}
.deathlist li:last-child{border-bottom:0}
.deathlist time{display:block;font-size:14px;line-height:18px;color:var(--ink-2)}
/* ---------- guild war ---------- */
.war{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center}
.war__side{display:flex;flex-direction:column;gap:6px;min-width:0}
.war__side--r{text-align:right}
.war__score{font:400 56px/44px var(--f-game)}
.war__vs{font:700 22px/26px var(--f-head);color:var(--ink-2)}
/* ---------- shop ---------- */
.offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px}
.offer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;padding:14px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);clip-path:var(--corner)}
.offer__title{font:700 21px/24px var(--f-head)}
.offer__foot{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.price{display:inline-flex;align-items:center;gap:6px;font:400 28px/24px var(--f-game);white-space:nowrap}
.packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}
.pack{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 10px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);text-align:center;clip-path:var(--corner)}
.pack.is-on,.pack:has(input:checked){background:#fbf3c9;box-shadow:inset 0 0 0 2px var(--ink),inset 0 0 0 4px var(--brass)}
label.pack{position:relative;cursor:pointer}
.pack input{position:absolute;opacity:0;pointer-events:none}
.pack:has(input:focus-visible){box-shadow:inset 0 0 0 3px var(--ink),inset 0 0 0 6px var(--brass)}
/* ---------- chart ---------- */
.chart{width:100%;height:auto;display:block}
.chart text{font:400 14px var(--f-body);fill:var(--ink-2)}
@media (max-width:780px){.war{grid-template-columns:minmax(0,1fr)}.war__side--r{text-align:left}.profile__name{font-size:32px;line-height:34px}.stage{width:100%}}

.house-ends{font-family:var(--f-game);font-size:22px;line-height:20px;color:#8a1a12}
.kv{display:flex;flex-direction:column;gap:2px}
.kv b{font:400 34px/30px var(--f-game)}
.kv span{font-size:14px;line-height:18px;color:var(--ink-2)}
.crest{display:flex;align-items:center;justify-content:center;width:112px;height:112px;flex:none;background:var(--moss) url(../img/grain-stone.png);border:2px solid #120a04;box-shadow:inset 2px 2px 0 var(--brass-hi),inset -2px -2px 0 var(--brass-lo);clip-path:var(--corner)}
.rankhead td{background:var(--vellum-2);font:700 18px/22px var(--f-head);padding-top:6px;padding-bottom:6px}
.table .rankhead,.table tbody tr.rankhead:nth-child(even){background:var(--vellum-2)}
/* Forum */
.crumbs{margin:0 0 12px;font-size:16px;color:var(--vellum-3);text-shadow:1px 1px 0 #070d0a}
.site .crumbs a{color:var(--vellum-3)}
.forum-lead{padding:12px 16px 0}
.forum-boards__title,.forum-threads__title{font:700 19px/24px var(--f-head)}
.forum-boards__latest{min-width:180px}
.table .forum-threads__pinned{background:#f3e6b8}
.forum-mod{gap:8px;padding:12px 16px;border-bottom:2px solid var(--vellum-line);background:var(--vellum-2)}
.forum-mod form{display:inline-flex}
.post{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr);border-bottom:2px solid var(--vellum-line)}
.post:target{background:#fbf3d9}
.post__author{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;background:var(--vellum-2);border-right:2px solid var(--vellum-line)}
.post__main{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px 18px}
.post__main .article__body{overflow-wrap:anywhere}
.post__meta{font-size:14px;line-height:18px;color:var(--ink-2)}
.post__actions{gap:14px;font-size:15px;margin-top:auto}
.post__actions form{display:inline}
.linkbtn{padding:0;border:0;background:none;color:#8a1a12;font:inherit;text-decoration:underline;cursor:pointer}
.textarea{height:auto;min-height:180px;padding:10px 12px;resize:vertical}
@media (max-width:640px){.post{grid-template-columns:1fr}.post__author{flex-direction:row;align-items:center;border-right:0;border-bottom:2px solid var(--vellum-line);padding:10px 14px}}

/* ---------- event calendar (views/calendar/month.twig) and the Events widget; an event's own colour comes in --ev ---------- */
/* the side columns share the free space equally, so the month stays in the middle whether "Today" is shown or not;
   where the free space is narrower than the Today button the header stacks, sized by its own width rather than the screen's */
.cal-head{container-type:inline-size;border-bottom:2px solid var(--ink)}
.cal-nav{display:grid;grid-template-columns:1fr auto auto auto 1fr;grid-template-areas:"today prev month next .";align-items:center;gap:12px;padding:14px 16px}
.cal-nav__today{grid-area:today;justify-self:start}
.cal-nav__prev{grid-area:prev}
.cal-nav__next{grid-area:next}
.cal-nav__month{grid-area:month;min-width:200px;font:700 24px/28px var(--f-head);text-align:center}
@container (max-width:600px){
  .cal-nav{grid-template-columns:auto 1fr auto;grid-template-areas:"prev month next";row-gap:10px}
  .cal-nav__today{grid-area:auto;grid-row:2;grid-column:1/-1;justify-self:center}
  .cal-nav__month{min-width:0}
}
.cal{width:100%;border-collapse:collapse;table-layout:fixed}
.cal th{padding:8px 4px;font:700 15px/18px var(--f-body);color:var(--ink-2);text-align:center;border-bottom:2px solid var(--vellum-line)}
.cal__day{height:104px;padding:4px;vertical-align:top;border:1px solid var(--vellum-line);background:var(--vellum-3)}
.cal__day--weekend{background:var(--vellum)}
.cal__day--out{background:var(--vellum-2)}
.cal__day--out .cal__date{color:var(--ink-3)}
.cal__day--today{box-shadow:inset 0 0 0 3px var(--accent)}
.cal__date{display:block;margin:0 2px 2px;font:400 20px/20px var(--f-game);color:var(--ink)}
.site a.cal__event{--ev:var(--moss-hi);display:block;margin:2px -4px;padding:1px 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:var(--ev);color:#fff;font-size:13px;line-height:18px;font-weight:700;text-decoration:none;text-shadow:1px 1px 0 rgba(0,0,0,.6)}
.site a.cal__event:hover{color:#fff;filter:brightness(1.15)}
.site a.cal__event--start{margin-left:0;border-left:3px solid rgba(0,0,0,.35)}
.site a.cal__event--end{margin-right:0}
.cal-list{display:flex;flex-direction:column;gap:12px}
.cal-list__item{--ev:var(--moss-hi);padding:8px 12px;border-left:6px solid var(--ev);background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line)}
.cal-list__item:target{box-shadow:inset 0 0 0 2px var(--accent)}
.cal-list__name{font:700 19px/24px var(--f-head)}
.cal-list__when{font-size:15px;line-height:20px}
.cal-widget__title{margin:4px 0;font:700 16px/20px var(--f-head);color:var(--ink-2)}
.cal-widget{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.cal-widget__item{--ev:var(--moss-hi);display:flex;flex-direction:column;padding:2px 8px;border-left:4px solid var(--ev);font-size:15px;line-height:20px}
.cal-widget__more{margin-top:4px}
@media (max-width:640px){
  .cal-nav__month{font-size:20px}
  .cal__day{height:56px;padding:2px}
  .cal__date{font-size:16px;line-height:16px}
  .site a.cal__event{height:6px;margin:2px -2px;padding:0;font-size:0;border:0}
}

/* ---------- error pages ---------- */
.error-page__body{display:flex;align-items:center;gap:28px 40px;padding:40px 44px 44px}
.error-page__art{flex:none;display:flex;align-items:center;justify-content:center;width:192px;height:192px;background:var(--vellum-2);box-shadow:inset 0 0 0 2px var(--vellum-line),inset 4px 4px 0 rgba(0,0,0,.08);clip-path:var(--corner)}
.error-page__art .ic{--sz:128px}
.error-page__text{display:flex;flex-direction:column;gap:12px;min-width:0}
.error-page__code{font:400 112px/88px var(--f-game);color:var(--accent);text-shadow:4px 4px 0 var(--brass-lo),8px 8px 0 rgba(18,10,4,.25);letter-spacing:4px}
.site .error-page h1{font:700 38px/42px var(--f-head);color:var(--ink);text-wrap:balance}
.error-page__message{max-width:52ch;color:var(--ink-2);text-wrap:pretty}
.error-page__path code{display:inline-block;max-width:100%;padding:2px 8px;overflow-wrap:anywhere;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);font:400 20px/26px var(--f-game)}
.error-page__actions{margin-top:8px}
@media (max-width:640px){
  .error-page__body{flex-direction:column;align-items:flex-start;padding:24px 18px 26px}
  .error-page__art{width:128px;height:128px}
  .error-page__art .ic{--sz:96px}
  .error-page__art .outfit{--sz:128px}
  .error-page__code{font-size:80px;line-height:64px}
  .site .error-page h1{font-size:30px;line-height:34px}
}
/* @ui/code: text to copy, with its button on the right */
.copy-code{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px}
.copy-code__text{flex:1;min-width:0;margin:0;padding:10px 12px;background:var(--vellum-3);box-shadow:inset 0 0 0 2px var(--vellum-line);white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:22px}
.copy-code__button{flex:none;min-width:120px}
.copy-code__button[hidden]{display:none}
.copy-code__button .ic{display:none}
.copy-code__button--done .ic{display:inline-block}
@media (max-width:560px){.copy-code{flex-direction:column;align-items:stretch}}
