/* 經典天堂倖存者：標題畫面（11-16 第二版，使用者：「直接抓網頁掛機版 ttsf.me/hunt/ 那套改」）
   素材從網頁掛機版複製到 assets/ui/t/（大廳圖、龍頭框切三段、五個龍框圖示）。
   手機／窄螢幕：上方標題列＋龍頭框登入卡置中（框裡有五項特色）；
   電腦寬螢幕（≥1100×640）：寬版大廳鋪滿、上方標題列、左邊大標題＋五張特色卡、右邊 470 寬的龍頭框。
   龍頭框：上段（龍頭，1024×200）、中段（隨內容拉長）、下段（按鈕槽，1024×376，槽在 x 190～834、y 36～168），上下段等比例不變形。 */
#scrTitle { --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif; --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  justify-content: flex-start; padding: 0 14px 18px; font-family: var(--f-body); }
#scrTitle .tt-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(5, 4, 4, .25), rgba(5, 4, 4, 0) 28%, rgba(5, 4, 4, .35) 70%, rgba(5, 4, 4, .8)),
  url(../assets/ui/t/login_hall.webp?v=1) 50% 30% / cover no-repeat, #070606; }

/* ---------- 上方標題列（手機：鐵板底；電腦：透明漸層） ---------- */
#scrTitle .tt-bar { position: sticky; top: 0; z-index: 3; align-self: stretch; margin: 0 -14px auto; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 14px 9px;
  background: linear-gradient(180deg, #2a2624, #121011); box-shadow: inset 0 1px 0 #5a5047, inset 0 -1px 0 #000, 0 1px 0 #6e5a34, 0 4px 14px rgba(0, 0, 0, .6); }
.tt-logo { font: 900 20px/1.2 var(--f-display); letter-spacing: .08em; white-space: nowrap;
  background: linear-gradient(180deg, #fff4cf 0%, #f3cf7a 45%, #b98326 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #000); }
.ttl-snd { display: flex; gap: 6px; flex: none; }
.ttl-snd .mini { font-size: 12px; padding: 3px 8px; }

/* ---------- 電腦版才有的大標題與頁尾 ---------- */
.tt-hero, .tt-foot { display: none; }

/* ---------- 龍頭框登入卡 ---------- */
.tt-card { position: relative; isolation: isolate; width: min(420px, 100%); margin-top: auto; margin-bottom: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); }
.tt-card .lf-top { aspect-ratio: 1024 / 200; background: url(../assets/ui/t/login_card_top.webp?v=1) 0 0 / 100% 100% no-repeat; }
.tt-card .lf-body { padding: 0 11% 6px; background: url(../assets/ui/t/login_card_mid.webp?v=1) 0 0 / 100% 100% no-repeat; }
.tt-card .lf-foot { position: relative; aspect-ratio: 1024 / 376; background: url(../assets/ui/t/login_card_bot.webp?v=1) 0 0 / 100% 100% no-repeat; }
.tt-card .gbtn { position: absolute; left: 19.6%; width: 60.8%; top: 12.4%; height: 30%; margin: 0; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 900 clamp(17px, 5.4vw, 22px)/1 var(--f-display); letter-spacing: .18em; text-indent: .18em; color: #f4fff2; text-shadow: 0 1px 2px #000, 0 0 8px rgba(120, 255, 150, .35);
  background: radial-gradient(120% 140% at 50% 0%, #2f8a45 0%, #17572a 55%, #0b3317 100%); box-shadow: inset 0 1px 0 rgba(200, 255, 200, .35), inset 0 -2px 6px rgba(0, 0, 0, .6); }
.tt-card .gbtn:hover { filter: brightness(1.15); }
.tt-card .gbtn:active { transform: translateY(1px); filter: brightness(.92); }
.tt-card .gbtn:disabled { opacity: .6; cursor: wait; }
#scrTitle #btnStart, #scrTitle.welcome #btnLogin { display: none; }
#scrTitle.welcome #btnStart { display: flex; }

.cl-title { margin: 0; text-align: center; font: 900 clamp(24px, 7.6vw, 31px)/1.25 var(--f-display); letter-spacing: .1em; text-indent: .1em; white-space: nowrap;
  background: linear-gradient(180deg, #fff4cf 0%, #f3cf7a 45%, #b98326 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(255, 190, 80, .25)); }
.cl-sub { position: relative; margin: 4px 0 6px; text-align: center; color: #e9dcbc; font-size: clamp(12px, 3.5vw, 14px); letter-spacing: .14em; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.cl-sub::after { content: ""; display: block; height: 10px; margin: 9px 4% 0;
  background: linear-gradient(90deg, transparent, #9c7a3c 25%, #e6c47c 50%, #9c7a3c 75%, transparent) center / 100% 1px no-repeat; }
.cl-sub::before { content: ""; position: absolute; left: 50%; bottom: 1px; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: #e6c47c; box-shadow: 0 0 6px rgba(255, 200, 100, .7); }
.cl-feats { list-style: none; padding: 0; margin: 0 0 6px; }
.cl-feats li { display: flex; align-items: center; gap: 12px; padding: 4px 2%; color: #efe4c6; font-size: clamp(13px, 3.9vw, 15px); text-shadow: 0 1px 2px #000; white-space: nowrap;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, .32) 15%, rgba(201, 162, 77, .32) 85%, transparent) bottom / 100% 1px no-repeat; }
.cl-feats li:last-child { background: none; }
.cl-feats b { color: #ffd76a; font-weight: 700; }
.cl-feats img { flex: none; width: 42px; height: 42px; margin: -3px 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)); }
.cl-note { margin: 8px 0 0; text-align: center; font-size: clamp(12px, 3.3vw, 13px); color: #9f927a; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: #e6c47c; text-decoration: underline; cursor: pointer; }
.linkish.line { color: #8dffb8; }

/* 帳號密碼 */
.tl-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tl-fld { display: block; }
.tl-fld > span { display: block; margin: 0 0 4px; font: 900 15px/1.3 var(--f-display); letter-spacing: .12em; color: #f0d48a; text-shadow: 0 1px 2px #000; }
.tl-fld input { display: block; width: 100%; box-sizing: border-box; height: 42px; padding: 0 10px; font: 16px var(--f-body); color: #fff2d2;
  background: #050404; border: 1px solid #7a6036; border-radius: 0; outline: none; box-shadow: inset 0 0 0 1px #000, inset 0 2px 7px rgba(0, 0, 0, .85); }
.tl-fld input:focus { border-color: #d9b866; box-shadow: inset 0 0 0 1px #000, 0 0 8px rgba(244, 210, 122, .35); }
.tl-msg { min-height: 1.3em; margin: 0; text-align: center; font-size: 13.5px; line-height: 1.3; color: #ff9a7a; text-shadow: 0 1px 2px #000; }
.tl-form .cl-note { margin-top: 0; }
.tl-hi { margin-top: 10px; text-align: center; font: 900 17px var(--f-display); color: #e6d6ac; letter-spacing: .2em; text-indent: .2em; text-shadow: 0 1px 2px #000; }
.tl-user { text-align: center; font: 700 24px var(--f-body); color: #ffe9a8; margin: 4px 0 10px; word-break: break-all; text-shadow: 0 1px 2px #000, 0 0 8px #000; }

/* ---------- 手機橫式（矮）：特色收起來，框窄一點 ---------- */
@media (max-height: 520px) and (min-aspect-ratio: 4 / 5) {
  .tt-card { width: min(360px, 60vw); margin-top: 8px; }
  .cl-feats, .cl-sub { display: none; }
}

/* ---------- 電腦寬螢幕 ---------- */
@media (min-width: 1100px) and (min-height: 640px) {
  #scrTitle { --pcdl: calc((100vw - min(92vw, 1380px)) / 2); padding: 0; overflow: hidden; }
  #scrTitle .tt-bg { background:
    linear-gradient(90deg, rgba(6, 4, 3, .92) 0%, rgba(6, 4, 3, .55) 32%, rgba(6, 4, 3, .15) 55%, rgba(6, 4, 3, .55) 78%, rgba(6, 4, 3, .9) 100%),
    linear-gradient(180deg, rgba(6, 4, 3, .6), transparent 18%, transparent 70%, rgba(6, 4, 3, .95)),
    url(../assets/ui/t/login_hall_wide.webp?v=1) center 40% / cover no-repeat, #070606; }
  #scrTitle .tt-bar { position: fixed; left: 0; right: 0; top: 0; height: 72px; margin: 0; padding: 0 var(--pcdl); box-shadow: none; background: linear-gradient(180deg, rgba(10, 7, 4, .85), rgba(10, 7, 4, 0)); }
  .tt-logo { font-size: 30px; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 2px 8px #000); }
  .ttl-snd .mini { font-size: 13px; padding: 4px 10px; }
  #scrTitle .tt-hero { position: fixed; z-index: 1; left: var(--pcdl); right: calc(var(--pcdl) + 470px + 60px); top: 72px; bottom: 50px; margin: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .tt-kick { padding: 4px 14px; border: 1px solid rgba(201, 162, 77, .6); color: #e6c47c; letter-spacing: .2em; font-size: 14px; background: rgba(0, 0, 0, .35); white-space: nowrap; }
  .tt-h1 { margin: 18px 0 6px; white-space: nowrap; font: 900 clamp(40px, 4.4vw, 84px)/1.05 var(--f-display); letter-spacing: .06em;
    background: linear-gradient(180deg, #fff4cf 0%, #f3cf7a 45%, #b98326 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 22px rgba(255, 190, 80, .25)); }
  .tt-sub { margin: 0 0 34px; white-space: nowrap; font-size: clamp(14px, 1.15vw, 20px); letter-spacing: .14em; color: #e9dcbc; text-shadow: 0 2px 4px #000; }
  .tt-sub b { color: #ffd76a; }
  .tt-feats { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 880px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .tt-feats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 6px 12px; min-width: 0;
    background: linear-gradient(180deg, rgba(30, 22, 14, .78), rgba(10, 7, 5, .78)); border: 1px solid rgba(201, 162, 77, .45); box-shadow: inset 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .6); }
  .tt-feats img { width: clamp(48px, 4.4vw, 72px); height: auto; filter: drop-shadow(0 2px 4px #000); }
  .tt-feats b { font-size: clamp(12px, 1vw, 15.5px); color: #ffd76a; white-space: nowrap; }
  .tt-feats span { font-size: clamp(10px, .8vw, 12.5px); color: #c9bb98; white-space: nowrap; }
  #scrTitle .tt-foot { display: block; position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px; text-align: center; font-size: 12.5px; letter-spacing: .1em; color: #8f8268;
    background: linear-gradient(0deg, rgba(6, 4, 3, .9), transparent); }
  /* 右邊龍頭框：470 寬、上下置中；五項特色左邊已經有，框裡不重複 */
  #scrTitle .tt-card { position: fixed; z-index: 2; right: var(--pcdl); top: 50%; transform: translateY(-50%); width: 470px; margin: 0; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .85)); }
  #scrTitle .cl-feats { display: none; }
  #scrTitle .gbtn { font-size: 22px; }
}
