:root { --bg: #0b1517; --panel: rgba(11,21,23,0.74); --text: #eef2ee; --muted: #a9b9b6; --amber: #f0b84a; --blue: #6ec0ea; --green: #8fd19e; --coral: #ee8f6e; --rule: rgba(238,242,238,0.16);
  --serif: "Roboto Slab", "Rockwell", "Cambria", Georgia, serif; --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg); }
body { margin: 0; color: var(--text); font: 1.05rem/1.7 var(--sans); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--amber); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.3rem 1.5rem;
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem); background: rgba(11,21,23,0.7); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { font: 700 1.2rem var(--serif); color: var(--text); text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.bar nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform 0.3s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--text); }
.bar nav a:hover::after, .bar nav a[aria-current="page"]::after { transform: scaleX(1); }
#prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--amber); transform-origin: 0 0; transform: scaleX(0); z-index: 20; }

.hero { min-height: 100vh; display: flex; align-items: flex-end; padding: 6rem 0 4rem; }
.phead { padding: 9rem 0 2.5rem; }
h1 { font: 700 clamp(4.5rem, 20vw, 11rem)/0.95 var(--serif); letter-spacing: -0.03em; margin: 0 0 1rem; }
.phead h1 { font-size: clamp(3rem, 12vw, 7rem); margin: 0; }
.ch { display: inline-block; animation: rise 0.7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms); transition: transform 0.2s, color 0.2s; }
.ch:hover { transform: translateY(-0.12em); color: var(--amber); }
@keyframes rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
.crumb, .hint { font: 0.85rem var(--mono); color: var(--amber); margin: 0 0 0.6rem; }
.role { font: 1.7rem/1.3 var(--serif); margin: 0 0 0.6rem; }
#role { color: var(--amber); transition: opacity 0.3s; }
#role.out { opacity: 0; }
.tagline { color: var(--muted); max-width: 32rem; margin: 0 0 1.2rem; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; font: 0.85rem var(--mono); }
.controls output { color: var(--blue); }
.controls input { accent-color: var(--amber); width: min(14rem, 60vw); }
.controls .hint { margin: 0; color: var(--muted); }
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stats b { display: block; font: 700 2.6rem/1 var(--serif); color: var(--amber); }
.stats span { font: 0.8rem var(--mono); color: var(--muted); }

main .wrap { padding-top: 1rem; padding-bottom: 4rem; }
.panel { background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.2rem; }
h2 { font: 700 1.9rem/1.2 var(--serif); margin: 0 0 1rem; }
h3 { font: 700 1.2rem/1.35 var(--serif); margin: 0; }
.panel p { max-width: 40rem; }
.panel p:last-child { margin-bottom: 0; }

.dig a { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0.6rem;
  border-top: 1px solid var(--rule); color: var(--text); text-decoration: none; font: 700 clamp(1.7rem, 5vw, 2.6rem)/1.2 var(--serif); transition: color 0.3s; }
