:root{color-scheme:dark;--bg:#0a1821;--panel:#132936;--line:#314956;--text:#e5edf2;--muted:#acc0cb;--accent:#9ce3d5;--field:#0b1c27;font:16px/1.5 system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-underline-offset:3px}a:hover{color:#cffbf1}button,input,select{font:inherit}button,select,input{background:var(--field);color:var(--text);border:1px solid #57717f;border-radius:7px;padding:.52rem .68rem;min-height:44px;max-width:100%}button,select,summary{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[hidden]{display:none!important}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;z-index:5;top:.2rem;left:.4rem;background:var(--bg);padding:.6rem}
.bar{background:#10232e;border-bottom:1px solid var(--line)}.bar>div{max-width:1120px;display:flex;justify-content:space-between;align-items:center;margin:auto;padding:.55rem 1.2rem;gap:.6rem}.bar nav,.brand{display:flex;align-items:center;gap:.85rem}.brand{font-weight:750;color:var(--text);text-decoration:none}.bar nav>a{font-size:.9rem}.language select{font-size:.93rem}main{max-width:1120px;margin:auto;padding:1.5rem clamp(.9rem,3vw,1.8rem) 4rem}.reader{max-width:50rem;margin:auto}.reader h1,.archive-intro h1{font-size:clamp(1.65rem,3.4vw,2.65rem);line-height:1.12;letter-spacing:-.025em;margin:.65rem 0}.reader h2{font-size:clamp(1.12rem,2.5vw,1.45rem);line-height:1.3;margin:.2rem 0 .55rem}.reader h3{font-size:1.02rem;margin:.95rem 0 .3rem}.reader p{margin:.3rem 0 .72rem}.guide-intro{margin:1rem 0}.reader>section,.reader>details,.related{padding:1.15rem 0;border-top:1px solid var(--line)}.jump,.links,.related{display:flex;gap:.5rem 1rem;flex-wrap:wrap;align-items:center}.jump{margin:.8rem 0 1.2rem}.jump a,.links a,.related a,.reader>a{padding:.4rem 0}.reader ol{padding-inline-start:1.35rem}.reader li{margin:.42rem 0}.reader li p{margin:.2rem 0 .65rem}details summary{padding:.65rem 0;font-weight:650}
.archive-intro{display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden;align-items:stretch;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.archive-intro div{padding:clamp(1.1rem,4vw,2rem)}.archive-intro img{width:100%;height:100%;max-height:15rem;object-fit:cover}.archive-intro p{color:var(--muted);margin:.5rem 0}.start{margin:.75rem 0 1rem}.filters,.fields{display:grid;gap:.8rem 1rem}.filters{grid-template-columns:2fr 1fr}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}label{min-width:0}label:not(.check){display:grid;gap:.35rem;font-size:.95rem;font-weight:600}input,select{width:100%;min-width:0}.archive-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.8rem}.archive-card{display:block;color:var(--text);border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:1rem;text-decoration:none}.archive-card:hover{border-color:var(--accent)}.archive-card h2{font-size:1.1rem;margin:.42rem 0}.archive-card p,#result-count{color:var(--muted);font-size:.94rem;margin:.3rem 0}.archive-card .category{color:var(--accent);font-size:.83rem}.fallback{color:var(--muted);margin-inline-start:.5rem}.filters+#result-count{margin:.8rem 0}
#token-planner{padding:clamp(1rem,3vw,1.5rem);margin:1rem 0;background:var(--panel);border:1px solid var(--line);border-radius:12px;scroll-margin-top:1rem}#token-planner>p{color:var(--muted)}.fields{margin:.85rem 0 .4rem}.fields input[readonly]{color:var(--accent);background:#16303a}.check{display:flex;align-items:center;gap:.5rem;padding:.5rem 0;min-height:44px}.check input{width:18px;min-height:0;height:18px;accent-color:var(--accent)}.answer{margin:.55rem 0 .75rem;background:#15323c;border-inline-start:3px solid #74c8b7;border-radius:4px;padding:.76rem .9rem}.answer strong{font-size:1.18rem}.answer p{margin:.15rem 0 0;color:var(--muted);font-size:.9rem}.answer p:empty{display:none}
.selection-text{display:none}.select-wrap{position:relative;min-width:0}#chosen-item{display:inline-block;overflow-wrap:anywhere}.table-wrap{border:1px solid var(--line);border-radius:8px;overflow:auto;margin:.7rem 0}table{width:100%;border-collapse:collapse;text-align:start;font-size:.94rem}th,td{text-align:start;padding:.55rem .7rem;border-bottom:1px solid var(--line)}th{background:#203744}tr:last-child td{border-bottom:0}.row-icon{display:flex;align-items:center;gap:.55rem}.row-icon small{display:block;color:var(--muted)}.game-icon{object-fit:contain}.item-intro{display:flex;align-items:center;gap:.85rem;margin:1rem 0}.item-detail>p{white-space:pre-line}
.item-sheet{padding:0;width:min(39rem,calc(100vw - 1.5rem));max-height:86dvh;border:1px solid #4c6573;background:var(--bg);color:var(--text);border-radius:12px}.item-sheet::backdrop{background:#000a}.sheet-tools{position:sticky;top:0;background:var(--panel);padding:.55rem .85rem;display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}.sheet-tools select{width:auto}.item-sheet article{padding:.85rem 1.15rem 1.3rem}.item-sheet h1{font-size:1.5rem}html:has(dialog[open]){overflow:hidden}
@media(max-width:650px){.bar>div{padding:.45rem .7rem}.bar nav{gap:.5rem}.archive-intro{grid-template-columns:minmax(0,1fr)}.archive-intro img{height:6rem;grid-row:1}.fields label:has(select){grid-column:1/-1}}
@media(max-width:400px){.bar nav>a{font-size:.78rem;max-width:7rem}.brand{line-height:1.15}.bar nav{min-width:0}.fields,.filters{grid-template-columns:minmax(0,1fr)}.item-sheet article{padding:.75rem}.reader h1{overflow-wrap:anywhere}}
/* Keep long catalogue names fully visible alongside the native picker. */
.select-wrap select{position:absolute;inset:0;height:100%;opacity:0}
.selection-text{display:flex;align-items:center;min-height:44px;line-height:1.35;padding:.55rem 1.8rem .55rem .65rem;background:var(--field);color:var(--text);border:1px solid #57717f;border-radius:7px;pointer-events:none}
.select-wrap::after{content:"";position:absolute;right:.75rem;top:44%;width:.45rem;height:.45rem;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
.select-wrap select:focus-visible+.selection-text{outline:2px solid var(--accent)}
.filters select,.bar select,.sheet-tools select{appearance:none;padding-inline-end:1.9rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23acc0cb' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");background-position:right .6rem center;background-repeat:no-repeat}
