/* Evil Ice site shell: ONE look for every page reached from the main menu.
   Reference = the home main menu (index.html + assets/title-screen.css + art/native-ui/):
   slate diagonal ground, original PSX FRAME.BIN window texture and bevel, pixel-font label
   images, the hand cursor, deep command windows and parchment. Page CSS stays in each page;
   this file wins over it on purpose. Playbook: second-brain/06-playbooks/evil-ice-site-art-direction.md */
@font-face{font-family:EvilIceMenu;src:url('/art/character-fonts/vt323-latin.woff2') format('woff2');font-display:swap}
:root{--ei-slate:#394641;--ei-deep:#202d2c;--ei-paper:#e8e3c9;--ei-paper-dim:#d0ceb2;--ei-ink:#292e2a;--ei-ink-soft:#50594d;--ei-edge:#939b85;--ei-gold:#ecdfae;--ei-light:#f3eed8;--ei-sage:#cbd4bd;--ei-menu:EvilIceMenu,FFTMenu,Tahoma,monospace;--ei-body:'Segoe UI',system-ui,sans-serif}

/* ---------- 1. The main menu window, on every page ---------- */
.ei-site-nav,.ei-site-nav *{box-sizing:border-box}
.ei-site-nav{position:relative;z-index:100;display:flex;flex-wrap:wrap;align-items:center;gap:0;justify-content:space-between;width:min(1120px,calc(100% - 32px));margin:18px auto 18px;padding:4px 8px 4px 8px;background:#b6b19a url('/art/native-ui/menu-active-texture.png') repeat;background-size:48px 36px;border:6px solid transparent;border-image:url('/art/native-ui/menu-active-frame.png') 3 / 6px / 0 stretch;box-shadow:3px 3px 0 #131513;color:#38372e;image-rendering:pixelated}
.ei-site-nav .command{position:relative;display:block;flex:0 0 auto;min-height:48px;margin:0!important;padding:3px 4px 3px 34px;font-size:0!important;text-decoration:none!important;background:none!important;border:0!important;box-shadow:none!important;outline-offset:2px}
.ei-site-nav .command span{display:block;height:42px;width:var(--native-label-width);font-size:0;color:transparent;background:var(--native-label) left center/100% 42px no-repeat;image-rendering:pixelated}
.ei-site-nav .command:before{content:'';position:absolute;left:0;top:12px;width:32px;height:24px;background:url('/art/native-ui/cursor-hand.png') center/32px 24px no-repeat;opacity:0;image-rendering:pixelated;filter:drop-shadow(2px 2px #202622);pointer-events:none}
.ei-site-nav .command[aria-current="page"]:before,.ei-site-nav .command:hover:before,.ei-site-nav .command:focus-visible:before{opacity:1}
.ei-site-nav:hover .command[aria-current="page"]:not(:hover):before,.ei-site-nav:focus-within .command[aria-current="page"]:not(:focus-visible):not(:hover):before{opacity:.45}
.ei-site-nav .command:focus-visible{outline:3px solid #fff5c5}
@media(max-width:1150px){
  .ei-site-nav{justify-content:flex-start}
  .ei-site-nav .command{min-height:40px;padding:6px 6px 6px 28px}
  .ei-site-nav .command span{height:28px;width:calc(var(--native-label-width) * 2 / 3);background-size:100% 28px}
  .ei-site-nav .command:before{left:0;top:13px;width:24px;height:18px;background-size:24px 18px}
}
@media(max-width:760px){
  .ei-site-nav{width:calc(100% - 24px);margin:12px auto 14px;padding:2px 2px;gap:0}
  .ei-site-nav .command{min-height:38px;padding:5px 3px 5px 25px}
  .ei-site-nav .command span{height:28px;width:calc(var(--native-label-width) * 2 / 3);background-size:100% 28px}
  .ei-site-nav .command:before{left:0;top:13px;width:24px;height:18px;background-size:24px 18px}
}
@media(forced-colors:active){.ei-site-nav .command span{background:none;font:24px var(--ei-menu);color:CanvasText;width:auto;height:auto}}

/* ---------- 2. Ground, type and colour tokens for page content ---------- */
body:not([data-character]){--bg:#394641;--bg2:#394641;--panel:#202d2c;--ice:#ecdfae;--cy:#ecdfae;--gold:#ecdfae;--white:#f3eed8;--ink:#f3eed8;--muted:#cbd4bd;--dim:#cbd4bd;--line:#98a18a;
  background-color:var(--ei-slate)!important;background-image:linear-gradient(135deg,#263a3655 25%,transparent 25%),linear-gradient(315deg,#263a3640 25%,transparent 25%)!important;background-size:48px 48px!important;color:var(--ei-light)!important;font-family:var(--ei-body)!important;font-size:16px;line-height:1.6;display:block!important;min-height:100svh;text-align:left}
body[data-character]{background-color:var(--ei-slate)!important;background-image:linear-gradient(135deg,#263a3655 25%,transparent 25%),linear-gradient(315deg,#263a3640 25%,transparent 25%)!important;background-size:48px 48px!important}
body:not([data-character]) *{box-sizing:border-box}
body:not([data-character])>.wrap{width:min(1120px,calc(100% - 32px));max-width:1120px!important;margin:0 auto 32px!important;padding:14px 0 60px!important;background:none!important;border:0!important;box-shadow:none!important}
body:not([data-character]) :is(select,input,textarea,.opt,.opt .t,.opt .txt,.stitle,.lead,.lede){font-family:var(--ei-body)!important}
body:not([data-character]) :is(h1,h2,h3,h4,legend,label,summary,.brand,.tag,.mono,.eyebrow,.b,.lede-title,.eplbl,.opt .k,.chip,.btn,.button,.jump a,.pill,.price,.num,.lab){font-family:var(--ei-menu)!important;font-weight:400!important;text-shadow:none!important;letter-spacing:.5px!important}
body:not([data-character]) .opt .k{font-family:var(--ei-menu)!important}
body:not([data-character]) :is(.map-caption,.map-help){color:#e0d6b6!important;background:#202d2cdd!important}
/* Page heading, same as the main menu heading: small gold EVIL ICE, big light title. */
body:not([data-character]) :is(.brand,.b){color:var(--ei-gold)!important;font-size:22px!important;text-decoration:none!important;letter-spacing:1px!important}
body:not([data-character]) .tag{color:var(--ei-light)!important;font-size:22px!important;margin-left:12px}
body:not([data-character]) .tag:before{content:'/';color:var(--ei-sage);margin-right:12px}
body:not([data-character]) h1{color:var(--ei-light)!important;font-size:clamp(38px,5vw,54px)!important;line-height:1.02!important;text-shadow:2px 2px #172a26!important;margin:6px 0 12px!important}
body:not([data-character]) h2{color:var(--ei-gold)!important;font-size:clamp(30px,3.6vw,38px)!important;line-height:1.1!important;text-shadow:2px 2px #172a26!important}
body:not([data-character]) h2:before{content:''!important;display:inline-block!important;width:32px!important;height:24px!important;margin:0 10px 0 -2px!important;vertical-align:-2px!important;background:url('/art/native-ui/cursor-hand.png') center/32px 24px no-repeat!important;box-shadow:none!important;image-rendering:pixelated;filter:drop-shadow(2px 2px #172a26)}
body:not([data-character]) h3{color:var(--ei-light);line-height:1.15}
body:not([data-character]) .tl :is(.good,.bad){font-size:19px!important}
body:not([data-character]) :is(.lead,.lede){color:var(--ei-light)!important}
body:not([data-character]) :is(.dim,.small,.muted){color:var(--ei-sage)}
body:not([data-character]) a{color:var(--ei-light);text-underline-offset:4px}
body:not([data-character]) a:hover{color:var(--ei-gold)}
body:not([data-character]) :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #fff5c5!important;outline-offset:3px}
body:not([data-character]) footer{color:var(--ei-sage)!important;border-top:1px solid #98a18a!important;font-family:var(--ei-menu)!important}
body:not([data-character]) footer a{color:var(--ei-light)!important}

/* ---------- 3. Windows: the original menu texture and bevel ---------- */
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details:not(.chapter)){--white:#292e2a;--ink:#292e2a;--muted:#50594d;--dim:#50594d;--ice:#334c45;--cy:#334c45;--gold:#6b5526;--line:#8f8b76;
  background:#b6b19a url('/art/native-ui/menu-active-texture.png') repeat!important;background-size:48px 36px!important;color:var(--ei-ink)!important;border:6px solid transparent!important;border-image:url('/art/native-ui/menu-active-frame.png') 3 / 6px / 0 stretch!important;box-shadow:3px 3px 0 #131513!important;border-radius:0!important;image-rendering:auto}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.chapter,details) :is(.card,.video,.panel,details){border-image:none!important;border:0!important;border-top:2px solid #8f8b76!important;box-shadow:none!important;background:none!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(h1,h2,h3,h4,summary,legend,label,.q,.num,.price,.won,.d,.who,.t,.lab,.n,.n2,.l2,.k){color:inherit;text-shadow:none!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(h2,h3,summary,.q,.num,.price,.won,.jp strong){color:#5a4719!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) h2:before{display:none!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(p,li,span,dd,dt,figcaption,.what,.opt,.txt,.stitle){color:#343a33}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(.dim,.small,.muted,.pt,.lab,.l2,.tot,.timestamp,.count,.tags,.note,.num.waiting,.msg){color:#4c5449!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) a:not(.btn):not(.button):not(.pill):not(.command){color:#2c4a42!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) a:not(.btn):not(.button):not(.pill):hover{color:#171a16!important}
body:not([data-character]) :is(.good,.ok,.msg.ok,.s-shipped){color:#b9e3a8!important}
body:not([data-character]) :is(.bad,.closed,.red,.msg.bad,.s-held,.warn,.status.error){color:#ffc1b3!important}
body:not([data-character]) :is(.amber,.s-raw,.firsthere,.status){color:var(--ei-gold)!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(.good,.ok,.msg.ok,.s-shipped){color:#2f5d33!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(.bad,.closed,.red,.msg.bad,.s-held,.warn,.status.error){color:#8a2f24!important}
body:not([data-character]) :is(.card,.panel,.box,.video,.tier,.ep,.vote-card,.outcome,.stats>div,.chapter,.diagram,details) :is(.amber,.s-raw,.firsthere,.status){color:#6b5526!important}
body:not([data-character]) .s-superseded{color:#50594d!important}
body:not([data-character]) :is(.card,.box,.panel) .note{color:#6b5526!important}
body:not([data-character]) :is(.tl,.phase){border-color:#8f8b76!important}
body:not([data-character]) .tl li:before{background:#6b5526!important;box-shadow:none!important}
body:not([data-character]) .phase{border-left-color:#6b5526!important}
body:not([data-character]) :is(.poll,.qcard,.idea,.tracks li,#heard-wrap,.scenes li,.story-file li){border-color:#8f8b76!important}

/* ---------- 4. Commands: buttons, chips, pills ---------- */
body:not([data-character]) :is(a.btn,button.btn,.button,.jump a){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 18px!important;background:#dcd8bc!important;color:#1f2420!important;border:6px solid transparent!important;border-image:url('/art/native-ui/menu-active-frame.png') 3 / 6px / 0 stretch!important;box-shadow:2px 2px 0 #131513!important;border-radius:0!important;font-size:24px!important;line-height:1!important;text-decoration:none!important;margin:0 4px 8px 0;cursor:pointer;position:relative}
body:not([data-character]) :is(a.btn.ghost,button.btn.ghost,.button.secondary){background:var(--ei-deep)!important;color:var(--ei-light)!important;border:2px solid #8d9887!important;border-image:none!important;box-shadow:inset 0 0 0 2px #182824,2px 2px 0 #13201d!important}
body:not([data-character]) :is(a.btn,button.btn,.button,.jump a):hover,body:not([data-character]) :is(a.btn,button.btn,.button,.jump a):focus-visible{filter:brightness(1.08);color:var(--ei-ink)!important}
body:not([data-character]) :is(a.btn.ghost,button.btn.ghost,.button.secondary):hover,body:not([data-character]) :is(a.btn.ghost,button.btn.ghost,.button.secondary):focus-visible{background:#d8d6b9!important;color:var(--ei-ink)!important;filter:none}
body:not([data-character]) :is(button.btn,.button):disabled{opacity:.55;cursor:not-allowed}
body:not([data-character]) .text-button{color:var(--ei-gold)!important;font-family:var(--ei-menu)!important;font-size:22px!important}
body:not([data-character]) .bar:not(.opt .bar):not(.poll .bar){background:var(--ei-slate)!important;border-bottom:1px solid #98a18a!important}
body:not([data-character]) .chip{background:var(--ei-deep)!important;color:var(--ei-light)!important;border:2px solid #8d9887!important;box-shadow:inset 0 0 0 2px #182824!important;border-radius:0!important;font-size:22px!important}
body:not([data-character]) .chip.on{background:#d8d6b9!important;color:var(--ei-ink)!important;border-color:#f1eed4!important;box-shadow:inset 0 0 0 2px #a4aa94!important}
body:not([data-character]) .pill{border-radius:0!important}
body:not([data-character]) .pill.live{background:var(--ei-deep)!important;color:var(--ei-light)!important;border:2px solid #8d9887!important}
body:not([data-character]) .pill.live:hover{background:#d8d6b9!important;color:var(--ei-ink)!important}
body:not([data-character]) .pill.plan{background:transparent!important;color:#5a4719!important;border:2px dashed #6b5526!important}
body:not([data-character]) .key .pill.plan{color:var(--ei-gold)!important;border-color:var(--ei-gold)!important}

/* ---------- 5. Forms: parchment fields ---------- */
body:not([data-character]) :is(input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea){background:var(--ei-paper)!important;color:var(--ei-ink)!important;border:2px solid #a4aa94!important;box-shadow:inset 0 0 0 2px #f1eed4!important;border-radius:0!important}
body:not([data-character]) :is(input,select,textarea)::placeholder{color:#6b7264}
body:not([data-character]) input:is([type=radio],[type=checkbox]){accent-color:#4d5d4b!important}
body:not([data-character]) fieldset{border:2px solid #8f8b76!important}
body:not([data-character]) :is(label,legend){color:#5a4719}
body:not([data-character]) .wrap>label,body:not([data-character]) .wrap>form label{color:var(--ei-gold)}

/* ---------- 6. Page parts that need a nudge ---------- */
/* watch: vote rows are parchment command rows inside each episode window */
body:not([data-character]) .ep{padding:16px 20px 22px!important;margin:0 0 16px!important;border-top:6px solid transparent!important}
body:not([data-character]) .ep .eplbl{font-size:20px!important;color:#5a4719!important}
body:not([data-character]) .ep h3{color:var(--ei-ink)!important;font-size:28px!important}
body:not([data-character]) .ep .dur{color:#5a4719!important}
body:not([data-character]) .stage{border:2px solid #6c7165!important;background:#11100d!important}
body:not([data-character]) .stage .play{border:2px solid var(--ei-gold)!important;background:#202d2ccc!important}
body:not([data-character]) .stage .play:after{border-left-color:var(--ei-gold)!important}
body:not([data-character]) .opt{background:#e2dcc0!important;border:2px solid #a4aa94!important;color:var(--ei-ink)!important;box-shadow:inset 0 0 0 1px #f1eed4}
body:not([data-character]) .opt:before{background:#6b552633!important}
body:not([data-character]) .opt .k{color:var(--ei-ink)!important;border-color:#8f8b76!important;background:#f1eed4!important;font-size:22px!important}
body:not([data-character]) .opt.mine{border-color:#6b5526!important}
body:not([data-character]) .opt.mine .k{background:var(--ei-deep)!important;color:var(--ei-light)!important;border-color:var(--ei-deep)!important}
body:not([data-character]) .opt .bar{background:#8f8b7640!important}
body:not([data-character]) .opt .bar i{background:#4d5d4b!important;box-shadow:none!important}
body:not([data-character]) .opt.lead .bar i,body:not([data-character]) .opt.mine .bar i{background:#6b5526!important}
body:not([data-character]) .gate{background:var(--ei-deep)!important;border:2px solid #8d9887!important}
body:not([data-character]) .gate .msg{color:var(--ei-gold)!important}
body:not([data-character]) .ep .ft button,body:not([data-character]) .poll .undo{color:#2c4a42!important}
/* voice / polls / journal */
body:not([data-character]) .jp{background:#e2dcc0!important;border:2px solid #a4aa94!important}
body:not([data-character]) .jp-meter{background:#8f8b7640!important}
body:not([data-character]) .jp-meter i{background:#6b5526!important}
body:not([data-character]) .gal figure{border:2px solid #6c7165!important;background:var(--ei-deep)!important}
body:not([data-character]) .gal figcaption{color:var(--ei-light)!important}
body:not([data-character]) details>summary::after{color:#50594d!important}
/* production */
body:not([data-character]) .wrap>nav{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 22px}
body:not([data-character]) .wrap>nav a{color:var(--ei-light)!important;font:22px var(--ei-menu)!important;text-decoration:underline;margin:0!important}
body:not([data-character]) .card video{background:#11100d!important}
body:not([data-character]) .dot{background:#6b7264!important}
/* my-votes */
body:not([data-character]) .wrap>header{border-color:#98a18a!important}
body:not([data-character]) .wrap>header nav a[aria-current]{color:var(--ei-gold)!important}
body:not([data-character]) .eyebrow{color:var(--ei-gold)!important;font-size:22px!important;text-transform:none!important}
body:not([data-character]) .stats dd{color:#5a4719!important}
body:not([data-character]) .skip{color:var(--ei-ink)}
/* storylines: the diagram sits in a native window; the Archify light sheet is warmed to parchment */
body:not([data-character]) .diagram{padding:0!important}
body:not([data-character]) .diagram iframe{background:var(--ei-paper)!important;filter:sepia(.32) saturate(.8) brightness(.98)}
body:not([data-character]) .diagram figcaption{border-top:2px solid #8f8b76!important}
body:not([data-character]) .chapter summary{color:var(--ei-ink)!important}
body:not([data-character]) .chapter summary:before{color:#5a4719!important}
body:not([data-character]) .scenes .num{color:#50594d!important}
/* thanks */
body:not([data-character]) .wrap.thanks{max-width:720px!important}

@media(max-width:760px){
  body:not([data-character])>.wrap{width:calc(100% - 24px);padding:8px 0 48px!important}
  body:not([data-character]) .tag{display:inline-block;margin-left:8px}
  body:not([data-character]) :is(a.btn,button.btn,.button,.jump a){font-size:21px!important;padding:5px 12px!important}
  body:not([data-character]) .ep{padding:12px 12px 18px!important}
  body:not([data-character]) h2:before{width:24px!important;height:18px!important;background-size:24px 18px!important}
}
@media(prefers-reduced-motion:reduce){.ei-site-nav{scroll-behavior:auto}}
