/* 02-play · 네온 플레이존 — 게임 HUD 스타일. 모바일 우선, PC 최대폭 1160px */
:root {
  --bg: #0B1026;
  --bg-2: #111a3d;
  --panel: #131d45;
  --fg: #EAF0FF;
  --muted: #B8C4E6;
  --lime: #C6FF3D;
  --blue: #2F6BFF;
  --blue-text: #7FA6FF;
  --line: rgba(47, 107, 255, .35);
  --head: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --cut: 18px;

  --bar-bg: rgba(11, 16, 38, .95);
  --bar-visit-bg: #C6FF3D;
  --bar-visit-fg: #0B1026;
  --bar-tg-bg: #2A5FE8;
  --bar-tg-fg: #FFFFFF;
  --float-bg: #2A5FE8;
  --float-fg: #FFFFFF;
  --focus: #C6FF3D;
  --ph-bg: #1a2554;
  --banner-radius: 4px;
  --banner-max: 1000px;
  --banner-pad: 8px 20px;
}

html { background: var(--bg); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(47, 107, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.skip-link { background: var(--lime); color: var(--bg); font-weight: 700; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ── 머리 ── */
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(11, 16, 38, .85); }
.top-in { max-width: 1160px; margin-inline: auto; padding: 0 20px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: var(--head); font-size: 22px; letter-spacing: .5px; text-decoration: none; color: var(--fg); }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; font-size: 13px; color: var(--bg); background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.top-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--lime); }
.top-tag .dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* ── 공통 버튼 ── */
.btn-play {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 14px 28px; font-family: var(--head); font-size: 20px; letter-spacing: .3px; line-height: 1.2;
  color: var(--bg); background: var(--lime); text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 -5px 0 rgba(11, 16, 38, .22);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-play svg { width: 20px; height: 20px; flex: none; transition: transform .15s ease; }
.btn-play:hover { background: #d8ff75; transform: translateY(-2px); }
.btn-play:hover svg { transform: translateX(4px); }
.btn-play:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(11, 16, 38, .22); }

.btn-line {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  font-weight: 700; font-size: 16px; color: var(--lime); text-decoration: none;
  border: 2px solid var(--lime); background: rgba(198, 255, 61, .04);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-line span { transition: transform .15s ease; }
.btn-line:hover { background: var(--lime); color: var(--bg); }
.btn-line:hover span { transform: translateX(4px); }
.btn-line:active { transform: translateY(2px); }

/* 첫 화면·마지막 텔레그램 버튼 = 사이트의 주 버튼(라임) */
.tg-btn.tg-hero, .tg-btn.tg-final {
  gap: 12px; min-height: 64px; padding: 14px 28px; border-radius: 0; justify-content: center;
  font-family: var(--head); font-weight: 400; font-size: 20px; letter-spacing: .3px; line-height: 1.25;
  color: var(--bg); background: var(--lime);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 -5px 0 rgba(11, 16, 38, .22);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tg-btn.tg-hero svg, .tg-btn.tg-final svg { width: 26px; height: 26px; transition: transform .15s ease; }
.tg-btn.tg-hero .tg-text, .tg-btn.tg-final .tg-text { text-align: center; }
.tg-btn.tg-hero .tg-label, .tg-btn.tg-final .tg-label { font-size: inherit; }
.tg-btn.tg-hero:hover, .tg-btn.tg-final:hover { background: #d8ff75; transform: translateY(-2px); }
.tg-btn.tg-hero:hover svg, .tg-btn.tg-final:hover svg { transform: translate(3px, -2px); }
.tg-btn.tg-hero:active, .tg-btn.tg-final:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(11, 16, 38, .22); }
.tg-btn .tg-label { font-size: 16px; }

.first-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; font-weight: 500; color: var(--fg); }
.chip.chip-blue { background: var(--blue-text); }
.rooms-cta { margin-top: 30px; display: flex; justify-content: center; }
.float-tg { border-radius: 0; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.mbar { border-top: 1px solid var(--line); }
.mbar a { border-radius: 4px; }

/* ── HUD 모서리 ── */
.br { position: absolute; width: 26px; height: 26px; border: 0 solid var(--lime); pointer-events: none; z-index: 2; }
.br-tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.br-tr { top: -8px; right: -8px; border-top-width: 3px; border-right-width: 3px; }
.br-bl { bottom: -8px; left: -8px; border-bottom-width: 3px; border-left-width: 3px; }
.br-br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; padding: 30px 0 36px;
  background: radial-gradient(ellipse 70% 50% at 80% 30%, rgba(47, 107, 255, .28), transparent 70%),
              radial-gradient(ellipse 50% 40% at 0% 90%, rgba(198, 255, 61, .08), transparent 70%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 20%, var(--lime) 50%, var(--blue) 80%, transparent); opacity: .6; }
.hero-grid { display: grid; gap: 34px; }

.hud-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; font-weight: 900; font-size: 14px; letter-spacing: 1.5px; color: var(--bg); background: var(--lime); }

.hero-title { margin-top: 16px; font-family: var(--head); font-weight: 400; font-size: clamp(56px, 17.5vw, 76px); line-height: 1.02; letter-spacing: -1px; }
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--lime); text-shadow: 4px 4px 0 var(--blue); }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: 17px; color: var(--muted); }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.hero-cta .tg-btn { width: 100%; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.frame { position: relative; }
.frame-hero { width: min(86vw, 380px); }
.frame-hero::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--blue);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.ph-hero { aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.ph-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(11, 16, 38, .55)); }
.frame-tag { position: absolute; left: -6px; top: 22px; z-index: 3; padding: 4px 10px; font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--bg); background: var(--lime); }
.frame-ready { position: absolute; right: 14px; bottom: 12px; z-index: 3; font-family: var(--head); font-size: 22px; letter-spacing: 3px; color: var(--lime); }

