:root {
  color-scheme: dark;
  --color-bg-primary: #000000;
  --color-bg-secondary: transparent;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-accent: #ffffff;
  --color-accent-glow: rgba(255, 255, 255, 0.3);
  --color-border: rgba(255, 255, 255, 0.12);
  --panel-bg: rgba(10, 10, 10, 0.45);
  --bg: var(--color-bg-primary);
  --panel: var(--panel-bg);
  --panel-strong: rgb(12 12 14 / 88%);
  --text: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --border: var(--color-border);
  --border-hover: rgb(255 255 255 / 28%);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --header-height: 70px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--color-bg-primary); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--color-text-primary); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: 999998; pointer-events: none; background: #08080a; opacity: 1; visibility: visible; transition: opacity .1s ease .45s; }
body.pt-ready::after { opacity: 0; visibility: hidden; transition: opacity .2s ease 0s; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 18%); border-radius: 999px; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-main { min-height: calc(100vh - 180px); overflow: hidden; }

.aurora-bg { position: fixed; inset: 0; z-index: -5; background: var(--color-bg-primary); overflow: hidden; pointer-events: none; }
.aurora-bg::before, .aurora-bg::after { content: ""; position: absolute; width: 60vw; height: 60vh; border-radius: 50%; filter: blur(120px); opacity: .35; animation: floatBg 20s infinite alternate ease-in-out; }
.aurora-bg::before { top: -20%; left: -10%; background: rgb(255 255 255 / 5%); }
.aurora-bg::after { right: -10%; bottom: -20%; background: rgb(255 255 255 / 3%); animation-delay: -10s; }
@keyframes floatBg { to { transform: translate(15%, 15%) scale(1.2); } }
.ambient-glow { position: fixed; top: 0; left: 0; z-index: 9999; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 8%) 0%, transparent 50%); pointer-events: none; mix-blend-mode: screen; transition: transform .05s ease-out; }

