:root {
  --bg: #0b0d13;
  --panel: #10131b;
  --panel2: #161a24;
  --line: #232838;
  --line2: #2e3448;
  --text: #e7e9f0;
  --muted: #8a91a6;
  --accent: #ffb547;
  --accent2: #ff7a3d;
  --good: #7ee0a1;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 'Space Grotesk', system-ui, sans-serif; overflow: hidden; }
button { font: inherit; color: inherit; }
kbd { font: 600 11px/1 'Space Grotesk', sans-serif; padding: 3px 6px; border-radius: 5px; background: #20263a; border: 1px solid #333b55; border-bottom-width: 2px; color: #cfd5e6; white-space: nowrap; }

#app { display: flex; height: 100%; }

/* ---------- Seitenleiste */
#panel { width: 268px; flex: none; display: flex; flex-direction: column; background: linear-gradient(180deg, #121622, var(--panel) 40%); border-right: 1px solid var(--line); min-height: 0; }
.brand { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; }
.brand h1 { margin: 0; font: 800 19px/1 'Unbounded', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; background: linear-gradient(90deg, #ffd08a, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.logo { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: 9px; background: #1a1f2d; box-shadow: inset 0 0 0 1px var(--line2); }
.logo i { border-radius: 2px; }
.logo i:nth-child(1) { background: #ff9a2a; box-shadow: 0 0 8px #ff7a1f; }
.logo i:nth-child(2) { background: #2f78e6; }
.logo i:nth-child(3) { background: #e0c080; }
.logo i:nth-child(4) { background: #3fa34d; }

.tools { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); }
.tool { aspect-ratio: 1; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: background .12s, border-color .12s, transform .08s; padding: 0; }
.tool svg { width: 18px; height: 18px; stroke: #b8bed0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { background: #1d2230; border-color: var(--line2); }
.tool:active { transform: scale(.94); }
.tool.on { border-color: var(--accent); background: #2a2216; }
.tool.on svg { stroke: var(--accent); }

.mats { flex: 1; overflow-y: auto; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: #2a3042 transparent; }
.mats h3 { position: sticky; top: 0; margin: 0; padding: 10px 2px 6px; font: 600 10.5px/1 'Space Grotesk'; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--panel); z-index: 1; }
.mats h3.new::after { content: ' ✦'; color: var(--accent); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mat { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .1s, border-color .1s; }
.mat:hover { background: var(--panel2); }
.mat.on { background: #1d2231; border-color: var(--accent); }
.mat .sw { width: 16px; height: 16px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.18); }
.mat .sw.glow { box-shadow: 0 0 10px var(--g), inset 0 0 0 1px rgba(255,255,255,.3); }
.mat span { overflow: hidden; text-overflow: ellipsis; }
.mat.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { 0%, 30% { background: #3a2c14; } 100% { background: transparent; } }

.info { padding: 10px 16px; border-top: 1px solid var(--line); min-height: 64px; font-size: 12.5px; color: var(--muted); }
.info b { display: block; color: var(--text); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.brushbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.brush { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.brush input { flex: 1; accent-color: var(--accent); min-width: 0; }
.brush output { width: 20px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.toggle { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); margin: 0; }

/* ---------- Bühne */
#stage { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #121520, #07080c); overflow: hidden; }
#frame { position: relative; line-height: 0; box-shadow: 0 0 0 1px #1a1e2b, 0 30px 80px rgba(0,0,0,.6); }
#view { display: block; image-rendering: pixelated; touch-action: none; cursor: none; }
#overlay { position: absolute; inset: 0; pointer-events: none; }

#bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 2px; align-items: center; padding: 4px; border-radius: 12px; background: rgba(14,17,25,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 8px 30px rgba(0,0,0,.35); z-index: 5; }
#bar button { flex: none; height: 32px; min-width: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; cursor: pointer; color: #c8cddc; padding: 0 6px; }
#bar button:hover { background: rgba(255,255,255,.07); }
#bar button.on { color: var(--accent); background: rgba(255,181,71,.1); }
#bar button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#bar .txt { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#bar .wide { padding: 0 10px; }
#bar em { font-style: normal; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: #2a2216; color: var(--accent); font-size: 11px; }
#bar .sep { width: 1px; height: 18px; background: rgba(255,255,255,.1); margin: 0 4px; }

#hud { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(14,17,25,.7); backdrop-filter: blur(8px); font-size: 12.5px; color: #cfd4e2; pointer-events: none; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; }
#hud.show { opacity: 1; }
#hud b { color: #fff; font-weight: 600; }
#hud .t { color: var(--accent); }
#hud .tag { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: #3a1d12; color: #ff9a6a; font-size: 11px; }
#hud .tag.e { background: #16263e; color: #8ac4ff; }
#perf { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: #5d6479; pointer-events: none; font-variant-numeric: tabular-nums; }
#viewTag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 20px; background: rgba(14,17,25,.8); font-size: 12px; color: var(--accent); pointer-events: none; display: none; }
#viewTag.show { display: block; }

#toasts { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; z-index: 6; }
.toast { display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(40,30,16,.95), rgba(22,20,28,.95)); border: 1px solid rgba(255,181,71,.35); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(255,160,60,.15); animation: tin .5s cubic-bezier(.2,1.4,.4,1), tout .5s ease-in 4.6s forwards; max-width: min(460px, 80vw); }
.toast .star { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #ffd08a, #ff8a3d); color: #3a1c00; font-size: 15px; box-shadow: 0 0 16px #ff9a3d; }
.toast small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.toast b { display: block; font-size: 14.5px; }
.toast span { font-size: 12.5px; color: #c4c8d6; }
.toast.plain { border-color: rgba(255,255,255,.12); background: rgba(18,21,30,.95); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Intro */
#intro { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(8,9,14,.55), rgba(8,9,14,.88)); z-index: 20; transition: opacity .6s; backdrop-filter: blur(2px); }
#intro.gone { opacity: 0; pointer-events: none; }
#intro .card { max-width: 680px; padding: 36px 24px; text-align: center; }
.wordmark { font: 800 clamp(38px, 10vw, 84px)/1.1 'Unbounded', sans-serif; letter-spacing: .03em; white-space: nowrap; padding: 0 .1em; background: linear-gradient(180deg, #fff3d6 10%, #ffb547 55%, #ff5a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255,120,40,.35)); }
.lead { font-size: 16.5px; color: #c9cedc; margin: 18px auto 20px; max-width: 460px; }
.keys { list-style: none; padding: 0; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; color: var(--muted); font-size: 13px; }
.keys li { display: flex; gap: 6px; align-items: center; }
.quest { color: var(--muted); margin: 0 0 22px; }
.quest b { color: var(--accent); }
.primary { background: linear-gradient(180deg, #ffc266, #ff8a3d); color: #2a1300; border: 0; font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 12px; cursor: pointer; box-shadow: 0 8px 30px rgba(255,138,61,.35), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .1s, box-shadow .2s; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(255,138,61,.5), inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- Dialoge */
dialog.sheet { width: min(860px, 92vw); max-height: 86vh; padding: 0; border: 1px solid var(--line2); border-radius: 16px; background: #10131b; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.7); overflow: hidden; }
dialog.sheet.narrow { width: min(560px, 92vw); }
dialog::backdrop { background: rgba(5,6,10,.6); backdrop-filter: blur(3px); }
dialog[open] { display: flex; flex-direction: column; animation: din .25s ease-out; }
@keyframes din { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog header { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
dialog h2 { margin: 0; font: 600 18px/1 'Unbounded', sans-serif; letter-spacing: .02em; }
dialog header span { color: var(--muted); font-size: 13px; }
dialog .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
dialog .x:hover { background: #1c2130; color: var(--text); }
dialog .bar { height: 4px; margin: 0 20px 12px; border-radius: 4px; background: #1c2130; overflow: hidden; }
dialog .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width .6s; }

.jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 4px 20px 20px; overflow-y: auto; }
.jcard { padding: 10px 12px; border-radius: 10px; background: #151923; border: 1px solid var(--line); }
.jcard b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.jcard span { font-size: 12px; color: var(--muted); }
.jcard.got { background: linear-gradient(160deg, #221c12, #151923 70%); border-color: #4a3a1c; }
.jcard.got b::before { content: '✦ '; color: var(--accent); }
.jcard.no b { color: #50576c; letter-spacing: .2em; }
.jcard.no span { font-style: italic; color: #6a7185; }

.slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 4px 20px 20px; overflow-y: auto; }
.scard { text-align: left; background: #151923; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; transition: border-color .12s, transform .12s; }
.scard:hover { border-color: var(--accent); transform: translateY(-2px); }
.scard canvas { width: 100%; display: block; aspect-ratio: 16/9; image-rendering: pixelated; background: #0a0c12; }
.scard div { padding: 10px 12px 12px; }
.scard b { display: block; font-size: 14px; }
.scard span { font-size: 12px; color: var(--muted); }

.savelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 4px 20px 12px; overflow-y: auto; }
.slot { background: #151923; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.slot .thumb { aspect-ratio: 16/10; background: #0a0c12 center/cover no-repeat; display: grid; place-items: center; color: #3c4358; font-size: 12px; }
.slot .meta { padding: 8px 10px 2px; font-size: 12px; color: var(--muted); }
.slot .acts { display: flex; gap: 6px; padding: 6px 10px 10px; }
.slot button { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid var(--line2); background: #1b2030; cursor: pointer; font-size: 12.5px; }
.slot button:hover { border-color: var(--accent); }
.slot button:disabled { opacity: .35; cursor: default; border-color: var(--line2); }
.share { display: flex; gap: 12px; align-items: center; padding: 8px 20px 20px; }
.share .primary { font-size: 13.5px; padding: 10px 18px; }
.share span { color: var(--good); font-size: 13px; }

.help { padding: 0 22px 22px; overflow-y: auto; color: #c9cedc; }
.help table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.help td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.help td:first-child { white-space: nowrap; width: 1%; padding-right: 16px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- Schmal */
@media (max-width: 820px) {
  #app { flex-direction: column-reverse; }
  #panel { width: auto; height: 38vh; border-right: 0; border-top: 1px solid var(--line); }
  .brand, .info { display: none; }
  .tools { padding-top: 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  #bar { left: 8px; right: 8px; top: 8px; overflow-x: auto; justify-content: flex-start; }
  #bar .wide { white-space: nowrap; }
  #bStep, #bShot, #bHelp { display: none !important; }
  #toasts { top: 56px; }
  #perf { display: none; }
}

/* ---------- Modi & Abenteuer */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; text-align: left; }
.mode { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(160deg, rgba(30,36,52,.92), rgba(16,19,27,.92)); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.mode:hover { transform: translateY(-3px); border-color: #56608a; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.mode.adv { background: linear-gradient(160deg, rgba(62,40,16,.95), rgba(24,18,16,.95)); border-color: rgba(255,181,71,.45); }
.mode.adv:hover { border-color: var(--accent); box-shadow: 0 14px 40px rgba(255,138,61,.25); }
.mode .mi { font-style: normal; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #232a3c; font-size: 20px; color: #cfd6ea; margin-bottom: 4px; }
.mode.adv .mi { background: radial-gradient(circle, #ffd08a, #ff8a3d); color: #3a1c00; box-shadow: 0 0 20px rgba(255,150,60,.5); }
.mode b { font: 600 17px/1.2 'Unbounded', sans-serif; }
.mode span { color: #aeb4c6; font-size: 13.5px; }
.mode span em { font-style: normal; color: var(--accent); font-weight: 600; }
.mode small { color: var(--accent); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } .mode { padding: 14px 16px; } }
#intro { transition: opacity .5s; }
#intro.gone { opacity: 0; pointer-events: none; }

#app.level .sandbox-only, #app:not(.level) .level-only { display: none !important; }

.mat .bd { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); background: #2a2216; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.mat .bd:empty { display: none; }
.mat.empty .bd { color: #8a91a6; background: #1c2130; }
.mat.dim { opacity: .32; }
.mat.dim:hover { opacity: .5; }
.mat.locked { cursor: help; }
.mat.locked .sw { background: repeating-linear-gradient(45deg, #232838 0 3px, #1a1e2a 3px 6px) !important; box-shadow: inset 0 0 0 1px #333a50 !important; }
.mat.locked span { color: #4d5469; letter-spacing: .18em; }
.mat.locked::after { content: '🔒'; font-size: 10px; margin-left: auto; filter: grayscale(1) opacity(.5); }
.mat.newbie { box-shadow: inset 0 0 0 1px rgba(255,181,71,.5); }
.mat.newbie::after { content: 'neu'; margin-left: 4px; font-size: 10px; color: #2a1300; background: var(--accent); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.tool { position: relative; }
.tool .bd { position: absolute; right: -3px; top: -5px; font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--accent); color: #2a1300; border-radius: 6px; padding: 0 4px; line-height: 14px; }
.tool .bd:empty { display: none; }
.tool.locked { opacity: .25; cursor: help; }
.tool.dim { opacity: .3; }
.mats.lvmode h3.hide { display: none; }

#goal { position: absolute; top: 12px; left: 12px; width: min(340px, calc(100% - 24px)); padding: 12px 14px; border-radius: 14px; background: rgba(14,17,25,.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,181,71,.25); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 5; }
#goal .gtop { display: flex; gap: 8px; align-items: baseline; }
#goal small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
#goal b { font-size: 14.5px; }
#goal p { margin: 5px 0 9px; font-size: 13px; color: #c8cddc; }
.gbar { height: 6px; border-radius: 6px; background: #20263a; overflow: hidden; }
.gbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
#goal.ok .gbar i { background: linear-gradient(90deg, #7ee0a1, #3fc07a); }
#goal.bad { border-color: rgba(255,90,90,.5); }
.grow { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 28px; }
.grow span { font-size: 12px; color: var(--muted); flex: 1; font-variant-numeric: tabular-nums; }
.primary.small { font-size: 13px; padding: 6px 16px; border-radius: 9px; }
#gGo { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,138,61,.18), 0 8px 30px rgba(255,138,61,.35); } }
@media (max-width: 820px) { #goal { top: 54px; padding: 8px 10px; } #goal p { display: none; } }

.lvlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 4px 20px 22px; overflow-y: auto; }
.lvcard { position: relative; text-align: left; padding: 14px 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: #151923; cursor: pointer; transition: border-color .12s, transform .12s; min-height: 108px; display: flex; flex-direction: column; gap: 4px; }
.lvcard:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.lvcard .n { font: 800 22px/1 'Unbounded', sans-serif; color: #39405a; }
.lvcard b { font-size: 14px; }
.lvcard .st { margin-top: auto; letter-spacing: 2px; color: #3a4057; font-size: 15px; }
.lvcard .st .on { color: var(--accent); text-shadow: 0 0 8px rgba(255,160,60,.6); }
.lvcard.done { background: linear-gradient(160deg, #221c12, #151923 70%); border-color: #4a3a1c; }
.lvcard.done .n { color: #7a5a2a; }
.lvcard.next { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,181,71,.3), 0 0 24px rgba(255,150,60,.15); }
.lvcard.next .n { color: var(--accent); }
.lvcard:disabled { cursor: default; opacity: .45; }
.lvcard:disabled b { color: #4d5469; letter-spacing: .15em; }

dialog.brief, dialog.result { padding: 24px 26px 22px; gap: 14px; }
.bhead small, .task small, .res small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bhead h2 { margin-top: 6px; font-size: 22px; }
.story { margin: 0; color: #c9cedc; font-size: 15px; }
.task { padding: 12px 14px; border-radius: 12px; background: #1a1712; border: 1px solid #4a3a1c; }
.task b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 9px; background: #1a1f2c; border: 1px solid var(--line2); font-size: 13px; }
.chip .sw { width: 16px; height: 16px; border-radius: 4px; }
.chip em { font-style: normal; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.new { border-color: var(--accent); background: #2a2216; }
.chip.new::after { content: 'neu'; font-size: 10px; font-weight: 700; color: #2a1300; background: var(--accent); border-radius: 4px; padding: 0 4px; }
.chip.locked { color: #5a6178; border-style: dashed; }
.tip { margin: 0; font-size: 13px; color: var(--muted); }
.tip::before { content: '💡 '; }
.acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ghost { background: #1b2030; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 14px; }
.ghost:hover { border-color: #56608a; }
.result { text-align: center; }
.result h2 { font-size: 24px; }
.result p { margin: 0; color: #c9cedc; }
.result .acts { justify-content: center; }
.stars { display: flex; justify-content: center; gap: 10px; font-size: 44px; line-height: 1; color: #2c3246; }
.stars span { transform: scale(.4); opacity: 0; animation: star .5s cubic-bezier(.2,1.6,.4,1) forwards; }
.stars span.on { color: #ffc266; text-shadow: 0 0 20px rgba(255,160,60,.8); }
@keyframes star { to { transform: scale(1); opacity: 1; } }
.nextmats { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nextmats small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mat[hidden], .tool[hidden] { display: none !important; }
.mat.newbie::after { content: none; }
.mat.newbie .sw { position: relative; }
.mat.newbie .sw::after { content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.mat .bd { padding: 1px 4px; font-size: 10.5px; }