.dig a::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateX(-101%); transition: transform 0.35s cubic-bezier(.7,0,.2,1); }
.dig a:hover::before, .dig a:focus-visible::before { transform: none; }
.dig a:hover, .dig a:focus-visible { color: #0b1517; }
.dig a > * { position: relative; }
.dig em { font: italic 1rem var(--sans); }

.timeline { position: relative; padding-left: 2.2rem; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 5px; top: 0; width: 2px; }
.timeline::before { bottom: 0; background: var(--rule); }
.timeline::after { height: calc(var(--p) * 100%); background: var(--amber); }
.job { position: relative; }
.job::before { content: ""; position: absolute; left: calc(-2.2rem - 1px); top: 1.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }
.job summary { display: grid; grid-template-columns: 11rem 1fr auto; gap: 0.3rem 1rem; align-items: baseline; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: "+"; font: 1.5rem var(--mono); color: var(--amber); }
.job[open] summary::after { content: "\2212"; }
.when { font: 0.9rem var(--mono); color: var(--amber); }
.job ul { margin: 1rem 0 0; padding-left: 1.1rem; max-width: 40rem; }
.job li { margin-bottom: 0.4rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.2rem; margin-bottom: 1.2rem; }
.filters input, #nm, #msg { font: inherit; color: var(--text); background: rgba(0,0,0,0.3); border: 1px solid var(--rule); border-radius: 6px; padding: 0.45rem 0.8rem; }
.filters input { margin-right: 0.8rem; min-width: 14rem; }
#nm, #msg { width: 100%; max-width: 32rem; display: block; margin: 0.3rem 0 1rem; }
label { font: 0.85rem var(--mono); color: var(--muted); }
.chip { font: 0.9rem var(--sans); cursor: pointer; color: var(--text); background: rgba(0,0,0,0.3); border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.9rem; margin: 0 0.3rem 0.3rem 0; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--amber); }
.chip[aria-pressed="true"] { background: var(--amber); color: #0b1517; border-color: var(--amber); }
.chip.big { font-size: 1rem; padding: 0.4rem 1.1rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr)); gap: 0.6rem; }
.tile { --cc: var(--amber); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 0.55rem 0.6rem; cursor: pointer;
  color: var(--text); font: inherit; background: rgba(0,0,0,0.3); border: 1px solid var(--rule); border-top: 3px solid var(--cc); border-radius: 6px; transition: transform 0.15s, background 0.2s, opacity 0.25s; }
