:root{--bg:#1b2824;--bg-deep:#121b18;--panel:#e4d6b7;--panel-border:#2a2219;--ink:#efe4cc;--muted:#b3ab97;--accent:#9e2a1d;--accent-ink:#f6ead2;--gold:#d2a64e;--rust:#a3271c;--rust-glow:#e0533a66;--ink-line:#17130e;--parchment:#e4d6b7;--parchment-deep:#d3c19b;--parchment-ink:#211a12;--parchment-muted:#6a5b44;--parchment-accent:#8a3a1c;--button:#22201c;--ok:#7fa36a;--danger:#e2735f;--radius:4px;--font:"EB Garamond", Georgia, serif;--font-display:"Cinzel", "Trajan Pro", Georgia, serif;--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}*{box-sizing:border-box}html,body{height:100%;color:var(--ink);font:17px/1.45 var(--font);background:radial-gradient(ellipse at 50% 0%, #2a3b35 0%, transparent 60%), radial-gradient(ellipse at 50% 120%, #0b1210 0%, transparent 55%), var(--grain), var(--bg);background-attachment:fixed;margin:0}#app{min-height:100%}h1,h2,h3{font-family:var(--font-display);margin:0 0 .5rem}.muted{color:var(--muted)}.notice{background:var(--panel);border-left:3px solid var(--gold);border-radius:0 var(--radius) var(--radius) 0;padding:.6rem 1rem}input,select,button{font:inherit;color:inherit}input,select{border:1px solid var(--panel-border);background:#15120f;border-radius:8px;width:100%;padding:.55rem .7rem}button{border:1px solid var(--panel-border);cursor:pointer;background:#2d2620;border-radius:8px;padding:.55rem 1rem}button:hover:not(:disabled){border-color:var(--muted)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}button.link{color:var(--muted);background:0 0;border:none;padding:.3rem;text-decoration:underline}.panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);padding:1.25rem}.narrow{flex-direction:column;gap:.75rem;width:min(420px,100%);display:flex}.center{place-items:center;min-height:100vh;padding:16px;display:grid}.page{max-width:1100px;margin:0 auto;padding:16px}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.topbar{flex-wrap:wrap;align-items:baseline;gap:1rem;margin-bottom:1rem;display:flex}.topbar h1{margin-right:auto}.hero-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;margin:1rem 0 5rem;display:grid}.hero-card{text-align:left;flex-direction:column;gap:.35rem;display:flex}.hero-card.selected{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}.hero-card.create{border-style:dashed}.actionbar{border-top:1px solid var(--panel-border);background:#1a1613ee;justify-content:flex-end;align-items:center;gap:1rem;padding:.75rem 16px;display:flex;position:fixed;bottom:0;left:0;right:0}.adventure.page{max-width:none;padding:0}.adventure-layout{place-items:center;min-height:100vh;display:grid}.lobby .players{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.lobby .players li{align-items:baseline;gap:.4rem;display:flex}.badge{color:var(--muted);background:#2d2620;border-radius:999px;margin-left:auto;padding:.1rem .5rem;font-size:.8rem}.badge.ok{color:var(--ok);background:#24361f}.game{grid-template-columns:1fr 320px;width:100%;height:100vh;display:grid}.board{min-height:0;position:relative;overflow:hidden}.board canvas{display:block}.board-labels{pointer-events:none;position:absolute;inset:0}.unit-label{white-space:nowrap;background:#000a;border-radius:6px;padding:1px 6px;font-size:11px}.unit-label.active{outline:2px solid var(--gold)}.unit-label.monster{color:#cfe8b9}.hud{border-width:0 0 0 1px;border-radius:0;flex-direction:column;gap:.5rem;display:flex;overflow-y:auto}.log{color:var(--muted);flex-direction:column;gap:.25rem;margin:0;padding-left:1.2rem;font-size:.85rem;display:flex}.toast{background:var(--panel);border:1px solid var(--gold);border-radius:var(--radius);padding:.5rem 1rem;position:fixed;bottom:1rem;left:50%;transform:translate(-50%)}.toast.error{border-color:var(--danger)}@media (width<=760px){.game{grid-template-rows:60vh auto;grid-template-columns:1fr;height:auto}.hud{border-width:1px 0 0}}.adventure-list{flex-direction:column;gap:.5rem;margin-bottom:1.5rem;display:flex}.adventure-item{justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.hero-card.away{opacity:.6;cursor:default}.hero-card .badge{align-self:flex-start;margin-left:0}.notice.row{justify-content:space-between}.tavern.page{max-width:1200px}.tavern-layout{grid-template-columns:1fr 340px;align-items:start;gap:1rem;display:grid}.tavern-layout .topbar{grid-column:1/-1;margin:0}.board{flex-direction:column;gap:1rem;display:flex}.notice-card{background:#2a221b;border-color:#5a4630;flex-direction:column;gap:.4rem;display:flex}.notice-card p{margin:0}.notice-card.mine{border-color:var(--gold)}.signups{flex-wrap:wrap;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.signups li{border:1px solid var(--panel-border);background:#1b1612;border-radius:999px;align-items:center;gap:.3rem;padding:.1rem .6rem;display:flex}.signups .badge{margin-left:0}.side{flex-direction:column;gap:.6rem;max-height:calc(100vh - 32px);display:flex;position:sticky;top:16px}.patrons{flex-direction:column;gap:.2rem;margin:0;padding:0;list-style:none;display:flex}.chat{flex-direction:column;flex:1;gap:.4rem;min-height:0;display:flex}.chat-log{background:#15120f;border-radius:8px;flex-direction:column;flex:1;gap:.25rem;min-height:160px;margin:0;padding:.5rem;font-size:.9rem;list-style:none;display:flex;overflow-y:auto}.chat-log .system{color:var(--muted);font-style:italic}.chat .row{flex-wrap:nowrap}@media (width<=760px){.tavern-layout{grid-template-columns:1fr}.side{max-height:none;position:static}}.path-label,.target-label{white-space:nowrap;pointer-events:none;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}.path-label{color:#8ff0e8;background:#0d2f2c;border:1px solid #4ecdc4}.target-label{color:#ffd0c8;background:#3a1410;border:1px solid #e0574a}.damage-number{font:700 26px/1 var(--font-display);color:#fff;text-shadow:0 0 6px #e0574a,0 2px #000;pointer-events:none;animation:1.1s ease-out forwards damage-float}.damage-number.miss{color:#cfc6b8;text-shadow:0 2px #000;font-size:18px}@keyframes damage-float{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-50px)}}.path-label.short{color:#cfcfcf;background:#2a2a2a;border-color:#8a8a8a}.party{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.party li.me strong{color:var(--gold)}.bar{background:#15120f;border-radius:4px;height:16px;margin-top:3px;position:relative;overflow:hidden}.bar-fill{transition:width .12s linear;position:absolute;inset:0 auto 0 0}.bar.ap .bar-fill{background:#2f7f8a}.bar-label{z-index:1;padding-left:6px;font-size:11px;line-height:16px;position:relative}.costs{font-size:.85rem}.hero-icon{font-size:2rem;line-height:1}.hero-card.create{text-align:center;color:var(--muted);justify-content:center;align-items:center}.creator{max-width:1040px}.creator-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:2rem;display:grid}.oracle-turn{flex-direction:column;gap:1rem;animation:.35s ease-out oracle-in;display:flex}@keyframes oracle-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.oracle-reply{color:var(--muted);margin:0;font-style:italic}.oracle-speaks{align-items:center;gap:.9rem;display:flex}.oracle-speaks p{font:1.45rem/1.3 var(--font-display);color:var(--gold);margin:0}.oracle-eye{background:radial-gradient(circle,#3a2d17 0%,#15120f 70%);border-radius:50%;flex:none;place-items:center;width:3rem;height:3rem;font-size:1.5rem;display:grid;box-shadow:0 0 18px #e0b44c33}.answers{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;display:grid}.answers.wide{grid-template-columns:repeat(2,minmax(0,1fr))}.answer{text-align:left;border-radius:var(--radius);background:#1b1714;border:1px solid #0000;grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;column-gap:.7rem;padding:.7rem .8rem;transition:transform .12s,border-color .12s,background .12s;display:grid}.answer:hover{border-color:var(--panel-border);background:var(--panel);transform:translateY(-2px)}.answer.picked{background:var(--grain), #ecdfc2}.answer-icon{grid-row:span 2;font-size:1.9rem;line-height:1}.answer-name{font-weight:600}.answer-tagline{color:var(--muted);font-size:.85rem}.answer-detail{color:var(--muted);grid-column:1/-1;margin-top:.4rem;font-size:.8rem}.answer{position:relative}.answer.rare .answer-name{color:var(--gold)}.answer-mark{color:var(--muted);font-size:.75rem;position:absolute;top:.3rem;right:.45rem}.answer-mark.rare-mark{color:var(--gold)}.drawn{flex-direction:column;gap:.6rem;display:flex}.redraw{justify-content:space-between;font-size:.85rem}.oracle-name{flex-direction:column;gap:.6rem;max-width:480px;display:flex}.oracle-name p{margin:0}.name-row{flex-wrap:nowrap}.name-row input{font-size:1.15rem}.name-row button{white-space:nowrap}.chip{border-radius:999px;padding:.3rem .9rem}.oracle-done{flex-direction:column;align-items:flex-start;gap:.5rem;display:flex}button.big{padding:.8rem 1.6rem;font-size:1.1rem}.sheet{border-radius:var(--radius);background:linear-gradient(#2a231b,#201b16);border:1px solid #5a4630;flex-direction:column;align-items:center;gap:.6rem;padding:1.25rem;display:flex;position:sticky;top:16px}.sheet-portrait{width:6.5rem;height:6.5rem;color:var(--muted);border:1px solid var(--gold);background:#15120f;border-radius:50%;place-items:center;font-size:3.4rem;display:grid}.sheet-name{text-align:center;margin:0}.sheet-lines{width:100%;margin:0;padding:0;list-style:none}.sheet-line{text-align:right;background:0 0;border:none;border-bottom:1px dashed #5a4630;border-radius:0;justify-content:space-between;gap:.5rem;width:100%;padding:.4rem .2rem;display:flex}.sheet-line:hover .sheet-value,.sheet-line.current .sheet-label{color:var(--gold)}.sheet-label{color:var(--muted)}.sheet-stats{width:100%;font-size:.85rem}.sheet-stats p{margin:.2rem 0}.oracle-choose{width:100%}@media (width<=760px){.creator-layout{grid-template-columns:1fr;gap:1rem}.sheet{order:-1;grid-template-columns:auto 1fr;align-items:center;gap:.3rem .9rem;padding:.8rem;display:grid;position:static}.sheet-portrait{grid-row:span 2;width:3.6rem;height:3.6rem;font-size:1.9rem}.sheet-name{text-align:left;font-size:1.1rem}.sheet-lines{flex-wrap:wrap;gap:.3rem;display:flex}.sheet-line{border:1px solid #5a4630;border-radius:999px;padding:.1rem .55rem;font-size:.8rem}.sheet-label,.sheet-stats{display:none}.oracle-choose{grid-column:1/-1}.oracle-speaks p{font-size:1.15rem}.answers{gap:.35rem}.answers.wide{grid-template-columns:1fr}.answer{text-align:center;grid-template-columns:1fr;justify-items:center;padding:.55rem .3rem}.answer-icon{grid-row:auto;font-size:1.7rem}.answer-name{font-size:.85rem}.answer-tagline{font-size:.72rem}.answers.wide .answer{text-align:left;grid-template-columns:auto 1fr;justify-items:start}.answers.wide .answer-icon{grid-row:span 2}}.gear-strip{letter-spacing:.15rem;min-height:1.4rem;font-size:1.1rem}.gear-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start;gap:1rem;display:grid}.gear-slots{flex-direction:column;gap:.5rem;margin:0 0 1rem;padding:0;list-style:none;display:flex}.gear-slot{text-align:left;align-items:center;gap:.75rem;width:100%;display:flex}.gear-slot>span:last-child{flex-direction:column;display:flex}.gear-slot-name{text-transform:uppercase;letter-spacing:.05em;font-size:.75rem}.gear-slot.empty strong{color:var(--muted);font-weight:400}.gear-slot:disabled{opacity:1;cursor:default}.gear-icon{font-size:1.6rem;line-height:1}.gear-icon.big{font-size:2.2rem}.gear-bag{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-bottom:1rem;display:grid}.gear-cell{aspect-ratio:1;flex-direction:column;justify-content:center;align-items:center;gap:.3rem;padding:.3rem;display:flex}.gear-cell.empty{border:1px dashed var(--panel-border);background:#15120f;border-radius:8px}.gear-cell-name{color:var(--muted);text-align:center;font-size:.72rem;line-height:1.2}.gear-slot.selected,.gear-cell.selected{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}.gear-detail{border-top:1px solid var(--panel-border);flex-direction:column;gap:.5rem;padding-top:1rem;display:flex}.gear-detail h3,.gear-detail p,.gear-stats{margin:0}.stat.up{color:var(--ok);font-weight:600}.stat.down{color:var(--danger);font-weight:600}@media (width<=720px){.gear-layout{grid-template-columns:1fr}}.pack{flex-direction:column;gap:.3rem;margin:0;padding:0;list-style:none;display:flex}.pack li{align-items:center;gap:.5rem;font-size:.9rem;display:flex}.pack li .found{color:var(--gold);font-size:.75rem}.pack li button{margin-left:auto;padding:.2rem .6rem;font-size:.8rem}.oracle-writing{color:var(--muted);margin:0;font-style:italic;animation:1.4s ease-in-out infinite oracle-pulse}@keyframes oracle-pulse{50%{opacity:.45}}.oracle-description{max-width:560px;font:1.05rem/1.55 var(--font-display);border-left:3px solid var(--gold);border-radius:0 var(--radius) var(--radius) 0;background:#1b1714;margin:0;padding:.9rem 1.1rem;animation:.5s ease-out oracle-in}.hero-description{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:.82rem;font-style:italic;display:-webkit-box;overflow:hidden}.damage-number.heal{color:#b8f0b0;text-shadow:0 0 6px #3f9a4a,0 2px #000}h1,h2{font-family:var(--font-display);letter-spacing:.04em;font-weight:600}h3{font-family:var(--font);font-size:1.25rem;font-weight:600}.topbar h1{text-transform:uppercase;letter-spacing:.08em}.topbar h1:after{content:"";background:linear-gradient(var(--gold), var(--gold)) left 4px / calc(50% - 8px) 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right 4px / calc(50% - 8px) 1px no-repeat, linear-gradient(45deg, transparent 35%, var(--gold) 35% 65%, transparent 65%) center / 9px 9px no-repeat;opacity:.7;width:min(320px,100%);height:9px;margin-top:.25rem;display:block}.parchment,.panel,.answer,.sheet,.oracle-description,.toast,.gear-cell:not(.empty){--ink:var(--parchment-ink);--muted:var(--parchment-muted);--gold:var(--parchment-accent);--panel-border:#b6a37c;color:var(--ink);background:var(--grain), radial-gradient(ellipse at 30% 20%, #efe3c6, transparent 70%), var(--parchment);border:2px solid var(--ink-line);border-radius:var(--radius);box-shadow:inset 0 0 0 3px var(--parchment), inset 0 0 0 4px #5a4a33, inset 0 0 28px #8a6d4033, 0 3px 0 #0007, 0 8px 18px #0006}button{font-family:var(--font);color:#efe4cc;background:linear-gradient(#2b2823, var(--button));border:2px solid var(--ink-line);border-radius:var(--radius);font-weight:600;box-shadow:inset 0 0 0 1px #5d5242,0 2px #0008}button:hover:not(:disabled){border-color:var(--ink-line);box-shadow:inset 0 0 0 1px #9c8a6a,0 2px #0008}button:disabled{opacity:.45;filter:grayscale(.6)}button.primary{color:var(--accent-ink);border-color:var(--ink-line);background:linear-gradient(#ad3424,#7d1f15);box-shadow:inset 0 0 0 1px #e07a5c,0 0 0 1px #e0533a55,0 2px #0008}button.link{color:var(--muted);box-shadow:none;background:0 0;border:none;font-weight:500}button.link:hover:not(:disabled){color:var(--ink);box-shadow:none}input,select{font-family:var(--font);color:var(--parchment-ink);border:2px solid var(--ink-line);border-radius:var(--radius);background:#f2e8d0;box-shadow:inset 0 2px 4px #6a5b4433}input::placeholder{color:#8a7b62}.badge{color:#efe4cc;border:1px solid var(--ink-line);background:#2b2823}.actionbar{border-top:2px solid var(--ink-line);background:#141d1aee;box-shadow:0 -1px #3a4a43}.actionbar button{white-space:nowrap}.error{color:var(--danger)}.panel .error,.parchment .error{color:#9e2a1d}.answer.picked,.hero-card.selected,.gear-slot.selected,.gear-cell.selected,.notice-card.mine{border-color:var(--rust);box-shadow:inset 0 0 0 3px var(--parchment), inset 0 0 0 4px var(--rust), 0 0 0 1px var(--rust), 0 0 16px var(--rust-glow), 0 3px 0 #0007}.answer{font-family:var(--font);font-weight:400}.answer:hover{background:var(--grain), #ecdfc2;transform:translateY(-2px)}.answer-name{font-size:1.05rem;font-weight:600}.answer.rare{background:var(--grain), linear-gradient(135deg, #ead9a8, var(--parchment) 60%);border-color:var(--ink-line)}.answer.rare .answer-name,.answer-mark.rare-mark{color:var(--parchment-accent)}.hero-card{font-family:var(--font);font-weight:400}.hero-card.create{--muted:var(--parchment-muted);border-style:dashed}.oracle-speaks{--ink:var(--parchment-ink);color:var(--ink);background:var(--grain), radial-gradient(ellipse at 70% 30%, #efe3c6, transparent 70%), var(--parchment);border:2px solid var(--ink-line);border-radius:var(--radius);box-shadow:inset 0 0 0 3px var(--parchment), inset 0 0 0 4px #5a4a33, 0 3px 0 #0007, 0 8px 18px #0006;gap:1rem;padding:.9rem 1.2rem .9rem 1rem;position:relative}.oracle-speaks p{color:var(--parchment-ink);font:500 1.4rem/1.3 var(--font)}.oracle-speaks p:before{content:"Oraklet";font:600 .72rem/1 var(--font-display);letter-spacing:.22em;text-transform:uppercase;color:var(--parchment-muted);margin-bottom:.2rem;display:block}.oracle-eye{border:2px solid var(--ink-line);background:radial-gradient(circle,#f0d48a 0%,#b88a2e 55%,#3b2c14 100%);width:4rem;height:4rem;font-size:2rem;box-shadow:0 0 0 3px #c9a24a55}.oracle-reply{color:var(--muted)}.oracle-description{font:1.1rem/1.55 var(--font);border-left-width:2px}.oracle-writing{color:var(--muted)}.sheet-portrait{border:2px solid var(--ink-line);box-shadow:0 0 0 3px var(--parchment), 0 0 0 4px #5a4a33;color:var(--parchment-muted);background:radial-gradient(circle,#f2e8d0,#d3c19b)}.sheet-name{font-family:var(--font);font-size:1.6rem;font-weight:600}.sheet-line{color:var(--ink);font-family:var(--font);box-shadow:none;background:0 0;border-bottom-color:#a8946b;border-radius:0;font-weight:400}.sheet-line:hover:not(:disabled){box-shadow:none;border-bottom-color:var(--rust)}.sheet-line.current .sheet-label{color:var(--rust)}.chip{color:#efe4cc}.gear-cell.empty{border:2px solid var(--ink-line);background:#23211d;box-shadow:inset 0 2px 6px #000a}.bar{border:2px solid var(--ink-line);background:#1b1714;border-radius:2px;height:20px;box-shadow:inset 0 0 0 1px #0008}.bar-label{text-align:center;font:600 .78rem/16px var(--font);color:#f6ead2;text-shadow:0 1px #000;padding:0;display:block}.orbs{align-items:center;gap:.25rem;margin-top:.3rem;display:flex}.orbs .orbs-label{color:var(--muted);margin-right:.3rem;font-size:.78rem}.orb{border:2px solid var(--ink-line);background:radial-gradient(circle at 35% 30%, #ff9f8a55, transparent 45%), linear-gradient(to top, #b3281c calc(var(--fill) * 100%), #9a9283 calc(var(--fill) * 100%));border-radius:50%;width:1.05rem;height:1.05rem;box-shadow:inset 0 -2px 3px #0006}.orb.full{box-shadow:inset 0 -2px 3px #0006, 0 0 6px var(--rust-glow)}.log li:first-child{color:var(--ink)}.unit-label{font-family:var(--font);color:#efe4cc;background:#141d1acc;border:1px solid #000}img.art{object-fit:contain;width:100%;height:100%;display:block}.answer-icon,.gear-icon,.hero-icon,.pack-icon{place-items:center;display:grid}.answer-icon{width:2.6rem;height:2.6rem}.hero-icon{width:3rem;height:3rem}.gear-icon{width:2.2rem;height:2.2rem}.gear-icon.big{width:3.2rem;height:3.2rem}.pack-icon{width:1.6rem;height:1.6rem}.gear-strip{gap:.3rem;display:flex}.gear-strip .art{width:1.4rem;height:1.4rem}img.art.portrait{object-fit:cover;border-radius:50%}.oracle-eye img.art.portrait{width:100%;height:100%}.oracle-eye:has(img){background:0 0;overflow:hidden}.sheet-portrait{overflow:hidden}.sheet-portrait img.art.portrait{width:100%;height:100%}.threshold{background:radial-gradient(circle at 50% 38%, #3a2a1255 0%, transparent 38%), radial-gradient(ellipse at 50% 120%, #000 0%, transparent 60%), radial-gradient(ellipse at 50% 50%, transparent 40%, #050807 100%), var(--grain), var(--bg-deep);place-items:center;min-height:100vh;padding:16px 16px 4rem;display:grid;position:relative;overflow:hidden}.threshold-fog{pointer-events:none;opacity:.5;filter:blur(30px);background:radial-gradient(40% 20% at 20% 70%,#2a3b3588,#0000),radial-gradient(35% 18% at 80% 30%,#2a3b3566,#0000),radial-gradient(50% 25% at 60% 90%,#1b282488,#0000);animation:40s ease-in-out infinite alternate fog;position:absolute;inset:-20%}@keyframes fog{to{transform:translate(6%,-4%)scale(1.1)}}.embers{pointer-events:none;position:absolute;inset:0}.embers i{opacity:0;width:3px;height:3px;animation:ember var(--d) linear var(--delay) infinite;background:#f0b45a;border-radius:50%;position:absolute;bottom:-10px;box-shadow:0 0 6px 1px #e0533a}@keyframes ember{0%{opacity:0;transform:translate(0)}10%{opacity:.9}70%{opacity:.5}to{transform:translate(var(--x), -100vh);opacity:0}}.threshold-door{z-index:1;text-align:center;flex-direction:column;align-items:center;gap:.9rem;width:min(380px,100%);animation:1.6s cubic-bezier(.2,.7,.2,1) both rise;display:flex;position:relative}@keyframes rise{0%{opacity:0;filter:blur(4px);transform:translateY(14px)}}.sigil{filter:drop-shadow(0 0 18px #d2a64e33);width:min(260px,70vw);height:auto;margin-bottom:.3rem;overflow:visible}.sigil-spin{transform-origin:200px 200px;animation:120s linear infinite spin}.sigil-spin.slow{animation-duration:240s}.sigil-spin.rev{animation-duration:160s;animation-direction:reverse}@keyframes spin{to{transform:rotate(360deg)}}.sigil-runes{fill:var(--gold);font:600 15px var(--font-display);opacity:.75}.sigil-runes.small{opacity:.55;font-size:12px}.sigil-line{fill:none;stroke:var(--gold);stroke-width:1px;opacity:.5}.sigil-line.faint{opacity:.25}.sigil-maze{fill:none;stroke:var(--gold);stroke-width:2.5px;opacity:.35;stroke-linecap:square}.sigil-eye-white{fill:#0c0f0d}.sigil-eye-line{fill:none;stroke:var(--gold);stroke-width:2px;filter:drop-shadow(0 0 4px #d2a64e)}.sigil-iris{transition:transform .5s cubic-bezier(.2,.7,.2,1)}.sigil-iris-ring{fill:#3b1a0f;stroke:#a3271c;stroke-width:2px}.sigil-iris-inner{fill:#c24a2c;animation:4s ease-in-out infinite pulse}.sigil-pupil{fill:#050505}.sigil-glint{fill:#fff3d0;opacity:.7}@keyframes pulse{50%{fill:#e2733f}}.sigil-lid{transform-origin:200px 200px;transition:transform 90ms ease-in}.sigil-lid.blink{transform:scaleY(.06)}.threshold-title{font:600 clamp(1.6rem, 6vw, 2.1rem)/1.1 var(--font-display);letter-spacing:.14em;text-transform:uppercase;color:#efe4cc;text-shadow:0 0 18px #d2a64e55,0 2px #000;margin:0}.threshold-whisper{color:var(--muted);text-wrap:balance;max-width:36ch;margin:0 0 .4rem;font-size:1.05rem;font-style:italic}.threshold-fields{flex-direction:column;gap:.5rem;width:100%;display:flex}.threshold .threshold-fields input{text-align:center;font:500 1.05rem var(--font);letter-spacing:.04em;color:#efe4cc;box-shadow:none;background:linear-gradient(90deg,#0000,#d2a64e10 30% 70%,#0000);border:none;border-bottom:1px solid #d2a64e55;border-radius:0;padding:.6rem .5rem;transition:border-color .3s,background .3s}.threshold .threshold-fields input::placeholder{color:#8f8875;font-family:var(--font-display);letter-spacing:.2em;text-transform:uppercase;font-size:.8rem}.threshold .threshold-fields input:focus{border-bottom-color:var(--gold);background:linear-gradient(90deg,#0000,#d2a64e22 30% 70%,#0000);outline:none}.threshold-error{color:var(--danger);margin:0;font-style:italic}button.threshold-enter{width:100%;font:600 1rem var(--font-display);letter-spacing:.3em;text-transform:uppercase;color:var(--accent-ink);border:2px solid var(--ink-line);background:linear-gradient(#ad3424,#6e1a11);margin-top:.3rem;padding:.75rem 1rem;transition:box-shadow .3s,transform .15s;box-shadow:inset 0 0 0 1px #e07a5c,0 0 24px #e0533a33,0 2px #0008}button.threshold-enter:hover:not(:disabled){border-color:var(--ink-line);box-shadow:inset 0 0 0 1px #f0a080,0 0 36px #e0533a77,0 2px #0008}button.threshold-enter:active:not(:disabled){transform:translateY(1px)}button.threshold-switch{letter-spacing:.02em;font-size:.95rem;text-decoration:none}button.threshold-switch:hover:not(:disabled){color:var(--gold)}.build-stamp{z-index:1;font:500 .7rem/1.4 var(--font-display);letter-spacing:.18em;text-transform:uppercase;color:#6f6a5c;flex-wrap:wrap;justify-content:center;gap:.3rem .9rem;padding:0 16px;display:flex;position:absolute;bottom:.9rem;left:0;right:0}.build-stamp span+span:before{content:"◆";vertical-align:.15em;color:#d2a64e66;margin-right:.9rem;font-size:.5rem}.build-commit{letter-spacing:.05em;text-transform:none;font-family:ui-monospace,Consolas,monospace}@media (prefers-reduced-motion:reduce){.threshold-fog,.embers i,.sigil-spin,.sigil-iris-inner,.threshold-door{animation:none}.embers{display:none}}.level-choices{flex-direction:column;gap:1rem;padding-bottom:5rem;display:flex}.level-school h2{margin-bottom:.5rem}.level-badge{cursor:pointer;background:var(--rust);color:var(--accent-ink);font-weight:600}.level-badge:hover{filter:brightness(1.15)}.chat-log,.signups li{background:#f2e8d0;border:1px solid #b6a37c;box-shadow:inset 0 1px 3px #6a5b4433}img.kit{object-fit:contain;vertical-align:middle;flex:none;width:1.25rem;height:1.25rem}.with-icon{align-items:center;gap:.35rem;display:inline-flex}.costs{grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));gap:.3rem .6rem;margin:0;padding:0;font-size:.8rem;list-style:none;display:grid}.costs li{align-items:center;gap:.3rem;display:flex}.costs .cost{color:var(--muted);margin-left:auto}.stat-row{align-items:center;gap:.35rem;margin-top:.3rem;display:flex}.stat-row .bar,.stat-row .orbs{flex:1;margin-top:0}img.kit.stat-icon{width:1.4rem;height:1.4rem}.result{flex-direction:column;align-items:flex-start;gap:.4rem;display:flex}img.kit.result-icon{width:4rem;height:4rem}.hero-wealth{flex-wrap:wrap;gap:.2rem .8rem;display:flex}.hero-wealth>span{align-items:center;gap:.3rem;display:inline-flex}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line,.threshold-enter,.threshold-switch)){box-shadow:none;color:#efe4cc;text-shadow:0 1px #000a;background:0 0;border:8px solid #0000;border-image:url(/mork-saga/vector/button-secondary-default-m.svg) 12 fill;border-radius:0;padding:.3rem .8rem}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line,.threshold-enter,.threshold-switch)):hover:not(:disabled){box-shadow:none;border-image-source:url(/mork-saga/vector/button-secondary-hover-m.svg)}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line,.threshold-enter,.threshold-switch)):active:not(:disabled){border-image-source:url(/mork-saga/vector/button-secondary-pressed-m.svg)}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line,.threshold-enter,.threshold-switch)):disabled{opacity:.75;filter:none;border-image-source:url(/mork-saga/vector/button-secondary-disabled-m.svg)}button.primary:not(:where(.link,.threshold-enter)){box-shadow:none;color:var(--accent-ink);background:0 0;border-image-source:url(/mork-saga/vector/button-primary-default-m.svg)}button.primary:not(:where(.link,.threshold-enter)):hover:not(:disabled){box-shadow:none;border-image-source:url(/mork-saga/vector/button-primary-hover-m.svg)}button.primary:not(:where(.link,.threshold-enter)):active:not(:disabled){border-image-source:url(/mork-saga/vector/button-primary-pressed-m.svg)}button.primary:not(:where(.link,.threshold-enter)):disabled{border-image-source:url(/mork-saga/vector/button-primary-disabled-m.svg)}button.chip{border-radius:0}.panel,.sheet,.oracle-speaks,.toast{background:0 0;border:14px solid #0000;border-image:url(/mork-saga/vector/panel-parchment-m.svg) 24 fill;border-radius:0;box-shadow:0 8px 18px #0006}.panel{padding:.6rem .8rem}.answer{background:0 0;border:9px solid #0000;border-image:url(/mork-saga/vector/panel-parchment-s.svg) 24 fill;border-radius:0;box-shadow:0 3px #0005}.answer:hover,.answer.rare,.answer.picked{background:0 0}.answer.rare{border-image-source:url(/mork-saga/vector/panel-dialog-s.svg)}.hud{border-width:14px}.hero-card.create{opacity:.85;border-style:solid}.answer.picked,.hero-card.selected,.gear-slot.selected,.notice-card.mine{box-shadow:0 0 0 2px var(--rust), 0 0 18px var(--rust-glow), 0 3px 0 #0007}.gear-cell,.gear-cell.empty,.gear-cell:not(.empty){--ink:#efe4cc;--muted:#b3ab97;color:var(--ink);box-shadow:none;background:0 0;border:8px solid #0000;border-image:url(/mork-saga/vector/slot-default-96.svg) 12 fill;border-radius:0}.gear-cell.empty{border-image-source:url(/mork-saga/vector/slot-disabled-96.svg)}.gear-cell.selected{box-shadow:0 0 14px var(--rust-glow);border-image-source:url(/mork-saga/vector/slot-selected-96.svg)}.gear-cell-name{color:var(--muted)}.gear-slot .gear-icon,.pack-icon{box-sizing:content-box;border:5px solid #0000;border-image:url(/mork-saga/vector/slot-default-48.svg) 12 fill;padding:2px}.gear-slot.empty .gear-icon{border-image-source:url(/mork-saga/vector/slot-disabled-48.svg)}.bar{height:24px;box-shadow:none;background:url(/mork-saga/vector/bar-track.svg) 50%/100% 100%;border:none;border-radius:0;padding:4px;overflow:hidden}.bar-fill{background:url(/mork-saga/vector/bar-health-fill.svg) 0/256px 100% repeat-x;max-width:calc(100% - 8px);inset:4px auto 4px 4px}.bar.hp .bar-fill{background:url(/mork-saga/vector/bar-health-fill.svg) 0/256px 100% repeat-x}.bar.ap .bar-fill{background-image:url(/mork-saga/vector/bar-ap-fill.svg)}.bar.xp .bar-fill{background:url(/mork-saga/vector/bar-xp-fill.svg) 0/256px 100% repeat-x}.bar-label{line-height:16px;position:relative}.bar.xp{height:16px;padding:3px}.bar.xp .bar-fill{max-width:calc(100% - 6px);inset:3px auto 3px 3px}.orb{width:1.4rem;height:1.4rem;box-shadow:none;background:url(/mork-saga/vector/ap-empty.svg) 50%/contain no-repeat;border:none;border-radius:0;position:relative}.orb:after{content:"";clip-path:inset(calc((1 - var(--fill,0)) * 100%) 0 0 0);background:url(/mork-saga/vector/ap-full.svg) 50%/contain no-repeat;position:absolute;inset:0}.orb:not(.full):after{opacity:.8}.orb.full{box-shadow:none;filter:drop-shadow(0 0 4px var(--rust-glow))}.admin-sections{flex-direction:column;gap:1.5rem;display:flex}.admin-sections h2{margin:0 0 .6rem}.admin-stats,.admin-periods{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.8rem;display:grid}.admin-stat{flex-direction:column;gap:.15rem;display:flex}.admin-period h3{margin:0;font-size:1rem}.admin-period ul{margin:.3rem 0 0;padding-left:1.1rem;font-size:.9rem}.admin-big{font:600 1.6rem/1.2 var(--font);margin:.2rem 0}.admin-table{padding:.4rem;overflow-x:auto}.admin-table table{border-collapse:collapse;width:100%;font-size:.88rem}.admin-table th,.admin-table td{text-align:left;border-bottom:1px solid var(--panel-border);vertical-align:top;padding:.35rem .5rem}.admin-table th{color:var(--muted);white-space:nowrap;font-weight:600}.admin-table td:first-child{white-space:nowrap}.ritual{z-index:100;background:radial-gradient(circle at 50% 42%,#3a2a1244 0%,#0000 40%),radial-gradient(#0000 35%,#000 100%),#050706;padding:24px 16px;animation:.9s ease-out both ritual-dark;display:flex;position:fixed;inset:0;overflow:hidden auto}@keyframes ritual-dark{0%{opacity:0}}.ritual .ritual-work,.ritual .ritual-reveal{z-index:1;margin:auto;position:relative}.ritual-work{text-align:center;flex-direction:column;align-items:center;gap:1.1rem;animation:1.6s cubic-bezier(.2,.7,.2,1) .5s both rise;display:flex}.ritual .sigil{width:min(320px,72vw,48vh);margin:0;transition:filter 1.2s}.ritual .sigil-spin{animation-duration:26s}.ritual .sigil-spin.slow{animation-duration:44s}.ritual .sigil-spin.rev{animation-duration:32s}.ritual.stage-painting .sigil{filter:drop-shadow(0 0 26px #d2a64e55)}.ritual.stage-carving .sigil{filter:drop-shadow(0 0 36px #e0533a66)}.ritual.stage-carving .sigil-spin{animation-duration:14s}.ritual.stage-carving .sigil-spin.slow{animation-duration:22s}.ritual.stage-awakening .sigil{animation:1.4s ease-in forwards awaken}@keyframes awaken{55%{filter:drop-shadow(0 0 60px #f0b45a);transform:scale(1.12)}to{opacity:0;filter:drop-shadow(0 0 90px #fff3d0);transform:scale(2.6)}}.ritual.stage-awakening .ritual-line,.ritual.stage-awakening .ritual-steps{opacity:0;transition:opacity .6s}.ritual-line{color:#efe4cc;max-width:34ch;min-height:1.6em;font:italic 1.15rem/1.5 var(--font);text-wrap:balance;margin:0}.ritual-steps{gap:2rem;margin:0;padding:0;list-style:none;display:flex}.ritual-steps li{font:600 .7rem var(--font-display);letter-spacing:.2em;text-transform:uppercase;color:#6f6a5c;flex-direction:column;align-items:center;gap:.25rem;transition:color .6s;display:flex}.ritual-rune{color:#3a3428;font-size:1.7rem;line-height:1;transition:color .6s,text-shadow .6s}.ritual-steps li.now{color:var(--gold)}.ritual-steps li.now .ritual-rune{color:var(--gold);animation:1.4s ease-in-out infinite rune-pulse}.ritual-steps li.done{color:#c9a77a}.ritual-steps li.done .ritual-rune{color:#f0b45a;text-shadow:0 0 12px #e0533a}@keyframes rune-pulse{50%{text-shadow:0 0 16px #d2a64e;transform:scale(1.12)}}.ritual-flash{z-index:2;pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 45%,#fff3d0 0%,#f0b45a 25%,#e0533a55 50%,#0000 75%);position:fixed;inset:0}.ritual.stage-awakening .ritual-flash{animation:1.4s ease-in forwards flare}.ritual.stage-reveal .ritual-flash{animation:1.6s ease-out forwards flare-out}@keyframes flare{0%,55%{opacity:0}to{opacity:.95}}@keyframes flare-out{0%{opacity:.95}to{opacity:0}}.ritual-reveal{text-align:center;flex-direction:column;align-items:center;gap:1rem;max-width:640px;display:flex}.ritual-pictures{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:1.5rem;display:flex}.ritual-portrait{aspect-ratio:1;border:2px solid var(--gold);background:#15120f;border-radius:50%;place-items:center;width:min(230px,58vw);animation:1.3s cubic-bezier(.2,.7,.2,1) .2s both portrait-in;display:grid;overflow:hidden;box-shadow:0 0 0 4px #0c0f0d,0 0 0 5px #d2a64e88,0 0 70px #d2a64e55}.ritual-portrait .art{width:100%;height:100%}.ritual-portrait .art-emoji{place-items:center;font-size:6rem;display:grid}@keyframes portrait-in{0%{opacity:0;filter:blur(10px)brightness(2.2);transform:scale(.8)}}.ritual-figure{width:min(190px,44vw);animation:1.3s cubic-bezier(.2,.7,.2,1) .8s both figure-in;position:relative}.ritual-figure img{z-index:1;filter:drop-shadow(0 6px 10px #000c);width:100%;height:auto;display:block;position:relative}.ritual-plinth{background:radial-gradient(#d2a64e66,#0000 70%);border-radius:50%;height:16px;position:absolute;bottom:2%;left:12%;right:12%}@keyframes figure-in{0%{opacity:0;filter:brightness(2);transform:translateY(36px)}}.ritual-name{animation:1s cubic-bezier(.2,.7,.2,1) 1.1s both rise}.ritual .ritual-mute{z-index:2;color:#a99e81;position:fixed;top:12px;right:12px}.ritual .ritual-listen{color:#d6b56a;animation:1s cubic-bezier(.2,.7,.2,1) 2.6s both rise}.ritual-text{color:#d9cfb8;max-width:54ch;font:1.12rem/1.65 var(--font);text-wrap:pretty;margin:0}.ritual-text span{opacity:0;animation:sentence-in 1.1s calc(1.8s + var(--i) * .8s) ease-out forwards}@keyframes sentence-in{0%{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}button.threshold-enter.ritual-go{width:auto;padding:.75rem 2.2rem;animation:1s cubic-bezier(.2,.7,.2,1) 2.6s both rise}@media (prefers-reduced-motion:reduce){.ritual,.ritual-work,.ritual .sigil,.ritual .sigil-spin,.ritual-flash,.ritual-portrait,.ritual-figure,.ritual-name,.ritual-text span,.ritual-go,.ritual-listen,.ritual-rune{animation:none!important}.ritual-text span{opacity:1}}.intro{z-index:100;cursor:pointer;background:radial-gradient(circle at 50% 38%,#3a2a1244 0%,#0000 40%),radial-gradient(#0000 35%,#000 100%),#050706;padding:56px 16px 24px;animation:1.2s ease-out both ritual-dark;display:flex;position:fixed;inset:0;overflow:hidden auto}.intro-top{z-index:2;justify-content:space-between;gap:1rem;display:flex;position:fixed;top:10px;left:12px;right:12px}.intro-top button.link{color:#a99e81;letter-spacing:.04em;text-decoration:none}.intro-top button.link:hover:not(:disabled){color:var(--gold)}.intro-stage{z-index:1;text-align:center;flex-direction:column;align-items:center;gap:1.6rem;margin:auto;display:flex;position:relative}.intro .sigil{opacity:.35;filter:brightness(.6);width:min(300px,64vw,42vh);margin:0;transition:opacity 2s,transform 2.4s cubic-bezier(.2,.7,.2,1),filter 2s;transform:scale(.85)}.intro.awake .sigil{opacity:1;filter:drop-shadow(0 0 30px #d2a64e44);transform:none}.intro.final .sigil{filter:drop-shadow(0 0 60px #f0b45a99)}.intro.final .sigil-spin{animation-duration:12s}.intro-line{color:#efe4cc;max-width:30ch;min-height:4.6em;font:italic 1.45rem/1.55 var(--font);text-wrap:balance;margin:0;animation:1.4s cubic-bezier(.2,.7,.2,1) both intro-line-in}.intro-line.waiting{color:#6f6a5c;animation:none}@keyframes intro-line-in{0%{opacity:0;filter:blur(4px);transform:translateY(10px)}}.intro-final{flex-direction:column;align-items:center;gap:.6rem;min-height:4.6em;display:flex}.intro-eyebrow{color:#c9a77a;font:600 .8rem var(--font-display);letter-spacing:.35em;text-transform:uppercase;margin:0;animation:1s .2s both rise}.intro-title{margin:0;font-size:clamp(2rem,7vw,3.4rem);animation:2s cubic-bezier(.2,.7,.2,1) .4s both intro-title-in}@keyframes intro-title-in{0%{opacity:0;letter-spacing:.5em;filter:blur(8px)brightness(2)}}button.threshold-enter.intro-enter{width:auto;margin-top:.8rem;padding:.75rem 2.6rem;animation:1s cubic-bezier(.2,.7,.2,1) 2.2s both rise}.intro-progress{gap:.55rem;margin:0;padding:0;list-style:none;display:flex}.intro-progress li{background:#3a3428;border-radius:50%;width:7px;height:7px;transition:background .6s,box-shadow .6s}.intro-progress li.now{background:var(--gold);box-shadow:0 0 10px #d2a64e}.intro-progress li.done{background:#8a6a3a}@media (prefers-reduced-motion:reduce){.intro,.intro .sigil,.intro .sigil-spin,.intro-line,.intro-eyebrow,.intro-title,.intro-enter{transition:none!important;animation:none!important}}.intro-sound{gap:.8rem;display:flex}.adventure-topbar .music-toggle,.saga-nav-actions .music-toggle{white-space:nowrap}.heroes-page{max-width:1240px;padding:0 32px 150px}.heroes-header{border-bottom:1px solid #c4ac6b30;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;display:flex}.heroes-brand{color:#dfcda5;font:600 .8rem var(--font-display);letter-spacing:.08em;align-items:center;gap:10px;text-decoration:none;display:flex}.heroes-brand img.kit{width:30px;height:30px}.heroes-account{align-items:center;gap:16px;font-size:.9rem;display:flex}.heroes-email{color:var(--muted);overflow-wrap:anywhere}.heroes-account button.link{text-decoration:none}.heroes-intro{justify-content:space-between;align-items:center;gap:24px;padding:42px 0 32px;display:flex}.heroes-eyebrow{color:#c9ab6c;font:600 .65rem var(--font-display);letter-spacing:.22em;text-transform:uppercase;margin:0 0 8px}.heroes-intro h1{color:#f0e1bf;letter-spacing:-.025em;margin:0;font-size:clamp(2.1rem,5vw,3.5rem);font-weight:500;line-height:1.15}.heroes-subtitle{color:#b8b5a5;margin:12px 0 0;font-size:1.1rem;font-style:italic}.heroes-intro img.heroes-crest{object-fit:contain;opacity:.75;width:112px;height:112px}.heroes-section-heading{border-bottom:1px solid #c4ac6b30;align-items:center;gap:16px;padding:0 0 14px;display:flex}.heroes-section-heading h2{letter-spacing:.04em;margin:0;font-size:1rem;font-weight:500}.heroes-count{color:#b3ab97;margin-left:auto;font-size:.9rem}.heroes-empty{max-width:560px;color:var(--muted)}.heroes-page .hero-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-items:stretch;gap:24px;margin:24px 0 0}.heroes-page .hero-entry{flex-direction:column;min-width:0;display:flex}.heroes-page .hero-card{background:var(--grain), linear-gradient(125deg, #eddfbf, #d7c49e);width:100%;min-width:0;height:100%;text-shadow:none;border:1px solid #8e7953;border-image:;border-radius:5px;gap:0;padding:0;transition:border-color .18s,box-shadow .18s,transform .18s;overflow:hidden;box-shadow:0 5px 18px #0004}.heroes-page .hero-card:hover{border-color:#d2ae68;transform:translateY(-3px);box-shadow:0 8px 24px #0006}.heroes-page .hero-card.away{opacity:.85;cursor:pointer}.heroes-page button:focus-visible,.heroes-brand:focus-visible{outline-offset:5px;outline:3px solid #e3be72}.hero-portrait-stage{background:radial-gradient(at 50% 90%,#64715b60,#0000 70%),#172720;border-bottom:1px solid #9c8050;flex-shrink:0;justify-content:center;align-items:flex-end;width:100%;height:172px;display:flex;position:relative;overflow:hidden}.hero-portrait-stage:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 -20px 30px -20px #080e0a}.heroes-page .hero-icon{width:172px;height:172px;font-size:5rem}.heroes-page .hero-icon .art{object-fit:contain;border-radius:0;width:100%;height:100%}.heroes-page .hero-icon .portrait{object-fit:cover}.hero-level,.hero-selection{z-index:1;color:#e2d1ad;background:#111b16e8;border:1px solid #a18b5d66;padding:4px 8px;font-size:.7rem;line-height:1.4;position:absolute;top:12px}.hero-level{left:12px}.hero-level b{padding-left:3px;font-size:.9rem}.hero-selection{opacity:0;transition:opacity .18s;right:12px}.hero-card:hover .hero-selection,.hero-card:focus-visible .hero-selection,.hero-card.selected .hero-selection,.hero-card.away .hero-selection{opacity:1}.hero-card.selected .hero-selection{color:#17231b;background:#dab875;border-color:#e6c583}.hero-card-body{flex-direction:column;flex:1;gap:9px;width:100%;padding:19px 20px 18px;display:flex}.hero-identity{color:#725c38;font:600 .63rem var(--font-display);text-transform:uppercase;letter-spacing:.075em;line-height:1.5}.hero-name{font:600 1.65rem/1.15 var(--font-display);color:#30261b;overflow-wrap:anywhere}.hero-vibe{color:#6a593f;min-height:2.7em;font-size:.93rem;line-height:1.35}.hero-vibe b{font-weight:600}.heroes-page .hero-description{color:#6a593f;-webkit-line-clamp:2;margin:0;font-size:.85rem;line-height:1.4}.hero-abilities{flex-wrap:wrap;gap:5px;margin:3px 0;display:flex}.hero-abilities>span{color:#655133;background:#8a683b12;border:1px solid #8a683b40;border-radius:2px;padding:2px 7px;font-size:.8rem}.hero-card-bottom{flex-direction:column;gap:10px;margin-top:auto;padding-top:10px;display:flex}.heroes-page .gear-strip{gap:7px;min-height:32px;display:flex}.heroes-page .gear-strip>span{background:#f4e8ca70;border:1px solid #8a683b40;border-radius:3px;place-items:center;width:32px;height:32px;display:grid}.heroes-page .gear-strip .art{width:26px;height:26px}.heroes-page .hero-wealth{color:#665235;border-top:1px solid #8a683b40;justify-content:space-between;gap:4px;padding-top:10px;font-size:.86rem}.heroes-page .hero-wealth img.kit{width:18px;height:18px}.heroes-page .bar.xp{background:#b3a17c;border-radius:4px;width:100%;height:6px;margin:0;padding:0;display:block;box-shadow:inset 0 1px 2px #392b2333}.heroes-page .bar.xp .bar-fill{background:linear-gradient(90deg,#826127,#ae843b);border-radius:4px;max-width:100%;inset:0 auto 0 0}.heroes-page .hero-level-up{margin-top:10px;font-size:.9rem}.heroes-page .hero-listen{align-self:flex-start;margin-top:6px;font-size:.9rem}.heroes-page .hero-card.create{opacity:1;color:#c0b496;background:#17272055;border:1px dashed #a994635c;border-image:;gap:12px;min-height:410px;padding:32px 24px;box-shadow:inset 0 0 70px #0d17132b}.heroes-page .create .hero-name{color:#e5d7b7;font-size:1.5rem}.heroes-page .create .muted{color:#b3ab97;font-size:.95rem}.heroes-page .create .heroes-eyebrow{color:#ad986c;margin:8px 0 0;font-size:.6rem}.hero-create-mark{color:#c9ab6c;border:1px solid #c9ab6c66;border-radius:50%;place-items:center;width:68px;height:68px;font:300 2.6rem Georgia,serif;display:grid}.hero-create-link{color:#d4bb86;margin-top:16px;font-size:.9rem}.heroes-adventures{margin:0 0 30px}.heroes-adventures h2{font-size:1rem}.heroes-page .heroes-actionbar{padding:16px 32px max(16px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:10;background:#121d18f5;border-top:1px solid #b39b5e55;box-shadow:0 -8px 30px #0a100e33}.heroes-actions-inner{align-items:center;gap:16px;width:100%;max-width:1176px;margin:0 auto;display:flex}.heroes-current{align-items:center;gap:12px;min-width:0;margin-right:auto;display:flex}.heroes-current>img.kit{width:40px;height:40px}.heroes-current>div{flex-direction:column;gap:3px;display:flex}.heroes-current-label{color:#aaa791;font-size:.7rem}.heroes-current strong{color:#e8d8b6;overflow-wrap:anywhere;font-size:1.1rem;font-weight:500}.heroes-page .heroes-continue{min-width:190px}.heroes-page .heroes-delete{color:#b9a991;font-size:.85rem}.heroes-delete-warning{color:#ebc9a7;max-width:600px;margin-right:auto}@media (width>=1160px){.heroes-page .hero-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=760px){.heroes-page{padding:0 20px 185px}.heroes-header{align-items:flex-start;padding:16px 0}.heroes-account{flex-wrap:wrap;justify-content:flex-end;gap:12px}.heroes-email{display:none}.heroes-brand{max-width:155px;font-size:.7rem}.heroes-intro{padding:32px 0 26px}.heroes-intro img.heroes-crest{width:80px;height:80px}.heroes-page .hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hero-card-body{padding:16px}.hero-name{font-size:1.4rem}.heroes-page .heroes-actionbar{padding:12px 20px max(12px, env(safe-area-inset-bottom))}.heroes-actions-inner{flex-wrap:wrap;gap:10px}.heroes-current{flex-basis:calc(100% - 80px)}.heroes-current>img.kit{width:28px;height:28px}.heroes-actions-inner>button:not(.link){flex:1}.heroes-page .heroes-continue{min-width:0}.heroes-delete-warning{flex-basis:100%;font-size:.95rem}}@media (width<=480px){.heroes-page{padding-left:16px;padding-right:16px}.heroes-page .hero-grid{grid-template-columns:minmax(0,1fr);gap:20px}.heroes-intro img.heroes-crest{width:56px;height:56px}.heroes-subtitle{font-size:1rem}.hero-portrait-stage{height:190px}.heroes-page .hero-icon{width:190px;height:190px}.hero-card-body{padding:20px}.heroes-page .hero-card.create{min-height:300px}.heroes-actions-inner{gap:8px}.heroes-page .heroes-actionbar{padding-left:16px;padding-right:16px}}@media (prefers-reduced-motion:reduce){.heroes-page .hero-card,.hero-selection{transition:none}.heroes-page .hero-card:hover{transform:none}}body:has(.intro-illustrated){overflow:hidden}.intro.intro-illustrated{isolation:isolate;background:#080e0b;padding:72px 32px 54px}.intro-backdrops,.intro-shade{pointer-events:none;position:absolute;inset:0}.intro-backdrops{z-index:-3;overflow:hidden}.intro-backdrop{object-fit:cover;object-position:55% 45%;opacity:0;width:100%;height:100%;transition:opacity 1.8s;position:absolute;transform:scale(1.035)}.intro-backdrop.visible{opacity:1;animation:28s ease-out both intro-drift}.intro-backdrop:first-child{object-position:65% 45%}.intro-shade{z-index:-2;background:linear-gradient(#03090770,#0000 22% 47%,#050b08bf 77%,#050b08f5),radial-gradient(at 50% 40%,#0000 25%,#02060565)}.intro-illustrated .threshold-fog{opacity:.2;pointer-events:none;animation:none;inset:0}.intro-illustrated .embers{overflow:hidden}.intro-illustrated .intro-top{top:18px;left:24px;right:24px}.intro-illustrated .intro-top button.link{color:#ecddba;text-shadow:0 2px 8px #000}.intro-illustrated .intro-stage{gap:18px;width:min(900px,100%);margin:auto auto 0}.intro-illustrated .sigil{flex-shrink:0;width:92px}.intro-illustrated .intro-line{text-shadow:0 2px 12px #000,0 1px 3px #000;max-width:58ch;min-height:3.1em;font-size:clamp(1.15rem,2.1vw,1.5rem)}.intro-illustrated .intro-progress{margin-top:2px}.intro-illustrated .intro-final{gap:8px}.intro-illustrated .intro-title{text-shadow:0 3px 18px #000;font-size:clamp(2rem,5vw,3.5rem)}.intro-illustrated.final .sigil{width:72px}.intro-illustrated button.intro-enter{margin-top:4px}@keyframes intro-drift{0%{transform:scale(1.035)}to{transform:scale(1.105)}}@media (width<=600px){.intro.intro-illustrated{padding:64px 20px 34px}.intro-illustrated .intro-top{top:12px;left:12px;right:12px}.intro-illustrated .intro-stage{gap:14px}.intro-illustrated .sigil{width:72px}.intro-illustrated .intro-line{min-height:6.2em}.intro-backdrop{object-position:67% 40%}.intro-backdrop:first-child{object-position:73% 40%}.intro-shade{background:linear-gradient(#03090766,#0000 20%,#050b0820 40%,#050b08e6 76%,#050b08)}}@media (height<=550px) and (width>=601px){.intro.intro-illustrated{padding-bottom:22px}.intro-illustrated .intro-stage{gap:8px}.intro-illustrated .sigil,.intro-illustrated.final .sigil{width:48px}}@media (prefers-reduced-motion:reduce){.intro-backdrop,.intro-backdrop.visible{transition:none;animation:none;transform:none}}:root{--saga-paper-frame:url(/mork-saga/ui-art/ui-panels-parchment.png);--saga-dark-frame:url(/mork-saga/ui-art/ui-panels-dark.png);--saga-button:url(/mork-saga/ui-art/ui-buttons-dark-default.png);--saga-primary:url(/mork-saga/ui-art/ui-buttons-primary-default.png)}body{background:linear-gradient(#0c1813a8,#101b17f2 75%),url(/mork-saga/scene/title.png) top/cover fixed,#121e18}.page:not(.adventure){max-width:1240px;padding:0 28px 64px}.page.heroes-page,.page.level-up{padding-bottom:180px}button,a,input{-webkit-tap-highlight-color:transparent}button{min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:4px;outline:3px solid #d6ac58}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line)){border:11px solid #0000;border-image:var(--saga-button) 40 fill stretch;color:#f0e1be;text-shadow:0 1px 2px #000;background:0 0;border-radius:0;padding:3px 15px;font-weight:500;box-shadow:0 3px 8px #0004}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line)):hover:not(:disabled){border-image-source:url(/mork-saga/ui-art/ui-buttons-dark-hover.png);box-shadow:0 3px 12px #0006}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line)):active:not(:disabled){border-image-source:url(/mork-saga/ui-art/ui-buttons-dark-pressed.png)}button.primary:not(.link),button.threshold-enter{border:11px solid #0000;border-image:var(--saga-primary) 40 fill stretch;color:#fff0d0;background:0 0;box-shadow:0 3px 8px #0004}button.primary:not(.link):hover:not(:disabled),button.threshold-enter:hover:not(:disabled){border-image-source:url(/mork-saga/ui-art/ui-buttons-primary-hover.png)}button.primary:not(.link):active:not(:disabled),button.threshold-enter:active:not(:disabled){border-image-source:url(/mork-saga/ui-art/ui-buttons-primary-pressed.png)}button:not(:where(.link,.answer,.hero-card,.gear-slot,.gear-cell,.sheet-line)):disabled{opacity:.65;filter:saturate(.5);cursor:not-allowed;border-image-source:url(/mork-saga/ui-art/ui-buttons-disabled.png)}button.primary:not(.link):disabled,button.threshold-enter:disabled{border-image-source:url(/mork-saga/ui-art/ui-buttons-disabled.png)}button.link{text-underline-offset:4px}.panel,.sheet,.oracle-speaks,.toast{border:20px solid #0000;border-image:var(--saga-paper-frame) 48 fill stretch;background:0 0;border-radius:0;padding:16px;box-shadow:0 8px 24px #0005}.saga-dark{--ink:#efdfba;--muted:#bcb091;--gold:#d7ae62;color:var(--ink);border-image-source:var(--saga-dark-frame)}.notice{color:#392a18;background:var(--grain), #ddc79d;border-color:#9d4324;padding:20px 24px}.saga-nav{border-bottom:1px solid #bda36a55;align-items:center;gap:28px;min-height:90px;display:flex}.saga-brand{color:#e4cfa0;font:600 .8rem/1.35 var(--font-display);letter-spacing:.09em;flex-shrink:0;align-items:center;gap:12px;text-decoration:none;display:flex}.saga-brand img.kit{width:48px;height:48px}.saga-tabs{align-items:stretch;gap:6px;display:flex}.saga-tabs a,.saga-tabs button.link{color:#bfb397;border-bottom:2px solid #0000;justify-content:center;align-items:center;gap:8px;padding:14px 16px;font-size:.9rem;text-decoration:none;display:flex}.saga-tabs img.kit{width:26px;height:26px}.saga-tabs [aria-current=page]{color:#efdcaf;background:linear-gradient(#0000,#d1a2510f);border-bottom-color:#b4833f}.saga-tabs a:hover,.saga-tabs button.link:hover{color:#fff1cf}.saga-nav-actions{align-items:center;gap:12px;margin-left:auto;font-size:.85rem;display:flex}.saga-nav-actions .heroes-email{display:none}.saga-heading{justify-content:space-between;align-items:center;gap:24px;padding:34px 0 30px;display:flex}.saga-eyebrow{color:var(--gold);font:600 .65rem/1.5 var(--font-display);letter-spacing:.19em;text-transform:uppercase;margin:0 0 8px}.saga-heading h1,.tavern-welcome h1{letter-spacing:.015em;color:#efdab0;margin:0;font-size:clamp(1.9rem,4vw,3.1rem);font-weight:500}.saga-subtitle{color:#c2b698;max-width:52ch;font:italic 1.08rem/1.5 var(--font);margin:10px 0 0}.saga-heading-actions{flex-shrink:0;gap:12px;display:flex}.saga-section-title{font-family:var(--font-display);align-items:center;gap:10px;margin:0 0 16px;font-size:1.05rem;display:flex}.saga-section-title img{object-fit:contain;width:32px;height:32px}.saga-counter{font:500 .9rem var(--font);color:var(--muted);margin-left:auto}.actionbar{z-index:10;background:#111a16f7;border-top:2px solid #907341;gap:20px;padding:14px max(24px,50vw - 592px);box-shadow:0 -6px 20px #0004}.actionbar>span{margin-right:auto}.toast{z-index:40;color:#362718;max-width:calc(100vw - 32px)}.heroes-intro{padding-top:32px}.heroes-page .hero-card{border:12px solid #0000;border-image:var(--saga-paper-frame) 42 fill stretch;background:0 0;border-radius:0;overflow:visible;box-shadow:0 6px 18px #0007}.heroes-page .hero-card:hover{border-color:#0000}.heroes-page .hero-card.selected{border-color:#0000;box-shadow:0 0 0 2px #a84328,0 0 20px #b9472633,0 8px 20px #0006}.heroes-page .hero-card-body{padding:16px 10px 10px}.heroes-page .hero-portrait-stage{background:#14221b;border-bottom:2px solid #211a0e}.heroes-page .hero-card.create{border:16px solid #0000;border-image:var(--saga-dark-frame) 45 fill stretch;background:0 0;padding:24px 14px}.heroes-page .hero-card.create:hover{background:0 0;border-color:#0000}.heroes-page .hero-name{color:#2c2115}.heroes-page .hero-card.selected .hero-selection{color:#ffebc6;background:#862d1b;border-color:#c18b4c}.heroes-page .heroes-actionbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#111a16f7;border-top:2px solid #907341}.heroes-page .gear-strip>span{background:#b49b6820;border-color:#735b3466}.threshold{background:linear-gradient(#07100c66,#07100c99),url(/mork-saga/scene/title.png) 50%/cover}.threshold-door{border:20px solid #0000;border-image:var(--saga-dark-frame) 48 fill stretch;width:min(440px,100%);padding:25px 28px;box-shadow:0 12px 60px #000a}.threshold-door .sigil{width:min(200px,48vw)}.threshold .threshold-fields input{color:#f1dfb6;background:#080f0dcc;border:1px solid #a0864d99;border-radius:0;min-height:48px}.threshold-door .threshold-title{font-size:1.7rem}.threshold-door button.threshold-enter{width:100%}.threshold .threshold-whisper{font-size:1rem}.ritual{background:radial-gradient(#0b1410e6,#090e0cf8),url(/mork-saga/scene/title.png) 50%/cover}.intro{background:radial-gradient(#0b1410ee,#050706fc),url(/mork-saga/scene/title.png) 50%/cover}.ritual .ritual-reveal{border:22px solid #0000;border-image:var(--saga-dark-frame) 48 fill stretch;max-width:720px;padding:28px}.ritual .ritual-portrait{border:14px solid #0000;border-image:var(--saga-paper-frame) 48 fill stretch;border-radius:0;box-shadow:0 8px 28px #0008}.ritual .ritual-portrait .portrait{border-radius:0}.creator-progress{border-bottom:1px solid #c2a66c40;gap:8px;margin:0 0 24px;padding:0 0 24px;list-style:none;display:flex}.creator-progress li{flex:1}.creator-progress button.link{color:#a99e81;justify-content:center;align-items:center;gap:9px;width:100%;text-decoration:none;display:flex}.creator-progress button span{border:1px solid #8b744c;border-radius:50%;flex-shrink:0;place-items:center;width:28px;height:28px;font-size:.8rem;display:grid}.creator-progress .current button{color:#ffe6b4}.creator-progress .current button span{background:#8e301f;border-color:#d5a75f}.creator-progress .done button{color:#c5ac74}.creator-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px}.oracle-speaks{gap:20px;margin-bottom:8px;padding:12px}.oracle-speaks .oracle-eye{border:3px solid #362514;border-radius:50%;width:88px;height:88px;overflow:hidden;box-shadow:0 0 0 2px #b88c43}.oracle-speaks .oracle-eye .art{object-fit:cover;width:100%;height:100%}.oracle-speaks .voice-mute{color:#6b5233;white-space:nowrap;flex:none;margin-left:auto;font-size:.85rem}.oracle-speaks p{font:500 1.35rem/1.35 var(--font);color:#332517}.oracle-speaks p:before{content:"ORAKLET";font:600 .62rem var(--font-display);letter-spacing:.18em;color:#78532b;margin-bottom:8px;display:block}.answers,.answers.wide{gap:16px}.answer,.answer:hover,.answer.picked,.answer.rare{border:12px solid #0000;border-image:var(--saga-paper-frame) 44 fill stretch;background:0 0;border-radius:0;padding:10px;box-shadow:0 4px 12px #0005}.answer:hover{filter:brightness(1.06)}.answer.picked{box-shadow:0 0 0 2px #ae4829,0 6px 18px #0007}.answer.rare .answer-mark{color:#8b381d}.creator .answer{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}.creator .answer-icon{width:100px;height:100px}.creator .answer-icon .art{object-fit:contain;width:100%;height:100%}.creator .answers.wide .answer-icon{width:120px;height:120px}.answer-name{font:600 1rem var(--font-display);color:#302315}.answer-tagline{color:#685333;line-height:1.35}.answer-detail{color:#6b4f2c;border-top:1px solid #98713e55;width:100%;padding-top:9px;font-size:.8rem}.sheet{gap:16px;padding:20px 12px;top:20px}.sheet-portrait{color:#dac28e;background:#1b2c21;border:3px solid #342617;width:140px;height:140px;overflow:hidden;box-shadow:0 0 0 2px #bb9458}.sheet-portrait .art{object-fit:cover;width:100%;height:100%}.sheet-name{font-size:1.35rem}.sheet-line{align-items:center;padding:10px 0}.sheet-line .sheet-value{align-items:center;gap:7px;display:inline-flex}.sheet-value .art{object-fit:contain;width:25px;height:25px}.sheet-equipment{gap:10px;margin:12px 0;display:flex}.sheet-equipment .art{width:36px;height:36px}.sheet-stats{line-height:1.5}.oracle-name{border:16px solid #0000;border-image:var(--saga-paper-frame) 48 fill stretch;color:#352617;--muted:#6a5333;max-width:none;padding:24px}.oracle-name input{min-width:0}.level-choices{flex-direction:column;gap:24px;display:flex}.level-up .level-school .answer-icon{width:76px;height:76px}.level-up .answer-icon .art{width:100%;height:100%}.level-up .answer{padding:14px}.level-up .answer-name{margin-bottom:6px}.tavern-layout{grid-template-columns:minmax(0,1fr) 330px;gap:28px}.tavern-banner{border:1px solid #8d6b39;grid-column:1/-1;min-height:270px;margin:26px 0 6px;position:relative;overflow:hidden;box-shadow:0 8px 32px #0007}.tavern-banner>img.tavern-scene{object-fit:cover;object-position:50% 54%;width:100%;height:100%;position:absolute;inset:0}.tavern-banner:after{content:"";pointer-events:none;background:linear-gradient(90deg,#0a120df2,#0a120db0 43%,#0000 80%);position:absolute;inset:0}.tavern-welcome{z-index:1;padding:32px 36px;position:relative}.tavern-welcome .saga-eyebrow{color:#d7b578}.tavern-welcome h1{font-size:clamp(2.5rem,5vw,4rem)}.tavern-welcome .saga-subtitle{color:#e4d4b2;max-width:36ch}.tavern-identity{color:#ddc9a0;align-items:center;gap:8px;margin-top:18px;display:inline-flex}.tavern-identity .kit{width:28px;height:28px}.tavern-welcome>button.link{color:#c3ae82;margin-left:14px}.tavern .board{gap:22px;overflow:visible}.tavern .board>h2{color:#e5cf9f;margin-bottom:0}.tavern .notice-card{grid-template-columns:170px minmax(0,1fr);gap:20px;padding:10px;display:grid}.quest-art{background:#1b2118;border:2px solid #312318;align-self:stretch;min-height:200px;position:relative}.quest-art>img.kit{object-fit:cover;width:100%;height:100%;position:absolute}.quest-level{color:#f1d8a5;font:.75rem var(--font-display);background:#121b15ed;border:1px solid #b09356;padding:4px 10px;position:absolute;bottom:10px;left:10px}.quest-content{flex-direction:column;gap:10px;display:flex}.quest-content h3{font:600 1.3rem/1.25 var(--font-display);margin:0}.quest-content p{font-size:.95rem;line-height:1.4}.quest-content .row{margin-top:auto}.tavern .side{gap:20px;max-height:none;padding:14px 10px;top:20px}.tavern .patrons{gap:12px}.patrons li{border-bottom:1px solid #bb9e5c44;align-items:center;gap:10px;padding-bottom:12px;display:flex}.patrons li>.art{object-fit:cover;border:1px solid #9c7e43;width:44px;height:44px}.patrons li>div{flex-direction:column;min-width:0;font-size:.85rem;display:flex}.patrons li strong{color:#eddaaf;font-size:1.05rem}.tavern .side .voice>button{width:100%;font-size:.9rem}.tavern .chat-log{color:#e4d6b8;background:#060c0a88;border:1px solid #9e865144;border-radius:0;min-height:160px;max-height:260px;padding:12px}.tavern .chat h3{font:500 1rem var(--font-display)}.tavern .chat input{color:#ebdaba;background:#0d1511;border:1px solid #9c814f77;border-radius:0;min-width:0}.tavern .chat button{padding:3px 8px;font-size:.85rem}.tavern .signups li{color:#5b3a1d;background:#ccb18066;border-color:#98713b88;border-radius:0}.gear-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px}.gear-hero{border-bottom:1px solid #96754377;align-items:center;gap:24px;margin-bottom:24px;padding:0 0 24px;display:flex}.gear-portrait{background:#142219;border:2px solid #352719;flex:none;width:110px;height:130px}.gear-portrait .art{object-fit:cover;width:100%;height:100%}.gear-hero h2{overflow-wrap:anywhere;font-size:1.8rem}.gear-hero p{margin:4px 0}.gear-slot,.gear-slot:hover:not(:disabled){color:#352719;box-shadow:none;background:#b1966020;border:1px solid #88704566;border-radius:0;padding:10px}.gear-slot.selected{outline-offset:-2px;background:#c5a06450;outline:2px solid #9e3c20}.gear-slots{gap:10px}.gear-slot .gear-icon{width:50px;height:50px}.gear-cell,.gear-cell.empty,.gear-cell:not(.empty){border:10px solid #0000;border-image:var(--saga-dark-frame) 48 fill stretch;background:0 0;border-radius:0}.gear-cell:hover{filter:brightness(1.2)}.gear-cell.selected{border-image-source:var(--saga-dark-frame);outline-offset:-3px;outline:2px solid #a94829}.gear-cell.empty{opacity:1;filter:brightness(.7);color:#ad9056;font-size:2rem}.gear-cell .gear-icon{width:52px;height:52px}.gear-cell .gear-icon .art{width:100%;height:100%}.gear-cell-name{color:#d3bc8c;font-size:.78rem}.gear-hint{text-align:center;flex-direction:column;align-items:center;padding:24px 16px 12px;font-style:italic;display:flex}.gear-hint img.kit{object-fit:contain;opacity:.8;width:120px;height:30px}.gear-detail{border-color:#8c6b3e66;gap:14px;padding:22px 4px 0}.gear-detail .gear-icon.big{width:64px;height:64px}.gear-detail .gear-icon.big .art{width:100%;height:100%}.gear-stats{border-top:1px solid #96754366;padding:16px 0 0;line-height:1.8}.gear-stats .stat{white-space:nowrap}.gear-stats .stat.up{color:#31572a}.gear-stats .stat.down{color:#9b2b20}.game{background:#0c1510;grid-template-columns:minmax(0,1fr) 360px;gap:12px;height:100dvh;padding:12px}.adventure-board-wrap{border:1px solid #8b7040;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;display:grid}.adventure-topbar{background:#111d16;border-bottom:1px solid #9a7b4144;align-items:center;gap:14px;padding:14px 18px;display:flex}.adventure-topbar>.kit{width:42px;height:42px}.adventure-topbar h1{color:#ebd4a5;margin:0;font-size:clamp(1rem,1.8vw,1.55rem)}.adventure-topbar .saga-eyebrow{margin-bottom:3px;font-size:.55rem}.adventure-topbar>button{white-space:nowrap;margin-left:auto;font-size:.8rem}.adventure .board{touch-action:none;min-height:0}.board-help{color:#c8b68f;background:#101c15;border-top:1px solid #9a7b4144;flex-wrap:wrap;align-items:center;gap:9px;padding:10px 16px;font-size:.78rem;display:flex}.board-help>.kit{width:22px;height:22px}.board-help>span{color:#9c937c;margin-left:auto}.game .hud{border-width:16px;border-image:var(--saga-paper-frame) 48 fill stretch;scrollbar-color:#8c7041 #c8b287;gap:16px;padding:8px}.hud-scene{background:#18241b;flex-shrink:0;height:100px;position:relative;overflow:hidden}.hud-scene img.kit{object-fit:cover;filter:brightness(.6);width:100%;height:100%}.hud-scene>span{font:600 1rem var(--font-display);color:#f1dcb4;position:absolute;bottom:12px;left:16px}.hud>p{margin:0;font-size:.88rem;line-height:1.4}.hud>.saga-section-title{margin:0;font-size:.85rem}.hud .costs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0;display:grid}.hud .costs li{background:#b99a6026;border:1px solid #8f713c66;flex-direction:column;align-items:center;gap:2px;padding:5px 2px;font-size:.65rem;display:flex}.hud .costs img.kit{width:32px;height:32px}.hud .costs .cost{color:#664421;margin:0;font-size:.65rem}.hud .party{gap:16px}.hud .party li{background:#f2dfb355;border:1px solid #85643766;padding:12px}.party-identity{align-items:center;gap:12px;margin-bottom:12px;display:flex}.party-identity>.art{object-fit:cover;background:#17231a;border:1px solid #584122;width:52px;height:52px}.party-identity strong{font:600 1.15rem var(--font-display);color:#392718}.party-identity .saga-eyebrow{margin-bottom:3px;font-size:.55rem;display:block}.hud .stat-row{margin:6px 0}.hud .party li.me strong{color:#77351e}.hud .pack li{flex-wrap:wrap;gap:8px;padding:5px 0}.hud .pack-icon .art{width:28px;height:28px}.hud .pack li button{min-height:36px}.hud .log{border-top:1px solid #8d6d3d66;padding-top:12px}.hud>h3{font:600 .9rem var(--font-display);margin:0}.hud .result{text-align:center;align-items:center;padding:12px 0}.hud .result img.kit{width:70px;height:70px}.path-label{color:#ffe0a1;background:#382d16;border-color:#b08b40}.admin-sections{gap:32px}.admin-sections>section>h2{color:#e4cba0;margin:0 0 14px;font-size:1.1rem}.admin-big{font-variant-numeric:tabular-nums;color:#4b321c;font-size:2rem}.admin-stat,.admin-period{padding:18px 14px}.admin-table{padding:4px}.admin-table th,.admin-table td{border-bottom-color:#9c794344;padding:10px 12px}.admin-table th{color:#5b3a1e;background:#ad864a20}.admin-table tbody tr:nth-child(2n){background:#a8894a12}@media (width<=1000px){.saga-nav{gap:16px}.saga-nav-actions{gap:6px}.saga-tabs a,.saga-tabs button.link{padding:12px 10px}.tavern-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.tavern .notice-card{grid-template-columns:1fr}.quest-art{min-height:140px}.creator-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.creator .answers{grid-template-columns:repeat(2,minmax(0,1fr))}.game{grid-template-columns:minmax(0,1fr) 320px}.gear-hero{gap:16px}.gear-portrait{width:80px;height:100px}.gear-hero h2{font-size:1.4rem}}@media (width<=760px){.page:not(.adventure){padding:0 16px 40px}.page.heroes-page,.page.level-up{padding-bottom:190px}.saga-nav{flex-wrap:wrap;gap:4px 16px;padding:14px 0 0}.saga-brand{font-size:.7rem}.saga-brand img.kit{width:38px;height:38px}.saga-tabs{order:3;width:100%;margin-top:8px}.saga-tabs>*{flex:1}.saga-nav-actions{margin-left:auto}.saga-heading{align-items:flex-start;gap:12px;padding:26px 0 22px}.saga-heading h1{font-size:1.8rem}.saga-subtitle{font-size:.95rem}.saga-heading-actions button{font-size:.85rem}.panel,.sheet,.oracle-speaks{border-width:15px;padding:12px}.creator-layout,.gear-layout,.tavern-layout{grid-template-columns:minmax(0,1fr);gap:20px}.creator-progress{gap:0;margin-bottom:20px;padding-bottom:12px}.creator-progress button.link{flex-direction:column;gap:5px;padding:6px 1px;font-size:.65rem}.creator .sheet{order:0;display:flex;position:static}.creator .sheet-lines,.creator .sheet-label,.creator .sheet-stats{display:block}.creator .sheet-line{border:0;border-bottom:1px solid #8a6a3e55;border-radius:0;padding:10px 0}.creator .sheet-portrait{width:100px;height:100px}.creator .sheet-name{text-align:center}.creator .answers,.creator .answers.wide{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creator .answers .answer{border-width:10px;padding:7px 3px;display:flex}.creator .answer-icon,.creator .answers.wide .answer-icon{width:88px;height:88px}.creator .answer-name{font-size:.83rem}.creator .answer-tagline{font-size:.8rem}.oracle-speaks{gap:14px}.oracle-speaks .oracle-eye{width:62px;height:62px}.oracle-speaks p{font-size:1.12rem}.oracle-name{padding:10px}.name-row{flex-wrap:wrap}.level-up .answers.wide{grid-template-columns:1fr}.level-up .answer{text-align:left;grid-template-columns:65px 1fr;justify-items:start}.level-up .level-school .answer-icon{width:60px;height:60px}.level-up .actionbar{padding:12px 16px max(12px, env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px}.level-up .actionbar>span{flex-basis:100%;font-size:.9rem}.level-up .actionbar button{width:100%}.tavern-banner{min-height:260px;margin-top:20px}.tavern-welcome{padding:28px 22px}.tavern-banner:after{background:linear-gradient(90deg,#08110de8,#08110d66)}.tavern-welcome .saga-eyebrow{max-width:25ch;font-size:.55rem}.tavern .side{position:static}.tavern .notice-card{grid-template-columns:120px minmax(0,1fr);gap:14px}.quest-content h3{font-size:1.05rem}.quest-content p{font-size:.9rem}.gear-layout,.gear-hero{gap:20px}.gear-bag{gap:6px}.gear-cell{border-width:7px}.gear-cell .gear-icon{width:36px;height:36px}.gear-cell-name{font-size:.62rem}.game{flex-direction:column;gap:12px;height:auto;min-height:100dvh;padding:8px;display:flex}.adventure-board-wrap{flex-shrink:0;height:64dvh;min-height:380px}.adventure-topbar{gap:8px;padding:10px}.adventure-topbar>.kit{width:30px;height:30px}.adventure-topbar h1{font-size:.95rem}.adventure-topbar>button{font-size:.7rem}.board-help{padding:8px;font-size:.7rem}.board-help>span{display:none}.game .hud{padding:12px;overflow:visible}.hud .costs img.kit{width:40px;height:40px}.hud .costs li,.hud .costs .cost{font-size:.75rem}.threshold{padding-top:24px}.threshold-door{border-width:15px;padding:20px 14px}.ritual .ritual-reveal{border-width:14px;padding:20px 10px}.admin-stats,.admin-periods{grid-template-columns:1fr}}@media (width<=440px){.tavern .notice-card{grid-template-columns:1fr}.quest-art{min-height:150px}.saga-heading{flex-wrap:wrap}.saga-heading-actions{margin-left:auto}.gear-inventory{padding:10px}.gear-cell-name{overflow-wrap:anywhere}.gear-bag{grid-template-columns:repeat(3,minmax(0,1fr))}.gear-cell .gear-icon{width:44px;height:44px}.gear-cell-name{font-size:.75rem}.saga-nav-actions{font-size:.8rem}}@media (prefers-reduced-motion:reduce){.answer,.hero-card{transition:none}.answer:hover{transform:none}}.preview-controls{z-index:60;background:#101a14;border-bottom:1px solid #b79a5c;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 18px;font-size:.85rem;display:flex;position:relative}.preview-controls strong{color:#d9bd83;margin-right:auto}.preview-controls a{color:#e4cda2}.preview-ritual{min-height:90dvh;position:relative}.preview-controls+div .game{height:calc(100dvh - 62px)}@media (width<=760px){.preview-controls+div .game{height:auto}}
