/* Walkable3D — interface identity. Scene orchestration lives in src/main.js. */
:root {
  --ink: #202322;
  --accent: #ad7653;
  --muted: #807e76;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: var(--sans);
  --copper: #dbac85;
  --panel: #202322f5;
  --line: #ffffff24;
}
button,
a,
select {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #dcaa80;
  outline-offset: 4px;
}
.paper-grain {
  display: none;
}
.masthead,
.story-inside .masthead,
.walking .masthead {
  top: 20px;
  left: 28px;
  right: 28px;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #f5f0e9;
  box-shadow: 0 8px 30px #0000000d;
  gap: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  letter-spacing: 0.1em;
  font-weight: 650;
}
.brand-symbol {
  width: 36px;
  height: 36px;
  flex: none;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.wordmark .brand-name {
  display: block;
  font-size: 19px;
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 650;
}
.brand-name b {
  font-weight: 400;
  color: var(--copper);
  padding-left: 5px;
}
.brand-name small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-top: 7px;
  color: #bdbdb5;
}
.project-meta {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: right;
  margin-left: auto;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}
.project-meta span,
.story-inside .project-meta span,
.walking .project-meta span {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #bcbdb6;
  margin-top: 3px;
}
.project-meta i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 7px;
}
#help {
  font-size: 11px;
  padding: 8px 0 8px 3px;
  white-space: nowrap;
}
#help span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  margin-left: 14px;
  color: var(--copper);
}
.hero {
  top: 21%;
  left: 4.5%;
  width: 340px;
  background: var(--panel);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #f4eee7;
  box-shadow: 0 20px 60px #20232218;
}
.hero::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -1px;
  height: 36px;
  width: 3px;
  background: var(--copper);
}
.hero .eyebrow {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--copper);
}
.short-line {
  display: none;
}
.hero h1 {
  font: 550 clamp(48px, 4.5vw, 68px)/1.02 var(--sans);
  letter-spacing: -0.06em;
  margin: 24px 0 20px;
}
.hero h1 em {
  font-style: normal;
  font-weight: 350;
  color: var(--copper);
}
.hero p {
  color: #c6c6be;
  font-size: 12px;
  line-height: 1.8;
}
.dark-button {
  background: var(--copper);
  border: 1px solid var(--copper);
  color: #242725;
  border-radius: 7px;
  font-weight: 600;
  letter-spacing: 0;
}
.dark-button:hover {
  background: #ecc7a7;
  border-color: #ecc7a7;
}
.hero #enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 27px;
  padding: 15px 17px;
  font-size: 12px;
}
.hero #enter span {
  font-size: 18px;
}
.hero #direct-explore {
  width: 100%;
  color: #d4d4cd;
  margin-top: 7px;
  padding: 12px 1px;
  font-size: 11px;
  border: 0;
  letter-spacing: 0;
}
.hero #direct-explore:hover {
  color: var(--copper);
}
.drawing-note {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
  color: #e0d8ce;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.drawing-note span {
  color: #9d9f97;
  font-size: 7px;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.bottom-bar,
.story-inside .bottom-bar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 20px;
  width: min(980px, calc(100% - 56px));
  height: 70px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #f3ede4;
  padding: 0 20px;
  gap: 18px;
  box-shadow: 0 10px 40px #0002;
  backdrop-filter: blur(16px);
}
.scroll-cue,
.story-inside .scroll-cue {
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  max-width: 155px;
  color: #bfc0b8;
}
.scroll-cue > span:first-child {
  display: grid;
  place-items: center;
  width: 27px;
  height: 31px;
  border: 1px solid #ffffff32;
  border-radius: 15px;
  color: var(--copper);
  flex: none;
  font-size: 17px;
}
.story-navigation {
  gap: 5px;
}
.story-navigation button,
.story-inside .story-navigation button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #ffffff26;
  color: #eae7df;
  background: #ffffff05;
}
.story-navigation button:hover {
  background: #ffffff18;
}
.story-navigation select,
.story-inside .story-navigation select {
  color: #f0eae0;
  border: 0;
  font-size: 11px;
  width: 175px;
  padding: 12px 20px 12px 10px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23dbac85'/%3E%3C/svg%3E");
}
#explore-here {
  font-size: 10px;
  border: 1px solid #ffffff30;
  padding: 10px 13px;
  border-radius: 6px;
  color: #e3c2a5;
  white-space: nowrap;
}
#explore-here:hover:not(:disabled) {
  background: #ffffff12;
}
.sheet-number {
  color: #888f87;
  font-size: 8px;
  white-space: nowrap;
}
.sheet-number span,
.story-inside .sheet-number span {
  color: var(--copper);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.progress {
  top: auto;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  overflow: hidden;
}
.progress span,
.story-inside .progress span {
  background: var(--copper);
}
#story-progress {
  top: auto;
  bottom: -9px;
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
}
#story-progress::-webkit-slider-thumb {
  background: var(--copper);
}
.chapter,
.story-inside .chapter {
  left: 28px;
  bottom: 112px;
  max-width: 350px;
  padding: 18px 21px;
  gap: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #f3eee6;
  backdrop-filter: blur(12px);
  text-shadow: none;
}
.chapter > span,
.story-inside .chapter > span {
  font: 500 13px var(--sans);
  margin: 0;
  padding: 7px 0 0;
  min-width: 23px;
  border-top: 2px solid var(--copper);
  color: var(--copper);
}
.chapter .eyebrow,
.story-inside .chapter .eyebrow {
  font-size: 7px;
  letter-spacing: 0.15em;
  color: #cba887;
}
.chapter h2,
.story-inside .chapter h2 {
  font: 500 24px/1.12 var(--sans);
  letter-spacing: -0.035em;
  margin: 8px 0 10px;
}
.chapter p,
.story-inside .chapter p {
  font-size: 11px;
  line-height: 1.65;
  color: #c6c9bf;
  max-width: 265px;
}
#scene-scrim {
  background: linear-gradient(0deg, #12171360, transparent 28%);
}
#view-tools {
  top: 112px;
  right: 28px;
  gap: 6px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