.tile[data-cat="ml"] { --cc: var(--blue); } .tile[data-cat="data"] { --cc: var(--green); } .tile[data-cat="ops"] { --cc: var(--coral); }
.tile:hover { transform: translateY(-4px) scale(1.04); }
.tile small { font: 0.7rem var(--mono); color: var(--muted); }
.tile b { font: 700 1.9rem/1 var(--serif); color: var(--cc); }
.tile span { font-size: 0.8rem; line-height: 1.25; }
.tile em { font: 0.65rem var(--mono); color: var(--amber); font-style: normal; }
.tile[aria-pressed="true"] { background: var(--cc); color: #0b1517; }
.tile[aria-pressed="true"] b, .tile[aria-pressed="true"] small, .tile[aria-pressed="true"] em { color: #0b1517; }
.tile.dim { opacity: 0.15; }
#detail ul { list-style: none; padding: 0; margin: 0; }
#detail li { padding: 0.5rem 0; border-top: 1px solid var(--rule); animation: pop 0.35s both; }
#detail small { font: 0.8rem var(--mono); color: var(--muted); margin-left: 0.6rem; }
.note { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.2rem; perspective: 900px; }
.card { padding: 1.4rem; border: 1px solid var(--rule); border-radius: 10px; transition: transform 0.15s ease-out;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(240,184,74,0.2), transparent 60%), var(--panel); }
.card.pop { animation: pop 0.4s both; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0 0 0.8rem; }
.card small { font: 0.8rem var(--mono); color: var(--amber); }
.more { margin-top: 2rem; }
.big { font-size: 1.2rem; line-height: 2; }
.edu { display: grid; grid-template-columns: 11rem 1fr; margin: 0; }
.edu dt, .edu dd { margin: 0; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.edu dt { font: 700 1rem var(--serif); }
footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--rule); background: rgba(11,21,23,0.8); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

#cur { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: none; font: 0.8rem var(--mono); color: var(--amber); white-space: nowrap; text-shadow: 0 0 4px #0b1517, 0 0 8px #0b1517; }
#cur i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
#cur span { position: absolute; left: 12px; top: -18px; }

.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .card.in { transition: transform 0.15s ease-out, opacity 0.6s; }
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: none; }
.js .wipe { display: flex; }
.wipe i { flex: 1; transform: translateY(101%); animation: wipe-out 0.7s cubic-bezier(.7,0,.2,1) both; }
.wipe i:nth-child(1) { background: #0b1517; } .wipe i:nth-child(2) { background: #12292d; animation-delay: 0.06s; } .wipe i:nth-child(3) { background: #1a3d43; animation-delay: 0.12s; }
.wipe i:nth-child(4) { background: #f0b84a; animation-delay: 0.18s; } .wipe i:nth-child(5) { background: #0b1517; animation-delay: 0.24s; }
@keyframes wipe-out { from { transform: translateY(0); } to { transform: translateY(101%); } }
.go .wipe i { animation-name: wipe-in; }
@keyframes wipe-in { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wipe { display: none !important; } .js .rv { opacity: 1; transform: none; } .ch { animation: none; } }
@media (max-width: 40rem) {
  .job summary { grid-template-columns: 1fr auto; } .when { grid-column: 1 / -1; }
  .edu { grid-template-columns: 1fr; } .edu dt { border-bottom: 0; padding-bottom: 0; } .edu dd { border-top: 0; padding-top: 0; }
  .dig em { display: none; } .stats { gap: 1.5rem; }
}
.tile .logo { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.tile[aria-pressed="true"] .logo { filter: brightness(0); }
.job .lead { color: var(--muted); max-width: 40rem; margin: 1rem 0 0.5rem; }
.job h4 { font: 0.85rem var(--mono); color: var(--amber); margin: 1.4rem 0 0.4rem; letter-spacing: 0.02em; }
.job section ul { margin: 0; }
.stack { list-style: none; padding: 0 !important; max-width: 44rem; }
.stack li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.2rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.stack .lg { display: flex; flex-wrap: wrap; gap: 0.35rem; align-content: flex-start; padding-top: 0.15rem; }
.stack img { width: 1.4rem; height: 1.4rem; object-fit: contain; }
.stack b { font: 700 1rem var(--serif); }
.stack p { margin: 0.15rem 0 0 !important; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 40rem) { .stack li { grid-template-columns: 1fr; } }

.panel { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(240,184,74,0.1), transparent 60%), var(--panel); }
.chip, .tile, .controls button { position: relative; overflow: hidden; }
.rip { position: absolute; border-radius: 50%; background: rgba(240,184,74,0.45); transform: scale(0); animation: rip 0.6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
#cur i { transition: transform 0.2s; } #cur.hot i { transform: scale(2.6); }
#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--amber); color: #0b1517; padding: 0.5rem 1rem; border-radius: 999px; font: 0.85rem var(--mono); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#up { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; width: 3.2rem; height: 3.2rem; border: 0; border-radius: 50%; cursor: pointer; --p: 0;
  background: conic-gradient(var(--amber) calc(var(--p) * 1turn), rgba(238,242,238,0.18) 0); opacity: 0; transform: scale(0.7); pointer-events: none; transition: 0.25s; }
#up::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
#up::after { content: "Top"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); font: 0.75rem var(--mono); }
#up.show { opacity: 1; transform: none; pointer-events: auto; } #up:hover { transform: translateY(-3px); }
.segs { margin-top: 1.2rem; }
.seg { border-top: 1px solid var(--rule); border-left: 3px solid transparent; padding: 1.2rem 0 0.6rem 1rem; transition: border-color 0.2s, background 0.2s; }
.seg:hover { border-left-color: var(--amber); background: rgba(240,184,74,0.04); }
.job .seg h4 { font: 700 1.15rem/1.3 var(--serif); color: var(--text); margin: 0 0 0.8rem; letter-spacing: 0; }
.seg dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.6rem 1rem; margin: 0; }
.seg dt { font: 0.8rem var(--mono); color: var(--amber); padding-top: 0.25rem; }
.seg dd { margin: 0; max-width: 42rem; } .seg dd ul { margin: 0; padding-left: 1.1rem; } .seg dd p { margin: 0 !important; }
.tech { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.1rem 0.75rem 0.1rem 0.5rem; margin: 0 0.4rem 0.4rem 0; font-size: 0.88rem; background: rgba(0,0,0,0.25); transition: border-color 0.2s, transform 0.2s; }
.tech:hover { border-color: var(--amber); transform: translateY(-2px); } .tech img { width: 1.1rem; height: 1.1rem; }
@media (max-width: 40rem) { .seg dl { grid-template-columns: 1fr; } .seg dt { padding-top: 0.6rem; } }

::selection { background: var(--amber); color: #0b1517; }
html { scrollbar-color: var(--amber) var(--bg); }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,21,23,0.88), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.now { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1.5rem; padding: 1rem 1.4rem; }
.now p { margin: 0; max-width: none; }
.clock b { font-family: var(--mono); color: var(--amber); }
.dot { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.7rem; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,209,158,0.6); } 70% { box-shadow: 0 0 0 10px rgba(143,209,158,0); } 100% { box-shadow: 0 0 0 0 rgba(143,209,158,0); } }
.marquee { overflow: hidden; margin-bottom: 1.2rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 2.4rem; width: max-content; padding: 1rem 0; animation: mq 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.mq { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font: 0.9rem var(--mono); }
.mq img { width: 1.6rem; height: 1.6rem; object-fit: contain; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } .marquee { overflow-x: auto; } }
a.card { display: block; color: var(--text); text-decoration: none; }
.panel .grid { margin-top: 0.5rem; }
.chip.big, .brand { transition: transform 0.2s ease-out, background 0.2s, color 0.2s, border-color 0.2s; } .brand { display: inline-block; }
.tools { margin: 0 0 1rem; }
dialog { background: var(--bg); color: var(--text); border: 1px solid var(--amber); border-radius: 12px; padding: 1.5rem; max-width: 30rem; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
dialog[open] { animation: pop 0.3s both; }
dialog h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.tags { font: 0.85rem var(--mono); color: var(--amber); }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0; }
.node { font: inherit; cursor: pointer; color: var(--text); background: rgba(0,0,0,0.3); border: 1px solid var(--rule); border-radius: 8px; padding: 0.6rem 1rem; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.node:hover { border-color: var(--amber); transform: translateY(-2px); }
.node[aria-pressed="true"] { background: var(--amber); color: #0b1517; border-color: var(--amber); }
.link { position: relative; width: 2.2rem; height: 2px; background: var(--rule); overflow: hidden; }
.link::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--amber); animation: flowdot 1.6s linear infinite; }
@keyframes flowdot { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .link::after { animation: none; left: 0; width: 100%; opacity: 0.5; } }
#flowd { margin-top: 1rem; min-height: 5.5rem; }
.ep { border-top: 1px solid var(--rule); }
.ep summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; padding: 0.8rem 0; cursor: pointer; list-style: none; }
.ep summary::-webkit-details-marker { display: none; }
.ep code, .blk pre { font-family: var(--mono); }
.m { font: 700 0.75rem var(--mono); padding: 0.1rem 0.5rem; border-radius: 4px; color: #0b1517; background: var(--blue); }
.m.POST { background: var(--green); } .m.DELETE { background: var(--coral); }
.d { color: var(--muted); font-size: 0.95rem; }
.epb { padding-bottom: 1rem; }
.blk { position: relative; margin: 0.6rem 0; }
.blk h5 { font: 0.8rem var(--mono); color: var(--amber); margin: 0 0 0.3rem; }
.blk pre { margin: 0; padding: 0.8rem 1rem; background: rgba(0,0,0,0.35); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; font-size: 0.85rem; line-height: 1.5; }
.blk .copy { position: absolute; right: 0.4rem; top: 1.5rem; font-size: 0.75rem; padding: 0.05rem 0.6rem; margin: 0; }
.k { color: var(--blue); } .s { color: var(--green); }
.app { display: grid; grid-template-columns: 13rem 1fr; padding: 0; overflow: hidden; }
.side { padding: 1.2rem; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1rem; background: rgba(0,0,0,0.25); }
.logo { font: 700 1.3rem var(--serif); } .logo b { color: var(--amber); }
.side nav { display: flex; flex-direction: column; gap: 0.3rem; }
.side nav button { font: inherit; text-align: left; cursor: pointer; color: var(--muted); background: none; border: 0; padding: 0.5rem 0.7rem; border-radius: 6px; transition: 0.2s; }
.side nav button:hover { color: var(--text); } .side nav button.on { background: var(--amber); color: #0b1517; }
.acct { font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; } #who { margin: 0; font: 0.8rem var(--mono); color: var(--muted); }
.mainp { padding: 1.2rem 1.4rem; min-width: 0; }
.mainp input, .mainp select, .acct input { font: inherit; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--rule); border-radius: 6px; padding: 0.45rem 0.7rem; width: 100%; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; } .fgrid .wide { grid-column: 1 / -1; }
.out { margin-top: 1rem; min-height: 8rem; white-space: pre-wrap; background: rgba(0,0,0,0.3); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; color: var(--muted); }
.net { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: 0.8rem; font: 0.8rem var(--mono); } .net h4 { margin: 0 0 0.5rem; color: var(--amber); font: inherit; }
.net ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; } .net li { animation: pop 0.3s both; overflow-wrap: anywhere; color: var(--muted); } .net b { color: var(--amber); }
.hl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
[hidden] { display: none !important; }
@media (max-width: 46rem) { .app { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--rule); } .fgrid { grid-template-columns: 1fr; } }
.dgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin: 1rem 0; align-items: start; }
.doc { background: #f4f1ea; color: #1b1f21; border-radius: 8px; padding: 1rem; font: 0.8rem/1.4 var(--sans); }
.doc .dd { margin: 0 0 0.4rem; max-width: none; }
.dh { background: #8b2f2f; color: #fff; font-weight: 700; padding: 0.15rem 0.5rem; margin-top: 0.6rem; }
.dr { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem; border: 1px solid #1b1f21; border-top: 0; padding: 0.3rem 0.5rem; }
.dr b, .dr i { font-weight: 400; font-style: normal; transition: background 0.3s, outline-color 0.3s; }
.dt { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.75rem; transition: background 0.3s, outline-color 0.3s; }
.dt caption { text-align: left; font-weight: 700; padding: 0.2rem 0; }
.dt th, .dt td { border: 1px solid #1b1f21; padding: 0.2rem 0.4rem; text-align: left; }
.hit { outline: 2px solid #2e9d4f; background: rgba(46,157,79,0.2); border-radius: 2px; }
.rt { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rt th, .rt td { text-align: left; padding: 0.4rem 0.5rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.rt th { font: 0.8rem var(--mono); color: var(--amber); border-top: 0; }
.rt tbody tr { animation: pop 0.3s both; }
.miss { color: var(--amber); }
.ck { margin-left: 0.8rem; font: 0.85rem var(--sans); color: var(--muted); cursor: pointer; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.shots a { display: block; color: var(--muted); text-decoration: none; font: 0.8rem var(--mono); }
.shots img { width: 100%; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 0.4rem; transition: transform 0.2s, border-color 0.2s; }
.shots a:hover img { transform: translateY(-3px); border-color: var(--amber); }
@media (max-width: 46rem) { .dgrid { grid-template-columns: 1fr; } .dr { grid-template-columns: 7rem 1fr; } }
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; max-width: none !important; }
.ctl select { font: inherit; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--rule); border-radius: 6px; padding: 0.35rem 0.6rem; }
.pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0; }
.st { border: 1px solid var(--rule); border-radius: 8px; padding: 0.8rem; background: rgba(0,0,0,0.2); transition: border-color 0.3s, box-shadow 0.3s; min-width: 0; }
.st.wide { grid-column: 1 / -1; }
.st.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.st.done { border-color: var(--green); }
.st h4 { font: 0.8rem var(--mono); color: var(--amber); margin: 0 0 0.5rem; }
.sb { font-size: 0.85rem; color: var(--muted); margin: 0; padding: 0; overflow-wrap: anywhere; }
ol.sb { list-style: none; display: grid; gap: 0.2rem; } ol.sb li { animation: pop 0.3s both; }
.xl { overflow-x: auto; } .xl table { border-collapse: collapse; font: 0.75rem var(--mono); white-space: nowrap; }
.xl th { background: #1d6f42; color: #fff; font-weight: 700; } .xl th, .xl td { border: 1px solid var(--rule); padding: 0.25rem 0.5rem; text-align: left; }
.xl tr.new { animation: pop 0.4s both; }
#map { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
@media (max-width: 46rem) { .pipe { grid-template-columns: 1fr; } }
