/* Title screen: drifting campus panorama, blocky title, grey bevelled buttons and a demolition-site
   theme (hazard tape, concrete, "공사 중" tags). All art, fonts and wording are our own (Galmuri: OFL). */
@font-face { font-family:'Galmuri14'; src:url(../vendor/Galmuri14.woff2) format('woff2'); font-display:block; }
/* The big BEAT THE SCHOOL logo keeps Galmuri11: at logo size Galmuri14's thin bars vanish under the banded gradient text. */
@font-face { font-family:'Galmuri11'; src:url(../vendor/Galmuri11.woff2) format('woff2'); font-display:block; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:#2b2b2b; }
.title { position:relative; height:100dvh; min-height:440px; overflow:hidden; container-type:size; font-family:'Galmuri14',system-ui,sans-serif; color:#fff; background:#7f9bb0; -webkit-font-smoothing:none; }
.title a { color:inherit; }
.pano { position:absolute; inset:-4%; background:url(../assets/ui/title-pano.jpg) 22% 50%/auto 108% repeat-x; filter:blur(1.6px) saturate(1.05); animation:pan 70s linear infinite alternate; transition:opacity 1.5s ease-in-out; }
.pano-next { background-image:none; opacity:0; }
@keyframes pan { from { background-position:22% 50%; } to { background-position:78% 50%; } }
.title::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:radial-gradient(ellipse at 50% 40%,#0000 30%,#0006 100%),linear-gradient(#0000 55%,#0005); }
.stack { position:relative; z-index:2; height:100%; display:flex; flex-direction:column; align-items:center; padding:calc(9cqh + env(safe-area-inset-top,0px)) 16px 0; }

.logo { position:relative; margin:0 0 5.5cqh; text-align:center; line-height:.95; font-weight:400; cursor:pointer; outline:none; user-select:none; }
.logo .word { display:block; font-family:'Galmuri11',system-ui,sans-serif; font-size:clamp(34px,9.6cqw,74px); letter-spacing:.02em;
  background:linear-gradient(#f2efe6 0 42%,#cfc8b6 42% 58%,#a89f8a 58%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(1px 0 0 #1d1b19) drop-shadow(-1px 0 0 #1d1b19) drop-shadow(0 -1px 0 #1d1b19) drop-shadow(0 .06em 0 #3a3530) drop-shadow(0 .05em 0 #26221f) drop-shadow(.05em .05em 0 #0008); }
.logo .word + .word { margin-top:.04em; }
.logo .sub-row { display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:2.2cqh; }
.logo .sub { display:inline-block; padding:.26em .68em; font-size:clamp(14px,3.6cqw,21px); color:#ffcf33; background:#141e33; border:2px solid #09101d; box-shadow:0 3px 0 #0008; }
.splash { display:inline-block; padding:.24em .62em; font-size:clamp(12px,3.1cqw,16px); color:#1c1c1c; background:#ffdf5d; border:2px solid #1c1c1c; box-shadow:0 3px 0 #0008; white-space:nowrap; transform:rotate(-3deg); animation:pulse 1.1s ease-in-out infinite alternate; }
.splash::after { content:attr(data-line); }
@keyframes pulse { from { scale:1; } to { scale:1.05; } }

.menu { display:flex; flex-direction:column; gap:10px; width:min(400px,88cqw); }
.pair { display:flex; gap:10px; }
.pair .btn { flex:1; }
.btn { display:flex; align-items:center; justify-content:center; gap:.5em; height:46px; padding:0 14px; font:inherit; font-size:clamp(14px,3.9cqw,17px); color:#fff3dc; text-decoration:none; cursor:pointer;
  background:linear-gradient(#263859,#18253e); border:2px solid #09101d; box-shadow:inset 0 2px 0 #ffffff24,0 3px 0 #0009; text-shadow:0 2px 0 #09101d; transition:transform .12s,background .12s,border-color .12s; }
.btn:hover, .btn:focus-visible { outline:none; border-color:#ffcf33; background:linear-gradient(#314873,#1f3050); transform:translateY(-1px); }
.btn:active { transform:translateY(2px); }
.btn.primary { height:52px; font-size:clamp(15px,4.2cqw,19px); color:#1c1c1c; text-shadow:none; background:linear-gradient(#ffda55,#e8b720); border-color:#1c1c1c; box-shadow:inset 0 2px 0 #fff9,0 4px 0 #000a; }
.btn.primary:hover, .btn.primary:focus-visible { border-color:#fff; background:linear-gradient(#ffe47a,#f2c42e); }
.btn.primary .count-pill { padding:2px 7px; font-size:clamp(11px,2.8cqw,12px); color:#ffdf6b; background:#1c1c1c; border:1px solid #1c1c1c; }
.btn.resume { border-color:#ffcf33aa; }
.btn.resume small { font-size:.95em; color:#ffdf6b; }
.btn[disabled] { cursor:default; background:#1a2232; color:#7c889e; text-shadow:none; border-color:#09101d; box-shadow:inset 0 2px 0 #ffffff0d; transform:none; }
.btn[hidden] { display:none; }

/* Demolition-site hazard tape across the title screen. */
.tapebar { position:absolute; left:-10%; right:-10%; height:20px; z-index:2; pointer-events:none; background:repeating-linear-gradient(-45deg,#ffcf33 0 16px,#1c1c1c 16px 32px); box-shadow:0 2px 0 #0006; }
.tapebar.t { top:calc(3.2cqh + env(safe-area-inset-top,0px)); transform:rotate(-3.5deg); }
.tapebar.b { bottom:calc(7.5cqh + env(safe-area-inset-bottom,0px)); transform:rotate(2.5deg); }
.corner { position:absolute; z-index:3; bottom:calc(8px + env(safe-area-inset-bottom,0px)); margin:0; font-size:11px; line-height:1.5; text-shadow:1px 1px 0 #000a; }
.corner.l { left:10px; } .corner.r { right:10px; text-align:right; }
.corner b { font-weight:400; }
.corner a { text-decoration:none; } .corner a:hover { text-decoration:underline; }
@container (max-width:560px) { .corner.l { bottom:auto; top:calc(10px + env(safe-area-inset-top,0px)); left:12px; opacity:.85; } .corner.r { left:10px; text-align:center; } }

.screen { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; padding-top:env(safe-area-inset-top,0px);
  background:#141e33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff0c'/%3E%3C/svg%3E"); }
.screen[hidden] { display:none; }
.screen h2 { margin:0; padding:16px 0 12px; text-align:center; font-size:clamp(15px,4cqw,19px); font-weight:400; color:#1c1c1c; background:repeating-linear-gradient(-45deg,#ffcf33 0 18px,#f0c12e 18px 36px); border-bottom:3px solid #1c1c1c; }
.foot2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; width:min(560px,94cqw); margin:10px auto calc(14px + env(safe-area-inset-bottom,0px)); }
.foot2.one { grid-template-columns:1fr; width:min(400px,88cqw); }
.foot2 .btn { height:42px; }
.options { flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px; background:#09101dcc; border-top:2px solid #09101d; border-bottom:2px solid #09101d; }
.options .btn { width:min(400px,88cqw); }
.hint { margin:4px 0 0; font-size:12px; color:#a9b8d1; }

@container (max-height:520px) { .stack { padding-top:6cqh; } .logo { margin-bottom:4cqh; } .menu .btn { height:40px; } .menu .btn.primary { height:44px; } }
@media (prefers-reduced-motion:reduce) { .pano, .splash { animation:none; } }
/* Sound on/off (top right), unified navy steel style. */
.sound-toggle { position:absolute; z-index:3; top:calc(10px + env(safe-area-inset-top,0px)); right:10px; display:grid; place-items:center; width:42px; height:42px; padding:0; cursor:pointer; color:#fff3dc;
  background:linear-gradient(#263859,#18253e); border:2px solid #09101d; box-shadow:inset 0 2px 0 #ffffff24,0 3px 0 #0009; }
.sound-toggle:hover, .sound-toggle:focus-visible { outline:none; border-color:#ffcf33; background:linear-gradient(#314873,#1f3050); }
.sound-toggle svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 0 #09101d); }
.sound-toggle .mute { display:none; }
.sound-toggle[aria-pressed="false"] .wave { display:none; }
.sound-toggle[aria-pressed="false"] .mute { display:inline; }

/* Campus select (시안 B + 검색/정렬 툴바, 10-19): metal nameplate cards on the construction hoarding (hoarding.css) with school
   name and campus badge separated for clear legibility, search (Korean chosung supported) & sort controls in the top bar, and
   full yellow safety-plate inversion on selection. Entering glides the sky, crane and tape to the loading layout and hands off. */
#select { --sky:92px; isolation:isolate; overflow:hidden; padding:var(--sky) 0 0; background:#0d1524; color:#fff3dc; }
#select:not(.going) .ld-sky { height:var(--sky); }
#select:not(.going) .ld-wall { top:var(--sky); }
#select:not(.going) .ld-wall::before { bottom:calc(38px + env(safe-area-inset-bottom,0px)); height:22px; }
#select:not(.going) .ld-crane { top:6px; transform:scale(.74); }
#select:not(.going) .ld-dust { display:none; }
#select .ld-sky { transition:height .4s cubic-bezier(.3,.7,.3,1); }
#select .ld-wall { transition:top .4s cubic-bezier(.3,.7,.3,1); }
#select .ld-wall::before { transition:bottom .4s cubic-bezier(.3,.7,.3,1),opacity .3s; }
#select .ld-crane { transition:right .4s,top .4s,transform .4s,opacity .3s; }
#select .ld-stn { display:inline-block; }
#select .hd-bar { position:relative; z-index:1; flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; max-width:940px; margin:0 auto; padding:8px 24px 4px; }
#select .hd-bar > h2 { margin:0; padding:0; text-align:left; font-size:23px; font-weight:400; line-height:1; letter-spacing:.05em; color:#fff3dc; text-shadow:0 2px 0 #0a101c,0 0 8px #fff3dc26; background:none; border:0; white-space:nowrap; }
#select .tools { display:flex; align-items:center; gap:8px; flex:1; justify-content:flex-end; min-width:0; }
#select .search-wrap { position:relative; flex:0 1 250px; min-width:140px; }
#select .search-wrap > svg { position:absolute; left:9px; top:50%; transform:translateY(-50%); width:14px; height:14px; fill:none; stroke:#8ea3c4; stroke-width:1.8; stroke-linecap:round; pointer-events:none; }
#select .search-in { width:100%; height:32px; padding:0 26px 0 28px; font:inherit; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#fff3dc; background:#0d1626; border:2px solid #09101d; box-shadow:inset 0 2px 0 #0006,0 1px 0 #ffffff1a; outline:none; }
#select .search-in::placeholder { color:#7f90ad; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#select .search-in:focus { border-color:#ffcf33; }
#select .search-in::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
#select .search-clear { position:absolute; right:5px; top:50%; transform:translateY(-50%); width:20px; height:20px; padding:0; border:0; background:none; color:#9ab0d1; font:inherit; font-size:15px; line-height:1; cursor:pointer; }
#select .search-clear:hover { color:#fff; }
#select .search-clear[hidden] { display:none; }
#select .sorts { display:inline-flex; gap:4px; flex:none; }
#select .sort-btn { height:32px; padding:0 9px; font:inherit; font-size:12px; color:#b8c7df; background:#16243d; border:2px solid #09101d; box-shadow:inset 0 1px 0 #ffffff1a; cursor:pointer; white-space:nowrap; }
#select .sort-btn:hover { color:#fff3dc; background:#1f3254; }
#select .sort-btn[aria-pressed="true"] { color:#1c1c1c; background:#ffcf33; border-color:#1c1c1c; font-weight:700; box-shadow:inset 0 1px 0 #fff8; }
#select .sort-btn:focus-visible { outline:2px solid #fff; outline-offset:2px; }
/* School level tabs (시안 B): one segmented strip under the search, same steel/yellow as the sort buttons; '전체' marks the
   high-school block with a hazard-tape section line. Hidden while no high school is registered. */
#select .lv-tabs { position:relative; z-index:1; flex:none; display:flex; width:calc(100% - 48px); max-width:892px; margin:6px auto 0; border:2px solid #09101d; box-shadow:0 2px 0 #0007; }
#select .lv-tabs[hidden] { display:none; }
#select .lv-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; height:34px; padding:0 8px; font:inherit; font-size:13px; color:#b8c7df; background:#16243d; border:0; border-right:2px solid #09101d; box-shadow:inset 0 1px 0 #ffffff1a; cursor:pointer; white-space:nowrap; }
#select .lv-btn:last-child { border-right:0; }
#select .lv-btn[hidden] { display:none; }
#select .lv-btn:nth-last-child(2):has(+ .lv-btn[hidden]) { border-right:0; }
#select .lv-btn small { font-size:11px; opacity:.75; }
#select .lv-btn:hover { color:#fff3dc; background:#1f3254; }
#select .lv-btn[aria-pressed="true"] { color:#1c1c1c; background:#ffcf33; font-weight:700; box-shadow:inset 0 1px 0 #fff8; }
#select .lv-btn:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
#select .lv-sec { grid-column:1 / -1; display:flex; align-items:center; gap:8px; margin:8px 2px 1px; font-size:13px; color:#ffdf6b; text-shadow:0 2px 0 #09101d; }
#select .lv-sec::after { content:""; flex:1; height:2px; background:repeating-linear-gradient(90deg,#ffcf33 0 8px,#1c1c1c 8px 16px); opacity:.8; }
#select .scroller { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#4b679b #0000; }
#select .rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 14px; width:100%; max-width:940px; margin:6px auto auto; padding:2px 24px 8px; }
#select .empty-msg { grid-column:1 / -1; margin:28px 0; text-align:center; font-size:15px; color:#a9b8d1; }
#select .row { position:relative; isolation:isolate; display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:12px; align-items:center; padding:6px 14px 6px 8px;
  border:2px solid #09101d; background:linear-gradient(#1b2b48,#132038); color:#fff3dc; font:inherit; text-align:left; cursor:pointer;
  box-shadow:inset 0 1px 0 #ffffff1f,0 3px 0 #0008; transition:transform .14s,background .14s,border-color .14s; -webkit-tap-highlight-color:transparent; }
#select .po { position:relative; z-index:1; width:56px; height:56px; }
#select .po img { display:block; width:100%; height:100%; object-fit:cover; border:2px solid #0a101c; box-shadow:0 0 0 1px #ffffff2e; background:#646f7c; }
#select .tx { display:flex; flex-direction:column; gap:5px; min-width:0; }
#select .top { display:flex; align-items:center; gap:7px; min-width:0; }
#select .nm { font-size:20px; line-height:1.1; color:#fff; text-shadow:0 2px 0 #09101d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#select .cp-tag { flex:none; padding:2px 6px; font-size:12px; line-height:1.1; color:#ffdf6b; background:#0d172a; border:1px solid #38527d; white-space:nowrap; }
#select .ds { font-size:12px; line-height:1.25; color:#a9b8d1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#select .cnt { padding:4px 9px; font-size:13px; color:#dbe5f7; background:#0d1626; border:1px solid #31476e; white-space:nowrap; }
@media (hover:hover) {
  #select button.row:not([aria-pressed="true"]):hover { transform:translateY(-1px); border-color:#ffcf3388; background:linear-gradient(#223559,#172744); }
}
#select .row[aria-pressed="true"] { background:linear-gradient(#ffda55,#f0be22); border-color:#1c1c1c; color:#1c1c1c; box-shadow:inset 0 2px 0 #fff8,0 4px 0 #000a; transform:translateY(-1px); }
#select .row[aria-pressed="true"] .po img { border-color:#1c1c1c; box-shadow:none; }
#select .row[aria-pressed="true"] .nm { color:#1c1c1c; text-shadow:none; }
#select .row[aria-pressed="true"] .cp-tag { color:#fff3dc; background:#1c1c1c; border-color:#1c1c1c; }
#select .row[aria-pressed="true"] .ds { color:#3b2f0c; }
#select .row[aria-pressed="true"] .cnt { color:#1c1c1c; background:#fff3dc; border-color:#1c1c1c; font-weight:700; }
#select .row:focus-visible { outline:3px solid #fff; outline-offset:2px; }
/* Registered but not ready: photo taped over with an X, name dimmed, a small 공사 중 tag (not selectable). */
#select .row.soon { cursor:default; opacity:.75; }
#select .soon .po img { filter:grayscale(1) brightness(.6); }
#select .soon .nm, #select .soon .cp-tag { opacity:.55; }
#select .soon .ds { color:#7f8aa0; }
#select .soon .tag { display:inline-block; padding:2px 6px; font-size:12px; font-weight:400; color:#1c1c1c; background:#ffcf33; box-shadow:0 0 0 2px #1c1c1c; }
#select .soon .tape, #select .soon .tape::after { position:absolute; z-index:2; left:4px; top:50%; width:64px; height:12px; margin-top:-6px; pointer-events:none;
  background:repeating-linear-gradient(-45deg,#ffcf33 0 8px,#1c1c1c 8px 16px); box-shadow:0 2px 0 #0008; }
#select .soon .tape { transform:rotate(-26deg); }
#select .soon .tape::after { content:""; left:0; top:0; width:100%; margin:0; transform:rotate(52deg); }
#select .ft { flex:none; display:grid; grid-template-columns:1fr 1fr; gap:10px; width:min(520px,calc(100% - 32px)); margin:4px auto calc(18px + env(safe-area-inset-bottom,0px)); }
#select .sb { height:44px; font:inherit; font-size:17px; color:#fff; cursor:pointer; border:2px solid #0a101c; background:linear-gradient(#3b4f78,#273856); box-shadow:inset 0 2px 0 #ffffff26,0 3px 0 #000a; transition:transform .12s; }
#select .sb.go { color:#1c1c1c; background:linear-gradient(#ffd84d,#e8b820); box-shadow:inset 0 2px 0 #fff6,0 3px 0 #000a; }
#select .sb.go:disabled { cursor:default; color:#6d7890; background:#1f2838; box-shadow:inset 0 2px 0 #ffffff0d; }
#select .sb:not(:disabled):hover { transform:translateY(-1px); }
#select .sb:not(:disabled):active { transform:translateY(2px); }
#select .sb:focus-visible { outline:3px solid #fff; outline-offset:3px; }
/* Enter: same geometry as .loading-overlay in style.css (padding, gap, 66/44 px title, empty message line). */
#select .hd-bar, #select .lv-tabs, #select .scroller, #select .ft { transition:opacity .25s,transform .25s; }
#select.going .hd-bar, #select.going .lv-tabs, #select.going .scroller, #select.going .ft { opacity:0; transform:translateY(10px); pointer-events:none; }
#select .enter { --p:0; position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:24vh 16px 13vh; padding:24dvh 16px 13dvh; color:#fff; opacity:0; pointer-events:none; }
#select.going .enter { opacity:1; transition:opacity .3s .15s; }
#select .enter .ld-stn { margin:0; font-size:66px; font-weight:400; }
#select .enter p { margin:2px 0 0; height:22.4px; }
@container (max-width:560px) {
  #select { --sky:68px; }
  #select:not(.going) .ld-crane { right:-36%; top:0; transform:scale(.44); }
  #select:not(.going) .ld-wall::before { bottom:calc(32px + env(safe-area-inset-bottom,0px)); height:20px; }
  #select .hd-bar { flex-direction:column; align-items:stretch; gap:6px; padding:8px 12px 4px; }
  #select .hd-bar > h2 { text-align:center; font-size:20px; }
  #select .tools { flex-wrap:nowrap; gap:6px; }
  #select .search-wrap { flex:1 1 auto; min-width:0; }
  #select .search-wrap > svg { left:7px; width:13px; height:13px; }
  #select .search-in { height:30px; font-size:12px; padding:0 22px 0 24px; }
  #select .sort-btn { height:30px; padding:0 7px; font-size:11px; }
  #select .rows { grid-template-columns:1fr; gap:7px; padding:4px 12px 12px; }
  #select .lv-tabs { width:calc(100% - 24px); margin-top:4px; }
  #select .lv-btn { height:32px; font-size:12px; }
  #select .row { grid-template-columns:52px minmax(0,1fr) auto; gap:11px; padding:6px 11px 6px 7px; }
  #select .po { width:52px; height:52px; }
  #select .nm { font-size:18px; }
  #select .cp-tag { padding:1px 5px; font-size:11px; }
  #select .ds { font-size:12px; }
  #select .cnt { padding:3px 7px; font-size:12px; }
  #select .soon .tape { left:2px; width:58px; }
  #select .ft { width:calc(100% - 24px); margin-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
  #select .sb { height:44px; font-size:16px; }
  #select .enter { gap:14px; padding:17vh 16px 11vh; padding:17dvh 16px 11dvh; }
  #select .enter .ld-stn { font-size:44px; }
}
@container (max-height:520px) {
  #select { --sky:44px; }
  #select:not(.going) .ld-crane { opacity:0; }
  #select .hd-bar { padding:6px 16px 2px; }
  #select .hd-bar > h2 { font-size:19px; }
  #select .ft { margin:4px auto calc(12px + env(safe-area-inset-bottom,0px)); }
  #select .sb { height:40px; }
}
@media (prefers-reduced-motion:reduce) { #select *, #select *::before, #select *::after { animation:none !important; transition:none !important; } }

/* Credits share the title screen and its music; the source document remains directly accessible. */
.credits-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; width:min(760px,100%); margin:0 auto; padding:12px 24px 24px; font:15px/1.85 system-ui,sans-serif; color:#eceef1; }
.credits-content h2 { margin:24px 0 10px; padding:0 0 8px; font:17px/1.5 'Galmuri14',sans-serif; text-align:left; color:#ffdf6b; background:none; border-bottom:1px solid #50607a; }
.credits-content a { color:#ffdf6b; text-underline-offset:3px; }
.credits-content a:focus-visible { outline:2px solid #ffcf33; outline-offset:3px; }
#title-music-choice { height:auto; min-height:46px; padding:10px 12px; line-height:1.5; text-align:center; }
@media (prefers-reduced-motion:reduce) { .pano { transition:none; } }

/* 제작 정보: the credits page itself in a frame (keeps its own look; title music keeps playing). */
#credits { padding-top:0; background:#141619; }
#credits .credits-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.credits-frame { flex:1; width:100%; height:100%; border:0; display:block; background:#141619; }

@media (max-width:1023px) {
/* User 10-24, 시안 C: Galmuri14, readable small labels and an uncut loading hand-off. */
.title { font-synthesis:none; }
.btn { font-size:17px; }
.btn.primary { font-size:18px; }
.btn.primary .count-pill, #select .ds, #select .cnt, #select .cp-tag,
#select .search-in, #select .sort-btn, #select .lv-btn, #select .lv-btn small, .hint { font-size:14px; line-height:1.45; }
#select .nm { font-size:20px; line-height:1.3; white-space:normal; overflow-wrap:anywhere; }
#select .ds { white-space:normal; overflow-wrap:anywhere; color:#d7dce6; }
#select .ld-stn { font-family:'Galmuri14',system-ui,sans-serif; font-weight:400; letter-spacing:.02em; -webkit-mask:none; mask:none; text-shadow:0 2px #09101d; }
#select .enter .ld-stn { max-width:100%; overflow-wrap:anywhere; text-align:center; }
@container (max-width:560px) {
  #select .sort-btn { padding:0 6px; }
  #select .enter .ld-stn { font-size:clamp(28px,10cqw,44px); }
}

}

/* Address-only font comparison. C keeps all existing declarations above. */
@font-face { font-family:'Galmuri11 Bold'; src:url(../vendor/Galmuri11-Bold.woff2) format('woff2'); font-weight:700; font-display:block; }
@font-face { font-family:'Pretendard Preview'; src:url(../vendor/Pretendard-SemiBold.woff2) format('woff2'); font-weight:600; font-display:swap; }
html:is(.font-a,.font-b,.font-b2) { --sign-font:'Galmuri11 Bold',system-ui,sans-serif; --ui-font:var(--sign-font); --ui-weight:700; }
html.font-b { --ui-font:system-ui,-apple-system,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif; --ui-weight:600; }
html.font-b2 { --ui-font:'Pretendard Preview',system-ui,-apple-system,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif; --ui-weight:600; }
html:is(.font-a,.font-b,.font-b2) .title { font-family:var(--ui-font); font-weight:var(--ui-weight); -webkit-font-smoothing:auto; }
html:is(.font-a,.font-b,.font-b2) .title :where(*) { font-weight:var(--ui-weight); }
html:is(.font-a,.font-b,.font-b2) .title :is(.logo .word,.logo .sub,.screen h2,.ld-stn) { font-family:var(--sign-font); font-weight:700; }
html:is(.font-a,.font-b,.font-b2) #select .ld-stn { line-height:1.25; }
html:is(.font-a,.font-b,.font-b2) :is(.splash,.corner,#select .soon .tag,#select .lv-sec) { font-size:14px; }
html:is(.font-a,.font-b,.font-b2) #select .top { flex-wrap:wrap; row-gap:3px; }
html:is(.font-a,.font-b,.font-b2) #select .nm { overflow:visible; text-overflow:clip; }
html:is(.font-a,.font-b,.font-b2) .btn { line-height:1.45; height:auto; min-height:46px; padding-top:8px; padding-bottom:8px; }
html:is(.font-a,.font-b,.font-b2) .btn.primary { min-height:52px; }
html:is(.font-b,.font-b2) .title :is(.btn,#select .nm,#select .sb) { font-weight:600; text-shadow:none; }
html.font-a .title { text-shadow:1px 2px 0 #09101d; }
html.font-a :is(.btn,#select .nm,#select .ld-stn) { text-shadow:1px 2px 0 #09101d; }
html.font-a :is(.logo .word,.splash,.screen h2,.btn.primary,#select .row[aria-pressed=true],#select .row[aria-pressed=true] .nm,#select .row[aria-pressed=true] .cnt,#select .soon .tag) { text-shadow:none; }
@container (max-width:560px) {
  html:is(.font-a,.font-b,.font-b2) #select .tools { flex-wrap:wrap; }
  html:is(.font-a,.font-b,.font-b2) #select .search-wrap { flex-basis:100%; }
  html:is(.font-a,.font-b,.font-b2) #select .sorts { margin-left:auto; }
  html:is(.font-a,.font-b,.font-b2) .corner.r { font-size:14px; }
}
/* Keep Korean words intact in the narrower bold-pixel rows. */
html:is(.font-a,.font-b,.font-b2) #select .ds { word-break:keep-all; overflow-wrap:anywhere; }
html:is(.font-a,.font-b,.font-b2) .tapebar.b { bottom:calc(11cqh + env(safe-area-inset-bottom,0px)); }

/* PC pixel grid: outline steps are 100/1200 em (Galmuri11) and 100/1500 em
   (Galmuri14). The CSS grids are 12px / 15px, not the glyph-height names 11 / 14.
   Keep phone styles unchanged; fixed steps avoid resampling during desktop resize. */
@media (min-width:1024px) {
  html:where(.font-a,.font-b,.font-b2) { --pc-small:15px; --pc-body:15px; --pc-sign:30px; --pc-loading:60px; }
  html:where(.font-a,.font-b,.font-b2).font-a { --pc-small:12px; --pc-body:24px; --pc-sign:24px; --pc-loading:60px; }
  html:where(.font-a,.font-b,.font-b2):is(.font-b,.font-b2) { --pc-small:14px; --pc-body:16px; --pc-sign:24px; --pc-loading:60px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .title { font-size:var(--pc-body); line-height:24px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .title :where(*) { letter-spacing:0; }
  html:where(.font-a,.font-b,.font-b2):not(.font-b):not(.font-b2) .title { -webkit-font-smoothing:none; -moz-osx-font-smoothing:grayscale; }
  :where(html:is(.font-a,.font-b,.font-b2)) .stack { padding-top:64px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo { margin-bottom:40px; line-height:72px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .word { font-size:72px; line-height:72px; letter-spacing:0; filter:drop-shadow(1px 0 0 #1d1b19) drop-shadow(-1px 0 0 #1d1b19) drop-shadow(0 -1px 0 #1d1b19) drop-shadow(0 4px 0 #3a3530) drop-shadow(3px 3px 0 #0008); text-shadow:none; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .word + .word { margin-top:4px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .sub-row { margin-top:20px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .sub { font-size:var(--pc-sign); line-height:36px; padding:4px 16px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .splash { font-size:var(--pc-small); line-height:24px; padding:4px 10px; transform:none; animation:none; }
  :where(html:is(.font-a,.font-b,.font-b2)) .btn, :where(html:is(.font-a,.font-b,.font-b2)) .btn.primary { font-size:var(--pc-body); line-height:32px; gap:8px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .btn.primary .count-pill, :where(html:is(.font-a,.font-b,.font-b2)) .btn.resume small, :where(html:is(.font-a,.font-b,.font-b2)) .hint, :where(html:is(.font-a,.font-b,.font-b2)) .corner { font-size:var(--pc-small); line-height:24px; }
  html:where(.font-a,.font-b,.font-b2):is(.font-a,.font-b,.font-b2) :is(.splash,.corner,#select .soon .tag,#select .lv-sec) { font-size:var(--pc-small); }
  html:where(.font-a,.font-b,.font-b2):is(.font-a,.font-b,.font-b2) .btn { line-height:32px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .screen h2, :where(html:is(.font-a,.font-b,.font-b2)) #select .hd-bar > h2 { font-size:var(--pc-sign); line-height:36px; letter-spacing:0; text-shadow:0 2px 0 #09101d; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .top { flex-wrap:wrap; row-gap:4px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .nm { font-size:var(--pc-sign); line-height:36px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select :is(.ds,.cnt,.cp-tag,.search-in,.sort-btn,.lv-btn,.lv-btn small,.lv-sec,.empty-msg,.soon .tag) { font-size:var(--pc-small); line-height:24px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .tx { gap:4px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .cnt { padding:4px 8px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .cp-tag { padding:2px 6px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .sb { font-size:var(--pc-body); line-height:32px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .search-clear { font-size:var(--pc-small); }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .enter { padding:120px 16px 40px; gap:16px; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .enter .ld-stn { font-size:var(--pc-loading); line-height:72px; letter-spacing:0; }
  :where(html:is(.font-a,.font-b,.font-b2)) #select .enter p { height:24px; line-height:24px; }
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .word, :where(html:is(.font-a,.font-b,.font-b2)) .logo .sub, :where(html:is(.font-a,.font-b,.font-b2)) .screen h2, :where(html:is(.font-a,.font-b,.font-b2)) #select .ld-stn { -webkit-font-smoothing:none; -moz-osx-font-smoothing:grayscale; }
  /* No interpolated translations on text; hover still has border/background feedback. */
  :where(html:is(.font-a,.font-b,.font-b2)) .btn, :where(html:is(.font-a,.font-b,.font-b2)) #select .row, :where(html:is(.font-a,.font-b,.font-b2)) #select .sb { transition:background .12s,border-color .12s; }
  html:where(.font-a,.font-b,.font-b2).font-a .title { text-shadow:0 2px 0 #09101d; }
  html:where(.font-a,.font-b,.font-b2).font-a :is(.btn,#select .nm,#select .ld-stn) { text-shadow:0 2px 0 #09101d; }
}
@media (min-width:1600px) {
  :where(html:is(.font-a,.font-b,.font-b2)) .logo .word { font-size:84px; line-height:84px; }
}

@media (max-width:1023px) {
/* User 10-24: default keeps Galmuri14 for everything, but the signage (logo, screen titles, loading station name) uses theme B's Galmuri11 Bold. */
html:not(.font-a):not(.font-b):not(.font-b2) .title :is(.logo .word,.logo .sub,.screen h2,.ld-stn) { font-family:'Galmuri11 Bold',system-ui,sans-serif; font-weight:700; }
html:not(.font-a):not(.font-b):not(.font-b2) #select .ld-stn { line-height:1.25; }
}

/* PC default restores the pre-font-work typography (67c37cc6); phone and previews stay separate. */
@media (min-width:1024px) {
  html:not(.font-a):not(.font-b):not(.font-b2) .title { font-family:'Galmuri11',system-ui,sans-serif; }
  html:not(.font-a):not(.font-b):not(.font-b2) #title-music-choice { line-height:normal; }
}
/* 원조 line under the title menu (user 10-26 시안 A) */
.origin { margin:14px 0 0; font-size:clamp(12px,3.4cqw,14px); line-height:1.4; text-align:center; color:#fff3dc; text-shadow:0 2px 0 #09101d; letter-spacing:.02em; }
.origin a { display:inline-block; padding:4px 10px; background:#09101dbf; text-decoration:none; }
.origin a:hover, .origin a:focus-visible { outline:none; text-decoration:underline; text-underline-offset:3px; }
.origin b { font-weight:400; color:#ffcf33; }
/* The stencilled name handed to the loading page must match it exactly (user 10-26: the name changed font and jumped on tap):
   phones draw the loading title in Galmuri11 Bold (style.css, default theme), and the overlay sits on the viewport like the loading page. */
@media (max-width:1023px) { html:not(.font-a):not(.font-b):not(.font-b2) #select .enter .ld-stn { font-family:'Galmuri11 Bold',system-ui,sans-serif; font-weight:700; } }
@media (max-width:560px) { #select .enter .ld-stn[data-long] { font-size:clamp(22px,8vw,40px); word-break:keep-all; } }
/* 10-30: 초등학교 탭이 생겨 탭이 5개 — 좁은 폰에서 한 줄에 들어가게 칸 여백·글자를 줄임 */
@media (max-width:440px) {
  #select .lv-tabs .lv-btn { min-width:0; padding:0 2px; gap:2px; font-size:12px; letter-spacing:-.02em; }
  #select .lv-tabs .lv-btn small { font-size:10px; }
}
