/* ===== 타이틀 화면 ===== */
#title { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: #04100a; overflow: auto; }
body.connected #title { display: none; }
#titleCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.tBox { position: relative; z-index: 2; box-sizing: border-box; width: min(440px, calc(100vw - 32px)); margin: 16px auto; padding: 26px 22px 18px; text-align: center; background: rgba(5,16,10,.72); border: 1px solid rgba(109,242,154,.3); border-radius: 18px; backdrop-filter: blur(4px); box-shadow: 0 14px 50px rgba(0,0,0,.6); }
.tLogo { font-size: 46px; line-height: 1; }
.tBox h1 { margin: 6px 0 2px; font-size: 32px; letter-spacing: .02em; color: #e8ffd0; text-shadow: 0 3px 0 #1a5a30, 0 0 22px rgba(198,242,78,.4); }
.tEn { margin: 0; font-size: 12px; letter-spacing: .32em; color: #6df29a; }
.tSub { margin: 14px 0 18px; font-size: 12px; line-height: 1.6; color: #b9d8c2; }
.tBtns { display: grid; gap: 8px; }
.tBtns .tMain { min-height: 52px; font-size: 14px; font-weight: 700; color: #052410; background: #C6F24E; border: 0; border-radius: 12px; }
.tBtns .tMain:hover { background: #d8ff6a; }
.tSubBtns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tSubBtns button { min-height: 44px; border-radius: 10px; font-size: 12px; }
.tNotice { margin: 12px 0 0; font-size: 12px; color: #ffd166; }
.tInfo { margin-top: 16px; font-size: 12px; color: #8fb09b; display: grid; gap: 4px; }
#tRank { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; color: #d9ecc0; }
.tNote { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #6f917b; }
.tNote a { color: #8fd9a8; }

@media (max-width: 380px) { .tBox { width: calc(100vw - 40px); padding: 22px 16px 16px; } .tBox h1 { font-size: 28px; } .tSub { font-size: 12px; } }

/* 모험 시작 버튼을 7:3 으로 나눠 오른쪽에 [게임 창] 버튼(PC 전용, 숨겨져 있으면 시작 버튼이 전체 폭) */
.tMainRow { display: flex; gap: 8px; }
.tMainRow .tMain { flex: 7 1 0; min-width: 0; }
.tPopBtn { flex: 3 1 0; min-width: 0; min-height: 52px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #C6F24E; background: #14301c; border: 1px solid #3f7a4a; border-radius: 12px; cursor: pointer; }
.tPopBtn:hover { background: #1d4528; border-color: #6df29a; }
.tPopBtn[hidden] { display: none; }

.tVer { margin-left: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #b9d8c2; text-shadow: none; opacity: .85; vertical-align: baseline; }
.tTitleRow { display: flex; align-items: center; justify-content: center; gap: 10px; }
#bgmBtnT { flex: none; padding: 5px 10px; font-size: 16px; line-height: 1; margin-top: 8px; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; cursor: pointer; }
#bgmBtnT:hover { background: rgba(0,0,0,.65); }

/* 로그인 화면 사운드트랙 목록 */
.tBgm { margin: 14px 0 4px; padding: 10px 12px; text-align: left; background: rgba(0,0,0,.28); border: 1px solid rgba(109,242,154,.2); border-radius: 12px; }
.tBgmHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; color: #b9d8c2; }
.tBgmVol { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.tBgmVol input { width: 92px; accent-color: #C6F24E; }
#tBgmList { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
#tBgmList li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 12px; color: #d4eadb; background: rgba(255,255,255,.04); border-radius: 8px; }
#tBgmList li.on { background: rgba(198,242,78,.14); color: #e8ffd0; }
#tBgmList .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tBgmList .tg { flex: none; font-size: 10px; color: #7fa98c; }
.tBgmPlay { flex: none; width: 30px; height: 30px; padding: 0; font-size: 13px; line-height: 1; color: #C6F24E; background: #14301c; border: 1px solid #3f7a4a; border-radius: 50%; cursor: pointer; }
.tBgmPlay:hover { background: #1d4528; border-color: #6df29a; }

/* 첫 방문 로딩 화면 */
#loadOv { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: #04100a; transition: opacity .4s; }
#loadOv[hidden] { display: none; }
#loadOv.out { opacity: 0; pointer-events: none; }
.loadBox { width: min(320px, calc(100vw - 48px)); text-align: center; color: #b9d8c2; }
.loadLogo { font-size: 46px; line-height: 1; animation: loadBob 1.2s ease-in-out infinite; }
.loadTtl { margin: 8px 0 18px; font-size: 22px; font-weight: 700; color: #e8ffd0; text-shadow: 0 2px 0 #1a5a30; }
.loadBarWrap { height: 8px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 6px; }
#loadBar { width: 0; height: 100%; background: #C6F24E; border-radius: 6px; transition: width .25s; }
#loadTxt { margin-top: 10px; font-size: 13px; }
.loadSub { margin-top: 4px; font-size: 11px; color: #7fa98c; }
@keyframes loadBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 12-06 점검: 폰에서 '쥬라기 사운드트랙' 제목이 '트/랙'으로 끊기지 않게 */
.tBgmHead > span { white-space: nowrap; }
.tBgmVol { min-width: 0; }
.tBgmVol input { min-width: 0; flex: 0 1 92px; }
