:root {
  --ink: #0e1320; --ink2: #171d2e; --line: rgba(255, 255, 255, .14);
  --txt: #f4f6fb; --sub: #aab3c8; --yel: #ffd23a; --red: #ff3b47; --r1: 10px; --r2: 16px;
  --disp: "Black Han Sans", "Pretendard", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--txt); font-family: Pretendard, system-ui, sans-serif; word-break: keep-all; overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; margin: 0 2px; border: 1px solid rgba(255,255,255,.35); border-bottom-width: 3px; border-radius: 6px; font: 600 12px/1.4 Pretendard, sans-serif; text-align: center; color: #fff; background: rgba(0,0,0,.25); }

.scr { position: fixed; inset: 0; display: none; z-index: 5; }
.scr.on { display: flex; }
.btn { border: 0; border-radius: var(--r1); padding: 13px 22px; font-weight: 700; font-size: 16px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid var(--line); transition: background .15s, transform .1s; }
.btn:hover { background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--yel); color: #1a1405; border-color: transparent; }
.btn.primary:hover { background: #ffdf66; }
.btn:disabled { opacity: .45; cursor: default; }
.chip { border: 1px solid var(--line); background: rgba(10,14,24,.55); color: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); }

/* 첫 화면 */
#scr-title { align-items: flex-end; }
.title-art { position: absolute; inset: 0; background: #1a2238 url(/kart/tex/keyart.webp) center 40% / cover no-repeat; animation: slowzoom 28s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
#scr-title::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,11,20,.1) 0%, rgba(8,11,20,.15) 38%, rgba(8,11,20,.88) 72%, rgba(8,11,20,.97) 100%); }
.title-in { position: relative; z-index: 2; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
.logo { font-family: var(--disp); line-height: .9; transform: skewX(-8deg); }
.logo span { display: block; font-size: clamp(30px, 6vw, 56px); color: #fff; letter-spacing: .02em; text-shadow: 0 3px 0 #b8261f, 0 6px 18px rgba(0,0,0,.5); }
.logo b { display: block; font-weight: 400; font-size: clamp(64px, 14vw, 132px); color: var(--yel); text-shadow: 0 5px 0 #c2410c, 0 10px 30px rgba(0,0,0,.55); letter-spacing: .01em; }
.logo small { display: inline-block; margin-top: 8px; font-family: Pretendard, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .3em; color: #fff; background: var(--red); padding: 4px 10px; transform: skewX(8deg); }
.lead { margin: 16px 0 20px; font-size: 16px; line-height: 1.6; color: #dfe4ef; }
.menu { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.big { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px 24px; min-width: 220px; font-size: 20px; }
.btn.big b { font-weight: 800; }
.btn.big small { font-size: 13px; font-weight: 500; opacity: .75; }
.how { margin-top: 20px; font-size: 13px; color: var(--sub); display: flex; flex-direction: column; gap: 8px; }
.how-keyboard { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.how-keyboard > span { display: inline-flex; align-items: center; gap: 4px; }
.how-action { display: inline-flex; align-items: center; gap: 3px; }
.how-space { width: 66px; height: 24px; object-fit: contain; vertical-align: middle; }
.how-drift, .how-item { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.how-touch { display: none; }
.corner { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 패널 화면 공통 */
.panel-scr { flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, #1e2742 0%, var(--ink) 60%); }
.bar { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 20px 12px; }
.bar h2 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 26px; letter-spacing: .02em; }
.bar .step { margin-left: auto; font-size: 13px; color: var(--sub); font-weight: 600; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); font-size: 24px; line-height: 1; }
.foot { margin-top: auto; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8,11,20,.6); justify-content: flex-end; }
.foot .hint { margin-right: auto; color: var(--sub); font-size: 14px; }

/* 캐릭터 */
.sel-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 38%) 1fr; gap: 18px; padding: 4px 20px 16px; }
.sel-hero { position: relative; border-radius: var(--r2); overflow: hidden; background: var(--hc, #333); display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.sel-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(255,255,255,.07) 0 18px, transparent 18px 44px), linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.35)); }
.hero-img { position: absolute; inset: 0 0 118px; display: flex; align-items: flex-end; justify-content: center; }
.hero-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); animation: heroin .35s ease-out; }
@keyframes heroin { from { transform: translateY(14px) scale(.96); opacity: .3; } }
.hero-info { position: relative; background: rgba(8,11,20,.78); padding: 14px 16px 16px; }
.hero-info small { color: var(--yel); font-weight: 700; font-size: 13px; }
.hero-info h3 { margin: 2px 0 10px; font-family: var(--disp); font-weight: 400; font-size: 30px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--sub); }
.stats .b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.stats .b i { display: block; height: 100%; background: var(--yel); border-radius: 4px; transition: width .25s; }
.sel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-content: start; overflow-y: auto; }
.cc { position: relative; aspect-ratio: 3/3.6; border-radius: var(--r1); border: 2px solid transparent; background: var(--cc); overflow: hidden; padding: 0; }
.cc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(0,0,0,.25)); }
.cc img { position: absolute; left: 50%; top: 2px; width: 104%; transform: translateX(-50%); }
.cc span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 2px; font-size: 12px; font-weight: 700; background: rgba(8,11,20,.72); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc.on { border-color: #fff; box-shadow: 0 0 0 3px var(--yel); }
.cc.taken::after { content: "선택됨"; position: absolute; top: 4px; right: 4px; font-size: 10px; background: rgba(0,0,0,.6); padding: 2px 5px; border-radius: 4px; }
.nick { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 14px; color: var(--sub); }
input { font: inherit; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: var(--r1); padding: 11px 14px; font-size: 16px; outline: none; }
input:focus { border-color: var(--yel); }
#nick { width: 170px; }

/* 코스 */
.track-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 20px; align-content: start; }
.tc { position: relative; border-radius: var(--r2); overflow: hidden; border: 2px solid transparent; background: #222 center / cover no-repeat; aspect-ratio: 16/10; text-align: left; padding: 0; }
.tc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6,9,16,.85)); }
.tc .tt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.tc b { display: block; font-family: var(--disp); font-weight: 400; font-size: 24px; }
.tc small { color: #d5dbea; font-size: 13px; }
.tc canvas { position: absolute; top: 12px; right: 12px; z-index: 1; width: 96px; height: 96px; padding: 5px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(8,12,22,.72); box-shadow: 0 4px 18px rgba(0,0,0,.28); }
.tc.on { border-color: var(--yel); box-shadow: 0 0 0 3px rgba(255,210,58,.35); }
.diff { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--sub); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 9px 16px; font-weight: 700; color: var(--sub); }
.seg button.on { background: var(--yel); color: #1a1405; }
.seg.col { display: flex; flex-direction: column; }
.seg.col button { text-align: left; border-bottom: 1px solid var(--line); }

/* 온라인 */
.online-box { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 20px; align-content: start; max-width: 860px; width: 100%; margin: 0 auto; }
.ob { border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; background: rgba(255,255,255,.04); }
.ob h3 { margin: 0 0 6px; font-size: 20px; }
.ob p { margin: 0 0 16px; color: var(--sub); font-size: 14px; line-height: 1.55; }
.join { display: flex; gap: 8px; }
#joinCode { width: 130px; text-transform: uppercase; letter-spacing: .3em; font-weight: 800; font-size: 20px; text-align: center; }
.err { grid-column: 1/-1; color: #ff8a8a; min-height: 20px; margin: 0; font-weight: 600; }
.room { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 20px; }
.room-code { display: flex; align-items: center; gap: 14px; }
.room-code small { color: var(--sub); font-weight: 600; }
.room-code b { font-family: var(--disp); font-weight: 400; font-size: 44px; letter-spacing: .12em; color: var(--yel); }
.room-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 260px; gap: 16px; }
.players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: start; overflow-y: auto; }
.pl { position: relative; border-radius: var(--r1); background: var(--cc); aspect-ratio: 3/3.4; overflow: hidden; }
.pl img { position: absolute; left: 50%; top: 2px; width: 104%; transform: translateX(-50%); }
.pl span { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; text-align: center; font-weight: 700; font-size: 13px; background: rgba(8,11,20,.75); }
.pl em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--yel); color: #1a1405; padding: 2px 6px; border-radius: 4px; }
.pl.me span { color: var(--yel); }
.pl.empty { background: rgba(255,255,255,.04); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; }
.room-side { display: flex; flex-direction: column; gap: 12px; }
.room-side h4 { margin: 0; font-size: 14px; color: var(--sub); }
.tog { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--sub); }
.wait { color: var(--sub); font-size: 13px; margin: 0; }