/* 스테이지 메뉴 */
.stage-menu { margin-top: 40px; }
.stage-menu-title { font-size: 14px; font-weight: 900; letter-spacing: 3px; color: var(--blue-text); margin-bottom: 10px; }
.stage-menu ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage-menu li:last-child { grid-column: 1 / -1; }
.stage-menu a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; text-decoration: none;
  color: var(--fg); font-weight: 700; font-size: 16px; background: rgba(19, 29, 69, .85); border: 1px solid var(--line);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.stage-menu a b { font-family: var(--head); font-weight: 400; font-size: 18px; color: var(--lime); }
.stage-menu a:hover { border-color: var(--lime); background: rgba(198, 255, 61, .08); }
.stage-menu a:active { transform: translateY(2px); }

/* ── 스테이지 공통 ── */
.stage { position: relative; padding: 56px 0; }
.stage-alt { background: linear-gradient(180deg, rgba(19, 29, 69, .0), rgba(19, 29, 69, .75) 12%, rgba(19, 29, 69, .75) 88%, rgba(19, 29, 69, 0)); }
.stage-no { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--blue-text); }
.stage-no span { padding: 3px 10px; color: var(--lime); border: 1px solid var(--lime); }
.stage-no i { display: block; width: 28px; height: 2px; background: var(--blue); }
.stage h2 { margin-top: 14px; font-family: var(--head); font-weight: 400; font-size: clamp(32px, 9.4vw, 46px); line-height: 1.15; letter-spacing: -.5px; }
.stage h2 em { font-style: normal; color: var(--lime); }
.stage-text { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 36em; }
.stage-head .btn-line { margin-top: 24px; }
.stage-head-center { text-align: center; }
.stage-head-center .stage-no { justify-content: center; }
.stage-head-center .stage-text { margin-inline: auto; }

