/* 无用寺 · 灰瓦、赭木与暖纸色 */
:root {
  --panel: rgba(40, 46, 40, .88);
  --panel-2: rgba(40, 46, 40, .76);
  --gold: #dfc38d;
  --line: rgba(241, 232, 211, .22);
}
.top { padding: calc(var(--gt) + 24px) 28px 0; gap: 24px; }
.brand { gap: 9px; }
.brand h1 { font-size: 38px; letter-spacing: .08em; }
#hall-btn { border: 0; background: rgba(40, 46, 40, .72); height: 30px; padding: 0 12px; border-radius: 4px; }
.status { padding: 4px 10px; border-radius: 4px; font-size: 11px; }
.tools { gap: 6px; max-width: 620px; }
.chip { min-height: 40px; height: auto; border-radius: 6px; padding: 0 13px; font-size: 13px; }
button { transition: background .18s ease, color .18s ease, border-color .18s ease; }
button.chip:hover { background: rgba(63, 70, 59, .96); border-color: var(--gold); }
#guide-btn { color: #f0d4a1; border-color: rgba(223, 195, 141, .6); }
#sheet .guide-help { display: block; margin: 8px auto 0; min-height: 40px; padding: 8px 20px; }
button:focus-visible { outline: 2px solid #f0c379; outline-offset: 4px; }
.gate {
  place-items: center start;
  padding: 130px 0 36px 40px;
  background: linear-gradient(90deg, rgba(25, 37, 32, .18), transparent 50%);
}
.gate-card {
  --text: #383e32;
  --mute: #706e60;
  --gold: #8d4835;
  width: 300px;
  padding: 28px 24px 20px;
  gap: 17px;
  border: 1px solid rgba(255, 250, 232, .75);
  border-radius: 3px 3px 20px 3px;
  background: rgba(246, 239, 219, .94);
  box-shadow: 0 18px 55px rgba(25, 32, 26, .13), inset 0 0 35px rgba(184, 163, 120, .10);
  text-align: left;
  align-items: stretch;
}
.gate-card h2 { margin: 0; font-size: 54px; color: #343e32; letter-spacing: .12em; text-align: center; }
.gate-card .tagline { margin: 0 0 4px!important; font-size: 15px!important; letter-spacing: .08em; text-align: center; }
.gate-card .name-pick { gap: 8px; font-size: 12px; }
.gate-card .name-pick b { font-size: 20px; }
.gate-card .link { min-height: 36px; }
.gate-card .btn-primary { height: 48px; background: #854a38; color: #fff5df; font-size: 19px; border-radius: 5px; letter-spacing: .18em; }
.gate-card .btn-primary:hover { background: #6f3c2d; }
.gate-card button:focus-visible { outline-color: #854a38; }
.sessions { border-top: 1px solid rgba(89, 81, 60, .18); padding-top: 16px; gap: 5px; }
.s-line { gap: 12px; }
.s-times { gap: 12px; }
.s-times i { font-size: 12px; }
.gate-foot { flex-direction: column; gap: 3px; }
.gate-foot .snd-tip { font-size: 11px!important; }
.gate-foot .tea-link { padding: 6px 0; font-size: 12px; text-decoration-color: rgba(141, 72, 53, .35); }
.bottom { padding-bottom: calc(var(--gb) + 18px); gap: 10px; }
.hint { max-width: min(620px, 90vw); font-size: 15px; line-height: 1.6; }
.dock { border-radius: 10px; padding: 5px; background: var(--panel); box-shadow: 0 8px 28px rgba(15, 27, 20, .16); }
.act { min-width: 74px; height: 52px; border-radius: 5px; font-size: 16px; }
.me-row { background: var(--panel-2); border-radius: 5px; gap: 4px 16px; }
.me-row .link { min-height: 32px; text-decoration-color: rgba(223, 195, 141, .4); }
.sheet-wrap { background: rgba(21, 30, 25, .45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sheet { background: #2b332c; border-radius: 16px 16px 0 0; padding-top: 16px; }
.sheet h2 { font-size: 28px; letter-spacing: .1em; margin-bottom: 8px; }
.sheet .sub { font-size: 13px; }
.sheet .btn-primary { border-radius: 6px; margin-top: 12px; font-size: 17px; }
.route-list { display: grid; gap: 0; margin-top: 20px; }
.route { position: relative; display: grid; gap: 6px; padding: 17px 82px 17px 12px; border-top: 1px solid var(--line); text-align: left; border-radius: 3px; }
.route:hover { background: rgba(223, 195, 141, .08); }
.route b { font-family: var(--soft); font-size: 19px; font-weight: 400; color: #ede4cf; }
.route span { font-size: 12px; line-height: 1.6; color: #c4c6b7; }
.route small { position: absolute; right: 12px; top: 25px; font-size: 12px; color: var(--gold); }
.route-tip { text-align: center; color: var(--mute); font-size: 11px; margin: 16px 0 4px; }
@media (max-width: 760px) {
  .top { padding: calc(var(--gt) + 16px) 16px 0; gap: 12px; }
  .brand h1 { font-size: 29px; }
  .brand { gap: 6px; }
  .tools { max-width: 240px; }
  .chip { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .gate { place-items: end center; padding: 150px 16px calc(var(--gb) + 18px); background: linear-gradient(transparent 55%, rgba(25,37,32,.18)); }
  .gate-card { width: min(340px, 100%); padding: 18px 22px 12px; gap: 8px; }
  .gate-card h2 { font-size: 38px; }
  .gate-card .tagline { font-size: 14px!important; margin: 0!important; }
  .gate-card .btn-primary { height: 44px; }
  .sessions { padding-top: 10px; }
  .gate-foot { flex-direction: row; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .gate-foot .snd-tip { display: none; }
  .act { min-width: 58px; padding: 0 10px; height: 48px; font-size: 15px; }
  .hint { font-size: 13px; }
  .me-row { gap: 2px 10px; font-size: 11px; }
  .me-row .link { font-size: 11px; min-height: 36px; }
}
@media (max-width: 420px) {
  .top { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .tools { max-width: 198px; gap: 4px; }
  .chip { padding: 0 9px; min-height: 40px; font-size: 11px; }
  #clock-btn { font-size: 11px; padding: 0 8px; }
  .brand h1 { font-size: 26px; }
  .status { font-size: 10px; padding: 4px 6px; }
  .act { min-width: 50px; padding: 0 8px; }
  .bottom { padding-left: 10px; padding-right: 10px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .gate { padding-top: 100px; padding-bottom: 12px; }
  .gate-card { padding: 16px 22px 10px; gap: 7px; }
  .gate-card h2 { font-size: 40px; }
  .bottom { gap: 4px; padding-bottom: calc(var(--gb) + 8px); }
}

.sheet { position: relative; }
.sheet-close { position: absolute; top: 13px; right: 13px; width: 44px; height: 44px; border-radius: 6px; font-size: 28px; color: var(--mute); line-height: 1; }
.sheet-close:hover { background: rgba(223,195,141,.1); color: var(--text); }

/* 矮屏保留完整入口，内容过高时在卡片内滚动。 */
.gate-card { max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); overflow-y: auto; }
@media (max-height: 560px) and (min-width: 600px) {
  .gate { place-items: center; padding: 76px 16px 12px; }
  .gate-card { width: 300px; padding: 14px 20px 10px; gap: 6px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); }
  .gate-card h2 { font-size: 32px; }
  .gate-card .tagline { font-size: 13px!important; }
  .gate-card .btn-primary { height: 40px; min-height: 40px; }
  .sessions { padding-top: 8px; }
  .gate-foot .snd-tip { display: none; }
}

/* 给触屏保留完整的点击面积，视角控制与动作按钮同样可点。 */
.chip { min-height: 44px; }
.me-row { max-width: calc(100vw - 24px); }
.me-row .link { min-height: 44px; padding: 4px; }
#overhead-btn[aria-pressed="true"] { background: rgba(223, 195, 141, .18); border-radius: 4px; color: #fff1ce; }
@media (max-width: 760px) {
  .me-row { padding: 4px 8px; gap: 2px 6px; }
  .me-row .link { font-size: 12px; }
}

/* 封面（2026-11-08）：还是原来那张宣纸卡片，放到画面正中；功课时刻和「轻点一下听声音」不放在封面上（声音默认开着） */
.gate { place-items: center; padding: 96px 16px calc(var(--gb) + 36px); background: radial-gradient(ellipse at center, rgba(25, 37, 32, .14), transparent 62%); }
.gate .sessions, .gate .snd-tip { display: none !important; }
.gate-foot { margin-top: -6px; }
@media (max-width: 760px) {
  .gate { place-items: center; padding: 110px 16px calc(var(--gb) + 24px); background: radial-gradient(ellipse at center, rgba(25, 37, 32, .14), transparent 66%); }
}

/* 封面（2026-11-09）：卡片压到画面下三分之一，上面留给整座山 */
.gate { place-items: end center; padding: 96px 16px calc(var(--gb) + 5vh); background: linear-gradient(transparent 52%, rgba(25, 37, 32, .2)); }
.gate-card { width: min(420px, 100%); padding: 16px 26px 8px; gap: 9px; max-height: 34vh; min-height: 0; }
.gate-card h2 { font-size: 40px; line-height: 1.1; }
.gate-card .tagline { font-size: 14px!important; margin: 0!important; }
.gate-card .btn-primary { height: 44px; min-height: 44px; }
.gate-foot { margin-top: -4px; }
@media (max-width: 760px) {
  .gate { place-items: end center; padding: 90px 16px calc(var(--gb) + 3vh); background: linear-gradient(transparent 50%, rgba(25, 37, 32, .2)); }
  .gate-card { width: min(340px, 100%); padding: 12px 20px 6px; gap: 7px; max-height: 38vh; }
  .gate-card h2 { font-size: 32px; }
  .gate-card .btn-primary { height: 40px; min-height: 40px; }
}
@media (max-height: 560px) { .gate-card { max-height: 48vh; } .gate-card h2 { font-size: 28px; } }

/* 地图（2026-11-09） */
.map-wrap { margin: 10px auto 4px; width: min(100%, calc(74vh / 1.36)); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(80, 70, 50, .18), 0 6px 18px rgba(30, 30, 20, .12); background: #E9E4D6; }
.map-cv { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.map-places { display: flex !important; flex-wrap: wrap; gap: 6px !important; margin-top: 12px !important; }
.map-places .route { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; min-height: 0; border: 1px solid rgba(120, 100, 70, .25); border-radius: 999px; }
.map-places .route small { display: none; }
