/* ============================================================
   RÉM AKADÉMIA — NIGHT CLASS PREMIUM EVENT SHELL
   Külön réteg: a meglévő season-logika változatlan marad.
   ============================================================ */

body.codex-page[data-shell-active="remakademia-event"] {
    --ras-violet: #a970ff;
    --ras-violet-hot: #ca8cff;
    --ras-lilac: #ddd0ff;
    --ras-moon: #b9d8ff;
    --ras-ink: #03030a;
    --ras-panel: rgba(6, 7, 18, 0.92);
    --ras-line: rgba(180, 151, 255, 0.22);
    min-height: 100vh;
    overflow-x: hidden;
    color: #edeafb;
    background:
        linear-gradient(180deg, rgba(2, 3, 10, 0.32), #03040c 82%),
        url("../image/backgrounds/helyszínek/rem akademia.webp") center top / cover fixed no-repeat,
        #03040c;
}

body.codex-page[data-shell-active="remakademia-event"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(125, 91, 236, 0.13), transparent 27%),
        radial-gradient(circle at 80% 38%, rgba(164, 91, 255, 0.1), transparent 25%),
        linear-gradient(90deg, rgba(1, 2, 7, 0.78), transparent 20%, transparent 80%, rgba(1, 2, 7, 0.78));
}

body.codex-page[data-shell-active="remakademia-event"] .landing-topbar {
    border-bottom-color: rgba(178, 139, 255, 0.22);
    background: linear-gradient(180deg, rgba(3, 4, 13, 0.98), rgba(3, 4, 12, 0.9));
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.48), 0 1px rgba(183, 145, 255, 0.08);
}

.ras-nav-link {
    color: #d7c2ff !important;
    text-shadow: 0 0 13px rgba(178, 120, 255, 0.56);
}

.ras-page {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    max-width: none;
    margin: 0 auto;
    padding: 28px clamp(18px, 2.6vw, 46px) 100px;
    box-sizing: border-box;
}

.ras-world-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ras-moon-haze {
    position: absolute;
    width: 560px;
    height: 560px;
    left: -160px;
    top: 3vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 129, 255, 0.12), rgba(117, 86, 238, 0.025) 45%, transparent 68%);
    filter: blur(4px);
    animation: rasMoonBreath 8s ease-in-out infinite;
}

.ras-web {
    position: absolute;
    width: 420px;
    aspect-ratio: 1;
    opacity: 0.08;
    background:
        repeating-radial-gradient(circle at 0 0, transparent 0 38px, #cdb7ff 39px 40px),
        repeating-conic-gradient(from 0deg at 0 0, #cdb7ff 0 0.7deg, transparent 0.7deg 15deg);
    mask-image: radial-gradient(circle at 0 0, #000, transparent 72%);
}

.ras-web--one { right: -40px; top: 80px; transform: rotate(90deg); }
.ras-web--two { left: 0; bottom: -120px; transform: rotate(-8deg); }

/* ---------- Cinematic event hero ---------- */

.ras-header {
    isolation: isolate;
    min-height: 488px;
    align-items: stretch;
    gap: 24px;
    padding: clamp(38px, 5vw, 76px) clamp(34px, 5.5vw, 88px);
    border: 1px solid rgba(201, 174, 255, 0.36);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(2, 3, 11, 0.97) 0%, rgba(4, 4, 15, 0.87) 29%, rgba(7, 5, 18, 0.38) 57%, rgba(4, 3, 12, 0.44) 100%),
        linear-gradient(0deg, rgba(3, 3, 10, 0.75), transparent 45%),
        url("../image/backgrounds/helyszínek/remakademia.webp") center 30% / cover no-repeat;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), inset 0 0 90px rgba(17, 9, 40, 0.35);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.ras-header::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    border: 1px solid rgba(205, 181, 255, 0.1);
    clip-path: inherit;
    pointer-events: none;
}

.ras-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8662e4 20%, #e0c5ff 50%, #8662e4 78%, transparent);
    box-shadow: 0 0 18px rgba(177, 126, 255, 0.65);
}

