/* ============================================================================
   event-result.css — 대회 결과 발표 페이지(/event-result/*)
   발표 화면은 '어워드 세리머니' 톤(시네마틱 다크 + 샴페인 골드 + Pretendard).
   발표 전 티저(.er-teaser)는 하단 블록. ※ 전역 section{padding} 때문에 새 section 은 padding 명시. 이모지 없음.
   ============================================================================ */
/* Pretendard — 결과발표 페이지 전용 로드(geo.css 와 동일, CSP font-src 'self' 허용). 없으면 시스템 폰트 폴백. */
@font-face {
    font-family: 'Pretendard Variable';
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    src: url('/lib/pretendard/PretendardVariable.woff2') format('woff2-variations');
}

.er { --er-grad: linear-gradient(135deg, #4560e8 0%, #6b4fe0 52%, #8348dc 100%);
    --er-accent: var(--ro-primary-700, #4359c9);
    --er-accent-soft: color-mix(in srgb, var(--ro-primary-500, #5b7cfa) 12%, var(--ro-surface, #fff));
    --er-ring: color-mix(in srgb, var(--ro-primary-500, #5b7cfa) 22%, transparent);
    --er-sub: var(--ro-text-sub, #5c6678);
    --er-glow: rgba(69, 96, 232, .28);
    --er-gold: #e3b24a; --er-silver: #9aa6bd; --er-bronze: #c88a52;
    --er-ink: #4a3fcf;
    --er-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-family: var(--er-font);
    max-width: 920px; margin: 0 auto; padding: 0 16px 26px; }
.er[data-er="gen7080"] { --er-grad: linear-gradient(135deg, #f5793b 0%, #ef4d6b 50%, #c026d3 100%);
    --er-accent: #c0344f;
    --er-accent-soft: color-mix(in srgb, #ef4d6b 12%, var(--ro-surface, #fff));
    --er-ring: color-mix(in srgb, #ef4d6b 22%, transparent);
    --er-glow: rgba(239, 77, 107, .26); --er-ink: #c0344f; }

.er * { box-sizing: border-box; }

/* 스크롤 등장 */
.er-reveal { opacity: 1; }
html.js .er-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
html.js .er-reveal.is-in { opacity: 1; transform: none; }

/* 목업 미리보기 리본 */
.er-mockbar { margin: 12px 0 8px; padding: 7px 14px; border-radius: 10px; text-align: center; font-size: 12.5px; font-weight: 700;
    color: #7a4a00; background: linear-gradient(180deg, #ffe08a, #ffcf5a); border: 1px solid rgba(180,120,0,.3); }
.er-mockbar code { font-family: ui-monospace, monospace; font-weight: 700; color: #5a3600; }

/* ============================================================================
   발표 화면 — 어워드 톤 (다크 + 골드)
   ============================================================================ */
/* 전체 화면 시네마틱 다크 배경(사이트 테마와 무관하게 발표는 다크로) */
.er-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(90% 55% at 50% -8%, rgba(232,201,131,.08), transparent 60%),
      radial-gradient(70% 50% at 50% 108%, rgba(124,120,255,.07), transparent 60%),
      #0a0b11; }

.er-ic { width: 15px; height: 15px; }

.er-etop { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 0; }
.er-etop-brand { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #9aa0b0; }
.er-etop-back { font-size: 12.5px; color: #6b7080; text-decoration: none; }
.er-etop-back:hover { color: #e8c983; }

/* 챔피언 히어로 */
.er-champ { position: relative; text-align: center; padding: 56px 10px 20px; overflow: hidden; color: #f2f3f7; }
.er-champ-glow { position: absolute; left: 50%; top: -4%; width: 520px; height: 520px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(circle, rgba(232,201,131,.17), transparent 62%); }
.er-champ-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.er-champ-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e8c983;
    box-shadow: 0 0 8px 1px rgba(232,201,131,.6); animation: er-twk 3s ease-in-out infinite; }
@keyframes er-twk { 0%,100% { opacity: .2; } 50% { opacity: .7; } }
.er-champ-ava { position: relative; width: 150px; height: 150px; margin: 24px auto 22px; }
.er-champ-ava::before { content: ""; position: absolute; inset: -9px; border-radius: 50%;
    background: conic-gradient(from 0deg, #e8c983, #fff6df, #d4ad5e, #e8c983);
    -webkit-mask: radial-gradient(circle, transparent 69%, #000 71%); mask: radial-gradient(circle, transparent 69%, #000 71%);
    animation: er-spin 7s linear infinite; }
@keyframes er-spin { to { transform: rotate(360deg); } }
.er-av { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    border: 3px solid #0a0b11; box-shadow: 0 0 44px -6px rgba(232,201,131,.55); background: #15161f; }
.er-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-champ-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .22em;
    text-transform: uppercase; color: #e8c983; }
.er-champ-tag .er-ic { width: 15px; height: 15px; }
.er-champ-name { font-size: clamp(38px, 9.5vw, 62px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 12px 0 4px; }
.er-champ-sub { font-size: 13px; color: #9aa0b0; }
.er-champ-dist { margin-top: 14px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.er-champ-dist b { font-size: clamp(32px, 8.5vw, 48px); color: #fff; }
.er-champ-dist span { font-size: 16px; color: #9aa0b0; margin-left: 4px; font-weight: 700; }
.er-champ-prize { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 20px; border-radius: 999px;
    border: 1px solid rgba(232,201,131,.38); background: rgba(232,201,131,.12); color: #e8c983; font-weight: 700; font-size: 13.5px; }
.er-champ-prize .er-ic { width: 14px; height: 14px; }

.er-rule { width: 42px; height: 1px; margin: 20px auto; background: linear-gradient(90deg, transparent, rgba(232,201,131,.38), transparent); }

/* 섹션 공통 */
.er-sec { padding: 54px 0 0; color: #f2f3f7; }
.er-sec-k { display: block; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #6b7080; margin-bottom: 10px; }
.er-sec-h { text-align: center; font-size: clamp(24px, 5.6vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.er-sec-sub { text-align: center; font-size: 13.5px; color: #9aa0b0; margin: 0 auto 26px; max-width: 44ch; line-height: 1.6; }

/* 시상대 */
.er-podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: end; max-width: 560px; margin: 0 auto; }
.er-pod { position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
    background: linear-gradient(180deg, #191b25, #15161f); padding: 22px 12px 18px; text-align: center; }
.er-pod--1 { border-color: rgba(232,201,131,.38); background: linear-gradient(180deg, rgba(232,201,131,.1), #15161f);
    box-shadow: 0 0 50px -20px rgba(232,201,131,.5); transform: translateY(-10px); }
.er-pod-rk { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #0a0b11; background: #c3cad8; }
.er-pod--1 .er-pod-rk { width: 30px; height: 30px; font-size: 13px; background: linear-gradient(180deg, #f5e3b0, #e8c983); box-shadow: 0 4px 14px -4px rgba(232,201,131,.7); }
.er-pod--3 .er-pod-rk { background: #d39a68; }
.er-pod-ava { display: block; width: 52px; height: 52px; margin: 6px auto 0; border-radius: 50%; overflow: hidden;
    border: 1px solid rgba(255,255,255,.14); background: #15161f; }
.er-pod-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-pod--1 .er-pod-ava { width: 64px; height: 64px; border: 2px solid #e8c983; }
.er-pod-nm { font-size: 13px; font-weight: 700; margin: 10px 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.er-pod-km { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.er-pod-km small { font-size: 11px; color: #9aa0b0; font-weight: 600; }
.er-pod-pz { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: #9aa0b0; }
.er-pod--1 .er-pod-pz { color: #e8c983; }

/* 전체 순위 */
.er-board { max-width: 520px; margin: 0 auto; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #15161f; overflow: hidden; }
.er-row { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.er-row:first-child { border-top: 0; }
.er-row--top { background: linear-gradient(90deg, rgba(232,201,131,.12), transparent); }
.er-row[hidden] { display: none; }
.er-row-rk { width: 22px; text-align: center; font-size: 13px; font-weight: 800; color: #6b7080; font-variant-numeric: tabular-nums; }
.er-row--top .er-row-rk { color: #e8c983; }
.er-row-ava { display: block; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #191b25; }
.er-row-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-row-nm { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-row-mem { flex: 0 0 auto; font-size: 11.5px; color: #6b7080; }
.er-row-km { flex: 0 0 auto; font-size: 14.5px; font-weight: 800; color: #f2f3f7; font-variant-numeric: tabular-nums; }
.er-row-km small { font-size: 11px; color: #6b7080; font-weight: 600; margin-left: 2px; }

/* 응원 버튼(발표 후 순위표·시상대) — 순위 무관 재미 요소 */
.er-cheer-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 12px;
    font-size: 12.5px; color: #9aa0b0; }
.er-cheer-hint .er-ic { width: 15px; height: 15px; color: #ef476f; }
.er-cheer { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; min-height: 40px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #cdd3df; cursor: pointer;
    font-family: var(--er-font); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
    -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease, color .15s ease; }
.er-cheer .er-ic { width: 15px; height: 15px; color: #ef476f; }
.er-cheer:hover { background: rgba(239,71,111,.14); color: #fff; border-color: rgba(239,71,111,.4); }
.er-cheer:active { transform: scale(.92); }
.er-cheer.er-cheered { animation: er-cheer-bump .4s ease; }
@keyframes er-cheer-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.er-pod .er-cheer { margin-top: 10px; }
.er-more-btn { display: block; margin: 14px auto 0; padding: 10px 22px; border-radius: 12px; border: 1px solid rgba(232,201,131,.3);
    background: rgba(232,201,131,.08); color: #e8c983; font-size: 13px; font-weight: 700; cursor: pointer; }
.er-more-btn:hover { background: rgba(232,201,131,.15); }

/* 특별상 */
.er-sp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin: 0 auto; }
.er-sp-card { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #15161f; padding: 18px; }
.er-sp-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #e8c983; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.er-sp-card--feed .er-sp-k { color: #ff9bb2; }
.er-sp-k .er-ic { width: 14px; height: 14px; }
.er-sp-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.er-sp-row:first-of-type { border-top: 0; }
.er-sp-row b { font-size: 13.5px; font-weight: 700; color: #f2f3f7; }
.er-sp-row small { margin-left: auto; font-size: 11.5px; color: #6b7080; }
.er-sp-n { width: 18px; font-size: 12px; font-weight: 800; color: #6b7080; text-align: center; }
.er-sp-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #e8c983; text-decoration: none; }
.er-sp-more:hover { text-decoration: underline; }

/* 산정 기준 */
.er-rules { max-width: 520px; margin: 48px auto 0; padding: 20px 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #0e0f17; }
.er-rules h4 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7080; }
.er-rules ul { margin: 0; padding-left: 18px; }
.er-rules li { font-size: 12.5px; line-height: 1.7; color: #9aa0b0; }

/* 맺음 */
/* 증서 받기 — 참가자 본인(완주증·크루 상장) */
.er-cert { text-align: center; }
.er-cert-emblem { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(232,201,131,.4); background: linear-gradient(180deg, rgba(232,201,131,.18), rgba(232,201,131,.06)); color: #e8c983; }
.er-cert-emblem svg { width: 28px; height: 28px; }
.er-cert h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: #f2f3f7; }
.er-cert p { font-size: 13px; line-height: 1.65; color: #9aa0b0; margin: 0 auto 18px; max-width: 30em; word-break: keep-all; }
.er-cert p b { color: #e8c983; font-weight: 700; }
.er-cert-cta { display: flex; justify-content: center; }
.er-cert-cta .er-btn { min-width: 200px; padding: 13px 26px; font-size: 15px; }

.er-foot { text-align: center; }
.er-foot-emblem { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(232,201,131,.38); background: rgba(232,201,131,.12); color: #e8c983; }
.er-foot-emblem .er-ic { width: 26px; height: 26px; }
.er-foot h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: #f2f3f7; }
.er-foot p { font-size: 13px; color: #9aa0b0; margin: 0 0 18px; }
.er-foot-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.er-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 22px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid rgba(255,255,255,.14); color: #f2f3f7; background: transparent; font-family: var(--er-font); }
.er-btn:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.er-btn--gold { background: linear-gradient(180deg, #f3e0ad, #e8c983); color: #2a2008; border: 0; }
.er-btn--gold:hover { color: #2a2008; }

/* ── 리빌 인트로(한 번) ── */
/* 발표 리빌 인트로 — 장면 전환(JS 제어, 끝날 때 er-intro-out 로 페이드). 모션축소면 생략(아래 미디어쿼리) */
.er-intro { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 24px; opacity: 1; transition: opacity .5s ease;
    background: radial-gradient(130% 90% at 50% 0, #121521, #06070c 70%); }
.er-intro.er-intro-out { opacity: 0; pointer-events: none; }
.er-intro-skip { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 3;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cdd3df;
    font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.er-intro-skip:hover { color: #fff; background: rgba(255,255,255,.14); }

.er-scene { position: absolute; left: 0; right: 0; padding: 0 26px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.er-scene.is-on { opacity: 1; }
/* 요소 순차 등장(스태거) — transform/opacity 만, iOS 안전 */
.er-scene > * { opacity: 0; transform: translateY(13px); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.er-scene.is-on > * { opacity: 1; transform: none; }
.er-scene.is-on > *:nth-child(1) { transition-delay: .04s; }
.er-scene.is-on > *:nth-child(2) { transition-delay: .11s; }
.er-scene.is-on > *:nth-child(3) { transition-delay: .18s; }
.er-scene.is-on > *:nth-child(4) { transition-delay: .25s; }
.er-scene.is-on > *:nth-child(5) { transition-delay: .32s; }
.er-scene--champ.is-on .er-scene-ava--gold { animation: er-ava-pulse 2.4s ease-in-out .55s infinite; }
@keyframes er-ava-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
/* 진행 점 */
.er-intro-dots { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
    display: flex; justify-content: center; gap: 7px; z-index: 3; }
.er-intro-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2);
    transition: background .3s ease, width .3s ease; }
.er-intro-dots i.on { background: #e8c983; width: 20px; border-radius: 4px; }
.er-scene-eye { font-size: 12px; font-weight: 700; letter-spacing: .42em; color: #8c93a2; }
.er-scene-title { font-size: clamp(42px, 13vw, 84px); font-weight: 800; letter-spacing: -.03em; color: #e8c983; line-height: 1; text-shadow: 0 0 48px rgba(232,201,131,.4); }
.er-scene-k { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #e8c983; text-transform: uppercase; }
.er-scene-k .er-ic { width: 16px; height: 16px; }
.er-scene-ava { width: clamp(98px, 30vw, 130px); height: clamp(98px, 30vw, 130px); border-radius: 50%; overflow: hidden; margin: 4px 0; }
.er-scene-ava--gold { padding: 4px; background: conic-gradient(from 0deg, #e8c983, #fff6df, #d4ad5e, #e8c983); box-shadow: 0 0 42px rgba(232,201,131,.5); }
.er-scene-ava .er-is-ava { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #191b25; }
.er-scene-ava .er-is-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-scene-big { font-size: clamp(28px, 8vw, 46px); font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.er-scene-big2 { font-size: clamp(26px, 7vw, 40px); font-weight: 800; letter-spacing: -.02em; color: #e8c983; line-height: 1.15; }
.er-scene-nim { font-size: .55em; font-weight: 700; color: #cdd3df; margin-left: 2px; }
.er-scene-metric { font-size: clamp(22px, 6vw, 32px); font-weight: 800; color: #e8c983; font-variant-numeric: tabular-nums; }
.er-scene-metric small { font-size: .5em; color: #9aa0b0; margin-left: 2px; }
.er-scene-metric2 { font-size: clamp(44px, 13vw, 72px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.er-scene-prize { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #2a2008; background: linear-gradient(180deg,#f3e0ad,#e8c983); padding: 6px 15px; border-radius: 999px; }
.er-scene-prize .er-ic { width: 15px; height: 15px; }
.er-scene-sub { font-size: 14px; color: #aab2c2; max-width: 22em; word-break: keep-all; line-height: 1.5; }
.er-scene-sub b { color: #e8c983; font-weight: 800; }
.er-scene-chips { display: flex; gap: 10px; margin-top: 2px; }
.er-scene-chips span { font-size: 12.5px; font-weight: 700; color: #cdd3df; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.er-scene-chips b { color: #e8c983; }
.er-scene-cta2 { font-size: 13px; font-weight: 800; color: #e8c983; margin-top: 4px; }
body.er-intro-lock { overflow: hidden; }

/* 반응형(발표 화면) */
@media (max-width: 520px) {
    .er-sp { grid-template-columns: 1fr; }
    .er-podium { max-width: none; }
    .er-row-mem { display: none; }
}

/* ── 앱 웹뷰·모션축소 — 무한애니/blur 끔(컴포지터 보호). 리빌 인트로는 가벼운 페이드라 웹뷰도 재생(JS가 모션축소만 생략) ── */
body.ron-webview .er-champ-ava::before, body.ron-webview .er-champ-sparks i { animation: none; }
body.ron-webview .er-teaser-aurora { display: none; }
body.ron-webview .er-teaser-dday-dot, body.ron-webview .er-teaser-sparks i,
body.ron-webview .er-teaser-mascot, body.ron-webview .er-teaser-halo,
body.ron-webview .er-teaser-stage, body.ron-webview .er-teaser-headline em,
body.ron-webview .er-teaser-prize--1, body.ron-webview .er-teaser-rings span { animation: none; }
body.ron-webview .er-teaser-halo { filter: none; }
@media (prefers-reduced-motion: reduce) {
    .er-intro { display: none; }
    .er-champ-ava::before, .er-champ-sparks i, .er-teaser-aurora, .er-teaser-halo, .er-teaser-sparks i,
    .er-teaser-mascot, .er-teaser-dday-dot, .er-teaser-headline em, .er-teaser-prize--1, .er-teaser-rings span { animation: none; }
    html.js .er-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   발표 전 티저(.er-teaser) — _ResultTeaser.cshtml 전용 (프리미엄 리디자인)
   ============================================================================ */
.er-teaser { display: flex; flex-direction: column; min-height: 100dvh; padding: 2px 0 18px; }
.er-teaser-back { flex: 0 0 auto; margin: 14px 2px 10px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: #6b7080; }
.er-teaser-back:hover { color: #e8c983; }

/* 무대 — 깊은 멀티스톱 + 상단 스포트라이트 + 하단 마젠타/시안 글로우 + 그레인 + 1px 그라디언트 테두리 */
/* 통일 — 발표 화면과 같은 시네마틱 다크 + 골드(.er-bg 가 페이지 전체를 다크로) */
.er-teaser-stage { position: relative; overflow: hidden; isolation: isolate; flex: 1 1 auto;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #f2f3f7;
    padding: clamp(40px, 7vw, 68px) clamp(22px, 6vw, 48px) clamp(36px, 6vw, 56px);
    background: radial-gradient(70% 42% at 50% -4%, rgba(232,201,131,.13), transparent 60%); }
.er[data-er="gen7080"] .er-teaser-stage { background: radial-gradient(70% 42% at 50% -4%, rgba(255,180,110,.14), transparent 60%); }
.er-teaser-stage::before { content: none; }
.er-teaser-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .4;
    background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.4px); background-size: 24px 24px;
    -webkit-mask: radial-gradient(140% 100% at 50% 0, #000 40%, transparent 84%); mask: radial-gradient(140% 100% at 50% 0, #000 40%, transparent 84%); }

.er-teaser-aurora { display: none; }
@keyframes er-drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,34px) scale(1.14); } 66% { transform: translate(-28px,18px) scale(.92); } }

.er-teaser-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.er-teaser-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e8c983; opacity: .9;
    box-shadow: 0 0 8px 1px rgba(232,201,131,.6); animation: er-twinkle 2.6s ease-in-out infinite; }
.er-teaser-sparks i:nth-child(1) { top: 12%; left: 12%; animation-delay: 0s; }
.er-teaser-sparks i:nth-child(2) { top: 18%; right: 14%; animation-delay: .5s; }
.er-teaser-sparks i:nth-child(3) { top: 46%; left: 7%; animation-delay: 1s; }
.er-teaser-sparks i:nth-child(4) { top: 40%; right: 8%; animation-delay: 1.4s; }
.er-teaser-sparks i:nth-child(5) { bottom: 20%; left: 14%; animation-delay: .8s; }
.er-teaser-sparks i:nth-child(6) { bottom: 13%; right: 16%; animation-delay: .2s; }
.er-teaser-sparks i:nth-child(7) { top: 64%; left: 46%; animation-delay: 1.8s; }
@keyframes er-twinkle { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1.15); } }

/* ⚠ 플렉스 열에서 margin:0 auto 는 stretch 를 꺼서 in-box 가 max-content(560)로 커져 모바일서 가로로 넘쳤다.
   → 스테이지를 align-items:center 로 가운데 정렬하고, in-box 는 width:100%(최대 560)로 둬 화면을 넘지 않게. */
.er-teaser-in { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0; }
.er-teaser-in > * { animation: er-up .8s cubic-bezier(.2,.8,.25,1) both; }
.er-teaser-in > :nth-child(2) { animation-delay: .1s; } .er-teaser-in > :nth-child(3) { animation-delay: .18s; }
.er-teaser-in > :nth-child(4) { animation-delay: .26s; } .er-teaser-in > :nth-child(5) { animation-delay: .34s; }
.er-teaser-in > :nth-child(6) { animation-delay: .42s; } .er-teaser-in > :nth-child(7) { animation-delay: .5s; }
@keyframes er-up { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }

/* 마스코트 — 스포트라이트 링 + 후광 */
.er-teaser-mascot-wrap { position: relative; width: clamp(118px, 28vw, 172px); margin: 0 auto 18px; }
.er-teaser-rings { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 270px; height: 270px; z-index: 0; pointer-events: none; }
.er-teaser-rings span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(232,201,131,.2);
    animation: er-ring 4s ease-in-out infinite; }
.er-teaser-rings span:nth-child(1) { width: 270px; height: 270px; }
.er-teaser-rings span:nth-child(2) { width: 200px; height: 200px; border-color: rgba(232,201,131,.3); animation-delay: .5s; }
.er-teaser-rings span:nth-child(3) { width: 135px; height: 135px; border-color: rgba(232,201,131,.42); animation-delay: 1s; }
@keyframes er-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(232,201,131,0); } 50% { box-shadow: 0 0 20px 1px rgba(232,201,131,.32); } }
.er-teaser-halo { position: absolute; inset: -16% -4%; z-index: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,201,131,.42), rgba(255,255,255,.08) 45%, transparent 66%); filter: blur(14px);
    animation: er-halo 3.8s ease-in-out infinite; }
@keyframes er-halo { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.er-teaser-mascot { position: relative; z-index: 1; width: 100%; height: auto; display: block;
    filter: drop-shadow(0 16px 26px rgba(0,0,0,.4)); animation: er-bob 4.4s ease-in-out infinite; }
@keyframes er-bob { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-9px) rotate(-2deg); } 75% { transform: translateY(-3px) rotate(2deg); } }

.er-teaser-dday { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 16px 7px 13px;
    border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
    background: rgba(232,201,131,.12); color: #e8c983; border: 1px solid rgba(232,201,131,.38); }
.er-teaser-dday-dot { width: 8px; height: 8px; border-radius: 50%; background: #7CF2B0; box-shadow: 0 0 10px 1px rgba(124,242,176,.95); animation: er-pulse 1.7s infinite; }
@keyframes er-pulse { 0% { box-shadow: 0 0 10px 1px rgba(124,242,176,.9), 0 0 0 0 rgba(124,242,176,.6); } 70% { box-shadow: 0 0 10px 1px rgba(124,242,176,.9), 0 0 0 9px rgba(124,242,176,0); } 100% { box-shadow: 0 0 10px 1px rgba(124,242,176,.9), 0 0 0 0 rgba(124,242,176,0); } }
.er-teaser-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #e8c983; margin-bottom: 12px; }
.er-teaser-hello { display: inline-block; margin: 0 auto 14px; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #f2f3f7; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.er-teaser-hello b { color: #e8c983; }

.er-teaser-headline { font-size: clamp(38px, 10.5vw, 72px); font-weight: 900; line-height: 1.03; letter-spacing: -.045em;
    margin: 0 0 26px; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.18), 0 14px 50px rgba(0,0,0,.4); }
/* ⚠ 그라디언트 글자(background-clip:text)는 삼성 인터넷 등에서 투명 처리돼 안 보인다 → 단색 금색 + 글로우 */
.er-teaser-headline em { font-style: normal; color: #ffdf87;
    text-shadow: 0 0 20px rgba(255,201,90,.55), 0 2px 3px rgba(0,0,0,.3); animation: er-goldpulse 2.8s ease-in-out infinite; }
@keyframes er-goldpulse { 0%,100% { text-shadow: 0 0 18px rgba(255,201,90,.45), 0 2px 3px rgba(0,0,0,.3); } 50% { text-shadow: 0 0 32px rgba(255,214,110,.85), 0 2px 3px rgba(0,0,0,.3); } }

/* 상금 카드 — 챔피언 금빛 + 띄움 */
.er-teaser-prizes { display: flex; gap: 12px; align-items: stretch; margin-bottom: 30px; }
.er-teaser-prize { flex: 1 1 0; position: relative; border-radius: 16px; padding: 15px 12px 16px;
    background: linear-gradient(180deg, #191b25, #15161f);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px -16px rgba(0,0,0,.6); }
.er-teaser-prize-r { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #9aa0b0; margin-bottom: 7px; }
.er-teaser-prize b { font-size: 15px; font-weight: 800; color: #f2f3f7; line-height: 1.25; }
.er-teaser-prize--1 { transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(232,201,131,.12), #15161f);
    border-color: rgba(232,201,131,.42);
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.6), 0 0 36px -8px rgba(255,201,90,.5), inset 0 1px 0 rgba(255,255,255,.3);
    animation: er-champglow 2.8s ease-in-out infinite; }
@keyframes er-champglow {
    0%,100% { box-shadow: 0 20px 40px -16px rgba(0,0,0,.6), 0 0 30px -10px rgba(255,201,90,.45), inset 0 1px 0 rgba(255,255,255,.3); }
    50% { box-shadow: 0 22px 44px -16px rgba(0,0,0,.6), 0 0 48px -6px rgba(255,201,90,.8), inset 0 1px 0 rgba(255,255,255,.4); } }
.er-teaser-prize--1 .er-teaser-prize-r { color: #ffe08a; }
.er-teaser-prize--1 b { color: #fff6df; }
.er-teaser-trophy { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: linear-gradient(180deg, #ffe08a, #f4a83a); color: #5a3a00; box-shadow: 0 6px 14px -4px rgba(0,0,0,.5); }
.er-teaser-trophy svg { width: 15px; height: 15px; }

/* 카운트다운 — 큼직한 글래스(무블러) + 금빛/백색 숫자 + 상단 하이라이트 */
.er-teaser-count { margin: 0 0 28px; }
.er-teaser-count-l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #6b7080; margin-bottom: 14px; }
.er-teaser-count-row { display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 14px); }
.er-teaser-box { flex: 0 1 128px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: clamp(16px, 3.6vw, 24px) 6px clamp(12px, 2.6vw, 16px); border-radius: 18px;
    background: linear-gradient(180deg, #191b25, #15161f);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.65); }
.er-teaser-box::before { content: ""; position: absolute; left: 16%; right: 16%; top: 0; height: 1px; border-radius: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,201,131,.6), transparent); }
/* ⚠ 숫자도 단색 흰색 — 그라디언트 글자는 삼성 인터넷에서 안 보인다 */
.er-teaser-box b { font-size: clamp(40px, 12.5vw, 66px); font-weight: 900; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
    color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4), 0 0 18px rgba(255,255,255,.22); transition: transform .12s ease; }
.er-teaser-box b.pop { transform: scale(1.16); }
.er-teaser-box i { font-style: normal; font-size: clamp(11px, 2.4vw, 13px); font-weight: 700; color: #9aa0b0; }

.er-teaser-cue { font-size: clamp(16px, 4.2vw, 20px); font-weight: 800; margin-bottom: 20px; color: #f2f3f7; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.er-teaser-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 210px; padding: 15px 30px;
    border-radius: 13px; font-size: 15.5px; font-weight: 800; text-decoration: none; color: #2a2008;
    background: linear-gradient(180deg, #f3e0ad, #e8c983); box-shadow: 0 18px 38px -14px rgba(0,0,0,.55);
    transition: transform .15s, box-shadow .15s; }
.er-teaser-cta svg { width: 17px; height: 17px; }
.er-teaser-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -16px rgba(0,0,0,.6); color: #2a2008; }
.er-teaser-foot { font-size: 12.5px; color: #9aa0b0; margin-top: 16px; line-height: 1.5; }

/* ── 참가 크루 명단(가나다순 마퀴 + 중앙 스포트라이트) ──────────────────── */
.er-crews { margin: 2px 0 26px; }
.er-crews-head { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #6b7080; margin-bottom: 13px; }
.er-crews-head b { color: #e8c983; font-size: 14px; }
.er-crews-hint { font-size: 11.5px; font-weight: 600; color: #6b7080; margin: -6px 0 13px; }

/* 발표 전 상단 넛지 — 폰에서 위만 보고 넘기지 않게, 아래 응원 기능으로 유도 */
.er-teaser-cheernudge { display: inline-flex; align-items: center; gap: 7px; margin: 2px auto 0; padding: 9px 15px;
    border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; color: #ffd9e6;
    background: rgba(239,71,111,.12); border: 1px solid rgba(239,71,111,.34); }
.er-teaser-cheernudge b { color: #ff9ec2; }
.er-teaser-cheernudge .er-heart { width: 14px; height: 14px; color: #ff6b9a; }
.er-teaser-cheernudge-dn { width: 15px; height: 15px; color: #ff9ec2; animation: er-nudge-dn 1.5s ease-in-out infinite; }
@keyframes er-nudge-dn { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
body.ron-webview .er-teaser-cheernudge-dn { animation: none; }
@media (prefers-reduced-motion: reduce) { .er-teaser-cheernudge-dn { animation: none; } }
/* 응원 1위(MVP) 하이라이트 — 응원이 쌓이면 실시간으로 바뀐다 */
.er-mvp { display: inline-flex; align-items: center; gap: 11px; margin: 0 auto 15px; padding: 7px 15px 7px 7px; border-radius: 999px;
    max-width: 100%; background: linear-gradient(180deg, rgba(255,223,138,.22), rgba(255,255,255,.05));
    border: 1px solid rgba(255,214,120,.5); box-shadow: 0 12px 28px -14px rgba(0,0,0,.55), 0 0 26px -10px rgba(255,201,90,.5); }
.er-mvp[hidden] { display: none; }
.er-mvp-crown { display: inline-flex; color: #ffd874; flex: 0 0 auto; }
.er-mvp-crown svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.er-mvp-ava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 2px solid #ffd874;
    box-shadow: 0 0 14px -2px rgba(255,201,90,.6); background: rgba(255,255,255,.1); }
.er-mvp-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-mvp-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.er-mvp-label { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #ffe08a; }
.er-mvp-name { font-size: 14px; font-weight: 900; color: #fff; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-mvp-cheer { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.26);
    font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.er-mvp-cheer svg { width: 12px; height: 12px; color: #ff6b9a; }
.er-mvp.er-mvp-bump { animation: er-mvpbump .5s ease; }
@keyframes er-mvpbump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
body.ron-webview .er-mvp.er-mvp-bump { animation: none; }
/* 가로 스크롤 띠 — 손으로 스와이프할 수 있게 항상 overflow-x:auto. 자동 흐름은 JS 가 scrollLeft 로 굴리고
   터치하면 잠깐 멈춘다(모션 줄이기면 자동 없이 스와이프만). */
.er-crews-stageband { position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 16px; padding: 16px 0;
    background: #15161f;
    border: 1px solid rgba(255,255,255,.08);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
    mask: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.er-crews-stageband::-webkit-scrollbar { display: none; }
/* 중앙 스포트라이트 빔 — 지나가는 크루가 가운데에서 환하게 */
.er-crews-beam { position: absolute; left: 50%; top: -20%; bottom: -20%; width: clamp(130px, 34vw, 200px);
    transform: translateX(-50%); z-index: 2; pointer-events: none; mix-blend-mode: screen;
    background: radial-gradient(52% 60% at 50% 50%, rgba(255,240,200,.34), rgba(255,240,200,.1) 46%, transparent 72%);
    animation: er-beam 3.2s ease-in-out infinite; }
@keyframes er-beam { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.er-crews-track { display: flex; width: max-content; }
.er-crews-seq { display: flex; flex: 0 0 auto; gap: clamp(14px, 3vw, 24px); padding: 0 clamp(7px, 1.5vw, 12px); }
/* 가운데를 지나는 크루에게 랜덤 응원 문구 — "○○크루! 잘한다 달려라!" */
.er-crews-shout { min-height: 22px; margin-top: 13px; text-align: center; font-size: 14.5px; font-weight: 800;
    color: #ffd9e6; letter-spacing: -.01em; line-height: 1.3; word-break: keep-all; }
.er-crews-shout .er-shout-nm { color: #e8c983; }
.er-crews-shout.er-shout-pop { animation: er-shout-pop .5s ease; }
@keyframes er-shout-pop { 0% { opacity: .2; transform: translateY(5px) scale(.96); } 100% { opacity: 1; transform: none; } }
/* 크루 칩 = 응원 버튼(누르면 +1) */
.er-crew { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px;
    background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.er-crew:active { transform: scale(.93); }
.er-crew-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.16); background: #191b25;
    box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); transition: border-color .2s; }
.er-crew-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-crew:hover .er-crew-ava { border-color: rgba(232,201,131,.7); }
.er-crew.er-cheered .er-crew-ava { animation: er-cheerbump .42s ease; }
@keyframes er-cheerbump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.er-crew-name { font-size: 11.5px; font-weight: 600; color: #cfd3dc; text-align: center; line-height: 1.2;
    max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-crew-cheer { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 800;
    color: #f2f3f7; font-variant-numeric: tabular-nums; transition: background .2s; }
.er-crew:hover .er-crew-cheer { background: rgba(232,201,131,.16); }
.er-heart { width: 11px; height: 11px; color: #ff6b9a; }
/* 클릭 시 떠오르는 +1 — JS 가 body 에 붙인다 */
.er-cheer-pop { position: fixed; z-index: 9999; pointer-events: none; display: inline-flex; align-items: center; gap: 3px;
    font-size: 18px; font-weight: 900; color: #ff6b9a; text-shadow: 0 2px 8px rgba(0,0,0,.45);
    transform: translate(-50%, 0); animation: er-cheerpop .9s ease-out forwards; }
.er-cheer-pop svg { width: 16px; height: 16px; }
@keyframes er-cheerpop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1.12); } }
body.ron-webview .er-crews-beam { animation: none; }
/* 모션 축소(iOS 저전력·동작 줄이기 포함) — 자동 흐름 대신 손으로 '스와이프'해서 크루를 넘긴다 */
@media (prefers-reduced-motion: reduce) {
    .er-crews-track { animation: none; }
    .er-crews-seq:nth-child(2) { display: none; }   /* 복제본 1벌만 */
    .er-crews-beam { display: none; }
    .er-crews-stageband { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
        scroll-padding: 0 16px; -webkit-mask: none; mask: none; scrollbar-width: none; }
    .er-crews-stageband::-webkit-scrollbar { display: none; }
    .er-crew { scroll-snap-align: center; }
    .er-crews-hint::after { content: " (좌우로 넘겨보세요)"; color: rgba(255,255,255,.5); }
}
@media (max-width: 460px) {
    .er-crew { width: 66px; }
    .er-crew-ava { width: 48px; height: 48px; }
    .er-crew-name { font-size: 11px; max-width: 70px; }
}

/* 앱 웹뷰·모션축소 — 무한애니만 끈다(정적 레이어로도 충분히 화려) */
body.ron-webview .er-teaser-in > * { animation: none; opacity: 1; transform: none; }
body.ron-webview .runneron_page-wrapper { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .er-teaser-in > * { animation: none; opacity: 1; transform: none; } }

@media (max-width: 460px) {
    .er-teaser-stage { padding: clamp(36px, 7vw, 56px) 18px clamp(32px, 6vw, 48px); }
    /* ⚠ 작은 화면에서 헤드라인이 너무 커 가로로 넘쳤다 → 크기를 줄이고 줄바꿈 허용 */
    .er-teaser-headline { font-size: clamp(30px, 8.8vw, 44px); margin-bottom: 20px; word-break: keep-all; overflow-wrap: anywhere; }
    .er-teaser-prizes { gap: 8px; }
    .er-teaser-prize { padding: 12px 8px 13px; }
    .er-teaser-prize b { font-size: 13px; }
    .er-teaser-box { flex-basis: 0; border-radius: 15px; padding: 14px 2px 11px; }
    .er-teaser-box b { font-size: clamp(30px, 13vw, 48px); }
}