#view-tools button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #dddcd4;
  backdrop-filter: none;
  padding: 8px 11px;
  font-size: 10px;
  min-height: 34px;
}
#view-tools button span {
  color: var(--copper);
}
#view-tools button:hover,
#view-tools button[aria-pressed='true'] {
  background: #ffffff14;
  color: #f7e3d1;
}
#mini-map-button {
  top: auto;
  bottom: 112px;
  right: 28px;
  width: 190px;
  padding: 12px;
  background: #eeebe2f2;
  border: 1px solid #fff8;
  border-radius: 12px;
  box-shadow: 0 8px 24px #0001;
}
#mini-map {
  margin: 7px 0;
}
#mini-room {
  font-weight: 600;
  font-size: 10px;
}
.mini-heading {
  font-size: 7px;
  color: #74766f;
  letter-spacing: 0.12em;
}
#map-panel,
.story-inside:not(.walking) #map-panel {
  top: 112px;
  right: 28px;
  bottom: 112px;
  width: 370px;
  border-radius: 12px;
  background: #eeebe4fa;
  border: 1px solid #fff9;
  padding: 22px;
  box-shadow: 0 12px 50px #0003;
}
.map-title h2 {
  font: 550 27px var(--sans);
  letter-spacing: -0.045em;
  margin: 8px 0 20px;
}
.map-title .eyebrow {
  font-size: 7px;
  color: #94704f;
  letter-spacing: 0.12em;
}
.map-title button,
#close-help {
  color: #555c54;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #2023220a;
  font-size: 21px;
}
#floor-map {
  border-radius: 6px;
  border: 1px solid #20232218;
}
#room-list {
  gap: 6px;
}
#room-list button {
  border-radius: 6px;
  background: #fff9;
  border: 1px solid #20232216;
  font-size: 11px;
  min-height: 44px;
  padding: 10px;
}
#room-list button:hover,
#room-list button.active {
  background: #2a2e2b;
  color: #f6e5d3;
  border-color: #2a2e2b;
}
#room-list small {
  color: #a67550;
  opacity: 1;
}
.help-panel {
  top: 112px;
  right: 28px;
  border-radius: 12px;
  background: #eeebe4fa;
  border: 1px solid #fff9;
  padding: 28px;
  max-height: calc(100dvh - 140px);
  overflow: auto;
}
.help-panel h2 {
  font: 550 28px/1.1 var(--sans);
  letter-spacing: -0.04em;
}
.help-panel .eyebrow {
  color: #94704f;
}
.arrival {
  bottom: 112px;
  left: 28px;
  width: 350px;
  background: #eeebe4f5;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #fff8;
}
.arrival h2 {
  font: 550 31px/1.1 var(--sans);
  letter-spacing: -0.045em;
}
.explore-hud {
  top: 112px;
  left: 28px;
  right: 28px;
  align-items: flex-start;
}
.explore-hud > div {
  border-radius: 10px;
  background: var(--panel);
  padding: 15px 18px;
  border: 1px solid var(--line);
}
.explore-hud strong {
  font: 500 23px var(--sans);
  letter-spacing: -0.035em;
  margin: 6px 0;
}
.explore-hud span.eyebrow {
  color: var(--copper);
  letter-spacing: 0.14em;
}
.explore-hud #walk-help {
  font-size: 10px;
  color: #bfc4b9;
}
.explore-hud .dark-button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--copper);
  padding: 13px 17px;
}
#walk-toolbar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 20px;
  width: max-content;
  max-width: calc(100% - 56px);
  padding: 10px 12px 9px;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 40px #0002;
}
#walk-toolbar button {
  border-radius: 6px;
  border: 1px solid #ffffff26;
  padding: 11px 13px;
  font-size: 10px;
  min-height: 38px;
}
#walk-toolbar button:hover,
#walk-toolbar button[aria-expanded='true'] {
  background: #dbac85;
  color: #252a26;
  border-color: #dbac85;
}
#walk-toolbar button span {
  color: inherit;
  margin-left: 12px;
}
#walk-toolbar p {
  font-size: 9px;
  color: #b8bdb2;
  margin-top: 3px;
}
#touch-controls {
  bottom: 145px;
}
#touch-controls button {
  background: #202322e8;
  color: #e7c3a3;
  border: 1px solid #ffffff40;
  border-radius: 10px;
}
#look-hint {
  border-radius: 7px;
  color: #e7c3a3;
  background: var(--panel);
  bottom: 102px;
  font-size: 10px;
  border: 1px solid var(--line);
}
.loading {
  background: #202322;
  color: #d8d7cc;
}
.loading-mark {
  font: 300 85px var(--sans);
  color: var(--copper);
  letter-spacing: -0.075em;
  border: 1px solid #dbac8550;
  border-radius: 16px;
  padding: 6px 25px;
}
.loading small {
  color: #9da496;
}
@media (min-width: 701px) and (max-height: 800px) {
  .hero {
    top: 18%;
    padding: 24px;
    width: 310px;
  }
  .hero h1 {
    font-size: 52px;
    margin: 18px 0 15px;
  }
  .drawing-note {
    margin-top: 10px;
    padding-top: 12px;
  }
  .hero #enter {
    margin-top: 18px;
  }
  .hero::before {
    top: 24px;
  }
}
@media (max-width: 1000px) {
  .bottom-bar,
  .story-inside .bottom-bar {
    gap: 10px;
  }
  .scroll-cue,
  .story-inside .scroll-cue {
    display: none;
  }
  .story-navigation {
    margin-right: auto;
  }
  .hero {
    left: 28px;
  }
  .chapter,
  .story-inside .chapter {
    max-width: 320px;
  }
}
@media (max-width: 700px) {
  .masthead,
  .story-inside .masthead,
  .walking .masthead {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 13px;
    border-radius: 10px;
    gap: 8px;
    align-items: center;
  }
  .wordmark {
    gap: 8px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
  }
  .wordmark .brand-name {
    font-size: 15px;
  }
  .brand-name small {
    font-size: 6px;
    letter-spacing: 0.13em;
    margin-top: 5px;
  }
  .project-meta {
    display: none;
  }
  #help {
    font-size: 9px;
  }
  #help span {
    width: 22px;
    height: 22px;
    margin-left: 6px;
  }
  .hero {
    top: 104px;
    left: 20px;
    right: auto;
    width: 250px;
    padding: 22px;
    border-radius: 12px;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .hero h1 {
    font-size: 45px;
    line-height: 1.01;
    margin: 17px 0 14px;
  }
  .hero h1 br {
    display: block;
  }
  .hero p {
    font-size: 10px;
    line-height: 1.7;
  }
  .hero #enter {
    font-size: 11px;
    margin-top: 19px;
    padding: 12px 14px;
  }
  .hero #direct-explore {
    font-size: 9px;
    padding: 10px 0;
    margin-top: 5px;
  }
  .hero::before {
    top: 22px;
  }
  .drawing-note {
    display: none;
  }
  .bottom-bar,
  .story-inside .bottom-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    height: 68px;
    padding: 0 10px;
    flex-wrap: nowrap;
    gap: 7px;
    border-radius: 10px;
  }
  .story-navigation {
    gap: 3px;
    margin: 0;
    flex: 1;
    min-width: 0;
  }
  .story-navigation select,
  .story-inside .story-navigation select {
    width: 100%;
    min-width: 60px;
    max-width: 160px;
    font-size: 10px;
    padding-left: 5px;
  }
  .story-navigation button,
  .story-inside .story-navigation button {
    width: 29px;
    height: 32px;
    flex: none;
  }
  .sheet-number {
    display: none;
  }
  #explore-here {
    max-width: none;
    font-size: 9px;
    padding: 10px 8px;
    text-align: center;
  }
  #view-tools {
    top: 87px;
    left: 12px;
    right: 12px;
    padding: 4px;
    gap: 2px;
    border-radius: 8px;
    flex-wrap: nowrap;
  }
  #view-tools button {
    flex: 1;
    min-width: 0;
    font-size: 8px;
    padding: 7px 4px;
    min-height: 31px;
    white-space: nowrap;
  }
  #view-tools button span {
    font-size: 11px;
    margin-left: 3px;
  }
  #view-tools #clean-view {
    position: static;
    flex: 1;
  }
  .chapter,
  .story-inside .chapter {
    left: 12px;
    right: 108px;
    bottom: 96px;
    max-width: none;
    gap: 9px;
    padding: 12px;
    border-radius: 10px;
  }
  .chapter h2,
  .story-inside .chapter h2 {
    font-size: 19px;
    margin: 5px 0 7px;
  }
  .chapter p,
  .story-inside .chapter p {
    font-size: 10px;
    line-height: 1.5;
  }
  .chapter > span,
  .story-inside .chapter > span {
    font-size: 11px;
    min-width: 16px;
  }
  .chapter .eyebrow,
  .story-inside .chapter .eyebrow {
    font-size: 6px;
  }
  #mini-map-button {
    top: auto;
    bottom: 96px;
    right: 12px;
    width: 86px;
    padding: 7px;
    border-radius: 9px;
  }
  .mini-heading {
    font-size: 6px;
    letter-spacing: 0;
  }
  .mini-heading span {
    font-size: 11px;
  }
  #mini-room {
    font-size: 8px;
  }
  #mini-map {
    margin: 5px 0;
  }
  #map-panel,
  .story-inside:not(.walking) #map-panel {
    top: 87px;
    left: 12px;
    right: 12px;
    bottom: 96px;
    width: auto;
    padding: 17px;
  }
  .map-title h2 {
    font-size: 25px;
  }
  .help-panel {
    top: 87px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 103px);
    padding: 24px;
  }
  .arrival {
    bottom: 96px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 20px;
  }
  .arrival h2 {
    font-size: 28px;
  }
  .explore-hud {
    top: 87px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .explore-hud > div {
    padding: 12px;
    max-width: 65%;
  }
  .explore-hud strong {
    font-size: 21px;
  }
  .explore-hud span.eyebrow {
    font-size: 7px;
  }
  .explore-hud #walk-help {
    font-size: 8px;
    line-height: 1.6;
  }
  .explore-hud .dark-button {
    font-size: 9px;
    padding: 11px 10px;
    max-width: 105px;
  }
  #walk-toolbar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    gap: 5px;
    padding: 9px;
    border-radius: 10px;
  }
  #walk-toolbar button {
    font-size: 9px;
    padding: 9px !important;
    min-height: 33px !important;
  }
  #walk-toolbar button span {
    margin-left: 5px;
  }
  #walk-toolbar p {
    font-size: 8px;
    margin-top: 2px;
    line-height: 1.4;
  }
  #touch-controls {
    bottom: 165px;
    right: 16px;
  }
  #touch-controls button {
    height: 43px;
    width: 43px;
  }
  #look-hint {
    top: 137px;
    bottom: auto;
    left: 12px;
    right: 12px;
    transform: none;
    font-size: 9px;
  }
  body.clean-view #view-tools {
    left: auto;
    top: auto;
    bottom: 20px;
    width: auto;
  }
  body.clean-view #view-tools #clean-view {
    position: static;
  }
}
@media (max-height: 600px) {
  .hero {
    top: 97px;
    padding: 18px;
    width: 260px;
  }
  .hero h1 {
    font-size: 39px;
    margin: 13px 0;
  }
  .hero p {
    font-size: 10px;
  }
  .hero #enter {
    margin-top: 14px;
    padding: 10px 14px;
  }
  .hero #direct-explore {
    padding: 8px 0;
  }
  .drawing-note {
    display: none;
  }
  .chapter p,
  .story-inside .chapter p {
    display: none;
  }
  .chapter,
  .story-inside .chapter {
    bottom: 96px;
  }
  .explore-hud {
    top: 90px;
  }
  .explore-hud #walk-help {
    display: none;
  }
  #view-tools {
    top: 92px;
  }
  #map-panel,
  .story-inside:not(.walking) #map-panel {
    top: 92px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  a,
  select {
    transition: none;
  }
}
