:root {
  --bg: #090712;
  --panel: rgba(28, 18, 52, 0.88);
  --panel-2: rgba(41, 25, 77, 0.92);
  --line: rgba(169, 126, 255, 0.32);
  --text: #f2edff;
  --muted: #b7acd4;
  --violet: #8f5cff;
  --cyan: #35e6ff;
  --gold: #ffd86b;
  --red: #ff526d;
  --green: #52ff9a;
  --gray: #8390a6;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; text-decoration: none; }
.bg-grid { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at top left, rgba(143,92,255,.25), transparent 38%), radial-gradient(circle at bottom right, rgba(53,230,255,.12), transparent 38%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, auto, 32px 32px, 32px 32px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem clamp(1rem, 4vw, 2.5rem); background: rgba(7, 5, 14, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { font-weight: 900; letter-spacing: .12em; color: var(--cyan); }
.nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.nav a { color: var(--muted); padding: .4rem .65rem; border: 1px solid transparent; border-radius: 999px; }
.nav a:hover { color: var(--text); border-color: var(--line); background: rgba(143,92,255,.12); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 1.2rem auto 4rem; }
.panel { background: linear-gradient(145deg, var(--panel), rgba(9,7,18,.92)); border: 1px solid var(--line); box-shadow: 0 0 28px rgba(143,92,255,.12), inset 0 0 28px rgba(143,92,255,.04); border-radius: 22px; padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1rem; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.eyebrow { margin: 0 0 .35rem; color: var(--cyan); letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.1; overflow-wrap: anywhere; }
h1 { margin: .1rem 0 1rem; font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { margin: .1rem 0 .8rem; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.tiny { font-size: .86rem; }
.gold { color: var(--gold); }
.danger-text { color: var(--red); }
.cyan-text { color: var(--cyan); }
.green-text { color: var(--green); }
.system-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1rem; }
.system-grid.two { grid-template-columns: 1fr 1fr; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stat-grid div, .detail-grid div { padding: .9rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; min-width: 0; }
.stat-grid span, .detail-grid span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }
.stat-grid strong, .detail-grid p { overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.detail-grid.single { grid-template-columns: 1fr; }
.xp-line { margin-top: 1rem; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .7rem; color: var(--gold); }
.xp-bar, .capacity-bar, .hp-bar { height: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.xp-bar div { height: 100%; background: linear-gradient(90deg, var(--gold), #fff3b0); }
.hp-bar div { height: 100%; background: linear-gradient(90deg, var(--red), #ff9faf); }
.capacity-bar div { height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.boss-panel { border-color: rgba(255,82,109,.45); }
.boss-state { display: inline-block; padding: .35rem .7rem; border-radius: 999px; font-weight: 800; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.boss-state.sealed { color: var(--gray); }
.boss-state.open, .boss-state.active { color: var(--cyan); }
.boss-state.wounded { color: var(--gold); }
.boss-state.defeated { color: var(--green); }
.boss-state.escaped { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: .72rem 1rem; font-weight: 800; cursor: pointer; background: rgba(255,255,255,.05); color: var(--text); transition: .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn.primary { background: linear-gradient(135deg, var(--violet), #4d35d9); border-color: transparent; }
.btn.cyan { background: linear-gradient(135deg, #11788a, var(--cyan)); color: #041015; border-color: transparent; }
.btn.danger { background: linear-gradient(135deg, #6f1224, var(--red)); border-color: transparent; }
.btn.ghost { background: transparent; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.inline-form { display: inline-block; margin-left: .5rem; }
.form-card { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-weight: 700; }
input, textarea, select { width: 100%; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: .85rem .9rem; font: inherit; }
textarea { resize: vertical; }
select option { color: #111; }
.choice-list { display: grid; gap: .8rem; }
.choice-card { display: flex; grid-template-columns: auto 1fr; gap: .75rem; align-items: flex-start; padding: 1rem; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.04); color: var(--text); }
.choice-card input { width: auto; margin-top: .2rem; }
.capacity-list { display: grid; gap: .55rem; }
.capacity-row { display: grid; grid-template-columns: minmax(240px, 1fr) 72px minmax(120px, 220px); align-items: center; gap: .75rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.035); }
.capacity-name { overflow-wrap: anywhere; }
.capacity-level { color: var(--gold); font-weight: 900; }
.quest-list, .report-list, .training-list, .queue-list, .attempt-list { display: grid; gap: .75rem; }
.quest-row, .report-row, .training-row, .queue-row { display: grid; grid-template-columns: 68px minmax(220px, 1fr) auto auto auto auto auto; gap: .7rem; align-items: center; padding: .9rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; }
.report-row { grid-template-columns: minmax(240px, 1fr) auto auto auto; }
.training-row, .queue-row { grid-template-columns: 1fr auto auto auto; }
.quest-row:hover, .report-row:hover { border-color: var(--cyan); background: rgba(53,230,255,.06); }
.quest-code { color: var(--cyan); font-weight: 900; }
.quest-title-wrap { display: grid; gap: .25rem; min-width: 0; }
.quest-title-wrap strong, .quest-title-wrap span { white-space: normal; overflow-wrap: anywhere; }
.quest-title-wrap span { color: var(--muted); font-size: .9rem; }
.quest-pill { padding: .35rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid rgba(255,255,255,.08); white-space: nowrap; font-size: .85rem; }
.quest-reward { color: var(--gold); font-weight: 900; white-space: nowrap; }
.status-cleared, .status-defeated { border-color: rgba(82,255,154,.35); }
.status-active, .status-open, .status-wounded { border-color: rgba(53,230,255,.32); }
.status-locked, .status-sealed { opacity: .78; }
.status-expired, .status-failed { border-color: rgba(255,82,109,.35); }
.quest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.rank-badge { min-width: 112px; text-align: center; color: var(--gold); font-weight: 900; border: 1px solid rgba(255,216,107,.45); border-radius: 18px; padding: .85rem; background: rgba(255,216,107,.06); }
.rank-badge span { color: var(--muted); font-size: .8rem; }
.quest-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); }
.quest-meta span { padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.04); }
.quest-meta.big { margin: 1rem 0; }
.proof-box, .verdict-box, .sealed-box, .hp-box { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }
.danger-panel { border-color: rgba(255,82,109,.45); }
.warning { border-color: rgba(255,216,107,.45); }
.system-message { margin: 1rem 0 0; padding: 1rem; border-left: 4px solid var(--cyan); background: rgba(53,230,255,.06); color: var(--text); border-radius: 12px; }
.hp-box { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .7rem; color: var(--red); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.menu-grid a { padding: .8rem; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--muted); }
.menu-grid a:hover { color: var(--text); border-color: var(--cyan); }
.flash-stack { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { border-radius: 14px; padding: .8rem 1rem; border: 1px solid var(--line); background: rgba(143,92,255,.12); }
.flash.success { border-color: rgba(82,255,154,.4); }
.flash.danger { border-color: rgba(255,82,109,.45); }
.flash.warning { border-color: rgba(255,216,107,.45); }
.codebox { display: grid; gap: .35rem; margin: .9rem 0; }
.codebox span { color: var(--muted); font-size: .85rem; }
.codebox code { display: block; overflow-x: auto; padding: .85rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.35); color: var(--cyan); }
.attempt-card { padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.04); }
ul { padding-left: 1.2rem; }
@media (max-width: 900px) {
  .system-grid, .system-grid.two, .stat-grid, .detail-grid { grid-template-columns: 1fr; }
  .quest-row { grid-template-columns: 58px minmax(0, 1fr); }
  .quest-row .quest-pill, .quest-row .quest-reward { grid-column: 2; justify-self: start; }
  .report-row, .training-row, .queue-row { grid-template-columns: 1fr; }
  .capacity-row { grid-template-columns: 1fr 64px; }
  .capacity-bar { grid-column: 1 / -1; }
  .menu-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
.account-chip { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; }
.account-chip form { margin: 0; }
.link-button { border: 0; background: transparent; color: var(--cyan); cursor: pointer; font: inherit; font-weight: 800; padding: .2rem .3rem; }
.auth-panel h1 { color: var(--cyan); }
.check-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; }
.check-line input { width: auto; }
.proof-history { display: grid; gap: .75rem; }
.mini-card { padding: .9rem; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.04); }
.mini-card pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; padding: .75rem; border-radius: 12px; background: rgba(0,0,0,.28); color: var(--muted); }
.file-list { display: grid; gap: .4rem; }
.file-list a { color: var(--cyan); font-weight: 800; }
input[type="file"] { padding: .7rem; }
@media (max-width: 900px) { .account-chip { width: 100%; justify-content: space-between; } }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 900; }
.hero-split { display: grid; grid-template-columns: 1.6fr .8fr; gap: 1rem; align-items: start; }
.avatar-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.avatar-panel.large { min-width: 240px; }
.avatar-img { width: 160px; height: 160px; object-fit: cover; image-rendering: auto; border-radius: 18px; border: 1px solid rgba(143,92,255,.4); background: rgba(0,0,0,.25); }
.avatar-img.large { width: 220px; height: 220px; }
.avatar-placeholder { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 18px; border: 1px dashed rgba(255,255,255,.18); color: var(--muted); background: rgba(0,0,0,.2); font-weight: 800; letter-spacing: .08em; }
.settings-split { grid-template-columns: 1.4fr .8fr; }
.warning-note { padding: .9rem 1rem; border: 1px solid rgba(255,216,107,.45); border-radius: 14px; background: rgba(255,216,107,.08); color: var(--gold); }
ol { padding-left: 1.2rem; }
@media (max-width: 900px) {
  .hero-split, .settings-split { grid-template-columns: 1fr; }
  .avatar-panel.large, .avatar-placeholder, .avatar-img.large { width: 100%; max-width: 240px; }
}

/* --- UI/UX tuning patch --- */
html { font-size: clamp(14px, 1.15vw, 16px); }
body { font-size: 1rem; }
.topbar { gap: .8rem; }
.nav a, .account-chip, .menu-grid a, .btn { font-size: clamp(.82rem, .95vw, .96rem); }
.shell { width: min(1220px, calc(100% - 1.2rem)); }
.panel { overflow: hidden; }
.status-panel, .gate-panel { min-height: 100%; }
.compact-title { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.profile-hero { align-items: stretch; }
.profile-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.profile-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.framework-card { margin-bottom: .9rem; padding: 1rem 1rem .95rem; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: linear-gradient(135deg, rgba(143,92,255,.13), rgba(53,230,255,.08)); }
.framework-card span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: .35rem; }
.framework-card strong { display: block; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.25; }
.profile-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-stat-grid div { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.profile-stat-grid strong { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero-tagline { margin-top: .8rem; }
.player-card { justify-content: space-between; background: radial-gradient(circle at top, rgba(255,255,255,.08), rgba(255,255,255,.03)); }
.avatar-img.sticker { background: transparent; border: 0; box-shadow: 0 12px 30px rgba(53,230,255,.10); }
.avatar-info { display: grid; gap: .2rem; width: 100%; text-align: left; }
.avatar-info.center { text-align: center; }
.avatar-info span { color: var(--cyan); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.avatar-info strong { font-size: 1rem; }
.avatar-info small { color: var(--muted); font-size: .82rem; }
.boss-stats, .showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 1.1rem; }
.boss-stats div, .showcase-grid div { padding: .85rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); min-width: 0; }
.boss-stats .full { grid-column: 1 / -1; }
.boss-stats span, .showcase-grid span { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.boss-stats strong, .showcase-grid strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.capacity-list.deluxe { gap: .7rem; }
.deluxe-row { padding: .75rem .85rem; }
.menu-grid a { min-height: 56px; display: flex; align-items: center; }
.quest-meta span { font-size: .84rem; }
.quest-row, .report-row, .training-row, .queue-row { align-items: start; }
.quest-row .btn, .report-row .btn { white-space: nowrap; }
.stat-grid strong, .detail-grid p { line-height: 1.35; }
.brand { white-space: nowrap; font-size: clamp(.95rem, 1vw, 1.08rem); }
@media (max-width: 1100px) {
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { width: min(100%, calc(100% - .9rem)); margin-top: .8rem; }
  .topbar { padding: .75rem .9rem; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { padding: .35rem .55rem; }
  .profile-stat-grid, .boss-stats, .showcase-grid { grid-template-columns: 1fr 1fr; }
  .profile-header { flex-direction: column; }
}
@media (max-width: 680px) {
  h1 { font-size: clamp(1.45rem, 8vw, 2rem); margin-bottom: .75rem; }
  h2 { font-size: clamp(1.05rem, 5.2vw, 1.35rem); }
  .panel { padding: .95rem; border-radius: 18px; }
  .eyebrow { font-size: .72rem; }
  .xp-line, .hp-box { grid-template-columns: 32px 1fr; }
  .xp-line strong, .hp-box strong { grid-column: 1 / -1; justify-self: end; }
  .quest-head { flex-direction: column; }
  .avatar-img { width: 132px; height: 132px; }
  .avatar-img.large { width: 168px; height: 168px; }
  .avatar-placeholder { width: 132px; height: 132px; }
  .player-card { padding-top: .6rem; }
  .profile-stat-grid, .boss-stats, .showcase-grid, .detail-grid { grid-template-columns: 1fr; }
  .stat-grid div, .detail-grid div, .showcase-grid div, .boss-stats div { min-height: unset; }
  .menu-grid a { min-height: 48px; }
  .btn { width: 100%; }
  .button-row .btn, .button-row a { flex: 1 1 100%; }
  .inline-form { display: block; margin: .7rem 0 0; }
  .framework-card strong { font-size: 1rem; }
  .quest-meta { gap: .4rem; }
}

/* --- Gemini GIF avatar + profile dashboard patch --- */
.player-profile-card { position: relative; overflow: hidden; }
.player-profile-card::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(53,230,255,.16), transparent 64%); pointer-events: none; }
.player-profile-layout { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; position: relative; z-index: 1; }
.avatar-stage { display: grid; place-items: center; gap: .75rem; padding: 1rem; border-radius: 28px; border: 1px solid rgba(53,230,255,.22); background: radial-gradient(circle at center, rgba(53,230,255,.13), rgba(143,92,255,.06) 48%, rgba(0,0,0,.15)); }
.hero-avatar { width: clamp(150px, 18vw, 230px); height: clamp(150px, 18vw, 230px); object-fit: contain; border: 0; background: transparent; border-radius: 24px; filter: drop-shadow(0 14px 28px rgba(53,230,255,.12)); }
.rank-seal { padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(255,216,107,.45); color: var(--gold); background: rgba(255,216,107,.07); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.player-profile-main { min-width: 0; }
.player-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.player-title-row h1 { margin-bottom: .25rem; }
.framework-line { margin: 0; color: var(--text); font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 800; overflow-wrap: anywhere; }
.level-pill { flex: 0 0 auto; padding: .75rem 1rem; border-radius: 18px; border: 1px solid rgba(255,216,107,.45); color: var(--gold); background: rgba(255,216,107,.07); font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 900; }
.hero-xp { margin: 1.1rem 0; }
.profile-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.profile-stat-strip div { padding: .85rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.profile-stat-strip span, .avatar-signature-line span { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.profile-stat-strip strong { display: block; font-size: clamp(1rem, 1.5vw, 1.25rem); overflow-wrap: anywhere; }
.avatar-signature-line { margin-top: .85rem; padding: .8rem .9rem; border-radius: 16px; border: 1px solid rgba(143,92,255,.22); background: rgba(143,92,255,.08); }
.avatar-signature-line strong { display: block; margin-bottom: .25rem; }
.quest-focus-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.quest-preview { max-width: 80ch; margin-bottom: 0; }
.boss-prep-grid { align-items: stretch; }
.boss-hp-line { margin: 1rem 0; }
.stage-focus-short { max-height: 5.5rem; overflow: hidden; }
@media (max-width: 900px) {
  .player-profile-layout { grid-template-columns: 1fr; text-align: center; }
  .player-title-row { flex-direction: column; align-items: center; text-align: center; }
  .profile-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .quest-focus-layout { grid-template-columns: 1fr; }
  .quest-focus-layout .btn { width: 100%; }
}
@media (max-width: 560px) {
  .profile-stat-strip { grid-template-columns: 1fr; }
  .hero-avatar { width: 158px; height: 158px; }
  .rank-seal { font-size: .76rem; }
}

/* --- HTTPS finishing patch: System loading scene --- */
body.is-loading {
  overflow: hidden;
}
body.is-loading .topbar,
body.is-loading .shell {
  pointer-events: none;
  user-select: none;
}
.system-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at center, rgba(53,230,255,.14), transparent 28%),
    radial-gradient(circle at 25% 20%, rgba(143,92,255,.25), transparent 34%),
    rgba(5, 4, 12, .88);
  backdrop-filter: blur(12px);
}
.system-loading-overlay.active {
  display: flex;
}
.loading-gate {
  width: min(460px, 94vw);
  text-align: center;
  padding: clamp(1.1rem, 4vw, 1.8rem);
  border: 1px solid rgba(53,230,255,.36);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(28,18,52,.96), rgba(9,7,18,.96));
  box-shadow:
    0 0 42px rgba(53,230,255,.16),
    0 0 90px rgba(143,92,255,.12),
    inset 0 0 35px rgba(143,92,255,.07);
}
.loading-ring {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid rgba(53,230,255,.25);
  background:
    repeating-conic-gradient(from 0deg, rgba(53,230,255,.7) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle, rgba(143,92,255,.18), transparent 62%);
  animation: gate-spin 2.1s linear infinite;
}
.loading-ring::before,
.loading-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 14px;
  border: 1px solid rgba(255,216,107,.35);
  animation: gate-spin-reverse 3.4s linear infinite;
}
.loading-ring::after {
  inset: 31px;
  border-color: rgba(143,92,255,.55);
  animation-duration: 1.7s;
}
.loading-core {
  position: absolute;
  inset: 53px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan), var(--violet));
  box-shadow: 0 0 24px rgba(53,230,255,.75);
  animation: gate-pulse 1.15s ease-in-out infinite alternate;
}
.loading-gate h2 {
  margin: .2rem 0 .6rem;
  font-size: clamp(1.2rem, 4.7vw, 1.65rem);
}
.loading-gate p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 auto 1rem;
  max-width: 34rem;
}
.loading-gate small {
  color: var(--gold);
}
.loading-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
  margin: 1rem 0 .8rem;
}
.loading-bar div {
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  animation: loading-sweep 1.15s ease-in-out infinite alternate;
}
.disabled-link {
  opacity: .6;
  pointer-events: none;
}
@keyframes gate-spin {
  to { transform: rotate(360deg); }
}
@keyframes gate-spin-reverse {
  to { transform: rotate(-360deg); }
}
@keyframes gate-pulse {
  from { transform: scale(.86); opacity: .72; }
  to { transform: scale(1.08); opacity: 1; }
}
@keyframes loading-sweep {
  from { transform: translateX(-65%); }
  to { transform: translateX(230%); }
}
@media (max-width: 680px) {
  .loading-ring {
    width: 112px;
    height: 112px;
  }
  .loading-ring::before { inset: 12px; }
  .loading-ring::after { inset: 25px; }
  .loading-core { inset: 42px; }
  .loading-gate { border-radius: 20px; }
}
