/* ============================================
   NOVA CASINO — 컨셉 테마 파일 (활성: STORM / 번개)
   ------------------------------------------------
   ■ 컨셉 교체 방법: 이 파일(theme.css)과 assets/images/fx/ 의 3개 이미지를 같은 이름으로 바꿔 끼우면 끝.
      - fx-left.svg  : 좌측 큰 이펙트 (세로형, 320×720 권장)
      - fx-right.svg : 우측 큰 이펙트
      - fx-icon.svg  : 섹션 제목·로고 포인트 아이콘 (24×24)
   ■ 이 파일이 덮어쓰는 "이펙트 슬롯" (common.css / login.css 의 기본값은 SUPERNOVA):
      [공통]  body::before(배경 레이어1) body::after(배경 레이어2)
              .page__content > .container::before(상단 이펙트 L)  .page__content::after(이펙트 R)
              .footer::after(전체 섬광)  .section__title::before(제목 아이콘)  .hero(홈 히어로)
      [로그인] body.login-page::before/::after  .login-wrap::before/::after  .login-bg-overlay  .login-logo::after
   ■ 팔레트 변수는 common.css :root 그대로 사용. 여기서는 이펙트만 다룬다.
   ============================================ */

/* ================= 공통 (메인 페이지) ================= */

/* 좌측 번개 */
.page__content > .container::before {
    left: -20px;
    top: 40px;
    width: min(26vw, 260px);
    height: 78vh;
    margin: 0;
    background: url(../images/fx/fx-left.svg) top center / contain no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0;
    filter: opacity(0.55);          /* 페이지 가장자리 번개는 히어로보다 약하게 */
    animation: fxFlicker 11s linear infinite;
    will-change: opacity;
}

/* 우측 번개 */
.page__content::after {
    top: 60px;
    left: auto;
    right: -20px;
    width: min(26vw, 260px);
    height: 78vh;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: url(../images/fx/fx-right.svg) top center / contain no-repeat;
    opacity: 0;
    filter: opacity(0.55);
    animation: fxFlicker 15s linear infinite;
    animation-delay: 6s;
}

/* 전체 섬광 (콘텐츠 위에 아주 옅게) */
.footer::after {
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.35) 0%, rgba(184, 101, 255, 0.22) 30%, rgba(184, 101, 255, 0) 70%);
    opacity: 0;
    animation: fxFlash 11s linear infinite;
}

/* 섹션 제목 아이콘 */
.section__title::before {
    width: 24px;
    height: 24px;
    background: url(../images/fx/fx-icon.svg) center / contain no-repeat;
    clip-path: none;
    filter: drop-shadow(0 0 6px rgba(184, 101, 255, 0.9));
    animation: novaGlint 2.8s ease-in-out infinite;
}

/* 번개 깜빡임: 주기 앞 10% 근처에서 2~3회 튀고 중간에 한 번 더 */
/* 번쩍 2~3회 → 잔광이 천천히 사라짐 (자연 방전 느낌) */
@keyframes fxFlicker {
    0%, 9.6%  { opacity: 0; }
    9.9%      { opacity: 0.55; }
    10.2%     { opacity: 1; }
    10.9%     { opacity: 0.35; }
    11.5%     { opacity: 0.95; }
    12.6%     { opacity: 0.6; }
    14%       { opacity: 0.75; }
    17%       { opacity: 0.35; }
    21%       { opacity: 0.12; }
    26%       { opacity: 0; }
    54.6%     { opacity: 0; }
    54.9%     { opacity: 0.45; }
    55.2%     { opacity: 0.9; }
    56%       { opacity: 0.3; }
    56.8%     { opacity: 0.7; }
    59%       { opacity: 0.3; }
    64%, 100% { opacity: 0; }
}

@keyframes fxFlash {
    0%, 9.6%  { opacity: 0; }
    10.2%     { opacity: 0.26; }
    10.9%     { opacity: 0.06; }
    11.5%     { opacity: 0.2; }
    13%       { opacity: 0.1; }
    17%       { opacity: 0.05; }
    22%       { opacity: 0; }
    54.6%     { opacity: 0; }
    55.2%     { opacity: 0.16; }
    56.8%     { opacity: 0.06; }
    60%, 100% { opacity: 0; }
}

/* ================= 홈 히어로 (index.html .hero) =================
   박스가 아니라 배경 위에 떠 있는 로고 락업. 번개는 히어로 영역 밖(칩 줄 뒤)까지 뻗는다. */
.hero {
    position: relative;
    margin: 34px 0 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    z-index: 0;
}

