/* =================== Brand layer: navy + aviator gold =================== */
.btn.gold, [data-theme="dark"] .btn:not(.ghost):not(.danger) {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #10192b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(212, 176, 106, .18);
}
.btn.lg { padding: 13px 26px; font-size: 1rem; border-radius: 12px; }
.btn.ghost.on-dark { color: var(--hero-tx); border-color: rgba(255, 255, 255, .22); }
.btn.ghost.on-dark:hover { background: rgba(255, 255, 255, .06); }
.row-gap.center { justify-content: center; }
.eyebrow, .tagline-k { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.display { font-size: 2.4rem; font-weight: 800; letter-spacing: -.01em; margin: .25em 0 .15em; color: #fff; }

/* hero banner (dashboard + welcome) */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; background: var(--hero-bg); color: var(--hero-tx);
  border: 1px solid rgba(212, 176, 106, .22); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  margin-bottom: 18px; isolation: isolate;
}
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(600px 240px at 50% -10%, rgba(212, 176, 106, .16), transparent 70%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold-hi); z-index: -1; }
.hero-dash { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 30px 34px; min-height: 190px; }
.hero-sub { color: var(--hero-tx2); font-size: 1.08rem; margin: 0; }
.hero-rank { text-align: center; padding: 14px 22px; border-radius: 18px; background: rgba(9, 14, 26, .45); border: 1px solid rgba(212, 176, 106, .25); backdrop-filter: blur(6px); min-width: 210px; }
.rank-name { font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); font-size: .95rem; margin-top: 4px; }
.rank-note { font-size: .78rem; color: var(--hero-tx2); }

/* wings badge */
.wings { width: 74px; height: auto; display: block; margin: 0 auto; }
.wings-lg { width: 150px; }
.wings .f-on { stroke: var(--gold); }
.wings .f-off { stroke: var(--line2); }
.hero .wings .f-off { stroke: rgba(255, 255, 255, .14); }
.wings .w-disc { fill: var(--navy); stroke: var(--gold); stroke-width: 2; }
.wings .w-plane { fill: none; stroke: var(--gold-hi); stroke-width: 1.8; stroke-linejoin: round; }

/* sidebar */
.nav-rank { margin-top: auto; }
.nav-rank-in { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--tx); }
.nav-rank-in:hover { border-color: var(--gold); }
.nav-rank-in .wings { width: 52px; margin: 0; flex: none; }
.nav-rank-in span { display: flex; flex-direction: column; line-height: 1.2; }
.nav-rank-in b { font-size: .86rem; }
.nav-rank-in small { font-size: .72rem; color: var(--tx2); }
#nav nav a.active { box-shadow: inset 3px 0 0 var(--gold); }

/* welcome */
.welcome { max-width: 1120px; }
.hero-welcome { padding: 64px 28px 40px; text-align: center; min-height: 460px; display: grid; place-items: center; }
.hero-center { max-width: 720px; }
.hero-plane { width: 76px; height: 76px; margin: 0 auto 10px; color: var(--gold); filter: drop-shadow(0 6px 18px rgba(212, 176, 106, .35)); }
.hero-plane .plane { width: 100%; height: 100%; }
.wordmark { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: .08em; margin: 0 0 .1em; color: #fff; }
.tagline-k { font-size: clamp(.8rem, 1.6vw, 1.05rem); letter-spacing: .22em; }
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--hero-tx2); margin: 18px 0 26px; line-height: 1.5; }
.hero-stats { display: flex; justify-content: center; margin-top: 34px; border-top: 1px solid rgba(212, 176, 106, .2); padding-top: 22px; flex-wrap: wrap; row-gap: 14px; }
.hero-stats div { padding: 0 26px; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .08); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { font-family: "JetBrains Mono", monospace; font-size: 1.6rem; color: var(--gold-hi); font-weight: 700; }
.hero-stats span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-tx2); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.pillar::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), transparent); }
.pillar-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); color: var(--amber); font-size: 1.2rem; }
.pillar h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.pillar p { color: var(--tx2); margin: 0; font-size: .93rem; }
.ladder-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.ladder-step { text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 12px 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.ladder-step b { font-size: .84rem; } .ladder-step span { font-size: .72rem; color: var(--tx3); }
.roadmap { margin-bottom: 18px; }
.road { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.road::before { content: ''; position: absolute; left: 10%; right: 10%; top: 9px; border-top: 2px dashed var(--line2); }
.road-item { text-align: center; padding: 26px 6px 0; position: relative; display: flex; flex-direction: column; gap: 2px; }
.road-item::before { content: ''; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); }
.road-item.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--s3); }
.road-item b { font-size: .88rem; } .road-item span { font-size: .74rem; color: var(--tx3); }
.road-item.now span { color: var(--amber); }

@media (max-width: 900px) {
  .hero-dash { grid-template-columns: 1fr; }
  .hero-rank { justify-self: start; }
  .pillars { grid-template-columns: 1fr; }
  .ladder-row { grid-template-columns: repeat(3, 1fr); }
  .road { grid-template-columns: 1fr; gap: 10px; }
  .road::before { display: none; }
  .road-item { text-align: left; padding: 0 0 0 28px; }
  .road-item::before { left: 8px; top: 3px; }
}
@media (max-width: 760px) {
  .nav-rank, .brand { display: none; }
  #nav nav a.active { box-shadow: inset 0 2px 0 var(--gold); }
  .display { font-size: 1.8rem; }
  .hero-dash { padding: 24px 20px; }
  .hero-welcome { padding: 44px 16px 28px; }
  .hero-stats div { padding: 0 14px; }
}

/* keyboard focus: a visible gold ring (mouse clicks don't show it) */
:is(a, button, select, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.num-in:focus-visible, .search:focus-visible, .form input:focus-visible, .form select:focus-visible, .match select:focus-visible { outline: none; }
#view:focus-visible { outline: none; }
