/* ==========================================================================
   RNDBOX 디자인 시스템 "Midnight Vault"
   - 밝은 커머스 화면 + 먹빛 보라(night) 강조 밴드 + 등급별 박스 아트
   - 토큰 → 기본 → 컴포넌트 → 공통 크롬(프로모 바·헤더·탭·드로어·푸터·하단 탭바·상담 버튼)
   base.css / rndbox.css 다음, 페이지 CSS 앞에 로드합니다. 1rem = 10px.
   ========================================================================== */
:root {
    --rb-ink: #15111F;
    --rb-ink-2: #3D3750;
    --rb-ink-3: #6B6580;      /* 흰 바탕 5.5:1 — 캡션 최저선 */
    --rb-ink-4: #A29DB2;      /* 비활성·장식 전용(본문 글자 금지) */
    --rb-line: #ECE9F3;
    --rb-line-2: #DCD7E6;
    --rb-bg: #FFFFFF;
    --rb-bg-2: #F7F6FB;
    --rb-bg-3: #EFEDF6;
    --rb-night: #0E0A18;
    --rb-night-2: #1B1233;
    --rb-night-ink: #CFC8E8;  /* 어두운 바탕 보조 글자 12:1 */
    --rb-night-ink-2: #A39DB8;/* 어두운 바탕 캡션 7.5:1 */
    --rb-violet: #6D3AED;     /* 흰 글자 6:1 */
    --rb-violet-600: #5B2BD6;
    --rb-violet-50: #F3EEFF;
    --rb-violet-100: #E6DCFF;
    --rb-violet-ink: #4C1D95;
    --rb-gold: #F4C243;
    --rb-gold-ink: #8A5B05;
    --rb-hot: #E5484D;
    --rb-hot-ink: #B4232A;
    /* 당첨 등급 색(오프닝 연출과 같은 계열). bg 는 흰 글자 4.5:1 이상, ink 는 흰 바탕 글자색 */
    --rb-g-x-bg: linear-gradient(135deg, #F5B70A, #F0569B 55%, #8B5CF6);
    --rb-g-x: #D6409B;  --rb-g-x-ink: #B02A7A;
    --rb-g-a: #E8A317;  --rb-g-a-on: #2B1D00; --rb-g-a-ink: #8F5E00;
    --rb-g-b: #8B4DF0;  --rb-g-b-ink: #6B2FD6;
    --rb-g-c: #1C72D6;  --rb-g-c-ink: #1A63BD;
    --rb-g-d: #0B8565;  --rb-g-d-ink: #0B7A5C;
    --rb-g-e: #6E7789;  --rb-g-e-ink: #5F6675;
    --rb-radius-xs: 8px;
    --rb-radius-sm: 12px;
    --rb-radius: 16px;
    --rb-radius-lg: 20px;
    --rb-radius-xl: 28px;
    --rb-shadow-1: 0 1px 2px rgba(21, 17, 31, .06), 0 1px 1px rgba(21, 17, 31, .03);
    --rb-shadow-2: 0 2px 4px rgba(21, 17, 31, .04), 0 12px 28px rgba(21, 17, 31, .08);
    --rb-shadow-3: 0 4px 8px rgba(21, 17, 31, .06), 0 24px 56px rgba(21, 17, 31, .14);
    --rb-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --rb-font-display: "SUIT Variable", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --rb-container: 1240px;
    --rb-gutter: 24px;
    --rb-tabbar-h: 62px;
    --rb-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 767px) {
    :root { --rb-gutter: 16px; }
}

/* ---------- 기본 ---------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;           /* 안전망: 어떤 요소가 넘쳐도 화면이 옆으로 밀리지 않게 */
    padding-bottom: 0 !important; /* base.css 의 하단 여백(10rem) 대신 푸터가 탭바 높이만큼 비움 */
}
@supports (overflow: clip) {
    html { overflow-x: clip; }
}
body {
    font-family: var(--rb-font);
    color: var(--rb-ink);
    background: var(--rb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-break: keep-all;
    overflow-wrap: break-word;
}
::selection { background: var(--rb-violet-100); color: var(--rb-ink); }
:focus-visible { outline: 2px solid var(--rb-violet); outline-offset: 2px; border-radius: 4px; }
main { margin-bottom: 0; min-height: 50vh; }
img { image-rendering: auto; }

.rb-container {
    width: 100%;
    max-width: calc(var(--rb-container) + var(--rb-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--rb-gutter);
}
.rb-skip {
    position: absolute; left: 12px; top: -60px; z-index: 100002;
    padding: 1rem 1.6rem; border-radius: var(--rb-radius-sm);
    background: var(--rb-ink); color: #fff; font-size: 1.4rem; font-weight: 600;
}
.rb-skip:focus { top: 12px; color: #fff; }
.rb-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 타이포 ---------- */
.rb-eyebrow {
    display: inline-block;
    font: 700 1.2rem/1 var(--rb-font-display);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rb-violet);
}
.rb-eyebrow--ko { letter-spacing: .02em; text-transform: none; font-size: 1.3rem; }
.rb-title {
    margin: .8rem 0 0;
    font: 800 3rem/1.25 var(--rb-font-display);
    letter-spacing: -.02em;
    color: var(--rb-ink);
}
.rb-desc { margin: .8rem 0 0; font-size: 1.5rem; line-height: 1.6; color: var(--rb-ink-3); }
@media (max-width: 767px) {
    .rb-title { font-size: 2.2rem; }
    .rb-desc { font-size: 1.4rem; }
}

/* ---------- 버튼 ---------- */
.rb-btn, .rb_btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 4.8rem; padding: 0 2.2rem;
    border: 1px solid transparent; border-radius: 999px;
    font: 600 1.5rem/1.2 var(--rb-font); letter-spacing: -.01em;
    background: var(--rb-ink); color: #fff;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--rb-ease);
}
.rb-btn:hover, .rb_btn:hover { color: #fff; background: #2A2438; }
.rb-btn:active, .rb_btn:active { transform: translateY(1px); }
.rb-btn--primary, .rb_btn.purple { background: var(--rb-violet); border-color: var(--rb-violet); color: #fff; }
.rb-btn--primary:hover, .rb_btn.purple:hover { background: var(--rb-violet-600); border-color: var(--rb-violet-600); color: #fff; }
.rb-btn--ghost, .rb_btn.ghost { background: #fff; color: var(--rb-ink); border-color: var(--rb-line-2); }
.rb-btn--ghost:hover, .rb_btn.ghost:hover { background: var(--rb-bg-2); color: var(--rb-ink); border-color: var(--rb-ink-4); }
.rb-btn--light { background: #fff; color: var(--rb-ink); }
.rb-btn--light:hover { background: var(--rb-violet-50); color: var(--rb-ink); }
.rb_btn.yellow { background: var(--rb-gold); border-color: var(--rb-gold); color: var(--rb-ink); }
.rb-btn--sm { min-height: 3.6rem; padding: 0 1.6rem; font-size: 1.4rem; }
.rb-btn--block { display: flex; width: 100%; }
.rb-btn:disabled, .rb_btn:disabled, .rb_btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }

.rb-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 4.4rem; height: 4.4rem; padding: 0;
    border: 0; border-radius: 999px; background: transparent; color: var(--rb-ink);
    cursor: pointer; transition: background-color .2s;
}
.rb-iconbtn:hover { background: var(--rb-bg-3); color: var(--rb-ink); }
.rb-iconbtn svg { width: 2.4rem; height: 2.4rem; }
.rb-ico { width: 2.4rem; height: 2.4rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 배지 ---------- */
.rb-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    height: 2.2rem; padding: 0 .8rem; border-radius: 999px;
    font: 700 1.1rem/1 var(--rb-font); letter-spacing: .01em; white-space: nowrap;
    background: var(--rb-violet-50); color: var(--rb-violet-ink);
}
.rb-badge--gold { background: #FFF4D2; color: var(--rb-gold-ink); }
.rb-badge--hot { background: #FFE9EA; color: var(--rb-hot-ink); }
.rb-badge--dark { background: var(--rb-ink); color: #fff; }
.rb-sup {
    display: inline-flex; align-items: center; height: 1.5rem; padding: 0 .5rem; margin-left: .3rem;
    border-radius: 999px; font: 800 .9rem/1 var(--rb-font-display); letter-spacing: .04em;
    vertical-align: .6em; background: var(--rb-hot); color: #fff;
}
.rb-sup--new { background: var(--rb-violet); }

/* ---------- 섹션 머리 ---------- */
.rb-section { padding-block: 7.2rem; }
.rb-section--soft { background: var(--rb-bg-2); }
.rb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6rem; margin-bottom: 2.8rem; }
.rb-more {
    display: inline-flex; align-items: center; gap: .2rem; flex: none;
    min-height: 4.4rem; padding: 0 .4rem;
    font-size: 1.4rem; font-weight: 600; color: var(--rb-ink-2);
}
.rb-more:hover { color: var(--rb-violet); }
.rb-more svg { width: 1.8rem; height: 1.8rem; }
@media (max-width: 767px) {
    .rb-section { padding-block: 4.8rem; }
    .rb-section__head { margin-bottom: 2rem; }
}

/* ==========================================================================
   공통 크롬
   ========================================================================== */

/* ---------- 프로모 바(비로그인) ---------- */
.rb-promo { display: block; background: var(--rb-night); color: #fff; }
.rb-promo:hover { color: #fff; }
.rb-promo__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; min-height: 4.6rem; padding-block: .6rem; }
.rb-promo__text { margin: 0; font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.rb-promo__text strong { font-weight: 700; color: #FFD66B; }
.rb-promo__timer { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.3rem; color: var(--rb-night-ink); }
.rb-countdown {
    display: inline-block; min-width: 8.4rem; padding: .5rem .8rem; border-radius: .6rem;
    background: rgba(255, 255, 255, .12); color: #fff; text-align: center;
    font: 700 1.4rem/1 var(--rb-font-display); font-variant-numeric: tabular-nums; letter-spacing: .06em;
}
.rb-promo__cta {
    display: inline-flex; align-items: center; height: 3rem; padding: 0 1.4rem; border-radius: 999px;
    background: #fff; color: var(--rb-ink); font-size: 1.3rem; font-weight: 700;
}
@media (max-width: 767px) {
    .rb-promo__inner { justify-content: space-between; gap: 1.2rem; min-height: 5.6rem; }
    .rb-promo__text { font-size: 1.35rem; line-height: 1.4; }
    .rb-promo__text .rb-br { display: block; }
    .rb-promo__timer { flex-direction: column; align-items: flex-end; gap: .4rem; font-size: 1.1rem; }
    .rb-promo__cta { display: none; }
}
@media (min-width: 768px) {
    .rb-promo__text .rb-br { display: none; }
}

/* ---------- 헤더 ---------- */
.rb-header { position: relative; z-index: 900; background: #fff; border-bottom: 1px solid var(--rb-line); }
.rb-utility { border-bottom: 1px solid var(--rb-line); font-size: 1.3rem; color: var(--rb-ink-3); }
.rb-utility__inner { display: flex; align-items: center; justify-content: flex-end; height: 4rem; }
.rb-utility__links { display: flex; align-items: center; gap: 2.2rem; }
.rb-utility__links a { display: inline-flex; align-items: center; gap: .4rem; color: var(--rb-ink-3); }
.rb-utility__links a:hover { color: var(--rb-ink); }
.rb-mainbar__inner { display: flex; align-items: center; gap: 2.4rem; height: 7.6rem; }
.rb-brand { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.rb-logo { display: block; }
.rb-logo img { display: block; height: 3.4rem; width: auto; }
.rb-adult { display: inline-flex; opacity: .7; }
.rb-adult img { height: 3rem; width: auto; }
.rb-gnb { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.rb-gnb a {
    position: relative; display: inline-flex; align-items: center;
    height: 4.4rem; padding: 0 1.4rem; border-radius: 999px;
    font: 600 1.6rem/1 var(--rb-font); letter-spacing: -.01em; color: var(--rb-ink-2);
    transition: color .2s, background-color .2s;
}
.rb-gnb a:hover { color: var(--rb-ink); background: var(--rb-bg-2); }
.rb-gnb a[aria-current="page"] { color: var(--rb-ink); }
.rb-gnb a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: .2rem; width: 1.8rem; height: .3rem;
    margin-left: -.9rem; border-radius: 3px; background: var(--rb-violet);
}
@media (max-width: 1319px) {
    .rb-mainbar__inner { gap: 1.6rem; }
    .rb-gnb { gap: 0; }
    .rb-gnb a { padding: 0 1.1rem; font-size: 1.55rem; }
}
.rb-actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.rb-actions .rb-btn { min-height: 4rem; padding: 0 1.6rem; font-size: 1.4rem; }
.rb-login-link { display: inline-flex; align-items: center; height: 4rem; padding: 0 1.2rem; font-size: 1.4rem; font-weight: 600; color: var(--rb-ink-2); }
.rb-login-link:hover { color: var(--rb-ink); }
.rb-points {
    display: inline-flex; align-items: center; gap: .6rem; height: 4rem; padding: 0 1.4rem 0 1.2rem;
    border-radius: 999px; background: var(--rb-violet-50); color: var(--rb-ink); font-size: 1.4rem; white-space: nowrap;
}
.rb-points:hover { color: var(--rb-ink); background: var(--rb-violet-100); }
.rb-points strong { font-weight: 700; }
.rb-points .point { font: 800 1.4rem/1 var(--rb-font-display); color: var(--rb-violet); font-variant-numeric: tabular-nums; }
.rb-burger, .rb-account-m { display: none; }

/* 모바일·태블릿 메뉴 탭(가로 스크롤) */
.rb-tabs { display: none; }

@media (max-width: 1199px) {
    .rb-utility, .rb-gnb, .rb-actions, .rb-adult { display: none; }
    .rb-mainbar__inner { position: relative; justify-content: center; height: 5.6rem; }
    .rb-burger, .rb-account-m { display: inline-flex; position: absolute; top: 50%; transform: translateY(-50%); }
    .rb-burger { left: calc(var(--rb-gutter) - 1rem); }
    .rb-account-m { right: calc(var(--rb-gutter) - 1rem); }
    .rb-logo img { height: 2.8rem; }
    .rb-tabs {
        display: block; border-top: 1px solid var(--rb-line);
        overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.6rem, #000 calc(100% - 2.4rem), transparent);
        mask-image: linear-gradient(90deg, transparent 0, #000 1.6rem, #000 calc(100% - 2.4rem), transparent);
    }
    .rb-tabs::-webkit-scrollbar { display: none; }
    .rb-tabs__list { display: flex; gap: .2rem; width: max-content; margin: 0 auto; padding: 0 1.2rem; list-style: none; }
    .rb-tabs__list a {
        position: relative; display: inline-flex; align-items: center; height: 4.8rem; padding: 0 1.2rem;
        font-size: 1.5rem; font-weight: 500; color: var(--rb-ink-3); white-space: nowrap;
    }
    .rb-tabs__list a[aria-current="page"] { color: var(--rb-ink); font-weight: 700; }
    .rb-tabs__list a[aria-current="page"]::after {
        content: ""; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: .25rem; border-radius: 2px; background: var(--rb-ink);
    }
    .rb-tabs .rb-sup { vertical-align: .7em; }
}

/* ---------- 모바일 드로어 ---------- */
.rb-drawer { position: fixed; inset: 0; z-index: 10000; visibility: hidden; pointer-events: none; }
.rb-drawer.is-open { visibility: visible; pointer-events: auto; }
.rb-drawer__scrim { position: absolute; inset: 0; background: rgba(14, 10, 24, .5); opacity: 0; transition: opacity .25s; }
.rb-drawer.is-open .rb-drawer__scrim { opacity: 1; }
.rb-drawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column;
    width: min(34rem, 88%); background: #fff; box-shadow: var(--rb-shadow-3);
    transform: translateX(-100%); transition: transform .3s var(--rb-ease);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 1.2rem 2rem calc(3.2rem + env(safe-area-inset-bottom));
}
.rb-drawer.is-open .rb-drawer__panel { transform: none; }
.rb-drawer__top { display: flex; align-items: center; justify-content: space-between; height: 5.2rem; margin-bottom: 1.2rem; }
.rb-drawer__top .rb-logo img { height: 2.8rem; }
.rb-drawer__account { padding: 1.8rem; border-radius: var(--rb-radius); background: var(--rb-bg-2); }
.rb-drawer__hello { margin: 0 0 1.2rem; font-size: 1.5rem; color: var(--rb-ink-2); line-height: 1.5; }
.rb-drawer__hello strong { color: var(--rb-ink); }
.rb-drawer__hello .point { font: 800 1.6rem/1 var(--rb-font-display); color: var(--rb-violet); }
.rb-drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rb-drawer__btns .rb-btn { min-height: 4.4rem; font-size: 1.4rem; padding: 0 1rem; }
.rb-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 1.6rem 0 .8rem; }
.rb-quick a {
    display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem .2rem;
    border-radius: var(--rb-radius-sm); font-size: 1.25rem; color: var(--rb-ink-2);
}
.rb-quick a:hover { background: var(--rb-bg-2); color: var(--rb-ink); }
.rb-quick svg { width: 2.6rem; height: 2.6rem; color: var(--rb-ink); }
.rb-acc { border-top: 1px solid var(--rb-line); }
.rb-acc > summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 5.4rem; cursor: pointer; list-style: none;
    font-size: 1.6rem; font-weight: 600; color: var(--rb-ink);
}
.rb-acc > summary::-webkit-details-marker { display: none; }
.rb-acc > summary svg { width: 1.8rem; height: 1.8rem; color: var(--rb-ink-3); transition: transform .2s; }
.rb-acc[open] > summary svg { transform: rotate(180deg); }
.rb-acc__list { display: grid; padding: 0 0 1.2rem; }
.rb-acc__list a { display: flex; align-items: center; min-height: 4.2rem; padding: 0 1.2rem; border-radius: var(--rb-radius-xs); font-size: 1.45rem; color: var(--rb-ink-3); }
.rb-acc__list a:hover { background: var(--rb-bg-2); color: var(--rb-ink); }
.rb-drawer__links { display: grid; padding: 1.2rem 0; border-top: 1px solid var(--rb-line); }
.rb-drawer__links a { display: flex; align-items: center; min-height: 4.4rem; font-size: 1.5rem; font-weight: 500; color: var(--rb-ink-2); }
.rb-drawer__links a:hover { color: var(--rb-ink); }
.rb-drawer__cs { padding: 2rem 1.8rem; margin-top: .8rem; border-radius: var(--rb-radius); background: var(--rb-night); color: var(--rb-night-ink); font-size: 1.3rem; line-height: 1.7; }
.rb-drawer__cs .rb-cs-tel { display: block; margin: .2rem 0 1.2rem; font: 800 2.2rem/1.2 var(--rb-font-display); color: #fff; }
.rb-drawer__cs .rb-btn { margin-bottom: 1.2rem; }

/* ---------- 상담 버튼(카카오 대체) ---------- */
.rb-fab {
    position: fixed; right: 2.4rem; bottom: 2.4rem; z-index: 9990;
    width: 6.4rem; height: 6.4rem; padding: 0; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; filter: drop-shadow(0 6px 16px rgba(21, 17, 31, .22));
    transition: transform .2s var(--rb-ease);
}
.rb-fab:hover { transform: translateY(-2px); }
.rb-fab { transition: transform .25s var(--rb-ease), opacity .25s; }
.rb-fab.is-tucked { transform: translateY(1.6rem) scale(.9); opacity: 0; pointer-events: none; }
.rb-fab img { display: block; width: 100%; height: 100%; }

/* ---------- 하단 탭바(모바일) ---------- */
.rb-tabbar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995;
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--rb-line);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    padding-bottom: env(safe-area-inset-bottom);
}
.rb-tabbar__list {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    height: var(--rb-tabbar-h); margin: 0 auto; padding: 0 .4rem; max-width: 56rem; list-style: none;
}
.rb-tabbar__list a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    height: 100%; min-width: 0; color: var(--rb-ink-3);
    font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
}
.rb-tabbar__list a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-tabbar__list svg { width: 2.4rem; height: 2.4rem; }
.rb-tabbar__list a[aria-current="page"] { color: var(--rb-violet); font-weight: 700; }
.rb-tabbar__list a[aria-current="page"] svg { stroke-width: 2.1; }
html.is-app .rb-tabbar { display: block; }
@media (max-width: 767px) {
    .rb-tabbar { display: block; }
    .rb-fab { right: 1.6rem; bottom: calc(var(--rb-tabbar-h) + env(safe-area-inset-bottom) + 1.6rem); width: 5.6rem; height: 5.6rem; }
    #rndbox-toast { bottom: calc(var(--rb-tabbar-h) + env(safe-area-inset-bottom) + 2.4rem); }
}

/* ---------- 푸터 ---------- */
.rb-footer { background: var(--rb-night); color: var(--rb-night-ink-2); font-size: 1.35rem; line-height: 1.7; }
.rb-footer a { color: var(--rb-night-ink); }
.rb-footer a:hover { color: #fff; }
.rb-footer__top {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4.8rem;
    padding: 6.4rem 0 4.8rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.rb-footer__brand .rb-logo img { height: 3.2rem; }
.rb-footer__tagline { margin: 1.2rem 0 2.4rem; color: var(--rb-night-ink); font-size: 1.4rem; }
.rb-footer__cs-label { display: block; font-size: 1.25rem; color: var(--rb-night-ink-2); }
.rb-footer__tel { display: block; margin: .2rem 0 .8rem; font: 800 2.6rem/1.2 var(--rb-font-display); color: #fff; letter-spacing: -.01em; }
.rb-footer__hours { margin: 0 0 2rem; }
.rb-footer__h { margin: 0 0 1.6rem; font: 700 1.5rem/1.2 var(--rb-font-display); letter-spacing: -.01em; color: #fff; }
.rb-footer__menu { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.rb-footer__menu a { display: inline-flex; align-items: center; min-height: 3.2rem; font-size: 1.45rem; }
.rb-footer__apps { display: flex; flex-wrap: wrap; gap: 1rem; }
.rb-footer__apps button {
    display: inline-flex; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 1rem;
    background: transparent; cursor: pointer; overflow: hidden; transition: border-color .2s;
}
.rb-footer__apps button:hover { border-color: rgba(255, 255, 255, .5); }
.rb-footer__apps img { display: block; height: 4.4rem; width: auto; }
.rb-footer__info { margin: 1.6rem 0 0; font-size: 1.25rem; color: var(--rb-night-ink-2); }
.rb-footer__info dt { display: inline; }
.rb-footer__info dd { display: inline; margin: 0; }
.rb-footer__bottom { padding: 3.2rem 0 4.8rem; }
.rb-footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.rb-footer__legal a { display: inline-flex; align-items: center; min-height: 3.2rem; font-size: 1.35rem; font-weight: 600; }
.rb-footer__legal a.is-strong { color: #fff; }
.rb-biz { display: flex; flex-wrap: wrap; gap: .2rem 2rem; margin: 0; padding: 0; list-style: none; font-size: 1.25rem; }
.rb-biz span { color: var(--rb-night-ink-2); }
.rb-biz b { font-weight: 500; color: var(--rb-night-ink); }
.rb-copy { margin: 1.6rem 0 0; font: 600 1.2rem/1 var(--rb-font-display); letter-spacing: .14em; color: var(--rb-night-ink-2); }
@media (max-width: 1023px) {
    .rb-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.2rem; }
    .rb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .rb-footer { padding-bottom: calc(var(--rb-tabbar-h) + env(safe-area-inset-bottom)); }
    .rb-footer__top { padding-top: 4.8rem; gap: 2.8rem 1.6rem; }
    .rb-footer__tel { font-size: 2.2rem; }
    .rb-footer__apps img { height: 4rem; }
    .rb-footer__bottom { padding-bottom: 3.2rem; }
    .rb-biz { flex-direction: column; }
}

/* ---------- 공용 다이얼로그·토스트 다듬기 ---------- */
#hashbox-js-dialog-overlay { background: rgba(14, 10, 24, .55); }
#hashbox-js-dialog { border-radius: var(--rb-radius-lg); box-shadow: var(--rb-shadow-3); }
#hashbox-js-dialog-message { padding: 3.2rem 2.4rem 2.4rem; color: var(--rb-ink); }
#hashbox-js-dialog-actions { gap: .8rem; padding: 0 1.6rem 1.6rem; border-top: 0; }
#hashbox-js-dialog-actions button { min-height: 4.8rem; border-radius: 999px; font-weight: 600; }
#hashbox-js-dialog-cancel { border: 1px solid var(--rb-line-2) !important; color: var(--rb-ink-2); }
#hashbox-js-dialog-ok { background: var(--rb-ink) !important; color: #fff !important; }
#hashbox-js-dialog-ok:hover { background: #2A2438 !important; }
#rndbox-toast { border-radius: 999px; background: rgba(21, 17, 31, .92); padding: 1.2rem 2.2rem; }

/* ---------- 공용 페이지 머리·에러 ---------- */
.page_title_wrap { max-width: calc(var(--rb-container) + var(--rb-gutter) * 2); padding: 4.8rem var(--rb-gutter) 1.6rem; }
.page_title { font: 800 3rem/1.25 var(--rb-font-display); letter-spacing: -.02em; color: var(--rb-ink); }
.page_sub_title { font-size: 1.5rem; color: var(--rb-ink-3); margin-top: .8rem; }
@media (max-width: 767px) {
    .page_title_wrap { padding-top: 3.2rem; }
    .page_title { font-size: 2.4rem; }
}
.error_code { font-family: var(--rb-font-display); font-weight: 800; color: var(--rb-violet); }

/* ---------- 모션 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
