@font-face{
  font-family:Campus;
  src:local("Microsoft YaHei");
  font-display:swap
}
:root{
  font-family:Campus,"Microsoft YaHei","PingFang SC",sans-serif;
  color:#183b34;
  --green:#205647;
  --cream:#f6f5ed;
  --line:rgba(30,61,49,.14)
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  overflow:hidden;
  background:#b8cfce
}
button,a{
  -webkit-tap-highlight-color:transparent
}
button{
  font:inherit;
  cursor:pointer;
  color:inherit
}
button:focus-visible,a:focus-visible{
  outline:3px solid #ecaa58;
  outline-offset:4px
}
button{
  border:0
}
button:hover{
  filter:brightness(.96)
}
button:active{
  transform:translateY(1px)
}
[hidden]{
  display:none!important
}
#world{
  width:100vw;
  height:100dvh;
  display:block;
  touch-action:none
}
#county-overview{position:fixed;inset:0;width:100vw;height:100dvh;display:block;pointer-events:none;opacity:0}
.county-overview-mode .minimap-wrap{display:none}
body.county-overview-mode #labels{display:none}
body.county-overview-mode #campus-map-tools output{min-width:48px}
body.map-mode #world{transition:opacity 80ms linear}
.drag-handle{touch-action:none;user-select:none;cursor:grab}
.drag-handle:active{cursor:grabbing}
.pad-grip{grid-area:1/1;place-self:center;padding:6px 10px;border-radius:5px;background:#f5f8efce;pointer-events:auto}
.topbar{z-index:2}
.toolbar{pointer-events:none}
.toolbar>*{pointer-events:auto}
body.immersive > :not(#world):not(#load-status):not(.minimap-wrap):not(#mobile-controls){display:none!important}
body.immersive :is(#mobile-car,.pad-grip,.map-footer,.map-heading){display:none}
body.immersive #mobile-controls{justify-content:flex-end}
body.immersive .minimap-wrap{bottom:24px;width:fit-content}
body.immersive #world{position:fixed;inset:0;width:100%;height:100%;outline:none}
#labels{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden
}
.world-label{
  position:absolute;
  white-space:nowrap;
  font-size:12px;
  padding:5px 11px;
  background:rgba(246,245,237,.9);
  border:1px solid #fff9;
  border-radius:4px;
  color:#294236;
  transform:translate(-50%,-100%);
  box-shadow:0 2px 12px #173d3615
}
.world-label::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  height:8px;
  width:1px;
  background:#29423666
}
.topbar{
  position:absolute;
  top:0;
  left:0;
  right:0;
  padding:28px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(#f5f7ef80,transparent);
  pointer-events:none
}
.topbar>*{
  pointer-events:auto
}
.brand{
  display:flex;
  align-items:center;
  gap:13px;
  text-decoration:none;
  color:#123c34;
  font-size:21px;
  letter-spacing:2px;
  font-weight:800;
  text-shadow:0 1px 8px #fff8
}
.brand small{
  display:block;
  font-size:10px;
  font-weight:500;
  letter-spacing:3px;
  margin-top:3px
}
.brand-icon{
  border:2px solid #205647;
  border-radius:50%;
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  font-family:serif;
  font-size:28px;
  background:#f6f5ed66
}
.toolbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:7px
}
.toolbar button{
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 16px;
  background:#f7f8f0df;
  backdrop-filter:blur(14px);
  border:1px solid #ffffffb0;
  border-radius:6px;
  font-size:12px;
  box-shadow:0 4px 20px #193a3410
}
.toolbar kbd{
  margin-left:4px
}
.toolbar .round-button{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding:0
}
.tour-hud{
  position:absolute;
  top:112px;
  left:50%;
  transform:translateX(-50%);
  min-width:190px;
  padding:12px 18px;
  background:#183d35df;
  color:#f7f2df;
  border:1px solid #ffffff45;
  border-radius:5px;
  text-align:center;
  box-shadow:0 8px 30px #173d3626;
  pointer-events:none
}
.tour-hud strong,.tour-hud span,.tour-hud small{display:block}
.tour-hud strong{font-size:13px;letter-spacing:1px}
.tour-hud span{margin-top:4px;color:#f0cf8b;font-size:11px}
.tour-hud small{margin-top:6px;color:#c1d4c6;font-size:10px}
body.touring :is(#labels,.destinations,.minimap-wrap,.controls,#mobile-controls,.drive-hud,#toast,#context-action,.welcome){display:none}
body.touring .tour-hud{top:auto;bottom:24px;min-width:0}
@media(max-width:640px){
  .topbar .toolbar{flex-wrap:wrap;justify-content:flex-end}
}
.button-icon{
  font-size:18px
}
.sun-icon{
  font-size:17px;
  color:#aa772e
}
.welcome{
  position:absolute;
  left:7%;
  top:25%;
  max-width:560px;
  padding:32px 36px 28px;
  background:linear-gradient(120deg,#f9f8eef5,#f9f8eed9);
  border-radius:4px;
  box-shadow:0 20px 90px #21382c1c;
  border:1px solid #ffffffa0;
  transition:opacity .5s,transform .5s
}
.welcome.leaving{
  opacity:0;
  transform:translateY(15px);
  pointer-events:none
}
.eyebrow{
  font-size:9px;
  letter-spacing:2.5px;
  font-weight:700;
  color:#3d6c57;
  display:flex;
  align-items:center;
  gap:9px
}
.eyebrow>span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#477b53
}
.welcome h1{
  font-size:clamp(36px,3.7vw,62px);
  font-weight:800;
  letter-spacing:-2px;
  line-height:1.26;
  margin:25px 0 20px
}
.welcome h1 span{
  color:#4e7666
}
.welcome p{
  font-size:13px;
  line-height:1.95;
  color:#66786c
}
.welcome-actions{
  display:flex;
  align-items:center;
  gap:26px;
  margin-top:28px
}
.primary{
  background:#235d48;
  color:#fcfcf5;
  border-radius:4px;
  font-weight:600;
  padding:15px 21px;
  min-width:153px;
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:center;
  font-size:13px
}
.primary span{
  font-size:19px
}
.text-button{
  background:transparent;
  font-size:12px;
  padding:12px 0
}
.text-button span{
  margin-left:10px
}
.reference-note{
  font-size:10px;
  letter-spacing:.3px;
  color:#7d8a7b;
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--line)
}
.destinations{
  position:absolute;
  right:36px;
  top:120px;
  width:182px;
  background:#f6f7eeed;
  backdrop-filter:blur(12px);
  border:1px solid #fff8;
  border-radius:5px;
  padding:0 16px;
  max-height:calc(100vh - 140px);
  overflow-y:auto;
  box-shadow:0 8px 38px #23372812
}
.panel-title{
  background:none;
  padding:16px 0 13px;
  display:flex;
  justify-content:space-between;
  width:100%;
  font-weight:700;
  font-size:12px;
  letter-spacing:1px;
  border-bottom:1px solid var(--line)
}
.panel-title span{
  color:#849482;
  font-size:18px;
  font-weight:400
}
#destination-list{
  display:flex;
  flex-direction:column;
  padding-top:6px
}
.destination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:transparent;
  text-align:left;
  font-size:12px;
  padding:11px 0;
  border-bottom:1px solid #183b340b
}
.destination small{
  font-size:9px;
  color:#8c9b8a
}
.destination:hover{
  color:#2b7e53
}
.destination span:last-child{
  color:#85947f;
  font-size:15px
}
.panel-foot{
  padding:12px 0;
  font-size:9px;
  color:#899682;
  letter-spacing:1px
}
.speed-settings{
  border-top:1px solid var(--line);
  padding:12px 0 15px
}
.speed-settings h2{
  margin:0 0 11px;
  color:#284c3d;
  font-size:11px;
  letter-spacing:1px
}
.speed-settings label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:8px;
  color:#536b59;
  font-size:10px
}
.speed-settings output{
  color:#244f3d;
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.speed-settings input[type="range"]{
  display:block;
  width:100%;
  height:14px;
  margin:3px 0 8px;
  accent-color:#477b58;
  cursor:pointer
}
.destinations.collapsed #destination-list,.destinations.collapsed .panel-foot{
  display:none
}
.destinations.collapsed .speed-settings{
  display:none
}
.destinations.collapsed .panel-title{
  border:0
}
.minimap-wrap{
  position:absolute;
  left:36px;
  bottom:64px;
  width:202px;
  padding:10px;
  background:#f8f8eff0;
  backdrop-filter:blur(10px);
  border:1px solid #fff8;
  border-radius:5px;
  box-shadow:0 8px 35px #19362b15;
  transition:opacity .4s
}
.map-heading{
  font-size:10px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:1px 0 9px
}
.location-dot{
  width:5px;
  height:5px;
  background:#44855b;
  border-radius:50%
}
#compass{
  margin-left:auto;
  color:#80907c;
  font-size:9px
}
#minimap{
  width:180px;
  height:180px;
  display:block;
  border-radius:3px
}
.map-footer{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:8px;
  color:#80907c
}
.map-footer span:first-child{
  color:#41654a
}
.controls{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  white-space:nowrap;
  font-size:10px;
  background:#f6f7eeed;
  border:1px solid #fff8;
  border-radius:5px;
  padding:10px 16px;
  box-shadow:0 3px 16px #143a2910
}
.controls span{
  display:flex;
  align-items:center;
  gap:4px
}
kbd{
  font:9px "Segoe UI",sans-serif;
  border:1px solid #31534133;
  padding:2px 4px;
  border-radius:3px;
  min-width:16px;
  display:inline-block;
  text-align:center;
  color:#647c68;
  background:#ffffff70
}
.context-action{
  position:absolute;
  bottom:92px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 19px;
  border-radius:4px;
  background:#174936ef;
  color:#fff;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:12px
}
.context-action kbd{
  background:#ffffffe8;
  font-size:12px;
  color:#174936
}
.toast{
  position:absolute;
  left:50%;
  top:108px;
  transform:translate(-50%,-10px);
  padding:12px 22px;
  background:#1b4639ed;
  color:#fff;
  font-size:12px;
  border-radius:5px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s,transform .25s
}
.toast.visible{
  opacity:1;
  transform:translate(-50%,0)
}
.drive-hud{
  position:absolute;
  bottom:82px;
  right:48px;
  background:#f6f7eeed;
  padding:18px 26px;
  border-radius:6px;
  text-align:right;
  min-width:150px
}
.drive-hud>span{
  font:500 48px "Segoe UI",sans-serif
}
.drive-hud small{
  font-size:10px;
  margin-left:8px;
  color:#73917c
}
.drive-hud>div{
  font-size:10px;
  padding-top:7px;
  border-top:1px solid var(--line);
  margin-top:8px;
  color:#667c69
}
dialog{
  border:1px solid #ffffffb0;
  border-radius:8px;
  padding:36px;
  background:#f5f5ed;
  color:#234838;
  box-shadow:0 20px 90px #0004;
  max-height:90dvh;
  max-width:900px
}
dialog::backdrop{
  background:#112f2bab;
  backdrop-filter:blur(6px)
}
dialog h2{
  font-size:27px;
  letter-spacing:-1px;
  margin:20px 0
}
dialog p{
  font-size:12px;
  line-height:1.9;
  color:#748074
}
dialog a{
  font-size:12px;
  color:#357453;
  text-underline-offset:5px
}
.close-dialog{
  position:absolute;
  top:10px;
  right:12px;
  font-size:24px;
  width:28px;
  height:28px;
  background:transparent;
  color:#6e8072
}
.dialog-copy{
  max-width:280px
}
.fine-print{
  font-size:10px!important;
  margin-top:22px
}
#source-dialog[open]{
  display:flex;
  align-items:flex-start;
  gap:36px
}
#source-dialog img{
  max-height:78dvh;
  width:auto;
  max-width:48vw;
  border-radius:3px
}
#help-dialog{
  width:490px;
  padding:36px 40px
}
dl{
  display:grid;
  grid-template-columns:145px 1fr;
  gap:20px 5px;
  margin-top:30px;
  font-size:11px
}
dt{
  font-weight:700
}
dd{
  margin:0;
  color:#72806e
}
#load-status{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#e8eede;
  font-size:13px;
  letter-spacing:3px;
  color:#527355;
  z-index:10
}
#mobile-controls{
  position:absolute;
  left:22px;
  right:22px;
  bottom:30px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  pointer-events:none
}
#mobile-controls button{
  pointer-events:auto;
  touch-action:none;
  background:#f5f8efce;
  backdrop-filter:blur(6px);
  border:1px solid #fff9;
  border-radius:6px;
  color:#295e46;
  padding:12px;
  font-size:16px
}
.d-pad{
  display:grid;
  grid-template-columns:42px 42px 42px;
  grid-template-rows:42px 42px;
  gap:3px
}
.d-pad button:first-child{
  grid-column:2
}
.d-pad button:nth-child(2){
  grid-column:1;
  grid-row:2
}
.d-pad button:nth-child(3){
  grid-column:2;
  grid-row:2
}
.d-pad button:nth-child(4){
  grid-column:3;
  grid-row:2
}
body.intro .minimap-wrap{
  opacity:0;
  pointer-events:none
}
body.intro .controls{
  opacity:0;
  pointer-events:none
}
@media(max-width:800px){
  .topbar{
    padding:18px
  }
  .brand{
    font-size:16px;
    gap:8px
  }
  .brand-icon{
    width:33px;
    height:33px;
    font-size:23px
  }
  .brand small{
    font-size:8px;
    letter-spacing:2px
  }
  .toolbar{
    gap:5px
  }
  .toolbar button{
    padding:8px 10px
  }
  .toolbar kbd,.toolbar .button-icon{
    display:none
  }
  .toolbar .round-button{
    width:31px;
    height:31px
  }
  .welcome{
    left:20px;
    top:22%;
    padding:26px;
    max-width:calc(100vw - 40px)
  }
  .welcome h1{
    font-size:42px
  }
  .welcome p{
    font-size:12px
  }
  .destinations{
    right:18px;
    top:90px;
    width:144px;
    padding:0 12px
  }
  .minimap-wrap{
    left:18px;
    bottom:135px;
    width:142px;
    padding:8px
  }
  #minimap{
    width:124px;
    height:124px
  }
  .map-footer{
    font-size:7px
  }
  .map-footer span:last-child{
    display:none
  }
  .controls{
    display:none
  }
  .drive-hud{
    right:18px;
    bottom:160px;
    min-width:112px;
    padding:12px 18px
  }
  .drive-hud>span{
    font-size:32px
  }
  .context-action{
    bottom:145px
  }
  .toast{
    top:76px;
    max-width:80%;
    text-align:center;
    width:max-content
  }
  .destination{
    padding:9px 0;
    font-size:11px
  }
  body.intro .destinations{
    display:none
  }
  #source-dialog[open]{
    display:block;
    padding:25px;
    max-width:94vw
  }
  .dialog-copy{
    max-width:100%
  }
  #source-dialog img{
    max-width:75vw;
    max-height:none;
    width:100%;
    margin-top:20px
  }
  dl{
    grid-template-columns:100px 1fr;
    gap:20px 8px
  }
  #help-dialog{
    padding:28px
  }
  dialog h2{
    font-size:22px
  }
}
#source-dialog .campus-photo{
  width:100%;
  max-width:280px;
  max-height:185px;
  object-fit:cover;
  margin-top:12px
}
body.intro #mobile-controls{
  display:none
}
@media(max-width:480px){
  .topbar{
    padding:14px 12px;
    gap:8px
  }
  .brand{
    white-space:nowrap;
    font-size:15px;
    letter-spacing:1px;
    gap:7px;
    flex-shrink:0
  }
  .brand small{
    font-size:7px;
    letter-spacing:1px
  }
  .toolbar{
    gap:4px
  }
  .toolbar button{
    padding:8px;
    font-size:11px;
    white-space:nowrap;
    gap:4px
  }
  .toolbar .round-button{
    width:28px;
    height:28px
  }
  .welcome{
    top:21%;
    padding:24px
  }
  .welcome h1{
    font-size:36px
  }
  .welcome-actions{
    gap:20px
  }
  .destinations{
    top:82px
  }
  .toast{
    top:70px
  }
  #source-dialog .campus-photo{
    max-width:100%;
    max-height:150px
  }
}
 .county-return {
  background: #235545;
  color: #fffaf0;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}
#campus-map-tools,.atlas-zoom{display:grid;overflow:hidden;border-radius:12px;background:#1f322ff2;color:#fff5df;box-shadow:0 4px 20px #17292335}
#campus-map-tools{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:90px;z-index:3;padding:3px;gap:2px}
#campus-map-tools button,.atlas-zoom button{background:transparent;color:inherit;min-width:44px;min-height:40px;font-size:15px}
#campus-map-tools button[data-scale],.atlas-zoom button{font-size:22px}
#campus-map-tools output{font:12px/1.4 system-ui;text-align:center;color:#ffcc85}
body.map-mode #world{cursor:grab}body.map-mode #world:active{cursor:grabbing}
body.map-mode :is(.destinations,.controls,#mobile-controls,.drive-hud,#context-action){display:none!important}
body.map-mode .toolbar{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:94vw;padding:5px;background:#20332ef2;border-radius:12px;box-shadow:0 4px 20px #182d3530;justify-content:center}
body.map-mode .toolbar :is(#source-button,#help-button,#tour-button,#fullscreen-button,a[href="./forum.html"]){display:none}
body.map-mode .toolbar :is(button,a){margin:0;min-height:38px;background:transparent;border:0;box-shadow:none;color:#fff4dc;padding:7px 12px;font-size:12px}
body.map-mode .toolbar #view-button{color:#392b20;background:#efb16b;border-radius:8px}
body.map-mode .toolbar kbd{display:none}
body.map-mode .minimap-wrap{width:148px;left:14px;bottom:76px;padding:6px;background:#253b33ed;color:#f3eedb;border-radius:8px}
body.map-mode #minimap{width:100%;height:auto;cursor:crosshair}
body.map-mode .map-footer span:last-child{display:none}
body.map-mode .world-label{font-size:11px;padding:3px 6px;pointer-events:none}
body.map-mode.touring #campus-map-tools{display:none}
@media(max-width:600px){body.map-mode .minimap-wrap{width:98px;bottom:74px}body.map-mode .toolbar :is(button,a){padding:6px}body.map-mode .map-heading{font-size:9px}}
.map-turn{display:flex;border-block:1px solid #fff3}
#campus-map-tools .map-turn button{min-width:32px;font-size:20px}
body.map-mode .topbar{background:none}
body.map-mode .toolbar>*{translate:none!important}
body.map-mode .world-label{background:#fff7e8ed;color:#463c32;border-color:#67584160}
body.map-mode .map-footer span:first-child{color:#efead9}
body.map-mode .toolbar .county-return{display:inline-flex;align-items:center}
