/* 타이틀 화면 개편 (js/titleui.js) */
#screen-title.t2 .title-center { display: none; }
#screen-title.t2 .title-layout { grid-template-columns: minmax(340px, 460px) 1fr; align-items: center; }
#screen-title.t2 .vignette { box-shadow: inset 0 0 160px 40px #000; background: linear-gradient(90deg, rgba(3, 5, 10, .92) 0%, rgba(3, 5, 10, .7) 32%, rgba(3, 5, 10, .15) 62%, rgba(3, 5, 10, .35) 100%); }
#screen-title.t2 .rays { opacity: .25; }
#screen-title.t2 .ceremony-cap { right: 6vw; bottom: 200px; text-align: right; font-size: 13px; }
#screen-title.t2 .ceremony-cap b { display: block; font-size: 44px; line-height: 1; margin-bottom: 6px; }
#screen-title.t2 .main-menu { margin-top: 18px; gap: 8px; }
#screen-title.t2 .main-menu button { border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); border-left: 3px solid transparent; background: rgba(10, 14, 24, .55); backdrop-filter: blur(6px); padding: 14px 20px; }
#screen-title.t2 .main-menu button:hover, #screen-title.t2 .main-menu button:focus-visible { border-left-color: var(--gold); background: rgba(200, 162, 74, .14); padding-left: 24px; }
#screen-title.t2 .main-menu button.t2-pri { border-color: rgba(200, 162, 74, .55); background: linear-gradient(90deg, rgba(200, 162, 74, .28), rgba(10, 14, 24, .6)); }
#screen-title.t2 .main-menu button.t2-pri b { color: var(--gold-2, #e8c872); }
.t2-cont { margin-top: 34px; } .t2-cont[hidden] { display: none; }
.t2-resume { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left; color: var(--text);
  border: 1px solid rgba(200, 162, 74, .6); background: linear-gradient(100deg, rgba(200, 162, 74, .32), rgba(10, 14, 24, .7) 70%); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.t2-resume:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold) inset; }
