:root{color-scheme:light;--ink:#1c2424;--muted:#656b67;--paper:#f4f2ec;--red:#a4392f;--line:#d6d4ca;font-family:"Source Sans 3","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}
html{scrollbar-gutter:stable}
*{box-sizing:border-box}
body{margin:0;min-width:300px}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.4}
button:focus-visible,input:focus-visible,a:focus-visible,.table-wrap:focus-visible{outline:3px solid #c97d26;outline-offset:3px}
.wrap{width:min(1180px,calc(100% - 80px));margin-inline:auto}
header{background:#1a2122;border-bottom:3px solid #9c493a;color:#fff}
nav,.brand,.tools,.section-head,.attempts,.dialog-head,.legend,.legend span{display:flex;align-items:center}
nav{height:68px;justify-content:space-between}
.brand{gap:20px}.brand img{width:116px;height:auto}.brand span{border-left:1px solid #55605f;padding-left:20px;font:600 20px Georgia,serif;color:#f3e6d0}
.tools{gap:18px}.tools button{display:flex;align-items:center;gap:8px;background:none;border:0;color:#edeae4;padding:6px;font-size:14px}
.tools b{border:1.5px solid #c6cbc6;border-radius:50%;width:18px;height:18px;line-height:16px;font-size:13px}.tools span{font-size:20px}
main{padding-block:28px}
.banner{position:relative;isolation:isolate;overflow:hidden;background:#1c292a;border:1px solid #253332;min-height:82px;display:flex;align-items:center;color:#fff8ea}
.banner:before{content:"";position:absolute;inset:0 0 0 16%;background:url(images/banner.jpg) center 40%/cover no-repeat;z-index:-2}
.banner:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#172122 2%,rgba(23,33,34,.98) 24%,rgba(23,33,34,.62) 50%,rgba(23,33,34,.04) 77%),linear-gradient(0deg,#15202370,transparent 60%)}
.banner-content{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title round" "subtitle stats";align-items:center;gap:2px 14px;width:100%;padding:10px 20px}.eyebrow,th{font:600 12px/1.3 "IBM Plex Mono",Consolas,monospace;text-transform:uppercase;letter-spacing:.09em}
.round{grid-area:round;justify-self:end;padding:3px 8px;background:#172122d9;display:flex;align-items:center;gap:7px;color:#e7c796}.round i{width:8px;height:8px;background:#d3ab75;transform:rotate(45deg);margin-right:3px}
h1,h2,h3,p{margin:0}h1,h2,h3{font-family:"Spectral",Georgia,serif}
h1{grid-area:title;font-size:clamp(1.6rem,3vw,2.25rem);letter-spacing:-.045em;line-height:1.08}
.banner p{grid-area:subtitle;font-size:1rem;color:#e7e7de}.attempts{flex-direction:column;align-items:stretch;gap:7px;width:min(320px,100%);font-weight:650;color:var(--ink)}
#meter{position:relative;height:19px;background:#222b28;border:2px solid #e4dec9;border-radius:3px;overflow:hidden}
#meter-fill{height:100%;background:linear-gradient(#a5dc72,#65ad4e)}
#meter:after{content:"";position:absolute;inset:0;background:linear-gradient(to left,#18271b 2px,transparent 2px) 0 0 / calc(100% / var(--segments,10)) 100%}
#stats{grid-area:stats;justify-self:end;text-align:right;padding:3px 8px;background:#172122d9;color:#f8e3bd;font-weight:650;font-variant-numeric:tabular-nums}
.loss-setting{display:flex;align-items:center;gap:9px;margin-top:18px;cursor:pointer}.loss-setting input{appearance:none;position:relative;flex:none;width:2.5rem;height:1.5rem;margin:0;border:1px solid #69716a;border-radius:1rem;background:#737a74;cursor:pointer}.loss-setting input:checked{background:var(--red);border-color:var(--red)}.loss-setting input:before{content:"";position:absolute;top:2px;left:2px;width:calc(1.5rem - 6px);height:calc(1.5rem - 6px);border-radius:50%;background:white}.loss-setting input:checked:before{left:calc(1rem + 2px)}
.panel{background:#fffefa;border:1px solid var(--line);margin-top:20px}
.play-controls :is(.picker,.reveal){margin:0 0 24px}
.play-controls .banner{margin-top:12px}
.picker{padding:23px 26px 12px}.section-head{justify-content:space-between;gap:15px}
h2{font-size:clamp(25px,2.5vw,32px);line-height:1.1;letter-spacing:-.045em;font-weight:600}
.soft{color:var(--muted)}
.autocomplete{position:relative;margin:18px 0 14px}.search{display:flex;align-items:center;gap:12px;padding-left:14px;border:1px solid #c8cac2;background:#f8f8f4}
.glass{width:14px;height:14px;border:2px solid #737971;border-radius:50%;position:relative}.glass:after{content:"";position:absolute;height:2px;width:7px;transform:rotate(45deg);background:#737971;right:-5px;bottom:-3px}
input{color:var(--ink)}#search{background:transparent;border:0;min-width:0;width:100%;height:46px;padding-inline:3px 14px;font-size:16px}
#search:focus{outline:none}.search:focus-within{background:#fff;border-color:#686d65}
.action{background:var(--red);color:white;font-weight:650;border:1px solid #8f342d;padding:11px 22px;border-radius:2px}.action:hover{background:#892d26}
#suggestions{position:absolute;z-index:2;top:100%;left:0;right:0;list-style:none;margin:0;padding:3px;max-height:min(180px,26vh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #aeb2a8;background:#fffefa;box-shadow:0 5px 12px #18251b22}
.suggestion{display:flex;align-items:center;gap:12px;min-height:42px;padding:4px 10px;cursor:pointer}
.suggestion img{width:50px;aspect-ratio:16/9;object-fit:cover}
.suggestion[aria-selected=true],.suggestion:hover{background:#e9e9df}
.clues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:min(141px,24vh)}
.clue{display:grid;align-content:center;gap:5px;padding:8px 6px;text-align:center;border:0;background:transparent;color:var(--ink)}
.clue+.clue{border-left:1px solid var(--line)}
.clue:disabled{opacity:1}
.clue.locked{background:repeating-linear-gradient(135deg,#f4f3ed 0 8px,#f0efe9 8px 9px)}
.clue:not(:disabled):hover{background:#f6f1e6}.clue:focus-visible{outline-offset:-3px}
.clue-milestone{font-size:.8125rem;font-weight:650;color:var(--muted)}
.clue[aria-expanded=false]:enabled{background:#e5f1e6;box-shadow:inset 0 3px #39734c}.clue[aria-expanded=false]:enabled .clue-milestone{color:#295439}
.clue-title{font:700 20px "Spectral",Georgia,serif}.clue[aria-expanded=false]:enabled .clue-detail{justify-self:center;padding:3px 9px;border-radius:2px;background:#315f41;color:white;font-weight:650}.clue-detail{font-size:14px;line-height:1.45;white-space:pre-line;color:var(--muted)}
.guess-summary{padding:22px 26px}.legend{gap:16px}.legend span{gap:6px;font-size:14px}.legend i{width:9px;height:9px;border-radius:2px}
.legend .exact{background:#45825b}.legend .partial{background:#c79b32}.legend .miss{background:#af584f}
.table-wrap{overflow-x:auto}table{table-layout:fixed;width:100%;min-width:60rem;border-collapse:separate;border-spacing:4px;text-align:center}th{font-size:.875rem;letter-spacing:.03em;background:#eeeee7;border-block:1px solid var(--line);padding:12px 8px;white-space:nowrap;color:#38453c}td{font-size:1.125rem;font-weight:600;font-variant-numeric:tabular-nums}
.col-hero{width:22%}.col-attribute,.col-attack{width:14%}.col-roles{width:11%}.col-speed{width:12%}.col-damage{width:14%}.col-gender{width:13%}
.cell{position:relative;vertical-align:middle;white-space:pre-line;line-height:1.5;padding:10px;border-radius:2px}.cell.exact{background:#d4e8d8;color:#244e32}.cell.partial{background:#f5e6b4;color:#644807}.cell.miss{background:#efdad5;color:#743a33}.guess-name{position:absolute;inset:0;overflow:hidden;border-radius:2px;background:#1a2122;font-size:1.125rem;font-weight:650}.guess-name img{width:100%;height:100%;object-fit:cover}.guess-name span{position:absolute;inset:auto 0 0;padding:7px 3px 4px;background:#101817e8;color:white;text-shadow:0 1px 2px #111}
.empty{text-align:center;color:var(--muted);padding:20px}.empty-rune{display:block;font:26px/1 Georgia;color:#9e876d}.empty h3{color:var(--ink);margin:5px 0;font-size:19px}.empty p{font-size:14px}
footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);border-top:1px solid var(--line);padding:17px 0 30px;font-size:13px}
#message:not(:empty){position:absolute;z-index:2;top:100%;left:0;right:0;padding:8px 12px;border:1px solid #aeb2a8;background:#fffefa;color:#923a2c}dialog{background:#fffefa;color:var(--ink);border:1px solid #99998f;padding:25px;width:min(490px,92%);max-height:86vh}dialog::backdrop{background:#11191bb8}.dialog-head{justify-content:space-between;margin-bottom:18px}.close{border:0;background:transparent;font-size:26px;color:var(--ink)}dialog p,dialog li{font-size:16px;line-height:1.48}dialog p,dialog ol{margin-block:10px 16px}dialog a{color:var(--red)}dialog label{display:block;font-weight:600;margin-bottom:7px}#limit{width:100%;padding:9px;border:1px solid var(--line)}
.reveal{padding:20px;display:flex;align-items:center;gap:18px}.reveal img{width:110px}.reveal h2{margin-bottom:4px}.reveal .action{margin-left:auto}
[hidden]{display:none!important}
@media(max-width:900px){.wrap{width:calc(100% - 36px)}.banner:before{left:0}}
@media(max-width:600px){.wrap{width:calc(100% - 24px)}nav{height:57px}.brand img{width:85px}.brand{gap:9px}.brand span{display:none}.tools{gap:5px}.tools button{font-size:13px}main{padding-block:14px}.banner-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 8px;padding:8px 12px}.banner{min-height:72px}.banner p,#stats{font-size:.875rem}.banner:before{background-position:55% center}.banner:after{background:linear-gradient(90deg,#172122f5,#172122b0 46%,#17212233)}.picker{padding:16px 13px 10px}.guess-summary{padding:16px 13px;align-items:flex-start;flex-direction:column;gap:10px}.soft{font-size:11px}.legend{gap:12px}.action{padding:10px;font-size:14px}.search{padding-left:9px}.section-head{gap:8px}footer{flex-wrap:wrap}.reveal{flex-wrap:wrap}.reveal img{width:80px}.reveal .action{margin-left:0}}
@media(max-width:380px){.tools{gap:2px}.tools button{padding-inline:4px}.tools b,.tools span{display:none}}
.log{margin-top:0;border-top:0}
@media(min-width:56rem){
  html{scrollbar-gutter:auto}
  body{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh}
  .wrap{width:min(108rem,calc(100% - 2rem))}
  main.wrap{display:grid;min-height:0;grid-template-rows:minmax(0,1fr);grid-template-columns:clamp(18rem,25%,24rem) minmax(0,1fr);align-items:start;gap:1rem;padding-block:1rem}
  .play-controls{display:flex;flex-direction:column;height:100%;overflow:auto}
  .play-controls>*{flex:none}
  .play-controls .panel{margin-top:12px}
  .play-controls :is(.picker,.reveal){margin-top:0}
  .play-controls .guess-summary{margin-top:auto}
  .banner-content{grid-template-columns:auto 1fr;grid-template-areas:"round stats" "title title" "subtitle subtitle";padding:10px 14px}
  .round{justify-self:start}#stats{font-size:.875rem}
  .picker,.guess-summary,.reveal{padding:14px}
  .picker .section-head,.reveal{flex-wrap:wrap}.picker h2{font-size:1.5rem}
  .autocomplete{margin:12px 0 0}
  .clues{grid-template-columns:1fr;min-height:0}
  .clue{min-height:4.5rem}.clue+.clue{border-left:0;border-top:1px solid var(--line)}
  .guess-summary{align-items:stretch;flex-direction:column}.attempts{width:100%}.legend{flex-wrap:wrap}
  .log{display:flex;flex-direction:column;min-width:0;max-height:100%;border-top:1px solid var(--line)}
  .table-wrap{min-height:0;overflow:auto}
  thead th{position:sticky;top:0;z-index:1;white-space:normal}
  table{min-width:50rem}.cell{padding-inline:4px}
}
tbody th{position:relative;height:112px;padding:0;background:transparent;border:0;font:inherit;text-transform:none;letter-spacing:0;color:var(--ink);white-space:normal}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
