/* UTEP Pixel Campus, v10 "crisp" UI.
   Rules for crispness: Press Start 2P only at 8 / 16 / 24 px (its 8px grid lands on whole pixels),
   whole-pixel borders and offsets, no translate(-50%) centering (it causes half-pixel blur). */
@font-face { font-family: "PressStart"; src: url("../assets/fonts/PressStart2P.woff2?v=15") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("../assets/fonts/VT323.woff2?v=15") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SpaceMono"; src: url("../assets/fonts/SpaceMono-Regular.woff2?v=15") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SpaceMono"; src: url("../assets/fonts/SpaceMono-Bold.woff2?v=15") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #fafbea; --paper2: #f2f3e1; --card: #e8efdf; --card2: #dfe9d6; --cardline: #b3c7b3;
  --ink: #23364a; --text: #34505c; --muted: #5f7570; --frame: #29394d; --ring: #a4b5c3; --head: #e0e8e6; --headline: #879aa6;
  --btn: #e5ecdc; --btnline: #9db3a6; --primary: #24566e; --primary2: #1b4256;
  --yellow: #ffdc72; --yellow2: #b89640; --hero: #fcf6dc; --heroline: #d9b54a; --orange: #e0702a;
  --pix: "PressStart", "Press Start 2P", ui-monospace, monospace; --mono: "SpaceMono", ui-monospace, "Courier New", monospace; --vt: "VT323", "SpaceMono", ui-monospace, monospace;
  --shadow: 0 4px 0 rgba(23, 36, 52, .38);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #4f9a5c; color: var(--ink); font: 400 18px/1.25 var(--vt);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: none; }
b, strong, th, .dlabel b { font-weight: 400; }
.pix, .h1, .dex-name, .who b, .sign b, .sign .chip, .sign .chip i, #crumb, .pet-btn, #bus-card, .mono.big, .stepn { font-family: var(--pix); font-weight: 400; -webkit-font-smoothing: none; text-rendering: optimizeSpeed; letter-spacing: 0; }
button, select, input { font: inherit; color: inherit; }
a { color: var(--primary); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 8px 12px; border: 2px solid var(--frame); }
.skiplink:focus { top: 8px; }
:focus-visible { outline: 3px solid #d8a640; outline-offset: 2px; }
#screen { position: fixed; left: 0; top: 0; display: block; image-rendering: pixelated; }
/* signs over entrances */
#signs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sign { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; will-change: transform; }
.sign b { background: var(--paper); border: 2px solid var(--frame); box-shadow: inset 0 0 0 1px #fff, 0 2px 0 rgba(0,0,0,.3); padding: 4px 6px 3px; font-size: 8px; line-height: 8px; text-transform: uppercase; color: var(--ink); }
.sign .chip { display: inline-flex; align-items: center; gap: 4px; background: #fffdf2; border: 2px solid var(--frame); box-shadow: 0 2px 0 rgba(0,0,0,.3); padding: 2px 6px 2px 2px; font-size: 8px; line-height: 8px; color: var(--ink); text-transform: uppercase; }
.sign .chip i { font-style: normal; background: #e0703a; color: #fff; font-size: 8px; line-height: 8px; padding: 2px 2px 2px 3px; border: 1px solid #a8401a; }
.sign.minor b { font: 400 16px/16px var(--vt); letter-spacing: .04em; padding: 1px 5px; border-width: 1px; background: rgba(250,251,234,.9); color: #3a4a50; box-shadow: none; -webkit-font-smoothing: antialiased; }
.sign.bus b { background: #f2f2ee; border-color: var(--primary); color: var(--primary); }

/* shared frame: dark 3px border, light inset ring, hard drop shadow */
.card { background: rgba(250, 251, 234, .97); border: 3px solid var(--frame); border-radius: 3px; box-shadow: inset 0 0 0 2px var(--ring), var(--shadow); }
/* HUD */
.hud-top { position: fixed; left: 22px; right: 22px; top: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; z-index: 5; }
.hud-top > * { pointer-events: auto; }
.hud-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; } .hud-left > * { pointer-events: auto; }
#profile { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
#portrait { width: 40px; height: 40px; image-rendering: auto; border: 2px solid var(--frame); background: #d1e3d3; box-shadow: 2px 2px 0 var(--ring); }
.who { display: flex; flex-direction: column; gap: 6px; }
.who b { font-size: 16px; line-height: 16px; color: var(--ink); }
.who span { font-size: 20px; line-height: 16px; color: var(--muted); }
.hud-about { display: flex; align-items: center; gap: 6px; align-self: stretch; margin-left: 4px; padding: 0 2px 0 14px; border: 0; border-left: 1px solid var(--headline); background: none; font: 400 20px/20px var(--vt); color: var(--text); }
.hud-about img { width: 16px; height: 16px; image-rendering: pixelated; }
.hud-about:hover { color: var(--primary2); text-decoration: underline; text-underline-offset: 3px; }
.skipgame { padding: 6px 10px; font: 400 18px/20px var(--vt); text-decoration: none; color: var(--ink); background: var(--yellow); border-width: 2px; box-shadow: inset 0 0 0 1px #fff3c4, 0 3px 0 rgba(23,36,52,.35); }
.skipgame:hover { background: #ffd04f; }
.skipgame .short, .wo .short { display: none; }
.plate { padding: 8px 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.plate b { font: 400 20px/20px var(--vt); letter-spacing: .08em; color: var(--ink); }
.plate span { font-size: 16px; line-height: 14px; letter-spacing: .1em; color: var(--muted); }
/* green frame under the world */
#strip { position: fixed; left: 0; right: 0; bottom: 0; height: 96px; background: #4f9a5c; border-top: 3px solid #2f6b3c; box-shadow: inset 0 3px 0 #6ab276; z-index: 1; }
/* dock: wide cream panel, tab row, then controls */
#dock { position: fixed; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: 10px; width: min(1050px, calc(100% - 28px)); padding: 8px 14px 11px; border-radius: 6px; background: rgba(252, 252, 238, .98); box-shadow: inset 0 0 0 2px #a9b9b1, 0 5px 0 rgba(23,46,59,.33); }
.tabs { display: grid; grid-template-columns: 1.3fr .75fr 1fr 1.05fr 1fr; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid #b6c7b8; }
.tabs > * { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 8px; background: var(--btn); border: 1px solid var(--btnline); border-radius: 3px; font: 400 22px/22px var(--vt); letter-spacing: .06em; color: #294c5a; text-decoration: none; }
.tabs > *:hover { background: var(--primary); border-color: var(--primary2); color: #fff9df; }
.row { display: flex; align-items: center; gap: 14px; padding-top: 9px; }
.dpad { display: grid; grid-template-columns: repeat(3, 32px); grid-template-rows: repeat(3, 25px); gap: 3px; flex-shrink: 0; }
.dpad button, .d-mid { display: grid; place-items: center; background: var(--btn); border: 1px solid #8aa69d; border-bottom-width: 3px; border-radius: 3px; padding: 0; font-size: 16px; line-height: 1; color: #315b68; touch-action: none; user-select: none; -webkit-user-select: none; }
.dpad button.down { background: var(--yellow); }
.d-up { grid-area: 1/2; } .d-left { grid-area: 2/1; } .d-right { grid-area: 2/3; } .d-down { grid-area: 3/2; }
.d-mid { grid-area: 2/2; border: 0; background: #d0dfd1; } .d-mid::before { content: ""; width: 8px; height: 8px; background: #5c807d; }
.dlabel { display: flex; flex-direction: column; gap: 4px; min-width: 96px; } .dlabel b { font: 400 24px/24px var(--vt); color: var(--ink); } .dlabel small { color: var(--muted); font-size: 16px; line-height: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; font: 400 16px/1 var(--vt); border: 1px solid #a2b0a1; border-bottom-width: 2px; background: #ffffee; padding: 0 5px; margin: 0 1px; border-radius: 2px; color: #405656; }
.run { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 86px; min-height: 52px; background: var(--btn); border: 2px solid #8da99a; border-bottom-width: 4px; border-radius: 4px; padding: 6px 10px; font: 400 24px/24px var(--vt); color: #34505a; touch-action: none; }
.run.on { background: var(--yellow); border-color: var(--yellow2); }
.act { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 10px; min-height: 52px; background: var(--yellow); border: 2px solid var(--yellow2); border-bottom-width: 4px; border-radius: 4px; padding: 6px 14px; font: 400 22px/23px var(--vt); text-align: left; color: #3f4430; }
.act:disabled { background: #fbe9a8; color: #a69a6c; border-color: #cdb46a; }
.act kbd { font-size: 16px; }
#act-btn:not([disabled]) { box-shadow: inset 0 0 0 2px #fff3c4, 0 0 0 2px #f2c13f; animation: actpulse 1.6s ease-in-out infinite; }
@keyframes actpulse { 50% { box-shadow: inset 0 0 0 2px #fff3c4, 0 0 0 4px rgba(242,193,63,.5); } }
html.reduce #act-btn:not([disabled]) { animation: none; }
.side { display: flex; gap: 7px; margin-left: auto; align-items: center; flex-shrink: 0; }
.mini { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 10px; background: var(--btn); border: 1px solid var(--btnline); border-radius: 3px; font: 400 18px/20px var(--vt); color: #315665; white-space: nowrap; }
.mini:hover { background: #d6e6d7; }
/* world options pop */
.pop { position: fixed; z-index: 8; right: max(14px, calc(50vw - 511px)); bottom: 132px; width: 230px; padding: 12px; display: flex; flex-direction: column; gap: 7px; border-width: 2px; border-radius: 5px; box-shadow: 0 5px 18px rgba(23,50,62,.25); }
.pop label { font-size: 16px; color: var(--muted); }
.pop select, .pop button { min-height: 34px; background: var(--btn); border: 1px solid var(--btnline); border-radius: 3px; padding: 5px 9px; text-align: left; font-size: 18px; }
.zoom { display: flex; align-items: center; justify-content: space-between; } .zoom button { width: 42px; text-align: center !important; font: 400 24px/1 var(--vt); }
#toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 30px); bottom: 150px; background: var(--paper); border: 2px solid var(--frame); border-radius: 3px; padding: 7px 14px; box-shadow: inset 0 0 0 1px #fff, var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; z-index: 9; text-align: center; }
#toast.show { opacity: 1; transform: translateY(0); }
.pet-btn { position: fixed; left: 0; top: 0; z-index: 4; background: #fff; border: 2px solid #c94a5c; color: #a3283c; font-size: 8px; line-height: 8px; padding: 6px 7px; box-shadow: 0 2px 0 rgba(0,0,0,.3); }

/* modal: blue-gray frame like a dialogue box */
#modal-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(18, 36, 54, .53); display: flex; align-items: center; justify-content: center; padding: 18px; }
#modal-wrap[hidden] { display: none; }
#modal { width: min(980px, 94vw); max-height: min(94vh, 1000px); display: flex; flex-direction: column; background: var(--paper); color: #2c3e4c; border: 4px solid var(--frame); border-radius: 4px; box-shadow: inset 0 0 0 4px var(--ring), 8px 8px 0 rgba(31,48,75,.38); overflow: hidden; animation: pop .14s steps(3, end); }
#modal.k-about { width: min(960px, 94vw); } #modal.k-help { width: min(900px, 94vw); }
@keyframes pop { from { opacity: 0; } }
#modal-head { display: flex; align-items: center; gap: 8px; min-height: 58px; margin: 4px 4px 0; padding: 10px 14px 10px 18px; background: var(--head); border-bottom: 3px solid var(--headline); }
#crumb { flex: 1; font-size: 16px; line-height: 16px; color: #354d5c; }
#modal-close, #hdr-extra .btn { min-height: 36px; padding: 5px 12px; background: #f8f9eb; border: 2px solid #7f9198; border-radius: 2px; font: 400 20px/20px var(--vt); color: #354658; box-shadow: none; }
#modal-close:hover, #hdr-extra .btn:hover { background: #e3ebe0; }
#modal-body { padding: 22px 28px 22px; margin: 0 4px 4px; overflow: auto; overscroll-behavior: contain; }
#modal-body p { margin: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; background: var(--btn); color: #2f5866; border: 1px solid var(--btnline); border-radius: 3px; padding: 8px 14px; text-decoration: none; font: 400 20px/20px var(--vt); }
.btn:hover { background: #d8e6d6; border-color: #6f8f86; }
.btn.primary { background: var(--primary); color: #fff9df; border: 1px solid var(--primary2); border-bottom-width: 3px; }
.btn.primary:hover { background: #2c6782; }
.btn.ghost { background: var(--paper); }
.btn.sm { min-height: 36px; padding: 7px 11px; font-size: 20px; background: #e7ecdd; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.eyebrow { font-size: 16px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: #5d7a70; margin: 0 0 4px !important; }
.eyebrow.light { color: #cfe0dc; }
.h1 { font-size: 24px; line-height: 32px; margin: 4px 0 14px; color: var(--ink); }
.h2 { font: 400 28px/31px var(--vt); margin: 0; color: #fff; }
.h3 { font: 400 24px/27px var(--vt); margin: 18px 0 8px; color: #2f5562; }
.sec { font: 400 28px/28px var(--vt); margin: 24px 0 12px; padding-bottom: 10px; border-bottom: 2px solid #b6c9b5; color: #2f5562; }
.muted { color: var(--muted); } .small { font-size: 18px; } .fine { font-size: 16px; color: var(--muted); margin-top: 14px !important; }
.lead { font-size: 22px; }
.note { background: var(--card); border-left: 3px solid #9fbbab; padding: 8px 12px; font-size: 18px; color: var(--muted); }
/* Dig Log */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
#log-search { flex: 1; min-width: 200px; max-width: 340px; min-height: 40px; background: #fffff2; border: 2px solid #a5b9af; border-radius: 3px; padding: 7px 10px; font-size: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 40px; background: var(--paper); border: 1px solid var(--btnline); border-radius: 2px; padding: 6px 12px; font: 400 18px/20px var(--vt); color: #2f5866; }
.chip[aria-pressed="true"] { background: #2f6274; color: #fff9df; border-color: #244b5e; }
.count { font-size: 16px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: #f4f4e5; border: 2px solid #afc0b5; border-radius: 3px; padding: 16px 16px 14px; min-height: 200px; color: #345260; }
.pcard:hover, .pcard:focus-visible { border-color: #507c88; box-shadow: 4px 4px 0 #9ab9b1; }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.no { font-size: 16px; letter-spacing: .14em; color: #58726e; }
.vis { color: #2f7a3a; margin-right: 6px; }
.mono { display: inline-grid; place-items: center; min-width: 32px; font: 400 28px/28px var(--vt); color: #4f7a73; }
.mono.big { width: 72px; height: 64px; font-size: 24px; line-height: 24px; background: var(--card); border: 2px solid var(--frame); box-shadow: 4px 4px 0 #bed0b6; color: var(--primary); }
.pc-title { font: 400 28px/31px var(--vt); color: #2e4e5c; }
.pc-sum { font-size: 18px; line-height: 20px; color: #50665c; flex: 1; }
.pc-meta { font-size: 16px; color: var(--muted); }
.pc-stack { font-size: 16px; color: #3c6e7c; }
.phead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.full { font-size: 18px; color: var(--muted); font-style: italic; }
.callout { background: var(--card); border-left: 3px solid #9fbbab; padding: 8px 12px; margin: 12px 0; } .callout p { margin: 0 !important; }
.tchips, .fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tchip { background: var(--card); border: 1px solid var(--cardline); border-radius: 2px; padding: 3px 8px; font-size: 16px; }
.fchip { background: #f6e6bd; border: 1px solid #d9c38a; border-radius: 2px; padding: 3px 8px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.step { background: var(--card); border: 2px solid var(--cardline); border-radius: 3px; padding: 10px 12px; }
.step p { margin: 6px 0 0 !important; font-size: 18px; }
.stepn { font-size: 8px; line-height: 8px; color: var(--muted); }
.box { border: 2px solid var(--cardline); border-radius: 3px; background: var(--card); padding: 14px 16px; margin-top: 12px; }
.feature { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .feature > div { flex: 1; min-width: 240px; }
.src { font-size: 16px; white-space: nowrap; }
/* Map */
.acard { border: 2px solid #9fb7aa; border-radius: 3px; background: var(--card); display: flex; flex-direction: column; overflow: hidden; }
.acard.here { border-color: #507c88; }
.acard img { width: 100%; height: auto; aspect-ratio: 3 / 1.25; object-fit: cover; image-rendering: pixelated; border-bottom: 2px solid #9fb7aa; display: block; }
.ac-body { padding: 10px 14px 14px; } .ac-body .h3 { margin: 2px 0 2px; }
.ac-body .btn { min-height: 0; padding: 4px 0; border: 0; background: none; color: #2f5866; }
.here-tag { display: inline-block; margin-top: 4px; font: 400 16px/19px var(--vt); background: var(--yellow); border: 1px solid var(--yellow2); padding: 2px 8px; }
.place { display: grid; grid-template-columns: 20px 1fr auto; column-gap: 8px; text-align: left; background: #f1f3e3; border: 2px solid #c0cfbf; border-radius: 3px; padding: 10px 14px 10px 10px; color: #2f5562; }
.place:hover, .place:focus-visible { border-color: #507c88; background: var(--card2); }
.pl-star { grid-row: 1 / 3; align-self: center; color: #7c9a8a; font-size: 16px; }
.pl-name { font: 400 22px/26px var(--vt); } .pl-theme { grid-column: 2; font-size: 16px; color: var(--muted); }
.place > span:last-child { grid-row: 1 / 3; grid-column: 3; align-self: center; font-size: 16px; color: #4b6a6a; }
/* Help */
.narrow { max-width: 620px; margin: 4px auto; }
table.help { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--cardline); border-radius: 3px; margin: 14px 0; }
table.help th, table.help td { text-align: left; padding: 9px 14px; border-bottom: 1px solid #cbd8c6; font-size: 18px; line-height: 16px; }
table.help th { width: 110px; font-weight: 400; color: #2f5562; }
.check { display: flex; gap: 8px; align-items: center; font-size: 18px; }

/* MinerDex (About me) */
.dex-hero { display: grid; grid-template-columns: 146px minmax(0, 1fr) auto; gap: 8px 18px; padding: 14px 18px 14px; background: var(--hero); border: 3px solid var(--frame); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--heroline), 3px 3px 0 rgba(31,48,75,.2); }
.dex-pic { grid-row: 1 / 3; padding-top: 6px; }
#mc-portrait { display: block; width: 134px; height: 134px; image-rendering: auto; border: 3px solid #fffaf0; outline: 2px solid #3e5e5a; background: #d1e3d3; box-shadow: 6px 6px 0 2px #bed0b6; margin: 2px; }
.dex-id { min-width: 0; }
.dex-eyebrow { font-size: 16px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: #658377; margin: 0 0 4px !important; }
.dex-name { font-size: 16px; line-height: 24px; margin: 0; color: var(--ink); }
.dex-tag { font: 400 24px/26px var(--vt); color: #3d7477; margin: 4px 0 6px !important; }
.dex-deg { font-size: 18px; line-height: 16px; color: #3e5560; margin: 0 !important; }
.dex-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; width: 340px; }
.dex-types { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.type { padding: 2px 7px; border: 2px solid var(--frame); font: 400 18px/22px var(--vt); white-space: nowrap; color: #23364a; box-shadow: inset 0 0 0 1px #fff; }
.type i { font-style: normal; font-weight: 400; font-size: 16px; color: #4d6466; }
.type.t1 { background: #e6f1d6; } .type.t2 { background: #dceaf4; }
.dex-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dex-stats div { display: flex; flex-direction: column; gap: 2px; padding: 5px 10px 6px; background: var(--card); border: 2px solid #3e5560; }
.dex-stats i { font-style: normal; white-space: nowrap; font-size: 16px; line-height: 14px; letter-spacing: .1em; color: #4d6466; }
.dex-stats b { font-size: 22px; line-height: 18px; color: var(--ink); }
.dex-bio { grid-column: 2 / -1; margin: 2px 0 0 !important; font-size: 20px; line-height: 22px; color: #4e6266; }
.dex-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.dex-actions .btn { min-height: 46px; }
.dex-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 0 !important; padding: 9px 14px; background: #f2efd8; border: 1px solid #d0d6bc; border-radius: 3px; font-size: 18px; color: #65716b; }
.dex-controls span { display: flex; align-items: center; gap: 6px; } .dex-controls b { color: #476165; }
.dex-h { font: 400 28px/28px var(--vt); margin: 16px 0 8px; color: #315865; font-weight: 400; }
.dex-hrow { display: flex; align-items: baseline; justify-content: space-between; } .dex-hrow .dex-h { margin-bottom: 10px; }
.dex-link { background: none; border: 0; padding: 4px 0; font: 400 20px/20px var(--vt); color: #3c6e7c; }
.dex-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dex-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dex-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dexc { position: relative; display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 11px 24px 11px 10px; background: var(--card); border: 2px solid var(--cardline); border-radius: 4px; color: #345b67; }
.dexc:hover, .dexc:focus-visible { border-color: #477b84; background: var(--card2); }
.dx-mono { font: 400 26px/26px var(--vt); color: #628e7c; min-width: 30px; }
.dx-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-body small { font-size: 16px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: #70836c; }
.dx-body strong { font: 400 26px/28px var(--vt); color: #2e5260; }
.dx-body em { font-style: normal; font-size: 18px; line-height: 16px; color: #3e5560; }
.dx-sum, .dx-stack { font-size: 18px; line-height: 18px; color: #55716a; }
.dx-go { position: absolute; top: 8px; right: 10px; font-size: 20px; color: #355a64; }
.dex-edu { display: flex; flex-direction: column; gap: 0; margin-top: 12px; font-size: 18px; line-height: 18px; color: #4e6560; }
.dex-edu b { color: #2f5562; }
.dex-moves { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 9px 14px; background: var(--card); border-left: 3px solid #9fbbab; font-size: 18px; line-height: 18px; color: #3e5560; }
.dex-moves b { color: #2f5562; letter-spacing: .06em; }
.dex-talk { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 2px solid #bccdb5; }
.dex-talk .dex-h { margin: 0 0 4px; } .dex-talk p { margin: 0 !important; font-size: 18px; color: #62766d; }
.dex-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.talk { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 2px solid #bccdb5; padding-top: 12px; margin-top: 16px; }
.talk .h3 { margin: 4px 0; } .talk .btnrow { margin: 6px 0; }
.skrow { display: grid; grid-template-columns: 200px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--cardline); }
.sklabel { font: 400 18px/27px var(--vt); color: #2f5562; } .skitems { display: flex; flex-wrap: wrap; gap: 5px; }
/* dialogue */
#modal.k-npc { width: min(680px, 94vw); }
#modal-head.npc { background: var(--frame); border-bottom-color: var(--frame); } #modal-head.npc #crumb { display: none; } #modal-head.npc + #modal-body { padding-top: 0; }
.k-npc #modal-head { justify-content: flex-end; }
.npc-top { display: flex; gap: 14px; align-items: center; background: var(--frame); margin: 0 -30px 14px; padding: 0 30px 14px; color: #fff; }
#npc-portrait { width: 64px; height: 64px; image-rendering: pixelated; border: 2px solid #fff; }
#npc-text { font-size: 22px; line-height: 22px; min-height: 3em; }
.choice { text-align: left; background: var(--card); border: 2px solid var(--cardline); border-radius: 3px; padding: 12px; font: 400 20px/23px var(--vt); color: #2f5562; display: flex; justify-content: space-between; gap: 8px; }
.choice.on, .choice:hover { border-color: #507c88; background: var(--card2); }
.mcard { align-items: center; min-height: 72px; }
.mcard .mc-t { display: block; font: 400 8px/12px var(--pix); color: #23485a; -webkit-font-smoothing: none; margin-bottom: 4px; }
.mcard .mc-s { display: block; font: 400 18px/18px var(--vt); color: #5d7f86; }
.mcard .mc-go { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #8fb0b4; background: #fffaf0; font-size: 12px; color: #2f5562; }
.npc-foot { justify-content: space-between; align-items: center; margin-top: 14px; } #npc-go:empty { display: none; } .npc-foot > .ghost { margin-left: auto; }
.mcards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* bus transition */
#bus-fx { position: fixed; inset: 0; z-index: 30; background: rgba(22,52,66,0); transition: background .4s; display: grid; place-items: center; }
#bus-fx.show { background: rgba(22,62,101,.92); }
#bus-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#bus-card { position: relative; top: 96px; background: var(--paper); border: 3px solid var(--frame); box-shadow: inset 0 0 0 2px var(--ring), var(--shadow); padding: 12px 18px; font-size: 16px; line-height: 16px; }
.noscript { position: fixed; inset: 0; z-index: 99; background: var(--paper); padding: 30px; overflow: auto; font-size: 24px; }
html.reduce * { animation: none !important; transition: none !important; }

/* tablets */
@media (max-width: 980px) {
  .dlabel { display: none; }
  .side { flex-direction: column; align-items: stretch; gap: 5px; }
}
/* phones */
@media (max-width: 760px) {
  .hud-top { left: 8px; right: 8px; top: 8px; gap: 6px; }
  .hud-left { gap: 6px; }
  #profile { gap: 8px; padding: 6px 8px 6px 6px; border-width: 2px; }
  .who { gap: 4px; } .who b { font-size: 8px; line-height: 8px; } .who span { font-size: 16px; line-height: 16px; white-space: nowrap; }
  .hud-about { white-space: nowrap; }
  .hud-about { padding-left: 8px; margin-left: 0; font-size: 16px; gap: 4px; } .hud-about img { width: 12px; height: 12px; }
  .skipgame { font-size: 16px; line-height: 14px; padding: 4px 8px; } .skipgame .long { display: none; } .skipgame .short { display: inline; }
  .plate { min-width: 0; padding: 5px 8px; border-width: 2px; } .plate b { font-size: 16px; line-height: 16px; } .plate span { font-size: 14px; line-height: 14px; letter-spacing: 0; white-space: nowrap; }
  #dock { bottom: max(7px, env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 7px 8px 9px; }
  .tabs { gap: 4px; padding-bottom: 7px; } .tabs > * { min-height: 36px; padding: 4px 2px; font-size: 16px; letter-spacing: 0; }
  .row { gap: 7px; padding-top: 8px; }
  .dpad { grid-template-columns: repeat(3, 32px); grid-template-rows: repeat(3, 30px); }
  .run { min-width: 50px; padding: 4px; align-self: stretch; } .run kbd { display: none; }
  .side { min-width: 70px; } .wo .long { display: none; } .wo .short { display: inline; }
  .act { min-height: 0; align-self: stretch; font-size: 18px; line-height: 16px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 6px 8px; }
  .side .mini { min-height: 40px; padding: 4px 6px; font-size: 16px; white-space: normal; text-align: center; }
  .pop { right: 8px; bottom: 210px; }
  #toast { bottom: 220px; }
  .sign .chip { display: none; } .sign.minor { display: none !important; }
  #modal-wrap { padding: 6px; } #modal { width: 100%; max-height: 94vh; border-width: 3px; box-shadow: inset 0 0 0 3px var(--ring), 4px 4px 0 rgba(31,48,75,.38); }
  #modal-head { min-height: 50px; margin: 3px 3px 0; padding: 8px 10px 8px 12px; } #crumb { font-size: 8px; line-height: 8px; }
  #modal-body { padding: 16px 14px 18px; margin: 0 3px 3px; }
  .h1 { font-size: 16px; line-height: 24px; }
  .grid2, .grid3, .dex-grid2, .dex-grid3 { grid-template-columns: 1fr; }
  .pcard { min-height: 0; }
  .dex-hero { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 10px 12px; }
  .dex-pic { grid-row: auto; grid-column: 1 / -1; padding-top: 2px; display: flex; justify-content: center; } #mc-portrait { width: 134px; height: 134px; box-shadow: 4px 4px 0 2px #bed0b6; }
  .dex-side { grid-column: 1 / -1; width: auto; } .dex-types { justify-content: flex-start; }
  .dex-bio { grid-column: 1 / -1; font-size: 18px; line-height: 20px; }
  .dex-tag { font-size: 22px; line-height: 20px; }
  .dex-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 14px; }
  .dex-controls { gap: 6px 12px; padding: 8px; font-size: 16px; }
  .dex-talk { flex-direction: column; align-items: flex-start; }
  .skrow { grid-template-columns: 1fr; }
  .npc-top { margin: 0 -14px 12px; padding: 0 14px 12px; }
}

/* pixel cursors (original art, UTEP navy, cream and orange) */
:root { --cur: url("../assets/cursors/miner-arrow.svg?v=15") 2 1, default; --cur-ptr: url("../assets/cursors/miner-pointer.svg?v=15") 2 1, pointer; }
html, body, canvas { cursor: var(--cur); }
a, button, [role="button"], select, summary, label[for], .mini, .tabs > *, .dpad button, .run, .act, .pcard, .chip, .place, .choice, .btn, .pet-btn, .pop button { cursor: var(--cur-ptr); }
.act:disabled { cursor: var(--cur); }
input[type="text"], input[type="search"], textarea { cursor: text; }