/* STAGE 01 게임 화면 */
.stage-grid { display: grid; gap: 34px; align-items: center; }
.screen { position: relative; background: var(--panel); border: 2px solid var(--blue); padding: 10px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.screen-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--blue-text); }
.screen-dots { display: flex; gap: 6px; }
.screen-dots i { width: 10px; height: 10px; background: var(--blue); }
.screen-dots i:first-child { background: var(--lime); }
.screen-body { position: relative; background: #060a1a; border: 1px solid var(--line); padding: 16px 12px 18px; overflow: hidden; }
.screen-body::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
.screen-art { width: 100%; height: auto; }
.screen-press { margin-top: 6px; text-align: center; font-family: var(--head); font-size: 22px; letter-spacing: 3px; color: var(--lime); }
.screen-pad { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; }
.pad-cross { position: relative; width: 44px; height: 44px; }
.pad-cross::before, .pad-cross::after { content: ''; position: absolute; background: #2a3a78; }
.pad-cross::before { left: 15px; top: 0; width: 14px; height: 44px; }
.pad-cross::after { top: 15px; left: 0; width: 44px; height: 14px; }
.pad-btns { display: flex; gap: 10px; }
.pad-btns i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 14px; color: var(--bg); background: var(--lime); }
.pad-btns i + i { background: var(--blue-text); }

/* STAGE 02 퀘스트 */
.quests { margin-top: 34px; display: grid; gap: 14px; counter-reset: q; }
.quest { position: relative; padding: 22px 20px 22px 22px; background: rgba(11, 16, 38, .8); border: 1px solid var(--line); border-left: 4px solid var(--lime); }
.quest-no { font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--lime); }
.quest h3 { margin-top: 6px; font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.25; }
.quest p:last-child { margin-top: 6px; color: var(--muted); }
.notice-row { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg); padding: 12px 14px; background: rgba(47, 107, 255, .12); border: 1px dashed rgba(127, 166, 255, .6); }
.notice-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; font-weight: 900; font-size: 14px; color: var(--bg); background: var(--lime); }

/* STAGE 03 코인·기프티콘 스코어보드 */
.score { position: relative; display: grid; gap: 28px; padding: 30px 22px; background: linear-gradient(135deg, #152259, #0f1740 60%); border: 2px solid var(--blue);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.score .notice { margin-top: 18px; }
.exchange { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px; background: rgba(6, 10, 26, .6); border: 1px solid var(--line); }
.ex-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ex-item svg { width: 72px; height: 72px; }
.ex-item span { font-family: var(--head); font-size: 20px; letter-spacing: 3px; color: var(--lime); }
.ex-arrow { display: flex; gap: 4px; }
.ex-arrow i { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 12px solid var(--blue-text); }
.ex-arrow i:nth-child(2) { opacity: .7; }
.ex-arrow i:nth-child(3) { opacity: .45; }
.btn-wide { width: 100%; }

/* STAGE 04 사진관 */
.banner-in { padding: 30px 0 0; }
.rooms { margin-top: 30px; display: grid; gap: 22px; }
.room { position: relative; background: rgba(11, 16, 38, .85); border: 1px solid var(--line); padding: 20px; }
.room-body h3 { margin-top: 6px; font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.2; }
.room-body p:not(.room-tag) { margin-top: 8px; color: var(--muted); }
.room-body .btn-line, .room-body .btn-play { margin-top: 20px; }
.room-tag { font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--lime); }
.room-tag-vip { color: var(--blue-text); }
.room-daily { display: grid; gap: 22px; }
.frame-side { width: min(100%, 300px); margin: 8px auto 0; }
.ph-side { aspect-ratio: 4 / 5; clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px); }
.room-vip { display: grid; gap: 22px; border-color: rgba(198, 255, 61, .45);
  background: repeating-linear-gradient(-45deg, rgba(198, 255, 61, .05) 0 14px, transparent 14px 28px), rgba(11, 16, 38, .9); }
.vip-lock { display: grid; place-items: center; gap: 10px; padding: 30px 10px; background: rgba(6, 10, 26, .7); border: 2px dashed rgba(198, 255, 61, .5); }
.vip-lock svg { width: 88px; height: 88px; }
.vip-lock-label { font-family: var(--head); font-size: 24px; letter-spacing: 4px; color: var(--lime); }
.room-vip .btn-play { width: 100%; }

