:root {
  color-scheme: light;
  --paper: #f4f3eb;
  --ink: #262524;
  --muted: #54585a;
  --maroon: #800000;
  --dark: #420000;
  --gold: #ffd17f;
  --hud: #192b3fea;
  --hud-edge: #ebf6fc5c;
  --bar-height: 68px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid #51b0d3; outline-offset: 3px; }
button:disabled { cursor: default; }
h1, h2, p { margin: 0; }
kbd { font: inherit; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; flex: none; }
[data-icon] svg { width: 100%; height: 100%; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.masthead { color: #fff; background: var(--maroon); border-bottom: 3px solid #420000; position: relative; z-index: 7; }
.bar { min-height: calc(var(--bar-height) - 3px); padding: 0 17px 0 0; display: flex; align-items: center; gap: 18px; }
.brand { display: grid; place-items: center; align-self: stretch; min-width: 168px; background: #800000; border-right: 1px solid #ffffff56; padding: 2px 9px; text-decoration: none; }
.brand img { display: block; width: 148px; height: auto; }
.game-title { white-space: nowrap; font: 700 clamp(19px, 3vw, 31px)/1 Georgia, serif; letter-spacing: -.025em; }
.game-title b { font-weight: inherit; }
.bar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.bar nav button { min-width: 41px; min-height: 40px; padding: 6px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #ffffff75; border-radius: 7px; color: #fff; background: #580000; font-size: 14px; font-weight: 750; }
.bar nav button:hover, .bar nav button[aria-pressed="true"]:not(.icon-button) { background: #3d0000; }
.bar nav button [data-icon] { font-size: 17px; }
.bar nav .icon-button { padding: 6px; }
#nav-stamps { font-size: 12px; white-space: nowrap; padding: 2px 5px; border-radius: 4px; color: #420000; background: #fff4e9; font-weight: 850; }
.eyebrow { font-size: 11px; font-weight: 860; line-height: 1.25; letter-spacing: .15em; text-transform: uppercase; }
.shell, .world { min-width: 0; }
.map { position: relative; isolation: isolate; width: 100%; height: calc(100dvh - var(--bar-height)); min-height: 400px; overflow: hidden; background: #86976c; }
.map canvas { display: block; width: 100%; height: 100%; position: absolute; z-index: 1; inset: 0; cursor: grab; touch-action: none; }
.map.dragging canvas { cursor: grabbing; }
.map-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg,#221c1944,transparent 19%,transparent 68%,#160f0ec4), radial-gradient(ellipse at 52% 48%,transparent 54%,#493c461c); }
.location-ribbon { display: flex; align-items: center; gap: 11px; position: absolute; z-index: 4; top: 16px; left: 16px; max-width: min(52%,350px); min-height: 55px; padding: 8px 13px 8px 8px; background: var(--hud); border: 1px solid var(--hud-edge); border-radius: 9px; color: #fff9ef; box-shadow: 0 4px 14px #1a091f35; pointer-events: none; }
.place-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #24666e; color: white; border-radius: 6px; font-size: 19px; flex: none; }
.location-ribbon h2 { font: 700 clamp(16px,2.1vw,21px)/1.11 Georgia, serif; }
#map-status { display: block; margin-top: 4px; font-size: 12px; color: #e6ded5; }
.compass { position: absolute; z-index: 4; top: 81px; left: 17px; width: 43px; height: 46px; display: grid; place-items: center; align-content: center; gap: 0; background: var(--hud); border: 1px solid var(--hud-edge); border-radius: 8px; color: #fff8f0; }
.compass > [data-icon] { color: var(--gold); font-size: 18px; transform: rotate(var(--bearing,0rad)); }
.compass b { font: 800 10px/1 sans-serif; }
.compass:disabled { opacity: .65; }
.mission-hud { position: absolute; z-index: 4; top: 16px; right: 16px; min-width: 226px; max-width: min(36%, 324px); padding: 10px 11px; background: var(--hud); border: 1px solid var(--hud-edge); border-top: 4px solid var(--objective-color,#ffd17f); border-radius: 9px; color: #fff8ef; box-shadow: 0 4px 20px #170c1352; pointer-events: none; }
.mission-top { display: flex; align-items: center; gap: 9px; }
.mission-bearing { width: 36px; height: 36px; border-radius: 50%; padding: 8px; background: var(--objective-color,#ffd17f); color: #252c36; }
.mission-bearing svg { transform: rotate(var(--heading,0rad)); }
#mission-kicker { display: block; color: var(--objective-color,#ffd798); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
#mission-name { display: block; font: 700 21px/1.14 Georgia, serif; }
.mission-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; padding-top: 7px; font-size: 13px; color: #f1e7dc; }
#mission-distance { color: var(--gold); font-variant-numeric: tabular-nums; }
.score-hud { position: absolute; z-index: 4; bottom: max(15px,env(safe-area-inset-bottom)); right: 16px; display: flex; align-items: stretch; gap: 6px; }
.player-chip { border: 1px solid var(--hud-edge); background: var(--hud); color: #fff8ee; border-radius: 8px; display: flex; align-items: center; text-align: left; gap: 7px; padding: 5px 10px 5px 5px; min-height: 44px; }
.player-chip:hover { background: #580000; }
.player-icon { width: 32px; height: 32px; background: var(--hoodie,#800000); color: #fff; border-radius: 5px; padding: 6px; }
.player-chip strong, .player-chip small { display: block; }
.player-chip strong { font-size: 14px; }
.player-chip small { font-size: 11px; color: #e5d7ce; }
.collect-hud { display: flex; align-items: center; gap: 5px; background: var(--hud); color: var(--gold); border: 1px solid var(--hud-edge); border-radius: 8px; padding: 0 11px; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.welcome { position: absolute; z-index: 5; top: 16px; right: 16px; width: min(360px, calc(100% - 32px)); padding: 16px; color: #fff9ed; background: linear-gradient(145deg,#182e42,#24384e); border: 1px solid #cdbfaaa0; border-radius: 11px; box-shadow: 0 9px 32px #13141c80; }
.welcome h2 { margin-bottom: 12px; font: 700 clamp(23px,3.1vw,31px)/1.08 Georgia, serif; letter-spacing: -.025em; }
.welcome-actions { display: grid; gap: 8px; }
.welcome-choice { --choice-bg: #e1f1df; --choice-ink: #1d483d; --choice-icon: #c2e0d1; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; min-height: 60px; padding: 7px 10px; color: var(--choice-ink); background: var(--choice-bg); border: 1px solid var(--choice-icon); border-radius: 8px; text-align: left; touch-action: manipulation; }
.welcome-choice:hover { background: color-mix(in srgb, var(--choice-bg) 83%, white); border-color: #fff5d7; }
.welcome-choice strong, .welcome-choice small { display: block; }
.welcome-choice strong { font-size: 16px; font-weight: 850; line-height: 1.13; }
.welcome-choice small { margin-top: 4px; font-size: 13px; font-weight: 650; line-height: 1.22; }
.welcome-choice .welcome-choice-icon { width: 36px; height: 36px; padding: 8px; border-radius: 7px; background: var(--choice-icon); }
.welcome-games { --choice-bg: #ffde9e; --choice-ink: #542136; --choice-icon: #f4bd6f; }
.interact { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: max(70px,calc(env(safe-area-inset-bottom) + 56px)); min-height: 52px; width: max-content; max-width: calc(100% - 26px); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 11px; color: #fff; background: var(--maroon); border: 2px solid #ffeed7; border-radius: 10px; box-shadow: 0 4px 0 #420000,0 6px 25px #160e14bd; font-weight: 850; }
.interact:hover { background: #a30000; }
.interact kbd, .controls-bar kbd { border: 1px solid #ffffff60; border-radius: 4px; background: #ffffff20; padding: 3px 5px; line-height: 1.15; white-space: nowrap; }
.controls-bar { display: flex; gap: 11px; position: absolute; left: 16px; bottom: 15px; z-index: 4; border: 1px solid var(--hud-edge); border-radius: 7px; padding: 7px 8px; background: var(--hud); color: #f4efe7; font-size: 12px; font-weight: 720; pointer-events: none; }
.controls-bar > span { display: flex; gap: 5px; align-items: center; }
.token-pop { position: absolute; z-index: 5; top: 23%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: #3c2006f2; color: #ffdc99; border: 1px solid #d8aa62; border-radius: 8px; white-space: nowrap; font-weight: 850; pointer-events: none; animation: toast-in .23s both ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,9px); } to { opacity: 1; transform: translate(-50%,0); } }
.move-pad { display: none; position: absolute; z-index: 5; left: max(18px,env(safe-area-inset-left)); bottom: max(22px,calc(env(safe-area-inset-bottom) + 10px)); width: 104px; height: 104px; border: 2px solid #fff5eb91; background: #1f39547a; border-radius: 50%; touch-action: none; pointer-events: auto; }
#move-stick { position: absolute; inset: 28px; border-radius: 50%; background: #800000d9; border: 2px solid #fff3e2; box-shadow: 0 0 12px #351f1c80; pointer-events: none; }
.map-pins { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.pin { position: absolute; left: var(--left); top: var(--top); transform: translate(-50%,-94%); z-index: 1; color: #282321; background: var(--accent); border: 2px solid #fff5dd; border-radius: 9px; box-shadow: 0 3px 0 #293028cb,0 5px 14px #1a241c8c; display: flex; align-items: center; justify-content: center; gap: 6px; pointer-events: auto; font-weight: 850; font-size: 13px; width: 43px; height: 41px; padding: 0; white-space: nowrap; }
.pin::after { content: ""; width: 7px; height: 7px; background: var(--accent); border: solid #fff5dd; border-width: 0 2px 2px 0; position: absolute; bottom: -6px; left: calc(50% - 4px); transform: rotate(45deg); }
.pin [data-icon] { width: 19px; height: 19px; }
.pin:hover, .pin:focus-visible, .pin.selected { z-index: 3; box-shadow: 0 0 0 4px #ffedaf77,0 4px 0 #293028d9; }
.pin-label { display: none; position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); border: 1px solid #fff4d588; border-radius: 6px; padding: 4px 7px; background: var(--hud); color: #fff5e5; pointer-events: none; }
.pin:hover .pin-label, .pin:focus-visible .pin-label, .pin.selected .pin-label { display: inline; }
.pin .pin-done { position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border: 1px solid #fff6db; border-radius: 50%; color: #fff8e8; background: #446648; padding: 2px; }
.pin .pin-done [data-icon] { width: 100%; height: 100%; }
.pin.off-map { visibility: hidden; }
.custom-map-pin { --accent: #d9bbff; color: #492371; z-index: 4; }
.custom-map-pin:hover, .custom-map-pin:focus-visible, .custom-map-pin.selected { z-index: 4; box-shadow: 0 0 0 4px #d9bbff80,0 4px 0 #37234fcf; }
.route { color: #292523; position: absolute; z-index: 5; right: 13px; top: 14px; width: min(326px,38%); max-height: calc(100% - 28px); overflow: auto; background: #f5fbf8fa; border: 1px solid #fff; border-top: 5px solid #2a6974; border-radius: 10px; padding: 10px; box-shadow: 0 7px 42px #170b1494; }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.route-head h2 { font: 700 clamp(19px,2.2vw,23px)/1.08 Georgia,serif; margin-top: 3px; color: var(--maroon); }
.route-head .eyebrow { color: #54585a; font-size: 10px; }
.route-head button { border: 1px solid #b6aca6; background: #fff; border-radius: 6px; min-width: 38px; min-height: 37px; color: var(--maroon); display: grid; place-items: center; }
#route-help { margin-top: 4px; color: #454b51; font-size: 13px; line-height: 1.24; }
.map-pin-card { padding: 9px; margin: 0 0 9px; background: #f2eafa; border: 1px solid #c5a5e4; border-radius: 8px; color: #42235e; }
.map-pin-heading { display: flex; align-items: flex-start; gap: 7px; }
.map-pin-heading > [data-icon] { width: 23px; height: 23px; }
.map-pin-heading strong { display: block; font-size: 15px; font-weight: 850; }
#map-pin-status { margin-top: 3px; font-size: 12px; line-height: 1.23; }
.map-pin-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.map-pin-actions button { min-height: 39px; padding: 5px 8px; border: 1px solid #a780cc; border-radius: 6px; background: #fffafa; color: #42235e; font-size: 13px; font-weight: 800; }
.map-pin-actions button:hover { border-color: #55317a; background: #f6edff; }
#map-pin-go { color: #fff; background: #583582; }
#map-pin-go:hover { background: #684094; }
#map-pin-go:disabled { opacity: .55; }
#map-pin-clear { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: .15em; }
.map-pin-feedback { margin: 0 0 8px; padding: 5px 7px; color: #68273d; background: #fce6e2; border-radius: 5px; font-size: 13px; }
.stop-list { display: grid; gap: 4px; }
.stop { display: grid; grid-template-columns: 34px minmax(0,1fr) 23px; align-items: center; text-align: left; width: 100%; min-height: 44px; gap: 7px; padding: 3px 6px 3px 4px; border: 1px solid #e0d9d2; background: #fff; border-radius: 8px; }
.stop:hover, .stop:focus-visible { border-color: var(--maroon); background: #fff5ec; }
.stop-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; padding: 5px; background: color-mix(in srgb,var(--accent) 66%,#fff); color: #392524; }
.stop strong, .stop small { display: block; overflow-wrap: anywhere; }
.stop strong { font-size: 14px; font-weight: 850; color: #2c2320; line-height: 1.09; }
.stop small { font-size: 11px; font-weight: 720; color: #5b5050; margin-top: 3px; line-height: 1.1; }
.stop-state { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f4e5e0; color: #800000; }
.stop.done .stop-state { color: #416043; background: #e1eddb; }
.route-bottom { display: flex; justify-content: space-between; gap: 5px; padding-top: 5px; }
.route-bottom button { border: 0; padding: 5px 2px 1px; background: none; font-size: 12px; font-weight: 750; color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }
.map-controls { position: absolute; z-index: 5; bottom: 16px; left: 16px; display: flex; gap: 5px; }
.map-controls button { width: 42px; height: 42px; background: var(--hud); border: 1px solid var(--hud-edge); border-radius: 8px; color: #fff8e8; }
.map-controls button:disabled { display: none; }
.map-controls button:hover, .compass:hover { background: #420000; }
.map.is-map .score-hud, .map.is-map .controls-bar, .map.is-map .move-pad { display: none; }
@media (max-width: 760px) {
  :root { --bar-height: 60px; }
  .bar { gap: 7px; padding-right: 7px; }
  .brand { min-width: 124px; padding: 0 5px; }
  .brand img { width: 110px; }
  .game-title { font-size: 19px; }
  .bar nav { gap: 4px; }
  .bar nav button { min-width: 36px; min-height: 40px; padding: 5px; }
  .nav-text { display: none; }
  #nav-stamps { padding: 1px 3px; }
}
@media (max-width: 560px) {
  .game-title { display: none; }
  .bar nav button { min-width: 37px; }
  .location-ribbon { top: 8px; left: 8px; min-height: 45px; max-width: 54%; padding: 5px 7px 5px 5px; gap: 5px; }
  .place-icon { width: 28px; height: 29px; font-size: 15px; }
  #map-status { font-size: 10px; }
  .compass { top: 60px; left: 8px; width: 37px; height: 40px; }
  .mission-hud { top: 8px; right: 8px; min-width: 0; width: 44%; max-width: 164px; padding: 5px; border-top-width: 3px; }
  .mission-top { gap: 4px; }
  .mission-bearing { width: 26px; height: 26px; padding: 4px; }
  #mission-kicker { font-size: 8px; letter-spacing: .05em; }
  #mission-name { font-size: 15px; }
  .mission-bottom { font-size: 10px; padding-top: 3px; }
  .score-hud { bottom: max(8px,env(safe-area-inset-bottom)); right: 8px; }
  .player-name-wrap { display: none; }
  .player-chip { padding: 4px; }
  .welcome { inset: 63px 10px auto; width: auto; padding: 12px; }
  .map:has(.welcome:not([hidden])) :is(#campus-minimap, .compass) { visibility: hidden; }
  .welcome h2 { margin-bottom: 8px; }
  .welcome-choice { min-height: 53px; padding-block: 5px; }
  .interact { left: auto; right: 11px; transform: none; bottom: max(61px,calc(env(safe-area-inset-bottom) + 47px)); max-width: min(61%,245px); font-size: 14px; min-height: 49px; }
  .interact kbd, .controls-bar { display: none; }
  .route { top: auto; right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 41%; padding: 6px; }
  .route-head { margin-bottom: 4px; }
  .route-head button { min-height: 32px; }
  .map-pin-actions button { min-height: 44px; }
  .stop-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stop { grid-template-columns: 28px minmax(0,1fr); min-height: 42px; gap: 5px; }
  .stop-icon { width: 28px; height: 28px; }
  .stop strong { font-size: 12px; }
  .stop-state, .pin-label { display: none !important; }
  .pin { width: 37px; height: 37px; }
  .map-controls { bottom: auto; top: 59px; left: auto; right: 8px; }
}
@media (pointer: coarse) {
  .move-pad { display: block; }
  .controls-bar, .interact kbd { display: none; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .map { min-height: 280px; }
  .welcome { inset: 8px 8px auto auto; width: min(310px, 43%); padding: 10px; }
  .welcome h2 { font-size: 21px; margin-bottom: 7px; }
  .welcome-choice { min-height: 48px; }
  .move-pad { width: 84px; height: 84px; }
  #move-stick { inset: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
.map-fallback { position: absolute; inset: 0; background-color: #799261; background-image: linear-gradient(0deg,transparent 0 32%,#d4c1a6 32% 33%,transparent 33% 60%,#d9c3a1 60% 61%,transparent 61% 79%,#d1bca0 79% 80%,transparent 80%),linear-gradient(90deg,transparent 0 19%,#cabb9d 19% 20%,transparent 20% 35%,#cabb9d 35% 36%,transparent 36% 66%,#cabb9d 66% 67%,transparent 67% 85%,#cabb9d 85% 86%,transparent 86%); }
.fallback-lawn { position: absolute; inset: 41% 39% 34% 41%; background: linear-gradient(90deg,transparent 47%,#dbccaf 47% 53%,transparent 53%),linear-gradient(0deg,transparent 44%,#dbccaf 44% 50%,transparent 50%),#9fb378; border: 4px solid #bcad98; }
.fallback-midway { position: absolute; inset: 69% 9% 21%; background: #abc086; border-block: 2px solid #d3bd99; }
.fallback-north, .fallback-south { position: absolute; left: 5%; color: #263328; font-size: 11px; font-weight: 800; }
.fallback-north { top: 40%; }.fallback-south { top: 72%; }
.fallback-block { position: absolute; background: #b6aa92; box-shadow: 3px 4px #55634970; border: 1px solid #d9ceb5; border-radius: 2px; width: 12%; height: 8%; }
.fb-one { left: 43%; top: 30%; }.fb-two { left: 57%; top: 30%; }.fb-three { left: 28%; top: 33%; }.fb-four { left: 43%; top: 18%; background: #bb7659; }.fb-five { left: 22%; top: 84%; }.fb-six { left: 72%; top: 51%; }
dialog { width: min(95vw, 620px); max-height: min(92dvh, 860px); padding: 0; margin: auto; border: 1px solid #b08b84; border-radius: 19px; color: var(--ink); background: #fff8eb; box-shadow: 0 22px 88px #15070a8c; overscroll-behavior: contain; }
dialog::backdrop { background: #210d18b0; backdrop-filter: blur(4px); }
.dialog-pad { padding: 24px; }
.dialog-pad > h2 { padding-right: 38px; color: #4c1d2e; font: 700 clamp(29px, 5.5vw, 44px)/1.03 Georgia, serif; letter-spacing: -.038em; }
.close { position: absolute; top: 11px; right: 11px; min-width: 41px; min-height: 41px; z-index: 5; display: grid; place-items: center; color: #663449; background: #f1e2d6; border: 1px solid #d9bcb2; border-radius: 10px; }
.close:hover { background: #ead3c9; }
.pill { padding: 10px 16px; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; font-weight: 800; line-height: 1.2; text-decoration: none; border-radius: 9px; border: 1px solid #68182d; background: #741c38; color: #fff4df; text-align: center; }
.pill:hover { background: #8d2b48; }
.pill.secondary { background: #f5e7da; color: #672940; border-color: #e1c9bd; }
.pill.secondary:hover { background: #efdbce; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.simple-copy { color: #695456; margin-top: 12px; line-height: 1.45; }
.avatar-customize { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 19px; margin-top: 13px; }
.portrait { border-radius: 14px; display: grid; place-items: center; background: linear-gradient(155deg,#d7e5dd,#e7dfef); min-height: 173px; overflow: hidden; }
.portrait svg { width: 100%; max-width: 173px; display: block; align-self: end; }
.choices p, .gear-choice { font-size: 15px; color: #573a3d; font-weight: 820; }
.swatches, .hair-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 12px; }
.swatches button { background: var(--swatch); width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff8eb; outline: 1px solid #b59793; }
.swatches button[aria-pressed="true"] { outline: 2px solid #6d1f3b; }
.hair-choices button { min-width: 43px; min-height: 37px; background: #f4e7db; padding: 4px 8px; border: 1px solid #d7beb2; border-radius: 7px; font-size: 13px; font-weight: 700; }
.hair-choices button[aria-pressed="true"] { background: #722541; color: #fff5e4; border-color: #722541; }
.gear-choice { display: grid; gap: 4px; }
.gear-choice select { max-width: 100%; min-height: 37px; font: inherit; font-size: 14px; font-weight: 650; border-radius: 7px; border: 1px solid #d7beb2; background: #fff8eb; color: #4a2935; padding: 0 7px; }
.dialog-game { width: min(96vw, 720px, calc((93dvh - 65px) * 1.6)); background: #281421; color: #fff3db; border-color: #8a5f6f; overflow: hidden; }
.dialog-game .close { background: #543047; color: #ffe9cf; border-color: #79526a; top: 9px; right: 9px; }
.dialog-game .close:hover { background: #714157; }
.round-top { min-height: 65px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 59px 8px 12px; }
.round-icon { border-radius: 9px; color: #342332; background: var(--accent); padding: 9px; width: 42px; height: 42px; display: grid; place-items: center; }
.round-top h2 { font: 700 clamp(18px, 4vw, 30px)/1 Georgia, serif; color: #fff2db; letter-spacing: -.03em; }
.round-top p { color: var(--accent); margin-bottom: 3px; font-size: 12px; font-weight: 820; line-height: 1.05; }
.round-meters { display: flex; gap: 6px; color: #ffda9a; }
.round-meters > span { background: #502b42; min-width: 56px; padding: 5px 6px; border: 1px solid #7c4a60; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.round-meters > span.hurry { color: #fff5df; background: #a33e57; }
.game-wrap { position: relative; background: #261321; }
.game-wrap canvas { touch-action: none; display: block; width: 100%; height: auto; aspect-ratio: 8/5; }
.countdown { inset: 0; position: absolute; display: grid; gap: 7px; place-content: center; place-items: center; z-index: 2; color: #fff4d4; background: #241323a0; pointer-events: none; }
.countdown span[data-icon] { font-size: clamp(21px, 4vw, 45px); color: #ffca75; }
.countdown b { font: 900 clamp(53px, 11vw, 100px)/.88 Georgia, serif; text-shadow: 0 5px #32142c, 0 0 37px #f3a45c99; }
.result-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding-right: 32px; }
.result-emblem { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #70284435; border-radius: 13px; color: #482739; background: var(--accent); font-size: 32px; }
.result-top h2 { font: 700 clamp(24px, 4.5vw, 38px)/1.01 Georgia, serif; color: #461b2e; margin: 2px 0; letter-spacing: -.036em; }
.result-top p:not(.eyebrow) { color: #735d5c; font-size: 14px; font-weight: 700; }
.score-card { color: #5f273b; text-align: center; background: #f3e4d9; border-radius: 8px; padding: 5px 8px; min-width: 56px; }
.score-card b, .score-card span { display: block; }
.score-card b { font: 700 26px/1 Georgia, serif; }
.score-card span { font-size: 12px; margin-top: 4px; white-space: nowrap; }
.reward { margin-top: 13px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 6px 9px; color: #6e3a36; background: #f7e7c9; border-radius: 8px; border: 1px solid #e7c898; font-size: 14px; }
.reward span strong { margin-left: 2px; }
.fact { display: grid; gap: 4px; margin-top: 12px; padding: 10px 11px; border: 1px solid #ead8cb; border-radius: 9px; background: #fffbf4; }
.fact h3, .academic-list h3 { margin: 0; display: flex; align-items: center; gap: 6px; color: #673047; font-size: 15px; }
.fact p, .academic-list p { color: #47373b; line-height: 1.38; font-size: 16px; }
.fact a, .academic-list a, .source-list a { color: #77364a; text-underline-offset: 3px; font-size: 13px; font-weight: 750; justify-self: start; }
.academic-list { display: grid; gap: 8px; margin-top: 15px; }
.academic-list article { display: grid; gap: 3px; padding: 8px 0 10px; border-bottom: 1px solid #ead8cb; }
.academic-list article:last-child { border-bottom: 0; }
.source-list { display: grid; gap: 10px; padding-left: 19px; }
.source-list a { font-size: 15px; }
.board-list { padding: 0; margin: 13px 0 0; display: grid; gap: 5px; list-style-type: none; }
.board-list li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px; border: 1px solid #e7d4c5; border-radius: 9px; background: #fffdf6; }
.board-list li:first-child { border-color: #e1bd8c; background: #faebd2; }
.rank { display: grid; place-items: center; color: #762d45; font-weight: 850; }
.board-avatar { display: grid; place-items: center; color: #fff7e7; background: var(--hoodie); width: 33px; height: 33px; border-radius: 7px; }
.board-list strong { color: #4d2333; overflow-wrap: anywhere; }
.board-stamps { color: #68545a; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-weight: 720; }
.board-list b { justify-self: end; white-space: nowrap; min-width: 63px; text-align: right; color: #542137; }
.board-list b small { font-size: .76em; }
.empty-board { margin: 14px 0 0; padding: 21px 12px; border: 1px dashed #d6b8ae; border-radius: 9px; text-align: center; color: #65484f; font-size: 16px; font-weight: 750; }
.board-screen { max-width: 1100px; padding: 34px 24px; margin: auto; }
.board-screen-head > p:not(.eyebrow) { color: #735763; font-size: 17px; }
.board-screen .board-list { margin: 19px 0; }
.board-screen .board-list li { gap: clamp(6px, 1.8vw, 20px); min-height: 68px; grid-template-columns: clamp(26px, 6vw, 56px) 43px minmax(0, 1fr) auto auto; padding: 7px 12px; font-size: clamp(14px, 2.3vw, 23px); }
.board-screen .board-avatar { width: 40px; height: 40px; }
.board-screen > .pill { margin-top: 12px; }
@media (max-width: 500px) {
  dialog { border-radius: 13px; }
  .dialog-pad { padding: 14px; }
  .avatar-customize { grid-template-columns: minmax(95px, 34%) minmax(0,1fr); gap: 9px; }
  .portrait { min-height: 112px; }
  .swatches, .hair-choices { gap: 4px; }
  .swatches button { min-width: 36px; min-height: 36px; width: 36px; height: 36px; }
  .dialog-game .close { top: 7px; right: 5px; min-width: 33px; min-height: 35px; }
  .round-top { min-height: 50px; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 5px; padding: 5px 42px 5px 5px; }
  .round-icon { width: 31px; height: 31px; padding: 4px; }
  .round-top p { font-size: 11px; }
  .round-meters { gap: 3px; }
  .round-meters > span { min-width: 31px; font-size: 12px; padding: 4px 3px; gap: 2px; }
  .round-meters [data-icon] { font-size: 10px; }
  .result-top { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 6px; padding-right: 32px; }
  .result-emblem { width: 42px; height: 42px; font-size: 22px; border-radius: 8px; }
  .score-card { min-width: 36px; padding: 5px; }
  .score-card b { font-size: 22px; }
  .score-card span { font-size: 10px; }
  .result-top h2 { font-size: 23px; }
  .reward { padding: 5px; font-size: 13px; }
  .board-list li { grid-template-columns: 18px 26px minmax(0, 1fr) auto auto; gap: 4px; font-size: 13px; }
  .board-avatar { width: 25px; height: 25px; }
  .board-list b { min-width: 42px; }
}

.fast-travel { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 5px 8px; min-height: 33px; color: #fff; background: #800000; border: 1px solid #e7ae9899; border-radius: 5px; font-size: 12px; font-weight: 800; pointer-events: auto; }
.fast-travel:hover { background: #a20000; }
.dialog-pad > h2, .result-top h2, .fact h3, .academic-list h3, .board-list strong, .board-list b { color: #650000; }
.dialog-pad > h2 { font-size: clamp(27px,5vw,43px); }
dialog { border-color: #ab9994; background: #fbf8f1; }
.close, .pill.secondary { background: #eee8e1; color: #710000; border-color: #d9cbc2; }
.close:hover, .pill.secondary:hover { background: #e9dcd6; }
.pill { border-color: #530000; background: #800000; }
.pill:hover { background: #a10000; }
.pill:active { transform: translateY(1px); }
.result-top .eyebrow, .mission-cover .eyebrow { color: #800000; }
.fact a, .academic-list a, .source-list a { color: #800000; }
.dialog-game { border-color: #856c6c; }
.round-meters > span { background: #580000; border-color: #ad6b6b; }
.game-wrap { overflow: hidden; }
.board-screen h1 { color: #800000; margin: 6px 0 12px; font: 700 clamp(42px,8vw,82px)/1 Georgia,serif; letter-spacing: -.045em; }

.mission-cover { display: flex; align-items: center; gap: 13px; padding-right: 33px; }
.mission-cover h2 { color: #650000; font: 700 clamp(27px,6vw,46px)/1 Georgia,serif; letter-spacing: -.035em; }
.mission-cover div > span { margin-top: 6px; display: flex; align-items: center; gap: 5px; color: #564846; font-size: 14px; font-weight: 775; }
.briefing .fact { margin-top: 15px; }
.field-note { border: 1px solid #dccaac; border-radius: 9px; background: #f7efdb; margin-top: 10px; padding: 10px; }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.note-head h3 { display: flex; align-items: center; gap: 5px; color: #800000; font-size: 15px; margin: 0; }
.note-head > b { display: inline-block; font-size: 12px; padding: 4px 6px; color: #692b20; border: 1px solid #d9af7a; border-radius: 6px; background: #f2e0bf; white-space: nowrap; }
.field-note p { color: #3c302b; margin-top: 5px; line-height: 1.35; }
.note-options { display: grid; gap: 5px; margin-top: 8px; }
.note-options button { min-height: 35px; padding: 5px 8px; text-align: left; border: 1px solid #d6c8bb; border-radius: 6px; color: #453631; background: #fffcf6; font-weight: 700; font-size: 14px; line-height: 1.2; }
.note-options button:hover:not(:disabled), .note-options button:focus-visible { border-color: #800000; }
.note-options button.try-again { background: #f2e3df; color: #685351; }
.note-options button.correct { background: #dfead3; border-color: #85a26c; color: #2b4625; }
.field-note.learned { border-color: #b2c29a; background: #edf2e2; }
#note-response { font-size: 14px; font-weight: 720; }
.discovery { margin-top: 9px; font-size: 14px; }
.discovery summary { color: #800000; cursor: pointer; font-weight: 780; width: fit-content; padding: 4px 0; }
.discovery .fact { margin-top: 3px; }
@media (max-width: 760px) { .map:not(.is-map) .move-pad { display: block; } .controls-bar, .interact kbd { display: none; } }
@media (max-width: 560px) {
  .fast-travel { margin-top: 3px; min-height: 32px; font-size: 11px; }
  .note-options button { min-height: 42px; }
}

#passport-button.passport-complete #nav-stamps { background: #d9f3be; color: #214829; }
.dialog-academic-picker { width: min(95vw,680px); }
.dialog-academic-picker > .dialog-pad { background: linear-gradient(165deg,#eeefe4,#f7f4ed 40%,#f4f5f8); }
.academic-route-list { display: grid; gap: 7px; margin-top: 12px; }
.academic-route-card {
  width: 100%; display: grid; grid-template-columns: 45px minmax(0,1fr) auto;
  text-align: left; align-items: center; gap: 9px; padding: 7px 9px 7px 7px;
  color: #252838; background: color-mix(in srgb, var(--route-accent) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--route-accent) 45%, #a99c99);
  border-left: 4px solid color-mix(in srgb, var(--route-accent) 64%, #575364); border-radius: 8px;
}
.academic-route-card:hover { background: color-mix(in srgb, var(--route-accent) 39%, #fff); border-color: #69566a; }
.academic-route-card:active { transform: translateY(1px); }
.academic-route-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--route-accent); color: #292634; box-shadow: 0 2px 0 #4641534d; border: 1px solid #3b355311; border-radius: 7px; }
.academic-route-icon > [data-icon] { font-size: 19px; }
.academic-route-copy { display: grid; gap: 2px; }
.academic-route-copy small { color: #55506a; font-size: 11px; line-height: 1.15; }
.academic-route-copy strong { font: 700 18px/1.07 Georgia, serif; color: #2e2945; }
.academic-route-copy > span { color: #3d3d4e; font-size: 14px; line-height: 1.23; }
.academic-route-status { align-self: start; margin-top: 3px; border-radius: 4px; border: 1px solid #3b355331; background: #ffffff7d; color: #363941; padding: 4px 5px; font-size: 10px; font-weight: 790; white-space: nowrap; }
.academic-result { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 9px; color: #154850; background: #d7efee; border: 1px solid #9fc8ca; border-radius: 7px; font-size: 14px; }
.academics-prompt { margin-top: 12px; }
@media (max-width: 500px) {
  .academic-route-card { grid-template-columns: 33px minmax(0,1fr); gap: 6px; align-items: start; }
  .academic-route-icon { width: 33px; height: 33px; }
  .academic-route-icon > [data-icon] { font-size: 16px; }
  .academic-route-copy strong { font-size: 16px; }
  .academic-route-copy > span { font-size: 13px; }
  .academic-route-status { display: none; }
}

.bar nav #passport-button {
  border: 1px solid #e6bd779f;
  border-left: 4px double #e2b478a6;
  background: repeating-linear-gradient(105deg,#ffe3bd07 0 1px,transparent 1px 5px), linear-gradient(145deg,#69161e,#48000c);
  color: #fff2d6;
  box-shadow: 0 3px #3e0002,inset 0 -2px #e5a85536;
}
.bar nav #passport-button:hover { background-color: #962d39; box-shadow: 0 3px #3e0002,inset 0 0 0 1px #ebc684a0; }
.bar nav #passport-button > [data-icon] { color: #ffce7a; }
#nav-stamps { background: #f4ddb4; color: #4c1123; }
.bar nav #passport-button.passport-complete #nav-stamps { background: #d9f3be; color: #214829; }
.bar nav #map-toggle, .bar nav #learn-button { border-bottom-color: #f4bf8caa; }
.passport-page-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; color: #78404b; font-size: 11px; font-weight: 820; text-transform: uppercase; letter-spacing: .12em; }
.passport-page-label > span:not([data-icon]) { background: #efe1d4; color: #6b2935; padding: 4px 6px; border-radius: 4px; font-size: 9px; }
.dialog-avatar .dialog-pad, .dialog-academic-picker .dialog-pad { background: repeating-linear-gradient(-39deg,#91694804 0 2px,transparent 2px 7px), linear-gradient(130deg,#f5ead5,#fff9ee 65%,#f6eddf); }
.dialog-avatar .portrait { border: 4px solid #fffaf0; outline: 1px solid #b5a38f; box-shadow: 0 2px 5px #614d2929; }
.passport-itinerary { position: relative; display: grid; gap: 10px; padding: 12px; border: 1px solid #c4ad93; border-left: 4px solid color-mix(in srgb,var(--next-accent) 65%,#733a35); border-radius: 8px; background: color-mix(in srgb,var(--next-accent) 24%,#fffaf0); color: #30272f; }
.itinerary-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.itinerary-copy { display: flex; align-items: center; gap: 7px; min-width: 0; }
.itinerary-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: #382837; background: var(--next-accent); border: 1px solid #af8c7880; border-radius: 6px; }
.itinerary-copy p { margin-bottom: 2px; color: #743745; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.itinerary-copy strong { display: block; font: 700 18px/1.06 Georgia,serif; }
.itinerary-copy small { display: block; margin-top: 3px; color: #494251; font-size: 12px; line-height: 1.1; }
.itinerary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: 66%; }
.itinerary-actions .pill { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.text-route { background: none; border: 0; padding: 8px 3px; color: #703142; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; }
.text-route:hover { color: #411224; }
.result-utilities { display: flex; flex-wrap: wrap; gap: 7px; }
.question-confirmation { display: flex; align-items: flex-start; gap: 8px; padding: 10px; color: #1d573e; background: #edf8e5; border: 1px solid #a4c693; border-radius: 7px; }
.question-confirmation > [data-icon] { font-size: 18px; }
.question-confirmation strong { font-size: 14px; }
.question-confirmation p { margin-top: 2px; color: #294637; font-size: 13px; line-height: 1.3; }
.academic-route-card .academic-route-game { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: #602636; font-size: 12px; }
@media (max-width: 500px) {
  .passport-itinerary { padding: 9px; }
  .itinerary-step { display: grid; gap: 8px; }
  .itinerary-actions { max-width: none; justify-content: flex-start; }
  .itinerary-actions .pill { font-size: 13px; }
  .itinerary-copy strong { font-size: 15px; }
  .itinerary-icon { width: 28px; height: 28px; }
}

.mission-bearing { display: grid; place-items: center; }
.mission-bearing > [data-icon] { width: 100%; height: 100%; }
.pin:has(.pin-done:not([hidden])) { filter: saturate(.58); }
.pin:has(.pin-done:not([hidden])):hover { filter: none; }

.bar nav #play-menu {
  color: #451a27;
  background: linear-gradient(160deg, #fff1b2, #ffc36f 72%, #ffad65);
  border-color: #fff0b8;
  box-shadow: 0 3px 0 #46050d, inset 0 1px #fff6d9;
  font-weight: 850;
}
.bar nav #play-menu:hover { background: #fff0af; }
.bar nav #play-menu [data-icon] { color: #812a40; }

[data-game-theme="quad"] { --game-base: #234831; --game-shell: #386d44; --game-gleam: #c9ee8e; --game-pop: #ff8abb; }
[data-game-theme="library"] { --game-base: #503923; --game-shell: #7b5430; --game-gleam: #ffe0a0; --game-pop: #6ce4cb; }
[data-game-theme="dining"] { --game-base: #204348; --game-shell: #793852; --game-gleam: #86f8df; --game-pop: #ff9b8e; }
[data-game-theme="engineering"] { --game-base: #191d52; --game-shell: #344487; --game-gleam: #74ffe9; --game-pop: #ff8abe; }
[data-game-theme="arts"] { --game-base: #271a56; --game-shell: #563a86; --game-gleam: #e2b0ff; --game-pop: #67e7f4; }
[data-game-theme="dorm"] { --game-base: #24474d; --game-shell: #3a7378; --game-gleam: #ffd5a3; --game-pop: #ffe379; }
.dialog-play-menu {
  width: min(95vw, 760px);
  color: #fff7e5;
  border-color: #a984b6;
  background: #24213e;
}
.dialog-play-menu .close { color: #f9e9e8; background: #443859; border-color: #917998; }
.dialog-play-menu .close:hover { background: #594874; }
.play-menu-sheet {
  padding: 22px;
  background: radial-gradient(ellipse at 8% 0%, #3d3559, transparent 65%),
    linear-gradient(140deg,#25223d 40%,#241c39);
}
.play-menu-heading { display: flex; align-items: center; gap: 13px; margin: 0 43px 17px 0; }
.play-menu-heading h2 { font: 700 clamp(26px, 6vw, 41px)/1 Georgia,serif; letter-spacing: -.03em; }
.play-menu-heading p { margin-top: 5px; color: #dacfe6; font-size: 14px; }
.play-menu-emblem {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  color: #51243b; background: #ffd783; border: 2px solid #fff0bc; border-radius: 11px;
  box-shadow: 0 3px #130f24, 0 0 22px #ffd38549;
}
.play-menu-emblem [data-icon] { font-size: 25px; }
.play-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.play-menu-card {
  display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 9px;
  padding: 8px; min-height: 77px; color: #fff9ed; text-align: left;
  background: radial-gradient(ellipse at 0 5%, var(--game-shell), transparent 81%), var(--game-base);
  border: 1px solid color-mix(in srgb,var(--game-gleam) 67%,var(--game-base));
  border-radius: 9px; box-shadow: 0 3px #110f22;
}
.play-menu-card:hover { border-color: var(--game-pop); background-color: var(--game-shell); }
.play-menu-card:active { transform: translateY(2px); box-shadow: 0 1px #110f22; }
.play-card-emblem {
  width: 43px; height: 43px; display: grid; place-items: center;
  color: var(--game-base); background: var(--game-gleam); border: 2px solid #fff5d99b;
  border-radius: 8px; box-shadow: 0 2px 0 #17132670;
}
.play-card-emblem [data-icon] { font-size: 21px; }
.play-card-copy strong { display: block; font: 700 19px/1.1 Georgia,serif; }
.play-card-copy small { display: block; margin-top: 3px; font-size: 12px; color: #fff3e4; }
.play-card-status { display: inline-flex; gap: 3px; align-items: center; color: var(--game-gleam); margin-top: 3px; font-size: 10px; font-weight: 850; }
.play-card-control {
  min-height: 32px; padding: 5px 8px; display: flex; align-items: center; gap: 3px;
  color: var(--game-base); background: var(--game-gleam); border-radius: 6px; font-size: 12px; font-weight: 850;
}
.play-card-control [data-icon] { font-size: 16px; }

.dialog-game[data-game-theme] {
  --accent: var(--game-gleam);
  border-color: var(--game-gleam);
  background: var(--game-base);
  box-shadow: 0 0 42px #120e1d9c, 0 0 21px color-mix(in srgb,var(--game-pop) 24%,transparent);
}
.dialog-game[data-game-theme] .round-top {
  background: linear-gradient(130deg,var(--game-base),var(--game-shell));
  border-bottom: 2px solid color-mix(in srgb,var(--game-gleam) 57%,var(--game-base));
}
.dialog-game[data-game-theme] .round-top h2 { text-shadow: 0 2px #13112290; }
.dialog-game[data-game-theme] .round-icon { box-shadow: 0 2px #13112278; }
.dialog-game[data-game-theme] .round-meters > span {
  color: var(--game-gleam); background: var(--game-base);
  border-color: color-mix(in srgb,var(--game-gleam) 57%,var(--game-shell));
}
.dialog-game[data-game-theme] .round-meters > span.hurry { color: #fffded; background: #aa3d50; border-color: #ffc0af; }
.dialog-game[data-game-theme] .close { background: var(--game-base); border-color: var(--game-pop); color: #fff5e5; }
.dialog-game[data-game-theme] .close:hover { background: var(--game-shell); }
.dialog-game[data-game-theme] .countdown > span { color: var(--game-gleam); }

@media (max-width: 760px) {
  .bar nav #play-menu { padding-inline: 6px; }
}
@media (max-width: 560px) {
  .bar { gap: 5px; padding-right: 6px; }
  .brand { min-width: 105px; padding-inline: 4px; }
  .brand img { width: 96px; }
  .bar nav { gap: 3px; }
  .bar nav button { min-width: 35px; min-height: 39px; gap: 3px; padding-inline: 4px; }
  .bar nav #play-menu { min-width: 47px; }
  .bar nav #play-menu > [data-icon] { display: none; }
  .play-menu-sheet { padding: 13px; }
  .play-menu-heading { gap: 7px; margin-bottom: 12px; }
  .play-menu-heading p { margin-top: 4px; font-size: 12px; }
  .play-menu-emblem { width: 38px; height: 38px; }
  .play-menu-emblem [data-icon] { font-size: 20px; }
  .play-menu-grid { grid-template-columns: 1fr; gap: 7px; }
  .play-menu-card { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; min-height: 56px; padding: 6px 8px; }
  .play-card-emblem { width: 34px; height: 34px; border-radius: 6px; }
  .play-card-emblem [data-icon] { font-size: 15px; }
  .play-card-copy strong { font-size: 15px; }
  .play-card-copy small { font-size: 11px; }
}
@media (max-width: 365px) {
  .brand { min-width: 83px; }
  .brand img { width: 74px; }
  .bar nav { gap: 2px; }
  .bar nav button { min-width: 32px; }
  .bar nav #play-menu { min-width: 40px; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .bar nav .nav-text { display: none; }
}

.dialog-passport-book .passport-itinerary {
  background: linear-gradient(140deg,#fff2cc,#ffdfa3);
  border-color: #b68a56;
  border-left-color: #983e45;
}
.dialog-passport-book .passport-itinerary[data-next-kind="note"] {
  background: linear-gradient(140deg,#e3f7ef,#c9eeea);
  border-color: #7ca9ae;
  border-left-color: #29666f;
}
.dialog-passport-book .passport-itinerary[data-next-kind="book"] {
  background: #edf4d9;
  border-color: #97af75;
  border-left-color: #517341;
}
.dialog-passport-book .itinerary-copy strong { font-size: 20px; }
.dialog-passport-book .itinerary-copy small { color: #4e4552; }
.dialog-passport-book .itinerary-actions .pill { font-weight: 830; }
.dialog-passport-book .itinerary-actions .secondary { background: #fffaf0; }
.dialog-passport-book .field-note.is-required {
  padding: 2px 0; margin: 0; border: 0; background: none;
}
.dialog-passport-book .field-note.is-required h3 { color: #184c5b; }
.dialog-passport-book .field-note.is-required .note-head b {
  background: #cdece5; color: #184c5b; border-color: #7daaad; font-size: 10px;
}
.dialog-passport-book .field-note.is-bonus { color: #492f5c; background: #f5edf8; border-color: #c8a9d5; }
.dialog-passport-book .field-note.learned { color: #375139; background: #eef5df; border-color: #aec48c; }
.dialog-passport-book .field-note summary { display: flex; justify-content: space-between; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 820; }
.dialog-passport-book .field-note summary > span { display: flex; align-items: center; gap: 5px; }
.dialog-passport-book .field-note summary > span::before { content: '▸'; }
.dialog-passport-book .field-note[open] summary > span::before { content: '▾'; }
.dialog-passport-book .field-note summary b { font-size: 11px; font-weight: 750; white-space: nowrap; }
.dialog-passport-book .field-note [data-question-prompt] { margin-top: 9px; font-size: 17px; font-weight: 760; }
.dialog-passport-book .field-note .required-school { color: #305263; font-size: 13px; }
.dialog-passport-book .note-options button { display: flex; align-items: center; gap: 7px; min-height: 44px; }
.dialog-passport-book .note-options button > span {
  min-width: 23px; min-height: 23px; display: inline-grid; place-items: center;
  border-radius: 5px; background: #e3efec; color: #235965; font-size: 12px; font-weight: 850;
}
.dialog-passport-book .is-bonus .note-options button > span { background: #f0e6f3; color: #633a76; }
@media (max-width: 500px) {
  .dialog-passport-book .itinerary-copy strong { font-size: 17px; }
  .dialog-passport-book .itinerary-actions .pill { padding-inline: 7px; }
}

@media (min-width: 561px) and (max-width: 1000px) {
  .bar nav :is(#play-menu, #map-toggle, #passport-button) > .nav-text {
    display: inline;
  }

  .bar nav :is(#learn-button, #board-button) > .nav-text {
    display: none;
  }
}

@media (min-width: 561px) and (max-width: 760px) {
  .bar .game-title {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --bar-height: 106px;
  }

  .bar {
    position: relative;
    display: block;
    min-height: calc(var(--bar-height) - 3px);
    padding: 4px 8px 5px;
  }

  .bar .brand {
    position: absolute;
    top: 4px;
    left: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border-right: 0;
  }

  .bar .brand img {
    width: 111px;
  }

  .bar nav {
    display: grid;
    grid-template-areas: ". . . schools scores sound" "play play map map passport passport";
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 44px 46px;
    gap: 4px;
    margin-left: 0;
  }

  .bar nav #play-menu { grid-area: play; }
  .bar nav #map-toggle { grid-area: map; }
  .bar nav #passport-button { grid-area: passport; }
  .bar nav #learn-button { grid-area: schools; }
  .bar nav #board-button { grid-area: scores; }
  .bar nav #sound-button { grid-area: sound; }

  .bar nav :is(#learn-button, #board-button, #sound-button) {
    width: 44px;
    min-height: 44px;
    justify-self: end;
  }

  .bar nav :is(#play-menu, #map-toggle, #passport-button) {
    min-width: 0;
    min-height: 46px;
    padding: 4px;
    gap: clamp(3px, 1vw, 5px);
    font-size: clamp(12px, 3.6vw, 15px);
    line-height: 1;
  }

  .bar nav :is(#play-menu, #map-toggle, #passport-button) > .nav-text {
    display: inline;
  }

  .bar nav :is(#play-menu, #map-toggle, #passport-button) > [data-icon] {
    display: inline-flex;
    font-size: 14px;
  }

  #nav-stamps {
    padding: 2px 3px;
    font-size: 10px;
  }

  #route-help {
    display: block;
    margin-top: 3px;
    color: #54585a;
    font-size: 11px;
  }
}

@media (max-width: 365px) {
  .bar nav #passport-button > [data-icon] {
    display: none;
  }
}

.map .auto-next {
  position: absolute;
  z-index: 5;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 9px));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: min(213px, calc(100% - 28px));
  min-height: 49px;
  max-width: calc(100% - 28px);
  padding: 7px 12px;
  border: 2px solid #fff1c8;
  border-radius: 10px;
  color: #422328;
  background: #ffd67d;
  box-shadow: 0 4px 0 #633c39, 0 6px 24px #160e14b3, inset 0 2px #fff2b1;
  text-align: center;
  font-size: 16px;
  line-height: 1.15;
}

.map .auto-next:hover {
  background: #ffe599;
}

.map .auto-next:focus-visible {
  outline: 3px solid #fff3c0;
  outline-offset: 3px;
}

.map .auto-next > [data-icon] {
  width: 23px;
  height: 23px;
}

.map .auto-next .auto-next-stop-icon,
.map .auto-next[aria-pressed="true"] .auto-next-route-icon,
.map.is-map .auto-next {
  display: none;
}

.map .auto-next[aria-pressed="true"] {
  color: #fff3da;
  background: #722640;
  box-shadow: 0 4px 0 #461929, 0 6px 24px #160e14b3, inset 0 1px #b9677c;
}

.map .auto-next[aria-pressed="true"]:hover {
  background: #8b324f;
}

.map .auto-next[aria-pressed="true"] .auto-next-stop-icon {
  display: inline-flex;
}

.map .auto-next:not([hidden]) ~ #play-near {
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 69px));
}

@media (min-width: 561px) and (max-width: 1120px) {
  .map .auto-next {
    bottom: max(65px, calc(env(safe-area-inset-bottom) + 55px));
  }

  .map .auto-next:not([hidden]) ~ #play-near {
    bottom: max(124px, calc(env(safe-area-inset-bottom) + 114px));
  }
}

@media (max-width: 560px) {
  .map .auto-next {
    bottom: max(137px, calc(env(safe-area-inset-bottom) + 124px));
    min-height: 46px;
    font-size: 15px;
  }

  .map .auto-next:not([hidden]) ~ #play-near {
    bottom: max(61px, calc(env(safe-area-inset-bottom) + 47px));
    max-width: min(245px, calc(100% - 143px));
  }
}

@media (max-width: 560px) and (max-height: 480px) and (orientation: landscape) {
  .map .auto-next {
    bottom: max(119px, calc(env(safe-area-inset-bottom) + 105px));
  }
}
