/* 首頁四個快捷功能：依使用者提供的黑白圖示參考，採一致的向量線條與簡潔留白。
   以文字保留可辨識名稱、鍵盤焦點與無障礙標籤。 */
#screen.start .tw-home-quicklinks{
  position:fixed;z-index:7;top:calc(14px + env(safe-area-inset-top));
  right:calc(18px + env(safe-area-inset-right));
  display:grid;grid-template-columns:repeat(4,68px);gap:10px;align-items:start;
}
#screen.start .tw-home-quicklinks .tw-home-shortcut{
  box-sizing:border-box;width:68px;height:74px;padding:9px 4px 7px;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:5px;border-radius:14px;text-align:center;white-space:nowrap;
  border:1px solid var(--line);background:var(--surface-solid);color:var(--text);
  box-shadow:0 3px 14px rgba(18,28,45,.045);
  font-size:12px;font-weight:650;letter-spacing:0;
  text-decoration:none;cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
#screen.start .tw-home-shortcut:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 6px 18px rgba(18,28,45,.09)}
#screen.start .tw-home-shortcut:active{transform:translateY(0)}
#screen.start .tw-home-shortcut:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#screen.start .tw-home-shortcut .ico{width:32px;height:32px;flex:none;color:var(--text);display:inline-flex;align-items:center;justify-content:center}
#screen.start .tw-home-shortcut .ico svg{display:block;width:100%;height:100%}
#screen.start .tw-home-shortcut .tw-shortcut-text{display:block;min-width:0;max-width:100%;
  font-size:11px;line-height:1.15;font-weight:650;color:var(--text)}
#screen.start .tw-home-quicklinks .tw-home-news.dot::after{top:5px;right:6px}
#screen.start .tw-start-tutorial{margin-top:17px;min-height:50px;
  border-color:color-mix(in srgb,var(--teal) 50%,var(--line-strong))}
#screen.start .tw-start-tutorial b{white-space:nowrap}
#screen.start .tw-home-quicklinks .corner-btn::before{display:none}

/* 真實臺北地圖教學：可以使用地圖及底部建站工具，不遮蓋主要操作。 */
.tw-guide-panel{position:fixed;z-index:85;bottom:calc(104px + env(safe-area-inset-bottom));
  left:16px;box-sizing:border-box;width:min(358px,calc(100vw - 32px));padding:17px;
  max-height:min(55dvh,430px);overflow-y:auto;background:var(--surface-solid,#fff);color:var(--text,#142137);
  border:1px solid var(--line-strong,#b6c3d5);border-radius:18px;
  box-shadow:0 15px 48px rgba(6,18,38,.3)}
.tw-guide-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;}
.tw-guide-head>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.tw-guide-head strong{color:var(--navy);font-size:17px;line-height:1.3}
.tw-guide-count{color:var(--muted);font-size:11px;font-weight:700}
.tw-guide-close{width:34px;height:34px;flex:none;border:1px solid var(--line);border-radius:9px;
  color:var(--text);background:var(--surface);font-size:24px;cursor:pointer}
.tw-guide-progress{height:5px;background:var(--line);border-radius:5px;overflow:hidden;margin:12px 0}
.tw-guide-progress span{display:block;height:100%;background:var(--teal,#15a6a4);border-radius:5px;transition:width .2s}
.tw-guide-desc{font-size:13px;line-height:1.7;margin:9px 0 6px}
.tw-guide-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:7px 0}
.tw-guide-status{font-size:11px;color:var(--muted);margin:7px 0;font-weight:650}
.tw-guide-status.complete{color:var(--teal,#0c918b)}
.tw-guide-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:13px}
.tw-guide-actions button{font:inherit;font-size:12px;border:1px solid var(--line-strong);
  padding:8px 11px;min-height:36px;border-radius:9px;background:var(--surface);
  color:var(--text);cursor:pointer}
.tw-guide-actions .tw-guide-primary{background:var(--navy,#23568e);color:#fff;border-color:transparent;font-weight:800}
.tw-guide-actions .tw-guide-quit{margin-right:auto;font-weight:700;color:var(--muted)}
@media(max-width:760px),(max-width:1024px) and (max-height:520px) and (pointer:coarse){
  #screen.start .tw-home-quicklinks{position:fixed;left:50%;right:auto;
    transform:translateX(-50%);top:calc(var(--view-top,0px) + var(--safe-top,0px) + 44px);
    width:min(336px,calc(100vw - 24px));grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  #screen.start .tw-home-quicklinks .tw-home-shortcut{width:100%;height:68px;border-radius:14px;
    padding:7px 1px 6px}
  #screen.start .tw-home-shortcut .tw-shortcut-text{font-size:10.5px}
  #screen.start{padding-top:calc(var(--safe-top,0px) + 132px);align-items:safe center}
  #screen.start .start-wrap{max-height:calc(100dvh - 146px - var(--safe-top,0px) - env(safe-area-inset-bottom));
    overflow-y:auto;overscroll-behavior:contain;padding:4px 0 12px;scrollbar-width:none}
  #screen.start .start-wrap::-webkit-scrollbar{display:none}
  .tw-guide-panel{left:9px;right:9px;width:auto;bottom:calc(82px + env(safe-area-inset-bottom));
    max-height:46dvh;padding:13px 14px}
  .tw-guide-head strong{font-size:15px}
  .tw-guide-desc{font-size:12px}
  .tw-guide-actions button{padding:7px 9px}
}
@media(max-width:359px){
  #screen.start .tw-home-quicklinks{width:calc(100vw - 20px);gap:5px}
  #screen.start .tw-home-quicklinks .tw-home-shortcut{height:65px;border-radius:12px}
  #screen.start .tw-home-shortcut .tw-shortcut-text{font-size:10px}
  #screen.start .tw-start-tutorial{font-size:12px;gap:5px}
}
