/* race 전용 모양 (2026-11-11 styles.css에서 그대로 옮김: 이 기능만 고칠 때 공통 파일을 안 건드리게) */
/* ↓ 2026-11-11 2차: styles.css에 남아 있던 이 기능 규칙(원래 순서 그대로, 이 파일의 다른 규칙보다 앞) */
.rc2-say{margin:4px 0 10px;min-height:1.6em;text-align:center;font-weight:900;font-size:1.15rem;color:#14324d}
.rc2-track{position:relative;width:100%;aspect-ratio:16/7;background:linear-gradient(#59636d,#4d5761);border-radius:18px;overflow:hidden;border:6px solid #7cc46f;box-sizing:border-box;touch-action:manipulation}
.rc2-lane{position:absolute;left:0;right:0;height:20%;border-bottom:2px dashed rgba(255,255,255,.45)}
.rc2-start{position:absolute;left:12%;top:0;bottom:0;width:4px;background:#fff;opacity:.85}
.rc2-finish{position:absolute;left:74%;top:0;bottom:0;width:3%;background:repeating-conic-gradient(#111 0 25%,#fff 0 50%) 0 0/50% 7%;box-shadow:0 0 0 2px #fff}
.rc2-finish b{position:absolute;top:-1px;left:50%;transform:translateX(-50%);background:#d32f2f;color:#fff;font-size:.7rem;padding:1px 6px;border-radius:0 0 8px 8px;white-space:nowrap}
.rc2-car{position:absolute;height:15%;aspect-ratio:1.55;transform:translateX(-100%);padding:0;border:0;background:none;cursor:pointer;z-index:2;border-radius:12px;outline-offset:2px}
.rc2-car img{position:absolute;left:50%;top:50%;height:155%;width:62%;object-fit:contain;transform:translate(-50%,-50%) rotate(90deg);pointer-events:none;filter:drop-shadow(0 3px 2px rgba(0,0,0,.35))}
.rc2-car .rc2-rk{position:absolute;left:-30%;top:50%;transform:translateY(-50%);min-width:1.7em;height:1.7em;border-radius:50%;background:#ffd23f;color:#14324d;font:900 .85rem/1.7em system-ui;text-align:center;font-style:normal;box-shadow:0 1px 3px #0006;opacity:0;transition:opacity .2s}
.rc2-car .rc2-star{position:absolute;right:-8%;top:-30%;font-style:normal;font-size:.95rem;display:none}
.rc2-car.cheer{box-shadow:0 0 0 3px #ffd23f}
.rc2-car.hl{box-shadow:0 0 0 4px #ff6d00,0 0 16px 4px #ffab40;animation:rc2-pulse 1s infinite}
.rc2-count{position:absolute;inset:0;display:grid;place-items:center;font:900 4.5rem/1 system-ui;color:#fff;text-shadow:0 4px 12px #000a;opacity:0;pointer-events:none;z-index:4}
.rc2-count.show{animation:rc2-pop .6s ease-out}
.rc2-count.go{color:#ffd23f}
.rc2-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0 0}
.rc2-board{margin-top:10px}
.rc2-tray{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0}
.rc2-token{display:flex;flex-direction:column;align-items:center;gap:2px;width:96px;padding:8px 4px;border:3px solid var(--line,#dbe3ea);border-radius:16px;background:#fff;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}
.rc2-token img{height:58px;width:58px;object-fit:contain;transform:rotate(90deg);pointer-events:none}
.rc2-token b{font-size:.82rem;line-height:1.15;text-align:center;word-break:keep-all}
.rc2-token.cheer{border-color:#ffb300;background:#fff8e1}
.rc2-token.sel{border-color:#1e88e5;background:#e3f2fd;transform:translateY(-4px);box-shadow:0 6px 14px #1e88e533}
.rc2-token.ref{border-color:#ff6d00;background:#fff3e0}
.rc2-ghost{position:fixed;z-index:99;pointer-events:none;transform:translate(-50%,-50%) scale(1.05);opacity:.9;box-shadow:0 10px 24px #0004}
.rc2-slots{display:flex;gap:10px;justify-content:center;align-items:flex-end;margin:6px 0}
.rc2-slot{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:116px;min-height:150px;padding:6px;border:3px dashed #9fb3c8;border-radius:16px;background:#f5f9fc;cursor:pointer}
.rc2-slot .rc2-medal{font-size:1.6rem;display:flex;flex-direction:column;align-items:center;order:2}
.rc2-slot .rc2-medal b{font-size:.95rem;color:#14324d}
.rc2-slots.podium .s3{min-height:150px;order:3}
.rc2-nums{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
@media (max-width:600px){.rc2-slots.podium .s3{min-height:120px}}
@media (prefers-reduced-motion:reduce){.rc2-car.hl{animation:none}.rc2-count.show{animation:none;opacity:1}}
.rc2-slots.podium .s3{min-height:116px}
@media (max-width:600px){.rc2-slots.podium .s3{min-height:104px}}
/* ↑ 2차로 옮긴 규칙 끝 */
/* 🏁 자동차 경주(특별활동) */
.rc-wrap{max-width:980px}
/* 🏁 자동차 경주 v2: 위에서 내려다본 5레인 */
.rc2-card{max-width:980px}
.rc2-lane:last-of-type{border-bottom:0}
.rc2-track.ranks .rc2-car .rc2-rk{opacity:1}
.rc2-car.cheer .rc2-star{display:block}
.rc2-tools button{min-height:44px}
.rc2-token.cheer b::before{content:'⭐ '}
.rc2-slot .rc2-in{order:1;min-height:96px;display:flex;align-items:center}
.rc2-slot .rc2-token{border-style:solid;pointer-events:none}
.rc2-slots.podium .rc2-slot{background:linear-gradient(#fff,#fff7d6);border-style:solid;border-color:#e0c060}
.rc2-slots.podium .s1{min-height:200px;order:2}
.rc2-slots.podium .s2{min-height:170px;order:1}
.rc2-nums .choice{min-width:96px;font-size:1.3rem}
@media (max-width:600px){.rc2-track{aspect-ratio:16/9;border-width:4px}.rc2-token{width:74px;padding:6px 2px}.rc2-token img{height:44px;width:44px}.rc2-slot{width:78px;min-height:120px}.rc2-slot .rc2-in{min-height:80px}.rc2-slots.podium .s1{min-height:160px}.rc2-slots.podium .s2{min-height:140px}.rc2-say{font-size:1rem}.rc2-count{font-size:3rem}}
.rc2-labels{position:relative;height:1.6em;margin:0 6px}
.rc2-labels span{position:absolute;transform:translateX(-50%);font-weight:900;font-size:.9rem;color:#14324d;white-space:nowrap}
.rc2-track{aspect-ratio:2/1;height:auto;max-height:40vh}
.rc2-card{padding-top:12px}
.rc2-slot{min-height:120px;width:104px}
.rc2-slot .rc2-in{min-height:84px}
.rc2-slots.podium .s1{min-height:150px}
.rc2-slots.podium .s2{min-height:132px}
.rc2-token{width:88px;padding:6px 4px}
.rc2-token img{height:50px;width:50px}
@media (max-width:600px){.rc2-token{width:66px}.rc2-token img{height:40px;width:40px}.rc2-slot{width:70px;min-height:104px}.rc2-slot .rc2-in{min-height:72px}.rc2-slots.podium .s1{min-height:132px}.rc2-slots.podium .s2{min-height:118px}}
.rc2-car:active:not(:disabled){transform:translateX(-100%)}
.rc2-car{min-height:0;min-width:0;margin:0;border-radius:0}
.rc2-car{width:auto;border-radius:12px}
.rc2-token,.rc2-slot{margin:0}
@media (max-width:600px){.rc2-token{width:66px}.rc2-slot{width:70px}}
