/* RiseGuardian visual migration, 2026-10-08.
   Kept separate from the original UI: routes, forms and game logic are unchanged.
   Licensed self-hosted fonts and supplied artwork; no external font/CDN requests. */
@font-face { font-family: 'Realm Text'; src: url('../realm/fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Realm Text'; src: url('../realm/fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Realm Text'; src: url('../realm/fonts/Barlow-SemiBold.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Realm UI'; src: url('../realm/fonts/BarlowCondensed-SemiBold.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Realm Display'; src: url('../realm/fonts/CinzelDecorative-Bold.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

body.realm-theme {
    --night-950: #080a09; --night-900: #0c0f0d; --night-850: #121714; --night-800: #1b211c;
    --gold-100: #eee3cb; --gold-300: #dcc396; --gold-500: #bda06c; --gold-700: #725932;
    --text: #e3e7df; --muted: #a0aa9c; --line: #c7b28b30;
    --panel: #141a16; --panel-soft: #1a211b; --shadow: 0 20px 55px #0005;
    --content: 1240px; --font-body: 'Realm Text', 'Segoe UI', sans-serif;
    --font-display: 'Realm Display', Georgia, serif;
    margin: 0; background: #0c0d0e; color: var(--text);
    font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.realm-theme [hidden] { display: none !important; }
.realm-theme :is(h1,h2,h3,h4) { color: var(--gold-100); text-shadow: none; }
.realm-theme :is(button,input,textarea,select) { font-family: var(--font-body); }
.realm-theme :is(a,button,input,select,summary):focus-visible { outline: 2px solid #dfc598; outline-offset: 4px; }
.realm-theme .eyebrow { font: 600 12px/1.5 'Realm UI', sans-serif; letter-spacing: .18em; color: #baa277; }
.realm-theme .site-shell { position: relative; isolation: isolate; background: none; }
.realm-theme .site-shell::before, .realm-theme .site-shell::after { display: none; }
.realm-theme #main-content { min-height: 60vh; }
.realm-theme .section { width: min(var(--content), calc(100% - 64px)); }
.realm-theme .button {
    min-height: 46px; padding: 12px 24px; border: 1px solid #ba9e694f;
    border-radius: 2px; font: 600 16px/1.3 'Realm UI', sans-serif;
    letter-spacing: .07em; box-shadow: none; gap: 12px;
}
.realm-theme .button::before, .realm-theme .button::after { display: none; }
.realm-theme .button--primary { background: linear-gradient(115deg,#e0c796,#b28d53); border-color: #e3c993; color: #22291c; box-shadow: inset 0 0 0 3px #fff2, 0 5px 0 #6e5327; }
.realm-theme .button--primary:hover { background: #e9d2aa; color: #151b13; transform: translateY(-1px); }
.realm-theme .button--ghost { background: #0d130ecc; color: #d6c5a4; border-color: #cbb98a62; }
.realm-theme .button--ghost:hover { background: #c3a56c12; border-color: #dfc28b; }
.realm-theme :is(.button.is-disabled,.button:disabled) { opacity: .55; cursor: not-allowed; transform: none; }

/* Peripheral characters stay behind content and are absent on narrow screens. */
.realm-atmosphere { position: fixed; inset: 90px 0 0; pointer-events: none; z-index: -1; overflow: hidden; }
.realm-guardian { position: absolute; bottom: 0; height: min(75vh,790px); width: min(32vw,480px); object-fit: contain; object-position: center bottom; opacity: .12; mask-image: linear-gradient(#000 50%,transparent); filter: saturate(.7); }
.realm-guardian--left { left: -90px; }
.realm-guardian--right { right: -90px; }
.realm-home .realm-atmosphere { z-index: 0; position: absolute; inset: 0; height: auto; }
.realm-home .realm-guardian { height: 83%; width: min(31vw,490px); opacity: .94; filter: drop-shadow(0 20px 24px #0008); mask-image: linear-gradient(#000 77%,transparent); }
.realm-home .realm-guardian--left { left: max(-65px,calc((100vw - 1600px)/2)); }
.realm-home .realm-guardian--right { right: max(-65px,calc((100vw - 1600px)/2)); }

/* Header retains the original language forms, session menu and mobile hooks. */
.realm-theme .site-header { position: sticky; top: 0; z-index: 70; background: #090d0bec; backdrop-filter: blur(18px); border-bottom: 1px solid #c7ac6b35; box-shadow: none; }
.realm-theme .nav-wrap { width: min(1470px,calc(100% - 56px)); min-height: 98px; gap: 26px; }
.realm-theme .brand { gap: 12px; flex-shrink: 0; }
.realm-theme .brand-mark { width: 74px; height: 74px; background: none; border: 0; box-shadow: none; }
.realm-theme .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.realm-theme .brand-copy strong { font: 600 21px/1.1 'Realm UI', sans-serif; letter-spacing: .05em; color: #ecdfc2; }
.realm-theme .brand-copy small { font: 600 10px/1.5 'Realm UI', sans-serif; letter-spacing: .4em; color: #b9a16b; margin-top: 6px; }
.realm-theme .primary-nav { gap: clamp(13px,1.5vw,24px); margin-left: auto; }
.realm-theme .primary-nav > a { font: 600 14px/1.5 'Realm UI', sans-serif; letter-spacing: .04em; color: #a8b09f; padding: 12px 0; white-space: nowrap; }
.realm-theme .primary-nav > a:hover, .realm-theme .primary-nav > a.is-active { color: #e4d3aa; }
.realm-theme .primary-nav > a::after { height: 1px; background: #baa16c; bottom: 5px; }
.realm-theme .nav-auth { gap: 16px; }
.realm-theme .language-switcher { border: 0; border-radius: 0; background: transparent; padding: 0; width: auto; gap: 5px; }
.realm-theme .language-switcher > span { display: none; }
.realm-theme .language-switcher select { width: 90px; min-height: 40px; color: #bac0b1; font-size: 13px; padding: 8px 6px; }
.realm-theme .nav-auth .auth-link { font: 600 14px 'Realm UI', sans-serif; letter-spacing: .05em; color: #c2c9b7; }
.realm-theme .nav-auth .button--compact { min-height: 39px; padding: 9px 17px; font-size: 14px; background: #b69a6410; color: #d8c69e; border-color: #bba46a45; box-shadow: none; }
.realm-theme .player-menu > summary { min-height: 40px; padding: 9px 12px; background: #baa16c0a; border-radius: 2px; border: 1px solid #bba46a40; gap: 9px; }
.realm-theme .nav-profile-label { font: 600 14px 'Realm UI', sans-serif; }
.realm-theme .nav-profile-icon { width: 18px; height: 18px; transform: scale(.85); }
.realm-theme .player-menu__panel { top: calc(100% + 15px); background: #111813fa; border: 1px solid #bca37059; border-radius: 5px; box-shadow: 0 18px 50px #0008; }
.realm-theme .player-menu__action { border-radius: 3px; font-size: 14px; color: #d7d6c3; }
.realm-theme .player-menu__action:hover { background: #bda66c15; }
.realm-theme .player-avatar { width: 34px; height: 34px; border-radius: 5px; background: linear-gradient(135deg,#c4aa79,#76633e); color: #222d21; border: 1px solid #d3bd8a; box-shadow: none; font: 600 19px 'Realm UI',sans-serif; }
.realm-theme .player-avatar--large, .realm-theme .player-avatar--hero { width: 40px; height: 40px; font-size: 23px; }
.design-preview-note { padding: 7px 20px; text-align: center; color: #c5c1a4; background: #1c271b; font-size: 12px; border-bottom: 1px solid #c5ae7229; position: relative; z-index: 4; }

/* Cinematic homepage adapted from the supplied design, without ASIA/demo data. */
.realm-hero { position: relative; display: grid; place-items: center; isolation: isolate; min-height: min(900px,calc(100svh - 98px)); padding: 90px 25px 110px; overflow: hidden; background: #111914 url('../realm/hero.webp') center 40%/cover; }
.realm-hero__video, .realm-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.realm-hero__video { opacity: .65; object-position: center 40%; }
.realm-hero__shade { z-index: -1; background: linear-gradient(180deg,#0b100c05,#0c0d0e10 50%,#0c0d0e),linear-gradient(90deg,#10170e66,#11170e33 35%,#070c0833 65%,#10170e66); }
.realm-hero__content { width: min(665px,54vw); text-align: center; position: relative; z-index: 5; }
.realm-hero__eyebrow { display: flex; align-items: center; justify-content: center; gap: 23px; margin-bottom: 26px; }
.realm-hero__eyebrow::before,.realm-hero__eyebrow::after { content: ''; height: 1px; width: 42px; background: #ddc89d60; }
.realm-hero h1 { margin: 0; line-height: 1.13; text-shadow: 0 4px 25px #0008; font-family: 'Realm Display',Georgia,serif; }
.realm-hero h1 span { display: block; font-size: clamp(29px,3.5vw,53px); font-weight: 700; color: #e7e2cd; }
.realm-hero h1 strong { display: block; font-size: clamp(56px,6.5vw,101px); color: #debf7f; font-weight: 700; margin-top: 2px; }
.realm-hero__subtitle { color: #d2c5a7; font: 600 20px 'Realm UI',sans-serif; letter-spacing: .06em; margin: 24px 0 12px; }
.realm-hero__lead { margin: 0 auto; max-width: 510px; color: #c8ccbb; font-size: 16px; line-height: 1.8; text-wrap: balance; }
.realm-hero__actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.realm-hero__actions .button { min-width: 183px; min-height: 53px; }
.realm-hero__bottom { position: absolute; left: 4%; right: 4%; bottom: 23px; z-index: 6; display: flex; align-items: center; justify-content: space-between; color: #b4bca9; font: 600 12px 'Realm UI',sans-serif; letter-spacing: .08em; }
.realm-hero__bottom a { display: flex; align-items: center; gap: 16px; }
.realm-video-toggle { display: grid; place-items: center; width: 42px; height: 42px; color: #d6c599; background: #11180d66; border: 1px solid #d6c59930; }
.realm-theme .realm-countdown { margin: 28px auto 0; background: #0b130c66; border: 0; border-top: 1px solid #c3a36942; border-bottom: 1px solid #c3a36942; box-shadow: none; border-radius: 0; padding: 14px 22px; max-width: 420px; }
.realm-theme .realm-countdown .launch-countdown__grid { gap: 0; }
.realm-theme .realm-countdown strong { font: 600 28px 'Realm UI',sans-serif; color: #d8c295; }
.realm-theme .realm-countdown :is(p,time,span) { font-family: var(--font-body); color: #b6bca5; font-size: 11px; }
.realm-theme .realm-countdown.is-complete .launch-countdown__grid { display: none; }
.realm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.realm-section-heading h2 { margin: 10px 0 0; font-size: clamp(26px,3vw,36px); }
.realm-section-heading > p { max-width: 420px; color: var(--muted); font-size: 14px; }
.realm-text-link { display: inline-flex; align-items: center; gap: 18px; color: #ccb17b; font: 600 15px 'Realm UI',sans-serif; letter-spacing: .05em; }
.realm-theme .realm-news { padding: 65px 0 75px; }
.realm-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.realm-news-card { background: #141916; border: 1px solid #c5b0812e; transition: border-color .2s; }
.realm-news-card:hover { border-color: #c5b0817a; }
.realm-news-card__image { display: block; position: relative; aspect-ratio: 1.8; overflow: hidden; }
.realm-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.realm-news-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent,#0c100b77); pointer-events: none; }
.realm-news-card__image > span { position: absolute; bottom: 15px; left: 20px; z-index: 1; font: 600 11px 'Realm UI',sans-serif; letter-spacing: .14em; color: #dec69a; background: #0b100ad9; padding: 7px 11px; border: 1px solid #ba9e6938; }
.realm-news-card__copy { padding: 25px 26px; }
.realm-news-card__copy time { color: #8c9788; font-size: 12px; }
.realm-news-card h3 { font: 600 26px/1.25 'Realm UI',sans-serif; margin: 12px 0; color: #dfd6c2; }
.realm-news-card p { font-size: 14px; color: #a7b19e; margin-bottom: 20px; }
.realm-empty { grid-column: 1/-1; border: 1px solid var(--line); padding: 28px; color: var(--muted); }
.realm-theme .realm-download { display: grid; grid-template-columns: 1.1fr 1fr; gap: 95px; padding: 65px 0; border-top: 1px solid var(--line); }
.realm-download h2 { font-size: clamp(29px,3vw,42px); line-height: 1.4; margin: 18px 0; }
.realm-download__copy > p:not(.eyebrow) { color: #a4ae9c; max-width: 440px; margin-bottom: 28px; }
.realm-theme .journey-steps { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; gap: 0; }
.realm-theme .journey-steps article { padding: 23px 0; border: 0; border-top: 1px solid #b4ae8b22; background: none; gap: 25px; }
.realm-theme .journey-steps article > span { background: none; border: 0; width: auto; height: auto; font: 600 34px 'Realm UI',sans-serif; color: #a79365; }
.realm-theme .journey-steps h3 { font: 600 23px 'Realm UI',sans-serif; color: #d0d6c5; }
.realm-theme .journey-steps p { font-size: 14px; color: #98a78e; }
.realm-theme .realm-community { position: relative; isolation: isolate; overflow: hidden; padding: 55px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid #c1ad7645; margin-top: 25px; margin-bottom: 55px; background: #121914; }
.realm-community::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../realm/guild.png') center 38%/cover; opacity: .32; }
.realm-community::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#101b12ef,#101b1233); }
.realm-community h2 { font-size: clamp(27px,3vw,42px); line-height: 1.4; max-width: 700px; margin: 16px 0; }
.realm-community p:not(.eyebrow) { max-width: 550px; color: #bac4ad; margin-bottom: 24px; }
.realm-community__mark { font: 700 85px 'Realm Display',serif; color: #e5cf9430; }
.realm-theme .realm-account-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.realm-account-cta h2 { font-size: clamp(26px,2.5vw,34px); margin: 15px 0; }
.realm-account-cta p:not(.eyebrow) { color: var(--muted); max-width: 620px; }
.realm-account-cta__actions { display: flex; gap: 10px; flex-shrink: 0; }
.realm-theme .realm-contact { padding: 65px 0; }
.realm-theme .social-links-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.realm-theme .realm-contact .social-card { min-height: 75px; height: auto; display: flex; align-items: center; justify-content: start; gap: 14px; padding: 17px 22px; border-radius: 2px; background: #111813; border: 1px solid #c2a96f26; box-shadow: none; transform: none; color: #bdc9b2; }
.realm-theme .realm-contact .social-card::before,.realm-theme .realm-contact .social-card::after { display: none; }
.realm-contact .social-card > img { width: 25px; height: 25px; object-fit: contain; }
.realm-contact .social-card > span { font: 600 19px 'Realm UI',sans-serif; }
.realm-contact .social-card :is(i,small) { margin-left: auto; font-size: 11px; font-style: normal; color: #c3b087; }
.realm-contact__email { margin: 25px 0 0; color: #86937e; font-size: 13px; }
.realm-contact__email a { color: #c2af82; }

/* Existing content and authenticated systems receive the same visual language. */
.realm-theme :is(.page-hero,.auth-shell,.player-account) { background: none; }
.realm-theme .player-account { isolation: auto; overflow: visible; padding: 48px 0 65px; }
.realm-theme .account-center { width: min(var(--content),calc(100% - 64px)); }
.realm-theme :is(.page-hero__background,.auth-shell__backdrop,.player-account__backdrop,.auth-shell::after) { display: none; }
.realm-theme .page-hero { min-height: 230px; padding: 65px 32px 45px; border-bottom: 1px solid #b8a4772e; }
.realm-theme .page-hero::before, .realm-theme .page-hero::after, .realm-theme .page-hero__shade { display: none; }
.realm-theme .page-hero__content { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; max-width: 900px; }
.realm-theme .page-hero__content::before, .realm-theme .page-hero__content::after { display: none; }
.realm-theme .page-hero h1 { font-size: clamp(29px,3.3vw,45px); }
.realm-theme .page-hero p:last-child { max-width: 700px; color: #a8b49b; }
.realm-theme :is(.archive-card,.news-article,.ranking-board,.auth-card,.profile-card,.account-module,.account-redeem-card,.systems-stat-grid article,.systems-launch-grid > a,.gift-vault,.gift-card,.shop-card,.shop-command,.wheel-chamber,.wheel-balance-card,.wheel-rules-card,.arena-card,.arena-round,.arena-detail-info) { background: #121a14; border-color: #c4ac7438; border-radius: 4px; box-shadow: none; }
.realm-theme :is(.archive-card,.profile-card,.account-module,.gift-vault,.shop-card,.shop-command,.wheel-chamber)::before,
.realm-theme :is(.archive-card,.account-module,.shop-card,.shop-command)::after { display: none; }
.realm-theme :is(.archive-card h3,.news-toolbar h2,.ranking-board h2,.profile-card h2,.systems-workspace__header h2,.account-module__header h2,.gift-vault h2,.wheel-chamber h2) { font: 600 clamp(23px,2vw,29px)/1.3 'Realm UI',sans-serif; }
.realm-theme :is(.archive-card__body p,.article-body,.profile-card__lead,.auth-card__lead,.systems-workspace__header>p:last-child,.gift-vault__header p) { color: #a9b89e; }
.realm-theme .archive-card { overflow: hidden; }
.realm-theme .archive-card__cover { border-radius: 0; }
.realm-theme .archive-card__body { padding: 25px; }
.realm-theme :is(.news-filter select,.news-filter button,.news-pagination a,.pagination a) { background: #111a12; color: #c4cca7; border-color: #b3a27340; border-radius: 2px; }
.realm-theme :is(.ranking-tabs a,.ranking-row) { background: #121a14; border-color: #bac09520; border-radius: 3px; }
.realm-theme .ranking-tabs a.is-active { background: #bba66612; border-color: #c4ae6b75; }
.realm-theme .ranking-row--first { background: #b89b5315; }
.realm-theme .ranking-row__player i { background: #bbc39110; border-color: #b6ac6a40; border-radius: 4px; }
.realm-theme .auth-shell { padding: 70px 30px; min-height: auto; }
.realm-theme .auth-layout { max-width: 1040px; gap: 70px; align-items: start; }
.realm-theme .auth-story { padding: 30px 0; }
.realm-theme .auth-story h1 { font-size: clamp(28px,3vw,39px); line-height: 1.35; }
.realm-theme .auth-card { padding: 32px; }
.realm-theme .auth-card h2 { font-size: 29px; }
.realm-theme .auth-benefits { border-top: 1px solid var(--line); padding-top: 18px; }
.realm-theme .auth-benefits span { color: #d7bb7b; background: transparent; border-color: #b9a36730; }
.realm-theme .field-shell { min-height: 49px; background: #0b130d; border: 1px solid #afbb8736; border-radius: 2px; box-shadow: none; }
.realm-theme .field-shell:focus-within { border-color: #d1b47b; box-shadow: 0 0 0 2px #d1b47b15; }
.realm-theme .field-shell--error { border-color: #d77d62; }
.realm-theme .field-shell input { background: transparent; color: #e1ebd7; font-size: 16px; }
.realm-theme .auth-form label { color: #c4d0b8; font-size: 14px; }
.realm-theme .auth-submit { min-height: 48px; }
.realm-theme .preview-pill { border-radius: 2px; color: #a9ba94; border-color: #9da5744f; background: #adbb7410; }
.realm-theme .account-center { width: min(1400px,calc(100% - 64px)); max-width: none; padding: 35px 0 65px; }
.realm-theme .account-space-switcher { border-radius: 3px; background: #101712; border-color: #c1ab7736; margin-bottom: 20px; }
.realm-theme .account-space-switcher a { border-radius: 2px; background: transparent; color: #b3c2a6; }
.realm-theme .account-space-switcher a.is-active { background: #bea56712; border-color: #c1a66b60; }
.realm-theme .account-command { padding: 24px 28px; border: 1px solid #bba67440; border-radius: 3px; background: #131c14; box-shadow: none; margin-bottom: 24px; gap: 24px; }
.realm-theme .account-command::after { display: none; }
.realm-theme .account-command__crest { width: 44px; height: 44px; background: #b49d6715; border: 1px solid #c2a76750; box-shadow: none; color: #ceb884; }
.realm-theme .account-command__copy h1 { font-size: clamp(23px,2.3vw,33px); line-height: 1.4; margin: 6px 0; }
.realm-theme .account-command__copy > p:last-child { color: #a0b395; font-size: 14px; }
.realm-theme .account-command__player { background: none; padding: 0 0 0 25px; border: 0; border-left: 1px solid var(--line); border-radius: 0; min-width: 210px; }
.realm-theme .account-command__player strong { font-size: 16px; }
.realm-theme .profile-grid { gap: 24px; }
.realm-theme .profile-card { padding: 27px; }
.realm-theme .profile-card header > span { background: #baa7720d; border-color: #baa77244; border-radius: 3px; color: #ccb37d; }
.realm-theme .profile-systems-link { background: #a1b77709; border-color: #a1b7772d; border-radius: 2px; }
.realm-theme .session-recovery { background: #151c12; border: 1px solid #b29b6436; border-radius: 3px; box-shadow: none; }
.realm-theme .session-recovery--stuck { border-color: #c5a46d6b; }
.realm-theme .session-recovery__emblem { background: #b8a47015; border-radius: 3px; box-shadow: none; border-color: #bba9764f; }
.realm-theme .session-recovery__button { border-radius: 2px; background: #b49e6912; box-shadow: none; color: #d2c394; }
.realm-theme .systems-layout { grid-template-columns: 225px minmax(0,1fr); gap: 25px; }
.realm-theme .systems-sidebar { top: 124px; background: #101711; border: 1px solid #bca87438; border-radius: 3px; box-shadow: none; }
.realm-theme .systems-sidebar__brand > span { background: #b5a17414; border-color: #b5a17444; border-radius: 3px; color: #c1af83; }
.realm-theme .systems-sidebar nav a { background: transparent; border-radius: 2px; border-color: transparent; padding: 14px 13px; }
.realm-theme .systems-sidebar nav a:is(:hover,.is-active) { background: #c1ad7711; border-color: #c1ad7742; color: #e1d1ac; }
.realm-theme .systems-sidebar nav strong { font: 600 17px 'Realm UI',sans-serif; }
.realm-theme .systems-workspace { min-width: 0; background: #0e150f; border-color: #bca87438; border-radius: 4px; box-shadow: none; }
.realm-theme .systems-stat-grid article { padding: 22px; }
.realm-theme .systems-stat-grid article > span { border-radius: 3px; background: #b7a57310; box-shadow: none; border-color: #b7a57340; }
.realm-theme .systems-stat-grid strong { font: 600 35px 'Realm UI',sans-serif; }
.realm-theme .systems-launch-grid { gap: 16px; }
.realm-theme .systems-launch-grid > a { padding: 24px; }
.realm-theme .systems-launch-grid > a > span { background: #b4ab6f12; border: 1px solid #b4ab6f3f; border-radius: 3px; box-shadow: none; }
.realm-theme .systems-launch-grid h3 { font: 600 26px 'Realm UI',sans-serif; }
.realm-theme .systems-module-grid { grid-template-columns: 1fr 1.15fr; gap: 23px; }
.realm-theme .account-module { padding: 26px; }
.realm-theme .epin-vault > h2 { font: 600 33px 'Realm UI',sans-serif; margin: 15px 0; }
.realm-theme .epin-vault > .auth-card__lead { margin: 15px 0 22px; padding: 0; background: none; border: 0; }
.realm-theme .epin-vault__icon { width: 39px; height: 39px; background: #c5ab6f14; box-shadow: none; border-radius: 4px; }
.realm-theme .wallet-card { border-radius: 3px; background: linear-gradient(120deg,#293120,#121e14); border-color: #c2ac7155; box-shadow: none; }
.realm-theme .wallet-card__seal { border-radius: 4px; background: #c7ad74; color: #253320; }
.realm-theme .wallet-card__amount strong { font: 600 clamp(36px,4vw,54px) 'Realm UI',sans-serif; }
.realm-theme .account-module__trust { border-radius: 2px; background: #72904d0a; }
.realm-theme .itemci-purchase { border-color: #b7a67238; border-radius: 3px; background: #141f12; }
.realm-theme .itemci-purchase__button { background: #b8a26d13; border-color: #b8a26d50; color: #d1c195; }

/* Compact store: two cards per row on desktop, native-size item icons. */
.realm-theme :is(.shop-stage,.systems-workspace .shop-stage) { padding: 0; margin: 0; width: 100%; }
.realm-theme .shop-command { padding: 26px; gap: 20px; margin-bottom: 20px; }
.realm-theme .shop-command__crest { width: 44px; height: 44px; border-radius: 4px; background: #c1a26412; box-shadow: none; border-color: #c1a26454; }
.realm-theme .shop-command h2 { font: 600 33px 'Realm UI',sans-serif; }
.realm-theme .shop-command__stats > div { background: #0f180f; border-color: #bba87031; border-radius: 2px; padding: 12px 17px; }
.realm-theme .shop-command__stats strong { font: 600 26px 'Realm UI',sans-serif; }
.realm-theme .shop-policy-note { width: 100%; margin: 0 0 22px; background: #b6a26b07; border-color: #b6a26b2d; border-radius: 2px; }
.realm-theme .shop-grid, .realm-theme .systems-workspace .shop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; max-width: none; width: 100%; }
.realm-theme .shop-card, .realm-theme .systems-workspace .shop-card { min-width: 0; max-width: none; overflow: hidden; padding: 0; }
.realm-theme .shop-card__top, .realm-theme .systems-workspace .shop-card__top { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 18px; padding: 34px 22px 23px; align-items: center; border: 0; background: none; min-height: 148px; }
.realm-theme .shop-card__art-shell, .realm-theme .systems-workspace .shop-card__art-shell { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #bea76b35; border-radius: 3px; background: #0b130c; }
.realm-theme .shop-card__art-frame, .realm-theme .systems-workspace .shop-card__art-frame { width: 64px; height: 64px; display: grid; place-items: center; background: none; border: 0; padding: 0; transform: none; }
.realm-theme .shop-card__art-frame::before, .realm-theme .shop-card__art-frame::after { display: none; }
.realm-theme .shop-card__art-frame img, .realm-theme .systems-workspace .shop-card__art-frame img { display: block; position: static; width: 48px; height: 48px; max-width: 48px; max-height: 48px; object-fit: contain; margin: auto; transform: none; filter: none; }
.realm-theme .shop-card__summary h2, .realm-theme .systems-workspace .shop-card__summary h2 { font: 600 25px/1.2 'Realm UI',sans-serif; letter-spacing: 0; margin: 7px 0; overflow-wrap: anywhere; }
.realm-theme .shop-card__edition { font-size: 9px; color: #aa996b; letter-spacing: .1em; }
.realm-theme .shop-card__description, .realm-theme .systems-workspace .shop-card__description { font-size: 13px; line-height: 1.55; color: #a4b39b; }
.realm-theme .shop-card__description-two { font-size: 12px; color: #c3b78e; }
.realm-theme .shop-card__badge { top: 10px; right: 12px; font-size: 8px; padding: 3px 8px; border-radius: 2px; }
.realm-theme .shop-card__commerce, .realm-theme .systems-workspace .shop-card__commerce { display: flex; align-items: center; flex-wrap: wrap; padding: 17px 20px; gap: 14px; border-top: 1px solid #b5a57625; background: #10170e; }
.realm-theme .shop-card__meta, .realm-theme .systems-workspace .shop-card__commerce .shop-card__meta { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 160px; padding: 0; }
.realm-theme .shop-card__meta > span, .realm-theme .systems-workspace .shop-card__commerce .shop-card__meta > span { background: none; border: 0; padding: 0; border-radius: 0; min-height: 0; min-width: 50px; }
.realm-theme .shop-card__meta small { color: #919f80; font-size: 9px; }
.realm-theme .shop-card__meta strong, .realm-theme .systems-workspace .shop-card__meta strong { font: 600 20px 'Realm UI',sans-serif; color: #e0ce9f; }
.realm-theme .shop-card__price strong b { display: none; }
.realm-theme .shop-card__price strong i { font-size: 8px; color: #a99162; }
.realm-theme .shop-card__action { margin: 0; flex: 0 1 auto; }
.realm-theme .shop-card__action :is(a,button), .realm-theme .systems-workspace .shop-card__commerce .shop-card__action :is(a,button) { min-height: 40px; width: auto; min-width: 100px; padding: 10px 16px; border: 1px solid #c9b0775e; border-radius: 2px; background: linear-gradient(110deg,#d2ba83,#a08952); box-shadow: none; color: #1d2916; font: 600 14px 'Realm UI',sans-serif; }
.realm-theme .shop-card__action button:disabled,
.realm-theme .systems-workspace .shop-card__commerce .shop-card__action button:disabled { background: #afac7c0a; color: #849075; border-color: #afac7c20; }

/* The wheel's geometry, rotor transform, result hooks and claim dialog stay intact. */
.realm-theme :is(.wheel-vault-modal,.wheel-result-modal,.wheel-confirm-modal,.store-result-popup,.flash-stack) { z-index: 1000; }
.realm-theme .wheel-chamber { padding: 25px; }
.realm-theme .wheel-arena { container-type: inline-size; min-width: 0; }
.realm-theme .wheel-machine { --wheel-size: min(468px,calc(100cqw - 30px)); margin-inline: auto; }
.realm-theme .wheel-stage-track li { background: #0f180f; border-color: #b6a46c2c; border-radius: 3px; }
.realm-theme .wheel-stage-track li.is-current { background: #bfab6c16; border-color: #c5ac7294; }
.realm-theme .wheel-rotor__surface { background: repeating-conic-gradient(from -15deg,#283729 0deg 30deg,#111d14 30deg 60deg); }
.realm-theme .wheel-hub { background: radial-gradient(circle at 30% 24%,#dfc38e,#8d773f 65%,#384629); border-color: #d2ba7b; box-shadow: 0 0 0 6px #0a130e,0 0 0 7px #c0a26e; }
.realm-theme .wheel-segment__token { background: #132418; border-color: #b6ad746b; box-shadow: none; border-radius: 5px; }
.realm-theme .wheel-segment--bomb .wheel-segment__token { background: #4d2b22; border-color: #b88459; }
.realm-theme .wheel-segment--key .wheel-segment__token { background: #163b2a; border-color: #62937a; }
.realm-theme .wheel-reward-trigger, .realm-theme .wheel-sound-toggle { background: #b8a36710; border-color: #b8a36740; border-radius: 3px; box-shadow: none; }
.realm-theme .wheel-spin-button { border-radius: 3px; box-shadow: none; border-color: #c6ad7199; background: linear-gradient(110deg,#d1ba86,#9d834c); color: #1d2818; }
.realm-theme .wheel-spin-button--auto { background: #172819; color: #d2c297; }
.realm-theme .wheel-balance-card strong { font: 600 47px 'Realm UI',sans-serif; }
.realm-theme .wheel-rules-card h3 { font: 600 26px 'Realm UI',sans-serif; }
.realm-theme .store-result-popup__dialog,
.realm-theme :is(.wheel-vault-modal,.wheel-result-modal,.wheel-confirm-modal) > section { border-color: #ccb37a66; border-radius: 5px; background: #111c13; box-shadow: 0 22px 90px #0009; }
.realm-theme .wheel-vault-modal > section > header,
.realm-theme .wheel-vault-modal footer { background: #172014; border-color: #c0ae762d; }
.realm-theme .wheel-reward-grid article { background: #0d150e; border-color: #c0ae762d; border-radius: 3px; }
.realm-theme .wheel-reward-grid h3 { font: 600 20px/1.25 'Realm UI',sans-serif; }
.realm-theme .wheel-reward-grid p, .realm-theme .wheel-vault-modal footer p { font-size: 12px; }
.realm-theme .gift-card { border-color: #b9a77132; }
.realm-theme .gift-card__art { background: #0a130c; border-radius: 3px; }
.realm-theme .gift-card h3 { font: 600 23px 'Realm UI',sans-serif; }
.realm-theme .gift-vault__collect .button { min-height: 42px; }
.realm-theme .arena { max-width: 1240px; padding-top: 45px; }
.realm-theme .arena h1 { font-size: 37px; }
.realm-theme .arena-card { border-radius: 4px; }
.realm-theme .arena-card__name { font-family: 'Realm UI',sans-serif; }
.realm-theme .arena-match { background: #0d170e; border-color: #b6ac753b; border-radius: 3px; }
.realm-theme .arena { --a-muted: #9ca995; --a-border: #b9a97428; --a-gold: #cbb37e; }
.realm-theme :is(.arena-event,.arena-dialog,.arena-champion) { background: #121a14; border-color: #c4ac7440; border-radius: 4px; }
.realm-theme .arena-button { border-radius: 2px; background: #c4ab76; border-color: #dbc28c; color: #202b1b; font-family: 'Realm UI',sans-serif; font-size: 15px; }
.realm-theme .arena-button--quiet { background: transparent; color: #cfbf99; border-color: #baa57250; }
.realm-theme .arena-button:disabled { background: #a6ac8012; color: #8a967f; border-color: #b3ab792c; }
.realm-theme .arena-dialog :is(select,input) { border-radius: 2px; background: #0c150e; border-color: #b7a57040; }
.realm-theme .site-footer { margin-top: 0; padding: 48px 0 22px; background: #080c09; border-top: 1px solid #b8a57129; }
.realm-theme .footer-grid { max-width: 1240px; padding: 0 32px; gap: 50px; }
.realm-theme .site-footer h2 { font: 600 16px 'Realm UI',sans-serif; letter-spacing: .08em; }
.realm-theme .site-footer p, .realm-theme .site-footer a:not(.brand) { font-size: 13px; color: #92a086; }
.realm-theme .footer-bottom { border-color: #b8a57121; padding-top: 20px; margin-top: 35px; }

@media (max-width: 1300px) {
    .realm-theme .nav-wrap { gap: 18px; width: calc(100% - 40px); }
    .realm-theme .brand-copy strong { font-size: 18px; }
    .realm-theme .brand-mark { width: 62px; height: 62px; }
    .realm-theme .primary-nav { gap: 13px; }
    .realm-theme .primary-nav > a { font-size: 13px; }
    .realm-theme .nav-auth { gap: 12px; }
}
@media (max-width: 1100px) {
    .realm-theme .systems-layout { grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
    .realm-theme .systems-module-grid { grid-template-columns: 1fr; }
    .realm-theme .account-command__player { min-width: 170px; padding-left: 16px; }
    .realm-theme .shop-card__top, .realm-theme .systems-workspace .shop-card__top { gap: 12px; padding: 35px 15px 18px; grid-template-columns: 60px minmax(0,1fr); }
    .realm-theme .shop-card__art-shell, .realm-theme .systems-workspace .shop-card__art-shell { width: 60px; height: 60px; }
    .realm-theme .shop-card__art-frame, .realm-theme .systems-workspace .shop-card__art-frame { width: 56px; height: 56px; }
}
@media (max-width: 1020px) {
    .realm-theme .nav-wrap { min-height: 78px; gap: 16px; }
    .realm-theme .nav-toggle { margin-left: auto; border-color: #b5a16b4d; border-radius: 2px; background: #b5a16b08; }
    .realm-theme .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; width: 100%; max-height: calc(100svh - 78px); overflow-y: auto; padding: 22px 30px; background: #0d180ffb; border-bottom: 1px solid #c5b17552; grid-template-columns: 1fr 1fr; gap: 7px 25px; }
    .realm-theme .primary-nav.is-open { display: grid; }
    .realm-theme .primary-nav > a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid #acb08116; }
    .realm-theme .language-switcher--mobile { display: flex; }
    .realm-theme .nav-auth--mobile { display: grid; grid-column: 1/-1; gap: 12px; padding-top: 12px; }
    .realm-theme .nav-auth--desktop { display: none; }
    .realm-theme .mobile-player-card { border-radius: 3px; background: #b6a27308; }
    .realm-theme .mobile-player-action { background: #b7a06d0a; border-radius: 2px; padding: 14px; }
    .realm-home .realm-atmosphere { display: none; }
    .realm-hero { min-height: 660px; padding: 80px 30px 85px; }
    .realm-hero__content { width: min(680px,90vw); }
    .realm-hero h1 span { font-size: 39px; }
    .realm-hero h1 strong { font-size: 78px; }
    .realm-theme .realm-download { gap: 45px; }
    .realm-theme .account-command__crest { display: none; }
    .realm-theme .wheel-command-grid { grid-template-columns: minmax(0,1fr); }
    .realm-theme .wheel-intel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 15px; }
    .realm-theme .wheel-stage-note { grid-column: 1/-1; }
}
@media (max-width: 800px) {
    .realm-theme .section, .realm-theme .account-center { width: calc(100% - 40px); }
    .realm-news-grid { grid-template-columns: 1fr; }
    .realm-news-card { display: grid; grid-template-columns: 1fr 1.2fr; }
    .realm-news-card__image { aspect-ratio: auto; min-height: 225px; }
    .realm-theme .realm-download { grid-template-columns: 1fr; gap: 20px; }
    .realm-theme .realm-community { padding: 35px; }
    .realm-community__mark { display: none; }
    .realm-theme .realm-account-cta { flex-direction: column; align-items: start; }
    .realm-theme .social-links-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .realm-theme .systems-layout { grid-template-columns: minmax(0,1fr); }
    .realm-theme .systems-sidebar { position: sticky; top: 78px; z-index: 20; padding: 10px; min-width: 0; width: 100%; overflow: visible; }
    .realm-theme .systems-sidebar__brand, .realm-theme .systems-sidebar__status { display: none; }
    .realm-theme .systems-sidebar nav { display: flex; width: 100%; min-width: 0; overflow-x: auto; gap: 5px; scrollbar-width: thin; }
    .realm-theme .systems-sidebar nav a { flex: 0 0 auto; padding: 11px 12px; gap: 7px; white-space: nowrap; }
    .realm-theme .systems-sidebar nav strong { font-size: 15px; }
    .realm-theme .systems-sidebar nav i { display: none; }
    .realm-theme .account-command__player { display: none; }
    .realm-theme .auth-layout, .realm-theme .profile-grid { grid-template-columns: 1fr; gap: 25px; }
    .realm-theme .auth-story { padding: 0; }
    .realm-theme .auth-benefits { display: none; }
    .realm-theme .session-recovery { flex-wrap: wrap; }
    .realm-theme .session-recovery__action { width: 100%; }
    .realm-theme .footer-grid { gap: 30px; }
}
@media (max-width: 620px) {
    .realm-theme .section, .realm-theme .account-center { width: calc(100% - 32px); }
    .realm-theme .nav-wrap { width: calc(100% - 30px); min-height: 73px; }
    .realm-theme .brand-mark { width: 54px; height: 54px; }
    .realm-theme .brand-copy strong { font-size: 20px; }
    .realm-theme .brand-copy small { margin-top: 4px; font-size: 9px; }
    .realm-hero { min-height: 610px; padding: 65px 20px 85px; }
    .realm-hero__content { width: 100%; }
    .realm-hero h1 span { font-size: clamp(24px,7vw,38px); }
    .realm-hero h1 strong { font-size: clamp(47px,13.5vw,72px); }
    .realm-hero__lead { font-size: 14px; }
    .realm-hero__subtitle { font-size: 19px; }
    .realm-hero__actions { gap: 10px; }
    .realm-hero__actions .button { min-width: 0; padding: 12px 16px; font-size: 14px; min-height: 48px; }
    .realm-section-heading { align-items: start; flex-direction: column; gap: 15px; }
    .realm-theme .realm-news, .realm-theme .realm-contact { padding: 42px 0; }
    .realm-news-card { display: block; }
    .realm-news-card__image { min-height: 0; aspect-ratio: 1.8; }
    .realm-news-card__copy { padding: 23px; }
    .realm-theme .realm-community { padding: 30px 24px; }
    .realm-theme .realm-account-cta { padding: 30px 0; }
    .realm-theme .realm-contact .social-card { padding: 16px 12px; gap: 9px; }
    .realm-contact .social-card > span { font-size: 17px; }
    .realm-contact .social-card > img { width: 20px; height: 20px; }
    .realm-theme .auth-shell { padding: 35px 16px; }
    .realm-theme .player-account { padding-top: 30px; }
    .realm-theme .auth-card, .realm-theme .profile-card, .realm-theme .account-module { padding: 23px; }
    .realm-theme .account-command { padding: 22px; }
    .realm-theme .account-space-switcher small { display: none; }
    .realm-theme .systems-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .realm-theme .systems-stat-grid article { padding: 15px 10px; }
    .realm-theme .systems-stat-grid article > span { display: none; }
    .realm-theme .systems-stat-grid strong { font-size: 29px; }
    .realm-theme .systems-stat-grid i { font-size: 9px; }
    .realm-theme .systems-launch-grid { grid-template-columns: 1fr; }
    .realm-theme .shop-grid, .realm-theme .systems-workspace .shop-grid { grid-template-columns: minmax(0,1fr); }
    .realm-theme .shop-command { padding: 22px; flex-wrap: wrap; }
    .realm-theme .shop-command__crest { display: none; }
    .realm-theme .shop-command__stats { width: 100%; }
    .realm-theme .shop-command h2 { font-size: 30px; }
    .realm-theme .shop-card__top, .realm-theme .systems-workspace .shop-card__top { padding: 33px 22px 22px; grid-template-columns: 70px minmax(0,1fr); min-height: 140px; }
    .realm-theme .wheel-chamber { padding: 18px 10px; }
    .realm-theme .wheel-chamber__header { padding: 0 10px; gap: 16px; }
    .realm-theme .wheel-stage-track { gap: 5px; }
    .realm-theme .wheel-stage-track li { padding: 9px 4px; }
    .realm-theme .wheel-stage-track strong { font-size: 13px; }
    .realm-theme .wheel-intel { grid-template-columns: 1fr; }
    .realm-theme .wheel-spin-actions { gap: 8px; }
    .realm-theme .wheel-spin-button strong { font-size: 14px; }
    .realm-theme .session-recovery { padding: 22px; }
    .realm-theme .session-recovery__emblem { display: none; }
    .realm-theme .footer-grid { padding: 0 23px; grid-template-columns: 1fr 1fr; }
    .realm-theme .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
    .realm-theme *, .realm-theme *::before, .realm-theme *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .realm-hero__video { opacity: .35; }
}