.page-transition-overlay { position: fixed; top: -10vh; left: -5vw; z-index: 999999; width: 110vw; height: 120vh; display: grid; overflow: hidden; perspective: 1000px; pointer-events: none; background: transparent; }
.pt-block { background: linear-gradient(135deg, #16161c 0%, #08080a 100%); border: 1px solid rgb(255 255 255 / 3%); border-top-color: rgb(255 255 255 / 10%); border-left-color: rgb(255 255 255 / 6%); box-shadow: 0 15px 35px rgb(0 0 0 / 40%); transform: translate3d(0, 0, 0) scale(1.02); transition: transform .4s cubic-bezier(.65, 0, .35, 1); transition-delay: var(--d-out, 0s); will-change: transform; }
.page-transition-overlay.loaded .pt-block { transform: translate3d(0, 120vh, 0) scale(1.02); transition-delay: var(--d-out, 0s); }
.page-transition-overlay.prepare-leave .pt-block { transform: translate3d(0, -120vh, 0) scale(1.02); transition: none; }
.page-transition-overlay.leaving { pointer-events: auto; }
.page-transition-overlay.leaving .pt-block { transform: translate3d(0, 0, 0) scale(1.02); transition-delay: var(--d-in, 0s); }

.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s; }
.main-header.scrolled { background: rgba(3, 5, 9, 0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); }
.header-container { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.header-logo { width: fit-content; display: inline-flex; align-items: center; justify-self: start; padding: 5px 0; color: #ffffff; font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: 1px; text-shadow: 0 0 15px rgba(255,255,255,0.4); }
.header-nav { display: none; gap: 32px; }
.header-nav a { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); transition: color 0.3s; position: relative; }
.header-nav a:hover, .header-nav a.active { color: #fff; }
.header-nav a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.external-link-icon { width: 0.82em; height: 0.82em; margin-left: 0.3em; vertical-align: -0.06em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: opacity 0.25s ease, transform 0.25s ease; }
a:hover > .external-link-icon, a:focus-visible > .external-link-icon { opacity: 1; transform: translate(1px, -1px); }

.menu-button { display: none; background: none; border: none; cursor: pointer; z-index: 1100; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-button .bar-container { width: 24px; height: 16px; position: relative; }
.menu-button .bar { position: absolute; width: 100%; height: 2px; background: #fff; left: 0; transform-origin: center; transition: top 0.2s 0.2s, bottom 0.2s 0.2s, transform 0.2s 0s; }
.menu-button .bar:nth-child(1) { top: 0; }
.menu-button .bar:nth-child(2) { bottom: 0; }
.menu-button.active .bar { transition: top 0.2s 0s, bottom 0.2s 0s, transform 0.2s 0.2s; }
.menu-button.active .bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-button.active .bar:nth-child(2) { bottom: 7px; transform: rotate(-45deg); }
.fullscreen-menu { position: fixed; inset: 0; background: rgba(3,5,9,0.95); backdrop-filter: blur(20px); z-index: 1001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.fullscreen-menu.is-open { opacity: 1; visibility: visible; }
.fullscreen-menu nav { display: flex; flex-direction: column; gap: 24px; text-align: left; align-items: flex-start; padding-left: 10vw; width: 100%; box-sizing: border-box; }
.fullscreen-menu a { font-size: 32px; font-weight: 800; color: var(--color-text-secondary); transition: color 0.3s, transform 0.4s; transform: translateY(20px); opacity: 0; }
.fullscreen-menu.is-open a { transform: translateY(0); opacity: 1; }
.fullscreen-menu a:hover { color: #fff; transform: scale(1.05) !important; }

.welcome-hero, .dashboard-hero, .error-shell { position: relative; isolation: isolate; background-image: linear-gradient(90deg, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 55%) 48%, rgb(0 0 0 / 20%) 100%), linear-gradient(0deg, #000 0%, transparent 42%), url("/assets/img/title-hero.jpg"); background-position: center; background-size: cover; }
.welcome-hero::after, .dashboard-hero::after, .error-shell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 74% 42%, rgb(255 255 255 / 8%), transparent 34%); pointer-events: none; }
.welcome-hero { min-height: max(720px, 100svh); display: flex; align-items: center; }
.welcome-hero-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: calc(var(--header-height) + 64px) 0 100px; }
.welcome-hero-inner > * { max-width: 690px; }
.eyebrow { margin: 0 0 16px; color: #cbd5e1; font-size: .73rem; font-weight: 750; letter-spacing: .2em; }
.welcome-hero h1 { margin: 0; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .98; letter-spacing: -.055em; font-weight: 900; background: linear-gradient(145deg, #fff 34%, #64748b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 18px 32px rgb(0 0 0 / 55%)); }
.welcome-hero h1 span { display: block; }
.hero-copy { margin: 30px 0 34px; color: #d4dbe5; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 590px; }
.hero-actions { display: flex; gap: 14px; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgb(255 255 255 / 50%); font-size: .68rem; letter-spacing: .12em; transform: translateX(-50%); }
.hero-scroll span { width: 1px; height: 35px; background: linear-gradient(#fff, transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 50% { opacity: .25; transform: translateY(7px); } }

.button { position: relative; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 32px; overflow: hidden; border: 1px solid rgb(255 255 255 / 20%); border-radius: 100px; background: rgb(255 255 255 / 5%); color: #fff; box-shadow: inset 0 0 20px rgb(255 255 255 / 5%), 0 8px 32px rgb(0 0 0 / 30%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; font-weight: 600; transition: color .4s cubic-bezier(.2, .8, .2, 1), background .4s cubic-bezier(.2, .8, .2, 1), border-color .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s cubic-bezier(.2, .8, .2, 1), transform .4s cubic-bezier(.2, .8, .2, 1); }
.button::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent); transform: skewX(-20deg); transition: left .5s; }
.button:hover::after { left: 120%; }
.button:hover { color: #fff; background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 40%); box-shadow: inset 0 0 30px rgb(255 255 255 / 10%), 0 12px 40px rgb(0 0 0 / 40%); transform: translateY(-3px) scale(1.02); }
.button:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.button.primary { padding: 16px 34px; }
.button.secondary { min-height: 42px; padding: 9px 20px; }
.button.danger { border-color: rgb(251 113 133 / 32%); background: rgb(136 19 55 / 18%); color: #fecdd3; }
.button.danger:hover { border-color: rgb(251 113 133 / 58%); background: rgb(136 19 55 / 30%); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-arrow { font-size: 1.2em; transition: transform .3s ease; }
.button:hover .button-arrow { transform: translateX(5px); }

.page-section { position: relative; z-index: 1; padding: 110px 0; background: radial-gradient(circle at 50% 0%, rgb(255 255 255 / 5%), transparent 36%); }
.section-heading { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-heading.left { max-width: none; margin: 0 0 34px; text-align: left; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.15; letter-spacing: -.035em; background: linear-gradient(145deg, #fff 35%, #64748b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-heading p:last-child { margin: 0; color: var(--muted); }
.glass-panel { position: relative; overflow: hidden; padding: 32px; background: var(--panel-bg); border: 1px solid var(--color-border); border-radius: 24px; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s; }
.glass-panel::before { content: ""; position: absolute; top: var(--mouse-y, -1000px); left: var(--mouse-x, -1000px); z-index: 0; width: 600px; height: 600px; background: radial-gradient(circle, rgb(255 255 255 / 15%) 0%, transparent 60%); opacity: 0; transform: translate(-50%, -50%); transition: opacity .5s; pointer-events: none; mix-blend-mode: overlay; }
.glass-panel:hover::before { opacity: 1; }
.glass-panel:hover { z-index: 5; border-color: rgb(255 255 255 / 20%); box-shadow: 0 20px 40px rgb(0 0 0 / 40%), 0 0 0 1px rgb(255 255 255 / 10%); }
.glass-panel > * { position: relative; z-index: 1; }
.reveal-up, .section-heading { opacity: 0; transform: translateY(60px) scale(.95); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); will-change: opacity, transform; }
.reveal-up.in, .section-heading.in { opacity: 1; transform: translateY(0) scale(1); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { min-height: 260px; padding: 34px; transition: transform .35s ease, border-color .35s ease; }
.step-card:hover { transform: translateY(-7px); border-color: var(--border-hover); }
.step-number { display: block; margin-bottom: 48px; color: #64748b; font-size: .8rem; font-weight: 800; letter-spacing: .18em; }
.step-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.step-card p { margin: 0; color: var(--muted); }

.dashboard-hero { min-height: 430px; display: flex; align-items: flex-end; background-position: center 42%; }
.app-page-hero { min-height: 330px; }
.app-page-hero .dashboard-hero-content { padding-bottom: 52px; }
.app-page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
.dashboard-hero-content { padding: calc(var(--header-height) + 90px) 0 70px; }
.dashboard-hero h1 { max-width: 760px; margin: 0 0 12px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -.05em; background: linear-gradient(145deg, #fff 34%, #64748b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dashboard-hero p:last-child { margin: 0; color: #d3dae4; font-size: 1.05rem; }
.page-shell { padding-top: 48px; padding-bottom: 120px; }
.content-block { margin-top: 100px; }
.account-panel { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 34px 38px; }
.account-main { min-width: 0; }
.account-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.account-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.connected, .availability { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgb(52 211 153 / 25%); border-radius: 999px; padding: 5px 11px; background: rgb(52 211 153 / 8%); color: #a7f3d0; font-size: .72rem; font-weight: 700; }
.connected i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgb(52 211 153 / 70%); }
.account-summary { margin: 11px 0 18px; color: var(--muted); }
.player-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.player-tag { min-width: 0; display: flex; flex-direction: column; padding: 8px 13px; border: 1px solid var(--border); border-radius: 12px; background: rgb(255 255 255 / 4%); }
.player-tag b { font-size: .82rem; }
.player-tag small { max-width: 280px; overflow: hidden; color: #64748b; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.player-empty { color: var(--muted); font-size: .85rem; }
.player-disclosure { width: fit-content; max-width: 100%; margin-top: 16px; }
.player-disclosure summary { display: inline-flex; align-items: center; gap: 9px; color: #94a3b8; cursor: pointer; font-size: .76rem; font-weight: 650; list-style: none; transition: color .25s ease; }
.player-disclosure summary::-webkit-details-marker { display: none; }
.player-disclosure summary:hover { color: #fff; }
.player-disclosure summary span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.player-disclosure[open] summary span { transform: rotate(225deg) translate(-1px, -1px); }
.player-disclosure .player-tags { margin-top: 11px; }
.logout-form { flex: none; }
.account-actions { flex: none; display: flex; align-items: stretch; gap: 14px; }
.points-card { min-width: 220px; display: grid; align-content: center; padding: 13px 18px; border: 1px solid var(--border); border-radius: 15px; background: rgb(255 255 255 / 4%); }
.points-card span { color: #94a3b8; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.points-card strong { margin-top: 2px; color: #fff; font-size: 1.65rem; line-height: 1; }
.points-card small { margin-top: 6px; color: #64748b; font-size: .65rem; }
.points-redeem-button { margin-top: 10px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 9px; background: #fff; color: #05070a; font-size: .7rem; font-weight: 800; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.points-redeem-button:hover:not(:disabled) { transform: translateY(-1px); }
.points-redeem-button:disabled { background: rgb(255 255 255 / 7%); color: #64748b; cursor: not-allowed; }
.compact-button { min-height: 40px; padding: 8px 18px; font-size: .78rem; }
.confirmation-dialog { width: min(500px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid rgb(255 255 255 / 16%); border-radius: 19px; background: #0b0b0d; color: #f8fafc; box-shadow: 0 28px 90px rgb(0 0 0 / 78%); }
.confirmation-dialog::backdrop { background: rgb(0 0 0 / 72%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.confirmation-dialog-card { padding: 27px; }
.confirmation-dialog-card h2 { margin: 8px 0 12px; font-size: clamp(1.45rem, 4vw, 2rem); text-wrap: balance; }
.confirmation-dialog-card > p:not(.eyebrow) { margin: 0; color: #94a3b8; line-height: 1.7; overflow-wrap: anywhere; }
.confirmation-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.confirmation-dialog-actions .button { width: 100%; }
.overview-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 22px; margin-top: 22px; }
.overview-card { width: 100%; min-width: 0; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; }
.overview-card:hover { transform: translateY(-5px); }
.overview-card-label { color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.overview-card > strong { margin-top: 34px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.overview-card p { margin: 10px 0 24px; color: var(--muted); }
.overview-card-link { margin-top: auto; color: #dbe3ee; font-size: .82rem; font-weight: 700; }
.overview-card-link i { display: inline-block; margin-left: 7px; font-style: normal; transition: transform .25s ease; }
.overview-card:hover .overview-card-link i { transform: translateX(4px); }
.page-first-block { margin-top: 18px; }

.title-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.title-card { min-width: 0; min-height: 470px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s ease, border-color .35s ease; }
.title-card:hover { transform: translateY(-7px); border-color: var(--border-hover); }
.title-card-heading { display: flex; justify-content: space-between; align-items: center; }
.title-index { color: #64748b; font-size: .77rem; font-weight: 800; letter-spacing: .16em; }
.availability { border-color: var(--border); background: rgb(255 255 255 / 5%); color: #d5dbe4; }
.availability.owned { border-color: rgb(52 211 153 / 25%); background: rgb(52 211 153 / 8%); color: #a7f3d0; }
.title-copy { margin: 42px 0 auto; }
.title-label { margin: 0 0 10px; color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.title-copy h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.title-copy > p:last-child { min-height: 76px; margin: 14px 0 26px; color: var(--muted); }
.title-card form { display: grid; gap: 15px; }
.price-row { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 3px; color: #94a3b8; font-size: .78rem; }
.price-row strong { color: #f8fafc; font-size: .9rem; }
label { display: grid; gap: 7px; color: #cbd5e1; font-size: .78rem; font-weight: 650; }
select, input, textarea { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: #111216; color: #e5e7eb; font: inherit; font-size: .78rem; }
textarea { resize: vertical; line-height: 1.6; }
input[readonly] { color: #94a3b8; cursor: not-allowed; }
.title-button { width: 100%; justify-content: space-between; border-radius: 13px; }
.custom-title-section { margin-top: 90px; }
.custom-title-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 42px; padding: clamp(25px, 5vw, 44px); }
.custom-title-copy h3 { margin: 10px 0 14px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.custom-title-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.custom-title-copy code { padding: 2px 5px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 5px; background: rgb(255 255 255 / 5%); color: #e2e8f0; font-size: .78em; }
.custom-title-rule { color: #94a3b8 !important; font-size: .78rem; }
.custom-title-form { display: grid; gap: 18px; }
.custom-title-form label { display: grid; gap: 8px; color: #cbd5e1; font-size: .78rem; font-weight: 650; }
.single-player-selection { display: grid; gap: 7px; }
.player-picker-label, .player-picker legend { color: #cbd5e1; font-size: .78rem; font-weight: 650; }
.selected-player { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 12px; background: rgb(255 255 255 / 4%); color: #f8fafc; font-size: .8rem; }
.selected-player i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgb(52 211 153 / 60%); }
.player-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.player-picker legend { margin-bottom: 7px; padding: 0; }
.player-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.player-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.player-choice input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.player-choice span { min-height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px 10px; border: 1px solid var(--border); border-radius: 11px; background: rgb(255 255 255 / 4%); color: #94a3b8; font-size: .75rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.player-choice:hover span { border-color: var(--border-hover); color: #fff; }
.player-choice input:checked + span { border-color: rgb(255 255 255 / 42%); background: rgb(255 255 255 / 12%); color: #fff; box-shadow: inset 0 0 18px rgb(255 255 255 / 5%); }
.player-choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.no-player-selection { margin: 0; color: var(--danger); font-size: .78rem; }
.inventory-empty { min-height: 210px; display: grid; place-content: center; text-align: center; }
.inventory-empty h3 { margin: 0 0 10px; font-size: 1.45rem; }
.inventory-empty p { margin: 0; color: var(--muted); }
.current-title-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.current-title-card { min-width: 0; min-height: 230px; display: flex; flex-direction: column; gap: 30px; padding: 28px; }
.current-title-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.current-title-heading h3 { margin: 6px 0 0; color: #f8fafc; font-size: 1rem; overflow-wrap: anywhere; }
.current-title-label { margin: 0; color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.current-title-value { margin-top: auto; }
.current-title-value strong { display: block; margin-top: 10px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.3; overflow-wrap: anywhere; }
.current-title-value .current-title-empty { color: #94a3b8; font-size: 1rem; font-weight: 650; }
.current-title-progress { display: flex; align-items: center; gap: 9px; margin: -12px 0 0; color: #cbd5e1; font-size: .76rem; }
.current-title-progress i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px rgb(251 191 36 / 65%); }
.admin-hero { min-height: 360px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }
.admin-section { margin-top: 72px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.new-title-grid { grid-template-columns: minmax(0, 760px); }
.admin-title-form { display: grid; gap: 17px; padding: 28px; }
.admin-settings-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, .8fr); align-items: end; gap: 18px; max-width: 760px; padding: 28px; }
.admin-settings-form label { display: grid; gap: 8px; color: #cbd5e1; font-size: .78rem; font-weight: 650; }
.admin-settings-form .title-button { min-height: 46px; }
.title-color-segment { text-shadow: 0 0 18px currentColor; }
.task-title-display .title-color-segment { text-shadow: 0 0 10px currentColor; }
.admin-form-actions { display: grid; gap: 10px; }
.admin-delete-button { min-height: 42px; border: 1px solid rgb(251 113 133 / 28%); border-radius: 12px; background: rgb(251 113 133 / 8%); color: #fecdd3; cursor: pointer; font-size: .76rem; font-weight: 750; transition: background .2s ease, border-color .2s ease; }
.admin-delete-button:hover { border-color: rgb(251 113 133 / 55%); background: rgb(251 113 133 / 15%); }
.center-module-card { position: relative; overflow: hidden; }
.center-module-card::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 9%), transparent 68%); pointer-events: none; }
.atlas-module-card::after { background: radial-gradient(circle, rgb(56 189 248 / 14%), transparent 68%); }

.atlas-page-shell code { color: #dbeafe; }
.atlas-section-nav { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 30px; padding: 7px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 16px; background: rgb(5 7 11 / 72%); box-shadow: 0 16px 44px rgb(0 0 0 / 22%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.atlas-section-nav a { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid transparent; border-radius: 11px; color: #94a3b8; font-size: .78rem; font-weight: 720; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.atlas-section-nav a:hover { color: #f8fafc; background: rgb(255 255 255 / 5%); }
.atlas-section-nav a.active { border-color: rgb(255 255 255 / 14%); background: rgb(255 255 255 / 9%); color: #fff; box-shadow: inset 0 1px rgb(255 255 255 / 8%); }
.title-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-switcher { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 7px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 16px; background: rgb(5 7 11 / 82%); box-shadow: 0 16px 44px rgb(0 0 0 / 24%); }
.management-switcher-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-switcher a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; color: #94a3b8; font-size: .78rem; font-weight: 720; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.management-switcher a:hover { color: #fff; background: rgb(255 255 255 / 5%); }
.management-switcher a.active { border-color: rgb(255 255 255 / 16%); background: rgb(255 255 255 / 10%); color: #fff; }
.management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-card { min-height: 230px; }
.atlas-context-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 26px; padding: 0 2px; }
.atlas-context-nav a { min-height: 42px; display: inline-flex; align-items: center; color: #cbd5e1; font-size: .8rem; font-weight: 700; transition: color .2s ease, transform .2s ease; }
.atlas-context-nav a:hover { color: #fff; transform: translateX(-2px); }
.atlas-context-nav a + a:hover { transform: translateX(2px); }
.atlas-admin-nav a.active { border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 10%); color: #fff; }
.atlas-flow-guide { display: grid; gap: 16px; margin: -8px 0 32px; padding: 18px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 16px; background: rgb(255 255 255 / 2.5%); }
.atlas-flow-guide[hidden] { display: none; }
.atlas-flow-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.atlas-flow-guide-heading p { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; color: #94a3b8; font-size: .72rem; }
.atlas-flow-guide-heading p strong { color: #f8fafc; }
.atlas-flow-guide-heading button { flex: none; min-height: 32px; padding: 6px 11px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 999px; background: rgb(255 255 255 / 4%); color: #cbd5e1; cursor: pointer; font: inherit; font-size: .64rem; font-weight: 700; }
.atlas-flow-guide-heading button:hover { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 8%); color: #fff; }
.atlas-flow-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.atlas-flow-guide a { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 12px; background: rgb(0 0 0 / 18%); color: #94a3b8; }
.atlas-flow-guide a > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 13%); border-radius: 9px; color: #cbd5e1; font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.atlas-flow-guide a > span:last-child { min-width: 0; display: grid; gap: 3px; }
.atlas-flow-guide strong, .atlas-flow-guide small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-flow-guide strong { color: #e2e8f0; font-size: .72rem; }
.atlas-flow-guide small { color: #64748b; font-size: .61rem; }
.atlas-flow-guide a:hover, .atlas-flow-guide a.active { border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 7%); color: #fff; }
.atlas-flow-guide a.active > span:first-child { border-color: #fff; background: #fff; color: #09090b; }
.atlas-hub-grid { margin-top: 0; }
.atlas-form-help { margin: -5px 0 0; color: #94a3b8; font-size: .76rem; line-height: 1.65; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.atlas-map-body { height: 100dvh; overflow: hidden; background: #000; }
.atlas-map-body .site-main { height: 100dvh; min-height: 100dvh; overflow: hidden; }
.atlas-map-page, .atlas-map-stage { width: 100%; height: 100%; }
.atlas-map-stage { position: relative; overflow: hidden; background: #000; }
.atlas-map-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 46%, transparent 48%, rgb(0 0 0 / 38%) 100%); }
.atlas-map-dock { position: absolute; z-index: 20; top: calc(var(--header-height) + 8px); left: 16px; right: 16px; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(220px, 340px) minmax(330px, 1fr); align-items: center; gap: 12px; min-height: 50px; padding: 6px 8px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 14px; background: rgb(5 5 6 / 84%); box-shadow: 0 18px 55px rgb(0 0 0 / 36%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.atlas-map-dock .atlas-section-nav { min-width: 0; margin: 0; padding: 3px; border: 0; border-radius: 10px; background: rgb(255 255 255 / 4%); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.atlas-map-dock .atlas-section-nav a { min-height: 38px; padding: 6px 12px; border-radius: 8px; font-size: .69rem; }
.atlas-map-dock > .atlas-section-nav { justify-self: end; }
.atlas-map-dock-tools { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.atlas-search-label { width: 100%; }
.atlas-search-label input { width: 100%; height: 38px; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 10px; background: rgb(255 255 255 / 4%); color: #f8fafc; font-size: .72rem; outline: none; }
.atlas-search-label input:focus { border-color: rgb(255 255 255 / 30%); box-shadow: 0 0 0 3px rgb(255 255 255 / 7%); }
.atlas-toolbar-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 7px; }
.atlas-toolbar-actions .compact-button { min-height: 38px; padding: 8px 13px; white-space: nowrap; }
.atlas-map-primary-tools { justify-content: flex-start; }
.atlas-tool-button, .atlas-login-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 9px; background: rgb(255 255 255 / 4%); color: #cbd5e1; cursor: pointer; font-size: .68rem; font-weight: 700; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.atlas-tool-button:hover, .atlas-login-button:hover { border-color: rgb(255 255 255 / 25%); background: rgb(255 255 255 / 9%); color: #fff; }
.atlas-login-button { justify-self: end; }
.atlas-graph { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: hidden; background-color: #000; background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px), radial-gradient(circle at 52% 43%, rgb(255 255 255 / 7%), transparent 39%); background-size: 32px 32px, 32px 32px, 100% 100%; transition: filter .25s ease, opacity .25s ease; }
.atlas-map-stage.drawer-open .atlas-graph, .atlas-map-stage.drawer-open .atlas-activity-panel, .atlas-map-stage.drawer-open .atlas-map-dock, .atlas-map-stage.drawer-open .atlas-join-banner { filter: blur(3px); opacity: .5; }
.atlas-map-footer { position: absolute; z-index: 10; right: 18px; bottom: 16px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; pointer-events: none; }
.atlas-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 12px; background: rgb(5 7 11 / 68%); color: #94a3b8; font-size: .66rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.atlas-legend span { display: inline-flex; align-items: center; gap: 7px; }
.atlas-legend i { width: 25px; height: 2px; background: repeating-linear-gradient(90deg, #f8fafc 0 6px, transparent 6px 10px); filter: drop-shadow(0 0 3px rgb(255 255 255 / 55%)); }
.atlas-legend i.strong { height: 3px; background: #f8fafc; box-shadow: 0 0 9px rgb(255 255 255 / 42%); }
.atlas-graph-status { margin: 0; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 12px; background: rgb(5 7 11 / 68%); color: #94a3b8; font-size: .68rem; text-align: right; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.atlas-graph-status.error { color: #fda4af; }
.atlas-activity-panel { position: absolute; z-index: 12; top: calc(var(--header-height) + 75px); bottom: 66px; left: 16px; width: min(292px, calc(100% - 32px)); padding: 13px 8px 13px 0; transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s ease, filter .25s ease; }
.atlas-map-stage-guest .atlas-activity-panel { top: calc(var(--header-height) + 130px); }
.atlas-activity-panel.collapsed { transform: translateX(calc(-100% - 18px)); }
.atlas-activity-heading { display: grid; gap: 3px; margin: 0 0 10px 5px; padding: 0 9px; }
.atlas-activity-heading span { color: #64748b; font-size: .54rem; font-weight: 750; letter-spacing: .18em; }
.atlas-activity-heading strong { color: #f8fafc; font-size: .82rem; }
.atlas-activity-list { height: calc(100% - 48px); display: grid; align-content: start; gap: 5px; overflow: auto; scrollbar-width: none; mask-image: linear-gradient(#000 0%, #000 90%, transparent 100%); }
.atlas-activity-list::-webkit-scrollbar { display: none; }
.atlas-activity-item { width: 100%; min-height: 58px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 11px; background: rgb(7 7 8 / 78%); color: #94a3b8; cursor: pointer; font: inherit; font-size: .66rem; line-height: 1.45; text-align: left; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.atlas-activity-item:hover { border-color: rgb(255 255 255 / 22%); background: rgb(17 17 19 / 90%); transform: translateX(3px); }
.atlas-activity-item img { width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 10px; image-rendering: pixelated; }
.atlas-activity-item span { min-width: 0; }
.atlas-activity-item small { display: block; color: #64748b; font-size: .55rem; }
.atlas-view-switcher { flex: 0 0 auto; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 10px; background: rgb(255 255 255 / 3%); }
.atlas-view-switcher button { min-height: 31px; padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: #64748b; cursor: pointer; font: inherit; font-size: .66rem; font-weight: 750; }
.atlas-view-switcher button:hover { color: #f8fafc; }
.atlas-view-switcher button.active { background: #f8fafc; color: #09090b; box-shadow: 0 5px 18px rgb(0 0 0 / 30%); }
.atlas-explore-view { position: absolute; z-index: 4; top: calc(var(--header-height) + 74px); right: 16px; bottom: 62px; left: 16px; overflow: auto; padding: clamp(22px, 3vw, 44px); border: 1px solid rgb(255 255 255 / 9%); border-radius: 18px; background-color: #050506; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px), radial-gradient(circle at 72% 12%, rgb(255 255 255 / 8%), transparent 34%); background-size: 32px 32px, 32px 32px, 100% 100%; }
@media (min-width: 901px) {
  .atlas-map-stage:has(.atlas-activity-panel:not(.collapsed)) .atlas-explore-view { padding-left: 326px; }
}
.atlas-explore-view > header { display: flex; align-items: end; justify-content: space-between; gap: 28px; max-width: 1180px; margin: 0 auto 28px; }
.atlas-explore-view > header span, .atlas-rankings-panel > header span { color: #64748b; font-size: .6rem; font-weight: 800; letter-spacing: .18em; }
.atlas-explore-view > header h2 { margin: 5px 0 0; color: #f8fafc; font-size: clamp(1.65rem, 3vw, 3rem); }
.atlas-explore-view > header p { max-width: 480px; margin: 0; color: #94a3b8; font-size: .76rem; line-height: 1.7; }
.atlas-events-list { max-width: 1180px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 auto; }
.atlas-event-card { min-width: 0; padding: 20px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; background: rgb(8 8 10 / 88%); box-shadow: 0 18px 50px rgb(0 0 0 / 24%); }
.atlas-event-canvas-shell { max-width: 1180px; min-height: 480px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; margin: 0 auto 18px; overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; background: rgb(2 2 3 / 90%); }
.atlas-event-graph { min-width: 0; min-height: 480px; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px); background-size: 28px 28px; }
.atlas-event-detail { min-width: 0; padding: 20px; overflow: auto; border-left: 1px solid rgb(255 255 255 / 9%); background: rgb(10 10 12 / 94%); }
.atlas-event-detail > p { color: #64748b; font-size: .7rem; line-height: 1.7; }
.atlas-event-detail h3 { margin: 7px 0; color: #f8fafc; font-size: 1.1rem; }
.atlas-event-detail-list { display: grid; gap: 7px; margin-top: 18px; }
.atlas-event-card-heading > span { color: #64748b; font-size: .62rem; }
.atlas-event-card-heading h3 { margin: 7px 0 4px; color: #f8fafc; font-size: 1.12rem; }
.atlas-event-card-heading p { margin: 0; color: #94a3b8; font-size: .68rem; }
.atlas-event-participants { min-height: 40px; display: flex; align-items: center; margin: 18px 0 12px; }
.atlas-event-participants img { width: 38px; height: 38px; margin-right: -8px; border: 2px solid #09090b; border-radius: 10px; background: #18181b; image-rendering: pixelated; }
.atlas-event-perspectives { display: grid; gap: 6px; }
.atlas-event-perspective { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; background: rgb(255 255 255 / 3%); color: #cbd5e1; cursor: pointer; font: inherit; text-align: left; }
.atlas-event-perspective:hover { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 7%); }
.atlas-event-perspective strong { color: #f8fafc; font-size: .72rem; }
.atlas-event-perspective span { color: #64748b; font-size: .6rem; }
.atlas-explore-empty { grid-column: 1 / -1; padding: 48px 20px; color: #64748b; text-align: center; }
.atlas-timeline-years { max-width: 1180px; display: flex; gap: 8px; margin: 0 auto 18px; padding: 5px 0 12px; overflow-x: auto; scrollbar-color: #3f3f46 transparent; }
.atlas-timeline-years button { min-width: 116px; display: grid; gap: 2px; padding: 13px 16px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 12px; background: rgb(255 255 255 / 3%); color: #94a3b8; cursor: pointer; text-align: left; }
.atlas-timeline-years button.active { border-color: #e5e7eb; background: #f8fafc; color: #09090b; }
.atlas-timeline-years strong { font-size: 1rem; }
.atlas-timeline-years span { font-size: .58rem; }
.atlas-timeline-detail { max-width: 1180px; margin: 0 auto; }
.atlas-timeline-months { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.atlas-timeline-months span { padding: 6px 9px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; color: #64748b; font-size: .59rem; }
.atlas-timeline-diary-list { display: grid; gap: 7px; }
.atlas-timeline-diary { display: grid; grid-template-columns: 105px minmax(0, 1fr) 150px; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 11px; background: rgb(8 8 10 / 78%); color: #94a3b8; cursor: pointer; font: inherit; text-align: left; }
.atlas-timeline-diary:hover { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 6%); }
.atlas-timeline-diary time, .atlas-timeline-diary span { color: #64748b; font-size: .64rem; }
.atlas-timeline-diary strong { overflow: hidden; color: #f8fafc; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-rankings-panel { position: absolute; z-index: 32; top: calc(var(--header-height) + 75px); right: 16px; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - var(--header-height) - 148px); overflow: auto; padding: 22px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 17px; background: rgb(8 8 9 / 96%); box-shadow: 0 30px 90px rgb(0 0 0 / 62%); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.atlas-rankings-panel > header { padding-right: 38px; }
.atlas-rankings-panel > header strong { display: block; margin: 5px 0 4px; color: #f8fafc; font-size: 1.35rem; }
.atlas-rankings-panel > header p { margin: 0 0 18px; color: #64748b; font-size: .66rem; }
.atlas-ranking-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.atlas-ranking-columns section { min-width: 0; }
.atlas-ranking-columns h2 { margin: 0 0 8px; color: #94a3b8; font-size: .72rem; }
.atlas-ranking-columns ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.atlas-ranking-item { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 9px; background: rgb(255 255 255 / 3%); color: #94a3b8; cursor: pointer; font: inherit; text-align: left; }
.atlas-ranking-item:hover { border-color: rgb(255 255 255 / 20%); }
.atlas-ranking-number { color: #64748b; font-size: .62rem; }
.atlas-ranking-item strong { overflow: hidden; color: #f8fafc; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-ranking-item small { color: #64748b; font-size: .54rem; }
.atlas-map-stage.drawer-open .atlas-explore-view { filter: blur(3px); opacity: .5; }
.atlas-reader-engagement { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 24px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 9%); }
.atlas-reader-engagement button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px; background: rgb(255 255 255 / 3%); color: #94a3b8; cursor: pointer; font: inherit; font-size: .65rem; }
.atlas-reader-engagement button:hover, .atlas-reader-engagement button.active { border-color: rgb(255 255 255 / 30%); background: #f8fafc; color: #09090b; }
.atlas-reader-engagement button:disabled { cursor: wait; opacity: .55; }
.atlas-reader-engagement button strong { font-variant-numeric: tabular-nums; }
.atlas-reader-views { display: inline-flex; align-items: center; margin-left: auto; color: #64748b; font-size: .62rem; }
.atlas-reader-comments { padding-top: 5px; }
.atlas-reader-comments > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.atlas-reader-comments h3 { margin: 0; color: #f8fafc; font-size: .84rem; }
.atlas-reader-comments > header span { color: #64748b; font-size: .62rem; font-variant-numeric: tabular-nums; }
#atlas-comment-list { display: grid; gap: 7px; }
.atlas-comment-item { padding: 11px 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; background: rgb(255 255 255 / 2%); }
.atlas-comment-item header { display: flex; justify-content: space-between; gap: 12px; }
.atlas-comment-item strong { color: #e5e7eb; font-size: .66rem; }
.atlas-comment-item time { color: #52525b; font-size: .56rem; }
.atlas-comment-item p { margin: 6px 0 0; color: #a1a1aa; font-size: .68rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.atlas-comment-empty { margin: 0; padding: 16px 0; color: #52525b; font-size: .67rem; }
#atlas-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 12px; }
#atlas-comment-form textarea { min-height: 72px; resize: vertical; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px; outline: 0; background: rgb(255 255 255 / 4%); color: #f8fafc; font: inherit; font-size: .68rem; }
#atlas-comment-form textarea:focus-visible { border-color: #f8fafc; box-shadow: 0 0 0 3px rgb(255 255 255 / 9%); }
.atlas-comment-login { display: inline-flex; margin-top: 12px; color: #cbd5e1; font-size: .67rem; text-decoration: underline; text-underline-offset: 4px; }
.atlas-archive-list { display: grid; gap: 14px; }
.atlas-archive-card { padding: 0; overflow: hidden; }
.atlas-archive-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; }
.atlas-archive-heading::-webkit-details-marker { display: none; }
.atlas-archive-heading h3 { margin: 5px 0; color: #f8fafc; }
.atlas-archive-heading p { margin: 0; color: #64748b; font-size: .7rem; }
.atlas-archive-summary-state { flex: none; display: flex; align-items: center; gap: 9px; }
.atlas-archive-state { padding: 6px 9px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 999px; color: #a1a1aa; font-size: .61rem; white-space: nowrap; }
.atlas-archive-state.deleted { border-color: rgb(251 113 133 / 25%); color: #fda4af; }
.atlas-archive-open-label { min-width: 70px; color: #cbd5e1; font-size: .64rem; font-weight: 700; text-align: right; }
.atlas-archive-open-label span:last-child, .atlas-archive-card[open] .atlas-archive-open-label span:first-child { display: none; }
.atlas-archive-card[open] .atlas-archive-open-label span:last-child { display: inline; }
.atlas-archive-body { padding: 0 24px 24px; border-top: 1px solid rgb(255 255 255 / 8%); }
.atlas-archive-current { margin-top: 18px; padding: 17px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 12px; background: rgb(255 255 255 / 2.5%); }
.atlas-archive-current h4 { margin: 7px 0 10px; color: #f8fafc; font-size: 1rem; }
.atlas-archive-current > p:last-child { margin: 0; color: #cbd5e1; font-size: .76rem; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.atlas-archive-deletion { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 9px 16px; margin: 16px 0; padding: 12px; border: 1px solid rgb(251 113 133 / 17%); border-radius: 10px; background: rgb(127 29 29 / 9%); color: #94a3b8; font-size: .66rem; }
.atlas-archive-deletion p { margin: 0; overflow-wrap: anywhere; }
.atlas-admin-delete-diary, .atlas-archive-comment form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 16px 0; }
.atlas-admin-delete-diary input, .atlas-archive-comment input { min-height: 38px; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 9px; background: rgb(255 255 255 / 4%); color: #f8fafc; }
.atlas-archive-details { margin-top: 9px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 11px; background: rgb(255 255 255 / 2%); }
.atlas-archive-details summary { padding: 12px 14px; color: #cbd5e1; cursor: pointer; font-size: .68rem; font-weight: 700; }
.atlas-archive-details > div { display: grid; gap: 7px; padding: 0 10px 10px; }
.atlas-archive-revision, .atlas-archive-comment { padding: 12px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 9px; background: rgb(0 0 0 / 22%); }
.atlas-archive-revision header, .atlas-archive-comment > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.atlas-archive-revision time, .atlas-archive-comment time, .atlas-archive-comment span { color: #64748b; font-size: .58rem; }
.atlas-archive-revision h4 { margin: 9px 0 5px; color: #e5e7eb; }
.atlas-archive-revision p, .atlas-archive-comment p { margin: 0; color: #94a3b8; font-size: .67rem; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.atlas-archive-comment.deleted { opacity: .68; }
.atlas-archive-empty { color: #64748b; font-size: .68rem; }
.atlas-activity-item strong { color: #f8fafc; }
.atlas-activity-empty { margin: 0; padding: 16px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 11px; background: rgb(7 7 8 / 72%); color: #64748b; font-size: .68rem; }
.atlas-node-detail { position: fixed; z-index: 1200; top: calc(var(--header-height) + 14px); right: 14px; bottom: 14px; width: clamp(390px, 31vw, 560px); overflow-y: auto; padding: 20px 20px 18px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 17px; background: rgb(10 10 11 / 96%); box-shadow: 0 28px 90px rgb(0 0 0 / 72%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overscroll-behavior: contain; }
.atlas-node-detail[hidden] { display: none; }
.atlas-node-detail-header { display: flex; align-items: center; gap: 13px; padding: 2px 45px 15px 0; border-bottom: 1px solid rgb(255 255 255 / 9%); }
.atlas-node-detail-header > img { width: 58px; height: 58px; object-fit: cover; border: 2px solid rgb(255 255 255 / 82%); border-radius: 14px; background: #111; image-rendering: pixelated; box-shadow: 0 10px 24px rgb(0 0 0 / 36%); }
.atlas-node-detail-copy { min-width: 0; align-self: center; }
.atlas-node-detail-copy > span { color: #64748b; font-size: .55rem; font-weight: 760; letter-spacing: .17em; }
.atlas-node-detail-copy strong { display: block; margin-top: 4px; overflow: hidden; color: #f8fafc; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-node-detail-copy p { margin: 5px 0 0; overflow: hidden; color: #94a3b8; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-node-detail-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding: 0 2px 14px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.atlas-node-detail-stats > div { display: flex; align-items: baseline; gap: 7px; padding: 0; border: 0; background: transparent; }
.atlas-node-detail-stats dt { color: #64748b; font-size: .57rem; font-weight: 700; }
.atlas-node-detail-stats dd { order: -1; margin: 0; color: #f8fafc; font-size: .82rem; font-weight: 760; }
.atlas-detail-section { margin-top: 18px; }
.atlas-detail-section h2 { margin: 0 0 10px; color: #f8fafc; font-size: .76rem; }
.atlas-detail-section > p { margin: 0; padding: 12px 13px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; background: rgb(255 255 255 / 3%); color: #cbd5e1; font-size: .68rem; line-height: 1.7; white-space: pre-wrap; }
.atlas-detail-relations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.atlas-detail-relation { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 7px 3px; border: 0; border-radius: 10px; background: transparent; color: #94a3b8; cursor: pointer; font-size: .55rem; }
.atlas-detail-relation:hover { background: rgb(255 255 255 / 6%); color: #fff; }
.atlas-detail-relation img { width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 10px; image-rendering: pixelated; }
.atlas-detail-relation span { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.atlas-detail-diaries { display: grid; gap: 7px; }
.atlas-detail-diaries button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; background: rgb(255 255 255 / 3%); color: inherit; cursor: pointer; font: inherit; text-align: left; }
.atlas-detail-diaries button:hover { border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 6%); }
.atlas-detail-diaries small { color: #64748b; font-size: .58rem; }
.atlas-detail-diaries strong { overflow: hidden; color: #e2e8f0; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-detail-empty { grid-column: 1 / -1; margin: 0; color: #64748b; font-size: .66rem; }
.atlas-node-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgb(255 255 255 / 8%); color: #64748b; font-size: .6rem; }
.atlas-detail-close { position: absolute; top: 9px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #64748b; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.atlas-detail-close:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.atlas-diary-reader { position: fixed; z-index: 1500; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.atlas-diary-reader[hidden] { display: none; }
.atlas-diary-reader-backdrop { position: absolute; inset: 0; border: 0; background: rgb(0 0 0 / 64%); cursor: default; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.atlas-diary-reader-panel { position: relative; width: min(900px, 100%); height: min(700px, calc(100dvh - 48px)); display: grid; grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); overflow: hidden; border: 1px solid rgb(255 255 255 / 14%); border-radius: 17px; background: #0a0a0b; box-shadow: 0 34px 110px rgb(0 0 0 / 78%); overscroll-behavior: contain; }
.atlas-diary-reader-list { min-width: 0; overflow-y: auto; padding: 18px 12px; border-right: 1px solid rgb(255 255 255 / 9%); background: #0d0d0f; overscroll-behavior: contain; }
.atlas-diary-reader-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; padding: 0 5px; }
.atlas-diary-reader-list-heading span { color: #cbd5e1; font-size: .7rem; font-weight: 800; }
.atlas-diary-reader-list-heading small { color: #64748b; font-size: .61rem; }
#atlas-reader-list { display: grid; gap: 7px; }
.atlas-reader-list-item { min-width: 0; min-height: 60px; display: grid; align-content: center; gap: 6px; padding: 10px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #94a3b8; cursor: pointer; text-align: left; }
.atlas-reader-list-item strong { overflow: hidden; color: #e2e8f0; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-reader-list-item small { color: #64748b; font-size: .6rem; font-variant-numeric: tabular-nums; }
.atlas-reader-list-item:hover { border-color: rgb(255 255 255 / 10%); background: rgb(255 255 255 / 4%); }
.atlas-reader-list-item.active { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 7%); }
.atlas-diary-reader-content { position: relative; min-width: 0; overflow-y: auto; padding: 22px 25px 36px; overscroll-behavior: contain; scrollbar-color: #52525b transparent; }
.atlas-reader-close { top: 15px; right: 17px; width: 40px; height: 40px; }
.atlas-reader-author { display: flex; align-items: center; gap: 11px; padding: 0 50px 15px 0; border-bottom: 1px solid rgb(255 255 255 / 9%); }
.atlas-reader-author img { flex: none; width: 44px; height: 44px; border: 2px solid rgb(255 255 255 / 70%); border-radius: 11px; background: #17171a; image-rendering: pixelated; }
.atlas-reader-author div { min-width: 0; display: grid; gap: 4px; }
.atlas-reader-author strong { overflow: hidden; color: #f8fafc; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-reader-author span { overflow: hidden; color: #64748b; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-reader-meta { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: #64748b; font-size: .62rem; }
.atlas-reader-meta span { color: #94a3b8; font-weight: 750; }
.atlas-reader-meta time { font-variant-numeric: tabular-nums; }
.atlas-diary-reader-content h2 { margin: 14px 0 0; color: #f8fafc; font-size: clamp(1.3rem, 2.4vw, 1.72rem); line-height: 1.28; overflow-wrap: anywhere; text-wrap: balance; }
.atlas-diary-reader-content > p { margin: 19px 0 0; padding-top: 19px; border-top: 1px solid rgb(255 255 255 / 8%); color: #d8dee8; font-size: clamp(.82rem, 1.15vw, .94rem); line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.atlas-join-banner { position: absolute; z-index: 18; top: calc(var(--header-height) + 68px); left: 16px; right: 16px; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 18px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 12px; background: rgb(240 240 242 / 94%); color: #111; box-shadow: 0 12px 36px rgb(0 0 0 / 35%); font-size: .72rem; font-weight: 650; transition: filter .25s ease, opacity .25s ease; }
.atlas-join-banner a { padding: 5px 10px; border-radius: 8px; background: #111; color: #fff; }
.atlas-map-notice { position: absolute; z-index: 19; top: calc(var(--header-height) + 68px); left: 50%; width: min(560px, calc(100% - 36px)); transform: translateX(-50%); }
.atlas-map-notice .notice { margin: 0; box-shadow: 0 16px 40px rgb(0 0 0 / 35%); }
.atlas-disabled { min-height: 300px; display: grid; place-content: center; padding: 44px; text-align: center; }
.atlas-map-page > .atlas-disabled { width: min(720px, calc(100% - 40px)); min-height: 360px; margin: calc(var(--header-height) + 60px) auto 0; }
.atlas-disabled h2 { margin: 12px 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.atlas-disabled p:last-child { color: var(--muted); }
.atlas-feed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.atlas-feed-card { min-width: 0; min-height: 170px; display: flex; flex-direction: column; padding: 22px; transition: transform .25s ease, border-color .25s ease; }
.atlas-feed-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.atlas-feed-card span, .atlas-feed-card small { color: #64748b; font-size: .7rem; }
.atlas-feed-card strong { margin: auto 0 13px; color: #f8fafc; font-size: 1rem; line-height: 1.45; }

.atlas-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.atlas-profile-editor { min-width: 0; padding: 28px; }
.atlas-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.atlas-player-identity { display: flex; align-items: center; min-width: 0; gap: 16px; }
.atlas-player-identity img, .atlas-public-profile > img { flex: none; border: 1px solid rgb(255 255 255 / 16%); border-radius: 15px; image-rendering: pixelated; background: #111216; }
.atlas-player-identity h3 { margin: 7px 0 0; overflow-wrap: anywhere; }
.atlas-review-status { flex: none; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: #94a3b8; font-size: .65rem; font-weight: 750; }
.atlas-review-status.pending { border-color: rgb(251 191 36 / 28%); background: rgb(251 191 36 / 8%); color: #fde68a; }
.atlas-review-status.approved { border-color: rgb(52 211 153 / 28%); background: rgb(52 211 153 / 8%); color: #a7f3d0; }
.atlas-review-status.rejected { border-color: rgb(251 113 133 / 30%); background: rgb(251 113 133 / 8%); color: #fecdd3; }
.atlas-review-status.paused { border-color: rgb(148 163 184 / 28%); background: rgb(71 85 105 / 16%); color: #cbd5e1; }
.atlas-review-status.admin_hidden { border-color: rgb(251 113 133 / 34%); background: rgb(136 19 55 / 18%); color: #fecdd3; }
.atlas-editor-form, .atlas-diary-editor { display: grid; gap: 18px; margin-top: 25px; }
.atlas-checkbox { grid-template-columns: 18px 1fr; align-items: center; }
.atlas-checkbox input { width: 16px; height: 16px; padding: 0; accent-color: #fff; }
.atlas-rejection { margin-top: 20px; padding: 13px 15px; border: 1px solid rgb(251 113 133 / 25%); border-radius: 12px; background: rgb(136 19 55 / 18%); color: #fecdd3; }
.atlas-rejection strong { font-size: .72rem; }
.atlas-rejection p { margin: 6px 0 0; font-size: .78rem; }
.atlas-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.atlas-paused-copy { margin: 0; color: #94a3b8; font-size: .74rem; line-height: 1.55; }
.task-retry-button.danger { border-color: rgb(251 113 133 / 28%); color: #fecdd3; }
.atlas-diary-editor { max-width: 860px; padding: clamp(24px, 5vw, 40px); }
.atlas-diary-editor > .atlas-mention-field { z-index: 4; }
.atlas-mention-editor { position: relative; display: grid; }
.atlas-mention-editor textarea { width: 100%; }
.atlas-mention-popover { position: absolute; z-index: 30; top: var(--atlas-mention-top, calc(100% + 9px)); left: var(--atlas-mention-left, 8px); width: var(--atlas-mention-width, min(340px, calc(100% - 16px))); max-height: 280px; padding: 11px; overflow-y: auto; border: 1px solid rgb(255 255 255 / 14%); border-radius: 14px; background: rgb(8 9 12 / 97%); box-shadow: 0 22px 70px rgb(0 0 0 / 58%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.atlas-mention-popover[hidden] { display: none; }
.atlas-mention-popover > p { margin: 2px 5px 9px; color: #94a3b8; font-size: .66rem; font-weight: 700; }
.atlas-mention-popover > div { display: grid; gap: 5px; }
.atlas-mention-option { width: 100%; min-height: 54px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #e5e7eb; cursor: pointer; text-align: left; }
.atlas-mention-option:hover, .atlas-mention-option.is-active { border-color: rgb(255 255 255 / 14%); background: rgb(255 255 255 / 7%); }
.atlas-mention-option img { width: 38px; height: 38px; border-radius: 9px; background: #17181c; image-rendering: pixelated; object-fit: cover; }
.atlas-mention-option > span { min-width: 0; display: grid; gap: 3px; }
.atlas-mention-option strong { overflow: hidden; color: #f8fafc; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-mention-option small { color: #64748b; font-size: .61rem; }
.atlas-mention-empty { padding: 14px 10px; color: #64748b; font-size: .7rem; text-align: center; }
.atlas-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.atlas-editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.atlas-draft-toolbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 12px; background: rgb(255 255 255 / 3%); color: #94a3b8; font-size: .72rem; }
.atlas-draft-toolbar a { color: #e2e8f0; font-weight: 700; }
.atlas-draft-toolbar [data-state="saving"], .atlas-draft-toolbar [data-state="pending"] { color: #fde68a; }
.atlas-draft-toolbar [data-state="saved"] { color: #a7f3d0; }
.atlas-draft-toolbar [data-state="error"] { color: #fda4af; }
.atlas-draft-section { margin-top: 32px; }
.atlas-draft-card { border-color: rgb(96 165 250 / 18%); }
.atlas-draft-preview { max-width: 760px; margin: 8px 0 0; overflow: hidden; color: #64748b; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-review-status.draft { background: rgb(96 165 250 / 11%); color: #bfdbfe; }
.atlas-my-diary-list, .atlas-public-diary-list, .atlas-report-list { display: grid; gap: 14px; }
.atlas-my-diary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 21px 24px; }
.atlas-my-diary h3 { margin: 9px 0 0; font-size: 1rem; }
.atlas-diary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #64748b; font-size: .7rem; }
.atlas-row-actions { flex: none; display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 24px; border-left: 1px solid rgb(255 255 255 / 9%); }
.atlas-row-actions form { margin: 0; }
.atlas-row-actions .task-retry-button { min-width: 68px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; white-space: nowrap; }
.atlas-admin-hidden-note { color: #fda4af; font-size: .7rem; }
.atlas-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.atlas-list-heading .section-heading { margin-bottom: 0; }
.atlas-list-heading > .compact-button { flex: none; margin-bottom: 2px; }
.atlas-rejection-inline { margin: 8px 0 0; color: #fda4af; font-size: .74rem; }

.atlas-public-profile { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, .65fr); align-items: center; gap: 30px; padding: clamp(25px, 5vw, 42px); }
.atlas-public-profile-copy h2 { margin: 7px 0 12px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.atlas-public-profile-copy > p:last-child { margin: 0; color: var(--muted); white-space: pre-wrap; line-height: 1.75; }
.atlas-profile-stats { display: grid; gap: 12px; margin: 0; }
.atlas-profile-stats > div { padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: rgb(255 255 255 / 3%); }
.atlas-profile-stats dt { color: #64748b; font-size: .65rem; font-weight: 750; }
.atlas-profile-stats dd { margin: 6px 0 0; color: #f8fafc; font-size: .9rem; font-weight: 700; }
.atlas-public-diary { padding: clamp(24px, 5vw, 38px); }
.atlas-public-diary h3 { margin: 15px 0 16px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.atlas-public-diary > p { margin: 0; color: #cbd5e1; white-space: pre-wrap; line-height: 1.9; }
.atlas-report { margin-top: 26px; color: #64748b; font-size: .72rem; }
.atlas-report summary { cursor: pointer; }
.atlas-report form { display: grid; gap: 10px; margin-top: 12px; }

.atlas-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.atlas-review-card { min-width: 0; padding: 27px; }
.atlas-review-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.atlas-review-card-heading h3 { margin: 8px 0 0; overflow-wrap: anywhere; }
.atlas-review-card-heading > span { color: #64748b; font-size: .68rem; overflow-wrap: anywhere; }
.atlas-review-diff { display: grid; gap: 11px; margin: 24px 0; }
.atlas-review-diff > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; }
.atlas-review-diff dt { color: #64748b; font-size: .66rem; }
.atlas-review-diff dd { margin: 7px 0 0; color: #dbe3ee; white-space: pre-wrap; line-height: 1.6; }
.atlas-review-diary { margin: 22px 0; }
.atlas-review-diary span { color: #64748b; font-size: .7rem; }
.atlas-review-diary p { max-height: 260px; overflow: auto; color: #cbd5e1; white-space: pre-wrap; line-height: 1.75; }
.atlas-review-form { display: grid; gap: 10px; }
.atlas-review-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.atlas-report-card { display: grid; grid-template-columns: 1fr minmax(280px, .7fr); gap: 24px; padding: 24px; }
.atlas-report-card h3 { margin: 8px 0; }
.atlas-report-card p, .atlas-report-card small { color: var(--muted); }
.atlas-report-card form { display: grid; gap: 8px; }
.atlas-admin-search { display: flex; align-items: end; gap: 10px; margin-bottom: 34px; padding: 18px; }
.atlas-admin-search label { min-width: 0; flex: 1 1 auto; }
.atlas-admin-search .task-retry-button { flex: none; }
.atlas-admin-draft { border-color: rgb(96 165 250 / 18%); }
.atlas-admin-player-list { display: grid; gap: 12px; }
.atlas-admin-player { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; }
.atlas-admin-player h3 { margin: 6px 0; font-size: 1rem; }
.atlas-admin-player p:last-child { margin: 0; color: #64748b; font-size: .7rem; overflow-wrap: anywhere; }
.atlas-admin-player > div:last-child { flex: none; }
.atlas-admin-player form { margin: 0; }
.atlas-empty-inline { color: var(--muted); }
.admin-title-form .title-card-heading { margin-bottom: 4px; }
.subtle-link { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 0; color: #cbd5e1; font-size: .8rem; font-weight: 650; transition: color .25s ease, transform .25s ease; }
.subtle-link:hover { color: #fff; transform: translateX(-3px); }

.notice { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; margin-bottom: 24px; padding: 13px 16px; border: 1px solid rgb(52 211 153 / 25%); border-radius: 13px; background: rgb(6 78 59 / 38%); color: #d1fae5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .88rem; }
.welcome-hero .notice { margin-bottom: 28px; }
.notice.error { border-color: rgb(251 113 133 / 30%); background: rgb(136 19 55 / 32%); color: #ffe4e6; }
.notice-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgb(52 211 153 / 65%); }
.notice.error .notice-dot { background: var(--danger); box-shadow: 0 0 12px rgb(251 113 133 / 65%); }

.table-wrap { overflow-x: auto; padding: 4px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 22px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { color: #64748b; font-size: .73rem; font-weight: 750; letter-spacing: .08em; }
td { color: #cbd5e1; font-size: .88rem; }
td strong { color: #fff; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: rgb(251 191 36 / 10%); color: #fde68a; font-size: .72rem; font-weight: 750; }
.status.leased { background: rgb(96 165 250 / 11%); color: #bfdbfe; }
.status.completed { background: rgb(52 211 153 / 10%); color: #a7f3d0; }
.status.failed { background: rgb(251 113 133 / 11%); color: #fecdd3; }
.task-error { display: block; max-width: 300px; margin-top: 7px; overflow: hidden; color: #fda4af; font-size: .68rem; text-overflow: ellipsis; }
.task-retry-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: rgb(255 255 255 / 8%); color: #fff; cursor: pointer; font-size: .72rem; font-weight: 750; transition: background .2s ease, transform .2s ease; }
.task-retry-button:hover { background: rgb(255 255 255 / 15%); transform: translateY(-1px); }
.task-no-action { color: #475569; }
.empty { height: 120px; color: var(--muted); text-align: center; }

.error-shell { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-height) + 50px) 24px 70px; }
.error-panel { width: min(620px, 100%); padding: clamp(34px, 7vw, 64px); text-align: left; }
.error-panel h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.error-panel > p:not(.eyebrow) { margin: 0 0 28px; color: var(--muted); }
.login-required-panel .button { min-width: 230px; }

.main-footer { position: relative; margin-top: 80px; padding: 50px 24px; overflow: hidden; border-top: 1px solid var(--color-border); background: rgb(0 0 0 / 20%); color: var(--color-text-secondary); text-align: center; font-size: 13px; }
.main-footer::before { content: ""; position: absolute; top: 0; left: 50%; width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--color-accent), transparent); opacity: .5; transform: translateX(-50%); }
.main-footer p { margin: 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.footer-links a { color: var(--color-text-secondary); transition: color .3s; }
.footer-links a:hover { color: #fff; }

@media (min-width: 834px) {
  .header-container { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-nav { display: flex; justify-self: center; }
  .app-header-container { grid-template-columns: 1fr auto 1fr; }
  .app-header-container .app-primary-nav { justify-self: center; gap: 28px; }
}

@media (max-width: 833px) {
  .menu-button { position: fixed; top: 13px; right: 20px; display: flex; }
  .glass-panel::before { top: 50%; left: 50%; width: 200%; height: 200%; background: radial-gradient(circle, rgb(255 255 255 / 3%) 0%, transparent 70%); opacity: .8; transform: translate(-50%, -50%); }
  .glass-panel:hover { box-shadow: 0 10px 30px rgb(0 0 0 / 20%); transform: none; }
}

  @media (max-width: 900px) {
  .title-grid { grid-template-columns: 1fr 1fr; }
  .title-card:last-child { grid-column: 1 / -1; min-height: 410px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 210px; }
  .step-number { margin-bottom: 30px; }
}

@media (max-width: 700px) {
  .container, .welcome-hero-inner { width: min(100% - 32px, 1160px); }
  .header-container { padding: 0 24px; }
  .welcome-hero { min-height: 760px; background-image: linear-gradient(0deg, #000 0%, rgb(0 0 0 / 38%) 52%, rgb(0 0 0 / 48%) 100%), url("/assets/img/title-hero.jpg"); background-position: 60% center; }
  .welcome-hero-inner { align-self: flex-end; padding-bottom: 110px; }
  .welcome-hero h1 { font-size: clamp(3.6rem, 19vw, 5.8rem); }
  .hero-copy { margin-top: 22px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .page-section { padding: 80px 0; }
  .dashboard-hero { min-height: 390px; }
  .app-page-hero { min-height: 310px; }
  .page-shell { padding-top: 30px; padding-bottom: 80px; }
  .account-panel { align-items: flex-start; flex-direction: column; padding: 27px 23px; }
  .account-actions { width: 100%; flex-direction: column; }
  .account-actions > .button { width: 100%; }
  .points-card { width: 100%; }
  .logout-form, .logout-form .button { width: 100%; }
  .content-block { margin-top: 75px; }
  .page-first-block { margin-top: 10px; }
  .overview-grid { grid-template-columns: 1fr; }
  .current-title-grid { grid-template-columns: 1fr; }
  .atlas-section-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; }
  .atlas-section-nav a { padding-inline: 10px; }
  .title-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-switcher { padding: 6px; }
  .management-switcher a { min-height: 42px; padding-inline: 8px; font-size: .7rem; }
  .atlas-context-nav { align-items: stretch; flex-direction: column; gap: 4px; }
  .atlas-context-nav a { width: 100%; }
  .atlas-map-dock { top: calc(var(--header-height) + 10px); right: 10px; left: 10px; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 7px; border-radius: 14px; }
  .atlas-map-dock .atlas-section-nav { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .atlas-map-dock .atlas-section-nav a { min-height: 38px; padding: 5px 7px; font-size: .64rem; }
  .atlas-map-dock-tools { align-items: stretch; flex-direction: column; }
  .atlas-search-label { width: 100%; }
  .atlas-map-primary-tools { justify-content: stretch; }
  .atlas-map-primary-tools > * { flex: 1 1 0; }
  .atlas-login-button { width: 100%; }
  .atlas-graph { inset: 0; width: 100%; height: 100%; min-height: 0; }
  .atlas-activity-panel { display: none; }
  #atlas-activity-toggle { display: none; }
  .atlas-join-banner { top: calc(var(--header-height) + 167px); right: 10px; left: 10px; justify-content: space-between; font-size: .64rem; }
  .atlas-map-footer { right: 9px; bottom: 8px; left: 9px; }
  .atlas-map-footer .atlas-legend { display: none; }
  .atlas-graph-status { width: 100%; overflow: hidden; font-size: .61rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  .atlas-node-detail { top: 10px; right: 10px; bottom: 10px; left: 10px; width: auto; padding: 20px 18px; border-radius: 16px; }
  .atlas-diary-reader { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .atlas-diary-reader-panel { height: calc(100dvh - 16px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); border-radius: 16px; }
  .atlas-diary-reader-list { max-height: 164px; padding: 14px 12px; overflow: hidden; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 9%); }
  .atlas-diary-reader-list-heading { margin-bottom: 10px; }
  #atlas-reader-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
  .atlas-reader-list-item { min-width: 180px; min-height: 60px; }
  .atlas-diary-reader-content { padding: 22px 19px 34px; }
  .atlas-reader-author { padding-right: 45px; }
  .atlas-detail-relations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atlas-node-detail-footer { align-items: stretch; flex-direction: column; }
  .atlas-node-detail-footer .button { width: 100%; }
  .atlas-map-notice { top: calc(var(--header-height) + 167px); }
  .atlas-feed-grid, .atlas-profile-grid, .atlas-review-grid { grid-template-columns: 1fr; }
  .atlas-flow-guide ol { grid-template-columns: 1fr; }
  .atlas-form-grid { grid-template-columns: 1fr; }
  .atlas-public-profile { grid-template-columns: 1fr; align-items: start; }
  .atlas-public-profile > img { width: 84px; height: 84px; }
  .atlas-my-diary, .atlas-profile-actions { align-items: flex-start; flex-direction: column; }
  .atlas-list-heading { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 18px; padding-bottom: 20px; }
  .atlas-list-heading > .compact-button { align-self: flex-start; margin-bottom: 0; }
  .atlas-row-actions { width: 100%; margin-left: 0; padding-top: 16px; padding-left: 0; border-top: 1px solid rgb(255 255 255 / 9%); border-left: 0; }
  .atlas-row-actions > * { flex: 1 1 0; }
  .atlas-row-actions form .task-retry-button { width: 100%; }
  .atlas-editor-actions, .atlas-admin-search { align-items: stretch; flex-direction: column; }
  .atlas-admin-player { align-items: stretch; flex-direction: column; }
  .atlas-admin-player > div:last-child, .atlas-admin-player .task-retry-button { width: 100%; }
  .atlas-editor-actions .button, .atlas-admin-search .task-retry-button { width: 100%; }
  .atlas-draft-toolbar { align-items: flex-start; flex-direction: column; }
  .atlas-report-card { grid-template-columns: 1fr; }
  .overview-card { min-height: 210px; padding: 25px; }
  .player-choice-list { grid-template-columns: 1fr; }
    .title-grid { grid-template-columns: 1fr; }
    .custom-title-card { grid-template-columns: 1fr; gap: 28px; }
  .title-card, .title-card:last-child { min-height: 440px; grid-column: auto; padding: 25px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-title-form { padding: 23px; }
  .admin-settings-form { grid-template-columns: 1fr; padding: 23px; }
  .title-copy > p:last-child { min-height: 0; }
  .records-section { margin-left: -16px; margin-right: -16px; }
  .records-section .section-heading { padding: 0 16px; }
  .table-wrap { border-radius: 0; border-left: 0; border-right: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr { padding: 13px 20px; border-bottom: 1px solid var(--border); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap td { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 0; border: 0; white-space: normal; text-align: right; }
  .table-wrap td::before { content: attr(data-label); flex: none; color: #64748b; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
  .table-wrap td.empty { height: auto; justify-content: center; padding: 30px 0; text-align: center; }
  .table-wrap td.empty::before { display: none; }
}

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

@media (max-width: 1100px) {
  .atlas-map-dock { grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr) auto; }
  .atlas-map-primary-tools { overflow-x: auto; scrollbar-width: none; }
  .atlas-map-primary-tools::-webkit-scrollbar { display: none; }
  .atlas-map-primary-tools .atlas-tool-button { flex: 0 0 auto; padding-inline: 10px; }
}

@media (max-width: 700px) {
  .atlas-map-dock { grid-template-columns: 1fr; }
  .atlas-map-primary-tools { width: 100%; }
  .atlas-map-stage-guest .atlas-map-dock > .atlas-login-button { display: none; }
  .atlas-view-switcher { width: 100%; }
  .atlas-search-label input { height: 36px; }
  .atlas-join-banner { top: calc(var(--header-height) + 162px); }
  .atlas-explore-view { top: calc(var(--header-height) + 225px); right: 9px; bottom: 48px; left: 9px; padding: 18px 13px; border-radius: 14px; }
  .atlas-explore-view > header { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 18px; }
  .atlas-explore-view > header p { font-size: .66rem; }
  .atlas-events-list { grid-template-columns: 1fr; }
  .atlas-event-canvas-shell { min-height: 560px; grid-template-columns: 1fr; grid-template-rows: 360px auto; }
  .atlas-event-graph { min-height: 360px; }
  .atlas-event-detail { max-height: 240px; border-top: 1px solid rgb(255 255 255 / 9%); border-left: 0; }
  .atlas-event-card { padding: 15px; }
  .atlas-event-perspective { align-items: start; flex-direction: column; gap: 2px; }
  .atlas-timeline-diary { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 11px; }
  .atlas-timeline-diary span { grid-column: 2; }
  .atlas-rankings-panel { top: calc(var(--header-height) + 225px); right: 9px; width: calc(100% - 18px); max-height: calc(100dvh - var(--header-height) - 286px); padding: 17px 13px; }
  .atlas-ranking-columns { grid-template-columns: 1fr; }
  .atlas-ranking-item { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .atlas-reader-engagement { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-reader-engagement button { justify-content: space-between; }
  .atlas-reader-views { grid-column: 1 / -1; margin-left: 0; }
  #atlas-comment-form, .atlas-admin-delete-diary, .atlas-archive-comment form { grid-template-columns: 1fr; }
  .atlas-archive-heading { align-items: stretch; flex-direction: column; gap: 12px; padding: 17px 14px; }
  .atlas-archive-summary-state { justify-content: space-between; }
  .atlas-archive-body { padding: 0 13px 17px; }
  .atlas-archive-deletion { grid-template-columns: 1fr; }
}