/* 결과 */
.results { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 6px 20px 16px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.pod { flex: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center; }
.pod img { width: 100%; margin-bottom: -6px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.pod .st { width: 100%; border-radius: 10px 10px 0 0; text-align: center; padding-top: 10px; font-family: var(--disp); font-size: 38px; color: #1a1405; }
.pod.p1 .st { height: 150px; background: linear-gradient(#ffe27a, #f1b400); }
.pod.p2 .st { height: 110px; background: linear-gradient(#eef1f6, #aeb6c4); }
.pod.p3 .st { height: 80px; background: linear-gradient(#f3b98a, #c77a3e); }
.pod .nm { font-weight: 700; margin-top: 6px; font-size: 14px; }
.res-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.res-list li { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--r1); background: rgba(255,255,255,.05); border: 1px solid transparent; }
.res-list li.me { border-color: var(--yel); background: rgba(255,210,58,.12); }
.res-list .rk { font-family: var(--disp); font-size: 22px; text-align: center; }
.res-list .av { width: 40px; height: 40px; border-radius: 8px; background-position: center 4%; background-size: 130%; background-repeat: no-repeat; }
.res-list .nm b { display: block; font-size: 15px; }
.res-list .nm small { color: var(--sub); font-size: 12px; }
.res-list .tm { font-variant-numeric: tabular-nums; font-weight: 700; color: #dfe4ef; }

/* HUD */
#hud { position: fixed; inset: 0; z-index: 4; pointer-events: none; font-family: var(--disp); }
#hud [hidden] { display: none; }
#itemSlot { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; width: 92px; height: 92px; border-radius: 18px; background: rgba(10,14,24,.55); border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
#itemSlot canvas { width: 100%; height: 100%; }
#itemN { position: absolute; right: -6px; bottom: -6px; background: var(--red); color: #fff; font-size: 18px; padding: 0 7px; border-radius: 10px; }
#itemN:empty { display: none; }
#rankBox { position: absolute; right: 22px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: baseline; color: #fff; transform: skewX(-8deg); }
#rankNum { font-weight: 400; font-size: 104px; line-height: .9; color: var(--yel); -webkit-text-stroke: 3px #3a2000; paint-order: stroke fill; text-shadow: 0 6px 0 #c2410c; }
#rankBox span { font-size: 40px; margin-left: 2px; -webkit-text-stroke: 2px #1a1405; paint-order: stroke fill; }
#rankBox small { font-size: 20px; margin-left: 6px; color: #dfe4ef; }
#rankSide { position: absolute; z-index: 5; right: calc(14px + env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); display: grid; justify-items: center; width: 96px; padding: 5px 9px 6px; border: 1px solid rgba(255,255,255,.48); border-radius: 12px; color: #fff; background: linear-gradient(135deg, rgba(17,24,39,.9), rgba(6,9,17,.72)); box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.rankSideLabel { color: #dfe4ef; font: 800 10px/1.2 Pretendard, sans-serif; }
#rankSide > div { display: flex; align-items: baseline; gap: 2px; }
#rankSideNum { color: var(--yel); font: 400 30px/.95 var(--disp); -webkit-text-stroke: 1px #3a2000; paint-order: stroke fill; text-shadow: 0 2px 0 #c2410c; }
#rankSide > div > span { font-size: 14px; }
#rankSide small { margin-left: 3px; color: #dfe4ef; font-size: 11px; }
#rankNum.bump { animation: rbump .35s; }
@keyframes rbump { 40% { transform: scale(1.25); } }
#lapBox { position: absolute; z-index: 4; top: calc(78px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); text-align: right; text-shadow: 0 2px 0 rgba(0,0,0,.7); }
#lapBox .lap { font-size: 22px; }
#lapBox .lap b { font-weight: 400; font-size: 34px; color: var(--yel); }
#lapBox .time { font-family: Pretendard, sans-serif; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
#mini { position: absolute; z-index: 3; right: 12px; top: calc(124px + env(safe-area-inset-top)); width: 150px; height: 150px; opacity: .95; }
#speedo { position: absolute; left: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); text-shadow: 0 2px 0 rgba(0,0,0,.6); }
#speedo b { font-weight: 400; font-size: 48px; font-variant-numeric: tabular-nums; }
#speedo small { font-family: Pretendard, sans-serif; font-weight: 700; margin-left: 4px; }
#driftLv { display: block; height: 6px; width: 120px; border-radius: 3px; background: rgba(255,255,255,.15); margin-top: 4px; overflow: hidden; position: relative; }
#driftLv::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--dc, #4aa8ff); transition: width .08s; }
#feed { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: Pretendard, sans-serif; }
#feed div { background: rgba(10,14,24,.72); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; animation: feedin .25s ease-out; white-space: nowrap; }
@keyframes feedin { from { transform: translateY(-8px); opacity: 0; } }
#center { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: clamp(60px, 16vw, 170px); line-height: 1; color: #fff; -webkit-text-stroke: 4px #0e1320; paint-order: stroke fill; text-shadow: 0 8px 0 rgba(0,0,0,.35); }
#center.pop { animation: cpop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cpop { from { transform: scale(2.2); opacity: 0; } }
#center.go { color: var(--yel); }
#center.small { font-size: clamp(34px, 7vw, 70px); }
#speedLines { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background: repeating-conic-gradient(from 0deg at 50% 55%, transparent 0deg 3deg, rgba(255,255,255,.16) 3.4deg 3.7deg, transparent 4deg 9deg); -webkit-mask: radial-gradient(circle at 50% 55%, transparent 30%, #000 75%); mask: radial-gradient(circle at 50% 55%, transparent 30%, #000 75%); }
#courseCard { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); pointer-events: auto; text-align: center; font-family: Pretendard, sans-serif; background: linear-gradient(90deg, transparent, rgba(8,11,20,.78) 18%, rgba(8,11,20,.78) 82%, transparent); padding: 14px 80px; animation: ccIn .6s ease-out; }
#courseCard[hidden] { display: none; }
#courseCard small { display: block; color: var(--yel); font-weight: 800; letter-spacing: .35em; font-size: 12px; }
#courseCard b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 5vw, 52px); color: #fff; }
#courseCard span { display: block; color: #dfe4ef; font-size: 15px; }
#courseCard em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--sub); }
@keyframes ccIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }
#hitFlash { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 90px 30px rgba(255,40,60,.85); }
#hitFlash.on { animation: hitf .6s ease-out; }
@keyframes hitf { 0% { opacity: 1; } 100% { opacity: 0; } }
#speedLines.on { opacity: 1; animation: sl .12s steps(2) infinite; }
@keyframes sl { 50% { transform: rotate(1.5deg); } }
.pausebtn { pointer-events: auto; position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 118px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,14,24,.55); font-size: 14px; }

#touch { display: none; }
body.touch #touch { display: block; }
#touch button { pointer-events: auto; position: absolute; border: 2px solid rgba(255,255,255,.55); background: rgba(10,14,24,.42); color: #fff; font-family: Pretendard, sans-serif; font-weight: 800; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; backdrop-filter: blur(3px); }
#touch button.on { background-color: rgba(255,210,58,.55); border-color: var(--yel); }
/* 떠오르는 원 조이스틱: 왼쪽 아무 데나 누르면 그 자리에 생긴다 */
#joyZone { position: absolute; left: 0; bottom: 0; width: 52%; height: 62%; pointer-events: auto; touch-action: none; }
#joy { position: absolute; left: 34px; bottom: calc(26px + env(safe-area-inset-bottom)); width: 132px; height: 132px; pointer-events: none; }
#joy .base { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(10,14,24,.18) 0 55%, rgba(10,14,24,.42) 56% 100%); border: 2px solid rgba(255,255,255,.5); backdrop-filter: blur(2px); }
#joy .base::before { content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); }
#joy .knob { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, #d9dde8 55%, #aab2c4); box-shadow: 0 4px 10px rgba(0,0,0,.35); transition: transform .08s; }
#joy.on .knob { transition: none; }
#joy .hint { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font: 700 12px Pretendard, sans-serif; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#joy.on .hint, #joy.used .hint { display: none; }
#tDrift { width: 96px; height: 96px; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 0; }
#tItem { width: 76px; height: 76px; right: 126px; bottom: calc(40px + env(safe-area-inset-bottom)); font-size: 0; }
.touch-icon { display: block; width: 88%; height: 88%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
#tItemIcon { width: 84%; height: 84%; }
#tDrift .drift-icon { width: 100%; height: 100%; }
#tItem.has { color: transparent; border-color: var(--yel); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#controlsHint { position: absolute; top: calc(64px + env(safe-area-inset-top)); left: 50%; z-index: 6; width: max-content; max-width: min(480px, calc(100vw - 32px)); padding: 12px 18px; transform: translateX(-50%); display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(8,12,22,.82); box-shadow: 0 8px 26px rgba(0,0,0,.3); color: #eef3ff; text-align: center; font: 600 13px/1.45 Pretendard, system-ui, sans-serif; pointer-events: none; backdrop-filter: blur(8px); animation: hint-in .25s ease-out; }
#controlsHint[hidden] { display: none; }
#controlsHint b { color: var(--yel); font-size: 14px; }
#controlsHint strong { color: var(--yel); }
#controlsHint img { display: inline-block; width: 27px; height: 27px; margin: -7px 1px -9px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
#controlsHint img.hint-space { width: 62px; height: 25px; }
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

body.touch #speedo { display: block; left: 14px; top: auto; bottom: calc(174px + env(safe-area-inset-bottom)); padding: 4px 9px 6px; border: 1px solid rgba(255,255,255,.42); border-radius: 11px; background: rgba(8,12,22,.72); }
body.touch #speedo b { font-size: 31px; line-height: 1; }
body.touch #speedo small { font-size: 11px; }
body.touch #driftLv { width: 76px; height: 4px; margin-top: 3px; }
body.touch #rankBox { right: auto; left: 16px; top: calc(116px + env(safe-area-inset-top)); bottom: auto; }
body.touch #rankNum { font-size: 64px; }
body.touch #rankBox span { font-size: 26px; }
body.touch #rankBox small { font-size: 14px; }
body.touch #rankSide { right: calc(10px + env(safe-area-inset-right)); top: calc(11px + env(safe-area-inset-top)); width: 70px; padding: 3px 5px 4px; }
body.touch .rankSideLabel { font-size: 9px; }
body.touch #rankSideNum { font-size: 22px; }
body.touch #rankSide > div > span { font-size: 11px; }
body.touch #rankSide small { font-size: 9px; }
body.touch .how-touch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
body.touch .how > div:first-child { display: none; }

#pause { position: fixed; inset: 0; z-index: 8; background: rgba(6,9,16,.65); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
#pause[hidden] { display: none; }
#settings { position: fixed; inset: 0; z-index: 9; background: rgba(6,9,16,.72); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); font-family: Pretendard, sans-serif; }
#settings[hidden] { display: none; }
.sbox label, .sbox .row { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: #e8ecf4; font-size: 15px; }
.sbox .row { flex-direction: row; align-items: center; justify-content: space-between; }
.sbox input[type=range] { width: 100%; accent-color: var(--yel); height: 28px; }
.sbox input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--yel); }
.sbox .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sbox .seg button { background: transparent; color: #cfd6e4; border: 0; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.sbox .seg button.on { background: var(--yel); color: #1a1406; }
.res-list .tm small { display: block; font-size: 11px; color: var(--sub); }
.res-list .tm .up { color: #4ee08a; } .res-list .tm .dn { color: #ff7a7a; }
.pbox { display: flex; flex-direction: column; gap: 10px; width: min(320px, 86vw); }
.pbox h3 { font-family: var(--disp); font-weight: 400; font-size: 34px; margin: 0 0 8px; text-align: center; }
#loading { position: fixed; inset: 0; z-index: 9; overflow: hidden; display: grid; place-items: center; color: #fff; background: #080c16; }
#loading[hidden] { display: none; }
.load-backdrop { position: absolute; inset: -3%; background-position: center; background-size: cover; filter: saturate(1.2) blur(2px); transform: scale(1.04); animation: load-pan 14s ease-in-out infinite alternate; }
.load-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,7,15,.84), rgba(4,7,15,.43) 55%, rgba(4,7,15,.72)), linear-gradient(0deg, rgba(4,7,15,.86), transparent 55%, rgba(4,7,15,.3)); }
@keyframes load-pan { to { transform: scale(1.12) translateX(-1%); } }
.load-panel { position: relative; width: min(720px, calc(100vw - 36px)); padding: clamp(20px, 4vw, 36px); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: linear-gradient(145deg, rgba(13,19,33,.86), rgba(8,12,22,.74)); box-shadow: 0 24px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.12); backdrop-filter: blur(16px); animation: load-arrive .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes load-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.load-brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 21px; color: rgba(255,255,255,.7); font: 800 11px/1 Pretendard, sans-serif; letter-spacing: .19em; }
.load-brand b { color: var(--yel); letter-spacing: .14em; }
.load-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.load-driver, .load-track { position: relative; min-width: 0; min-height: 138px; padding: 14px; border-radius: 17px; overflow: hidden; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); }
.load-driver { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: center; }
.load-driver > small, .load-track > small { grid-column: 1 / -1; color: #ffe06b; font: 800 10px/1 Pretendard, sans-serif; letter-spacing: .2em; }
.load-driver img { grid-column: 1; grid-row: 2; align-self: end; width: 92px; height: 92px; object-fit: cover; object-position: center 12%; border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.02)); }
.load-driver div { grid-column: 2; grid-row: 2; min-width: 0; align-self: center; }
.load-driver b, .load-track b { display: block; color: #fff; font: 400 clamp(20px, 3.2vw, 29px)/1.2 var(--disp); overflow-wrap: anywhere; }
.load-driver span, .load-track span { display: block; margin-top: 5px; color: rgba(232,239,255,.76); font: 600 12px/1.4 Pretendard, sans-serif; }
.load-driver em { display: inline-block; max-width: 100%; margin-top: 9px; padding: 4px 7px; border-radius: 6px; color: #101625; background: var(--yel); font: 800 9px/1 Pretendard, sans-serif; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-track { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(255,210,58,.11), rgba(255,255,255,.045)); }
.load-track i { margin-top: auto; color: rgba(255,255,255,.56); font: normal 800 9px/1 Pretendard, sans-serif; letter-spacing: .18em; }
.load-status { display: flex; justify-content: space-between; gap: 12px; margin-top: 23px; font: 700 13px Pretendard, sans-serif; }
.load-status b { color: var(--yel); font-variant-numeric: tabular-nums; }
.lbar { width: 100%; height: 7px; margin-top: 9px; border-radius: 9px; background: rgba(255,255,255,.13); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.lbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff9a28, var(--yel), #fff1a6); box-shadow: 0 0 15px rgba(255,210,58,.65); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.ltip { min-height: 18px; margin: 12px 0 0; color: rgba(229,237,255,.77); font: 600 12px/1.5 Pretendard, sans-serif; }
#dbg { position: fixed; left: 8px; bottom: 8px; z-index: 50; font: 12px/1.4 ui-monospace, monospace; color: #9f9; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: pre; }
#dbg[hidden] { display: none; }
#rotHint { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 9; background: rgba(10,14,24,.85); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 12px; pointer-events: none; }
#rotHint[hidden] { display: none; }
#toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(30px); opacity: 0; z-index: 20; background: #fff; color: #111; padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 760px) {
  .sel-wrap { grid-template-columns: 1fr; grid-template-rows: 44% 1fr; gap: 12px; }
  .hero-img { inset: 0 0 96px; }
  .hero-info { padding: 10px 14px 12px; }
  .hero-info h3 { font-size: 24px; margin-bottom: 6px; }
  .stats { grid-template-columns: auto 1fr auto 1fr; font-size: 12px; }
  .sel-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .cc span { font-size: 10px; }
  .foot { flex-wrap: wrap; }
  #nick { width: 130px; }
  .track-grid { grid-template-columns: 1fr; }
  .online-box { grid-template-columns: 1fr; }
  .room-main { grid-template-columns: 1fr; }
  .players { grid-template-columns: repeat(4, 1fr); }
  .results { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pod .st { font-size: 28px; }
  .pod.p1 .st { height: 90px; } .pod.p2 .st { height: 66px; } .pod.p3 .st { height: 48px; }
  .pod { max-width: 110px; }
  .btn.big { min-width: 0; flex: 1; }
  #lapBox { top: calc(61px + env(safe-area-inset-top)); right: 12px; }
  #lapBox .lap { font-size: 17px; } #lapBox .lap b { font-size: 27px; }
  #lapBox .time { font-size: 13px; }
  #mini { width: 90px; height: 90px; top: calc(108px + env(safe-area-inset-top)); right: 10px; }
  #itemSlot { width: 76px; height: 76px; }
  .pausebtn { left: 102px; }
  .load-panel { padding: 18px; border-radius: 20px; }
  .load-brand { margin-bottom: 14px; font-size: 9px; }
  .load-driver, .load-track { min-height: 116px; padding: 10px; }
  .load-driver { grid-template-columns: 66px 1fr; column-gap: 8px; }
  .load-driver img { width: 66px; height: 78px; }
  .load-driver span, .load-track span { font-size: 10px; }
  .load-driver em { font-size: 8px; }
  .load-status { margin-top: 17px; font-size: 12px; }
  .ltip { font-size: 11px; }
  #tItem { right: 28px; bottom: calc(134px + env(safe-area-inset-bottom)); }
  .tc canvas { width: 84px; height: 84px; }
  #controlsHint { top: calc(56px + env(safe-area-inset-top)); font-size: 12px; padding: 10px 12px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  #tItem { right: 126px; bottom: calc(40px + env(safe-area-inset-bottom)); }
  body.touch #speedo { left: 14px; top: calc(97px + env(safe-area-inset-top)); bottom: auto; }
  body.touch #rankBox { left: 14px; top: calc(151px + env(safe-area-inset-top)); bottom: auto; }
  body.touch #rankNum { font-size: 48px; }
  body.touch #rankBox span { font-size: 22px; }
  .lead, .how { display: none; }
  .logo b { font-size: 70px; }
  .sel-wrap { grid-template-columns: 34% 1fr; grid-template-rows: none; }
  .track-grid { grid-template-columns: repeat(3, 1fr); }
  .results { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  #controlsHint { top: calc(54px + env(safe-area-inset-top)); }
  #mini { top: calc(101px + env(safe-area-inset-top)); width: 82px; height: 82px; }
  #lapBox { top: calc(57px + env(safe-area-inset-top)); }
  #speedo { top: calc(97px + env(safe-area-inset-top)); bottom: auto; }
  .load-picks { gap: 7px; }
}

/* ---- 컵·이모지 ---- */
.cupbox { grid-column: 1 / -1; background: rgba(10,14,24,.78); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 16px; }
.cupbox h4 { margin: 0 0 8px; font-size: 15px; color: var(--yel); }
.cupbox ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 14px; }
.cupbox li b { font-family: var(--disp); font-weight: 400; margin-right: 6px; }
.cupbox li small { color: var(--sub); margin-left: 4px; }
.cupbox .next { margin-top: 8px; color: #dfe4ef; font-size: 14px; }
#emoBar { position: absolute; left: 170px; top: calc(14px + env(safe-area-inset-top)); display: flex; gap: 6px; pointer-events: auto; }
#emoBtn, #emoList button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,14,24,.55); font-size: 20px; line-height: 1; padding: 0; }
#emoList { display: flex; gap: 6px; }
#emoList[hidden] { display: none; }
body.spec #emoBar { display: none; }
@media (max-width: 760px) { #emoBar { left: 150px; } }

/* ---- 팀전 ---- */
#teamBar { position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; border-radius: 999px; overflow: hidden; font-family: Pretendard, sans-serif; font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
#teamBar[hidden] { display: none; }
#teamBar span { padding: 6px 16px; color: #fff; }
#teamBar .tr { background: #e0303e; } #teamBar .tb { background: #2a6bff; }
#teamBar b { font-family: var(--disp); font-weight: 400; font-size: 20px; margin: 0 4px; }
body.spec #teamBar { top: calc(52px + env(safe-area-inset-top)); }
#feed { top: calc(56px + env(safe-area-inset-top)); }
.res-list li.t0 { box-shadow: inset 5px 0 0 #e0303e; } .res-list li.t1 { box-shadow: inset 5px 0 0 #2a6bff; }
#board div.t0 i { box-shadow: 0 0 0 2px #e0303e; } #board div.t1 i { box-shadow: 0 0 0 2px #2a6bff; }
.pl.t0 { box-shadow: inset 0 -4px 0 #e0303e; } .pl.t1 { box-shadow: inset 0 -4px 0 #2a6bff; }

/* ---- 카트 꾸미기 ---- */
#scr-garage { flex-direction: column; background: transparent; }
#scr-garage .bar { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(8,11,20,.7), transparent); }
.gar-drag { position: absolute; inset: 0; z-index: 1; touch-action: none; cursor: grab; }
.gar-panel { position: absolute; z-index: 2; right: 0; top: 0; bottom: 0; width: min(400px, 44vw); overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom)); background: rgba(10,13,22,.86); border-left: 1px solid var(--line); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 8px; }
.gar-panel h4 { margin: 10px 0 2px; font-size: 13px; color: var(--sub); font-weight: 700; letter-spacing: .04em; }
.gar-panel .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gar-panel .opts button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; border-radius: var(--r1); padding: 9px 12px; font-weight: 700; font-size: 14px; }
.gar-panel .opts button.on { background: var(--yel); color: #1a1405; border-color: transparent; }
.gar-panel .opts button.car { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; text-align: left; }
.gar-panel .opts button.car b { font-size: 17px; }
.gar-panel .opts button.car small { font-size: 13px; font-weight: 500; opacity: .75; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.swatches button { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); padding: 0; }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--yel); }
.swatches button.me { background-image: linear-gradient(135deg, transparent 45%, rgba(255,255,255,.9) 46% 54%, transparent 55%); }
.gnum { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 14px; }
.gnum input { width: 90px; }
#bGarDone { margin-top: 14px; }
@media (max-width: 760px) {
  .gar-panel { top: auto; left: 0; width: auto; height: 52%; padding-top: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .gar-drag { bottom: 52%; }
  .swatches { grid-template-columns: repeat(8, 1fr); gap: 5px; }
}

/* ---- v2: 교실 대회·관전·시상식·기록 ---- */
.tvlink { margin-top: 14px; display: inline-flex; align-items: baseline; gap: 10px; background: none; border: 0; padding: 4px 0; color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.tvlink small { font-weight: 500; color: var(--sub); text-decoration: none; }
.tc .best { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: #1a1405; background: var(--yel); padding: 2px 8px; border-radius: 999px; }
.diff { flex-wrap: wrap; }
#diffWrap { display: inline-flex; align-items: center; gap: 10px; }
#diffWrap[hidden] { display: none; }
.room-code .qr { display: none; }
.rc-txt { display: flex; align-items: center; gap: 14px; }
.rurl { display: none; }
#scr-room.tv .room-code { gap: 24px; }
#scr-room.tv .room-code .qr { display: block; width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 8px; flex: none; }
#scr-room.tv .qr svg { width: 100%; height: 100%; display: block; }
#scr-room.tv .rc-txt { flex-direction: column; align-items: flex-start; gap: 2px; }
#scr-room.tv .room-code b { font-size: 76px; line-height: 1; }
#scr-room.tv .rurl { display: block; font-size: 22px; font-weight: 800; color: #fff; }
#scr-room.tv .players { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
#scr-room.tv .pl { aspect-ratio: 3/3.3; }
#board { display: none; position: absolute; left: 14px; top: calc(80px + env(safe-area-inset-top)); width: 230px; font-family: Pretendard, sans-serif; }
#board div { display: grid; grid-template-columns: 24px 10px 1fr auto; align-items: center; gap: 8px; padding: 5px 10px; margin-bottom: 3px; border-radius: 8px; background: rgba(10,14,24,.62); font-size: 14px; font-weight: 700; }
#board div b { font-family: var(--disp); font-weight: 400; font-size: 18px; text-align: center; }
#board div i { width: 10px; height: 10px; border-radius: 50%; }
#board div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#board div small { color: var(--sub); font-size: 12px; }
#board div.on { background: rgba(255,210,58,.9); color: #1a1405; }
#board div.on small { color: #3a2a00; }
#board div.fin small { color: #7ee2a8; }
#specBar { display: none; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px; pointer-events: auto; font-family: Pretendard, sans-serif; }
#specBanner { background: var(--red); color: #fff; font-weight: 800; font-size: 14px; padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; }
.specnav { display: flex; align-items: center; gap: 10px; background: rgba(10,14,24,.7); border-radius: 999px; padding: 6px 8px; }
.specnav b { min-width: 150px; text-align: center; font-size: 16px; }
.specnav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; }
body.spec #board, body.spec #specBar { display: flex; }
body.spec #board { display: block; }
body.spec #itemSlot, body.spec #rankBox, body.spec #rankSide, body.spec #speedo, body.spec #touch, body.spec #bPause { display: none !important; }
#podTitle { position: fixed; left: 0; right: 0; top: 12%; z-index: 7; text-align: center; pointer-events: none; animation: cpop .6s cubic-bezier(.2, 1.4, .4, 1); }
#podTitle small { display: block; font-weight: 800; color: #fff; font-size: 16px; letter-spacing: .1em; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
#podTitle b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(40px, 8vw, 84px); color: var(--yel); -webkit-text-stroke: 3px #3a2000; paint-order: stroke fill; text-shadow: 0 6px 0 #c2410c; }
#podTitle[hidden] { display: none; }
.res-side { display: flex; align-items: flex-end; }
.record { margin: 0; background: rgba(10,14,24,.75); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 18px; font-size: 18px; font-weight: 700; }
.record b { color: var(--yel); font-family: var(--disp); font-weight: 400; font-size: 28px; margin-right: 8px; }
.record small { color: var(--sub); font-size: 13px; }
#scr-results.over { background: linear-gradient(90deg, rgba(8,11,20,0) 0%, rgba(8,11,20,0) 45%, rgba(8,11,20,.72) 62%); }
#scr-results.over .foot { background: rgba(8,11,20,.72); }
#scr-results.over .res-list li { background: rgba(10,14,24,.72); }
@media (max-width: 760px) {
  #board { width: 170px; top: calc(70px + env(safe-area-inset-top)); }
  #board div { font-size: 12px; padding: 3px 8px; }
  #scr-results.over { background: linear-gradient(180deg, rgba(8,11,20,0) 0%, rgba(8,11,20,0) 30%, rgba(8,11,20,.8) 45%); }
  #scr-room.tv .room-code .qr { width: 130px; height: 130px; }
  #scr-room.tv .room-code b { font-size: 48px; }
}

.logo img { transform: skewX(8deg); display: block; width: min(440px, 78vw); height: auto; margin: 0 0 -6px -6px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
@media (max-height: 460px) { .logo img { width: min(300px, 44vw); } }

/* 출발 전 내 캐릭터 소개(카메라가 한 바퀴 도는 동안) */
#myCard { position: absolute; left: 4%; bottom: 14%; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; font-family: Pretendard, sans-serif; animation: mcIn .5s cubic-bezier(.2,.9,.3,1.2); }
#myCard[hidden] { display: none; }
#myCard img { width: 110px; height: 146px; object-fit: cover; object-position: top; border-radius: 14px; background: var(--c, #ffd23a); border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
#myCard div { background: rgba(8,11,20,.78); border-left: 5px solid var(--c, #ffd23a); padding: 8px 16px 10px 12px; border-radius: 0 12px 12px 0; margin-bottom: 8px; }
#myCard small { display: block; color: var(--yel); font-weight: 800; letter-spacing: .3em; font-size: 11px; }
#myCard b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(26px, 4.4vw, 44px); color: #fff; line-height: 1.05; }
#myCard span { color: #dfe4ef; font-size: 14px; font-weight: 700; }
@keyframes mcIn { from { opacity: 0; transform: translateX(-40px); } }
@media (max-width: 600px) { #myCard img { width: 76px; height: 100px; } #myCard { bottom: 30%; } }