.t2-logo { width: 54px; height: 54px; border-radius: 12px; background: rgba(0, 0, 0, .35); display: grid; place-items: center; flex: none; overflow: hidden; }
.t2-logo img { width: 42px; height: 42px; object-fit: contain; } .t2-logo b { font-size: 14px; }
.t2-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t2-rt small { font-size: 11.5px; color: var(--gold); letter-spacing: .04em; } .t2-rt b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .t2-rt span { font-size: 12.5px; color: var(--muted); }
.t2-resume > i { font-style: normal; color: var(--gold-2, #e8c872); font-size: 16px; }
.t2-sub { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.t2-sub .t2-mini { flex: 1 1 calc(50% - 4px); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text);
  border: 1px solid rgba(255, 255, 255, .07); background: rgba(10, 14, 24, .5); backdrop-filter: blur(6px); transition: border-color .15s, background .15s; }
.t2-sub .t2-mini b { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; } .t2-sub .t2-mini span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.t2-sub .t2-mini:hover { border-color: rgba(200, 162, 74, .6); background: rgba(200, 162, 74, .1); }
.t2-sub .t2-mini b i, .t2-sub .t2-mini b em { font-size: 9px; }
.t2-info { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 11.5px; color: #6d7893; letter-spacing: .03em; flex-wrap: wrap; } .t2-info i { width: 3px; height: 3px; border-radius: 50%; background: #3d4660; }
#screen-title.t2 .version { margin-top: 10px; }
body.on-title .mu { bottom: calc(var(--footer-h, 34px) + 196px); }
@media (max-width: 900px) {
  #screen-title.t2 .title-layout { grid-template-columns: 1fr; padding: 0 20px; align-content: center; }
  #screen-title.t2 .vignette { background: linear-gradient(180deg, rgba(3, 5, 10, .6), rgba(3, 5, 10, .85)); }
  #screen-title.t2 .ceremony-cap { display: none; }
}

/* 모드 카드 (커리어 · 판타지) */
.t2-modes { display: flex; flex-direction: column; gap: 10px; }
.t2-mode { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--gold); background: rgba(10, 14, 24, .6); backdrop-filter: blur(6px); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.t2-mode.fz { border-left-color: #b07cff; }
.t2-mh { display: flex; flex-direction: column; gap: 3px; }
.t2-mh b { font-size: 20px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; } .t2-mh b em { font-style: normal; font-size: 10px; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; background: #b07cff; color: #120a22; }
.t2-mh span { font-size: 12px; color: var(--muted); }
.t2-mb { display: flex; gap: 8px; }
#screen-title.t2 .t2-mb button { flex: 1 1 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
#screen-title.t2 .t2-mb button:hover:not(:disabled) { border-color: var(--gold); background: rgba(200, 162, 74, .14); }
#screen-title.t2 .t2-mb button.pri { border-color: rgba(200, 162, 74, .6); background: linear-gradient(90deg, rgba(200, 162, 74, .3), rgba(200, 162, 74, .12)); color: var(--gold-2, #e8c872); }
#screen-title.t2 .t2-mb button:disabled { opacity: .4; cursor: default; }
.t2-mb button small { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-left: 4px; }
.t2-mode.fz .t2-mb button:hover:not(:disabled) { border-color: #b07cff; background: rgba(176, 124, 255, .14); }
/* 불러오기: 커리어 목록 */
.ld-list { display: flex; flex-direction: column; gap: 8px; max-height: min(60vh, 520px); overflow-y: auto; }
.ld-empty { color: var(--muted); font-size: 13px; }
.ld-car { border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; overflow: hidden; } .ld-car.on { border-color: rgba(200, 162, 74, .5); }
.ld-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .03); border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ld-row:hover { background: rgba(200, 162, 74, .1); } .ld-row > i { font-style: normal; color: var(--muted); }
.ld-fz { border: 1px solid rgba(176, 124, 255, .35); border-radius: 10px; }
.ld-logo { width: 38px; height: 38px; border-radius: 8px; background: rgba(0, 0, 0, .35); display: grid; place-items: center; flex: none; overflow: hidden; } .ld-logo img { width: 30px; height: 30px; object-fit: contain; } .ld-logo b { font-size: 11px; }
.ld-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ld-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ld-t small { font-size: 11.5px; color: var(--muted); }
.ld-saves { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; background: rgba(0, 0, 0, .2); }
.ld-save { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ld-save:hover { border-color: var(--gold); background: rgba(200, 162, 74, .12); } .ld-save span { font-variant-numeric: tabular-nums; } .ld-save small { color: var(--muted); font-size: 11px; }
.ld-del { align-self: flex-end; margin-top: 4px; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(226, 87, 92, .4); background: transparent; color: #f08a8e; font: inherit; font-size: 12px; cursor: pointer; }
@media (max-width: 640px) { .ld-save { grid-template-columns: 1fr auto; } .ld-save small { display: none; } .t2-mh b { font-size: 18px; } }
#screen-title .main-menu button[hidden] { display: none; }
.t2-modes { margin-top: 18px; }

/* 등장 연출 — 첫 우승 사진을 받으면(.go) 위에서 아래로 한 번에 차례대로. main.css의 예전 연출(칸마다 따로 1.6 ~ 2.9초)은 끈다 */
#screen-title.t2.play .title-bg, #screen-title.t2.play .logo-block, #screen-title.t2.play .t2-cont, #screen-title.t2.play .t2-mode, #screen-title.t2.play .t2-sub,
#screen-title.t2.play .main-menu button, #screen-title.t2.play .t2-info, #screen-title.t2.play .version, #screen-title.t2.play .winners-strip { opacity: 0; animation: none; }
#screen-title.t2.play.go .title-bg { animation: fade .9s ease forwards; }
#screen-title.t2.play.go .logo-block { animation: t2in .6s cubic-bezier(.2, .7, .2, 1) .1s forwards; }
#screen-title.t2.play.go .t2-cont { animation: t2in .55s cubic-bezier(.2, .7, .2, 1) .22s forwards; }
#screen-title.t2.play.go .t2-mode:nth-child(1) { animation: t2in .55s cubic-bezier(.2, .7, .2, 1) .32s forwards; }
#screen-title.t2.play.go .t2-mode:nth-child(2) { animation: t2in .55s cubic-bezier(.2, .7, .2, 1) .4s forwards; }
#screen-title.t2.play.go .t2-sub, #screen-title.t2.play.go .main-menu button { animation: t2in .55s cubic-bezier(.2, .7, .2, 1) .5s forwards; }
#screen-title.t2.play.go .t2-info, #screen-title.t2.play.go .version { animation: fade .6s ease .62s forwards; }
#screen-title.t2.play.go .winners-strip { animation: fade .8s ease .7s forwards; }
#screen-title.t2.play.go.instant .title-bg, #screen-title.t2.play.go.instant .logo-block, #screen-title.t2.play.go.instant .t2-cont, #screen-title.t2.play.go.instant .t2-mode, #screen-title.t2.play.go.instant .t2-sub,
#screen-title.t2.play.go.instant .main-menu button, #screen-title.t2.play.go.instant .t2-info, #screen-title.t2.play.go.instant .version, #screen-title.t2.play.go.instant .winners-strip { animation: none; opacity: 1; }
@keyframes t2in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #screen-title.t2.play.go * { animation-duration: .01s !important; animation-delay: 0s !important; } }
#screen-title.t2.play:not(.go) .ceremony-cap { visibility: hidden; }
/* 높이 정리: 왼쪽 열이 아래 우승팀 띠(HALL OF CHAMPIONS)에 가리지 않게 띠 높이만큼 비우고, 낮은 화면에서는 띠를 줄이거나 뺀다 */
#screen-title.t2 { --strip: 196px; }
#screen-title.t2 .title-layout { inset: 0 0 var(--strip) 0; padding-top: 20px; padding-bottom: 14px; }
#screen-title.t2 .winners-strip, #screen-title.t2 .winners-strip.has-photos { height: var(--strip); }
#screen-title.t2 .logo-main { font-size: clamp(48px, 5.4vw, 80px); }
#screen-title.t2 .logo-sub { margin-top: 6px; }
#screen-title.t2 .t2-cont { margin-top: 22px; }
#screen-title.t2 .t2-modes { margin-top: 12px; gap: 8px; }
#screen-title.t2 .t2-mode { padding: 12px 14px; gap: 8px; }
#screen-title.t2 .t2-mh b { font-size: 18px; }
#screen-title.t2 .t2-mb button { padding: 9px 12px; }
#screen-title.t2 .t2-sub { margin-top: 10px; }
#screen-title.t2 .t2-info { margin-top: 14px; }
#screen-title.t2 .version { margin-top: 6px; font-size: 11px; }
body.on-title .mu { bottom: calc(var(--footer-h, 34px) + var(--strip, 196px)); }
@media (max-height: 900px) { #screen-title.t2 { --strip: 124px; } #screen-title.t2 .win-card.photo { width: 220px; } #screen-title.t2 .winners-label { top: 6px; } #screen-title.t2 .winners-viewport { inset: 24px 0 10px 0; } }
@media (max-height: 720px) { #screen-title.t2 { --strip: 0px; } #screen-title.t2 .winners-strip { display: none; } }
@media (max-width: 900px) { #screen-title.t2 { --strip: 0px; } #screen-title.t2 .winners-strip { display: none; } #screen-title.t2 .title-layout { overflow-y: auto; } }
.t2-sub .t2-mini b { white-space: nowrap; }

/* 휴대폰 · 가로 화면 (0.6.0) */
@media (max-width: 900px), (max-height: 720px) { body.on-title .mu { bottom: calc(var(--footer-h, 34px) + 12px); } }
@media (max-height: 500px) and (orientation: landscape) {
  body.on-title .mu { left: auto; right: 12px; }
  #screen-title.t2 .title-layout { align-content: start; padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 520px) {
  #screen-title.t2 .title-layout { padding: 0 16px; }
  .t2-sub .t2-mini { min-width: 0; padding: 9px 10px; }
  .t2-sub .t2-mini b { font-size: 13px; gap: 4px; }
  .t2-sub .t2-mini b i, .t2-sub .t2-mini b em { font-size: 0; width: 7px; height: 7px; padding: 0; border-radius: 50%; display: inline-block; }
}
/* 지금 플레이 중 (js/presence.js) */
.t2-live { display: inline-flex; align-items: center; gap: 10px; } .t2-live[hidden] { display: none; }
.t2-live > span { display: inline-flex; align-items: center; gap: 5px; color: #9fe8bd; }
.t2-live b { color: #d9f7e5; font-weight: 700; }
.t2-live em { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: t2live 2s infinite; }
@keyframes t2live { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } }
