:root {
    --ink: #f2ead8; --dim: #b9b29c; --bg: rgba(22, 26, 22, .88); --bg2: rgba(36, 42, 34, .92); --line: rgba(255, 240, 200, .16);
    --amber: #e8a33d; --leaf: #7fc56a; --red: #e2553e; --cold: #8cc8f0;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0f0d; color: var(--ink); font: 14px/1.4 "Segoe UI", system-ui, -apple-system, sans-serif; user-select: none; }
#app { position: fixed; inset: 0; }
#game, #overlay { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#overlay { pointer-events: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .34) 100%); transition: background .6s; }
.vignette.deep { background: radial-gradient(ellipse at 50% 40%, rgba(8, 12, 10, .25) 0%, rgba(6, 9, 8, .78) 100%); }
h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: .02em; }
h2 { font-size: 26px; } h2 small { font-size: 14px; font-weight: 400; color: var(--dim); margin-left: 10px; }
h3 { font-size: 15px; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 8px; } h3 small { color: var(--dim); text-transform: none; letter-spacing: 0; }
h3:first-child { margin-top: 0; }
p { margin: 6px 0; } .dim { color: var(--dim); font-size: 13px; } .err { color: #ff9a88; }
kbd { font: 600 10px/1 system-ui; border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: 4px; color: var(--dim); }
input[type=text], input:not([type]), input.code, input.wide { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 10px; font: inherit; user-select: text; }
input.code { width: 110px; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; text-align: center; } input.wide { width: 100%; }
input[type=range] { accent-color: var(--amber); width: 120px; vertical-align: middle; }

/* ---------- boot and loading */
.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at 50% 40%, #233025, #0c0f0d 70%); font-size: 40px; font-weight: 800; letter-spacing: .28em; z-index: 50; text-align: center; }
.boot small { font-size: 13px; font-weight: 500; letter-spacing: .34em; color: var(--dim); min-height: 18px; }
.boot .mark { font-size: 56px; letter-spacing: 0; animation: bob 2.4s ease-in-out infinite; }
.boot .bar { width: 280px; height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.boot .bar i { display: block; height: 100%; background: var(--amber); transition: width .25s; }
.boot .pct { display: none; }
.devby-boot { font-size: 11px; letter-spacing: .2em; color: var(--dim); margin-top: 18px; } .devby-boot img { height: 18px; vertical-align: middle; margin-left: 6px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- buttons */
.btn { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 18px; font: 600 14px system-ui; cursor: pointer; transition: .15s; }
.btn:hover:not(:disabled) { border-color: var(--amber); background: rgba(70, 62, 40, .95); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(#f0b04c, #d68c22); color: #20180a; border-color: #f6c670; } .btn.primary:hover:not(:disabled) { background: linear-gradient(#ffc468, #e69a2c); }
.btn.ghost { background: transparent; } .btn.danger { border-color: rgba(226, 85, 62, .6); color: #ffb4a4; } .btn.danger:hover { background: rgba(120, 36, 24, .9) !important; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button { background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--dim); padding: 5px 11px; font: 600 12px system-ui; cursor: pointer; }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--amber); color: #20180a; }
.row { display: flex; align-items: center; gap: 10px; margin: 7px 0; } .row > span:first-child { width: 110px; color: var(--dim); font-size: 13px; flex: none; }
.row.end { justify-content: flex-end; margin-top: 16px; } .row.end > span:first-child { width: auto; } .row.wrap { flex-wrap: wrap; gap: 6px; } .row.wrap > span:first-child { width: auto; }
.sw { display: flex; gap: 6px; flex-wrap: wrap; } .swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); cursor: pointer; padding: 0; } .swatch.on { outline: 2px solid var(--amber); outline-offset: 2px; }
.grow { flex: 1; }

/* ---------- menu */
.menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7vw; gap: 26px; animation: rise .5s ease-out; }
.title span { display: block; font-size: clamp(54px, 9vw, 120px); font-weight: 900; letter-spacing: .12em; line-height: .95; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.title em { display: block; font-style: normal; font-size: clamp(16px, 2.2vw, 26px); letter-spacing: .5em; color: var(--amber); margin-top: 10px; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.mnav { display: flex; flex-direction: column; gap: 10px; width: min(520px, 90vw); }
.mnav button { text-align: left; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--amber); color: var(--ink); border-radius: 8px; padding: 12px 18px; cursor: pointer; transition: .18s; backdrop-filter: blur(6px); }
.mnav button:hover { transform: translateX(8px); background: rgba(60, 54, 36, .95); }
.mnav b { display: block; font-size: 18px; } .mnav span { color: var(--dim); font-size: 13px; }
.menu .foot { position: fixed; left: 7vw; right: 7vw; bottom: 22px; display: flex; gap: 22px; align-items: center; color: var(--dim); font-size: 12px; }
.devby { margin-left: auto; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; } .devby img { height: 20px; vertical-align: middle; margin-left: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- setup sheets */
.sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, 94vw); max-height: 92vh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .3s ease-out; }
.sheet.wide { width: min(1360px, 96vw); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 14px; } .cols.two { grid-template-columns: 1fr 1.4fr; } .cols.three { grid-template-columns: .85fr 1.1fr 1.25fr; }
.cols section { min-width: 0; }
.pick { display: block; width: 100%; text-align: left; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 9px 12px; margin-bottom: 7px; cursor: pointer; transition: .15s; font: inherit; }
.pick:hover:not(:disabled) { border-color: var(--amber); } .pick.on { border-color: var(--amber); background: rgba(232, 163, 61, .16); } .pick.locked { opacity: .45; cursor: default; }
.pick b { font-size: 15px; } .pick i { font-style: normal; color: var(--amber); font-size: 12px; margin-left: 8px; } .pick span { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.locs { display: flex; flex-direction: column; gap: 7px; max-height: 62vh; overflow: auto; padding-right: 4px; }
.loc { display: flex; gap: 12px; text-align: left; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 7px; cursor: pointer; font: inherit; align-items: flex-start; }
.loc img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; transition: .2s; } .loc.on img { width: 116px; height: 116px; }
.loc.on { border-color: var(--amber); background: rgba(232, 163, 61, .14); } .loc:hover { border-color: var(--amber); }
.loc b { display: block; font-size: 15px; } .loc i { font-style: normal; color: var(--dim); font-size: 12px; display: block; } .loc em { font-style: normal; color: var(--amber); letter-spacing: 2px; font-size: 12px; } .loc em s { text-decoration: none; opacity: .25; }
.loc span { display: block; font-size: 12.5px; color: var(--dim); margin-top: 4px; } .loc .facts { color: var(--ink); }
.kitpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 62vh; overflow: auto; padding-right: 4px; }
.pick.item { margin: 0; position: relative; padding: 7px 9px 7px 38px; min-height: 58px; }
.pick.item > i { position: absolute; left: 8px; top: 8px; font-size: 21px; margin: 0; }
.pick.item b { font-size: 13.5px; } .pick.item span { font-size: 11.5px; line-height: 1.3; } .pick.item .why { color: var(--ink); opacity: .8; display: none; }
.pick.item.on .why, .pick.item:hover .why { display: block; }
.rate { position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 11px; font-weight: 800; }
.r4 .rate, .r3 .rate { color: var(--leaf); } .r2 .rate { color: var(--dim); } .r1 .rate, .r0 .rate { color: var(--red); }
.r4 { border-left: 3px solid var(--leaf); } .r0, .r1 { border-left: 3px solid rgba(226, 85, 62, .7); }
.chapters .pick span { font-size: 12px; }
.players { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.player { display: grid; grid-template-columns: 14px 1fr auto auto auto; gap: 8px; align-items: center; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13px; }
.player.ready { border-color: rgba(127, 197, 106, .6); } .player span { color: var(--dim); } .player em { font-style: normal; font-size: 11px; color: var(--dim); } .player.ready em { color: var(--leaf); }
.player .x { background: none; border: 0; color: var(--dim); cursor: pointer; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .5); flex: none; }
.codeb { font-size: 22px; letter-spacing: .25em; color: var(--ink); margin: 0 8px; }
.chat .log { height: 96px; overflow: auto; background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 6px 8px; font-size: 12.5px; color: var(--dim); margin-bottom: 5px; user-select: text; } .chat input { width: 100%; }
details { margin-top: 12px; color: var(--dim); font-size: 12px; } details input { margin-top: 6px; }

/* ---------- in-game HUD */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(6px); }
.hud-top { position: fixed; left: 0; right: 0; top: 0; display: flex; gap: 6px; align-items: center; padding: 7px 10px; background: linear-gradient(rgba(10, 14, 11, .85), rgba(10, 14, 11, 0)); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.big { background: var(--amber); color: #20180a; border-color: #f6c670; font-size: 13.5px; } .chip.cold { color: var(--cold); border-color: rgba(140, 200, 240, .5); } .chip.warn { color: #ffd890; border-color: var(--amber); }
.spd { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--bg); } .spd button { background: transparent; border: 0; color: var(--dim); padding: 5px 9px; font: 700 12px system-ui; cursor: pointer; } .spd button.on { background: var(--amber); color: #20180a; }
.stock { position: fixed; left: 10px; right: 10px; top: 42px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.res { background: rgba(14, 18, 15, .8); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; font-size: 14px; pointer-events: auto; } .res b { font-size: 13px; margin-left: 2px; }
.res.zero { opacity: .5; } .res.food { border-color: rgba(127, 197, 106, .35); } .res.warn { color: #ffb4a4; border-color: rgba(226, 85, 62, .6); font-size: 12px; font-weight: 600; padding: 4px 9px; }
.kit { margin-left: 8px; display: inline-flex; gap: 2px; pointer-events: auto; } .kit i { font-style: normal; font-size: 15px; background: rgba(14, 18, 15, .7); border-radius: 5px; padding: 1px 4px; }
.left { position: fixed; left: 10px; top: 78px; width: 292px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .left > * { pointer-events: auto; }
.goals { padding: 10px 12px; } .goals h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin-bottom: 6px; }
.goal { display: flex; gap: 7px; font-size: 12.5px; padding: 2px 0; align-items: baseline; } .goal i { font-style: normal; width: 14px; flex: none; color: var(--dim); } .goal span { flex: 1; } .goal em { font-style: normal; color: var(--amber); font-weight: 700; font-size: 12px; }
.goal.done { color: var(--dim); text-decoration: line-through; } .goal.done i { color: var(--leaf); text-decoration: none; }
.tip { font-size: 12px; color: var(--dim); margin: 7px 0 0; line-height: 1.35; }
.who { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; align-items: center; }
.who:hover { background: rgba(255, 255, 255, .07); } .who.view { background: rgba(232, 163, 61, .16); } .who.out { opacity: .5; }
.who span { color: var(--dim); font-size: 11.5px; grid-column: 1; } .who em { font-style: normal; font-size: 11px; color: var(--dim); grid-row: 1 / span 2; grid-column: 2; }
.who .hp { grid-row: 1 / span 2; grid-column: 2; width: 70px; height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; } .who .hp i { display: block; height: 100%; }
.msgs { position: fixed; left: 318px; top: 78px; width: min(400px, calc(100vw - 340px)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.msg { background: rgba(14, 18, 15, .82); border-left: 3px solid var(--dim); border-radius: 5px; padding: 5px 9px; font-size: 12.5px; animation: rise .25s ease-out; pointer-events: auto; cursor: pointer; }
.msg.k1 { border-color: var(--leaf); } .msg.k2 { border-color: var(--amber); } .msg.k3 { border-color: var(--red); background: rgba(60, 18, 12, .88); } .msg.k4 { border-color: var(--cold); }
.bottom { position: fixed; left: 10px; right: 220px; bottom: 10px; display: flex; gap: 8px; align-items: flex-end; pointer-events: none; } .bottom > * { pointer-events: auto; }
.people { display: flex; gap: 6px; align-items: flex-end; flex: none; }
.person { width: 158px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; cursor: pointer; backdrop-filter: blur(6px); }
.person.on { border-color: var(--leaf); box-shadow: 0 0 0 1px var(--leaf) inset; } .person.gone { opacity: .45; }
.pname { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .pname b { font-size: 13px; } .pname span { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: right; }
.meter { display: flex; align-items: center; gap: 5px; height: 13px; } .meter i { font-style: normal; font-size: 10px; width: 14px; text-align: center; }
.meter div { flex: 1; height: 5px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; } .meter b { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
.flags { font-size: 11px; color: #ffb4a4; margin-top: 2px; }
.cmd { flex: 1; min-width: 0; max-width: 720px; margin: 0 auto; padding: 8px 10px; }
.tabs { display: flex; gap: 4px; margin-bottom: 7px; } .tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 4px 10px; font: 700 12.5px system-ui; cursor: pointer; } .tabs button.on { color: var(--ink); border-color: var(--amber); } .tabs .sel { margin-left: auto; color: var(--amber); }
.cats { display: flex; gap: 4px; margin-bottom: 6px; } .cats button { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 2px 11px; font: 600 11.5px system-ui; cursor: pointer; } .cats button.on { background: var(--amber); color: #20180a; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 5px; max-height: 148px; overflow: auto; } .cards.small { margin-top: 7px; }
.card { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); padding: 5px 6px; cursor: pointer; text-align: center; font: inherit; transition: .12s; }
.card:hover:not(:disabled) { border-color: var(--amber); transform: translateY(-1px); } .card.on { border-color: var(--leaf); background: rgba(127, 197, 106, .18); } .card.off { opacity: .55; } .card.have { opacity: .5; }
.card i { font-style: normal; font-size: 20px; display: block; line-height: 1.15; } .card b { display: block; font-size: 11.5px; line-height: 1.2; } .card span { font-size: 11px; color: var(--dim); } .card em, .btn em { font-style: normal; margin: 0 2px; white-space: nowrap; } em.lack { color: #ff9a88; }
.binfo p { margin: 3px 0; font-size: 12.5px; }
#minimap { position: fixed; right: 10px; bottom: 10px; width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; background: #0c0f0d; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }

/* ---------- dialogs */
.modal-back { position: fixed; inset: 0; background: rgba(6, 9, 8, .62); display: flex; align-items: center; justify-content: center; z-index: 30; animation: fade .2s; } .modal-back.soft { background: rgba(6, 9, 8, .35); }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; width: min(520px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .25s ease-out; }
.modal h3 { font-size: 24px; color: var(--ink); text-transform: none; letter-spacing: .02em; margin: 2px 0 10px; } .modal h5 { color: var(--amber); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; }
.modal.story p { font-size: 15px; line-height: 1.55; } .modal.win { border-color: var(--amber); }
.modal.pause { display: flex; flex-direction: column; gap: 10px; width: 320px; } .modal.pause label { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; } .stats span { background: rgba(0, 0, 0, .28); border-radius: 8px; padding: 8px; text-align: center; font-size: 11.5px; color: var(--dim); } .stats b { display: block; font-size: 20px; color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #7a2418; color: #fff; padding: 8px 14px; z-index: 99; } #blazor-error-ui .dismiss { float: right; cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(255, 240, 200, .2); border-radius: 4px; }
@media (max-width: 1280px) { .person { width: 128px; } .pname span { display: none; } .left { width: 250px; } .msgs { left: 272px; width: min(360px, calc(100vw - 290px)); } }
@media (max-width: 1000px) { .cols, .cols.two, .cols.three { grid-template-columns: 1fr; } .kitpick { max-height: none; } .locs { max-height: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.guide h4 { display: flex; align-items: center; } .guide h4 span { flex: 1; }
.mini { background: none; border: 0; color: var(--dim); font: inherit; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 0 2px; } .mini:hover { color: var(--amber); }
.goal.cur { color: #fff; font-weight: 700; } .goal.cur i { color: var(--amber); }
.gacts { gap: 5px; margin-top: 7px; align-items: center; } .gacts .dim { font-size: 11.5px; color: var(--dim); }
.galert { display: flex; gap: 8px; align-items: center; font-size: 12.5px; background: rgba(255, 90, 60, .16); border: 1px solid rgba(255, 110, 80, .45); border-radius: 7px; padding: 5px 8px; margin-bottom: 6px; } .galert span { flex: 1; }
.tip.lack { color: #ffb0a0; }

/* ---------- the course and the field guide */
.mnav button.start { border-left-color: var(--leaf); background: rgba(34, 50, 32, .93); } .mnav b small { color: var(--leaf); font-size: 12px; margin-left: 10px; font-weight: 600; }
.mrow { display: flex; gap: 10px; } .mrow button { flex: 1; min-width: 0; }
.pic { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(ellipse at 50% 36%, #53654f 0%, #2c362c 58%, #1b211b 100%); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s; }
.pic::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8%; height: 13%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45), transparent 70%); }
.pic img { position: relative; width: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .35)); }
.pic .gl { position: relative; font-size: 46px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.sheet.book { display: flex; flex-direction: column; } .modal-back .sheet { position: relative; left: auto; top: auto; transform: none; }
.bookv { display: grid; grid-template-columns: 172px 1fr 410px; gap: 16px; margin-top: 14px; height: min(64vh, 640px); }
.bcats { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.bcats button { display: flex; justify-content: space-between; align-items: center; text-align: left; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--dim); border-radius: 7px; padding: 7px 10px; font: 600 13px system-ui; cursor: pointer; }
.bcats button:hover { border-color: var(--amber); } .bcats button.on { background: var(--amber); color: #20180a; border-color: #f6c670; } .bcats small { opacity: .7; font-weight: 500; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; overflow: auto; align-content: start; padding-right: 4px; }
.btile { position: relative; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 6px; color: var(--ink); cursor: pointer; font: inherit; text-align: center; transition: .12s; }
.btile:hover { border-color: var(--amber); transform: translateY(-1px); } .btile.on { border-color: var(--amber); background: rgba(232, 163, 61, .18); }
.btile b { display: block; font-size: 12px; margin-top: 5px; line-height: 1.2; } .btile .pic { border-radius: 7px; } .btile .pic .gl { font-size: 40px; }
.btile .met { position: absolute; right: 9px; top: 7px; color: var(--leaf); font-size: 13px; font-weight: 800; z-index: 2; text-shadow: 0 1px 3px #000; }
.bdetail { overflow: auto; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.bdetail > .pic { width: 100%; max-width: 240px; margin: 0 auto 12px; } .bdetail .pic .gl { font-size: 110px; }
.bdetail h3 { color: var(--ink); text-transform: none; letter-spacing: .02em; font-size: 21px; margin: 0 0 6px; } .bdetail h4 { color: var(--amber); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; margin: 12px 0 4px; }
.bdetail p { font-size: 13.5px; line-height: 1.5; user-select: text; }
.facts { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; } .facts span { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 12px; white-space: nowrap; }
.modal.lesson { width: min(680px, 94vw); max-height: 94vh; overflow: auto; } .modal.lesson p { font-size: 14.5px; line-height: 1.55; }
.lpics { display: flex; gap: 12px; justify-content: center; margin: 4px 0 12px; }
.ltile { width: 150px; background: none; border: 0; color: var(--ink); font: inherit; padding: 0; text-align: center; } button.ltile { cursor: pointer; } button.ltile:hover .pic { border-color: var(--amber); }
.ltile b { display: block; font-size: 12.5px; margin-top: 5px; } .lpics.one .ltile { width: 170px; } .lpics .pic .gl { font-size: 70px; }
.ldiagram { width: 100%; }
.gift { background: rgba(127, 197, 106, .14); border: 1px solid rgba(127, 197, 106, .45); border-radius: 9px; padding: 8px 12px; font-size: 13.5px; margin: 2px 0 12px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 2px; } .flow .ltile { width: 78px; } .flow .ltile b { font-size: 11px; font-weight: 600; color: var(--dim); } .flow > i { font-style: normal; color: var(--amber); font-size: 20px; margin-bottom: 20px; } .flow .pic .gl { font-size: 34px; }
.task { background: rgba(232, 163, 61, .13); border: 1px solid rgba(232, 163, 61, .5); border-radius: 9px; padding: 10px 14px; margin-top: 14px; font-size: 15.5px; font-weight: 700; }
.task b { display: block; font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 2px; } .task span { display: block; font-weight: 400; font-size: 13px; color: var(--dim); margin-top: 4px; }
.cbar { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; margin-bottom: 7px; } .cbar i { display: block; height: 100%; background: var(--leaf); transition: width .4s; }
.cstage { font-size: 13px; font-weight: 700; margin-bottom: 4px; } .cfoot { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 6px; }
.pulse { animation: pulse 1.1s ease-in-out infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 208, 96, 0); } 50% { box-shadow: 0 0 0 2px rgba(255, 208, 96, .95), 0 0 14px rgba(255, 208, 96, .6); } }
.tabs button.pulse, .cats button.pulse { color: #ffe9a8; border-radius: 6px; }
.diagram { width: 100%; max-width: 440px; display: block; margin: 0 auto; } .diagram text { fill: #f2ead8; font: 600 14px system-ui; } .diagram text.sub { fill: #b9b29c; font-weight: 400; font-size: 12.5px; }
.needsd { width: min(450px, 100%); margin: 2px auto 8px; display: grid; gap: 7px; } .needsd div { display: grid; grid-template-columns: 22px 62px 1fr 190px; gap: 8px; align-items: center; font-size: 13.5px; }
.needsd i { font-style: normal; } .needsd .bar { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; } .needsd u { display: block; height: 100%; border-radius: 4px; text-decoration: none; } .needsd em { font-style: normal; color: var(--dim); font-size: 12px; }
.needsd .hp { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .bookv { grid-template-columns: 130px 1fr; height: auto; } .bdetail { grid-column: 1 / -1; } .bgrid { max-height: 40vh; } }
@media (max-height: 760px) { .mnav button { padding: 8px 16px; } .mnav { gap: 7px; } .menu { gap: 16px; } .title span { font-size: clamp(44px, 7vw, 84px); } }

/* ---------- the real world: history and technique */
.real { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; } .real ol { margin: 4px 0 8px; padding-left: 20px; } .real li { font-size: 13px; line-height: 1.45; margin-bottom: 4px; user-select: text; }
.real h4:first-child { color: var(--leaf); }
.caution { background: rgba(226, 85, 62, .13); border: 1px solid rgba(226, 85, 62, .45); border-radius: 8px; padding: 6px 10px; font-size: 12.5px !important; line-height: 1.4 !important; color: #ffd0c4; }
.real.rbox { border: 1px solid rgba(127, 197, 106, .4); background: rgba(127, 197, 106, .08); border-radius: 9px; padding: 9px 14px; margin-top: 12px; } .real.rbox h4 { color: var(--leaf); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 2px; }
.real.rbox p { font-size: 13.5px !important; margin: 2px 0 4px; } .real.rbox .mini { color: var(--leaf); font-size: 11px; }
.disc { flex: 1; width: auto !important; font-size: 11.5px !important; color: var(--dim); line-height: 1.35; text-align: left; }
.note { position: fixed; right: 10px; top: 78px; width: 300px; padding: 10px 12px; border-color: rgba(127, 197, 106, .45); animation: rise .3s ease-out; } .note.after { opacity: .8; }
.note h4 { display: flex; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); margin-bottom: 4px; } .note h4 span { flex: 1; }
.ntitle { display: block; font-size: 14px; margin-bottom: 5px; }
.ndots { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; } .ndots i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); } .ndots i.done { background: var(--leaf); } .ndots i.on { background: var(--amber); }
.ndots em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 6px; }
.nstep { font-size: 13px; line-height: 1.45; margin: 0 0 6px; min-height: 56px; } .note .mini { color: var(--leaf); } .note .caution { margin: 0 0 6px; }
.btn.lit { border-color: rgba(127, 197, 106, .7); }
@media (max-width: 1100px) { .note { width: 240px; } }