.ras-header-content {
    position: relative;
    z-index: 2;
    width: min(660px, 56%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ras-header-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d2bcff;
    font-size: 0.69rem;
    letter-spacing: 0.22em;
}

.ras-header-eyebrow span {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b88aff);
}

.ras-header-eyebrow span:last-child { background: linear-gradient(90deg, #b88aff, transparent); }

.ras-header-title {
    margin: 12px 0 13px;
    color: #f7f1ff;
    font-family: "AOW", "SpectralBold", serif;
    font-size: clamp(3.4rem, 6vw, 6.1rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-shadow: 0 5px 34px rgba(0,0,0,0.9), 0 0 24px rgba(145, 90, 255, 0.22);
}

.ras-header-lead {
    max-width: 620px;
    margin: 0;
    color: rgba(222, 219, 237, 0.78);
    font-size: 0.96rem;
    line-height: 1.62;
}

.ras-season-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
}

.ras-season-tags span {
    color: rgba(207, 193, 236, 0.74);
    font: 700 0.6rem/1 "Montserrat", sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ras-season-tags span::first-letter { color: var(--ras-violet-hot); }

.ras-header-countdown {
    width: fit-content;
    margin-top: 28px;
    gap: 12px;
    padding: 10px 15px 10px 11px;
    border: 1px solid rgba(189, 158, 255, 0.24);
    border-radius: 0;
    background: rgba(3, 4, 12, 0.65);
    box-shadow: inset 0 0 20px rgba(151, 93, 255, 0.05);
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.ras-header-countdown img { width: 25px; height: 25px; opacity: 0.88; filter: drop-shadow(0 0 7px rgba(187, 146, 255, 0.5)); }
.ras-header-countdown div { display: flex; align-items: baseline; gap: 10px; }
.ras-header-countdown small { color: #7f7891; font: 700 0.54rem/1 "Montserrat", sans-serif; letter-spacing: 0.11em; text-transform: uppercase; }
.ras-header-countdown span { color: #e7dcff; font-weight: 700; }

.ras-header-side {
    position: relative;
    z-index: 3;
    margin-left: auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.ras-season-ticket {
    position: relative;
    width: 310px;
    height: 230px;
    display: grid;
    place-items: center;
    transform: rotate(-3deg);
    animation: rasTicketFloat 5.4s ease-in-out infinite;
}

.ras-ticket-aura {
    position: absolute;
    width: 230px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(157, 87, 255, 0.34), transparent 68%);
    filter: blur(14px);
    animation: rasAuraPulse 3.6s ease-in-out infinite;
}

.ras-season-ticket img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 25px rgba(0,0,0,0.78)) drop-shadow(0 0 17px rgba(147, 88, 255, 0.22));
}

.ras-wallet {
    position: relative;
    width: 250px;
    box-sizing: border-box;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid rgba(196, 166, 255, 0.36);
    border-radius: 0;
    background: linear-gradient(135deg, rgba(19, 12, 39, 0.88), rgba(3, 5, 14, 0.94));
    box-shadow: 0 12px 30px rgba(0,0,0,0.38), inset 0 0 24px rgba(155,92,255,0.07);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.ras-wallet img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(184, 120, 255, 0.52)); }
.ras-wallet > div { min-width: 0; }
.ras-wallet small { display: block; margin-bottom: 3px; color: #81788f; font: 700 0.53rem/1 "Montserrat", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.ras-wallet strong { display: flex; align-items: baseline; gap: 5px; }
.ras-wallet span { color: #f1e8ff; font-size: 1.35rem; }
.ras-wallet em { color: #82788f; font: 500 0.75rem/1 "Montserrat", sans-serif; font-style: normal; }

.ras-header-index {
    position: absolute;
    top: 28px;
    right: 30px;
    color: rgba(214, 193, 255, 0.22);
    font: 700 0.48rem/1.45 "Montserrat", sans-serif;
    letter-spacing: 0.21em;
    text-align: right;
}

.ras-header-index strong { color: rgba(214, 193, 255, 0.52); font-size: 1.4rem; }

/* ---------- Curriculum command deck ---------- */

.ras-content-wrap {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--ras-line);
    background:
        linear-gradient(rgba(177, 139, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(177, 139, 255, 0.022) 1px, transparent 1px),
        linear-gradient(145deg, rgba(10, 10, 26, 0.96), rgba(3, 5, 14, 0.97));
    background-size: 42px 42px, 42px 42px, auto;
    box-shadow: 0 25px 70px rgba(0,0,0,0.46), inset 0 1px rgba(255,255,255,0.025);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.ras-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(184, 151, 255, 0.14);
}

.ras-kicker {
    display: block;
    color: var(--ras-violet-hot);
    font: 700 0.58rem/1 "Montserrat", sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ras-section-heading h2,
.ras-collection-copy h2 {
    margin: 7px 0 0;
    color: #f1ecf8;
    font-family: "AOW", serif;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.ras-section-heading > p {
    max-width: 560px;
    margin: 0;
    color: #7f7b8d;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: right;
}

.ras-body {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
    min-height: 440px;
}

.ras-daily-panel { min-width: 0; }

.ras-daily-card {
    position: relative;
    height: 100%;
    min-height: 350px;
    box-sizing: border-box;
    padding: 26px 24px 22px;
    border: 1px solid rgba(190, 157, 255, 0.24);
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(156, 90, 255, 0.11), transparent 32%),
        linear-gradient(160deg, rgba(15, 12, 31, 0.96), rgba(4, 6, 15, 0.98));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.ras-daily-card::after {
    content: "03";
    position: absolute;
    right: 13px;
    bottom: 4px;
    color: rgba(195, 168, 255, 0.045);
    font: 700 6rem/1 "Montserrat", sans-serif;
    pointer-events: none;
}

.ras-daily-card-head { position: relative; z-index: 1; margin-bottom: 22px; }
.ras-daily-card-head span { color: #8d80a9; font: 700 0.52rem/1 "Montserrat", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.ras-daily-card h3 { margin: 7px 0 5px; font-family: "AOW", serif; font-size: 1.35rem; font-weight: 400; letter-spacing: 0.04em; }
.ras-daily-card-head p { margin: 0; color: #696577; font-size: 0.72rem; line-height: 1.45; }

.ras-daily-list { position: relative; z-index: 1; gap: 10px; margin-bottom: 22px; }
.ras-daily-list li { min-height: 38px; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(182, 151, 244, 0.1); background: rgba(2,3,10,0.43); color: #817c8d; font-size: 0.76rem; }
.ras-daily-list li.is-done { border-color: rgba(118, 231, 199, 0.22); color: #d1cddb; background: rgba(62, 151, 129, 0.045); }
.ras-daily-check { width: 23px; height: 23px; border-radius: 2px; border-color: rgba(183, 147, 255, 0.25); background: #050610; }
.ras-daily-list li.is-done .ras-daily-check { box-shadow: 0 0 10px rgba(109, 247, 193, 0.15); }

.ras-daily-reward-row {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(184, 151, 255, 0.12);
}

.ras-daily-reward-row img { width: 37px; height: 37px; filter: drop-shadow(0 0 8px rgba(164, 98, 255, 0.44)); }
.ras-daily-reward-row span { color: #e5d7ff; }
.ras-daily-claim-btn,
.ras-milestone-claim-btn {
    border: 1px solid rgba(202, 162, 255, 0.6);
    border-radius: 0;
    background: linear-gradient(135deg, #6330a8, #a25be7);
    box-shadow: inset 0 1px rgba(255,255,255,0.14), 0 0 13px rgba(154,82,231,0.16);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.ras-daily-claim-btn:hover:not(:disabled),
.ras-milestone-claim-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.16); box-shadow: 0 0 18px rgba(178,103,255,0.3); }

.ras-daily-claim-btn:disabled { border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.04); }

.ras-milestone-panel {
    min-width: 0;
    padding: 25px 24px 28px;
    border: 1px solid rgba(190, 157, 255, 0.2);
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(157,93,255,0.08), transparent 32%),
        linear-gradient(160deg, rgba(10, 9, 24, 0.96), rgba(4, 6, 15, 0.98));
    scrollbar-width: thin;
    scrollbar-color: rgba(164, 103, 235, 0.36) transparent;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.ras-milestone-heading {
    position: sticky;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ras-milestone-heading span { color: #817691; font: 700 0.5rem/1 "Montserrat", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.ras-milestone-heading h3 { margin: 6px 0 0; color: #e9e2f5; font-family: "AOW", serif; font-size: 1.22rem; font-weight: 400; letter-spacing: 0.04em; }
.ras-milestone-legend { color: #766d85; font: 600 0.58rem/1 "Montserrat", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.ras-milestone-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ras-violet-hot); box-shadow: 0 0 10px var(--ras-violet); }

.ras-progress-track-wrap { min-width: 1280px; padding: 0 18px 8px; box-sizing: border-box; }
.ras-progress-bar { height: 4px; margin: 38px 33px 0; border-radius: 0; overflow: visible; background: rgba(176, 143, 235, 0.11); box-shadow: 0 0 0 1px rgba(183,151,244,0.06); }
.ras-progress-bar::before { content: ""; position: absolute; inset: -7px 0; background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(190,157,255,0.08) 59px 60px); pointer-events: none; }
.ras-progress-fill { position: relative; border-radius: 0; background: linear-gradient(90deg, #5130a4, #a965ff, #dfbdff); box-shadow: 0 0 13px rgba(173,104,255,0.56); }
.ras-progress-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 11px; height: 11px; border: 2px solid #f1ddff; border-radius: 50%; transform: translateY(-50%); background: #a867ff; box-shadow: 0 0 16px #b977ff; }
.ras-progress-track { align-items: flex-start; margin-top: 0; padding: 0; }

.ras-milestone-node { width: 72px; gap: 9px; padding-top: 14px; }
.ras-milestone-marker { width: 31px; height: 31px; border-radius: 2px; border-color: rgba(179,145,238,0.24); background: #080815; transform: rotate(45deg); box-shadow: 0 5px 15px rgba(0,0,0,0.35); }
.ras-milestone-node .ras-milestone-marker { font-size: 0; }
.ras-milestone-node.is-claimable .ras-milestone-marker { border-color: #c183ff; background: #1a0e2c; box-shadow: 0 0 17px rgba(177, 97, 255, 0.56); animation: rasMarkerPulse 1.8s ease-in-out infinite; }
.ras-milestone-node.is-claimed .ras-milestone-marker { border-color: #6df7c1; background: rgba(32, 91, 75, 0.42); }

/* Counter-rotate the marker text without changing the dynamic markup. */
.ras-milestone-marker { color: transparent; }
.ras-milestone-marker::before { content: attr(data-threshold); display: block; color: #a8a0b5; font: 700 0.58rem/1 "Montserrat", sans-serif; transform: rotate(-45deg); }
.ras-milestone-node.is-claimable .ras-milestone-marker::before { color: #f0dcff; }
.ras-milestone-node.is-claimed .ras-milestone-marker::before { color: #9dffdc; }

.ras-milestone-rewards { min-height: 50px; align-items: center; gap: 4px; }
.ras-milestone-reward { width: 43px; height: 43px; border-radius: 1px; border-color: rgba(189, 154, 255, 0.23); background: radial-gradient(circle, rgba(113,65,177,0.11), rgba(2,3,9,0.84)); box-shadow: 0 8px 17px rgba(0,0,0,0.32); }
.ras-milestone-reward img { padding: 4px; filter: drop-shadow(0 0 7px rgba(175, 104, 255, 0.24)); }
.ras-milestone-reward span { right: -5px; bottom: -5px; min-width: 19px; padding: 3px 4px; border: 1px solid rgba(195,166,255,0.3); border-radius: 1px; color: #eee7f7; background: #070710; font-size: 0.52rem; text-align: center; }
.ras-milestone-node.is-locked .ras-milestone-reward { opacity: 0.32; filter: grayscale(0.8); }
.ras-milestone-check { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(109,247,193,0.35); border-radius: 50%; background: rgba(50,145,113,0.12); font-size: 0.66rem; }
.ras-milestone-claim-btn { min-height: 24px; padding: 4px 9px; font-size: 0.52rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Season pass gate ---------- */

.ras-body.is-locked { filter: blur(5px) saturate(0.34) brightness(0.52); }

/* A hozzáférés egyetlen szülőszintű állapotból vezérli a kaput és a
   tartalmat. Ez felülír minden esetleg beragadt régi is-locked osztályt. */
.ras-content-wrap.has-season-access .ras-body {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

.ras-content-wrap.has-season-access .ras-gate {
    display: none !important;
    backdrop-filter: none;
}

.ras-gate {
    inset: 93px clamp(22px, 3vw, 38px) clamp(22px, 3vw, 38px);
    border-radius: 0;
    background: rgba(2, 3, 10, 0.42);
    backdrop-filter: blur(3px);
}

.ras-gate-card {
    position: relative;
    width: min(100%, 570px);
    max-width: none;
    box-sizing: border-box;
    gap: 11px;
    padding: 34px 48px 38px;
    border: 1px solid rgba(204, 172, 255, 0.5);
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0, rgba(170, 94, 255, 0.17), transparent 35%),
        linear-gradient(155deg, rgba(18, 12, 37, 0.98), rgba(3, 4, 12, 0.99));
    box-shadow: 0 35px 90px rgba(0,0,0,0.76), 0 0 45px rgba(135,74,218,0.18), inset 0 1px rgba(255,255,255,0.04);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.ras-gate-card::before { content: "ENROLLMENT // NIGHT CLASS"; color: #887ba1; font: 700 0.5rem/1 "Montserrat", sans-serif; letter-spacing: 0.22em; }
.ras-gate-card::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(196,161,255,0.08); pointer-events: none; }
.ras-gate-ticket { width: 180px; height: 120px; animation: rasTicketFloat 5.4s ease-in-out infinite; }
.ras-gate-card h2 { color: #f2ebfa; font-family: "AOW", serif; font-size: 1.75rem; font-weight: 400; letter-spacing: 0.04em; }
.ras-gate-card p { max-width: 460px; color: #9992a6; font-size: 0.84rem; line-height: 1.55; }
.ras-gate-price { margin: 4px 0; padding: 8px 15px; border-block: 1px solid rgba(184,146,255,0.12); color: #eed8ff; }
.ras-gate-price img {
    width: 28px;
    height: 40px;
    flex: 0 0 28px;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 7px rgba(188, 105, 255, 0.42));
}
.ras-gate-buy-btn { min-width: 210px; margin-top: 4px; padding: 13px 28px; border: 1px solid rgba(218,180,255,0.7); border-radius: 0; background: linear-gradient(135deg, #542499, #a75de9); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Featured skins ---------- */

.ras-collection {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
    padding: clamp(26px, 3.4vw, 48px);
    border: 1px solid rgba(186, 150, 255, 0.2);
    background: linear-gradient(140deg, rgba(7, 7, 18, 0.96), rgba(3, 4, 12, 0.94));
    box-shadow: 0 25px 75px rgba(0,0,0,0.43);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.ras-collection-copy { display: flex; flex-direction: column; justify-content: center; }
.ras-collection-copy p { margin: 16px 0 22px; color: #817b8e; font-size: 0.8rem; line-height: 1.6; }
.ras-collection-rule { display: grid; grid-template-columns: repeat(3, 42px); gap: 9px; align-items: center; }
.ras-collection-rule span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(190,153,255,0.26); transform: rotate(45deg); color: #c9b2e9; font: 700 0.58rem/1 "Montserrat", sans-serif; }
.ras-collection-rule b { font: inherit; transform: rotate(-45deg); }
.ras-collection-rule small { grid-column: 1 / -1; margin-top: 5px; color: #665f73; font: 700 0.5rem/1 "Montserrat", sans-serif; letter-spacing: 0.13em; text-transform: uppercase; }

.ras-skin-showcase { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; min-width: 0; }
.ras-skin-card { position: relative; min-height: 365px; overflow: hidden; border: 1px solid rgba(186,151,255,0.18); background: #05050c; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.ras-skin-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(2,3,9,0.97) 92%); pointer-events: none; }
.ras-skin-card img { width: 100%; height: 100%; min-height: 365px; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 400ms ease; }
.ras-skin-card:hover img { transform: scale(1.045); filter: brightness(1.1) saturate(1.08); }
.ras-skin-card > div { position: absolute; left: 20px; right: 20px; bottom: 19px; z-index: 2; display: flex; flex-direction: column; }
.ras-skin-card small { color: var(--ras-violet-hot); font: 700 0.54rem/1 "Montserrat", sans-serif; letter-spacing: 0.16em; }
.ras-skin-card strong { margin-top: 6px; color: #f2edf8; font-family: "AOW", serif; font-size: 1.65rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.ras-skin-card span { margin-top: 3px; color: #7f7889; font-size: 0.68rem; }

/* ---------- Toast ---------- */

.ras-toast { border-radius: 0; border-color: rgba(194,158,255,0.5); background: rgba(10,7,22,0.97); box-shadow: 0 15px 40px rgba(0,0,0,0.55), 0 0 22px rgba(155,91,236,0.2); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }

@keyframes rasTicketFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@keyframes rasAuraPulse { 0%,100% { opacity: 0.48; transform: scale(0.9); } 50% { opacity: 0.92; transform: scale(1.08); } }
@keyframes rasMoonBreath { 0%,100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 0.9; transform: scale(1.04); } }
@keyframes rasMarkerPulse { 0%,100% { box-shadow: 0 0 10px rgba(177,97,255,0.34); } 50% { box-shadow: 0 0 24px rgba(193,119,255,0.72); } }

@media (max-width: 1180px) {
    .ras-header { min-height: 430px; }
    .ras-header-content { width: min(620px, 63%); }
    .ras-header-side { width: 235px; }
    .ras-season-ticket { width: 245px; height: 190px; }
    .ras-body { grid-template-columns: 280px minmax(0,1fr); }
    .ras-collection { grid-template-columns: 260px minmax(0,1fr); }
    .ras-skin-card, .ras-skin-card img { min-height: 315px; }
}

@media (max-width: 900px) {
    .ras-header { min-height: 520px; padding: 42px 34px; background-position: 60% center; }
    .ras-header-content { width: 72%; }
    .ras-header-side { position: absolute; right: 22px; bottom: 30px; width: 220px; }
    .ras-season-ticket { display: none; }
    .ras-wallet { width: 210px; }
    .ras-body { grid-template-columns: 1fr; }
    .ras-daily-card { min-height: 0; }
    .ras-collection { grid-template-columns: 1fr; }
    .ras-collection-copy { max-width: 620px; }
}

@media (max-width: 680px) {
    .ras-page { padding: 14px 10px 70px; }
    .ras-header { min-height: 570px; padding: 34px 23px 116px; align-items: flex-start; background-position: 58% center; }
    .ras-header::after { height: 1px; }
    .ras-header-content { width: 100%; justify-content: flex-start; }
    .ras-header-title { font-size: clamp(3rem, 15vw, 4.3rem); }
    .ras-header-lead { max-width: 92%; font-size: 0.84rem; }
    .ras-season-tags span:nth-child(2) { display: none; }
    .ras-header-countdown div { flex-direction: column; gap: 4px; }
    .ras-header-side { left: 22px; right: 22px; bottom: 28px; width: auto; align-items: flex-start; }
    .ras-wallet { width: 225px; }
    .ras-header-index { display: none; }
    .ras-content-wrap { margin-top: 14px; padding: 18px 12px; }
    .ras-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ras-section-heading > p { text-align: left; }
    .ras-milestone-panel { padding-inline: 14px; }
    .ras-milestone-heading { align-items: flex-start; flex-direction: column; }
    .ras-gate { inset: 135px 12px 18px; }
    .ras-gate-card { padding: 29px 20px 31px; }
    .ras-gate-ticket { width: 145px; height: 95px; }
    .ras-collection { margin-top: 14px; padding: 28px 18px; }
    .ras-skin-showcase { grid-template-columns: 1fr; }
    .ras-skin-card, .ras-skin-card img { min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
    .ras-season-ticket,
    .ras-gate-ticket,
    .ras-ticket-aura,
    .ras-moon-haze,
    .ras-milestone-node.is-claimable .ras-milestone-marker { animation: none !important; }
    .ras-skin-card img { transition: none; }
}