/* STAGE 05 참여 */
.final { padding-top: 40px; padding-bottom: 64px; }
.final-box { position: relative; text-align: center; padding: 40px 20px; background: radial-gradient(ellipse at 50% 0%, rgba(47, 107, 255, .35), transparent 70%), var(--panel); border: 2px solid var(--blue); }
.stage-no-center { justify-content: center; }
.final-box .stage-text { margin-inline: auto; }
.final-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.final-cta .tg-btn { justify-content: center; }

/* 바닥 */
.foot { border-top: 1px solid var(--line); background: #080c1e; padding-top: 30px; padding-bottom: 30px; }
.foot-in { text-align: center; }
.foot-logo { font-family: var(--head); font-size: 22px; color: var(--lime); }
.foot-note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.foot-copy { margin-top: 6px; font-size: 14px; color: #9AA8D0; }

/* ── 짧은 등장 효과 (첫 화면 한 번) ── */
@keyframes hudIn { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hero-title .line { animation: hudIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) { animation-delay: .1s; }
.hero-title .line:nth-child(3) { animation-delay: .2s; }
.frame-hero { animation: panelIn .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
.quest.reveal:nth-child(2) { transition-delay: .08s; }
.quest.reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line, .frame-hero { animation: none; }
  .btn-play, .btn-line, .tg-btn, .stage-menu a { transition: none; }
}

/* ── 430 이상 ── */
@media (min-width: 420px) {
  .wrap, .top-in { padding-inline: 24px; }
  .banner-wrap { padding-inline: 24px; }
  .banner-in { padding-inline: 0; }
}

/* ── 태블릿 ── */
@media (min-width: 700px) {
  .hero-cta { align-items: flex-start; }
  .hero-cta .tg-btn { width: auto; }
  .stage-menu ol { grid-template-columns: repeat(5, 1fr); }
  .stage-menu li:last-child { grid-column: auto; }
  .stage-menu a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .quests { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: 1fr 1fr; }
  .final-cta { flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }
  .notice-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── PC ── */
@media (min-width: 900px) {
  .top-in { min-height: 72px; }
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 60px; align-items: center; }
  .hero-title { font-size: clamp(76px, 7.4vw, 108px); }
  .hero-lead { font-size: 18px; }
  .frame-hero { width: 420px; }
  .ph-hero { aspect-ratio: 3 / 4; }
  .stage-menu { margin-top: 56px; }
  .stage { padding: 88px 0; }
  .stage h2 { font-size: 48px; }
  .stage-text { font-size: 17px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .score { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 28px 48px; padding: 48px; }
  .score .btn-wide { grid-column: 2; }
  .exchange { grid-row: 1; grid-column: 2; padding: 36px 20px; gap: 18px; }
  .score-copy { grid-row: 1 / span 2; }
  .ex-item svg { width: 96px; height: 96px; }
  .rooms { gap: 28px; }
  .room { padding: 28px; }
  .room-vip .btn-play { width: auto; white-space: nowrap; }
  .final { padding-top: 56px; padding-bottom: 88px; }
  .final-box { padding: 64px 40px; max-width: 900px; margin-inline: auto; }
  .final-box h2 { font-size: 52px; }
  .banner-wrap { padding-block: 16px; --banner-max: 860px; }
}

/* ── 넓은 PC: 사진관 카드를 가로로 ── */
@media (min-width: 1100px) {
  .rooms { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .room-daily { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 28px; }
  .frame-side { width: 240px; margin: 0; }
  .room-vip { grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; gap: 26px; }
  .room-vip .room-body { align-self: center; }
  .vip-lock { min-height: 260px; padding: 20px 8px; }
  .vip-lock svg { width: 72px; height: 72px; }
  .vip-lock-label { font-size: 20px; letter-spacing: 3px; }
}
