/* the model-house town: on top of the walkthrough's style.css */
:root { --accent: #2f5a3f; --town: #1f3d2b; }
.seg[hidden] { display: none; }

/* names floating over the houses */
.house-label {
  position: fixed; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7);
  background: rgba(250, 247, 241, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(20, 30, 20, .22); font: 600 14px var(--font); color: var(--ink); cursor: pointer;
  white-space: nowrap; transition: opacity .25s; will-change: transform;
}
.house-label::after { content: "↗"; font-weight: 500; color: var(--accent); margin-left: 2px; }
.house-label i { font: italic 500 12px Georgia, "Times New Roman", serif; color: var(--ink-2); }
.house-label:hover { background: #fff; }
.house-label.off { opacity: 0; pointer-events: none; }

/* 「玄関から入る」 */
.enter-btn {
  position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--town); color: #fff; font: 700 16px var(--font); letter-spacing: .06em; cursor: pointer; white-space: nowrap; max-width: calc(100vw - 24px);
  box-shadow: 0 12px 30px rgba(15, 35, 22, .35); animation: enterIn .45s ease-out;
}
.enter-btn b { font-size: 18px; transition: transform .2s; }
.enter-btn:hover b { transform: translateX(4px); }
.enter-btn[hidden] { display: none; }
@keyframes enterIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* the guide bar of the houses */
.house-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: stretch;
  gap: 4px; padding: 6px; border-radius: 18px; background: var(--paper); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: calc(100vw - 24px);
}
.hb-head { display: flex; flex-direction: column; justify-content: center; padding: 4px 14px 4px 10px; border-right: 1px solid var(--line); }
.hb-head small { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-2); }
.hb-head strong { font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.house-card {
  display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 12px;
  padding: 8px 14px; cursor: pointer; font-family: var(--font); color: var(--ink); text-align: left; min-width: 220px;
}
.house-card:hover { background: rgba(47, 90, 63, .07); }
.house-card.on { background: rgba(47, 90, 63, .13); }
.house-card i { font: italic 500 20px Georgia, "Times New Roman", serif; color: var(--ink-2); }
.hc-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.hc-name { font-size: 15px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.hc-sub { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.hc-go { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }

.room { bottom: 172px; font-size: 13px; }
.map { bottom: 96px; width: 340px; }

/* the light fade when walking in through the door */
.fade { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: #f4f1ea; opacity: 0; transition: opacity .85s ease-in; }
.fade.on { opacity: 1; }

@media (max-width: 760px) {
  .house-bar { bottom: 8px; padding: 4px; }
  .hb-head { display: none; }
  .house-card { min-width: 0; padding: 7px 10px; gap: 8px; }
  .house-card i { font-size: 15px; }
  .hc-name { font-size: 13.5px; }
  .hc-go { display: none; }
  .enter-btn { bottom: 84px; padding: 12px 20px; font-size: 15px; gap: 8px; letter-spacing: .02em; }
  .room { bottom: 140px; }
  .map { bottom: 76px; width: min(300px, calc(100vw - 24px)); }
  .house-label { font-size: 12.5px; padding: 6px 11px 6px 9px; }
  .hint { top: 146px; bottom: auto; max-width: calc(100vw - 24px); white-space: normal; text-align: center; border-radius: 14px; }
}