/* 로고 뒤 은은한 보라 광원 */
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 180%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(139, 61, 255, 0.28) 0%, rgba(139, 61, 255, 0.08) 45%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero__fx {
    position: absolute;
    top: -55%;
    width: 42%;
    max-width: 520px;
    height: 230%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.hero__fx--l {
    left: -8%;
    background-image: url(../images/fx/fx-left.svg);
    animation: fxFlicker 8s linear infinite;
    filter: blur(0.6px);
}

.hero__fx--r {
    right: -8%;
    background-image: url(../images/fx/fx-right.svg);
    animation: fxFlicker 12s linear infinite;
    animation-delay: 3.5s;
    filter: blur(0.6px);
}

/* 섬광: 히어로 주변만 */
.hero::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: -60%;
    bottom: -60%;
    background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.45) 0%, rgba(184, 101, 255, 0.28) 30%, rgba(184, 101, 255, 0) 70%);
    opacity: 0;
    pointer-events: none;
    animation: fxFlash 8s linear infinite;
    z-index: -1;
}

.hero__logo {
    position: relative;
    z-index: 2;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 0 30px rgba(184, 101, 255, 0.6), 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* "O" 자리: 아이콘이 든 원 */
.hero__o {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92em;
    height: 0.92em;
    border-radius: 50%;
    border: 0.08em solid #fff;
    box-shadow: 0 0 24px rgba(184, 101, 255, 0.8), inset 0 0 18px rgba(184, 101, 255, 0.5);
    background: radial-gradient(circle, rgba(139, 61, 255, 0.55) 0%, rgba(139, 61, 255, 0.1) 70%);
    margin: 0 0.02em;
}

.hero__o img {
    width: 62%;
    height: 62%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
    animation: novaGlint 2.2s ease-in-out infinite;
}

.hero__sub {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: #d9b8ff;
    text-shadow: 0 0 18px rgba(184, 101, 255, 0.6);
}

.hero__tag {
    position: relative;
    z-index: 2;
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .hero { min-height: 190px; padding: 8px 16px; margin: 26px 0 22px; }
    .hero__logo { font-size: 56px; }
    .hero__sub { font-size: 22px; }
    .hero__tag { font-size: 14px; }
}

@media (max-width: 640px) {
    .hero { min-height: 150px; padding: 6px 12px; margin: 20px 0 16px; }
    .hero__logo { font-size: 44px; letter-spacing: 0.06em; }
    .hero__sub { font-size: 17px; letter-spacing: 0.4em; text-indent: 0.4em; }
    .hero__tag { font-size: 12px; letter-spacing: 0.35em; text-indent: 0.35em; }
    .hero__fx { width: 55%; top: -40%; height: 190%; }
    .page__content > .container::before,
    .page__content::after { width: 44vw; height: 60vh; }
}

/* ================= 로그인 (login.html) ================= */
body.login-page {
    background:
        radial-gradient(ellipse 70% 55% at 50% 115%, rgba(76, 29, 149, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 8% 0%, rgba(139, 61, 255, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 92% 5%, rgba(139, 61, 255, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #05020f 0%, #110a2e 55%, #08041c 100%);
}

/* 폭풍 구름 */
body.login-page::before {
    background:
        radial-gradient(closest-side at 25% 30%, rgba(88, 40, 170, 0.45), transparent 72%),
        radial-gradient(closest-side at 75% 25%, rgba(120, 60, 220, 0.30), transparent 72%),
        radial-gradient(closest-side at 50% 70%, rgba(40, 18, 90, 0.55), transparent 70%),
        radial-gradient(closest-side at 15% 85%, rgba(139, 61, 255, 0.22), transparent 70%);
    background-size: 75% 70%, 60% 60%, 90% 70%, 55% 55%;
    background-repeat: no-repeat;
    animation: nebulaBreath 34s ease-in-out infinite alternate;
}

/* 화면 섬광 */
body.login-page::after {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(184, 101, 255, 0.35) 30%, rgba(184, 101, 255, 0) 70%);
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0;
    animation: fxFlashLogin 9s linear infinite;
    will-change: opacity;
}

@keyframes fxFlashLogin {
    0%, 9.6%  { opacity: 0; }
    10.2%     { opacity: 0.4; }
    10.9%     { opacity: 0.08; }
    11.5%     { opacity: 0.32; }
    13%       { opacity: 0.16; }
    17%       { opacity: 0.08; }
    22%       { opacity: 0; }
    54.6%     { opacity: 0; }
    55.2%     { opacity: 0.26; }
    56.8%     { opacity: 0.1; }
    60%, 100% { opacity: 0; }
}

/* 좌/우 번개 */
.login-wrap::before,
.login-wrap::after {
    top: -8vh;
    width: min(46vw, 620px);
    height: 110vh;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    opacity: 0;
}

.login-wrap::before {
    left: -6vw;
    background-image: url(../images/fx/fx-left.svg);
    animation: fxFlicker 9s linear infinite;
    animation-delay: 0s;
    filter: blur(0.7px);
}

.login-wrap::after {
    left: auto;
    right: -6vw;
    background-image: url(../images/fx/fx-right.svg);
    animation: fxFlicker 13s linear infinite;
    animation-delay: 4.2s;
    filter: blur(0.7px);
}

/* 코어 글로우: 일렉트릭 바이올렛 */
.login-bg-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(139, 61, 255, 0.20) 0%, rgba(184, 101, 255, 0.10) 20%, transparent 45%);
}

/* 로고 포인트 */
.login-logo::after {
    top: -18px;
    right: -26px;
    width: 22px;
    height: 22px;
    background: url(../images/fx/fx-icon.svg) center / contain no-repeat;
    clip-path: none;
    filter: drop-shadow(0 0 6px rgba(184, 101, 255, 0.9));
    animation: glint 2.6s ease-in-out infinite;
}

/* 로그인 성공 연출은 login.css 의 워프를 그대로 사용 (섬광 레이어가 함께 터짐) */
body.login-page.is-success::after {
    animation: loginRaysBurst 0.95s ease-out forwards;
}

@media (max-width: 640px) {
    .login-wrap::before { left: -14vw; width: 62vw; }
    .login-wrap::after  { right: -14vw; width: 62vw; }
}


/* 로그인 로고 = 홈 히어로 락업 (login.html .login-logo.hero-lockup) */
.login-logo.hero-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    font-size: 16px;
    letter-spacing: normal;
    text-shadow: none;
    line-height: 1;
}

.login-logo.hero-lockup::after {
    display: none;                 /* 글린트 아이콘은 O 안에 있으므로 중복 제거 */
}

.login-logo.hero-lockup .hero__logo { font-size: 64px; }
.login-logo.hero-lockup .hero__sub  { font-size: 26px; margin-top: 8px; }
.login-logo.hero-lockup .hero__tag  { font-size: 14px; margin-top: 12px; }

@media (max-width: 640px) {
    .login-logo.hero-lockup .hero__logo { font-size: 48px; }
    .login-logo.hero-lockup .hero__sub  { font-size: 19px; letter-spacing: 0.4em; text-indent: 0.4em; }
    .login-logo.hero-lockup .hero__tag  { font-size: 12px; letter-spacing: 0.35em; text-indent: 0.35em; }
}

/* ---------- 로고 락업 정밀 조정 (참고 이미지 기준) ---------- */
.hero__logo,
.login-logo.hero-lockup .hero__logo {
    font-family: 'Montserrat', 'Noto Sans JP', system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 0.01em;
    gap: 0.04em;
    color: #ffffff;
    text-shadow:
        0 0 22px rgba(168, 85, 247, 0.55),
        0 0 60px rgba(139, 61, 255, 0.35),
        0 8px 30px rgba(0, 0, 0, 0.6);
}

.hero__o {
    width: 0.98em;
    height: 0.98em;
    border-width: 0.07em;
    border-color: #ffffff;
    margin: 0 0.015em;
    background: radial-gradient(circle, rgba(60, 20, 120, 0.95) 0%, rgba(20, 8, 50, 0.95) 70%);
    box-shadow:
        0 0 0 0.03em rgba(139, 61, 255, 0.55),
        0 0 26px rgba(168, 85, 247, 0.75),
        inset 0 0 22px rgba(139, 61, 255, 0.45);
}

.hero__o img {
    width: 78%;
    height: 78%;
    transform: rotate(8deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.9));
}

.hero__sub,
.login-logo.hero-lockup .hero__sub {
    font-family: 'Montserrat', 'Noto Sans JP', system-ui, sans-serif;
    font-weight: 500;
    color: #b865ff;
    letter-spacing: 0.52em;
    text-indent: 0.52em;
    text-shadow: 0 0 16px rgba(184, 101, 255, 0.55);
}

.hero__tag,
.login-logo.hero-lockup .hero__tag {
    font-family: 'Montserrat', 'Noto Sans JP', system-ui, sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.42em;
    text-indent: 0.42em;
}

.hero__logo { font-size: 78px; }
.hero__sub  { font-size: 28px; margin-top: 6px; }
.hero__tag  { font-size: 15px; margin-top: 12px; }

.section__title::before {
    width: 22px;
    height: 22px;
}
