@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --gold: #ffcf6a;
  --gold2: #ffb347;
  --text: #f3ead8;
  --dim: #b5ab9a;
  --panel: rgba(20, 21, 36, 0.9);
  --panel2: rgba(12, 13, 24, 0.92);
  --line: rgba(255, 214, 140, 0.2);
  --good: #9be38a;
  --bad: #ff8a7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #05070f; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--text); user-select: none; -webkit-user-select: none; touch-action: none; -webkit-font-smoothing: antialiased; }
#app { position: fixed; inset: 0; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: absolute; inset: 0; pointer-events: none; font-size: 14px; line-height: 1.3; }
#ui > * { pointer-events: auto; }
#ui #toasts, #ui #banner, #ui #tip { pointer-events: none; }
#ui.pre > *:not(#title):not(#modal) { display: none !important; }
.hidden { display: none !important; }
.dim { color: var(--dim); }
.small { font-size: 0.86em; }
.good { color: var(--good); }
b { color: #fff3d6; font-weight: 800; }
kbd { display: inline-block; min-width: 1.5em; padding: 0 0.35em; border-radius: 0.35em; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-bottom-width: 2px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.85em; line-height: 1.35; text-align: center; color: #fff; }
.icon { width: 1.5em; height: 1.5em; vertical-align: middle; image-rendering: auto; }
.icon.tiny { width: 1.15em; height: 1.15em; margin: 0 0.1em; }
button { font-family: inherit; color: inherit; cursor: pointer; }
.panel {
  background: linear-gradient(180deg, rgba(30,31,52,0.93), rgba(15,16,29,0.93));
  border: 1px solid var(--line);
  border-radius: 0.85em;
  box-shadow: 0 0.4em 1.4em rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn {
  background: linear-gradient(180deg, rgba(70,68,96,0.9), rgba(44,43,66,0.9));
  border: 1px solid rgba(255,214,140,0.28); border-radius: 0.6em;
  padding: 0.45em 0.9em; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.95em;
  transition: transform 0.08s, filter 0.15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.25); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.go { background: linear-gradient(180deg, #ffd77a, #f0a23a); color: #3a2208; border-color: #ffe7a8; box-shadow: 0 0 1em rgba(255,190,90,0.35); }
.btn.danger { background: linear-gradient(180deg, rgba(150,60,55,0.9), rgba(100,35,32,0.9)); border-color: rgba(255,140,120,0.4); }
.btn.big { font-size: 1.35em; padding: 0.5em 2.2em; border-radius: 0.7em; }
.btn kbd { font-size: 0.75em; margin-left: 0.3em; }
.x { position: absolute; top: 0.35em; right: 0.45em; background: none; border: none; color: var(--dim); font-size: 1.4em; line-height: 1; padding: 0.1em 0.3em; border-radius: 0.3em; }
.x:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ---------------- goals */
#leftcol { position: absolute; left: 0.7em; top: 0.7em; display: flex; flex-direction: column; gap: 0.6em; align-items: flex-start; pointer-events: none; max-height: calc(100% - 1.4em); }
#leftcol > * { pointer-events: auto; }
#goals { width: 17.5em; padding: 0.7em 0.8em 0.6em; flex: none; }
.g-head { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.5em; }
.g-badge { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; font-size: 1.05em; color: #3a2208;
  background: radial-gradient(circle at 40% 35%, #fff3c4, #ffc24d 55%, #e0831f); box-shadow: 0 0 0.9em rgba(255,190,80,0.55); flex: none; }
.g-then { font-size: 0.76em; margin-top: 0.35em; display: flex; flex-wrap: wrap; gap: 0.15em 0.5em; align-items: center; color: #e8dcc4; }
.then-g { display: inline-flex; align-items: center; gap: 0.15em; white-space: nowrap; }
.road-row { display: flex; gap: 0.7em; padding: 0.5em 0.4em; border-top: 1px solid rgba(255,255,255,0.06); align-items: flex-start; }
.road-row.done { opacity: 0.55; }
.road-row.cur { background: rgba(255,200,100,0.1); border-radius: 0.6em; box-shadow: inset 0 0 0 1px rgba(255,210,130,0.35); }
.road-num { width: 1.9em; height: 1.9em; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; background: rgba(255,255,255,0.08); color: #ffe2a0; }
.road-row.cur .road-num { background: radial-gradient(circle at 40% 35%, #fff3c4, #ffc24d 55%, #e0831f); color: #3a2208; }
.road-name { font-family: 'Fredoka'; font-weight: 600; }
.road-now { margin-left: 0.5em; font-size: 0.72em; padding: 0.05em 0.45em; border-radius: 1em; background: #ffc24d; color: #3a2208; vertical-align: middle; }
.road-goals { display: flex; flex-wrap: wrap; gap: 0.2em 0.7em; font-size: 0.86em; margin: 0.15em 0; }
.g-journey { cursor: pointer; }
.g-journey { display: flex; align-items: center; gap: 0.45em; margin-top: 0.45em; font-family: 'Fredoka'; font-weight: 600; font-size: 0.72em; color: #ffd98a; text-transform: uppercase; letter-spacing: 0.06em; }
.jbar { flex: 1; height: 0.45em; border-radius: 0.3em; background: rgba(255,255,255,0.08); overflow: hidden; }
.jbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ffe9a0); box-shadow: 0 0 0.5em rgba(255,200,100,0.6); }
.g-head > div:nth-child(2) { min-width: 0; }
.g-level { font-family: 'Fredoka'; font-weight: 600; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.g-name { font-family: 'Fredoka'; font-weight: 600; font-size: 1.12em; color: #fff; }
.goal { display: flex; gap: 0.55em; align-items: flex-start; padding: 0.4em 0.35em; border-radius: 0.55em; cursor: pointer; }
.goal:hover { background: rgba(255,255,255,0.06); }
.g-icon { width: 2.1em; height: 2.1em; flex: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.g-body { flex: 1; min-width: 0; }
.g-row { display: flex; justify-content: space-between; gap: 0.4em; font-weight: 800; }
.g-count { font-family: 'Fredoka'; font-weight: 600; color: var(--gold); white-space: nowrap; }
.goal.done .g-count { color: var(--good); }
.bar { height: 0.42em; background: rgba(255,255,255,0.09); border-radius: 0.3em; overflow: hidden; margin: 0.25em 0 0.2em; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb347, #ffe08a); border-radius: 0.3em; transition: width 0.25s; box-shadow: 0 0 0.5em rgba(255,200,100,0.6); }
.goal.done .bar i { background: linear-gradient(90deg, #6fd18a, #c8f5a0); }
.g-how { font-size: 0.78em; color: var(--dim); line-height: 1.25; }
.g-reward { font-size: 0.78em; margin-top: 0.35em; padding-top: 0.45em; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 0.25em 0.5em; align-items: center; }
.rw { display: inline-flex; align-items: center; gap: 0.2em; color: #fff0cc; font-weight: 700; }
.rw-i { width: 1.35em; height: 1.35em; }

/* ---------------- resources */
#res { position: absolute; top: 0.7em; left: 50%; transform: translateX(-50%); display: flex; gap: 0.35em; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 40em); }
.chip { display: flex; align-items: center; gap: 0.3em; padding: 0.2em 0.6em 0.2em 0.3em; border-radius: 2em; background: rgba(14,15,27,0.85); border: 1px solid var(--line); font-family: 'Fredoka'; font-weight: 600; cursor: pointer; box-shadow: 0 0.2em 0.6em rgba(0,0,0,0.35); }
.chip .icon { width: 1.6em; height: 1.6em; }
.chip:hover { border-color: rgba(255,214,140,0.5); }
.chip.more { padding: 0.25em 0.75em; font-size: 0.85em; letter-spacing: 0.04em; color: #ffe2a0; text-transform: uppercase; }

/* ---------------- menu */
#menu { position: absolute; top: 0.7em; right: 0.7em; display: flex; gap: 0.35em; }
.mbtn { width: 2.5em; height: 2.5em; border-radius: 0.7em; border: 1px solid var(--line); background: rgba(14,15,27,0.85); color: #f0e2c4; padding: 0.45em; box-shadow: 0 0.2em 0.6em rgba(0,0,0,0.35); }
.mbtn svg { width: 100%; height: 100%; display: block; }
.mbtn:hover { color: #fff; border-color: rgba(255,214,140,0.55); background: rgba(40,40,64,0.9); }

/* ---------------- toolbar */
#toolbar { position: absolute; bottom: 0.7em; left: 50%; transform: translateX(-50%); display: flex; gap: 0.3em; padding: 0.35em; align-items: center; }
.tool { position: relative; width: 3.5em; height: 3.5em; border-radius: 0.65em; border: 1px solid rgba(255,255,255,0.1); background: linear-gradient(180deg, rgba(60,60,88,0.75), rgba(35,35,56,0.75)); padding: 0; display: grid; place-items: center; transition: transform 0.08s; }
.tool:hover { border-color: rgba(255,214,140,0.6); transform: translateY(-2px); }
.tool.active { border-color: var(--gold); background: linear-gradient(180deg, rgba(120,95,40,0.85), rgba(70,52,20,0.85)); box-shadow: 0 0 0.9em rgba(255,200,100,0.45); }
.tool.poor .t-icon { opacity: 0.45; filter: grayscale(0.7); }
.t-icon { width: 2.7em; height: 2.7em; pointer-events: none; }
.tool .hk { position: absolute; top: 0.12em; left: 0.3em; font-family: 'Fredoka'; font-weight: 600; font-size: 0.72em; color: rgba(255,240,210,0.85); text-shadow: 0 1px 2px #000; }
.tool .badge { position: absolute; top: -0.55em; right: -0.4em; background: #ff7b54; color: #fff; font-family: 'Fredoka'; font-weight: 700; font-size: 0.62em; padding: 0.05em 0.4em; border-radius: 1em; box-shadow: 0 0 0.6em rgba(255,120,80,0.7); animation: bob 1s ease-in-out infinite; }
.tool.demolish { color: #ff9b8a; padding: 0.85em; }
.tool.demolish svg { width: 100%; height: 100%; }
.tool.locked { width: 1.7em; background: rgba(20,20,34,0.6); border-color: rgba(255,255,255,0.06); cursor: default; color: rgba(255,240,210,0.28); }
.tool.locked:hover { transform: none; border-color: rgba(255,255,255,0.15); }
.tool.locked .hk { left: 0; right: 0; text-align: center; color: rgba(255,240,210,0.45); }
.tool.locked .lock { width: 0.95em; height: 0.95em; margin-top: 0.7em; display: block; }
.tool.locked .lock svg { width: 100%; height: 100%; display: block; }
.g-sub { font-size: 0.72em; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 800; margin: -0.1em 0 0.1em 0.35em; }
.tsep { width: 1px; align-self: stretch; background: rgba(255,255,255,0.12); margin: 0.2em 0.15em; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ---------------- recipe picker */
#recipes { position: absolute; bottom: 5.3em; left: 50%; transform: translateX(-50%); display: flex; gap: 0.3em; padding: 0.35em 0.45em; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 90%; }
.r-title { font-family: 'Fredoka'; font-weight: 600; font-size: 0.8em; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0.4em; }
.rcp { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.6em 0.3em 0.35em; border-radius: 0.55em; border: 1px solid rgba(255,255,255,0.12); background: rgba(50,50,76,0.7); font-weight: 700; font-size: 0.9em; }
.rcp .icon { width: 1.7em; height: 1.7em; }
.rcp:hover { border-color: rgba(255,214,140,0.6); }
.rcp.active { border-color: var(--gold); background: rgba(110,86,36,0.85); box-shadow: 0 0 0.7em rgba(255,200,100,0.35); }
.rcp.small { padding: 0.25em; }

/* ---------------- info panel */
#info { position: absolute; z-index: 6; right: 0.7em; top: 4em; width: 17em; padding: 0.75em 0.8em; max-height: calc(100% - 5em); overflow-y: auto; overscroll-behavior: contain; }
.i-head { display: flex; gap: 0.55em; align-items: center; padding-right: 1.5em; }
.i-icon { width: 2.6em; height: 2.6em; flex: none; }
.i-name { font-family: 'Fredoka'; font-weight: 600; font-size: 1.15em; color: #fff; }
.i-status { font-size: 0.88em; color: var(--gold); font-weight: 700; margin-top: 0.55em; }
.i-desc { font-size: 0.85em; margin: 0.45em 0; }
.i-sec { font-family: 'Fredoka'; font-weight: 600; font-size: 0.78em; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.6em 0 0.3em; }
.i-recipes { display: flex; flex-wrap: wrap; gap: 0.25em; }
.i-recipes .rcp { font-size: 0.8em; padding: 0.2em 0.45em 0.2em 0.25em; }
.i-recipes .rcp .icon { width: 1.6em; height: 1.6em; }
#ui.has-map #info { max-height: calc(100% - 16em); }
.i-flow { margin-top: 0.6em; }
.flow-row { display: flex; align-items: center; gap: 0.35em; flex-wrap: wrap; }
.slot { display: inline-flex; align-items: center; gap: 0.2em; padding: 0.15em 0.45em 0.15em 0.2em; border-radius: 0.5em; background: rgba(255,255,255,0.07); font-family: 'Fredoka'; font-weight: 600; font-size: 0.92em; margin: 0.1em; }
.slot.want { box-shadow: inset 0 0 0 1px rgba(255,138,122,0.6); }
.slot.big { font-size: 1.05em; }
.arrow { color: var(--gold); }
.i-store { display: flex; flex-wrap: wrap; }
.i-actions { display: flex; gap: 0.4em; margin-top: 0.8em; }

#minimap.big { width: min(24em, 46vh); height: min(24em, 46vh); }
#minimap { position: absolute; right: 0.7em; bottom: 0.7em; width: 10em; height: 10em; border-radius: 0.7em; border: 1px solid var(--line); background: #05070f; box-shadow: 0 0.4em 1.2em rgba(0,0,0,0.5); cursor: crosshair; }

/* ---------------- tooltip */
#tip { position: absolute; z-index: 30; max-width: 19em; padding: 0.5em 0.7em; border-radius: 0.6em; background: rgba(10,11,20,0.96); border: 1px solid rgba(255,214,140,0.3); box-shadow: 0 0.4em 1.2em rgba(0,0,0,0.5); font-size: 0.9em; }
#tip .dim { font-size: 0.92em; margin-top: 0.15em; }
#tip .hint { font-size: 0.8em; color: #9c927f; margin-top: 0.25em; }
#tip .costs { margin-top: 0.35em; display: flex; gap: 0.5em; flex-wrap: wrap; }
.cost { display: inline-flex; align-items: center; gap: 0.15em; font-family: 'Fredoka'; font-weight: 600; }
.cost.bad { color: var(--bad); }
.cost .tick { color: var(--good); margin-left: 0.2em; font-size: 0.85em; }
.slot .per { color: var(--dim); font-size: 0.78em; }
.warn-t { color: #ffb4a6; font-weight: 700; }

/* ---------------- Wick */
#wick { display: flex; align-items: flex-start; gap: 0.2em; width: 21em; max-width: calc(100vw - 2em); z-index: 5; }
#wick.pop { animation: wickpop 0.45s cubic-bezier(.2,1.6,.4,1); }
@keyframes wickpop { from { transform: translateY(1.2em) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.wick-face { width: 4em; height: 4em; flex: none; margin-top: 0.3em; animation: float 2.6s ease-in-out infinite; filter: drop-shadow(0 0 0.6em rgba(255,170,60,0.55)); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-0.35em) rotate(2deg); } }
.wick-bubble { position: relative; flex: 1; background: linear-gradient(180deg, rgba(48,40,30,0.96), rgba(28,24,20,0.96)); border: 1px solid rgba(255,200,120,0.45); border-radius: 0.9em; padding: 0.55em 1.5em 0.6em 0.75em; box-shadow: 0 0.4em 1.2em rgba(0,0,0,0.5); }
.wick-bubble::before { content: ''; position: absolute; left: -0.55em; top: 1.4em; border: 0.5em solid transparent; border-right-color: rgba(255,200,120,0.45); border-left: 0; }
.wick-name { font-family: 'Fredoka'; font-weight: 600; font-size: 0.75em; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.wick-text { font-size: 0.92em; line-height: 1.38; }
.wick-skip { position: absolute; top: 0.2em; right: 0.35em; background: none; border: none; color: var(--dim); font-size: 1.2em; padding: 0 0.25em; }
.wick-skip:hover { color: #fff; }

/* highlight pulse for tutorial targets */
.hl { animation: hl 1.2s ease-in-out infinite; z-index: 3; }
@keyframes hl { 0%,100% { box-shadow: 0 0 0 2px rgba(255,214,120,0.9), 0 0 1.2em rgba(255,200,90,0.8); } 50% { box-shadow: 0 0 0 4px rgba(255,214,120,0.4), 0 0 2em rgba(255,200,90,0.35); } }

/* ---------------- toasts & banner */
#topcenter { position: absolute; top: 3.6em; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.45em; z-index: 20; pointer-events: none !important; }
#toasts { display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.toast { display: flex; align-items: center; gap: 0.4em; padding: 0.4em 0.9em; border-radius: 2em; background: rgba(14,15,27,0.94); border: 1px solid var(--line); font-weight: 700; box-shadow: 0 0.3em 1em rgba(0,0,0,0.45); animation: tin 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; white-space: nowrap; }
.toast.warn { border-color: rgba(255,138,122,0.55); color: #ffd0c6; }
.toast.good { border-color: rgba(155,227,138,0.5); }
.toast.out { opacity: 0; transform: translateY(-0.5em); }
@keyframes tin { from { opacity: 0; transform: translateY(-0.6em); } }
#banner { position: relative; text-align: center; padding: 0.6em 1.8em 0.75em; border-radius: 1.1em;
  background: radial-gradient(ellipse at center, rgba(40,30,15,0.92), rgba(20,16,12,0.85)); border: 1px solid rgba(255,210,130,0.55); box-shadow: 0 0 3em rgba(255,180,80,0.35); }
#banner.show { animation: bannerin 4.6s ease forwards; }
@keyframes bannerin { 0% { opacity: 0; transform: scale(0.7); } 8% { opacity: 1; transform: scale(1.06); } 12% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1em); } }
.b-title { font-family: 'Fredoka'; font-weight: 700; font-size: 1.9em; color: #ffe39a; text-shadow: 0 0 0.6em rgba(255,180,60,0.8); }
.b-sub { font-family: 'Fredoka'; font-weight: 500; color: #f5dcb0; letter-spacing: 0.05em; }
.b-unlocks { display: flex; gap: 1em; justify-content: center; margin-top: 0.5em; flex-wrap: wrap; }
.ul { display: flex; flex-direction: column; align-items: center; gap: 0.2em; font-weight: 800; }
.ul .icon { width: 2.4em; height: 2.4em; filter: drop-shadow(0 0 0.5em rgba(255,200,100,0.5)); }
.ul-sym { width: 3em; height: 3em; color: var(--gold); display: block; }

/* ---------------- modal */
#modal { position: absolute; inset: 0; background: rgba(4,5,12,0.55); display: grid; place-items: center; z-index: 60; backdrop-filter: blur(2px); }
.mbox { position: relative; width: min(34em, 92vw); max-height: calc(100vh - 2.5em); display: flex; flex-direction: column; animation: tin 0.2s ease-out; }
.m-head { padding: 0.8em 1em 0.4em; border-bottom: 1px solid rgba(255,255,255,0.07); }
.m-title { font-family: 'Fredoka'; font-weight: 600; font-size: 1.4em; color: #ffe2a0; }
.m-body { padding: 0.7em 1em 1em; overflow-y: auto; overscroll-behavior: contain; }
.m-body p { margin: 0.4em 0 0.7em; }
.up-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.7em; align-items: center; padding: 0.6em 0; border-top: 1px solid rgba(255,255,255,0.06); }
.up-name { font-family: 'Fredoka'; font-weight: 600; font-size: 1.05em; }
.up-lvl { margin-left: 0.5em; font-size: 0.8em; color: var(--gold); }
.up-cost { display: flex; flex-direction: column; gap: 0.15em; align-items: flex-end; font-size: 0.9em; }
.cx-row { display: flex; gap: 0.7em; padding: 0.55em 0.3em; border-top: 1px solid rgba(255,255,255,0.06); border-radius: 0.4em; }
.cx-row.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: rgba(255,200,100,0.22); } 100% { background: transparent; } }
.cx-row.locked { opacity: 0.55; }
.cx-icon { width: 2.6em; height: 2.6em; flex: none; }
.cx-icon.q { display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.06); font-family: 'Fredoka'; font-weight: 700; color: var(--dim); }
.cx-name { font-family: 'Fredoka'; font-weight: 600; font-size: 1.05em; display: flex; justify-content: space-between; gap: 1em; }
.cx-stock { font-size: 0.8em; color: var(--gold); font-weight: 500; }
.ing { white-space: nowrap; }
.rate { color: var(--good); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5em 0; border-top: 1px solid rgba(255,255,255,0.06); gap: 1em; }
.set-row input[type=range] { width: 50%; accent-color: #ffc25a; }
.set-row input[type=checkbox] { width: 1.2em; height: 1.2em; accent-color: #ffc25a; }
.set-actions { display: flex; gap: 0.6em; justify-content: flex-end; margin-top: 0.8em; flex-wrap: wrap; }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.35em 1em; margin: 0.6em 0; font-size: 0.92em; }
.help-row { display: contents; }
.help-keys { white-space: nowrap; color: #fff0cc; font-weight: 700; }
.wb-list { display: flex; flex-wrap: wrap; gap: 0.3em; margin: 0.4em 0; justify-content: center; }
.welcome { pointer-events: auto !important; cursor: pointer; padding: 0.6em 1.1em 0.7em; text-align: center; max-width: 30em; animation: tin 0.3s ease-out; transition: opacity 0.5s, transform 0.5s; border-color: rgba(255,210,130,0.5); }
.welcome.out { opacity: 0; transform: translateY(-0.6em); }
.wb-title { font-family: 'Fredoka'; font-weight: 600; font-size: 1.15em; color: #ffe2a0; }

/* ---------------- feats */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em 0.8em; }
.feat { display: flex; gap: 0.5em; align-items: flex-start; padding: 0.45em 0.5em; border-radius: 0.6em; background: rgba(255,255,255,0.03); opacity: 0.6; }
.feat.got { opacity: 1; background: rgba(255,200,100,0.09); box-shadow: inset 0 0 0 1px rgba(255,210,130,0.25); }
.feat-ico { font-size: 1.4em; line-height: 1; color: var(--gold); width: 1.1em; text-align: center; }
.feat:not(.got) .feat-ico { color: var(--dim); }
.feat-name { font-family: 'Fredoka'; font-weight: 600; }
.feat-star { color: var(--gold); }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------------- title */
#title { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 55%, rgba(5,7,15,0.05) 0%, rgba(5,7,15,0.55) 55%, rgba(5,7,15,0.9) 100%); }
.t-inner { text-align: center; padding: 1em; }
.t-logo { font-family: 'Fredoka'; font-weight: 700; font-size: 5em; letter-spacing: 0.02em; color: #ffe7a8;
  text-shadow: 0 0 0.25em rgba(255,190,90,0.9), 0 0 0.8em rgba(255,150,50,0.55), 0 0.06em 0 #8a4a10; animation: titleglow 3.5s ease-in-out infinite; }
@keyframes titleglow { 0%,100% { text-shadow: 0 0 0.25em rgba(255,190,90,0.9), 0 0 0.8em rgba(255,150,50,0.55), 0 0.06em 0 #8a4a10; } 50% { text-shadow: 0 0 0.35em rgba(255,200,110,1), 0 0 1.2em rgba(255,150,50,0.75), 0 0.06em 0 #8a4a10; } }
.t-tag { font-family: 'Fredoka'; font-weight: 500; font-size: 1.25em; color: #f2dfbd; margin: 0.3em 0 1.6em; text-shadow: 0 2px 6px #000; }
.t-buttons { display: flex; gap: 0.8em; justify-content: center; align-items: center; }
.t-warn { margin-top: 1.2em; color: #ffcbb8; font-size: 0.9em; }

@media (max-height: 600px) {
  #goals { width: 16em; }
  .t-logo { font-size: 3.8em; }
}
