:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-deep: #07090d;
  --bg-2: #10141b;
  --panel: rgba(18, 23, 31, 0.92);
  --panel-2: rgba(24, 30, 40, 0.92);
  --panel-3: rgba(11, 15, 21, 0.94);
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.20);
  --line-blue: rgba(0,112,224,0.48);
  --text: #f3f5f8;
  --muted: #9ca7b7;
  --muted-2: #6f7a8a;
  --accent: #0070e0;
  --accent-bright: #2f93ff;
  --accent-soft: rgba(0,112,224,0.14);
  --accent-2: #5daeff;
  --danger: #ff6f91;
  --warning: #d9a441;
  --max: 1220px;
  --header: 76px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(0,112,224,.13), transparent 34rem),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 260px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:100;
  opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:100% 4px;
  mix-blend-mode:soft-light;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(8,11,16,.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(0,112,224,.12);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0,112,224,.18), rgba(0,112,224,.05)),
    #111720;
  box-shadow: inset 0 0 18px rgba(0,112,224,.09);
  overflow:hidden;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { letter-spacing: .15em; font-size: 14px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .1em; margin-top: 5px; }
.brand-logo { width: 28px; height: 28px; display:block; object-fit:contain; }
.fallback-logo { width: 94px; height: 94px; }

.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a {
  min-height: 38px;
  display:flex;
  align-items:center;
  padding:0 13px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  border:1px solid transparent;
  border-radius:4px;
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--text);
  background:rgba(255,255,255,.035);
  border-color:var(--line);
}
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header)));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:linear-gradient(180deg,#0b0f15,#080b10);
}
.hero-scene-wrap { position: absolute; inset: 0; }
#hero-canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.scene-fallback.show { opacity: 1; }
.fallback-core {
  width: 160px; height: 160px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line-blue);
  background:#111720;
  box-shadow: inset 0 0 50px rgba(0,112,224,.12);
}
.fallback-orbit { position: absolute; width: 360px; height: 160px; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-18deg); }

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to right,#000 10%,transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(8,11,16,.90) 0%, rgba(8,11,16,.34) 47%, rgba(8,11,16,.48) 100%),
    linear-gradient(to bottom, transparent 60%, rgba(8,11,16,.94) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(690px, calc(100% - 40px));
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 max(20px, calc((100vw - var(--max)) / 2));
  padding: 80px 0 120px;
  pointer-events: none;
}
.hero-overlay a { pointer-events: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow::before { content:"[ "; color:var(--muted-2); }
.eyebrow::after { content:" ]"; color:var(--muted-2); }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; }
.hero-copy { max-width: 650px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 22px); color: #c7cdd7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.button {
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .03em;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.button.primary {
  background: linear-gradient(180deg,#1380eb,#0066cc);
  border-color:#2f93ff;
  color:white;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.button.ghost { background: rgba(255,255,255,.028); }
.button:hover, .button:focus-visible { transform: translateY(-1px); border-color: var(--accent-bright); }
.button.ghost:hover { background:var(--accent-soft); }
.hero-hint { display: flex; gap: 18px; margin-top: 42px; color: var(--muted-2); font-size: 9px; letter-spacing: .16em; }

.signal-dock {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  display: grid;
  gap: 5px;
  width: min(260px, calc(100% - 40px));
  border:1px solid var(--line);
  background:rgba(9,12,17,.82);
  padding:5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.signal-dock::before {
  content:"QUICK NAVIGATION";
  color:var(--muted-2);
  font-size:9px;
  letter-spacing:.14em;
  padding:7px 9px 5px;
}
.signal {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255,255,255,.018);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.signal span { color: var(--accent-bright); font-size: 10px; letter-spacing: .12em; }
.signal:hover, .signal:focus-visible { border-color: var(--line-blue); background: var(--accent-soft); }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 104px 0; scroll-margin-top: 92px; }
.section.alt {
  width: 100%;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg,rgba(255,255,255,.012),transparent 90px),
    rgba(255,255,255,.014);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-strip {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border:1px solid var(--line);
  border-top:0;
  background:var(--panel-3);
}
.intro-strip div { display: grid; gap: 2px; padding: 20px 24px; border-right: 1px solid var(--line); }
.intro-strip div:last-child { border-right: 0; }
.intro-strip strong { font-size: 18px; }
.intro-strip span { color: var(--muted); font-size: 11px; text-transform:uppercase; letter-spacing:.08em; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 6vw, 66px); line-height: 1; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; }

.featured-project {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-top-color:var(--line-blue);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.project-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(0,112,224,.18), transparent 34%),
    linear-gradient(145deg,#101722,#090c11 60%);
  border-right: 1px solid var(--line);
}
.heavy-water .project-visual {
  background:
    linear-gradient(180deg, rgba(7,10,14,.28), rgba(7,10,14,.82)),
    radial-gradient(circle at 70% 30%, rgba(0,112,224,.22), transparent 34%),
    url('assets/heavy-water-hero.png') center/cover no-repeat,
    linear-gradient(145deg,#101722,#090c11 60%);
}
.project-visual::before, .project-visual::after { content:""; position:absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, #000, transparent); }
.camera-eye { position: absolute; left: 16%; top: 20%; width: 90px; height: 90px; border: 1px solid var(--line-blue); border-radius: 5px; transform: rotate(-8deg); background: rgba(0,0,0,.28); z-index: 2; transition: transform .65s ease; }
.eye-lens { position:absolute; inset: 20px; border: 1px solid var(--accent-2); border-radius: 50%; box-shadow: 0 0 30px rgba(0,112,224,.22); }
.eye-ray { position:absolute; top: 44px; left: 70px; width: 300px; height: 1px; background: linear-gradient(90deg, var(--accent-2), transparent); transform-origin: left; transform: rotate(18deg); opacity:.45; }
.player-proxy { position:absolute; right: 22%; bottom: 23%; width: 110px; height: 180px; border:1px solid var(--line-strong); border-radius: 48px 48px 10px 10px; background: linear-gradient(to bottom,rgba(255,255,255,.05),rgba(255,255,255,.01)); z-index:2; transition: transform .65s ease, filter .65s ease; }
.player-proxy::before { content:""; position:absolute; width:60px; height:60px; border-radius:50%; border:1px solid var(--line-strong); top:-48px; left:24px; background:#0f131b; }
.player-proxy span { position:absolute; left:50%; top:40%; width:1px; height:130px; background:linear-gradient(var(--danger),transparent); }
.visual-copy { position:absolute; left:28px; bottom:24px; z-index:3; display:grid; gap:4px; }
.visual-copy span { font-size:10px; color:var(--accent-bright); letter-spacing:.18em; }
.visual-copy strong { font-size: clamp(24px,4vw,44px); letter-spacing:-.03em; }
.project-copy { padding: 40px; display:flex; flex-direction:column; justify-content:center; }
.meta-row { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.meta-row span,.tag-row span { border:1px solid var(--line); border-radius:3px; padding:5px 8px; color:var(--muted); font-size:9px; letter-spacing:.08em; background:rgba(255,255,255,.018); }
.project-copy h3,.work-card h3,.consult-grid h3 { margin:0 0 12px; font-size:26px; }
.project-copy p,.work-card p,.consult-grid p { margin:0; color:var(--muted); }
.text-action { margin-top:26px; padding:0; border:0; background:none; color:var(--accent-bright); cursor:pointer; text-align:left; font-weight:800; }
.text-action::before { content:"> "; color:var(--muted-2); }
.heavy-water.lens-active .camera-eye { transform: translate(210px, 45px) rotate(9deg) scale(1.15); }
.heavy-water.lens-active .player-proxy { transform: translate(-150px,-20px) scale(.82); filter: blur(.4px); }
.heavy-water.lens-active .project-visual { box-shadow: inset 0 0 0 1px rgba(0,112,224,.24), inset 0 0 80px rgba(0,112,224,.07); }

.card-grid { display:grid; gap:12px; margin-top:12px; }
.card-grid.two-up { grid-template-columns:repeat(2,minmax(0,1fr)); }
.work-card {
  min-height:230px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.014));
  text-decoration:none;
  position:relative;
}
.work-card::before {
  content:"";
  position:absolute;
  left:-1px;
  top:24px;
  width:2px;
  height:34px;
  background:var(--accent);
  opacity:.75;
}
.work-card:hover { border-color:var(--line-blue); background:linear-gradient(180deg,rgba(0,112,224,.05),rgba(255,255,255,.014)); }
.card-kicker { margin-bottom:auto; color:var(--accent-bright); font-size:9px; letter-spacing:.16em; }
.tag-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:20px; }
.link-arrow { margin-top:22px; color:var(--text); font-weight:800; font-size:13px; }

.consult-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--panel-3); }
.consult-grid article { min-height:280px; padding:26px; border-right:1px solid var(--line); background:rgba(255,255,255,.012); }
.consult-grid article:last-child { border-right:0; }
.consult-grid article > span { display:block; color:var(--accent-bright); font-size:10px; letter-spacing:.12em; margin-bottom:72px; }
.consult-grid article:hover { background:var(--accent-soft); }
.consult-cases { margin-top:12px; }

.filter-bar {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-bottom:14px;
  padding:5px;
  border:1px solid var(--line);
  background:var(--panel-3);
  width:max-content;
  max-width:100%;
}
.filter { min-height:36px; padding:0 12px; border:1px solid transparent; border-radius:3px; background:transparent; color:var(--muted); cursor:pointer; }
.filter.active,.filter:hover,.filter:focus-visible { color:#fff; background:linear-gradient(180deg,#147fe8,#0066cc); border-color:var(--accent-bright); }
.tool-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.tool-card {
  min-height:164px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.012));
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,opacity .18s ease,background .18s ease;
  position:relative;
  overflow:hidden;
}
.tool-card::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background:var(--accent);
  opacity:.55;
}
.tool-card:hover { transform:translateY(-2px); border-color:var(--line-blue); background:linear-gradient(180deg,rgba(0,112,224,.055),rgba(255,255,255,.015)); }
.tool-card.hidden { display:none; }
.tool-card.wireframe { background:repeating-linear-gradient(135deg,rgba(255,255,255,.02),rgba(255,255,255,.02) 8px,transparent 8px,transparent 16px); border-style:dashed; }
.tool-state { margin-bottom:auto; color:var(--accent-bright); font-size:8px; letter-spacing:.16em; }
.tool-card strong { font-size:23px; }
.tool-card small { color:var(--muted); }
.section-action-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }

.about-panel { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-top-color:var(--line-blue); border-radius:var(--radius); overflow:hidden; background:var(--panel-3); }
.about-callout { min-height:280px; display:flex; align-items:flex-end; gap:20px; padding:32px; border-right:1px solid var(--line); background:linear-gradient(145deg,rgba(0,112,224,.10),rgba(255,255,255,.01)); }
.big-number { font-size:clamp(80px,12vw,150px); line-height:.8; letter-spacing:-.07em; font-weight:900; }
.about-callout > span:last-child { color:var(--muted); }
.about-links { display:grid; }
.about-links a { min-height:66px; padding:0 26px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); text-decoration:none; }
.about-links a:last-child { border-bottom:0; }
.about-links a:hover { background:var(--accent-soft); }

.site-footer { width:min(var(--max),calc(100% - 40px)); margin:0 auto; min-height:116px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--muted-2); font-size:10px; letter-spacing:.1em; }
.site-footer a { color:var(--text); text-decoration:none; }

.achievement { position:fixed; right:20px; bottom:20px; z-index:80; width:min(330px,calc(100% - 40px)); padding:15px 16px; border:1px solid var(--line-blue); border-radius:4px; background:#10161f; box-shadow:0 20px 60px rgba(0,0,0,.4); transform:translateY(150%); transition:transform .35s ease; }
.achievement.show { transform:translateY(0); }
.achievement span { display:block; color:var(--accent-bright); font-size:8px; letter-spacing:.16em; margin-bottom:4px; }
.achievement strong { font-size:14px; }

:focus-visible { outline:2px solid var(--accent-bright); outline-offset:3px; }

@media (max-width: 980px) {
  .section-heading { grid-template-columns:1fr; gap:20px; }
  .featured-project { grid-template-columns:1fr; }
  .project-visual { border-right:0; border-bottom:1px solid var(--line); }
  .consult-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .consult-grid article { border-bottom:1px solid var(--line); }
  .consult-grid article:nth-child(2) { border-right:0; }
  .consult-grid article:nth-child(3),.consult-grid article:nth-child(4){ border-bottom:0; }
  .tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .signal-dock { right:20px; }
}

@media (max-width: 720px) {
  :root { --header: 68px; }
  body::before { display:none; }
  .brand-copy small { display:none; }
  .nav-toggle { display:inline-flex; min-height:40px; padding:0 11px; align-items:center; border:1px solid var(--line); border-radius:4px; background:rgba(255,255,255,.025); color:var(--text); }
  .site-nav { position:absolute; top:calc(100% + 1px); left:0; right:0; display:none; padding:8px 12px 12px; background:#0d1118; border-bottom:1px solid var(--line); }
  .site-nav.open { display:grid; gap:2px; }
  .site-nav a { min-height:46px; display:flex; align-items:center; border:1px solid transparent; }
  .hero { min-height:720px; }
  .hero-overlay { min-height:580px; padding-top:64px; justify-content:flex-start; }
  .hero h1 { font-size:clamp(42px,14vw,68px); }
  .hero-copy { font-size:17px; max-width:92%; }
  .hero::after { background:linear-gradient(to bottom,rgba(8,11,16,.48),rgba(8,11,16,.68) 48%,rgba(8,11,16,.97)); }
  .signal-dock { left:20px; right:20px; bottom:20px; width:auto; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .signal-dock::before { grid-column:1 / -1; }
  .signal { min-height:48px; padding:0 10px; font-size:12px; }
  .hero-hint { display:none; }
  .section { padding:72px 0; }
  .section.alt { padding-left:20px; padding-right:20px; }
  .intro-strip { grid-template-columns:repeat(2,1fr); }
  .intro-strip div:nth-child(2) { border-right:0; }
  .intro-strip div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .card-grid.two-up { grid-template-columns:1fr; }
  .consult-grid { grid-template-columns:1fr; }
  .consult-grid article { min-height:205px; border-right:0; border-bottom:1px solid var(--line) !important; }
  .consult-grid article:last-child { border-bottom:0 !important; }
  .consult-grid article > span { margin-bottom:40px; }
  .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about-panel { grid-template-columns:1fr; }
  .about-callout { border-right:0; border-bottom:1px solid var(--line); }
  .site-footer { min-height:140px; align-items:flex-start; justify-content:center; flex-direction:column; }
}

@media (max-width: 430px) {
  .hero-actions .button { flex:1; }
  .signal-dock { grid-template-columns:1fr 1fr; }
  .tool-grid { grid-template-columns:1fr 1fr; gap:6px; }
  .tool-card { min-height:142px; padding:14px; }
  .tool-card strong { font-size:20px; }
  .project-copy { padding:26px; }
  .project-visual { min-height:350px; }
  .camera-eye { left:12%; }
  .player-proxy { right:15%; }
  .filter-bar { width:100%; }
}

/* v1.3 content expansion */
.title-cloud {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:22px;
}
.title-cloud span,
.consult-title-grid span {
  border:1px solid var(--line);
  background:rgba(0,112,224,.045);
  color:#cbd6e5;
  padding:7px 9px;
  font-size:10px;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.consulting-summary-card {
  background:
    linear-gradient(180deg,rgba(0,112,224,.06),rgba(255,255,255,.018)),
    var(--panel-3);
}

.career-section { position:relative; }
.career-board {
  display:grid;
  grid-template-columns:1.45fr .75fr .75fr;
  border:1px solid var(--line);
  background:var(--panel-3);
}
.career-board > article { min-width:0; }
.career-primary {
  grid-row:span 2;
  min-height:360px;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-right:1px solid var(--line);
  background:
    linear-gradient(145deg,rgba(0,112,224,.10),transparent 54%),
    linear-gradient(180deg,rgba(255,255,255,.018),transparent);
}
.career-primary h3,
.career-note h3 { margin:0 0 12px; font-size:30px; letter-spacing:-.025em; }
.career-primary p,
.career-note p { margin:0; color:var(--muted); }
.career-stat {
  min-height:178px;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.012);
}
.career-stat:nth-child(3) { border-right:0; }
.career-stat strong { font-size:clamp(32px,4.4vw,58px); line-height:.95; letter-spacing:-.05em; }
.career-stat span { margin-top:10px; color:var(--muted); font-size:12px; }
.career-note {
  grid-column:2 / -1;
  min-height:182px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:linear-gradient(90deg,rgba(0,112,224,.045),rgba(255,255,255,.01));
}

.consult-projects {
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr);
  border:1px solid var(--line);
  background:var(--panel-3);
}
.consult-projects-head { padding:26px; border-right:1px solid var(--line); }
.consult-projects-head p { margin:14px 0 0; color:var(--muted); }
.consult-title-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
}
.consult-title-grid span {
  min-height:49px;
  display:flex;
  align-items:center;
  border:0;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:transparent;
}
.consult-title-grid span:nth-child(2n) { border-right:0; }
.consult-title-grid span:nth-last-child(-n+2) { border-bottom:0; }


.career-titles {
  margin-top:12px;
  display:grid;
  grid-template-columns:minmax(250px,.8fr) minmax(0,1.6fr);
  border:1px solid var(--line);
  background:var(--panel-3);
}
.career-titles-head { padding:26px; border-right:1px solid var(--line); }
.career-titles-head p { margin:14px 0 0; color:var(--muted); }
.career-title-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-content:start;
}
.career-title-grid span {
  min-height:50px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:#cbd6e5;
  font-size:10px;
  letter-spacing:.055em;
  text-transform:uppercase;
  background:rgba(0,112,224,.025);
}
.career-title-grid span:nth-child(3n) { border-right:0; }
.career-title-grid span:nth-last-child(-n+3) { border-bottom:0; }

.tool-feature {
  margin-top:18px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  min-height:300px;
  border:1px solid var(--line);
  background:var(--panel-3);
  border-top-color:var(--line-blue);
}
.tool-feature-visual {
  min-height:300px;
  border-right:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8,12,17,.18), rgba(8,12,17,.72)),
    radial-gradient(circle at 70% 20%, rgba(0,112,224,.12), transparent 35%),
    url('assets/azure-altar.webp') center/cover no-repeat;
}
.tool-feature-copy {
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.tool-feature-copy h3 { margin:0 0 12px; font-size:30px; letter-spacing:-.03em; }
.tool-feature-copy p { margin:0; color:var(--muted); }

.doug-card {
  margin-top:18px;
  display:grid;
  grid-template-columns:120px 1fr;
  gap:26px;
  align-items:center;
  padding:28px;
  border:1px solid var(--line);
  background:
    linear-gradient(90deg,rgba(0,112,224,.07),transparent 44%),
    var(--panel-3);
}
.doug-photo {
  width:120px;
  height:120px;
  object-fit:cover;
  border:1px solid var(--line-blue);
  background:#111720;
}
.doug-card h3 { margin:3px 0 8px; font-size:26px; }
.doug-card p { margin:0; color:var(--muted); max-width:760px; }


.studio-wall,
.career-timeline {
  margin-top:12px;
  border:1px solid var(--line);
  background:var(--panel-3);
}
.studio-wall-head,
.career-timeline-head {
  padding:24px 26px;
  border-bottom:1px solid var(--line);
}
.studio-wall-head p,
.career-timeline-head p {
  margin:12px 0 0;
  color:var(--muted);
  max-width:760px;
}
.studio-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.studio-grid article {
  min-height:110px;
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.012);
}
.studio-grid article:nth-child(3n) { border-right:0; }
.studio-grid article:nth-last-child(-n+3) { border-bottom:0; }
.studio-grid article:hover { background:var(--accent-soft); }
.studio-grid strong { font-size:17px; line-height:1.15; }
.studio-grid span { margin-top:7px; color:var(--muted); font-size:10px; letter-spacing:.05em; text-transform:uppercase; }
.career-timeline-list article {
  display:grid;
  grid-template-columns:130px 1fr;
  gap:22px;
  padding:18px 26px;
  border-bottom:1px solid var(--line);
}
.career-timeline-list article:last-child { border-bottom:0; }
.career-timeline-list time { color:var(--accent-bright); font-size:10px; letter-spacing:.1em; font-weight:800; }
.career-timeline-list div { display:grid; gap:5px; }
.career-timeline-list strong { font-size:16px; }
.career-timeline-list span { color:var(--muted); font-size:13px; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-grid article:nth-child(3n) { border-right:1px solid var(--line); }
  .studio-grid article:nth-child(2n) { border-right:0; }
  .studio-grid article:nth-last-child(-n+3) { border-bottom:1px solid var(--line); }
  .studio-grid article:nth-last-child(-n+2) { border-bottom:0; }
  .career-board { grid-template-columns:1fr 1fr; }
  .career-titles { grid-template-columns:1fr; }
  .career-titles-head { border-right:0; border-bottom:1px solid var(--line); }
  .career-title-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .career-title-grid span:nth-child(3n) { border-right:1px solid var(--line); }
  .career-title-grid span:nth-child(2n) { border-right:0; }
  .career-title-grid span:nth-last-child(-n+3) { border-bottom:1px solid var(--line); }
  .career-title-grid span:nth-last-child(-n+2) { border-bottom:0; }
  .tool-feature { grid-template-columns:1fr; }
  .tool-feature-visual { border-right:0; border-bottom:1px solid var(--line); min-height:240px; }
  .career-primary { grid-column:1 / -1; grid-row:auto; border-right:0; border-bottom:1px solid var(--line); }
  .career-stat:nth-child(2) { border-right:1px solid var(--line); }
  .career-stat:nth-child(3) { border-right:0; }
  .career-note { grid-column:1 / -1; }
  .consult-projects { grid-template-columns:1fr; }
  .consult-projects-head { border-right:0; border-bottom:1px solid var(--line); }
}

@media (max-width: 560px) {
  .studio-grid { grid-template-columns:1fr; }
  .studio-grid article,
  .studio-grid article:nth-child(2n),
  .studio-grid article:nth-child(3n),
  .studio-grid article:nth-last-child(-n+2),
  .studio-grid article:nth-last-child(-n+3) { border-right:0; border-bottom:1px solid var(--line); }
  .studio-grid article:last-child { border-bottom:0; }
  .career-timeline-list article { grid-template-columns:1fr; gap:7px; }
  .career-board { grid-template-columns:1fr; }
  .career-title-grid { grid-template-columns:1fr; }
  .career-title-grid span,
  .career-title-grid span:nth-child(2n),
  .career-title-grid span:nth-child(3n),
  .career-title-grid span:nth-last-child(-n+2),
  .career-title-grid span:nth-last-child(-n+3) { border-right:0; border-bottom:1px solid var(--line); }
  .career-title-grid span:last-child { border-bottom:0; }
  .career-stat { border-right:0 !important; }
  .career-stat:nth-child(3) { border-bottom:1px solid var(--line); }
  .consult-title-grid { grid-template-columns:1fr; }
  .consult-title-grid span,
  .consult-title-grid span:nth-child(2n),
  .consult-title-grid span:nth-last-child(-n+2) { border-right:0; border-bottom:1px solid var(--line); }
  .consult-title-grid span:last-child { border-bottom:0; }
  .doug-card { grid-template-columns:1fr; }
  .doug-photo { width:92px; height:92px; }
}

/* v1.8 studio career card redesign */
.studio-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 176px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.008)),
    var(--panel-3);
}
.studio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0,112,224,.085), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 56%);
}
.studio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(255,255,255,.01), transparent 48%);
  pointer-events: none;
}
.studio-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  background: rgba(12,18,28,.78);
  color: #f0da7f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  box-shadow: inset 0 0 0 1px rgba(240,218,127,.06), 0 0 18px rgba(0,0,0,.15);
}
.studio-card strong {
  color: #f7fbff;
  font-size: 18px;
  line-height: 1.15;
  max-width: 62%;
}
.studio-card span {
  color: #87bfff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  max-width: 65%;
}
.studio-art {
  position: absolute;
  inset: 0 0 0 41%;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 26px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.13);
  white-space: nowrap;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0,112,224,.09) 24%, rgba(0,112,224,.13) 100%);
}
.studio-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,10,16,1) 0%, rgba(6,10,16,.92) 10%, rgba(6,10,16,.22) 28%, rgba(6,10,16,0) 48%);
  pointer-events: none;
}
.studio-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  opacity: .55;
}
.studio-card:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.012)),
    var(--panel-2);
}
.studio-card:hover .studio-art {
  color: rgba(255,255,255,.18);
  background: linear-gradient(90deg, transparent 0%, rgba(0,112,224,.12) 18%, rgba(0,112,224,.18) 100%);
}
.studio-card:hover .studio-badge {
  box-shadow: inset 0 0 0 1px rgba(240,218,127,.12), 0 0 24px rgba(240,218,127,.08);
  transform: translateY(-1px);
}

.studio-mob .studio-art { color: rgba(255,255,255,.15); }
.studio-mob .studio-badge { min-width: 64px; }
.studio-seven20 .studio-art { letter-spacing: -.06em; }
.studio-squareenix .studio-art { font-size: clamp(16px, 1.65vw, 24px); }
.studio-gamigo .studio-badge,
.studio-rockstar .studio-badge { color: #f3d56f; }
.studio-rockstar .studio-art {
  color: rgba(0,0,0,.48);
  background: linear-gradient(90deg, transparent 0%, rgba(246,186,33,.16) 18%, rgba(246,186,33,.26) 100%);
}
.studio-rockstar:hover .studio-art {
  color: rgba(0,0,0,.58);
  background: linear-gradient(90deg, transparent 0%, rgba(246,186,33,.22) 18%, rgba(246,186,33,.34) 100%);
}
.studio-squareenix .studio-badge,
.studio-naughtydog .studio-badge { color: #ff9a8a; }
.studio-squareenix .studio-art,
.studio-naughtydog .studio-art {
  background: linear-gradient(90deg, transparent 0%, rgba(185,44,44,.10) 18%, rgba(185,44,44,.18) 100%);
}
.studio-ea .studio-badge,
.studio-sony .studio-badge,
.studio-insomniac .studio-badge,
.studio-ncsoft .studio-badge,
.studio-changyou .studio-badge,
.studio-gamigo .studio-badge,
.studio-oberha5li .studio-badge { color: #d5e6ff; }

@media (max-width: 1100px) {
  .studio-card strong,
  .studio-card span { max-width: 70%; }
  .studio-art { inset: 0 0 0 46%; }
}
@media (max-width: 900px) {
  .studio-card { min-height: 162px; }
  .studio-card strong,
  .studio-card span { max-width: 58%; }
  .studio-art {
    inset: 0 0 0 36%;
    font-size: clamp(18px, 3vw, 26px);
  }
}
@media (max-width: 620px) {
  .studio-card {
    min-height: 148px;
    padding: 18px 16px 16px;
  }
  .studio-badge {
    top: 14px;
    left: 16px;
    min-width: 50px;
    height: 24px;
    font-size: 9px;
  }
  .studio-card strong,
  .studio-card span { max-width: 100%; }
  .studio-card strong { font-size: 17px; }
  .studio-art {
    inset: auto 0 0 0;
    height: 52px;
    padding: 0 16px;
    align-items: center;
    font-size: 16px;
    background: linear-gradient(90deg, rgba(0,112,224,.12) 0%, rgba(0,112,224,.08) 100%);
  }
  .studio-art::before {
    background: linear-gradient(180deg, rgba(6,10,16,.15), rgba(6,10,16,.02));
  }
  .studio-card span { padding-bottom: 36px; }
  .studio-rockstar .studio-art {
    background: linear-gradient(90deg, rgba(246,186,33,.20) 0%, rgba(246,186,33,.12) 100%);
  }
}

.resume-panel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(250px,.85fr) minmax(0,1.65fr);
  border: 1px solid var(--line);
  border-top-color: var(--line-blue);
  background: var(--panel-3);
}
.resume-panel-copy {
  padding: 28px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(0,112,224,.10), transparent 64%),
    rgba(255,255,255,.008);
}
.resume-panel-copy h3 {
  margin: 8px 0 10px;
  font-size: 28px;
  letter-spacing: -.03em;
}
.resume-panel-copy p { margin: 0; color: var(--muted); }
.resume-links {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.resume-links a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.008));
}
.resume-links a:last-child { border-right: 0; }
.resume-links a::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 52px;
  height: 52px;
  background: url('assets/google-docs-icon.webp') center/contain no-repeat;
  opacity: .10;
  filter: saturate(.72) brightness(.92);
  transition: opacity .18s ease, transform .18s ease;
}
.resume-links a:hover {
  background: linear-gradient(180deg,rgba(0,112,224,.10),rgba(0,112,224,.025));
}
.resume-links a:hover::before { opacity:.22; transform:translateY(-2px) rotate(-2deg); }
.resume-links a > span {
  color: var(--accent-bright);
  font-size: 9px;
  letter-spacing: .13em;
  margin-bottom: auto;
}
.resume-links strong { font-size: 22px; }
.resume-links small { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .resume-panel { grid-template-columns: 1fr; }
  .resume-panel-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .resume-links { grid-template-columns: 1fr; }
  .resume-links a { min-height: 106px; border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-links a:last-child { border-bottom: 0; }
  .studio-brand { min-height: 54px; }
  .studio-brand .logo-text { transform: scale(.9); transform-origin: left center; }
}

/* v1.9 full-site polish */
.hero-overlay { width:min(760px,calc(100% - 40px)); }
.hero h1 { max-width:760px; }
.hero h1 span { display:block; }
.hero-copy { max-width:620px; }
.signal-dock { bottom:auto; top:56%; transform:translateY(-20%); }
.intro-strip div { position:relative; }
.intro-strip div::before { content:""; position:absolute; left:0; top:0; right:0; height:1px; background:linear-gradient(90deg,var(--accent),transparent 72%); opacity:.5; }
.intro-strip div:hover { background:rgba(0,112,224,.045); }

/* Games */
.heavy-water .project-visual::before { opacity:.32; }
.heavy-water .camera-eye { opacity:.56; transform:rotate(-5deg) scale(.82); }
.heavy-water .player-proxy { opacity:.46; transform:scale(.86); }
.heavy-water.lens-active .camera-eye { opacity:.86; transform:translate(210px,45px) rotate(9deg) scale(1.05); }
.heavy-water.lens-active .player-proxy { opacity:.7; transform:translate(-150px,-20px) scale(.76); }
.project-copy { justify-content:center; }
.project-facts { margin:24px 0 0; display:grid; gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.project-facts div { display:grid; grid-template-columns:120px 1fr; gap:14px; padding:10px 0; border-bottom:1px solid var(--line); }
.project-facts div:last-child { border-bottom:0; }
.project-facts dt { color:var(--muted-2); font-size:9px; letter-spacing:.11em; text-transform:uppercase; }
.project-facts dd { margin:0; color:#d8e4f3; font-size:11px; }
.games-support-grid .work-card { min-height:270px; }
.inline-card-link { margin-top:20px; color:var(--accent-bright); text-decoration:none; font-weight:800; font-size:12px; }
.azure-teaser { overflow:hidden; background:linear-gradient(90deg,rgba(6,10,16,.92),rgba(6,10,16,.7)),url('assets/azure-altar.webp') center/cover no-repeat; }
.azure-teaser::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(6,10,16,.95) 0%,rgba(6,10,16,.72) 48%,rgba(6,10,16,.3)); pointer-events:none; }
.azure-teaser > * { position:relative; z-index:1; }
.azure-mini-stats { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.azure-mini-stats span { display:inline-flex; align-items:baseline; gap:5px; padding:6px 8px; border:1px solid var(--line); background:rgba(8,12,18,.5); color:var(--muted); font-size:9px; letter-spacing:.07em; text-transform:uppercase; }
.azure-mini-stats strong { color:#fff; font-size:11px; }

/* Career */
.career-stat strong { font-size:clamp(30px,3.8vw,52px); }
.high-profile-title { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.high-profile-title span { display:inline-flex; align-items:center; min-height:36px; padding:5px 10px; border:1px solid var(--line); background:rgba(0,112,224,.04); font-size:clamp(17px,2vw,27px); }
.career-timeline-list time { color:rgba(47,147,255,.78) !important; font-size:9px !important; }
.career-timeline-list article:hover { background:rgba(0,112,224,.035); }
.resume-links a { transition:background .18s ease, border-color .18s ease, transform .18s ease; }
.resume-links a:hover { transform:translateY(-2px); border-top:1px solid var(--line-blue); }



/* Studios: preserve clear left-side text and reduce background competition */
.studio-card { min-height:178px; padding:20px 22px; }
.studio-card strong { max-width:58%; }
.studio-card span { max-width:60%; }
.studio-art { inset:0 0 0 52%; padding-left:30px; color:rgba(255,255,255,.095); font-size:clamp(16px,1.45vw,22px); }
.studio-art::before { background:linear-gradient(90deg,rgba(6,10,16,1) 0%,rgba(6,10,16,.96) 12%,rgba(6,10,16,.54) 34%,rgba(6,10,16,.05) 74%); }
.studio-card:hover .studio-art { color:rgba(255,255,255,.14); }

/* Consulting */
.consult-grid article { min-height:232px; display:flex; flex-direction:column; }
.consult-grid article > span { margin-bottom:42px; }
.consult-grid h3 { font-size:23px; }
.consult-projects { grid-template-columns:minmax(220px,.62fr) minmax(0,1.8fr); }
.consult-title-grid span { transition:background .15s ease,color .15s ease,border-color .15s ease; }
.consult-title-grid span:hover { background:var(--accent-soft); color:#fff; border-color:var(--line-blue); }

/* Crafting Play */
#crafting .work-card { min-height:260px; }
#crafting .link-card { background:linear-gradient(145deg,rgba(0,112,224,.075),rgba(255,255,255,.012)); }
#crafting .link-arrow { color:var(--accent-bright); }
.handbook-card { padding-right:170px; overflow:hidden; }
.book-mark { position:absolute; right:28px; top:32px; width:108px; height:150px; padding:16px 12px; display:flex; flex-direction:column; justify-content:flex-end; border:1px solid var(--line-blue); background:linear-gradient(145deg,#111b2a,#0a1019); box-shadow:-12px 12px 0 rgba(0,112,224,.045); color:rgba(255,255,255,.72); font-weight:900; font-size:18px; letter-spacing:.03em; }
.book-mark::before { content:""; position:absolute; left:10px; top:0; bottom:0; width:1px; background:rgba(47,147,255,.35); }
.book-mark span:last-child { color:var(--accent-bright); }

/* Unreal Tools */
.tool-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.tool-card { min-height:176px; padding:15px 16px 16px; justify-content:flex-end; }
.tool-icon { position:absolute; right:14px; top:14px; width:62px; height:62px; object-fit:contain; opacity:.62; filter:grayscale(1) brightness(1.7); transition:opacity .18s ease,transform .18s ease,filter .18s ease; }
.tool-card:hover .tool-icon { opacity:.92; transform:scale(1.06); filter:grayscale(.25) brightness(1.8); }
.tool-icon-placeholder { display:grid; place-items:center; border:1px dashed var(--line-blue); color:rgba(255,255,255,.32); font-size:24px; font-weight:900; background:rgba(0,112,224,.035); }
.tool-card.wireframe .tool-icon { opacity:.32; }
.tool-card.wireframe::before { content:"IN DEVELOPMENT"; position:absolute; right:10px; bottom:9px; font-size:7px; letter-spacing:.13em; color:rgba(47,147,255,.4); }
.filter-bar { gap:2px; }
.filter { min-height:34px; padding:0 11px; }
.azure-callouts { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 20px; }
.azure-callouts span { display:flex; gap:5px; align-items:baseline; padding:6px 8px; border:1px solid var(--line); background:rgba(0,112,224,.035); color:var(--muted); font-size:8px; letter-spacing:.08em; }
.azure-callouts strong { color:#fff; font-size:11px; }

/* About */
.about-callout { position:relative; min-height:300px; align-items:center; justify-content:space-between; overflow:hidden; }
.about-watermark { position:absolute; right:-24px; top:50%; width:250px; height:250px; transform:translateY(-50%); object-fit:contain; opacity:.07; filter:grayscale(1) brightness(1.5); }
.about-years { display:flex; align-items:flex-end; gap:20px; position:relative; z-index:1; }
.about-years > span:last-child { color:var(--muted); padding-bottom:8px; }
.about-facts { position:relative; z-index:1; display:grid; gap:6px; justify-items:end; }
.about-facts span { padding:5px 7px; border:1px solid var(--line); background:rgba(8,12,18,.42); color:var(--muted); font-size:8px; letter-spacing:.09em; }
.about-links { position:relative; }
.about-links-label { min-height:42px; display:flex; align-items:center; padding:0 26px; border-bottom:1px solid var(--line); color:var(--muted-2); font-size:8px; letter-spacing:.13em; }
.doug-card { grid-template-columns:150px 1fr; }
.doug-photo { width:132px; height:132px; object-fit:cover; }

@media (max-width:1100px) {
  .tool-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .studio-art { inset:0 0 0 50%; }
}
@media (max-width:900px) {
  .signal-dock { top:auto; bottom:22px; transform:none; }
  .tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .handbook-card { padding-right:150px; }
  .studio-card strong,.studio-card span { max-width:68%; }
  .studio-art { inset:0 0 0 58%; }
}
@media (max-width:720px) {
  .hero h1 span { display:inline; }
  .hero h1 span::after { content:" "; }
  .project-facts div { grid-template-columns:90px 1fr; }
  .consult-grid article { min-height:190px; }
  .consult-grid article > span { margin-bottom:24px; }
  .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tool-icon { width:52px; height:52px; }
  .handbook-card { padding-right:26px; padding-top:170px; }
  .book-mark { left:26px; right:auto; top:24px; width:96px; height:120px; }
  .about-callout { flex-direction:column; align-items:flex-start; justify-content:center; gap:22px; }
  .about-facts { justify-items:start; display:flex; flex-wrap:wrap; }
  .about-watermark { width:190px; height:190px; right:-34px; }
  .doug-card { grid-template-columns:120px 1fr; }
  .doug-photo { width:110px; height:110px; }
}
@media (max-width:520px) {
  .tool-grid { grid-template-columns:1fr 1fr; }
  .studio-art { opacity:.35; inset:0 0 0 62%; }
  .studio-card strong,.studio-card span { max-width:76%; }
  .doug-card { grid-template-columns:1fr; }
  .doug-photo { width:140px; height:140px; }
}

/* v2.0 visual/media pass */
.hero::after {
  background:
    linear-gradient(90deg, rgba(8,11,16,.97) 0%, rgba(8,11,16,.90) 34%, rgba(8,11,16,.44) 55%, rgba(8,11,16,.10) 76%, rgba(8,11,16,.04) 100%),
    linear-gradient(to bottom, transparent 58%, rgba(8,11,16,.92) 100%);
}
.hero-scene-wrap::after {
  content:"";
  position:absolute;
  right:4%;
  top:9%;
  width:min(48vw,720px);
  aspect-ratio:1;
  pointer-events:none;
  background:radial-gradient(circle,rgba(0,112,224,.13),rgba(0,112,224,.045) 36%,transparent 68%);
  filter:blur(10px);
}
#hero-canvas { opacity:1; }
.signal-dock { top:52%; right:max(28px,calc((100vw - var(--max))/2)); }

/* More readable project media */
.heavy-water .project-visual {
  background:
    linear-gradient(180deg,rgba(5,8,12,.10),rgba(5,8,12,.58)),
    radial-gradient(circle at 70% 28%,rgba(0,112,224,.14),transparent 38%),
    url('assets/heavy-water-hero.png') center/cover no-repeat,
    #090d13;
}
.heavy-water .visual-copy { text-shadow:0 3px 24px rgba(0,0,0,.8); }

/* Rebuild the studio wall as wide visual credit cards */
.studio-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  background:var(--line);
}
.studio-grid article,
.studio-grid article:nth-child(2n),
.studio-grid article:nth-child(3n),
.studio-grid article:nth-last-child(-n+2),
.studio-grid article:nth-last-child(-n+3) {
  border:0;
  min-height:224px;
}
.studio-card {
  position:relative;
  isolation:isolate;
  padding:24px 26px 22px;
  justify-content:flex-end;
  background-color:#0b1017;
  background-position:right center;
  background-size:auto 100%;
  background-repeat:no-repeat;
  transition:transform .18s ease,filter .18s ease;
}
.studio-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(6,10,16,.995) 0%,rgba(6,10,16,.97) 28%,rgba(6,10,16,.78) 44%,rgba(6,10,16,.32) 65%,rgba(6,10,16,.08) 84%,rgba(6,10,16,.03) 100%);
}
.studio-card::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(0,112,224,.08),transparent 38%,rgba(0,0,0,.20));
  pointer-events:none;
}
.studio-card:hover { transform:translateY(-2px); filter:brightness(1.06); }
.studio-art { display:none; }
.studio-badge {
  top:22px;
  left:26px;
  width:auto;
  max-width:62%;
  min-width:0;
  height:28px;
  padding:0 10px;
  color:#f2d77c;
  background:rgba(8,12,18,.82);
  border-color:rgba(242,215,124,.24);
  font-size:9px;
  letter-spacing:.12em;
}
.studio-card strong,
.studio-grid strong {
  max-width:58%;
  font-size:22px;
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.7);
}
.studio-card span,
.studio-grid span {
  max-width:60%;
  color:#8fc4ff;
  font-size:10px;
  line-height:1.45;
}
.studio-mob { background-image:url('assets/career-real/mob-poppy.webp'); }
.studio-oberha5li { background-image:url('assets/career-real/oberha5li.webp'); }
.studio-seven20 { background-image:url('assets/career-real/seven20-deadmau5.webp'); }
.studio-squareenix { background-image:url('assets/career-real/squareenix-tombraider.webp'); }
.studio-gamigo { background-image:url('assets/career-real/gamigo.webp'); }
.studio-aeria { background-image:url('assets/career-real/aeria-shaiya.webp'); }
.studio-ncsoft { background-image:url('assets/career-real/ncsoft-aion.webp'); }
.studio-changyou { background-image:url('assets/career-real/changyou.webp'); }
.studio-ea { background-image:url('assets/career-real/ea-sports.webp'); }
.studio-insomniac { background-image:url('assets/career-real/insomniac-ratchet.webp'); }
.studio-naughtydog { background-image:url('assets/career-real/naughtydog-jak.webp'); }
.studio-rockstar { background-image:url('assets/career-real/rockstar-gta.webp'); }
.studio-sony { background-image:url('assets/career-real/sony-playstation.webp'); }

/* Consultation cards: less empty top space, subtle technical markers */
.consult-grid article { position:relative; overflow:hidden; }
.consult-grid article::after {
  content:"";
  position:absolute;
  right:20px;
  top:22px;
  width:54px;
  height:54px;
  border:1px solid rgba(47,147,255,.11);
  background:
    linear-gradient(90deg,transparent 48%,rgba(47,147,255,.10) 49%,rgba(47,147,255,.10) 51%,transparent 52%),
    linear-gradient(transparent 48%,rgba(47,147,255,.10) 49%,rgba(47,147,255,.10) 51%,transparent 52%);
  transform:rotate(45deg);
  opacity:.65;
}

/* Give the Crafting Play resource card its own diagram language */
#crafting .link-card { padding-right:210px; overflow:hidden; }
#crafting .link-card::after {
  content:"";
  position:absolute;
  right:24px;
  top:50%;
  width:150px;
  height:150px;
  transform:translateY(-50%);
  border:1px solid rgba(47,147,255,.24);
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,rgba(0,112,224,.18) 0 5px,transparent 6px),
    radial-gradient(circle at 22% 34%,rgba(255,255,255,.18) 0 4px,transparent 5px),
    radial-gradient(circle at 75% 27%,rgba(255,255,255,.14) 0 4px,transparent 5px),
    radial-gradient(circle at 70% 72%,rgba(255,255,255,.12) 0 4px,transparent 5px),
    linear-gradient(35deg,transparent 48%,rgba(47,147,255,.18) 49%,rgba(47,147,255,.18) 51%,transparent 52%),
    linear-gradient(-45deg,transparent 48%,rgba(47,147,255,.14) 49%,rgba(47,147,255,.14) 51%,transparent 52%);
  box-shadow:inset 0 0 40px rgba(0,112,224,.06),0 0 34px rgba(0,112,224,.04);
  opacity:.86;
}

/* Plugin icons are authored assets now, so let them read clearly */
.tool-icon { opacity:.82; filter:none; }
.tool-card:hover .tool-icon { opacity:1; filter:none; transform:scale(1.08); }
.tool-card.wireframe .tool-icon { opacity:.48; }

/* About */
.about-links a:hover { padding-left:32px; }

@media (max-width:900px) {
  .studio-grid { grid-template-columns:1fr; }
  .studio-grid article,
  .studio-grid article:nth-child(2n),
  .studio-grid article:nth-child(3n),
  .studio-grid article:nth-last-child(-n+2),
  .studio-grid article:nth-last-child(-n+3) { min-height:190px; }
  .studio-card strong,.studio-card span { max-width:70%; }
  #crafting .link-card { padding-right:170px; }
  #crafting .link-card::after { width:120px; height:120px; }
}
@media (max-width:720px) {
  .hero::after { background:linear-gradient(to bottom,rgba(8,11,16,.38),rgba(8,11,16,.74) 55%,rgba(8,11,16,.97)); }
  .hero-scene-wrap::after { right:-20%; top:18%; width:85vw; }
  .studio-card strong,.studio-card span { max-width:82%; }
  .studio-card::before { background:linear-gradient(90deg,rgba(6,10,16,.98),rgba(6,10,16,.88) 55%,rgba(6,10,16,.34)); }
  #crafting .link-card { padding-right:26px; padding-top:170px; }
  #crafting .link-card::after { left:26px; right:auto; top:80px; transform:none; width:112px; height:112px; }
}


/* v2.4 career image-fit pass */
@media (min-width:901px) {
  .studio-sony { grid-column:1 / -1; min-height:224px; }
  .studio-sony strong,.studio-sony span { max-width:42%; }
  .studio-sony::before {
    background:linear-gradient(90deg,rgba(6,10,16,.995) 0%,rgba(6,10,16,.97) 22%,rgba(6,10,16,.76) 38%,rgba(6,10,16,.28) 58%,rgba(6,10,16,.05) 78%,rgba(6,10,16,.02) 100%);
  }
}


/* v2.5 definitive studio image-layer pass */
.studio-card {
  background-image:none !important;
  overflow:hidden;
}
.studio-card .studio-image {
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:auto;
  max-width:none;
  object-fit:contain;
  object-position:right center;
  z-index:-3;
  pointer-events:none;
  user-select:none;
  display:block;
}
.studio-card::before {
  z-index:-2;
  background:linear-gradient(90deg,
    rgba(6,10,16,1) 0%,
    rgba(6,10,16,.995) 24%,
    rgba(6,10,16,.94) 38%,
    rgba(6,10,16,.68) 52%,
    rgba(6,10,16,.24) 68%,
    rgba(6,10,16,.04) 84%,
    rgba(6,10,16,0) 100%);
}
.studio-card::after { z-index:-1; }
.studio-card strong,.studio-card span,.studio-badge { position:relative; z-index:2; }

/* The full-width Sony card still uses the same right-anchored art rule. */
@media (min-width:901px) {
  .studio-sony .studio-image { right:0; height:100%; width:auto; }
}

@media (max-width:900px) {
  .studio-card .studio-image { height:100%; width:auto; right:0; }
}


/* v2.6 hero reliability + career cleanup */
.scene-fallback {
  opacity: 1;
  display: block;
  pointer-events: none;
  transition: opacity .45s ease;
}
.scene-fallback.scene-live { opacity: .18; }
.scene-fallback.show { opacity: 1; }
.fallback-system {
  position:absolute;
  right:max(44px, calc((100vw - var(--max)) / 2 + 42px));
  top:50%;
  width:min(46vw, 620px);
  aspect-ratio:1;
  transform:translateY(-50%);
  filter:drop-shadow(0 0 50px rgba(0,112,224,.10));
}
.fallback-core {
  position:absolute;
  left:50%;
  top:50%;
  width:170px;
  height:170px;
  transform:translate(-50%,-50%) rotate(8deg);
  border:1px solid rgba(47,147,255,.42);
  border-radius:22px;
  background:
    linear-gradient(145deg,rgba(0,112,224,.18),rgba(7,12,20,.94)),
    #0d1420;
  box-shadow:
    inset 0 0 70px rgba(0,112,224,.14),
    0 0 70px rgba(0,112,224,.08);
}
.fallback-core::before,
.fallback-core::after {
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(47,147,255,.16);
  border-radius:16px;
}
.fallback-core::after { inset:36px; border-radius:12px; opacity:.6; }
.fallback-logo { width:98px; height:98px; filter:drop-shadow(0 0 18px rgba(0,112,224,.36)); }
.fallback-orbit {
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid rgba(47,147,255,.23);
  border-radius:50%;
  transform-origin:center;
}
.fallback-orbit.orbit-a {
  width:74%;
  height:34%;
  transform:translate(-50%,-50%) rotate(-18deg);
}
.fallback-orbit.orbit-b {
  width:45%;
  height:80%;
  transform:translate(-50%,-50%) rotate(36deg);
  border-color:rgba(93,174,255,.16);
}
.fallback-grid {
  position:absolute;
  left:8%;
  right:8%;
  bottom:7%;
  height:34%;
  transform:perspective(380px) rotateX(63deg);
  transform-origin:bottom;
  background-image:
    linear-gradient(rgba(47,147,255,.14) 1px,transparent 1px),
    linear-gradient(90deg,rgba(47,147,255,.14) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to top,#000,transparent 92%);
  opacity:.55;
}
.fallback-node {
  position:absolute;
  min-width:78px;
  padding:8px 10px;
  border:1px solid rgba(47,147,255,.22);
  background:rgba(9,15,24,.72);
  color:rgba(157,204,255,.70);
  font-size:8px;
  font-weight:800;
  letter-spacing:.16em;
  text-align:center;
  box-shadow:0 0 20px rgba(0,112,224,.05);
}
.node-games { left:7%; top:28%; }
.node-career { left:18%; bottom:23%; }
.node-consulting { right:4%; top:31%; }
.node-tools { right:13%; bottom:20%; }

/* Remove the redundant mini company-name badges completely. */
.studio-badge { display:none !important; }
.studio-card { padding-top:26px; }

/* High-profile titles should read like credits, not giant buttons. */
.credit-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:3px 0 15px !important;
  color:#eef5ff !important;
  font-size:clamp(18px,1.65vw,24px);
  line-height:1.25;
}
.credit-line strong { font-weight:750; letter-spacing:-.018em; }
.credit-line span { color:rgba(47,147,255,.62); font-size:.72em; }
.high-profile-title { display:none !important; }

@media (max-width:900px) {
  .fallback-system { right:-8%; width:64vw; opacity:.45; }
}
@media (max-width:720px) {
  .fallback-system { right:-22%; width:86vw; opacity:.25; }
  .fallback-node { display:none; }
}


/* v2.8 stronger career-card readability fade */
/* Keep the supplied composition, but restore a stronger dark reading zone on the left. */
.studio-card::before {
  background:linear-gradient(90deg,
    rgba(6,10,16,.99) 0%,
    rgba(6,10,16,.97) 24%,
    rgba(6,10,16,.88) 38%,
    rgba(6,10,16,.68) 50%,
    rgba(6,10,16,.40) 61%,
    rgba(6,10,16,.18) 72%,
    rgba(6,10,16,.05) 82%,
    rgba(6,10,16,0) 92%);
}
.studio-card::after {
  background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(255,255,255,0) 58%);
  opacity:.55;
}
.studio-card .studio-image {
  right:0;
  top:0;
  height:100%;
  width:auto;
  object-fit:contain;
  object-position:right center;
}
@media (max-width:900px) {
  .studio-card::before {
    background:linear-gradient(90deg,
      rgba(6,10,16,.995) 0%,
      rgba(6,10,16,.97) 32%,
      rgba(6,10,16,.76) 52%,
      rgba(6,10,16,.28) 72%,
      rgba(6,10,16,0) 94%);
  }
}

/* v2.9 seamless career art fill */
/* Fill the complete card so the source image can never expose a hard left edge.
   Crop overflow from the left and keep the important art anchored to the right. */
.studio-card .studio-image {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

/* Keep the text zone dark, but allow the artwork to remain clear on the right. */
.studio-card::before {
  background: linear-gradient(90deg,
    rgba(6,10,16,.995) 0%,
    rgba(6,10,16,.98) 22%,
    rgba(6,10,16,.91) 35%,
    rgba(6,10,16,.69) 48%,
    rgba(6,10,16,.40) 59%,
    rgba(6,10,16,.16) 70%,
    rgba(6,10,16,.04) 80%,
    rgba(6,10,16,0) 90%);
}

@media (min-width:901px) {
  .studio-sony .studio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}

@media (max-width:900px) {
  .studio-card .studio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}


/* v2.10 selected consulting project actions */
.consult-title-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-content:start;
}
.consult-project-item {
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 10px 8px 14px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transition:background .15s ease,border-color .15s ease;
}
.consult-project-item:nth-child(2n) { border-right:0; }
.consult-project-item:nth-last-child(-n+2) { border-bottom:0; }
.consult-project-item:hover { background:rgba(0,112,224,.045); }
.consult-project-name {
  color:#d9e6f6;
  font-size:10px;
  letter-spacing:.045em;
  text-transform:uppercase;
  font-weight:700;
}
.consult-project-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.project-state,
.project-steam-link {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:2px;
  font-size:8px;
  line-height:1;
  letter-spacing:.075em;
  text-transform:uppercase;
  white-space:nowrap;
}
.project-state {
  color:#8e9aac;
  background:rgba(255,255,255,.018);
  cursor:default;
}
.project-steam-link {
  color:#b9ddff;
  border-color:rgba(0,112,224,.42);
  background:rgba(0,112,224,.065);
  text-decoration:none;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease;
}
.project-steam-link:hover {
  color:#fff;
  background:rgba(0,112,224,.16);
  border-color:rgba(93,174,255,.72);
  transform:translateY(-1px);
}
@media (max-width: 900px) {
  .consult-title-grid { grid-template-columns:1fr; }
  .consult-project-item,
  .consult-project-item:nth-child(2n),
  .consult-project-item:nth-last-child(-n+2) {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .consult-project-item:last-child { border-bottom:0; }
}
@media (max-width: 560px) {
  .consult-project-item { align-items:flex-start; flex-direction:column; padding:12px 14px; }
  .consult-project-actions { justify-content:flex-start; }
}

/* v2.11 interaction, tools commerce, career NDA, consultation cleanup */
body { position:relative; }
#ambient-canvas {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:.22;
}
.site-header, main, .site-footer, .achievement, .skip-link { position:relative; z-index:1; }

.scene-guide {
  position:absolute;
  right:max(28px,calc((100vw - var(--max))/2));
  bottom:104px;
  z-index:8;
  width:250px;
  padding:12px 14px;
  border:1px solid rgba(47,147,255,.22);
  background:rgba(8,12,18,.74);
  backdrop-filter:blur(8px);
  color:var(--muted);
  display:grid;
  gap:5px;
  font-size:9px;
  letter-spacing:.055em;
}
.scene-guide-title { color:var(--accent-bright); font-size:8px; letter-spacing:.16em; }
.scene-guide strong { color:#eef7ff; font-size:11px; letter-spacing:.08em; }

/* Career: one left feature, two equally wide right cards. */
.career-board {
  grid-template-columns:1.16fr 1fr;
  grid-template-rows:auto auto;
}
.career-primary {
  grid-column:1;
  grid-row:1 / span 2;
  border-right:1px solid var(--line);
  border-bottom:0;
}
.career-direction,
.career-nda {
  grid-column:2;
  min-width:0;
  padding:28px;
  background:linear-gradient(90deg,rgba(0,112,224,.045),rgba(255,255,255,.01));
}
.career-direction {
  grid-row:1;
  min-height:180px;
  border-bottom:1px solid var(--line);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.career-direction strong {
  display:block;
  margin:10px 0 12px;
  font-size:clamp(34px,4vw,58px);
  line-height:.92;
  letter-spacing:-.055em;
}
.career-direction p,
.career-nda p { margin:0; color:var(--muted); }
.career-nda {
  grid-row:2;
  min-height:240px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:24px;
  align-items:end;
}
.career-nda h3 { margin:8px 0 12px; font-size:30px; letter-spacing:-.025em; }
.nda-logo-slot {
  aspect-ratio:1;
  align-self:center;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  border:1px dashed rgba(93,174,255,.35);
  background:
    linear-gradient(90deg,rgba(0,112,224,.07),transparent),
    repeating-linear-gradient(0deg,rgba(255,255,255,.02),rgba(255,255,255,.02) 5px,transparent 5px,transparent 10px);
  box-shadow:inset 0 0 36px rgba(0,112,224,.06);
  color:rgba(164,205,255,.58);
  text-align:center;
  image-rendering:pixelated;
}
.nda-logo-slot span { font-size:8px; letter-spacing:.18em; color:var(--accent-bright); }
.nda-logo-slot strong { font:800 13px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.05em; }

/* Consulting projects: give the list the full width instead of squeezing it beside copy. */
.consult-projects { grid-template-columns:1fr !important; }
.consult-projects-head {
  border-right:0 !important;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
}
.consult-projects-head > div { max-width:620px; }
.consult-projects-legend { color:var(--muted-2); font-size:8px; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.consult-projects-legend b { color:var(--accent-bright); margin-left:12px; }
.consult-projects-legend b:first-child { margin-left:0; }
.consult-title-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.consult-project-item { min-height:72px; padding:12px 14px 12px 18px; }
.consult-project-name { font-size:11px; }
.project-state,.project-steam-link { min-height:30px; }

/* Tool cards: FAB is the primary destination; GitHub remains free and obvious. */
.tool-store-note {
  margin:-2px 0 14px;
  min-height:40px;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.025em;
}
.tool-store-note strong { color:#dceaff; font-size:10px; letter-spacing:.08em; }
.tool-store-note i { width:1px; height:18px; background:var(--line); margin:0 4px; }
.tool-card {
  min-height:190px;
  padding:0;
  justify-content:stretch;
  gap:0;
}
.tool-main-link {
  flex:1;
  min-height:145px;
  padding:15px 16px 12px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
  color:inherit;
  text-decoration:none;
  position:relative;
}
.tool-main-link .tool-state { margin-bottom:auto; }
.tool-main-link:hover { background:rgba(0,112,224,.045); }
.tool-fab-cta {
  margin-top:5px;
  align-self:flex-start;
  color:#d8edff;
  font-size:8px;
  letter-spacing:.09em;
  border:1px solid rgba(93,174,255,.35);
  padding:5px 7px;
  background:rgba(0,112,224,.07);
}
.tool-github-link {
  min-height:38px;
  padding:0 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  color:var(--muted);
  text-decoration:none;
  font-size:9px;
  letter-spacing:.08em;
  background:rgba(255,255,255,.01);
}
.tool-github-link:hover { color:#fff; background:rgba(255,255,255,.035); }
.tool-card.wireframe { padding:15px 16px 16px; min-height:190px; }
.tool-card.wireframe::before { display:none; }
.tool-wip-note { margin-top:6px; color:rgba(47,147,255,.55); font-size:7px; letter-spacing:.13em; }
.tool-card .tool-icon { top:12px; right:12px; }

.tool-feature-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.tool-feature-grid .tool-feature { margin-top:0; grid-template-columns:1fr; min-height:520px; }
.tool-feature-grid .tool-feature-visual { min-height:260px; border-right:0; border-bottom:1px solid var(--line); }
.tool-feature-grid .tool-feature-copy { min-height:260px; }
.unmark-visual {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 26%,rgba(0,112,224,.18),transparent 34%),
    linear-gradient(145deg,#111a27,#080d14 66%);
}
.unmark-visual::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(47,147,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(47,147,255,.06) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(135deg,#000,transparent 80%);
}
.unmark-doc {
  position:absolute;
  left:10%; top:14%;
  width:52%; height:68%;
  padding:22px;
  display:grid;
  align-content:start;
  gap:12px;
  border:1px solid rgba(93,174,255,.30);
  background:#0e1722;
  box-shadow:18px 18px 0 rgba(0,112,224,.05),0 25px 70px rgba(0,0,0,.28);
  transform:rotate(-3deg);
  color:#9fc9f7;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.unmark-doc span { color:var(--accent-bright); font-size:34px; line-height:.8; }
.unmark-doc b { color:#fff; font-size:25px; letter-spacing:.08em; }
.unmark-doc i,.unmark-doc em,.unmark-doc u { font-size:11px; font-style:normal; text-decoration:none; opacity:.72; }
.unmark-node {
  position:absolute;
  right:10%; bottom:16%;
  width:92px; height:92px;
  display:grid; place-items:center;
  border:1px solid rgba(93,174,255,.38);
  background:rgba(12,22,35,.92);
  color:#fff;
  font:900 28px ui-monospace,SFMono-Regular,Consolas,monospace;
  box-shadow:0 0 40px rgba(0,112,224,.12);
}

/* About: 25+ remains readable while the supporting concepts become a real 3D scene. */
.about-callout { min-height:330px; }
#about-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; opacity:.34; }
.about-years { z-index:2; }
.about-watermark { opacity:.025; z-index:0; }
.about-scene-label { position:absolute; right:20px; top:18px; z-index:2; color:var(--muted-2); font-size:8px; letter-spacing:.14em; }
.about-facts { display:none !important; }
.doug-card { grid-template-columns:170px 1fr; gap:30px; padding:30px; }
.doug-photo { width:170px; height:170px; }

@media (max-width:900px) {
  .career-board { grid-template-columns:1fr; grid-template-rows:auto; }
  .career-primary,.career-direction,.career-nda { grid-column:1; grid-row:auto; border-right:0; }
  .career-primary,.career-direction { border-bottom:1px solid var(--line); }
  .career-nda { grid-template-columns:1fr 130px; }
  .tool-feature-grid { grid-template-columns:1fr; }
  .scene-guide { display:none; }
}
@media (max-width:680px) {
  .consult-projects-head { align-items:flex-start; flex-direction:column; gap:12px; }
  .consult-projects-legend { white-space:normal; }
  .consult-title-grid { grid-template-columns:1fr; }
  .career-nda { grid-template-columns:1fr; }
  .nda-logo-slot { width:130px; }
  .doug-card { grid-template-columns:120px 1fr; gap:20px; }
  .doug-photo { width:120px; height:120px; }
}


/* v2.12 readability + local preview polish */
@media (min-width: 901px) {
  .career-direction strong { font-size:clamp(30px,3vw,42px); line-height:1; white-space:nowrap; letter-spacing:-.045em; }
  .career-nda h3 { font-size:clamp(28px,2.5vw,36px); line-height:1.05; white-space:nowrap; }
}
.scene-guide { right:max(32px,calc((100vw - var(--max))/2)); bottom:94px; }
.achievement { right:20px; left:auto; }


/* v2.13 achievements + supplied identity assets */
.achievement {
  position: fixed !important;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 9999 !important;
  width: min(360px, calc(100vw - 44px));
  padding: 15px 16px 16px;
  border: 1px solid rgba(47,147,255,.58);
  border-left: 3px solid var(--accent-bright);
  background: rgba(12,18,27,.96);
  box-shadow: 0 20px 70px rgba(0,0,0,.54), inset 0 0 30px rgba(0,112,224,.04);
  backdrop-filter: blur(10px);
  transform: translate3d(0, calc(100% + 40px), 0);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.achievement.show { transform: translate3d(0,0,0); opacity:1; }
.achievement-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.achievement-topline span { margin:0; }
.achievement-topline b { color:var(--muted-2); font-size:8px; letter-spacing:.12em; font-weight:700; white-space:nowrap; }
.achievement strong { display:block; font-size:15px; color:#fff; }
.achievement small { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.4; }

.nda-logo-slot {
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  min-width:150px;
  min-height:150px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px dashed rgba(93,174,255,.36);
  background:linear-gradient(145deg,rgba(0,112,224,.07),rgba(255,255,255,.01));
  color:var(--muted);
  font:inherit;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.nda-logo-slot:hover { border-color:rgba(93,174,255,.72); background:rgba(0,112,224,.08); transform:translateY(-2px); }
.nda-logo-slot img { width:min(126px,80%); height:auto; image-rendering:pixelated; filter:drop-shadow(0 10px 30px rgba(0,0,0,.28)); }
.nda-logo-slot span { color:rgba(143,193,248,.62); font-size:7px; letter-spacing:.15em; text-align:center; }

.unmark-visual {
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  color:inherit;
  border:0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  text-align:left;
  background:
    radial-gradient(circle at 70% 36%,rgba(0,112,224,.18),transparent 38%),
    linear-gradient(145deg,#111a27,#080d14 70%);
}
.unmark-visual::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(47,147,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(47,147,255,.055) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(135deg,#000,transparent 82%);
}
.unmark-symbol {
  position:absolute;
  right:7%;
  top:13%;
  width:40%;
  max-width:200px;
  opacity:.16;
  filter:drop-shadow(0 20px 45px rgba(0,0,0,.22));
}
.unmark-lockup {
  position:absolute;
  left:8%;
  bottom:13%;
  width:70%;
  max-width:360px;
  height:auto;
  filter:drop-shadow(0 20px 45px rgba(0,0,0,.25));
  transition:transform .2s ease, filter .2s ease;
}
.unmark-visual:hover .unmark-lockup { transform:translateY(-3px); filter:drop-shadow(0 24px 54px rgba(0,112,224,.16)); }
.unmark-markdown { position:absolute; left:9%; top:14%; color:rgba(145,198,255,.46); font:600 9px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; }

.doug-secret { cursor:pointer; transition:transform .18s ease, box-shadow .18s ease; }
.doug-secret:hover { transform:rotate(-1.5deg) scale(1.025); box-shadow:0 12px 35px rgba(0,112,224,.14); }

@media (max-width: 620px) {
  .achievement { right:12px; bottom:12px; width:calc(100vw - 24px); }
  .nda-logo-slot { min-width:120px; min-height:120px; }
}


/* v2.14 polish */
.site-header { position:sticky !important; top:0; z-index:120; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); background:rgba(7,10,15,.86); box-shadow:0 1px 0 rgba(255,255,255,.07); }
.achievement { position:fixed !important; z-index:250 !important; right:18px; bottom:18px; }
.lens-help { margin:10px 0 0; max-width:460px; color:var(--muted-2); font-size:10px; line-height:1.5; }

/* Tool availability */
.tool-card.github-only .tool-main-link { background:linear-gradient(180deg,rgba(0,112,224,.035),transparent); }
.tool-fab-cta.github-primary { color:#fff; border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.035); }
.tool-secondary-disabled { min-height:38px; padding:0 15px; display:flex; align-items:center; border-top:1px solid var(--line); color:var(--muted-2); font-size:8px; letter-spacing:.09em; text-transform:uppercase; }
.tool-card.wireframe .tool-github-link.in-card { margin:8px -16px -16px; }
.tool-roadmap { margin-top:14px; display:grid; grid-template-columns:.7fr 1.6fr; border:1px solid var(--line); background:var(--panel-3); }
.tool-roadmap-copy { padding:24px; border-right:1px solid var(--line); }
.tool-roadmap-copy h3 { margin:8px 0 10px; font-size:26px; }
.tool-roadmap-copy p { margin:0; color:var(--muted); }
.roadmap-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.roadmap-grid > div { min-height:86px; padding:16px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:4px; }
.roadmap-grid > div:nth-child(3n) { border-right:0; }
.roadmap-grid > div:nth-last-child(-n+3) { border-bottom:0; }
.roadmap-grid strong { font-size:15px; }
.roadmap-grid span { color:var(--muted); font-size:10px; }
.roadmap-grid em { margin-top:auto; color:var(--accent-bright); font-style:normal; font-size:7px; letter-spacing:.12em; text-transform:uppercase; }

/* Unmark feature: logo should read as identity, not a cropped poster. */
.unmark-visual { display:grid; place-items:center; padding:34px; }
.unmark-visual::before { opacity:.4; }
.unmark-lockup-clean { position:relative !important; inset:auto !important; width:min(72%,340px) !important; height:auto !important; max-height:190px; object-fit:contain !important; opacity:1 !important; filter:none !important; transform:none !important; z-index:2; }
.unmark-symbol,.unmark-markdown { display:none !important; }
.feature-status { margin-top:14px; display:flex; gap:6px; flex-wrap:wrap; }
.feature-status span { border:1px solid var(--line); padding:5px 7px; color:var(--muted-2); font-size:7px; letter-spacing:.09em; text-transform:uppercase; }

/* Curated Unreal resources */
.unreal-resources { margin-top:18px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.resource-intro { grid-column:1 / -1; border:1px solid var(--line); padding:22px 24px; background:linear-gradient(90deg,rgba(0,112,224,.06),transparent 55%),var(--panel-3); }
.resource-intro h3 { margin:6px 0 8px; font-size:26px; }
.resource-intro p { margin:0; max-width:900px; color:var(--muted); }
.resource-card { min-height:250px; border:1px solid var(--line); background:var(--panel-3); padding:26px; display:grid; grid-template-columns:100px 1fr; gap:22px; align-items:center; }
.resource-card img { width:88px; height:88px; object-fit:contain; justify-self:center; }
.resource-card h3 { margin:4px 0 10px; font-size:26px; }
.resource-card p { margin:0; color:var(--muted); }
.resource-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.resource-actions a { text-decoration:none; color:var(--muted); border:1px solid var(--line); padding:8px 10px; font-size:9px; letter-spacing:.06em; }
.resource-actions a.primary { color:#fff; border-color:var(--line-blue); background:rgba(0,112,224,.09); }
.resource-actions a:hover { color:#fff; border-color:var(--accent); }
.epic-learning-mark { width:88px; height:88px; display:grid; place-items:center; border:1px solid var(--line-blue); border-radius:18px; font-weight:950; font-size:31px; letter-spacing:-.08em; color:#dfeeff; background:radial-gradient(circle at 50% 20%,rgba(47,147,255,.26),transparent 55%),#0e1723; }

/* About */
.doug-card { overflow:visible !important; }
.doug-photo { position:relative; z-index:4; transition:transform .24s ease, box-shadow .24s ease; transform-origin:left center; cursor:pointer; }
.doug-photo:hover { transform:scale(2.15); z-index:40; box-shadow:0 20px 60px rgba(0,0,0,.65); }

@media (max-width:900px) {
  .tool-roadmap { grid-template-columns:1fr; }
  .tool-roadmap-copy { border-right:0; border-bottom:1px solid var(--line); }
  .roadmap-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .roadmap-grid > div:nth-child(3n) { border-right:1px solid var(--line); }
  .roadmap-grid > div:nth-child(2n) { border-right:0; }
  .roadmap-grid > div:nth-last-child(-n+3) { border-bottom:1px solid var(--line); }
  .roadmap-grid > div:nth-last-child(-n+2) { border-bottom:0; }
  .unreal-resources { grid-template-columns:1fr; }
  .resource-intro { grid-column:auto; }
}
@media (max-width:620px) {
  .roadmap-grid { grid-template-columns:1fr; }
  .roadmap-grid > div { border-right:0 !important; border-bottom:1px solid var(--line) !important; }
  .roadmap-grid > div:last-child { border-bottom:0 !important; }
  .resource-card { grid-template-columns:70px 1fr; padding:18px; }
  .resource-card img,.epic-learning-mark { width:62px; height:62px; }
  .doug-photo:hover { transform:scale(1.55); }
}


/* v2.15 polish */
/* Unmark: establish clear vertical hierarchy between kicker, callouts, title, copy. */
.tool-feature-copy > .card-kicker { margin:0 0 18px; }
.unmark-feature .tool-feature-copy { justify-content:flex-start; padding-top:28px; }
.unmark-feature .azure-callouts { margin:0 0 28px; }
.unmark-feature .tool-feature-copy h3 { margin-bottom:16px; }
.unmark-feature .tool-feature-copy p { line-height:1.62; }

/* Second-person concept visualization: make the camera/player relationship legible. */
.heavy-water .project-visual::after {
  background:linear-gradient(180deg,rgba(2,7,12,.03),rgba(2,7,12,.16));
  pointer-events:none;
}
.camera-eye {
  border:2px solid rgba(93,174,255,.76);
  background:rgba(4,12,21,.56);
  box-shadow:0 0 0 1px rgba(0,112,224,.12),0 0 34px rgba(0,112,224,.22);
}
.eye-lens { border:2px solid rgba(119,194,255,.94); box-shadow:0 0 28px rgba(47,147,255,.48); }
.eye-ray { height:2px; opacity:.78; background:linear-gradient(90deg,#72beff 0%,rgba(47,147,255,.56) 62%,transparent 100%); }
.player-proxy {
  border:2px solid rgba(255,255,255,.42);
  background:linear-gradient(to bottom,rgba(255,255,255,.11),rgba(255,255,255,.025));
  box-shadow:0 0 34px rgba(255,255,255,.06);
}
.player-proxy::before { border:2px solid rgba(255,255,255,.42); background:rgba(10,15,23,.90); }
.camera-eye::after,.player-proxy::after {
  content:attr(data-label);
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  padding:4px 7px;
  border:1px solid rgba(93,174,255,.34);
  background:rgba(4,9,15,.88);
  color:#9fd1ff;
  font-size:7px;
  letter-spacing:.16em;
  white-space:nowrap;
  z-index:4;
}
.camera-eye::after { top:-25px; }
.player-proxy::after { bottom:-27px; color:#d9e8f7; border-color:rgba(255,255,255,.20); }
.heavy-water.lens-active .project-visual::after { background:rgba(1,6,11,.28); }
.heavy-water.lens-active .camera-eye { border-color:#76c2ff; box-shadow:0 0 0 1px rgba(47,147,255,.35),0 0 55px rgba(47,147,255,.48); }
.heavy-water.lens-active .player-proxy { border-color:rgba(255,255,255,.68); box-shadow:0 0 42px rgba(255,255,255,.10); }
.heavy-water.lens-active .eye-ray { opacity:1; box-shadow:0 0 10px rgba(47,147,255,.35); }

/* Doug: bring back the playful tilt while preserving the larger zoom. */
.doug-photo:hover { transform:translate(12px,-8px) rotate(-4.5deg) scale(2.18); box-shadow:0 24px 68px rgba(0,0,0,.70),0 0 0 1px rgba(47,147,255,.16); }
@media (max-width:620px) { .doug-photo:hover { transform:translate(4px,-4px) rotate(-3deg) scale(1.6); } }

/* v2.16 gamification + polish */
.career-primary {
  background:
    linear-gradient(90deg,rgba(8,12,18,.98) 0%,rgba(8,12,18,.90) 10%,rgba(8,12,18,.42) 74%,rgba(8,12,18,.12) 100%),
    url('assets/career/mob-role.webp') right center/cover no-repeat;
}

/* Make the classified pixel-art identity large enough to read as pixel art. */
.nda-logo-slot { min-width:250px; min-height:190px; }
.nda-logo-slot img { width:min(245px,96%); image-rendering:pixelated; }
@media (max-width:900px) {
  .nda-logo-slot { min-width:190px; min-height:160px; }
  .nda-logo-slot img { width:min(190px,94%); }
}

/* Selected Consulting Projects: no divider after the game name itself. */
.consult-project-name { border-right:0 !important; padding-right:0 !important; }
.consult-project-name::after { content:none !important; display:none !important; }

/* Games -> tools callout */
.games-tools-callout {
  margin-top:14px;
  min-height:190px;
  display:grid;
  grid-template-columns:minmax(220px,.62fr) minmax(0,1.38fr);
  align-items:stretch;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(0,112,224,.075),rgba(255,255,255,.012));
  overflow:hidden;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.games-tools-callout:hover { border-color:rgba(47,147,255,.42); background:linear-gradient(135deg,rgba(0,112,224,.12),rgba(255,255,255,.018)); transform:translateY(-2px); }
.games-tools-callout > div:last-child { padding:26px 28px; display:flex; flex-direction:column; justify-content:center; }
.games-tools-callout h3 { margin:8px 0 10px; font-size:28px; letter-spacing:-.025em; }
.games-tools-callout p { margin:0 0 16px; color:var(--muted); max-width:780px; }
.games-tools-callout > div:last-child > strong { color:var(--accent-bright); font-size:11px; letter-spacing:.04em; }
.games-tools-icons {
  position:relative;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:24px;
  border-right:1px solid var(--line);
  background:
    linear-gradient(rgba(47,147,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(47,147,255,.045) 1px,transparent 1px),
    radial-gradient(circle at 50% 50%,rgba(0,112,224,.14),transparent 62%),
    #09101a;
  background-size:28px 28px,28px 28px,auto,auto;
}
.games-tools-icons img { width:58px; height:58px; object-fit:contain; opacity:.82; filter:drop-shadow(0 10px 26px rgba(0,0,0,.35)); transition:transform .18s ease,opacity .18s ease; }
.games-tools-callout:hover .games-tools-icons img:nth-child(odd) { transform:translateY(-5px) rotate(-3deg); opacity:1; }
.games-tools-callout:hover .games-tools-icons img:nth-child(even) { transform:translateY(5px) rotate(3deg); opacity:1; }
@media (max-width:760px) {
  .games-tools-callout { grid-template-columns:1fr; }
  .games-tools-icons { border-right:0; border-bottom:1px solid var(--line); min-height:130px; }
  .games-tools-icons img { width:48px; height:48px; }
}

/* Inspect mode
   Notes are surfaced through the fixed .inspect-tooltip below. Do not assign
   positioning to [data-dev-note] itself: structural targets may already be
   absolute/fixed and changing their positioning mutates the page layout. */

/* Achievement ledger */
.ledger-trigger {
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:245;
  display:none;
  align-items:center;
  gap:10px;
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(47,147,255,.34);
  background:rgba(9,15,23,.92);
  color:#b8dcff;
  font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.14em;
  cursor:pointer;
  box-shadow:0 12px 36px rgba(0,0,0,.28);
}
.ledger-trigger.visible { display:inline-flex; }
.ledger-trigger b { color:#fff; }
.achievement-ledger {
  position:fixed;
  left:18px;
  bottom:62px;
  z-index:246;
  width:min(390px,calc(100vw - 36px));
  max-height:min(72vh,650px);
  overflow:auto;
  border:1px solid rgba(47,147,255,.34);
  background:rgba(7,12,18,.97);
  box-shadow:0 24px 70px rgba(0,0,0,.58);
  padding:16px;
  opacity:0;
  transform:translateY(14px) scale(.98);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.achievement-ledger.open { opacity:1; transform:none; pointer-events:auto; }
.ledger-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:12px; }
.ledger-head span { color:var(--accent-bright); font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.14em; }
.ledger-head h3 { margin:6px 0 0; font-size:22px; }
.ledger-head button,.console-head button { border:0; background:none; color:#8fa4bc; font-size:22px; cursor:pointer; }
.ledger-copy { color:var(--muted); font-size:12px; }
.ledger-list { display:grid; gap:6px; }
.ledger-entry { display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:start; padding:9px 10px; border:1px solid rgba(255,255,255,.055); background:rgba(255,255,255,.012); }
.ledger-entry .num { color:#4c6681; font:800 9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
.ledger-entry strong { display:block; font-size:12px; color:#66788d; }
.ledger-entry small { display:block; margin-top:2px; color:#4f6073; font-size:10px; }
.ledger-hint-label { color:#6885a3; font-size:8px; font-weight:800; letter-spacing:.08em; }
.ledger-entry.unlocked { border-color:rgba(47,147,255,.19); background:rgba(0,112,224,.035); }
.ledger-entry.unlocked .num { color:var(--accent-bright); }
.ledger-entry.unlocked strong { color:#eef7ff; }
.ledger-entry.unlocked small { color:#8da5bf; }
.ledger-controls { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0 10px; }
.ledger-controls button { min-height:34px; border:1px solid var(--line); background:rgba(255,255,255,.018); color:#bfd2e7; font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; cursor:pointer; }
.ledger-controls button:disabled { opacity:.32; cursor:not-allowed; }
.ledger-controls button.active { border-color:rgba(47,147,255,.55); color:#fff; background:rgba(0,112,224,.10); }
.achievement-ledger > small { color:#566a80; font-size:9px; }

/* Dev console */
.dev-console {
  position:fixed;
  z-index:300;
  left:50%;
  bottom:18px;
  width:min(820px,calc(100vw - 36px));
  max-height:min(56vh,520px);
  transform:translate(-50%,calc(100% + 40px));
  opacity:0;
  pointer-events:none;
  border:1px solid rgba(47,147,255,.40);
  background:rgba(4,9,14,.97);
  box-shadow:0 30px 100px rgba(0,0,0,.72);
  transition:transform .2s ease,opacity .2s ease;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.dev-console.open { transform:translate(-50%,0); opacity:1; pointer-events:auto; }
.console-head { display:flex; justify-content:space-between; align-items:center; padding:9px 12px; border-bottom:1px solid var(--line); color:var(--accent-bright); font-size:9px; letter-spacing:.14em; }
.console-output { min-height:150px; max-height:310px; overflow:auto; padding:12px; color:#8fb5da; font-size:11px; line-height:1.65; }
.console-output b { color:#eaf5ff; }
.console-line { white-space:pre-wrap; }
.console-line.cmd { color:#dcecff; }
.console-line.good { color:#71d3b0; }
.console-line.warn { color:#ffd47d; }
.console-input-row { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); padding:9px 12px; color:var(--accent-bright); }
.console-input-row input { flex:1; border:0; outline:0; background:transparent; color:#f2f8ff; font:inherit; }

/* Doug multi-reaction layer */
.doug-photo-wrap { position:relative; flex:0 0 auto; overflow:visible; }
.doug-reaction {
  position:absolute;
  left:50%;
  top:-14px;
  z-index:80;
  min-width:130px;
  max-width:230px;
  padding:7px 9px;
  border:1px solid rgba(47,147,255,.34);
  background:rgba(6,11,18,.95);
  color:#cce7ff;
  font:700 9px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;
  transform:translate(-50%,-100%) scale(.92);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
}
.doug-reaction.show { opacity:1; transform:translate(-50%,-100%) scale(1); }
.doug-card.doug-command { box-shadow:inset 0 0 0 1px rgba(47,147,255,.28),0 16px 50px rgba(0,0,0,.22); }

/* Rare clickable ambient signal */
.ambient-secret {
  position:fixed;
  z-index:10050;
  width:24px;
  height:24px;
  border:1px solid rgba(105,191,255,.66);
  background:rgba(16,124,226,.13);
  box-shadow:0 0 24px rgba(47,147,255,.28),inset 0 0 12px rgba(93,174,255,.12);
  transform:rotate(45deg) scale(.72);
  opacity:0;
  pointer-events:none;
  cursor:pointer;
  transition:opacity .45s ease,transform .45s ease;
}
.ambient-secret::after { content:""; position:absolute; inset:6px; border:1px solid rgba(157,215,255,.75); }
.ambient-secret.visible { opacity:.78; pointer-events:auto; animation:ambient-secret-drift 8s ease-in-out infinite alternate; }
.ambient-secret:hover { opacity:1; transform:rotate(135deg) scale(1.15); }
@keyframes ambient-secret-drift { from{ translate:-8px 8px; } to{ translate:10px -10px; } }

/* Completion reward theme */
body.theme-complete {
  --accent:#a952ff;
  --accent-bright:#d79aff;
  --line-blue:rgba(187,92,255,.45);
}
body.theme-complete #ambient-canvas { filter:hue-rotate(62deg) saturate(1.35); opacity:.30; }
body.theme-complete .site-header { box-shadow:0 1px 0 rgba(210,132,255,.16),0 0 55px rgba(141,48,255,.08); }
body.theme-complete .hero::after { background:linear-gradient(90deg,rgba(7,8,13,.98) 0%,rgba(15,6,24,.78) 50%,rgba(30,5,50,.25) 100%); }
body.theme-complete .fallback-core { filter:hue-rotate(65deg) saturate(1.5); }
body.theme-complete .scene-guide { border-color:rgba(213,145,255,.38); }
body.theme-complete .eyebrow,body.theme-complete .card-kicker { color:#d79aff; }
body.theme-complete .achievement { border-color:rgba(210,132,255,.55); }

@media (max-width:620px) {
  .ledger-trigger { left:12px; bottom:12px; }
  .achievement-ledger { left:12px; bottom:54px; width:calc(100vw - 24px); }
  .ledger-controls { grid-template-columns:1fr; }
}
/* Neutralize legacy span-grid borders inside the newer consulting project rows. */
.consult-title-grid .consult-project-name,
.consult-title-grid .consult-project-actions { border:0 !important; }
.consult-title-grid .consult-project-name { padding:0 !important; }
.consult-title-grid .consult-project-actions { padding:0 !important; }
.consult-title-grid .project-state,
.consult-title-grid .project-steam-link { border:1px solid var(--line) !important; padding:0 9px !important; }
.consult-title-grid .project-steam-link { border-color:rgba(0,112,224,.42) !important; }


/* v2.17 completion-state visual overhaul */
body.theme-complete {
  --bg:#0c0713;
  --bg-deep:#07040d;
  --bg-2:#171022;
  --panel:rgba(27,17,39,.94);
  --panel-2:rgba(34,21,49,.94);
  --panel-3:rgba(17,10,27,.96);
  --line:rgba(224,176,255,.16);
  --line-strong:rgba(230,190,255,.30);
  --line-blue:rgba(219,98,255,.52);
  --text:#fbf7ff;
  --muted:#c4b2d3;
  --muted-2:#8d789f;
  --accent:#b13cff;
  --accent-bright:#e18cff;
  --accent-soft:rgba(177,60,255,.18);
  --accent-2:#67e8ff;
  --warning:#ffd166;
  background:
    radial-gradient(circle at 14% 0%,rgba(177,60,255,.22),transparent 34rem),
    radial-gradient(circle at 88% 24%,rgba(62,221,255,.13),transparent 32rem),
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 260px),
    var(--bg);
}
body.theme-complete::before {
  opacity:.23;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(177,60,255,.018) 1px,transparent 1px);
  background-size:100% 4px,48px 48px;
}
body.theme-complete .site-header {
  background:rgba(14,7,22,.88);
  border-bottom-color:rgba(225,140,255,.24);
  box-shadow:0 1px 0 rgba(225,140,255,.16),0 0 55px rgba(141,48,255,.13);
}
body.theme-complete .brand-mark,
body.theme-complete .button.primary,
body.theme-complete .filter.active {
  background:linear-gradient(135deg,rgba(177,60,255,.34),rgba(45,223,255,.18)),#171022;
  border-color:rgba(224,140,255,.56);
  box-shadow:inset 0 0 22px rgba(177,60,255,.14),0 0 22px rgba(72,218,255,.08);
}
body.theme-complete .hero {
  background:
    radial-gradient(circle at 76% 46%,rgba(177,60,255,.13),transparent 25rem),
    radial-gradient(circle at 62% 58%,rgba(64,221,255,.08),transparent 22rem);
}
body.theme-complete .hero h1,
body.theme-complete .section-heading h2,
body.theme-complete .about-head h2 {
  background:linear-gradient(105deg,#fff 0%,#f6ddff 35%,#dd9bff 68%,#7deaff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 34px rgba(177,60,255,.10);
}
body.theme-complete .eyebrow,
body.theme-complete .card-kicker,
body.theme-complete .mini-label { color:#e59cff; }
body.theme-complete .panel,
body.theme-complete .feature-card,
body.theme-complete .tool-card,
body.theme-complete .resume-card,
body.theme-complete .about-grid,
body.theme-complete .consult-grid,
body.theme-complete .studio-wall {
  border-color:rgba(225,140,255,.18);
}
body.theme-complete .tool-card,
body.theme-complete .resume-card,
body.theme-complete .feature-card {
  background:linear-gradient(180deg,rgba(177,60,255,.035),rgba(60,220,255,.012)),var(--panel-3);
}
body.theme-complete .tool-card:hover,
body.theme-complete .resume-card:hover,
body.theme-complete .feature-card:hover {
  border-color:rgba(225,140,255,.40);
  box-shadow:0 14px 42px rgba(90,28,126,.18);
}
body.theme-complete #ambient-canvas {
  filter:hue-rotate(48deg) saturate(1.65) contrast(1.1);
  opacity:.52;
}
body.theme-complete .fallback-core { filter:hue-rotate(56deg) saturate(1.8) drop-shadow(0 0 28px rgba(206,84,255,.32)); }
body.theme-complete .scene-guide { border-color:rgba(227,159,255,.50); color:#e7b4ff; }
body.theme-complete .scene-readout { color:#8cecff; }
body.theme-complete .studio-card .studio-image {
  filter:grayscale(.28) sepia(.10) hue-rotate(214deg) saturate(1.75) contrast(1.10) brightness(.84);
  transform:scale(1.018);
}
body.theme-complete .studio-card::after {
  opacity:.78;
  background:
    linear-gradient(135deg,rgba(177,60,255,.13),transparent 42%),
    linear-gradient(315deg,rgba(54,219,255,.11),transparent 45%),
    repeating-linear-gradient(180deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px);
  mix-blend-mode:screen;
}
body.theme-complete .studio-card:hover .studio-image {
  filter:grayscale(.12) sepia(.08) hue-rotate(214deg) saturate(2.0) contrast(1.12) brightness(.92);
}
body.theme-complete .studio-card strong { text-shadow:0 0 20px rgba(199,95,255,.16); }
body.theme-complete .credit-line,
body.theme-complete .tool-card strong,
body.theme-complete .feature-card h3 { color:#fbf6ff !important; }
body.theme-complete .tag,
body.theme-complete .project-state,
body.theme-complete .tool-action.secondary {
  border-color:rgba(224,140,255,.24) !important;
  background:rgba(177,60,255,.055);
}
body.theme-complete .achievement,
body.theme-complete .achievement-ledger,
body.theme-complete .dev-console {
  border-color:rgba(224,140,255,.55);
  box-shadow:0 24px 80px rgba(65,16,89,.42),0 0 44px rgba(177,60,255,.10);
}
body.theme-complete .doug-photo {
  box-shadow:0 0 0 1px rgba(225,140,255,.20),0 0 34px rgba(177,60,255,.12);
}
body.theme-complete .footer-line { color:#c4b2d3; }
body.theme-complete ::selection { background:rgba(177,60,255,.42); color:#fff; }

/* Keep the larger NDA logo decisively inside its panel. */
.nda-logo-slot { overflow:hidden; }
.nda-logo-slot img { max-width:88%; max-height:78%; object-fit:contain; }


/* v2.18 completion-world polish */
/* NDA logo: large, but mathematically constrained by the grid track. */
.career-nda { grid-template-columns:minmax(0,1fr) minmax(190px,250px); overflow:hidden; }
.nda-copy { min-width:0; }
.nda-logo-slot {
  min-width:0 !important;
  width:100%;
  max-width:250px;
  min-height:0;
  aspect-ratio:1.16 / 1;
  box-sizing:border-box;
  justify-self:end;
  overflow:hidden;
  padding:18px;
}
.nda-logo-slot img { width:100%; max-width:100%; max-height:72%; object-fit:contain; }
@media (max-width:900px) {
  .career-nda { grid-template-columns:minmax(0,1fr) minmax(150px,190px); }
  .nda-logo-slot { max-width:190px; padding:12px; }
}
@media (max-width:620px) {
  .career-nda { grid-template-columns:1fr; }
  .nda-logo-slot { justify-self:start; width:min(230px,100%); max-width:100%; }
}

/* Inspect mode is discovery-by-hover, not wireframe debugging. */
body.inspect-mode [data-dev-note] { outline:0 !important; }
body.inspect-mode [data-dev-note]::after { display:none !important; content:none !important; }
.inspect-tooltip {
  position:fixed;
  z-index:1000;
  max-width:min(430px,calc(100vw - 28px));
  padding:9px 11px;
  border:1px solid rgba(93,174,255,.46);
  background:rgba(5,9,15,.96);
  color:#c5e5ff;
  font:700 9px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.055em;
  box-shadow:0 18px 48px rgba(0,0,0,.45),0 0 28px rgba(47,147,255,.08);
  opacity:0;
  transform:translateY(5px);
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease;
}
.inspect-tooltip.show { opacity:1; transform:none; }
body.theme-complete .inspect-tooltip { border-color:rgba(242,105,255,.52); color:#f2d8ff; box-shadow:0 18px 52px rgba(30,4,44,.62),0 0 34px rgba(244,75,255,.14); }

/* Completion treatment extends to the large Unreal feature art. */
body.theme-complete .azure-altar .tool-feature-visual {
  filter:hue-rotate(42deg) saturate(1.42) contrast(1.08) brightness(.90);
  box-shadow:inset 0 0 70px rgba(236,72,255,.11);
}
body.theme-complete .unmark-visual {
  background:radial-gradient(circle at 76% 22%,rgba(52,226,255,.22),transparent 34%),linear-gradient(145deg,#20102d,#090711 66%);
}
body.theme-complete .unmark-lockup { filter:hue-rotate(42deg) saturate(1.42) drop-shadow(0 0 24px rgba(233,83,255,.18)); }
body.theme-complete .tool-feature-visual { border-color:rgba(232,133,255,.24); }

/* More completion-theme typography uses the unlocked palette without making body copy noisy. */
body.theme-complete .career-primary h3,
body.theme-complete .career-direction strong,
body.theme-complete .career-nda h3,
body.theme-complete .tool-feature-copy h3,
body.theme-complete .consult-card h3,
body.theme-complete .resource-card h3,
body.theme-complete .games-tools-callout h3,
body.theme-complete .about-years strong,
body.theme-complete .studio-card strong,
body.theme-complete .ledger-head h3 {
  background:linear-gradient(105deg,#ffffff 0%,#f5dcff 34%,#e18cff 68%,#63edff 88%,#ff4fc8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
}
body.theme-complete a:not(.button):not(.tool-main-link):not(.project-steam-link) { color:#dd9cff; }
body.theme-complete .tool-action.primary,
body.theme-complete .project-steam-link { border-color:rgba(105,232,255,.42); color:#89efff; }

/* Hot-pink joins violet/cyan as a small completion accent. */
body.theme-complete { --hot-pink:#ff45bf; }
body.theme-complete .ledger-trigger b,
body.theme-complete .achievement-topline b { color:#ff75cf; }
body.theme-complete .card-kicker::selection { background:#ff45bf; }

/* Completion cursor field. */
.completion-cursor-aura {
  position:fixed; z-index:65; width:44px; height:44px; margin:-22px 0 0 -22px;
  border:1px solid rgba(111,235,255,.28); border-radius:50%;
  box-shadow:0 0 28px rgba(214,82,255,.18),inset 0 0 20px rgba(255,69,191,.08);
  pointer-events:none; opacity:0; transition:opacity .18s ease; mix-blend-mode:screen;
}
body.theme-complete .completion-cursor-aura { opacity:.72; }
.cursor-spark { position:fixed; z-index:64; width:4px; height:4px; border-radius:50%; pointer-events:none; animation:cursor-spark .72s ease-out forwards; mix-blend-mode:screen; }
@keyframes cursor-spark { from{opacity:.95;transform:translate(0,0) scale(1)} to{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.15)} }

/* Completion ledger becomes an explicitly unlocked system panel. */
body.theme-complete .achievement-ledger {
  background:
    radial-gradient(circle at 90% 0%,rgba(69,230,255,.10),transparent 18rem),
    radial-gradient(circle at 10% 100%,rgba(255,69,191,.10),transparent 18rem),
    linear-gradient(145deg,rgba(37,15,52,.98),rgba(13,7,22,.98));
  border-color:rgba(223,130,255,.62);
}
body.theme-complete .ledger-head { border-bottom-color:rgba(227,146,255,.24); }
body.theme-complete .ledger-entry { border-color:rgba(232,149,255,.10); background:rgba(255,255,255,.015); }
body.theme-complete .ledger-entry.unlocked {
  border-color:rgba(115,232,255,.28);
  background:linear-gradient(90deg,rgba(190,70,255,.09),rgba(62,224,255,.035));
  box-shadow:inset 2px 0 0 rgba(255,69,191,.42);
}
body.theme-complete .ledger-entry.unlocked .num { color:#ff72d1; }
body.theme-complete .ledger-controls button.active { border-color:rgba(255,92,207,.58); background:rgba(212,72,255,.12); }
body.theme-complete .ledger-trigger { border-color:rgba(255,95,210,.58); background:linear-gradient(90deg,rgba(188,54,255,.18),rgba(59,222,255,.10)),rgba(12,7,19,.94); }

/* Shooting star secret. */
.shooting-star {
  position:fixed; z-index:28; left:-180px; top:20vh; width:140px; height:28px;
  border:0; background:none; padding:0; cursor:pointer; pointer-events:auto;
  transform:rotate(-12deg); filter:drop-shadow(0 0 9px rgba(255,255,255,.65));
}
.shooting-star::before { content:""; position:absolute; right:0; top:11px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 0 12px #fff,0 0 26px #73edff,0 0 38px #ff62cf; }
.shooting-star::after { content:""; position:absolute; right:9px; top:13px; width:125px; height:4px; border-radius:999px; background:linear-gradient(90deg,transparent,rgba(255,75,198,.32),rgba(93,235,255,.78),#fff); transform-origin:right center; }
.shooting-star.fly { animation:shooting-star-flight var(--dur,5.2s) linear forwards; }
@keyframes shooting-star-flight { to { transform:translate(calc(100vw + 360px),var(--fall,180px)) rotate(-12deg); } }

/* Rare arcade ship, intentionally tiny and pixel-like. */
.galaga-secret {
  position:fixed; z-index:27; left:-90px; top:36vh; width:44px; height:32px; border:0; padding:0; background:transparent; cursor:crosshair;
  filter:drop-shadow(0 0 8px rgba(112,237,255,.38)); image-rendering:pixelated;
}
.galaga-secret::before { content:""; position:absolute; left:15px; top:2px; width:14px; height:10px; background:#ff62ca; box-shadow:-9px 7px 0 #67e8ff,9px 7px 0 #67e8ff,-15px 14px 0 #8d5cff,15px 14px 0 #8d5cff,-4px 15px 0 #fff,4px 15px 0 #fff; }
.galaga-secret.fly { animation:galaga-flight var(--dur,11s) linear forwards; }
@keyframes galaga-flight { 0%{transform:translateX(0) rotate(0)} 30%{transform:translate(35vw,-45px) rotate(6deg)} 60%{transform:translate(70vw,40px) rotate(-5deg)} 100%{transform:translate(calc(100vw + 140px),-18px) rotate(0)} }
.arcade-pixel { position:fixed; z-index:70; width:5px; height:5px; pointer-events:none; animation:arcade-burst .72s ease-out forwards; }
@keyframes arcade-burst { to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(180deg) scale(.2)} }

/* Faux Unreal stat FPS overlay. */
.fps-stat {
  position:fixed; z-index:95; right:14px; top:92px; min-width:170px; padding:9px 11px;
  background:rgba(0,0,0,.45); color:#83ff73; font:700 12px/1.35 Consolas,monospace;
  text-shadow:1px 1px 0 #000; pointer-events:none; white-space:pre; display:none;
}
.fps-stat.show { display:block; }

/* Console async progress line. */
.console-progress { height:8px; margin:7px 0 3px; border:1px solid rgba(105,232,255,.24); background:rgba(255,255,255,.02); overflow:hidden; }
.console-progress > i { display:block; height:100%; width:0%; background:linear-gradient(90deg,#a43cff,#ff4fc8,#63edff); transition:width .12s linear; }

/* Doug paw burst: visible above all card layers. */
.doug-paw { position:fixed; z-index:120; pointer-events:none; font-size:18px; line-height:1; color:#83d8ff; text-shadow:0 0 8px rgba(47,147,255,.55); animation:doug-paw-burst 1s ease-out forwards; }
body.theme-complete .doug-paw:nth-of-type(even) { color:#ff63ca; }
@keyframes doug-paw-burst { from{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(.7)} to{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--rot)) scale(1.35)} }

/* v2.19 completion-theme motion + typography polish */
/* Prevent gradient text from being visually clipped by tight line boxes. */
body.theme-complete .hero h1,
body.theme-complete .section-heading h2,
body.theme-complete .about-head h2,
body.theme-complete .career-primary h3,
body.theme-complete .career-direction strong,
body.theme-complete .career-nda h3,
body.theme-complete .tool-feature-copy h3,
body.theme-complete .consult-card h3,
body.theme-complete .resource-card h3,
body.theme-complete .games-tools-callout h3,
body.theme-complete .studio-card strong,
body.theme-complete .ledger-head h3,
body.theme-complete .about-years .big-number {
  overflow:visible !important;
  padding-right:.08em;
  padding-bottom:.07em;
  background-repeat:no-repeat;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
/* NDA title stays on one line on desktop, but is sized to actually fit its track. */
@media (min-width:901px) {
  .career-nda h3 {
    font-size:clamp(22px,1.65vw,27px) !important;
    line-height:1.12 !important;
    white-space:nowrap !important;
    letter-spacing:-.035em;
  }
}
@media (max-width:900px) {
  .career-nda h3 { white-space:normal !important; }
}

/* The Experience number participates fully in the completion palette. */
body.theme-complete .about-years .big-number {
  background:linear-gradient(105deg,#ffffff 0%,#f5dcff 24%,#df8cff 55%,#ff55c8 76%,#64edff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  text-shadow:0 0 30px rgba(220,79,255,.12);
}
body.theme-complete .about-years > span:last-child {
  color:#d8c1e8;
}

/* A little more hot pink to break the violet field without taking it over. */
body.theme-complete .button.ghost:hover,
body.theme-complete .tool-action.secondary:hover,
body.theme-complete .tag:hover {
  border-color:rgba(255,91,198,.48) !important;
  box-shadow:0 0 18px rgba(255,69,191,.10);
}
body.theme-complete .intro-strip > div:nth-child(even)::before {
  background-color:rgba(255,67,187,.035);
}
body.theme-complete .site-footer a:hover,
body.theme-complete .about-links a:hover { color:#ff82d6; }
body.theme-complete .achievement span,
body.theme-complete .ledger-entry.unlocked strong { color:#f0b2ff; }
body.theme-complete .project-state { color:#ff9cda; }

/* Larger, fewer Doug particles. Hearts join the paws. */
.doug-paw {
  font-size:clamp(34px,3.3vw,48px);
  text-shadow:0 0 13px rgba(47,147,255,.48);
  animation-duration:1.18s;
}
body.theme-complete .doug-paw { text-shadow:0 0 15px rgba(255,79,200,.42),0 0 24px rgba(103,232,255,.18); }
@keyframes doug-paw-burst {
  from { opacity:1; transform:translate(-50%,-50%) rotate(-8deg) scale(.58); }
  58% { opacity:.92; }
  to { opacity:0; transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--rot)) scale(1.18); }
}

/* Direction-agnostic shooting star. Trail is always behind the travel vector. */
.shooting-star {
  left:0; top:0;
  width:170px; height:32px;
  transform-origin:100% 50%;
  transform:rotate(var(--angle,0deg));
}
.shooting-star::before { right:0; top:10px; width:13px; height:13px; }
.shooting-star::after {
  right:10px; top:14px; width:155px; height:4px;
  background:linear-gradient(90deg,transparent,rgba(255,76,198,.25),rgba(91,236,255,.76),#fff);
}
.shooting-star.fly { animation:shooting-star-flight var(--dur,1.65s) linear forwards; }
@keyframes shooting-star-flight {
  from { transform:translate3d(0,0,0) rotate(var(--angle,0deg)); opacity:0; }
  7% { opacity:1; }
  88% { opacity:1; }
  to { transform:translate3d(var(--dx,100vw),var(--dy,0),0) rotate(var(--angle,0deg)); opacity:0; }
}

/* The rare arcade ship can enter from any edge as well. */
.galaga-secret { left:0; top:0; transform:rotate(var(--angle,0deg)); transform-origin:50% 50%; }
.galaga-secret.fly { animation:galaga-flight var(--dur,8s) linear forwards; }
@keyframes galaga-flight {
  from { transform:translate3d(0,0,0) rotate(var(--angle,0deg)); opacity:0; }
  6% { opacity:1; }
  35% { transform:translate3d(calc(var(--dx) * .35),calc(var(--dy) * .35 - 28px),0) rotate(calc(var(--angle) + 5deg)); }
  68% { transform:translate3d(calc(var(--dx) * .68),calc(var(--dy) * .68 + 22px),0) rotate(calc(var(--angle) - 4deg)); }
  92% { opacity:1; }
  to { transform:translate3d(var(--dx),var(--dy),0) rotate(var(--angle)); opacity:0; }
}


/* v2.20 completion-world coherence + ambient pickups */
/* Completion surfaces use the ledger language: cyan/teal at rest, hot pink on interaction. */
body.theme-complete .games-tools-callout,
body.theme-complete .tool-card,
body.theme-complete .resume-card,
body.theme-complete .feature-card,
body.theme-complete .tool-feature,
body.theme-complete .resource-card,
body.theme-complete .consult-project-row,
body.theme-complete .career-primary,
body.theme-complete .career-direction,
body.theme-complete .career-nda,
body.theme-complete .about-panel,
body.theme-complete .doug-card {
  border-color:rgba(93,235,255,.30) !important;
  box-shadow:inset 0 0 0 1px rgba(93,235,255,.025),0 0 28px rgba(60,220,255,.025);
}
body.theme-complete .games-tools-callout:hover,
body.theme-complete .tool-card:hover,
body.theme-complete .resume-card:hover,
body.theme-complete .feature-card:hover,
body.theme-complete .tool-feature:hover,
body.theme-complete .resource-card:hover,
body.theme-complete .consult-project-row:hover,
body.theme-complete .studio-card:hover,
body.theme-complete .about-links a:hover,
body.theme-complete .doug-card:hover {
  border-color:rgba(255,69,191,.68) !important;
  box-shadow:0 14px 46px rgba(255,69,191,.10),inset 0 0 0 1px rgba(255,69,191,.05);
}
body.theme-complete .games-tools-callout:hover {
  background:linear-gradient(135deg,rgba(255,69,191,.12),rgba(93,235,255,.035));
}
body.theme-complete .tool-action.primary:hover,
body.theme-complete .project-steam-link:hover,
body.theme-complete .resource-actions a:hover,
body.theme-complete .button:hover {
  border-color:rgba(255,69,191,.72) !important;
  color:#ff8cd8 !important;
}

/* User-authored completion image treatment: grayscale/multiply into a red base, blue lighten overlay. */
body.theme-complete .studio-card { background-color:#ff0000; }
body.theme-complete .studio-card .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94);
  filter:grayscale(100%) contrast(1.06) brightness(.94);
  mix-blend-mode:multiply;
  transform:scale(1.018);
}
body.theme-complete .studio-card::after {
  background:#002b96;
  opacity:.72;
  mix-blend-mode:lighten;
}
body.theme-complete .studio-card:hover::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32));
  opacity:.78;
}
body.theme-complete .studio-card:hover .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02);
  filter:grayscale(100%) contrast(1.12) brightness(1.02);
  mix-blend-mode:multiply;
}

/* Carry the same unlocked graphic treatment into Azure Altar and Unmark. */
body.theme-complete .azure-altar .tool-feature-visual {
  position:relative;
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.90);
  filter:grayscale(100%) contrast(1.06) brightness(.90);
  background-color:#ff0000;
  background-blend-mode:multiply;
}
body.theme-complete .azure-altar .tool-feature-visual::after,
body.theme-complete .unmark-visual::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:#002b96;
  opacity:.62;
  mix-blend-mode:lighten;
}
body.theme-complete .unmark-visual { background-color:#ff0000; }
body.theme-complete .unmark-lockup {
  -webkit-filter:grayscale(100%) contrast(1.08);
  filter:grayscale(100%) contrast(1.08);
  mix-blend-mode:multiply;
}
body.theme-complete .tool-feature:hover .tool-feature-visual::after { background:linear-gradient(135deg,rgba(0,43,150,.92),rgba(255,69,191,.30)); }

/* Hot pink gets a few more deliberate punctuation roles. */
body.theme-complete .eyebrow,
body.theme-complete .card-kicker,
body.theme-complete .tool-wip-note,
body.theme-complete .about-scene-label,
body.theme-complete .achievement-topline span { color:#ff78d1; }
body.theme-complete .site-nav a:hover,
body.theme-complete .text-action:hover { color:#ff7bd2; }

/* Larger particles in the About / Experience scene are easier to read as intentional motion. */
#about-canvas { opacity:.42; }
body.theme-complete #about-canvas { opacity:.58; filter:saturate(1.22) contrast(1.05); }

/* Generic completion-theme flying pickups. */
.game-pickup,
.doug-bone {
  position:fixed;
  z-index:27;
  left:0; top:0;
  display:grid;
  place-items:center;
  pointer-events:auto;
  cursor:pointer;
  transform:rotate(var(--angle,0deg));
  animation:pickup-flight var(--dur,7s) linear forwards;
}
.game-pickup {
  width:64px;
  min-width:64px;
  height:64px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  color:#8ff4ff;
}
.game-pickup:hover,.doug-bone:hover { color:#ff8bd7; }
.game-pickup-icon {
  width:64px;
  height:64px;
  overflow:visible;
  filter:drop-shadow(0 0 8px rgba(103,232,255,.28)) drop-shadow(0 0 16px rgba(255,79,200,.12));
  transition:transform .16s ease, filter .16s ease;
}
.game-pickup:hover .game-pickup-icon {
  transform:scale(1.14);
  filter:drop-shadow(0 0 9px rgba(103,232,255,.38)) drop-shadow(0 0 18px rgba(255,79,200,.24));
}
.game-pickup .pickup-fill,
.game-pickup .pickup-cap,
.game-pickup .pickup-stem,
.game-pickup .pickup-key-body,
.game-pickup .pickup-key-ring {
  vector-effect:non-scaling-stroke;
}
.game-pickup[data-kind="heart"] .pickup-fill { fill:#ff75cf; stroke:#ffd4ee; stroke-width:1.45; }
.game-pickup[data-kind="star"] .pickup-fill { fill:#ffe185; stroke:#fff8d2; stroke-width:1.4; }
.game-pickup[data-kind="rupee"] .pickup-fill { fill:#2f9fff; stroke:#9de4ff; stroke-width:1.5; }
.game-pickup[data-kind="rupee"] .pickup-line { fill:none; stroke:#d3f5ff; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; opacity:.95; }
.game-pickup[data-kind="1up"] .pickup-cap { fill:#6be85a; stroke:#d8ffd2; stroke-width:1.5; }
.game-pickup[data-kind="1up"] .pickup-spot { fill:#f0fff2; opacity:.96; }
.game-pickup[data-kind="1up"] .pickup-stem { fill:#f9f0df; stroke:#dfe9ff; stroke-width:1.15; }
.game-pickup[data-kind="1up"] .pickup-eye { fill:#13301d; }
.game-pickup[data-kind="key"] .pickup-key-ring,
.game-pickup[data-kind="key"] .pickup-key-body { fill:#ffd87f; stroke:#fff2b7; stroke-width:1.45; }
.game-pickup[data-kind="key"] .pickup-key-hole { fill:#24172f; }
body.theme-complete .game-pickup[data-kind="heart"] .pickup-fill { fill:#ff74d1; stroke:#ffe3f4; }
body.theme-complete .game-pickup[data-kind="star"] .pickup-fill { fill:#ffd780; stroke:#fff6c7; }
body.theme-complete .game-pickup[data-kind="rupee"] .pickup-fill { fill:#45b6ff; stroke:#baf2ff; }
body.theme-complete .game-pickup[data-kind="1up"] .pickup-cap { fill:#74f067; stroke:#ecffe7; }
body.theme-complete .game-pickup[data-kind="key"] .pickup-key-ring,
body.theme-complete .game-pickup[data-kind="key"] .pickup-key-body { fill:#ffd996; stroke:#fff2c9; }
.doug-bone {
  width:64px;
  min-width:64px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.doug-bone:hover {
  border:0;
  background:transparent;
  box-shadow:none;
}
.doug-bone-icon {
  width:64px;
  height:32px;
  overflow:visible;
  filter:drop-shadow(0 0 7px rgba(255,184,100,.42));
}
.doug-bone-icon g {
  fill:#ffd79c;
  stroke:#ff9fcf;
  stroke-width:1.35;
  vector-effect:non-scaling-stroke;
}
body.theme-complete .doug-bone-icon {
  filter:drop-shadow(0 0 10px rgba(255,74,191,.55)) drop-shadow(0 0 5px rgba(87,232,255,.35));
}
body.theme-complete .doug-bone-icon g {
  fill:#ffe2ae;
  stroke:#ff55c7;
}
.doug-bone:hover .doug-bone-icon { transform:scale(1.16); }
@keyframes pickup-flight {
  from { transform:translate3d(0,0,0) rotate(var(--angle,0deg)) scale(.82); opacity:0; }
  8% { opacity:1; }
  46% { transform:translate3d(calc(var(--dx) * .46),calc(var(--dy) * .46 - 18px),0) rotate(calc(var(--angle) + 7deg)) scale(1); }
  90% { opacity:1; }
  to { transform:translate3d(var(--dx),var(--dy),0) rotate(calc(var(--angle) + 16deg)) scale(.88); opacity:0; }
}


/* v2.22 completion image treatment consistency */
/* All studio cards use exactly the same base/filter/overlay in the completed theme. */
body.theme-complete .studio-card {
  background:#ff0000 !important;
}
body.theme-complete .studio-card .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  mix-blend-mode:multiply !important;
}
body.theme-complete .studio-card::after {
  background:#002b96 !important;
  opacity:.72 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete .studio-card:hover::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32)) !important;
  opacity:.78 !important;
}
body.theme-complete .studio-card:hover .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  mix-blend-mode:multiply !important;
}

/* Azure Altar uses the identical grayscale -> multiply -> blue/lighten stack. */
body.theme-complete .azure-altar .tool-feature-visual {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#ff0000 !important;
  -webkit-filter:none !important;
  filter:none !important;
  background-blend-mode:normal !important;
}
body.theme-complete .azure-altar .tool-feature-visual::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:url('assets/azure-altar.webp') center/cover no-repeat;
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94);
  filter:grayscale(100%) contrast(1.06) brightness(.94);
  mix-blend-mode:multiply;
}
body.theme-complete .azure-altar .tool-feature-visual::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:#002b96 !important;
  opacity:.72 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete .azure-altar:hover .tool-feature-visual::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32)) !important;
  opacity:.78 !important;
}
body.theme-complete .azure-altar:hover .tool-feature-visual::before {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02);
  filter:grayscale(100%) contrast(1.12) brightness(1.02);
}

/* Unmark uses the same treatment, with the supplied lockup acting as the image layer. */
body.theme-complete .unmark-visual {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#ff0000 !important;
}
body.theme-complete .unmark-visual::before {
  display:none !important;
}
body.theme-complete .unmark-lockup-clean {
  position:relative !important;
  z-index:1 !important;
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  mix-blend-mode:multiply !important;
}
body.theme-complete .unmark-visual::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:#002b96 !important;
  opacity:.72 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete .unmark-feature:hover .unmark-visual::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32)) !important;
  opacity:.78 !important;
}
body.theme-complete .unmark-feature:hover .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  mix-blend-mode:multiply !important;
}

/* v2.24 fix: completion-gradient NDA title must size to its rendered text.
   The title intentionally overflows its text grid track on desktop. In completion
   mode background-clip:text only painted the original track width, making the
   overflowed glyphs transparent. Expand the painted box to the text width. */
@media (min-width:901px) {
  body.theme-complete .career-nda h3 {
    display:block;
    width:max-content;
    max-width:none;
    overflow:visible !important;
    position:relative;
    z-index:2;
  }
}

/* v2.26 Azure Altar screenshot gallery */
.azure-altar {
  cursor:pointer;
}
.azure-altar:focus-visible {
  outline:1px solid var(--accent-bright);
  outline-offset:3px;
}
.azure-gallery-hint {
  margin-top:18px;
  color:var(--accent-bright);
  font:700 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
}
body.theme-complete .azure-gallery-hint { color:#ff7bd2; }

.azure-gallery {
  position:fixed;
  inset:0;
  z-index:500;
  display:none;
  place-items:center;
}
.azure-gallery.open { display:grid; }
.azure-gallery-backdrop {
  position:absolute;
  inset:0;
  border:0;
  background:rgba(0,0,0,.88);
  cursor:pointer;
}
.azure-gallery-shell {
  position:relative;
  z-index:1;
  width:min(94vw,1480px);
  max-height:94vh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  border:1px solid rgba(255,255,255,.15);
  background:#05070a;
  box-shadow:0 28px 100px rgba(0,0,0,.65);
}
.azure-gallery-head {
  min-height:52px;
  padding:0 16px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:#090c11;
}
.azure-gallery-head > div { display:flex; align-items:center; gap:14px; min-width:0; }
.azure-gallery-head span,
.azure-gallery-head strong,
.azure-gallery-help {
  font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.azure-gallery-head span { color:#9bb0c8; }
.azure-gallery-head strong { color:#fff; white-space:nowrap; }
.azure-gallery-close {
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#d6e1ee;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.azure-gallery-close:hover { color:#fff; }
.azure-gallery-stage {
  position:relative;
  min-height:0;
  display:grid;
  place-items:center;
  background:#000;
  overflow:hidden;
}
.azure-gallery-stage img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:72vh;
  object-fit:contain;
  -webkit-filter:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  opacity:1 !important;
  transform:none !important;
  background:none !important;
}
.azure-gallery-nav {
  position:absolute;
  top:50%;
  z-index:2;
  width:52px;
  height:72px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:42px;
  line-height:1;
  cursor:pointer;
}
.azure-gallery-nav:hover { background:rgba(255,255,255,.10); }
.azure-gallery-prev { left:12px; }
.azure-gallery-next { right:12px; }
.azure-gallery-thumbs {
  display:flex;
  gap:8px;
  padding:10px 12px;
  overflow-x:auto;
  border-top:1px solid rgba(255,255,255,.10);
  background:#090c11;
  scrollbar-width:thin;
}
.azure-gallery-thumb {
  flex:0 0 auto;
  width:112px;
  height:63px;
  padding:0;
  border:1px solid rgba(255,255,255,.13);
  background:#000;
  cursor:pointer;
  opacity:.58;
}
.azure-gallery-thumb:hover,
.azure-gallery-thumb.active { opacity:1; border-color:#2f93ff; }
.azure-gallery-thumb img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  -webkit-filter:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  opacity:1 !important;
}
.azure-gallery-help {
  padding:9px 14px 11px;
  color:#65778d;
  text-align:right;
  background:#090c11;
}
body.theme-complete .azure-gallery-shell { border-color:rgba(103,232,255,.34); }
body.theme-complete .azure-gallery-thumb.active { border-color:#ff61c7; }
body.azure-gallery-open { overflow:hidden; }

@media (max-width:720px) {
  .azure-gallery-shell { width:100vw; height:100dvh; max-height:none; border:0; }
  .azure-gallery-stage img { max-height:calc(100dvh - 180px); }
  .azure-gallery-nav { width:42px; height:58px; font-size:34px; }
  .azure-gallery-prev { left:6px; }
  .azure-gallery-next { right:6px; }
  .azure-gallery-thumb { width:88px; height:50px; }
}


/* v2.29 guided discovery + playful console simulations */
.achievement { bottom:62px !important; padding-right:40px; }
.achievement-close {
  position:absolute; right:8px; top:8px; display:none; width:26px; height:26px; padding:0;
  border:0; background:transparent; color:#7690aa; font:400 20px/1 sans-serif; cursor:pointer;
}
.achievement.hint-toast .achievement-close { display:block; }
.achievement.hint-toast { pointer-events:auto; border-left-color:#ffd36b; border-color:rgba(255,211,107,.38); }
.achievement.hint-toast .achievement-topline span { color:#ffd36b; }
.hint-trigger {
  position:fixed; right:18px; bottom:18px; z-index:251; min-height:34px; padding:0 13px;
  border:1px solid rgba(255,211,107,.36); background:rgba(15,17,19,.94); color:#ffe39a;
  font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.15em; cursor:pointer;
  box-shadow:0 12px 36px rgba(0,0,0,.28); transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.hint-trigger:hover { border-color:rgba(255,222,130,.72); background:rgba(67,53,18,.42); transform:translateY(-1px); }
body.theme-complete .hint-trigger { border-color:rgba(255,197,93,.48); color:#ffe9a9; background:rgba(28,13,31,.94); }

/* Faux Blueprint editor opened from the console. */
.blueprint-popup,.compile-popup {
  position:fixed; inset:0; z-index:420; display:grid; place-items:center; padding:24px;
  background:rgba(0,0,0,.48); opacity:0; pointer-events:none; transition:opacity .16s ease; backdrop-filter:blur(3px);
}
.blueprint-popup.open,.compile-popup.open { opacity:1; pointer-events:auto; }
.blueprint-window { width:min(780px,calc(100vw - 32px)); border:1px solid #3a4653; background:#171a1e; box-shadow:0 28px 100px rgba(0,0,0,.75); font-family:Segoe UI,Arial,sans-serif; }
.blueprint-titlebar { height:34px; display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 13px; background:#252a30; color:#d8dde3; font-size:12px; border-bottom:1px solid #080a0c; }
.blueprint-titlebar button { border:0; background:transparent; color:#aeb7c0; font-size:20px; cursor:pointer; }
.blueprint-toolbar { height:38px; display:flex; align-items:center; gap:18px; padding:0 12px; color:#aeb8c3; font-size:10px; background:#20252a; border-bottom:1px solid #0b0d10; }
.blueprint-toolbar b { color:#efb65b; } .blueprint-toolbar i { margin-left:auto; font-style:normal; color:#747f8a; }
.blueprint-stage { position:relative; height:300px; overflow:hidden; background-color:#10151b; background-image:linear-gradient(rgba(87,112,137,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(87,112,137,.10) 1px,transparent 1px); background-size:16px 16px; }
.bp-wires { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.bp-wire { fill:none; stroke:#e8edf2; stroke-width:3; filter:drop-shadow(0 0 2px rgba(255,255,255,.2)); }
.bp-wire-valid-a,.bp-wire-valid-b { display:none; }
.bp-node { position:absolute; top:93px; width:150px; min-height:106px; border:1px solid #060708; border-radius:5px; background:#17191d; box-shadow:0 8px 18px rgba(0,0,0,.45); color:#e5e8ec; font-size:10px; }
.bp-node-head { height:19px; padding:3px 7px; border-radius:4px 4px 0 0; color:#fff; font-size:8px; font-weight:800; letter-spacing:.07em; }
.bp-node strong { display:block; padding:8px 9px 5px; font-size:13px; }
.bp-node small { display:block; padding:5px 9px; color:#858e98; border-top:1px solid rgba(255,255,255,.05); }
.bp-event { left:74px; } .bp-event .bp-node-head { background:#a51e2c; }
.bp-grant { right:73px; } .bp-grant .bp-node-head { background:#1666a5; }
.bp-valid { display:none; left:calc(50% - 74px); } .bp-valid .bp-node-head { background:#62666b; }
.bp-pin { display:flex; align-items:center; gap:5px; padding:4px 9px; color:#bec7d0; }
.bp-pin.out { justify-content:flex-end; } .bp-pin i { display:inline-block; width:9px; height:9px; border-radius:50%; background:#fff; box-shadow:0 0 0 1px #222; }
.bp-pin.valid i { background:#fff; }
.bp-add-valid { position:absolute; left:50%; top:132px; transform:translate(-50%,-50%); z-index:3; width:30px; height:30px; display:grid; place-items:center; padding:0; border:1px solid #76889b; border-radius:50%; background:#202830; color:#e8f1f8; font:700 18px/1 Segoe UI,sans-serif; cursor:pointer; box-shadow:0 0 0 4px rgba(16,21,27,.78); }
.bp-add-valid span { display:block; line-height:1; transform:translateY(-1px); }
.bp-add-valid:hover,.bp-add-valid:focus-visible { background:#2c83c5; border-color:#74c8ff; }
.bp-add-hint { position:absolute; left:50%; top:160px; transform:translateX(-50%); z-index:3; padding:4px 8px; border:1px solid rgba(126,153,178,.45); border-radius:999px; background:rgba(12,17,23,.86); color:#b7c3cf; font:700 9px/1.2 Consolas,monospace; letter-spacing:.05em; white-space:nowrap; box-shadow:0 10px 24px rgba(0,0,0,.28); pointer-events:none; }
.bp-add-hint b { color:#eef5fb; font-weight:800; }
.blueprint-stage.validated .bp-wire-direct,.blueprint-stage.validated .bp-add-valid,.blueprint-stage.validated .bp-add-hint { display:none; }
.blueprint-stage.validated .bp-wire-valid-a,.blueprint-stage.validated .bp-wire-valid-b,.blueprint-stage.validated .bp-valid { display:block; }
.blueprint-status { padding:7px 12px; color:#d6a85e; background:#1b2025; border-top:1px solid #303840; font:700 9px/1.2 Consolas,monospace; letter-spacing:.05em; }
.blueprint-stage.validated + .blueprint-status { color:#69d39f; }

/* Intentionally cursed shader compilation dialog. */
.compile-window { width:min(520px,calc(100vw - 32px)); display:grid; grid-template-columns:54px 1fr auto; gap:14px 16px; align-items:center; padding:20px; border:1px solid #46525f; background:#20252b; color:#edf2f7; box-shadow:0 30px 100px rgba(0,0,0,.78); font-family:Segoe UI,Arial,sans-serif; }
.compile-icon { grid-row:1 / span 2; width:48px; height:48px; display:grid; place-items:center; border-radius:5px; background:#0a74b8; color:#fff; font-weight:800; font-size:17px; }
.compile-copy strong { display:block; font-size:14px; } .compile-copy small { display:block; margin-top:4px; color:#aeb7c0; font-size:10px; }
.compile-progress { grid-column:2; height:14px; border:1px solid #0a0c0e; background:#101317; overflow:hidden; }
.compile-progress i { display:block; width:0; height:100%; background:linear-gradient(90deg,#0d77bd,#30a0e5); transition:width .2s linear; }
#compile-percent { grid-column:3; grid-row:2; color:#cdd6df; font:700 11px Consolas,monospace; }
#compile-cancel { grid-column:3; grid-row:1; align-self:start; border:1px solid #596673; background:#2c333a; color:#dce3ea; min-width:72px; height:28px; cursor:pointer; }
#compile-cancel:hover { background:#39434c; }

/* Incorrect Lumen settings: soft light and dark splotches breathing at unrelated rates. */
.lumen-artifacts { position:fixed; inset:0; z-index:62; pointer-events:none; overflow:hidden; opacity:0; transition:opacity .35s ease; }
.lumen-artifacts.active { opacity:1; }
.lumen-blob { position:absolute; display:block; border-radius:50%; filter:blur(55px); opacity:0; animation:lumen-breathe var(--lumen-dur,8s) var(--lumen-delay,0s) ease-in-out infinite alternate; }
.lumen-blob.light { background:rgba(171,220,255,.24); mix-blend-mode:lighten; }
.lumen-blob.dark { background:rgba(0,0,0,.46); mix-blend-mode:multiply; }
@keyframes lumen-breathe { 0%{opacity:.04;transform:scale(.72) translate(-5%,4%)} 42%{opacity:.5} 100%{opacity:.14;transform:scale(1.22) translate(7%,-5%)} }

/* Vibe mode: a tiny AI pair-programmer that is visibly busy whether or not it understands the task. */
.vibe-agent { position:fixed; z-index:190; left:24px; top:90px; display:flex; align-items:center; gap:9px; max-width:min(360px,calc(100vw - 48px)); padding:8px 11px; border:1px solid rgba(109,232,255,.0); background:rgba(8,14,22,.0); color:#b5dffb; font:800 9px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; opacity:0; pointer-events:none; transform:translateY(-8px); transition:.22s ease; }
.vibe-agent.active { opacity:1; transform:none; border-color:rgba(109,232,255,.34); background:rgba(8,14,22,.91); animation:vibe-roam 13s ease-in-out infinite alternate; }
.vibe-agent i { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#68e7ff; box-shadow:0 0 12px #68e7ff,0 0 24px rgba(191,76,255,.5); animation:vibe-thinking .7s ease-in-out infinite alternate; }
body.vibe-mode #ambient-canvas { filter:hue-rotate(18deg) saturate(1.22); }
body.vibe-mode::after { content:""; position:fixed; inset:0; z-index:61; pointer-events:none; background:linear-gradient(110deg,transparent 20%,rgba(88,226,255,.025) 42%,rgba(209,82,255,.035) 57%,transparent 76%); background-size:220% 100%; animation:vibe-scan 4s linear infinite; mix-blend-mode:screen; }
@keyframes vibe-thinking { to{transform:scale(1.45);background:#d061ff;} }
@keyframes vibe-scan { to{background-position:-220% 0;} }
@keyframes vibe-roam { 0%{translate:0 0} 35%{translate:8vw 4vh} 68%{translate:2vw 12vh} 100%{translate:13vw 6vh} }

body.wish-granted::before { content:""; position:fixed; inset:0; z-index:60; pointer-events:none; background:radial-gradient(circle at 50% 50%,rgba(112,238,255,.18),rgba(216,77,255,.08) 22%,transparent 58%); animation:wish-pulse 1.1s ease-in-out 3 alternate; mix-blend-mode:screen; }
@keyframes wish-pulse { from{opacity:.2;transform:scale(.92)} to{opacity:1;transform:scale(1.08)} }

@media (max-width:620px) {
  .achievement { right:12px !important; bottom:56px !important; width:calc(100vw - 24px); }
  .hint-trigger { right:12px; bottom:12px; }
  .blueprint-popup,.compile-popup { padding:10px; }
  .blueprint-window { width:100%; }
  .blueprint-toolbar { gap:9px; overflow:hidden; } .blueprint-toolbar i { display:none; }
  .blueprint-stage { height:330px; }
  .bp-event { left:18px; top:56px; } .bp-grant { right:18px; top:208px; } .bp-valid { left:calc(50% - 75px); top:132px; }
  .bp-add-valid { top:164px; }
  .bp-add-hint { top:194px; }
  .bp-wires { display:none; }
  .compile-window { grid-template-columns:44px 1fr; }
  .compile-icon { width:40px; height:40px; }
  #compile-cancel { grid-column:2; grid-row:3; justify-self:end; }
  #compile-percent { grid-column:2; grid-row:2; justify-self:end; }
  .compile-progress { grid-column:2; }
}


/* v2.30 Blueprint wiring, wish branches, and non-interactive communication polish */
/* Project names and status labels communicate information. Only their actual links should behave like controls. */
.consult-project-item:hover { background:transparent !important; }
.consult-project-name,
.project-state,
.meta-row span,
.feature-status span,
.tool-roadmap-copy .card-kicker { pointer-events:none; cursor:default !important; }

/* Execution wires now terminate on the real pin locations calculated by script.js. */
.bp-wires { inset:0; width:100%; height:100%; overflow:visible; }
.bp-pin i { position:relative; z-index:4; }
.bp-wire { stroke:#f1f4f7; stroke-width:3.2; stroke-linecap:round; }
.blueprint-stage.validated .bp-wire-valid-a,
.blueprint-stage.validated .bp-wire-valid-b { display:block; }
@media (max-width:620px) {
  .bp-wires { display:block !important; }
  .bp-wire { stroke-width:2.6; }
}

/* Special wish-result windows. */
.wish-special-popup {
  position:fixed; inset:0; z-index:470; display:grid; place-items:center; padding:24px;
  background:rgba(0,0,0,.56); opacity:0; pointer-events:none; transition:opacity .18s ease; backdrop-filter:blur(4px);
}
.wish-special-popup.open { opacity:1; pointer-events:auto; }
.wish-special-window {
  position:relative; width:min(560px,calc(100vw - 32px)); padding:28px;
  border:1px solid rgba(88,166,255,.38); background:linear-gradient(145deg,#121a24,#0a0f16 72%);
  color:#e9f2fb; box-shadow:0 28px 100px rgba(0,0,0,.78),0 0 50px rgba(0,112,224,.09);
}
.wish-special-kicker { display:block; color:#67b8ff; font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.16em; }
.wish-special-window h3 { margin:10px 0 8px; font-size:28px; }
.wish-special-window p { margin:0; color:#9fb0c2; line-height:1.55; }
.wish-special-close { position:absolute; top:10px; right:10px; width:30px; height:30px; border:0; background:transparent; color:#92a3b4; font-size:22px; cursor:pointer; }
.wish-contact-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:22px; }
.wish-contact-actions a { display:grid; place-items:center; min-height:44px; border:1px solid rgba(80,164,241,.38); background:rgba(0,112,224,.08); color:#dceeff; text-decoration:none; font:800 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; text-transform:uppercase; transition:.16s ease; }
.wish-contact-actions a:hover { border-color:#58a6ff; background:rgba(0,112,224,.18); transform:translateY(-1px); }

.blender-window { width:min(650px,calc(100vw - 32px)); }
.blender-window #blender-title { white-space:nowrap; font-size:clamp(20px,3.2vw,28px); }
.blender-progress { height:16px; margin-top:20px; border:1px solid #050709; background:#080b0f; overflow:hidden; }
.blender-progress i { display:block; width:0; height:100%; background:linear-gradient(90deg,#ea7600,#ffb15a); transition:width .055s linear; }
#blender-percent { display:block; margin-top:8px; color:#f4b36d; font:800 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
#blender-ok { display:block; min-width:86px; height:34px; margin:20px 0 0 auto; border:1px solid #4f5d69; background:#242b32; color:#77828d; cursor:not-allowed; }
#blender-ok.ready { color:#fff; border-color:#e78528; background:#a94e00; cursor:pointer; }
#blender-ok.ready:hover { background:#c96000; }

/* HAL 9000 would like a word. */
.hal-overlay { position:fixed; inset:0; z-index:465; display:grid; place-items:center; pointer-events:none; background:rgba(0,0,0,.72); opacity:0; transition:opacity .65s ease; }
.hal-overlay.show { animation:hal-visit 3s ease-in-out both; }
.hal-eye { position:relative; width:180px; height:180px; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle,#090909 0 46%,#1d1d1d 47% 59%,#060606 60% 100%); box-shadow:0 0 0 12px #141414,0 0 0 13px #343434,0 30px 100px rgba(0,0,0,.9); }
.hal-eye::before { content:""; width:92px; height:92px; border-radius:50%; background:radial-gradient(circle at 43% 38%,#fff 0 2%,#ffbf72 3% 7%,#ff2c14 8% 34%,#8e0500 46%,#210000 66%,#050000 100%); box-shadow:0 0 22px rgba(255,30,0,.95),0 0 64px rgba(255,0,0,.55); }
.hal-eye i { position:absolute; width:150px; height:150px; border-radius:50%; border:1px solid rgba(255,255,255,.07); }
@keyframes hal-visit { 0%{opacity:0} 24%{opacity:1} 70%{opacity:1} 100%{opacity:0} }

@media (max-width:620px) {
  .wish-special-popup { padding:10px; }
  .wish-contact-actions { grid-template-columns:1fr; }
  .hal-eye { width:130px; height:130px; }
  .hal-eye::before { width:66px; height:66px; }
}

/* Neutralize the legacy hover treatment on consulting labels. Steam links remain interactive. */
.consult-title-grid span:hover { background:transparent !important; color:inherit !important; border-color:inherit !important; }
.consult-title-grid .project-state:hover { border-color:var(--line) !important; }


/* v2.31 usability, input fallback, castle loop, and Legendary rarity pass */
/* A tiny warning only appears when WebGL is absent or the renderer clearly reports software rendering. */
.hardware-warning {
  position:sticky; top:var(--header); z-index:119; display:none; align-items:center; justify-content:center; gap:12px;
  min-height:34px; padding:7px max(42px,calc((100vw - var(--max))/2));
  border-bottom:1px solid rgba(255,184,71,.26); background:rgba(45,31,10,.96); color:#e7d4a9;
  font:700 9px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.025em; text-align:center;
}
.hardware-warning.show { display:flex; }
.hardware-warning b { color:#ffd477; }
.hardware-warning a { color:#fff0ba; }
.hardware-warning button { position:absolute; right:max(12px,calc((100vw - var(--max))/2)); top:50%; translate:0 -50%; width:26px; height:26px; border:0; background:transparent; color:#c4ad7b; cursor:pointer; font-size:18px; }

/* Doug is for petting, not filing paperwork. */
.doug-secret { cursor:grab !important; }
.doug-secret:active { cursor:grabbing !important; }

/* Discovery controls share a dock so Legendary mode can sit directly beside Signals. */
.discovery-controls { position:fixed; left:18px; bottom:18px; z-index:245; display:flex; align-items:center; gap:7px; pointer-events:none; }
.discovery-controls > button { pointer-events:auto; }
.ledger-trigger { position:static !important; left:auto !important; bottom:auto !important; }
.legendary-trigger {
  display:none; align-items:center; min-height:34px; padding:0 11px; border:1px solid rgba(255,190,55,.38);
  background:rgba(25,17,7,.94); color:#f3cd75; font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em; cursor:pointer; box-shadow:0 12px 36px rgba(0,0,0,.28);
}
.legendary-trigger.visible { display:inline-flex; }
.legendary-trigger[aria-pressed="true"] { border-color:rgba(255,205,82,.76); color:#fff3bd; background:linear-gradient(90deg,rgba(122,72,8,.45),rgba(61,39,8,.82)); box-shadow:0 0 24px rgba(255,182,35,.14),0 12px 36px rgba(0,0,0,.32); }
.ledger-console-tip { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.ledger-console-tip button { min-width:24px; height:22px; padding:0 6px; border:1px solid rgba(118,157,196,.35); border-bottom-width:2px; border-radius:3px; background:#101a24; color:#dcecff; font:800 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; cursor:pointer; }
.ledger-console-tip button:hover { border-color:var(--accent-bright); background:rgba(0,112,224,.10); }

/* Non-star sprites keep their readable upright orientation while their positions follow the flight path. */
.game-pickup, .doug-bone, .galaga-secret { transform:none; }
@keyframes pickup-flight {
  from { transform:translate3d(0,0,0) scale(.82); opacity:0; }
  8% { opacity:1; }
  46% { transform:translate3d(calc(var(--dx) * .46),calc(var(--dy) * .46 - 18px),0) scale(1); }
  90% { opacity:1; }
  to { transform:translate3d(var(--dx),var(--dy),0) scale(.88); opacity:0; }
}
@keyframes galaga-flight {
  from { transform:translate3d(0,0,0); opacity:0; }
  6% { opacity:1; }
  34% { transform:translate3d(calc(var(--dx) * .34),calc(var(--dy) * .34 - 28px),0); }
  67% { transform:translate3d(calc(var(--dx) * .67),calc(var(--dy) * .67 + 20px),0); }
  92% { opacity:1; }
  to { transform:translate3d(var(--dx),var(--dy),0); opacity:0; }
}

/* Each key unlocks one castle check along a section boundary. */
.section { position:relative; }
.section-castle {
  position:absolute; z-index:24; top:-23px; width:46px; height:42px; margin-left:-23px; padding:3px;
  border:0; background:transparent; color:#9dd7ff; cursor:pointer; filter:drop-shadow(0 0 7px rgba(47,147,255,.42));
  animation:castle-arrive .38s ease-out both;
}
.section-castle::before { content:""; position:absolute; left:-32px; right:-32px; top:23px; height:1px; z-index:-1; background:linear-gradient(90deg,transparent,var(--line),var(--line),transparent); }
.section-castle svg { width:100%; height:100%; overflow:visible; fill:#173c61; stroke:#8fd6ff; stroke-width:2; vector-effect:non-scaling-stroke; transition:transform .15s ease,filter .15s ease; }
.section-castle:hover svg { transform:translateY(-3px) scale(1.08); filter:drop-shadow(0 0 8px rgba(111,220,255,.66)); }
body.theme-complete .section-castle { color:#e48bff; filter:drop-shadow(0 0 8px rgba(231,89,255,.44)); }
body.theme-complete .section-castle svg { fill:#421d58; stroke:#f3a3ff; }
body.theme-legendary .section-castle { filter:drop-shadow(0 0 9px rgba(255,190,45,.56)); }
body.theme-legendary .section-castle svg { fill:#69400a; stroke:#ffe39a; }
@keyframes castle-arrive { from{opacity:0;transform:translateY(7px) scale(.72)} to{opacity:1;transform:none} }

/* Legendary rarity tier. Completion mode remains underneath it, gold wins visually. */
body.theme-complete.theme-legendary {
  --bg:#0d0a05; --bg-deep:#080603; --bg-2:#171006;
  --panel:rgba(35,25,10,.94); --panel-2:rgba(45,31,11,.94); --panel-3:rgba(20,14,6,.96);
  --line:rgba(255,214,119,.14); --line-strong:rgba(255,220,135,.27); --line-blue:rgba(224,164,44,.48);
  --text:#fffaf0; --muted:#c9b88f; --muted-2:#8f7d58; --warning:#ffd166;
  --accent:#c78512; --accent-bright:#ffc63d; --accent-2:#ffe49a; --accent-soft:rgba(218,151,25,.13);
  background:radial-gradient(circle at 14% 0%,rgba(255,180,35,.15),transparent 34rem),radial-gradient(circle at 86% 24%,rgba(121,73,8,.10),transparent 42rem),linear-gradient(180deg,rgba(255,223,142,.018),transparent 260px),#0c0a06;
}
body.theme-complete.theme-legendary .site-header { background:rgba(17,13,7,.91) !important; border-bottom-color:rgba(255,192,55,.18); box-shadow:0 1px 0 rgba(255,222,132,.08),inset 0 -1px 0 rgba(255,173,32,.13); }
body.theme-complete.theme-legendary .brand-mark { border-color:rgba(255,197,61,.52); background:linear-gradient(180deg,rgba(213,143,20,.20),rgba(103,60,7,.08)),#18130b; box-shadow:inset 0 0 22px rgba(255,181,34,.11),0 0 20px rgba(255,178,28,.06); }
body.theme-complete.theme-legendary .brand-logo { filter:sepia(1) saturate(6) hue-rotate(350deg) brightness(1.24) contrast(1.02); }
body.theme-complete.theme-legendary .hero { background:linear-gradient(180deg,#100d08,#090806); border-bottom-color:rgba(255,190,50,.16); }
body.theme-complete.theme-legendary .hero::after { background:linear-gradient(to right,rgba(14,11,6,.91) 0%,rgba(14,11,6,.34) 47%,rgba(14,11,6,.50) 100%),linear-gradient(to bottom,transparent 60%,rgba(11,9,5,.95) 100%); }
body.theme-complete.theme-legendary .hero h1,
body.theme-complete.theme-legendary .section-heading h2,
body.theme-complete.theme-legendary .career-primary h3,
body.theme-complete.theme-legendary .career-direction strong,
body.theme-complete.theme-legendary .career-nda h3,
body.theme-complete.theme-legendary .tool-feature-copy h3,
body.theme-complete.theme-legendary .consult-card h3,
body.theme-complete.theme-legendary .resource-card h3,
body.theme-complete.theme-legendary .games-tools-callout h3,
body.theme-complete.theme-legendary .studio-card strong,
body.theme-complete.theme-legendary .ledger-head h3,
body.theme-complete.theme-legendary .about-years .big-number {
  background:linear-gradient(105deg,#fffdf5 0%,#fff1bd 25%,#ffd86a 52%,#edae2b 75%,#fff5d2 100%) !important;
  -webkit-background-clip:text !important; background-clip:text !important; color:transparent !important; text-shadow:0 0 30px rgba(255,177,38,.10);
}
body.theme-complete.theme-legendary .eyebrow, body.theme-complete.theme-legendary .card-kicker, body.theme-complete.theme-legendary .tool-wip-note, body.theme-complete.theme-legendary .about-scene-label, body.theme-complete.theme-legendary .achievement-topline span { color:#ffc94d !important; }
body.theme-complete.theme-legendary a:not(.button):not(.tool-main-link):not(.project-steam-link) { color:#e9b83f; }
body.theme-complete.theme-legendary .tool-card, body.theme-complete.theme-legendary .resume-card, body.theme-complete.theme-legendary .feature-card, body.theme-complete.theme-legendary .tool-feature, body.theme-complete.theme-legendary .resource-card, body.theme-complete.theme-legendary .consult-project-row, body.theme-complete.theme-legendary .career-primary, body.theme-complete.theme-legendary .career-direction, body.theme-complete.theme-legendary .career-nda, body.theme-complete.theme-legendary .about-panel, body.theme-complete.theme-legendary .doug-card, body.theme-complete.theme-legendary .games-tools-callout { border-color:rgba(255,194,61,.28) !important; box-shadow:inset 0 0 0 1px rgba(255,218,128,.02),0 0 30px rgba(255,177,35,.025); }
body.theme-complete.theme-legendary .tool-card:hover, body.theme-complete.theme-legendary .resume-card:hover, body.theme-complete.theme-legendary .feature-card:hover, body.theme-complete.theme-legendary .tool-feature:hover, body.theme-complete.theme-legendary .resource-card:hover, body.theme-complete.theme-legendary .consult-project-row:hover, body.theme-complete.theme-legendary .studio-card:hover, body.theme-complete.theme-legendary .about-links a:hover, body.theme-complete.theme-legendary .doug-card:hover { border-color:rgba(255,213,112,.62) !important; box-shadow:0 14px 46px rgba(255,180,35,.08),inset 0 0 0 1px rgba(255,226,143,.04); }
body.theme-complete.theme-legendary .button.primary { background:linear-gradient(180deg,#d59b24,#9e6509); border-color:#f2bd4f; color:#1a1104; }
body.theme-complete.theme-legendary .button.ghost:hover, body.theme-complete.theme-legendary .tool-action.secondary:hover, body.theme-complete.theme-legendary .tag:hover { border-color:rgba(255,205,87,.52) !important; box-shadow:0 0 18px rgba(255,181,31,.09); }
body.theme-complete.theme-legendary .ledger-trigger { border-color:rgba(255,198,70,.58); background:linear-gradient(90deg,rgba(135,82,9,.25),rgba(255,191,50,.06)),rgba(18,13,7,.95); }
body.theme-complete.theme-legendary .ledger-entry.unlocked { border-color:rgba(255,199,72,.26); background:linear-gradient(90deg,rgba(164,101,11,.10),rgba(255,220,125,.025)); box-shadow:inset 2px 0 0 rgba(255,190,48,.48); }
body.theme-complete.theme-legendary .ledger-entry.unlocked .num, body.theme-complete.theme-legendary .ledger-trigger b, body.theme-complete.theme-legendary .achievement-topline b { color:#ffd86a !important; }
body.theme-complete.theme-legendary .completion-cursor-aura { border-color:rgba(255,214,104,.36); box-shadow:0 0 30px rgba(255,182,32,.20),inset 0 0 20px rgba(255,222,125,.07); }
body.theme-complete.theme-legendary .game-pickup-icon, body.theme-complete.theme-legendary .doug-bone-icon { filter:sepia(.45) saturate(1.65) drop-shadow(0 0 10px rgba(255,194,62,.42)); }
body.theme-complete.theme-legendary #about-canvas, body.theme-complete.theme-legendary #ambient-canvas { filter:sepia(.15) saturate(1.18) contrast(1.04); }
body.theme-complete.theme-legendary .achievement { border-color:rgba(255,195,60,.50); background:linear-gradient(145deg,rgba(45,30,7,.97),rgba(15,12,7,.98)); box-shadow:0 20px 64px rgba(0,0,0,.52),0 0 32px rgba(255,182,34,.08); }

body.theme-complete.theme-legendary .achievement-ledger {
  background:
    radial-gradient(circle at 90% 0%,rgba(255,211,110,.10),transparent 18rem),
    radial-gradient(circle at 10% 100%,rgba(173,104,12,.11),transparent 18rem),
    linear-gradient(145deg,rgba(42,29,8,.98),rgba(14,10,5,.98));
  border-color:rgba(255,197,61,.58);
  box-shadow:0 24px 72px rgba(0,0,0,.58),0 0 34px rgba(255,183,35,.07);
}
body.theme-complete.theme-legendary .dev-console {
  background:linear-gradient(180deg,rgba(28,19,7,.985),rgba(10,8,5,.99));
  border-color:rgba(255,197,61,.45);
  box-shadow:0 24px 72px rgba(0,0,0,.60),0 0 32px rgba(255,184,39,.06);
}
body.theme-complete.theme-legendary .scene-guide { border-color:rgba(255,204,88,.48); color:#e9c56b; }
body.theme-complete.theme-legendary .scene-readout { color:#ffe6a2; }
body.theme-complete.theme-legendary .filter.active { background:rgba(112,70,8,.42); border-color:rgba(255,202,82,.55); color:#ffeab0; }
body.theme-complete.theme-legendary .hardware-warning { border-bottom-color:rgba(255,196,59,.30); background:linear-gradient(90deg,rgba(72,45,7,.97),rgba(27,20,9,.98)); }


@media (max-width:620px) {
  .hardware-warning { top:var(--header); padding:8px 44px 8px 12px; justify-content:flex-start; text-align:left; flex-wrap:wrap; }
  .hardware-warning a { width:100%; }
  .discovery-controls { left:12px; bottom:12px; max-width:calc(100vw - 24px); flex-wrap:wrap; }
  .achievement-ledger { bottom:96px; }
  .legendary-trigger { font-size:7px; }
}

/* v2.32 Legendary palette cleanup, key-gated castle loop, and SLOWMO lifetime fix */
/* Legendary is intentionally warmer than Completion: gold + amber + orange lead,
   with teal/cyan as the cool complementary signal color. No violet should leak through. */
body.theme-complete.theme-legendary {
  --bg:#0e0904;
  --bg-deep:#080502;
  --bg-2:#1a0f05;
  --panel:rgba(39,23,8,.95);
  --panel-2:rgba(49,29,9,.95);
  --panel-3:rgba(22,13,5,.97);
  --line:rgba(255,194,91,.17);
  --line-strong:rgba(255,211,126,.31);
  --line-blue:rgba(56,210,207,.42);
  --text:#fff8e8;
  --muted:#d9c39d;
  --muted-2:#9f8562;
  --accent:#f59b23;
  --accent-bright:#ffd166;
  --accent-soft:rgba(245,155,35,.17);
  --accent-2:#42d8d4;
  --warning:#ffbb3f;
  --hot-pink:#ff7a1a;
  background:
    radial-gradient(circle at 13% 0%,rgba(255,123,24,.20),transparent 34rem),
    radial-gradient(circle at 89% 22%,rgba(60,215,211,.10),transparent 32rem),
    radial-gradient(circle at 52% 72%,rgba(255,191,54,.055),transparent 30rem),
    linear-gradient(180deg,rgba(255,255,255,.015),transparent 260px),
    var(--bg) !important;
}
body.theme-complete.theme-legendary::before {
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,226,168,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,139,28,.020) 1px,transparent 1px) !important;
}

body.theme-complete.theme-legendary .site-header {
  background:rgba(18,11,5,.92) !important;
  border-bottom-color:rgba(255,175,55,.24) !important;
  box-shadow:0 1px 0 rgba(255,213,127,.09),0 0 48px rgba(255,118,19,.055),inset 0 -1px 0 rgba(46,210,207,.07) !important;
}
body.theme-complete.theme-legendary .brand-mark,
body.theme-complete.theme-legendary .filter.active {
  background:linear-gradient(135deg,rgba(255,132,25,.26),rgba(54,213,209,.12)),#1b1006 !important;
  border-color:rgba(255,190,75,.58) !important;
  box-shadow:inset 0 0 22px rgba(255,126,22,.13),0 0 22px rgba(55,214,211,.055) !important;
}
body.theme-complete.theme-legendary .brand-logo {
  filter:sepia(1) saturate(5.4) hue-rotate(344deg) brightness(1.20) contrast(1.06) !important;
}
body.theme-complete.theme-legendary .hero {
  background:
    radial-gradient(circle at 76% 45%,rgba(255,116,20,.13),transparent 25rem),
    radial-gradient(circle at 62% 58%,rgba(49,211,207,.075),transparent 22rem),
    linear-gradient(180deg,#120b05,#090603) !important;
  border-bottom-color:rgba(255,178,49,.18) !important;
}
body.theme-complete.theme-legendary .hero::after {
  background:linear-gradient(to right,rgba(15,9,4,.93) 0%,rgba(15,9,4,.35) 47%,rgba(15,9,4,.53) 100%),linear-gradient(to bottom,transparent 60%,rgba(10,6,3,.96) 100%) !important;
}

/* Typography gets a warmer legendary gradient with a restrained teal glint. */
body.theme-complete.theme-legendary .hero h1,
body.theme-complete.theme-legendary .section-heading h2,
body.theme-complete.theme-legendary .about-head h2,
body.theme-complete.theme-legendary .career-primary h3,
body.theme-complete.theme-legendary .career-direction strong,
body.theme-complete.theme-legendary .career-nda h3,
body.theme-complete.theme-legendary .tool-feature-copy h3,
body.theme-complete.theme-legendary .consult-card h3,
body.theme-complete.theme-legendary .resource-card h3,
body.theme-complete.theme-legendary .games-tools-callout h3,
body.theme-complete.theme-legendary .studio-card strong,
body.theme-complete.theme-legendary .ledger-head h3,
body.theme-complete.theme-legendary .about-years strong,
body.theme-complete.theme-legendary .about-years .big-number {
  background:linear-gradient(105deg,#fff9e7 0%,#ffe49a 28%,#ffc13d 52%,#ff7a1a 76%,#57dfdb 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  text-shadow:0 0 30px rgba(255,129,25,.10) !important;
}
body.theme-complete.theme-legendary .eyebrow,
body.theme-complete.theme-legendary .card-kicker,
body.theme-complete.theme-legendary .mini-label,
body.theme-complete.theme-legendary .tool-wip-note,
body.theme-complete.theme-legendary .about-scene-label,
body.theme-complete.theme-legendary .achievement-topline span { color:#ffad36 !important; }
body.theme-complete.theme-legendary .scene-readout,
body.theme-complete.theme-legendary .tool-action.primary,
body.theme-complete.theme-legendary .project-steam-link,
body.theme-complete.theme-legendary .azure-gallery-hint { color:#6be8e4 !important; }
body.theme-complete.theme-legendary a:not(.button):not(.tool-main-link):not(.project-steam-link) { color:#e9bd52 !important; }
body.theme-complete.theme-legendary .site-nav a:hover,
body.theme-complete.theme-legendary .text-action:hover,
body.theme-complete.theme-legendary .site-footer a:hover,
body.theme-complete.theme-legendary .about-links a:hover { color:#55ddd9 !important; }
body.theme-complete.theme-legendary .about-years > span:last-child,
body.theme-complete.theme-legendary .footer-line { color:#d9c39d !important; }
body.theme-complete.theme-legendary ::selection,
body.theme-complete.theme-legendary .card-kicker::selection { background:rgba(255,125,24,.48) !important; color:#fff !important; }

/* Surfaces: orange/gold light, teal technical accent. */
body.theme-complete.theme-legendary .tool-card,
body.theme-complete.theme-legendary .resume-card,
body.theme-complete.theme-legendary .feature-card {
  background:linear-gradient(180deg,rgba(255,131,24,.035),rgba(48,210,206,.013)),var(--panel-3) !important;
}
body.theme-complete.theme-legendary .panel,
body.theme-complete.theme-legendary .feature-card,
body.theme-complete.theme-legendary .tool-card,
body.theme-complete.theme-legendary .resume-card,
body.theme-complete.theme-legendary .about-grid,
body.theme-complete.theme-legendary .consult-grid,
body.theme-complete.theme-legendary .studio-wall,
body.theme-complete.theme-legendary .tool-feature-visual,
body.theme-complete.theme-legendary .azure-gallery-shell {
  border-color:rgba(255,184,68,.22) !important;
}
body.theme-complete.theme-legendary .tool-card:hover,
body.theme-complete.theme-legendary .resume-card:hover,
body.theme-complete.theme-legendary .feature-card:hover,
body.theme-complete.theme-legendary .tool-feature:hover,
body.theme-complete.theme-legendary .resource-card:hover,
body.theme-complete.theme-legendary .consult-project-row:hover,
body.theme-complete.theme-legendary .studio-card:hover,
body.theme-complete.theme-legendary .about-links a:hover,
body.theme-complete.theme-legendary .doug-card:hover {
  border-color:rgba(255,185,67,.62) !important;
  box-shadow:0 14px 46px rgba(255,112,18,.085),inset 0 0 0 1px rgba(66,216,212,.035) !important;
}
body.theme-complete.theme-legendary .games-tools-callout:hover {
  background:linear-gradient(135deg,rgba(255,121,21,.095),rgba(55,213,209,.032)) !important;
}
body.theme-complete.theme-legendary .tag,
body.theme-complete.theme-legendary .project-state,
body.theme-complete.theme-legendary .tool-action.secondary {
  border-color:rgba(255,176,57,.28) !important;
  background:rgba(255,126,20,.045) !important;
}
body.theme-complete.theme-legendary .project-state { color:#62ddd9 !important; }
body.theme-complete.theme-legendary .tool-action.primary,
body.theme-complete.theme-legendary .project-steam-link { border-color:rgba(66,216,212,.46) !important; }
body.theme-complete.theme-legendary .button.primary {
  background:linear-gradient(180deg,#f2a62c,#c96c0e) !important;
  border-color:#ffc45e !important;
  color:#1b0f03 !important;
}
body.theme-complete.theme-legendary .button.ghost:hover,
body.theme-complete.theme-legendary .tool-action.secondary:hover,
body.theme-complete.theme-legendary .tag:hover,
body.theme-complete.theme-legendary .tool-action.primary:hover,
body.theme-complete.theme-legendary .project-steam-link:hover,
body.theme-complete.theme-legendary .resource-actions a:hover,
body.theme-complete.theme-legendary .button:hover {
  border-color:rgba(65,220,216,.58) !important;
  box-shadow:0 0 18px rgba(54,211,208,.09) !important;
}
body.theme-complete.theme-legendary .intro-strip > div:nth-child(even)::before { background-color:rgba(255,132,23,.03) !important; }

/* Legendary image treatment: warm bronze/orange body with cool teal highlights. */
body.theme-complete.theme-legendary .studio-card { background:#ff7418 !important; }
body.theme-complete.theme-legendary .studio-card .studio-image {
  -webkit-filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  mix-blend-mode:multiply !important;
}
body.theme-complete.theme-legendary .studio-card::after {
  background:#087f84 !important;
  opacity:.68 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete.theme-legendary .studio-card:hover::after {
  background:linear-gradient(135deg,rgba(5,126,132,.96),rgba(255,117,24,.38)) !important;
  opacity:.78 !important;
}
body.theme-complete.theme-legendary .studio-card:hover .studio-image {
  -webkit-filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
  filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
}
body.theme-complete.theme-legendary .studio-card strong { text-shadow:0 0 20px rgba(255,131,24,.13) !important; }

body.theme-complete.theme-legendary .azure-altar .tool-feature-visual { background:#ff7418 !important; }
body.theme-complete.theme-legendary .azure-altar .tool-feature-visual::before {
  -webkit-filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  mix-blend-mode:multiply !important;
}
body.theme-complete.theme-legendary .azure-altar .tool-feature-visual::after {
  background:#087f84 !important;
  opacity:.68 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete.theme-legendary .azure-altar:hover .tool-feature-visual::after {
  background:linear-gradient(135deg,rgba(5,126,132,.96),rgba(255,117,24,.38)) !important;
  opacity:.78 !important;
}
body.theme-complete.theme-legendary .azure-altar:hover .tool-feature-visual::before {
  -webkit-filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
  filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
}

body.theme-complete.theme-legendary .unmark-visual { background:#ff7418 !important; }
body.theme-complete.theme-legendary .unmark-lockup,
body.theme-complete.theme-legendary .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.95) !important;
  filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.95) !important;
  mix-blend-mode:multiply !important;
}
body.theme-complete.theme-legendary .unmark-visual::after {
  background:#087f84 !important;
  opacity:.68 !important;
  mix-blend-mode:lighten !important;
}
body.theme-complete.theme-legendary .unmark-feature:hover .unmark-visual::after,
body.theme-complete.theme-legendary .tool-feature:hover .tool-feature-visual::after {
  background:linear-gradient(135deg,rgba(5,126,132,.96),rgba(255,117,24,.38)) !important;
  opacity:.78 !important;
}
body.theme-complete.theme-legendary .unmark-feature:hover .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.02) !important;
  filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.02) !important;
}
body.theme-complete.theme-legendary .doug-photo {
  filter:sepia(.14) saturate(1.10) hue-rotate(346deg) contrast(1.025);
  box-shadow:0 0 0 1px rgba(255,184,65,.22),0 0 34px rgba(255,121,18,.09),0 0 26px rgba(55,211,208,.035) !important;
}

/* Ledger, toast, console and utility UI. */
body.theme-complete.theme-legendary .achievement,
body.theme-complete.theme-legendary .achievement-ledger,
body.theme-complete.theme-legendary .dev-console {
  border-color:rgba(255,183,61,.52) !important;
  box-shadow:0 24px 80px rgba(57,28,4,.46),0 0 40px rgba(255,123,21,.075) !important;
}
body.theme-complete.theme-legendary .achievement-ledger {
  background:
    radial-gradient(circle at 90% 0%,rgba(57,217,213,.085),transparent 18rem),
    radial-gradient(circle at 10% 100%,rgba(255,125,24,.115),transparent 18rem),
    linear-gradient(145deg,rgba(48,27,7,.985),rgba(14,9,4,.985)) !important;
}
body.theme-complete.theme-legendary .ledger-head { border-bottom-color:rgba(255,186,65,.24) !important; }
body.theme-complete.theme-legendary .ledger-entry { border-color:rgba(255,194,86,.10) !important; background:rgba(255,255,255,.014) !important; }
body.theme-complete.theme-legendary .ledger-entry.unlocked {
  border-color:rgba(61,218,214,.27) !important;
  background:linear-gradient(90deg,rgba(255,130,20,.085),rgba(55,214,210,.032)) !important;
  box-shadow:inset 2px 0 0 rgba(255,163,40,.48) !important;
}
body.theme-complete.theme-legendary .ledger-entry.unlocked .num,
body.theme-complete.theme-legendary .ledger-trigger b,
body.theme-complete.theme-legendary .achievement-topline b { color:#ffd064 !important; }
body.theme-complete.theme-legendary .ledger-entry.unlocked strong,
body.theme-complete.theme-legendary .achievement span { color:#ffbd54 !important; }
body.theme-complete.theme-legendary .ledger-controls button.active {
  border-color:rgba(55,216,212,.58) !important;
  background:rgba(38,175,173,.10) !important;
}
body.theme-complete.theme-legendary .ledger-trigger {
  border-color:rgba(255,180,52,.58) !important;
  background:linear-gradient(90deg,rgba(156,77,7,.25),rgba(48,206,203,.055)),rgba(19,11,5,.96) !important;
}
body.theme-complete.theme-legendary .legendary-trigger[aria-pressed="true"] {
  border-color:rgba(255,190,68,.76);
  color:#fff0b5;
  background:linear-gradient(90deg,rgba(166,79,8,.50),rgba(117,54,5,.68),rgba(10,75,77,.24));
  box-shadow:0 0 24px rgba(255,120,18,.12),0 12px 36px rgba(0,0,0,.32);
}
body.theme-complete.theme-legendary .inspect-tooltip {
  border-color:rgba(54,216,212,.50) !important;
  color:#d9fffd !important;
  box-shadow:0 18px 52px rgba(22,10,2,.62),0 0 32px rgba(47,205,202,.10) !important;
}
body.theme-complete.theme-legendary .completion-cursor-aura {
  border-color:rgba(255,185,65,.36) !important;
  box-shadow:0 0 30px rgba(255,121,22,.18),inset 0 0 20px rgba(65,219,215,.055) !important;
}
body.theme-complete.theme-legendary .console-progress > i { background:linear-gradient(90deg,#ff7a1a,#ffc43f,#46d9d5) !important; }
body.theme-complete.theme-legendary .scene-guide { border-color:rgba(56,215,211,.42) !important; color:#68e5e1 !important; }
body.theme-complete.theme-legendary .hardware-warning { border-bottom-color:rgba(255,174,50,.30) !important; background:linear-gradient(90deg,rgba(78,34,4,.97),rgba(25,18,7,.98),rgba(5,58,61,.95)) !important; }
body.theme-complete.theme-legendary .ledger-console-tip button { border-color:rgba(55,213,210,.35); background:#0c2424; color:#d9fffd; }
body.theme-complete.theme-legendary .ledger-console-tip button:hover { border-color:#54dfdb; background:rgba(49,204,201,.10); }

/* Completion sprites use gold/orange bodies and teal/cyan support colors in Legendary. */
body.theme-complete.theme-legendary .game-pickup-icon,
body.theme-complete.theme-legendary .doug-bone-icon {
  filter:drop-shadow(0 0 9px rgba(255,153,37,.34)) drop-shadow(0 0 14px rgba(58,216,212,.14)) !important;
}
body.theme-complete.theme-legendary .game-pickup:hover .game-pickup-icon {
  filter:drop-shadow(0 0 10px rgba(255,142,27,.42)) drop-shadow(0 0 18px rgba(59,219,215,.25)) !important;
}
body.theme-complete.theme-legendary .game-pickup[data-kind="heart"] .pickup-fill { fill:#ff7b35 !important; stroke:#ffd4a3 !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="star"] .pickup-fill { fill:#ffd24f !important; stroke:#fff0ad !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="rupee"] .pickup-fill { fill:#24bdbb !important; stroke:#9ff4ef !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="rupee"] .pickup-line { stroke:#d8fffc !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="1up"] .pickup-cap { fill:#2bc8ac !important; stroke:#c4fff2 !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="key"] .pickup-key-ring,
body.theme-complete.theme-legendary .game-pickup[data-kind="key"] .pickup-key-body { fill:#ffc43f !important; stroke:#fff0a6 !important; }
body.theme-complete.theme-legendary .game-pickup[data-kind="key"] .pickup-key-hole { fill:#342008 !important; }
body.theme-complete.theme-legendary .doug-bone-icon g { fill:#ffd78a !important; stroke:#48d7d3 !important; }
body.theme-complete.theme-legendary .doug-paw { color:#ffc752; text-shadow:0 0 15px rgba(255,132,22,.34),0 0 24px rgba(55,215,211,.12) !important; }
body.theme-complete.theme-legendary .doug-paw:nth-of-type(even) { color:#48d9d5 !important; }

body.theme-complete.theme-legendary .shooting-star::before {
  box-shadow:0 0 12px #fff,0 0 26px #53dfdc,0 0 38px #ff8c24 !important;
}
body.theme-complete.theme-legendary .shooting-star::after {
  background:linear-gradient(90deg,transparent,rgba(255,119,22,.30),rgba(67,220,216,.70),#fff1b2) !important;
}
body.theme-complete.theme-legendary .galaga-secret {
  filter:drop-shadow(0 0 8px rgba(62,221,217,.38)) !important;
}
body.theme-complete.theme-legendary .galaga-secret::before {
  background:#ff8b25 !important;
  box-shadow:-9px 7px 0 #43d9d5,9px 7px 0 #43d9d5,-15px 14px 0 #ffc53f,15px 14px 0 #ffc53f,-4px 15px 0 #fff0bd,4px 15px 0 #fff0bd !important;
}
body.theme-complete.theme-legendary .ambient-secret {
  border-color:rgba(66,220,216,.68) !important;
  background:rgba(32,183,181,.12) !important;
  box-shadow:0 0 24px rgba(57,211,208,.24),inset 0 0 12px rgba(255,157,41,.08) !important;
}
body.theme-complete.theme-legendary .ambient-secret::after { border-color:rgba(136,243,239,.78) !important; }
body.theme-complete.theme-legendary .azure-gallery-thumb.active { border-color:#ff9a2d !important; }
body.theme-complete.theme-legendary #about-canvas,
body.theme-complete.theme-legendary #ambient-canvas { filter:saturate(1.15) contrast(1.055) sepia(.06) !important; }

/* One key, one castle. The next castle waits for the next key pickup. */
body.theme-complete.theme-legendary .section-castle { filter:drop-shadow(0 0 9px rgba(255,134,25,.48)) !important; }
body.theme-complete.theme-legendary .section-castle svg { fill:#6f3708 !important; stroke:#52dcd8 !important; }
body.theme-complete.theme-legendary .section-castle:hover svg { filter:drop-shadow(0 0 9px rgba(71,221,217,.58)) !important; }

/* Any remaining standard-theme blue accents become teal/cyan in Legendary instead of fighting the warm palette. */
body.theme-complete.theme-legendary .career-timeline-list time,
body.theme-complete.theme-legendary .credit-line span,
body.theme-complete.theme-legendary .tool-card.wireframe::before,
body.theme-complete.theme-legendary .tool-wip-note { color:#52dcd8 !important; }
body.theme-complete.theme-legendary .consult-title-grid .project-steam-link,
body.theme-complete.theme-legendary .resource-actions a.primary,
body.theme-complete.theme-legendary .epic-learning-mark,
body.theme-complete.theme-legendary .nda-logo-slot,
body.theme-complete.theme-legendary .camera-eye,
body.theme-complete.theme-legendary .eye-lens {
  border-color:rgba(65,216,212,.46) !important;
}
body.theme-complete.theme-legendary .resource-actions a.primary,
body.theme-complete.theme-legendary .project-steam-link,
body.theme-complete.theme-legendary .tool-main-link:hover,
body.theme-complete.theme-legendary .nda-logo-slot:hover {
  background:rgba(44,195,192,.07) !important;
}
body.theme-complete.theme-legendary .eye-lens { box-shadow:0 0 28px rgba(61,218,214,.30) !important; }
body.theme-complete.theme-legendary .eye-ray { background:linear-gradient(90deg,#7df0ec 0%,rgba(59,211,208,.56) 62%,transparent 100%) !important; }
body.theme-complete.theme-legendary .heavy-water.lens-active .camera-eye { border-color:#67e5e1 !important; box-shadow:0 0 0 1px rgba(58,215,211,.30),0 0 55px rgba(58,215,211,.28) !important; }
body.theme-complete.theme-legendary .heavy-water.lens-active .eye-ray { box-shadow:0 0 10px rgba(58,215,211,.28) !important; }
body.theme-complete.theme-legendary .fallback-core { filter:sepia(.28) saturate(1.55) hue-rotate(340deg) drop-shadow(0 0 28px rgba(57,214,210,.20)) !important; }
body.theme-complete.theme-legendary .doug-secret:hover { box-shadow:0 12px 35px rgba(55,214,210,.10) !important; }
body.theme-complete.theme-legendary .about-callout,
body.theme-complete.theme-legendary #crafting .link-card,
body.theme-complete.theme-legendary .resource-intro,
body.theme-complete.theme-legendary .games-tools-callout {
  background:linear-gradient(145deg,rgba(255,123,22,.065),rgba(55,210,207,.022)),var(--panel-3) !important;
}
body.theme-complete.theme-legendary .console-output { color:#a8c9c3 !important; }
body.theme-complete.theme-legendary .console-line.cmd { color:#d9f4ef !important; }
body.theme-complete.theme-legendary .doug-reaction { border-color:rgba(55,215,211,.36) !important; background:rgba(18,14,7,.96) !important; color:#dffbf7 !important; }
body.theme-complete.theme-legendary .doug-card.doug-command { box-shadow:inset 0 0 0 1px rgba(54,213,209,.22),0 16px 50px rgba(0,0,0,.24) !important; }

/* v2.33 theme consistency, themed pickups, hover-state inversion, and Legendary hero polish */

/* DEFAULT RARITY // Unreal blue + cyan. Ambient pickups should belong to the base world. */
body:not(.theme-complete) .game-pickup-icon {
  filter:drop-shadow(0 0 9px rgba(47,147,255,.34)) drop-shadow(0 0 16px rgba(80,218,255,.10));
}
body:not(.theme-complete) .game-pickup:hover .game-pickup-icon {
  filter:drop-shadow(0 0 11px rgba(93,174,255,.48)) drop-shadow(0 0 19px rgba(89,229,255,.20));
}
body:not(.theme-complete) .game-pickup[data-kind="heart"] .pickup-fill { fill:#2f93ff; stroke:#b7e2ff; }
body:not(.theme-complete) .game-pickup[data-kind="star"] .pickup-fill { fill:#8fd6ff; stroke:#effaff; }
body:not(.theme-complete) .game-pickup[data-kind="rupee"] .pickup-fill { fill:#087bdc; stroke:#72e8ff; }
body:not(.theme-complete) .game-pickup[data-kind="rupee"] .pickup-line { stroke:#dcfbff; }
body:not(.theme-complete) .game-pickup[data-kind="1up"] .pickup-cap { fill:#48cfff; stroke:#d8f8ff; }
body:not(.theme-complete) .game-pickup[data-kind="1up"] .pickup-spot { fill:#f1fcff; }
body:not(.theme-complete) .game-pickup[data-kind="1up"] .pickup-stem { fill:#dceeff; stroke:#78bfff; }
body:not(.theme-complete) .game-pickup[data-kind="1up"] .pickup-eye { fill:#082a48; }
body:not(.theme-complete) .game-pickup[data-kind="key"] .pickup-key-ring,
body:not(.theme-complete) .game-pickup[data-kind="key"] .pickup-key-body { fill:#5daeff; stroke:#d8f3ff; }
body:not(.theme-complete) .game-pickup[data-kind="key"] .pickup-key-hole { fill:#0a2138; }
body:not(.theme-complete) .doug-bone-icon { filter:drop-shadow(0 0 9px rgba(47,147,255,.32)); }
body:not(.theme-complete) .doug-bone-icon g { fill:#e7f4ff; stroke:#5daeff; }
body:not(.theme-complete) .galaga-secret { filter:drop-shadow(0 0 8px rgba(80,218,255,.38)); }
body:not(.theme-complete) .galaga-secret::before {
  background:#2f93ff;
  box-shadow:-9px 7px 0 #67e8ff,9px 7px 0 #67e8ff,-15px 14px 0 #176fc4,15px 14px 0 #176fc4,-4px 15px 0 #e9f8ff,4px 15px 0 #e9f8ff;
}

/* COMPLETION RARITY // Violet + hot pink + cyan, with no leftover base-blue UI. */
body.theme-complete:not(.theme-legendary) .brand-logo {
  filter:hue-rotate(58deg) saturate(1.48) brightness(1.08) drop-shadow(0 0 9px rgba(209,91,255,.18));
}
body.theme-complete:not(.theme-legendary) .hint-trigger {
  border-color:rgba(255,79,200,.46); color:#ffd6f0;
  background:linear-gradient(90deg,rgba(139,43,190,.30),rgba(35,190,214,.08)),rgba(25,10,34,.96);
}
body.theme-complete:not(.theme-legendary) .hint-trigger:hover {
  border-color:rgba(103,232,255,.68); color:#e8fdff; background:rgba(71,23,93,.94);
}
body.theme-complete:not(.theme-legendary) .ledger-console-tip button {
  border-color:rgba(218,112,255,.40); background:#1c1027; color:#f5ddff;
}
body.theme-complete:not(.theme-legendary) .ledger-console-tip button:hover {
  border-color:#67e8ff; background:rgba(103,232,255,.09); color:#e9feff;
}
body.theme-complete:not(.theme-legendary) .hardware-warning {
  border-bottom-color:rgba(223,119,255,.28);
  background:linear-gradient(90deg,rgba(48,16,67,.98),rgba(18,10,28,.98),rgba(7,43,52,.96));
  color:#decce9;
}
body.theme-complete:not(.theme-legendary) .hardware-warning b { color:#ff8bd7; }
body.theme-complete:not(.theme-legendary) .hardware-warning a { color:#82edf8; }
body.theme-complete:not(.theme-legendary) .hardware-warning button { color:#bb9acb; }
body.theme-complete:not(.theme-legendary) .ambient-secret {
  border-color:rgba(255,91,207,.66); background:rgba(174,55,232,.12);
  box-shadow:0 0 24px rgba(255,79,200,.25),inset 0 0 12px rgba(103,232,255,.10);
}
body.theme-complete:not(.theme-legendary) .ambient-secret::after { border-color:rgba(115,238,255,.80); }
body.theme-complete:not(.theme-legendary) .section-castle { color:#ef94ff; filter:drop-shadow(0 0 9px rgba(238,86,255,.46)); }
body.theme-complete:not(.theme-legendary) .section-castle svg { fill:#421854; stroke:#89efff; }
body.theme-complete:not(.theme-legendary) .section-castle:hover svg { filter:drop-shadow(0 0 9px rgba(255,85,202,.52)); }

body.theme-complete:not(.theme-legendary) .game-pickup-icon,
body.theme-complete:not(.theme-legendary) .doug-bone-icon {
  filter:drop-shadow(0 0 10px rgba(255,79,200,.38)) drop-shadow(0 0 16px rgba(103,232,255,.16));
}
body.theme-complete:not(.theme-legendary) .game-pickup:hover .game-pickup-icon {
  filter:drop-shadow(0 0 11px rgba(255,79,200,.52)) drop-shadow(0 0 20px rgba(103,232,255,.26));
}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="heart"] .pickup-fill { fill:#ff4fc8; stroke:#ffd8f1; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="star"] .pickup-fill { fill:#c66cff; stroke:#f5dcff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="rupee"] .pickup-fill { fill:#38d6e8; stroke:#c4fbff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="rupee"] .pickup-line { stroke:#f0feff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="1up"] .pickup-cap { fill:#9f52f2; stroke:#efd9ff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="1up"] .pickup-spot { fill:#ff8bd7; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="1up"] .pickup-stem { fill:#f0ddff; stroke:#72eaff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="1up"] .pickup-eye { fill:#2a0b38; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="key"] .pickup-key-ring,
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="key"] .pickup-key-body { fill:#df72ff; stroke:#8ff3ff; }
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="key"] .pickup-key-hole { fill:#261032; }
body.theme-complete:not(.theme-legendary) .doug-bone-icon g { fill:#f4ddff; stroke:#ff58c9; }
body.theme-complete:not(.theme-legendary) .galaga-secret { filter:drop-shadow(0 0 9px rgba(103,232,255,.44)); }
body.theme-complete:not(.theme-legendary) .galaga-secret::before {
  background:#ff4fc8;
  box-shadow:-9px 7px 0 #67e8ff,9px 7px 0 #67e8ff,-15px 14px 0 #a952ff,15px 14px 0 #a952ff,-4px 15px 0 #f9eaff,4px 15px 0 #f9eaff;
}

/* IMAGE STATE FLIP // the more energetic treatment is now the resting state.
   Hovering settles the image back into the quieter treatment instead of amplifying it. */
body.theme-complete:not(.theme-legendary) .studio-card .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
}
body.theme-complete:not(.theme-legendary) .studio-card::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32)) !important;
  opacity:.78 !important;
}
body.theme-complete:not(.theme-legendary) .studio-card:hover { filter:none !important; }
body.theme-complete:not(.theme-legendary) .studio-card:hover .studio-image {
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
}
body.theme-complete:not(.theme-legendary) .studio-card:hover::after {
  background:#002b96 !important; opacity:.72 !important;
}
body.theme-complete:not(.theme-legendary) .azure-altar .tool-feature-visual::before,
body.theme-complete:not(.theme-legendary) .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
  filter:grayscale(100%) contrast(1.12) brightness(1.02) !important;
}
body.theme-complete:not(.theme-legendary) .azure-altar .tool-feature-visual::after,
body.theme-complete:not(.theme-legendary) .unmark-visual::after {
  background:linear-gradient(135deg,rgba(0,43,150,.94),rgba(255,69,191,.32)) !important;
  opacity:.78 !important;
}
body.theme-complete:not(.theme-legendary) .azure-altar:hover .tool-feature-visual::before,
body.theme-complete:not(.theme-legendary) .unmark-feature:hover .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
  filter:grayscale(100%) contrast(1.06) brightness(.94) !important;
}
body.theme-complete:not(.theme-legendary) .azure-altar:hover .tool-feature-visual::after,
body.theme-complete:not(.theme-legendary) .unmark-feature:hover .unmark-visual::after {
  background:#002b96 !important; opacity:.72 !important;
}

/* LEGENDARY IMAGE STATE FLIP // same behavior, using orange/gold + teal. */
body.theme-complete.theme-legendary .studio-card .studio-image {
  -webkit-filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
  filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
}
body.theme-complete.theme-legendary .studio-card::after {
  background:linear-gradient(135deg,rgba(5,126,132,.96),rgba(255,117,24,.38)) !important;
  opacity:.78 !important;
}
body.theme-complete.theme-legendary .studio-card:hover { filter:none !important; }
body.theme-complete.theme-legendary .studio-card:hover .studio-image {
  -webkit-filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
}
body.theme-complete.theme-legendary .studio-card:hover::after {
  background:#087f84 !important; opacity:.68 !important;
}
body.theme-complete.theme-legendary .azure-altar .tool-feature-visual::before,
body.theme-complete.theme-legendary .unmark-lockup,
body.theme-complete.theme-legendary .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
  filter:grayscale(100%) sepia(12%) contrast(1.14) brightness(1.01) !important;
}
body.theme-complete.theme-legendary .azure-altar .tool-feature-visual::after,
body.theme-complete.theme-legendary .unmark-visual::after {
  background:linear-gradient(135deg,rgba(5,126,132,.96),rgba(255,117,24,.38)) !important;
  opacity:.78 !important;
}
body.theme-complete.theme-legendary .azure-altar:hover .tool-feature-visual::before,
body.theme-complete.theme-legendary .unmark-feature:hover .unmark-lockup-clean {
  -webkit-filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
  filter:grayscale(100%) sepia(15%) contrast(1.08) brightness(.93) !important;
}
body.theme-complete.theme-legendary .azure-altar:hover .tool-feature-visual::after,
body.theme-complete.theme-legendary .unmark-feature:hover .unmark-visual::after {
  background:#087f84 !important; opacity:.68 !important;
}

/* Legendary cursor is intentionally more extravagant than Completion. */
body.theme-complete.theme-legendary .completion-cursor-aura {
  width:62px; height:62px; margin:-31px 0 0 -31px; opacity:.88;
  border:1px solid rgba(255,199,76,.48) !important;
  box-shadow:0 0 34px rgba(255,118,20,.25),0 0 58px rgba(59,218,214,.12),inset 0 0 24px rgba(255,224,137,.10) !important;
}
body.theme-complete.theme-legendary .cursor-spark {
  mix-blend-mode:screen;
  animation-timing-function:cubic-bezier(.16,.74,.24,1);
}


/* ==========================================================================
   v2.34 // THEME CHROME, ARCADE COMBAT, AND YET ANOTHER MINI-GAME
   ========================================================================== */
body.theme-complete:not(.theme-legendary) .filter:hover,
body.theme-complete:not(.theme-legendary) .filter:focus-visible {
  color:#fff4fd !important;
  background:linear-gradient(135deg,rgba(185,61,242,.64),rgba(255,79,200,.42),rgba(47,201,220,.22)) !important;
  border-color:#67e8ff !important;
  box-shadow:0 0 18px rgba(255,79,200,.14),inset 0 0 18px rgba(103,232,255,.05) !important;
}
body.theme-complete.theme-legendary .filter:hover,
body.theme-complete.theme-legendary .filter:focus-visible {
  color:#fff7db !important;
  background:linear-gradient(135deg,rgba(218,119,18,.62),rgba(255,184,48,.30),rgba(39,190,187,.22)) !important;
  border-color:#55ddd9 !important;
  box-shadow:0 0 18px rgba(255,145,24,.14),inset 0 0 18px rgba(72,219,215,.06) !important;
}
body.theme-complete.theme-legendary .filter.active {
  color:#fff2bd !important;
  background:linear-gradient(135deg,rgba(218,119,18,.52),rgba(49,190,187,.15)),#1b1006 !important;
  border-color:rgba(255,198,78,.64) !important;
}
body.theme-complete.theme-legendary .section-action-row .button.ghost:hover,
body.theme-complete.theme-legendary .section-action-row .button.ghost:focus-visible {
  color:#70eee9 !important;
  border-color:#4bd9d5 !important;
  background:linear-gradient(180deg,rgba(46,201,197,.10),rgba(255,143,25,.05)) !important;
}

.azure-gallery-stage { isolation:isolate; }
.azure-gallery-stage::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:0;
}
.azure-gallery-stage img { position:relative; z-index:0; }
.azure-gallery-nav { z-index:3; }

body.theme-complete:not(.theme-legendary) .azure-gallery-backdrop { background:rgba(9,2,14,.92) !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-shell {
  background:#0d0712 !important; border-color:rgba(213,105,255,.46) !important;
  box-shadow:0 28px 110px rgba(0,0,0,.68),0 0 58px rgba(208,75,255,.10) !important;
}
body.theme-complete:not(.theme-legendary) .azure-gallery-head,
body.theme-complete:not(.theme-legendary) .azure-gallery-thumbs,
body.theme-complete:not(.theme-legendary) .azure-gallery-help {
  background:linear-gradient(90deg,#15091e,#0a1018) !important;
  border-color:rgba(255,91,207,.18) !important;
}
body.theme-complete:not(.theme-legendary) .azure-gallery-head span,
body.theme-complete:not(.theme-legendary) .azure-gallery-help { color:#caaee0 !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-head strong,
body.theme-complete:not(.theme-legendary) .azure-gallery-close { color:#ff8bd7 !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-stage { background:#09040d !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-stage::after {
  opacity:.14; background:linear-gradient(135deg,rgba(185,63,255,.42),transparent 42%,rgba(70,230,243,.26)); mix-blend-mode:screen;
}
body.theme-complete:not(.theme-legendary) .azure-gallery-nav {
  color:#fbeeff !important; border-color:rgba(213,105,255,.36) !important; background:rgba(35,12,48,.72) !important;
}
body.theme-complete:not(.theme-legendary) .azure-gallery-nav:hover { border-color:#67e8ff !important; background:rgba(103,232,255,.12) !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-thumb { border-color:rgba(214,117,255,.20) !important; background:#100717 !important; }
body.theme-complete:not(.theme-legendary) .azure-gallery-thumb:hover,
body.theme-complete:not(.theme-legendary) .azure-gallery-thumb.active {
  border-color:#ff62ca !important; box-shadow:0 0 14px rgba(103,232,255,.10) !important;
}
body.theme-complete:not(.theme-legendary) .azure-gallery-thumb img { filter:saturate(.92) hue-rotate(7deg) !important; }

body.theme-complete.theme-legendary .azure-gallery-backdrop { background:rgba(8,4,1,.93) !important; }
body.theme-complete.theme-legendary .azure-gallery-shell {
  background:#130b04 !important; border-color:rgba(255,188,64,.50) !important;
  box-shadow:0 28px 110px rgba(0,0,0,.72),0 0 62px rgba(255,133,20,.11) !important;
}
body.theme-complete.theme-legendary .azure-gallery-head,
body.theme-complete.theme-legendary .azure-gallery-thumbs,
body.theme-complete.theme-legendary .azure-gallery-help {
  background:linear-gradient(90deg,#1c1005,#071515) !important; border-color:rgba(255,181,49,.19) !important;
}
body.theme-complete.theme-legendary .azure-gallery-head span,
body.theme-complete.theme-legendary .azure-gallery-help { color:#cdb78d !important; }
body.theme-complete.theme-legendary .azure-gallery-head strong { color:#ffd061 !important; }
body.theme-complete.theme-legendary .azure-gallery-close { color:#65e5e0 !important; }
body.theme-complete.theme-legendary .azure-gallery-stage { background:#080502 !important; }
body.theme-complete.theme-legendary .azure-gallery-stage::after {
  opacity:.16; background:linear-gradient(135deg,rgba(255,126,17,.42),transparent 46%,rgba(45,209,205,.28)); mix-blend-mode:screen;
}
body.theme-complete.theme-legendary .azure-gallery-nav {
  color:#fff2c2 !important; border-color:rgba(255,193,69,.38) !important; background:rgba(39,21,5,.76) !important;
}
body.theme-complete.theme-legendary .azure-gallery-nav:hover {
  color:#79f1ec !important; border-color:#4bd9d5 !important; background:rgba(39,180,177,.12) !important;
}
body.theme-complete.theme-legendary .azure-gallery-thumb { border-color:rgba(255,187,61,.22) !important; background:#160d05 !important; }
body.theme-complete.theme-legendary .azure-gallery-thumb:hover,
body.theme-complete.theme-legendary .azure-gallery-thumb.active {
  border-color:#ff9d2f !important; box-shadow:0 0 14px rgba(69,218,214,.12) !important;
}
body.theme-complete.theme-legendary .azure-gallery-thumb img { filter:sepia(.13) saturate(1.07) hue-rotate(346deg) !important; }

.ufo-projectile {
  position:fixed; z-index:72; width:14px; height:3px; margin:-1.5px 0 0 -7px; border-radius:999px; pointer-events:none;
  background:#ff55c8; box-shadow:0 0 8px #ff55c8,0 0 15px #67e8ff; transform-origin:center;
  animation:ufo-projectile-flight var(--shot-dur,.6s) linear forwards;
}
@keyframes ufo-projectile-flight { to { transform:translate3d(var(--dx),var(--dy),0) scaleX(.55); opacity:.16; } }
body.theme-complete.theme-legendary .ufo-projectile { background:#ff9a24; box-shadow:0 0 8px #ff9a24,0 0 16px #55dfda; }

.legendary-player-projectile {
  position:fixed; z-index:74; width:22px; height:5px; margin:-2.5px 0 0 -11px; border-radius:999px; pointer-events:none;
  background:linear-gradient(90deg,#fff2b2,#ffc13d 55%,#43dcd7); box-shadow:0 0 9px #ffc13d,0 0 18px rgba(67,220,215,.72); transform-origin:center;
}

.flappy-game {
  position:fixed; z-index:460; top:72px; right:18px; width:min(520px,calc(100vw - 36px)); display:none;
  border:1px solid rgba(93,174,255,.42); background:#07111d; box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 28px rgba(47,147,255,.08);
}
.flappy-game.open { display:block; }
.flappy-head { min-height:42px; padding:0 8px 0 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(93,174,255,.20); background:#0a1624; }
.flappy-head > div { display:flex; align-items:center; gap:14px; }
.flappy-head span,.flappy-head strong,.flappy-help,.flappy-head button { font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.10em; }
.flappy-head span { color:#8da8c4; }
.flappy-head strong { color:#72c8ff; }
.flappy-head button { min-height:28px; padding:0 9px; border:1px solid rgba(93,174,255,.28); background:transparent; color:#d8ecff; cursor:pointer; }
.flappy-head button:hover { border-color:#67cfff; color:#fff; }
#flappy-canvas { display:block; width:100%; height:auto; cursor:pointer; touch-action:none; }
.flappy-help { padding:8px 10px 9px; color:#7189a3; text-align:right; border-top:1px solid rgba(93,174,255,.14); }
body.theme-complete:not(.theme-legendary) .flappy-game { border-color:rgba(211,105,255,.48); background:#0e0715; box-shadow:0 24px 70px rgba(0,0,0,.58),0 0 30px rgba(255,79,200,.10); }
body.theme-complete:not(.theme-legendary) .flappy-head { background:linear-gradient(90deg,#180b22,#07161b); border-color:rgba(255,79,200,.20); }
body.theme-complete:not(.theme-legendary) .flappy-head strong { color:#ff65cb; }
body.theme-complete:not(.theme-legendary) .flappy-head button { border-color:rgba(103,232,255,.36); color:#dffcff; }
body.theme-complete.theme-legendary .flappy-game { border-color:rgba(255,190,66,.52); background:#100904; box-shadow:0 24px 70px rgba(0,0,0,.62),0 0 32px rgba(255,136,18,.11); }
body.theme-complete.theme-legendary .flappy-head { background:linear-gradient(90deg,#1d1005,#071716); border-color:rgba(255,179,44,.21); }
body.theme-complete.theme-legendary .flappy-head span { color:#c9b287; }
body.theme-complete.theme-legendary .flappy-head strong { color:#ffc64a; }
body.theme-complete.theme-legendary .flappy-head button { border-color:rgba(73,219,215,.40); color:#68e5e0; }
@media (max-width:620px){ .flappy-game { top:64px; right:6px; width:calc(100vw - 12px); } }

/* v2.35 input, progression HUD, pickup power-ups, and tiny-game polish */
/* This page is interaction-heavy. Prevent drag-selection from fighting flying-object clicks. */
html, body, body * { -webkit-user-select:none; user-select:none; }
input, textarea, pre, code, .console-output { -webkit-user-select:text; user-select:text; }

/* Theme rarity is now one cycling control beside Signals: Rare -> Epic -> Legendary. */
.theme-cycle-trigger {
  display:inline-flex; align-items:center; min-height:34px; padding:0 11px;
  border:1px solid rgba(93,174,255,.38); background:rgba(9,15,23,.94); color:#b8dcff;
  font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.10em;
  cursor:pointer; box-shadow:0 12px 36px rgba(0,0,0,.28); transition:.16s ease;
}
.theme-cycle-trigger:hover,.theme-cycle-trigger:focus-visible { border-color:#67cfff; color:#fff; background:rgba(21,76,126,.24); outline:0; }
body.theme-complete:not(.theme-legendary) .theme-cycle-trigger { border-color:rgba(211,105,255,.48); color:#f0c9ff; background:linear-gradient(90deg,rgba(103,34,138,.30),rgba(20,51,64,.28)),rgba(12,7,17,.94); }
body.theme-complete:not(.theme-legendary) .theme-cycle-trigger:hover { border-color:#67e8ff; color:#fff; box-shadow:0 0 20px rgba(255,79,200,.10),0 12px 36px rgba(0,0,0,.28); }
body.theme-complete.theme-legendary .theme-cycle-trigger { border-color:rgba(255,194,67,.54); color:#ffe49a; background:linear-gradient(90deg,rgba(121,69,8,.48),rgba(22,72,70,.28)),rgba(22,13,5,.95); box-shadow:0 0 22px rgba(255,151,25,.08),0 12px 36px rgba(0,0,0,.32); }
body.theme-complete.theme-legendary .theme-cycle-trigger:hover { border-color:#55ddd9; color:#fff5cf; background:linear-gradient(90deg,rgba(190,98,10,.52),rgba(35,151,148,.24)),rgba(24,14,5,.96); }

/* Inspect and the five-heart side quest share one row in the ledger. */
.ledger-controls { grid-template-columns:minmax(0,1fr) auto !important; align-items:stretch; }
.heart-meter { min-height:34px; display:flex; align-items:center; justify-content:center; gap:4px; padding:0 9px; border:1px solid var(--line); background:rgba(255,255,255,.018); color:#4c6076; font:900 18px/1 Georgia,serif; }
.heart-meter span { width:15px; text-align:center; transition:color .15s ease,transform .15s ease,text-shadow .15s ease; }
.heart-meter span.filled { color:#ff5b85; transform:scale(1.08); text-shadow:0 0 10px rgba(255,79,120,.38); }
body.theme-complete:not(.theme-legendary) .heart-meter { border-color:rgba(214,104,255,.22); background:rgba(95,24,125,.08); }
body.theme-complete:not(.theme-legendary) .heart-meter span.filled { color:#ff5acb; text-shadow:0 0 12px rgba(255,80,204,.48); }
body.theme-complete.theme-legendary .heart-meter { border-color:rgba(255,190,61,.24); background:rgba(98,57,6,.10); }
body.theme-complete.theme-legendary .heart-meter span.filled { color:#ff7b35; text-shadow:0 0 12px rgba(255,135,35,.48); }

/* Unreal Source heart reward. */
.unreal-gift-window { width:min(520px,calc(100vw - 36px)); text-align:center; }
.unreal-gift-logo { display:block; width:min(300px,76%); max-height:90px; object-fit:contain; margin:24px auto 18px; animation:unreal-gift-float 1.8s ease-in-out infinite; filter:drop-shadow(0 14px 20px rgba(0,0,0,.34)); }
.unreal-gift-actions { display:flex; justify-content:center; gap:9px; margin-top:18px; }
.unreal-gift-actions a,.unreal-gift-actions button { min-width:116px; min-height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(93,174,255,.36); background:#0a1624; color:#dceeff; text-decoration:none; font:800 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.09em; cursor:pointer; }
.unreal-gift-actions a:hover,.unreal-gift-actions button:hover { border-color:#67cfff; color:#fff; }
@keyframes unreal-gift-float { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-9px) rotate(1deg)} }
body.theme-complete:not(.theme-legendary) .unreal-gift-actions a,body.theme-complete:not(.theme-legendary) .unreal-gift-actions button { border-color:rgba(211,105,255,.44); background:#160a20; }
body.theme-complete.theme-legendary .unreal-gift-actions a,body.theme-complete.theme-legendary .unreal-gift-actions button { border-color:rgba(255,191,63,.48); background:#1a1006; color:#ffe7a2; }
body.theme-complete.theme-legendary .unreal-gift-actions a:hover,body.theme-complete.theme-legendary .unreal-gift-actions button:hover { border-color:#55ddd9; color:#7cf1ec; }

/* The particles console command now has a very visible screen-space result too. */
.command-particle { position:fixed; z-index:62; border-radius:50%; pointer-events:none; opacity:0; animation:command-particle 2.35s ease-out forwards; mix-blend-mode:screen; }
@keyframes command-particle { 0%{opacity:0;transform:translate(0,0) scale(.35)} 12%{opacity:.9} 100%{opacity:0;transform:translate(var(--px),var(--py)) scale(.1)} }

/* Browser cursors cannot be scaled reliably, so mushrooms switch to a lightweight custom pointer. */
.power-cursor { position:fixed; z-index:9999; left:0; top:0; width:28px; height:36px; pointer-events:none; opacity:0; transform:translate(-3px,-3px); clip-path:polygon(0 0,0 86%,23% 67%,38% 100%,53% 92%,38% 61%,68% 61%); background:linear-gradient(135deg,#fff 0 56%,#62bfff 57% 100%); filter:drop-shadow(0 2px 1px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(93,174,255,.42)); transition:width .12s ease,height .12s ease,opacity .12s ease; }
html:not(.cursor-test-inheritance) body.cursor-grown,html:not(.cursor-test-inheritance) body.cursor-grown * { cursor:none !important; }
body.cursor-grown .power-cursor { opacity:1; }
body.cursor-power-1 .power-cursor { width:32px; height:42px; }
body.cursor-power-2 .power-cursor { width:46px; height:60px; background:linear-gradient(135deg,#fff6cc 0 52%,#ffc94a 53% 72%,#45ddd8 73% 100%); filter:drop-shadow(0 3px 2px rgba(0,0,0,.7)) drop-shadow(0 0 10px rgba(255,194,61,.48)); }

/* Regular stars give the cursor a short Mario-style rainbow frenzy. */
.rainbow-cursor-spark { position:fixed; z-index:9996; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; pointer-events:none; mix-blend-mode:screen; box-shadow:0 0 10px currentColor; animation:rainbow-cursor-spark .58s ease-out forwards; }
@keyframes rainbow-cursor-spark { from{opacity:1;transform:translate(0,0) scale(1.2)} to{opacity:0;transform:translate(var(--rx),var(--ry)) scale(.1)} }
body.star-power .completion-cursor-aura { opacity:1 !important; width:72px !important; height:72px !important; border:3px solid #fff !important; animation:star-power-ring .24s linear infinite !important; box-shadow:0 0 18px #ff3b30,0 0 28px #ffcc00,0 0 38px #34c759,0 0 48px #0a84ff,0 0 58px #bf5af2 !important; }
@keyframes star-power-ring { to{filter:hue-rotate(360deg);transform:translate(-50%,-50%) rotate(360deg) scale(1.05)} }

/* Doug only interrupts the viewport when his normal card is offscreen. */
.doug-peek { position:fixed; z-index:470; left:50%; bottom:-280px; width:min(280px,46vw); transform:translateX(-50%); pointer-events:none; text-align:center; transition:bottom .34s cubic-bezier(.2,.9,.3,1.12); filter:drop-shadow(0 -14px 28px rgba(0,0,0,.42)); }
.doug-peek.show { bottom:-46px; }
.doug-peek img { display:block; width:100%; max-height:250px; object-fit:cover; object-position:50% 28%; border-radius:48% 48% 0 0; border:1px solid rgba(93,174,255,.30); }
.doug-peek strong { position:absolute; left:50%; top:12px; transform:translateX(-50%); width:max-content; max-width:92vw; padding:7px 10px; background:rgba(5,10,16,.93); border:1px solid rgba(93,174,255,.34); color:#e7f4ff; font:800 9px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; }
.doug-peek-hearts { position:absolute; z-index:2; left:50%; top:-28px; transform:translateX(-50%); color:#ff6d91; font-size:24px; letter-spacing:8px; animation:doug-peek-hearts 1s ease-in-out infinite alternate; }
@keyframes doug-peek-hearts { to{transform:translateX(-50%) translateY(-8px) scale(1.08);filter:drop-shadow(0 0 8px currentColor)} }
body.theme-complete:not(.theme-legendary) .doug-peek img { border-color:rgba(218,106,255,.40); }
body.theme-complete.theme-legendary .doug-peek img { border-color:rgba(255,191,61,.46); }
body.theme-complete.theme-legendary .doug-peek-hearts { color:#ff8a37; }

/* UFO shots are intentionally high-contrast. They are gameplay, not subtle ambience. */
.ufo-projectile, body.theme-complete.theme-legendary .ufo-projectile { background:#fff !important; box-shadow:0 0 7px #fff,0 0 15px #c9f7ff,0 0 24px rgba(103,232,255,.86) !important; }

/* Console header now carries its onboarding copy without crowding the title. */
.console-head { gap:12px; }
.console-head > span { flex:0 0 auto; }
.console-head > small { flex:1; color:#607b95; font:600 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.02em; text-transform:none; }
body.theme-complete:not(.theme-legendary) .console-head > small { color:#a98abb; }
body.theme-complete.theme-legendary .console-head > small { color:#af9870; }

/* Mippi Bird starts paused, so this hint remains readable before gravity joins the meeting. */
.flappy-help { min-height:30px; }

@media (max-width:620px){
  .heart-meter { gap:2px; padding:0 6px; }
  .heart-meter span { width:12px; font-size:15px; }
  .theme-cycle-trigger { font-size:7px; }
  .console-head > small { display:none; }
}
.theme-cycle-trigger { position:relative; }
.theme-cycle-trigger::after { content:attr(data-tip); position:absolute; left:0; bottom:calc(100% + 9px); width:220px; padding:7px 9px; border:1px solid var(--line-strong); background:rgba(5,10,16,.97); color:#a9c4df; font:700 9px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:0; text-transform:none; text-align:left; opacity:0; transform:translateY(5px); pointer-events:none; transition:.14s ease; box-shadow:0 12px 34px rgba(0,0,0,.38); }
.theme-cycle-trigger:hover::after,.theme-cycle-trigger:focus-visible::after { opacity:1; transform:none; }
body.theme-complete:not(.theme-legendary) .theme-cycle-trigger::after { border-color:rgba(211,105,255,.36); color:#dfc9eb; background:rgba(14,7,20,.98); }
body.theme-complete.theme-legendary .theme-cycle-trigger::after { border-color:rgba(255,191,63,.36); color:#dbc596; background:rgba(18,11,5,.98); }


/* ==========================================================================
   v2.36 // Wish UI theme parity, explicit action colors, and capitalism FX
   ========================================================================== */

/* The hero GitHub button is a real control, so give it an explicit themed color
   instead of allowing whichever global anchor rule happens to win today. */
body.theme-complete:not(.theme-legendary) .hero-actions .button.ghost {
  color:#f5dcff !important;
  border-color:rgba(220,132,255,.34) !important;
  background:rgba(177,60,255,.045) !important;
}
body.theme-complete:not(.theme-legendary) .hero-actions .button.ghost:hover,
body.theme-complete:not(.theme-legendary) .hero-actions .button.ghost:focus-visible {
  color:#74efff !important;
  border-color:#67e8ff !important;
  background:linear-gradient(135deg,rgba(177,60,255,.16),rgba(62,220,255,.09)) !important;
}
body.theme-complete.theme-legendary .hero-actions .button.ghost {
  color:#ffe7a0 !important;
  border-color:rgba(255,187,69,.38) !important;
  background:linear-gradient(135deg,rgba(255,126,22,.055),rgba(55,213,209,.025)) !important;
}
body.theme-complete.theme-legendary .hero-actions .button.ghost:hover,
body.theme-complete.theme-legendary .hero-actions .button.ghost:focus-visible {
  color:#70eee9 !important;
  border-color:#4bd9d5 !important;
  background:linear-gradient(135deg,rgba(255,136,24,.11),rgba(48,208,204,.10)) !important;
}

/* Second-person lens is communication AND interaction. Theme both resting and active states. */
body.theme-complete:not(.theme-legendary) #second-person-toggle {
  color:#e89cff !important;
  text-shadow:0 0 18px rgba(201,76,255,.14);
}
body.theme-complete:not(.theme-legendary) #second-person-toggle::before { color:#67e8ff !important; }
body.theme-complete:not(.theme-legendary) #second-person-toggle:hover,
body.theme-complete:not(.theme-legendary) #second-person-toggle:focus-visible,
body.theme-complete:not(.theme-legendary) #second-person-toggle[aria-pressed="true"] { color:#ff78d1 !important; }
body.theme-complete:not(.theme-legendary) #second-person-toggle[aria-pressed="true"]::before { color:#8ff4ff !important; }

body.theme-complete.theme-legendary #second-person-toggle {
  color:#ffd269 !important;
  text-shadow:0 0 18px rgba(255,145,24,.12);
}
body.theme-complete.theme-legendary #second-person-toggle::before { color:#55ddd9 !important; }
body.theme-complete.theme-legendary #second-person-toggle:hover,
body.theme-complete.theme-legendary #second-person-toggle:focus-visible,
body.theme-complete.theme-legendary #second-person-toggle[aria-pressed="true"] { color:#71eee9 !important; }
body.theme-complete.theme-legendary #second-person-toggle[aria-pressed="true"]::before { color:#ffb13c !important; }

/* Wish result popups: Epic / Completion treatment. */
body.theme-complete:not(.theme-legendary) .wish-special-popup {
  background:rgba(7,2,12,.70) !important;
}
body.theme-complete:not(.theme-legendary) .wish-special-window {
  border-color:rgba(215,104,255,.52) !important;
  background:
    radial-gradient(circle at 88% 8%,rgba(80,225,255,.09),transparent 15rem),
    radial-gradient(circle at 8% 92%,rgba(205,69,255,.11),transparent 16rem),
    linear-gradient(145deg,#1b0d26,#0b0811 72%) !important;
  color:#fff7ff !important;
  box-shadow:0 28px 100px rgba(0,0,0,.78),0 0 54px rgba(189,63,255,.13) !important;
}
body.theme-complete:not(.theme-legendary) .wish-special-kicker { color:#ff78d1 !important; }
body.theme-complete:not(.theme-legendary) .wish-special-window h3 { color:#faeaff !important; }
body.theme-complete:not(.theme-legendary) .wish-special-window p { color:#c8b1d5 !important; }
body.theme-complete:not(.theme-legendary) .wish-special-close { color:#bd9fca !important; }
body.theme-complete:not(.theme-legendary) .wish-special-close:hover { color:#72efff !important; }
body.theme-complete:not(.theme-legendary) .wish-contact-actions a {
  border-color:rgba(211,105,255,.46) !important;
  background:linear-gradient(135deg,rgba(174,56,241,.10),rgba(53,215,236,.045)) !important;
  color:#f5dcff !important;
}
body.theme-complete:not(.theme-legendary) .wish-contact-actions a:hover {
  border-color:#67e8ff !important;
  background:linear-gradient(135deg,rgba(208,72,255,.18),rgba(51,220,240,.11)) !important;
  color:#8ff4ff !important;
  box-shadow:0 0 18px rgba(91,228,255,.08);
}
body.theme-complete:not(.theme-legendary) .blender-progress {
  border-color:rgba(216,112,255,.40) !important;
  background:#09050d !important;
}
body.theme-complete:not(.theme-legendary) .blender-progress i {
  background:linear-gradient(90deg,#a43cff,#ff4fc8,#67e8ff) !important;
}
body.theme-complete:not(.theme-legendary) #blender-percent { color:#f0a4ff !important; }
body.theme-complete:not(.theme-legendary) #blender-ok.ready {
  color:#fff !important;
  border-color:#67e8ff !important;
  background:linear-gradient(180deg,#b13cff,#7b25b8) !important;
}
body.theme-complete:not(.theme-legendary) #blender-ok.ready:hover { background:linear-gradient(180deg,#c64dff,#8b2dcc) !important; }

/* Wish result popups: Legendary treatment. Gold/orange lead, teal handles technical/action affordances. */
body.theme-complete.theme-legendary .wish-special-popup {
  background:rgba(8,5,2,.74) !important;
}
body.theme-complete.theme-legendary .wish-special-window {
  border-color:rgba(255,190,67,.58) !important;
  background:
    radial-gradient(circle at 88% 8%,rgba(57,215,211,.085),transparent 15rem),
    radial-gradient(circle at 8% 92%,rgba(255,122,22,.11),transparent 16rem),
    linear-gradient(145deg,#241405,#0d0904 72%) !important;
  color:#fff7df !important;
  box-shadow:0 28px 100px rgba(0,0,0,.80),0 0 58px rgba(255,138,24,.11) !important;
}
body.theme-complete.theme-legendary .wish-special-kicker { color:#ffad36 !important; }
body.theme-complete.theme-legendary .wish-special-window h3 { color:#ffe7a0 !important; }
body.theme-complete.theme-legendary .wish-special-window p { color:#d8c29d !important; }
body.theme-complete.theme-legendary .wish-special-close { color:#bda77c !important; }
body.theme-complete.theme-legendary .wish-special-close:hover { color:#64e6e1 !important; }
body.theme-complete.theme-legendary .wish-contact-actions a {
  border-color:rgba(255,185,64,.48) !important;
  background:linear-gradient(135deg,rgba(255,124,20,.105),rgba(53,211,207,.045)) !important;
  color:#ffe8a6 !important;
}
body.theme-complete.theme-legendary .wish-contact-actions a:hover {
  border-color:#55ddd9 !important;
  background:linear-gradient(135deg,rgba(255,137,24,.16),rgba(47,210,206,.12)) !important;
  color:#7cf1ec !important;
  box-shadow:0 0 18px rgba(55,215,211,.08);
}
body.theme-complete.theme-legendary .blender-progress {
  border-color:rgba(255,188,65,.42) !important;
  background:#0c0804 !important;
}
body.theme-complete.theme-legendary .blender-progress i {
  background:linear-gradient(90deg,#ff7418,#ffb72f,#55ddd9) !important;
}
body.theme-complete.theme-legendary #blender-percent { color:#ffd36b !important; }
body.theme-complete.theme-legendary #blender-ok.ready {
  color:#171003 !important;
  border-color:#ffd06a !important;
  background:linear-gradient(180deg,#f3ae32,#cf7111) !important;
}
body.theme-complete.theme-legendary #blender-ok.ready:hover {
  border-color:#55ddd9 !important;
  background:linear-gradient(180deg,#ffc04c,#d97b16) !important;
}

/* Money wish FX. Coins begin physically behind the console, then escape upward and fall away. */
.money-coin {
  position:fixed;
  z-index:299;
  left:var(--coin-x);
  top:var(--coin-y);
  width:var(--coin-size,30px);
  height:var(--coin-size,30px);
  margin:calc(var(--coin-size,30px) * -.5) 0 0 calc(var(--coin-size,30px) * -.5);
  border:2px solid #fff0a7;
  border-radius:50%;
  background:radial-gradient(circle at 36% 30%,#fff3a5 0 9%,#ffd54d 10% 35%,#e89a13 62%,#9e5c08 100%);
  color:#744000;
  box-shadow:0 0 12px rgba(255,194,57,.34),inset 0 0 0 2px rgba(129,70,4,.30);
  display:grid;
  place-items:center;
  pointer-events:none;
  font:900 calc(var(--coin-size,30px) * .46)/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  animation:money-coin-fall var(--coin-duration) cubic-bezier(.18,.65,.28,1) var(--coin-delay) forwards;
  will-change:transform,opacity;
}
.money-coin::after { content:"$"; transform:translateY(-.5px); }
@keyframes money-coin-fall {
  0% { transform:translate3d(0,0,0) rotate(0deg) scale(.65); opacity:0; }
  6% { opacity:1; }
  27% { transform:translate3d(var(--coin-mid-x),var(--coin-rise),0) rotate(var(--coin-spin-mid)) scale(1); opacity:1; }
  100% { transform:translate3d(var(--coin-end-x),var(--coin-fall),0) rotate(var(--coin-spin-end)) scale(.84); opacity:.92; }
}
body.theme-complete:not(.theme-legendary) .money-coin {
  box-shadow:0 0 14px rgba(255,196,57,.38),0 0 22px rgba(205,76,255,.10),inset 0 0 0 2px rgba(129,70,4,.30);
}
body.theme-complete.theme-legendary .money-coin {
  border-color:#fff2b6;
  box-shadow:0 0 16px rgba(255,179,33,.52),0 0 28px rgba(55,215,211,.10),inset 0 0 0 2px rgba(129,70,4,.30);
}


/* ============================================================================
   v2.37 // Wish popup hard-theme pass
   These selectors are deliberately specific. Somewhere, a generic link selector
   is always waiting to turn one legendary button purple again.
   ============================================================================ */
body.theme-complete:not(.theme-legendary) #wish-contact-popup .contact-window,
body.theme-complete:not(.theme-legendary) #blender-popup .blender-window {
  border-color:#ca64f4 !important;
  background:radial-gradient(circle at 88% 6%,rgba(103,232,255,.12),transparent 14rem),radial-gradient(circle at 8% 94%,rgba(255,79,200,.12),transparent 15rem),linear-gradient(145deg,#20102d,#0a0710 74%) !important;
  color:#fff5ff !important;
  box-shadow:0 28px 100px rgba(0,0,0,.82),0 0 58px rgba(190,66,255,.16) !important;
}
body.theme-complete:not(.theme-legendary) #wish-contact-popup .wish-special-kicker,
body.theme-complete:not(.theme-legendary) #blender-popup .wish-special-kicker { color:#ff61c9 !important; }
body.theme-complete:not(.theme-legendary) #wish-contact-popup h3,
body.theme-complete:not(.theme-legendary) #blender-popup h3 { color:#f8e8ff !important; text-shadow:0 0 20px rgba(194,73,255,.12); }
body.theme-complete:not(.theme-legendary) #wish-contact-popup p,
body.theme-complete:not(.theme-legendary) #blender-popup p { color:#d4bfe1 !important; }
body.theme-complete:not(.theme-legendary) #wish-contact-popup .wish-special-close { color:#d6afe7 !important; }
body.theme-complete:not(.theme-legendary) #wish-contact-popup .wish-contact-actions a {
  color:#f8e6ff !important; border-color:rgba(206,91,255,.62) !important;
  background:linear-gradient(135deg,rgba(179,52,241,.18),rgba(67,224,238,.07)) !important;
}
body.theme-complete:not(.theme-legendary) #wish-contact-popup .wish-contact-actions a:hover {
  color:#8df6ff !important; border-color:#67e8ff !important;
  background:linear-gradient(135deg,rgba(224,76,255,.24),rgba(59,226,241,.15)) !important;
}
body.theme-complete:not(.theme-legendary) #blender-popup .blender-progress { border-color:#c764f4 !important; background:#09050d !important; box-shadow:inset 0 0 12px rgba(174,57,236,.12); }
body.theme-complete:not(.theme-legendary) #blender-popup .blender-progress i { background:linear-gradient(90deg,#9d3dff,#ff4fc8,#67e8ff) !important; box-shadow:0 0 16px rgba(103,232,255,.16); }
body.theme-complete:not(.theme-legendary) #blender-popup #blender-percent { color:#f0a4ff !important; }
body.theme-complete:not(.theme-legendary) #blender-popup #blender-ok { border-color:#5c3b6c !important; background:#1a1020 !important; color:#826d8c !important; }
body.theme-complete:not(.theme-legendary) #blender-popup #blender-ok.ready { border-color:#67e8ff !important; background:linear-gradient(180deg,#b642ed,#7626af) !important; color:#fff !important; }

body.theme-complete.theme-legendary #wish-contact-popup .contact-window,
body.theme-complete.theme-legendary #blender-popup .blender-window {
  border-color:#f5b53c !important;
  background:radial-gradient(circle at 88% 6%,rgba(67,224,220,.13),transparent 14rem),radial-gradient(circle at 8% 94%,rgba(255,119,20,.16),transparent 15rem),linear-gradient(145deg,#281705,#0d0904 74%) !important;
  color:#fff6d9 !important;
  box-shadow:0 28px 100px rgba(0,0,0,.84),0 0 62px rgba(255,143,25,.18) !important;
}
body.theme-complete.theme-legendary #wish-contact-popup .wish-special-kicker,
body.theme-complete.theme-legendary #blender-popup .wish-special-kicker { color:#ff9630 !important; }
body.theme-complete.theme-legendary #wish-contact-popup h3,
body.theme-complete.theme-legendary #blender-popup h3 { color:#ffe39a !important; text-shadow:0 0 22px rgba(255,157,32,.13); }
body.theme-complete.theme-legendary #wish-contact-popup p,
body.theme-complete.theme-legendary #blender-popup p { color:#dec89d !important; }
body.theme-complete.theme-legendary #wish-contact-popup .wish-special-close { color:#cdb684 !important; }
body.theme-complete.theme-legendary #wish-contact-popup .wish-special-close:hover { color:#6df3ed !important; }
body.theme-complete.theme-legendary #wish-contact-popup .wish-contact-actions a {
  color:#ffe4a0 !important; border-color:rgba(255,181,54,.64) !important;
  background:linear-gradient(135deg,rgba(255,120,19,.17),rgba(62,218,214,.07)) !important;
}
body.theme-complete.theme-legendary #wish-contact-popup .wish-contact-actions a:hover {
  color:#79f1eb !important; border-color:#55ddd9 !important;
  background:linear-gradient(135deg,rgba(255,143,26,.24),rgba(57,219,214,.15)) !important;
}
body.theme-complete.theme-legendary #blender-popup .blender-progress { border-color:#e8a934 !important; background:#0a0703 !important; box-shadow:inset 0 0 12px rgba(255,159,28,.13); }
body.theme-complete.theme-legendary #blender-popup .blender-progress i { background:linear-gradient(90deg,#ff6c17,#ffb42f,#55ddd9) !important; box-shadow:0 0 18px rgba(85,221,217,.14); }
body.theme-complete.theme-legendary #blender-popup #blender-percent { color:#ffd163 !important; }
body.theme-complete.theme-legendary #blender-popup #blender-ok { border-color:#624618 !important; background:#1e1407 !important; color:#8f7548 !important; }
body.theme-complete.theme-legendary #blender-popup #blender-ok.ready { border-color:#ffd269 !important; background:linear-gradient(180deg,#f2ad31,#c9680d) !important; color:#171003 !important; }
body.theme-complete.theme-legendary #blender-popup #blender-ok.ready:hover { border-color:#55ddd9 !important; color:#13201f !important; }

@media (max-width:700px){
  .blender-window #blender-title { white-space:normal; }
}

/* ========================================================================== 
   v2.38 // Compact collection HUD, shop economy, and Star Power contact pickup
   ========================================================================== */

/* The heart side quest and rupee wallet live outside the ledger now. The HUD
   sits over SIGNALS while collapsed and jumps above the ledger when it opens. */
.progress-hud {
  position:fixed;
  left:18px;
  bottom:60px;
  z-index:247;
  display:grid;
  gap:5px;
  min-width:136px;
  opacity:0;
  transform:translateY(6px);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,top .18s ease,bottom .18s ease;
}
.progress-hud.visible { opacity:1; transform:none; }
.rupee-meter,
.progress-hud .heart-meter {
  min-height:30px;
  border:1px solid rgba(93,174,255,.30);
  background:rgba(7,13,20,.94);
  box-shadow:0 9px 24px rgba(0,0,0,.24);
}
.rupee-meter {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 9px;
  color:#72e8ff;
  font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.12em;
}
.rupee-meter b { color:#e8fbff; font-size:10px; letter-spacing:.06em; }
.progress-hud .heart-meter {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 9px;
  color:#4c6076;
  font:900 18px/1 Georgia,serif;
}
.progress-hud .heart-meter span { width:15px; text-align:center; transition:color .15s ease,transform .15s ease,text-shadow .15s ease; }
.progress-hud .heart-meter span.filled { color:#ff5b85; transform:scale(1.08); text-shadow:0 0 10px rgba(255,79,120,.38); }

/* Inspect Mode no longer has to share a row with five hearts. */
.ledger-controls { grid-template-columns:1fr !important; }

body.theme-complete:not(.theme-legendary) .rupee-meter,
body.theme-complete:not(.theme-legendary) .progress-hud .heart-meter {
  border-color:rgba(211,105,255,.34);
  background:linear-gradient(90deg,rgba(84,24,112,.16),rgba(15,42,52,.18)),rgba(11,7,16,.95);
}
body.theme-complete:not(.theme-legendary) .rupee-meter { color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .rupee-meter b { color:#dffcff; }
body.theme-complete:not(.theme-legendary) .progress-hud .heart-meter span.filled { color:#ff5acb; text-shadow:0 0 12px rgba(255,80,204,.48); }

body.theme-complete.theme-legendary .rupee-meter,
body.theme-complete.theme-legendary .progress-hud .heart-meter {
  border-color:rgba(255,190,61,.34);
  background:linear-gradient(90deg,rgba(110,61,6,.23),rgba(17,64,62,.17)),rgba(20,12,5,.96);
  box-shadow:0 9px 26px rgba(255,157,24,.035),0 9px 24px rgba(0,0,0,.28);
}
body.theme-complete.theme-legendary .rupee-meter { color:#55ddd9; }
body.theme-complete.theme-legendary .rupee-meter b { color:#fff0ae; }
body.theme-complete.theme-legendary .progress-hud .heart-meter span.filled { color:#ff7b35; text-shadow:0 0 12px rgba(255,135,35,.48); }

@media (max-width:620px){
  .progress-hud { left:12px; bottom:58px; min-width:124px; }
  .progress-hud .heart-meter { gap:2px; padding:0 6px; }
  .progress-hud .heart-meter span { width:12px; font-size:15px; }
}


/* ==========================================================================
   v2.39 // Discovery tuning, tiny HUD fixes, Easy Mode, and Mippi Bird scores
   ========================================================================== */
.ambient-secret { z-index:10050 !important; }
.ambient-secret.visible { pointer-events:auto !important; }

.progress-hud { pointer-events:none; }
.rupee-meter { display:none; }
.progress-hud.visible .rupee-meter.visible { display:flex; }
.progress-hud.ledger-open { z-index:248; }

.flappy-footer {
  min-height:34px; display:grid; grid-template-columns:auto auto 1fr; align-items:center;
  gap:8px; padding:5px 8px 6px 10px; border-top:1px solid rgba(93,174,255,.14);
  background:rgba(4,10,17,.92);
}
.flappy-footer > strong,.flappy-footer button { font:700 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.09em; }
.flappy-footer > strong { color:#72c8ff; white-space:nowrap; }
.flappy-footer .flappy-help { padding:0; border:0; text-align:right; }
.flappy-share-wrap { position:relative; }
#flappy-share { min-height:24px; padding:0 8px; border:1px solid rgba(93,174,255,.28); background:rgba(255,255,255,.02); color:#d8ecff; cursor:pointer; }
#flappy-share:hover { border-color:#67cfff; color:#fff; }
.flappy-share-menu {
  position:absolute; left:0; bottom:calc(100% + 6px); z-index:4; display:none; min-width:118px;
  padding:5px; gap:4px; border:1px solid rgba(93,174,255,.32); background:rgba(5,11,18,.98);
  box-shadow:0 12px 34px rgba(0,0,0,.48);
}
.flappy-share-menu.open { display:grid; }
.flappy-share-menu button { min-height:25px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); color:#9eb9d4; cursor:pointer; text-align:left; padding:0 7px; }
.flappy-share-menu button:hover { border-color:#67cfff; color:#fff; }

body.theme-complete:not(.theme-legendary) .flappy-footer { border-color:rgba(255,79,200,.18); background:rgba(13,6,18,.94); }
body.theme-complete:not(.theme-legendary) .flappy-footer > strong { color:#ff65cb; }
body.theme-complete:not(.theme-legendary) #flappy-share,
body.theme-complete:not(.theme-legendary) .flappy-share-menu { border-color:rgba(103,232,255,.34); }
body.theme-complete:not(.theme-legendary) #flappy-share:hover,
body.theme-complete:not(.theme-legendary) .flappy-share-menu button:hover { border-color:#ff59ca; color:#fff; }

body.theme-complete.theme-legendary .flappy-footer { border-color:rgba(255,179,44,.20); background:rgba(19,10,4,.95); }
body.theme-complete.theme-legendary .flappy-footer > strong { color:#ffc64a; }
body.theme-complete.theme-legendary #flappy-share,
body.theme-complete.theme-legendary .flappy-share-menu { border-color:rgba(73,219,215,.38); }
body.theme-complete.theme-legendary #flappy-share:hover,
body.theme-complete.theme-legendary .flappy-share-menu button:hover { border-color:#ffc64a; color:#fff4cf; }

@media (max-width:620px){
  .flappy-footer { grid-template-columns:1fr auto; }
  .flappy-footer .flappy-help { grid-column:1/-1; text-align:left; }
}

/* ==========================================================================
   v2.40 // Hero size hardening
   The hero used min-height historically, which left its final block size open
   to downstream content/layout interactions. Keep the opening scene bounded.
   ========================================================================== */
.hero {
  height: clamp(620px, calc(100svh - var(--header)), 760px);
  min-height: 0;
}
.hero-scene-wrap,
#hero-canvas {
  min-height: 0;
  max-height: 100%;
}
.hero-overlay {
  height: 100%;
  min-height: 0;
}

@media (max-width: 760px) {
  .hero {
    height: 720px;
    min-height: 0;
  }
  .hero-overlay {
    height: 100%;
    min-height: 0;
  }
}


/* ==========================================================================
   v2.41 // Inspect metadata must never mutate layout
   The Hero regression in v2.39 came from [data-dev-note] forcing position:relative
   onto .hero-scene-wrap. Inspect Mode is now presentation-only.
   ========================================================================== */


/* ==========================================================================
   v2.42 // Arcade boss escalation
   Ten regular UFO takedowns create a larger six-hit contact. Yes, the portfolio has a boss fight now.
   ========================================================================== */
.boss-ufo {
  z-index:86 !important;
  width:104px !important;
  height:72px !important;
  filter:drop-shadow(0 0 10px rgba(103,232,255,.58)) drop-shadow(0 0 24px rgba(47,147,255,.25)) !important;
}
.boss-ufo::before {
  left:34px !important; top:10px !important; width:34px !important; height:18px !important;
  background:#2f93ff !important;
  box-shadow:-17px 10px 0 #67e8ff,17px 10px 0 #67e8ff,-28px 22px 0 #176fc4,28px 22px 0 #176fc4,-15px 32px 0 #dff8ff,15px 32px 0 #dff8ff,0 24px 0 #fff !important;
}
.boss-ufo-label {
  position:absolute; left:50%; top:-15px; transform:translateX(-50%); color:#dff8ff;
  font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.18em; text-shadow:0 0 8px currentColor;
}
.boss-ufo-health {
  position:absolute; left:14px; right:14px; bottom:-10px; height:4px; border:1px solid rgba(255,255,255,.34); background:rgba(0,0,0,.72); overflow:hidden;
}
.boss-ufo-health i { display:block; width:100%; height:100%; background:linear-gradient(90deg,#2f93ff,#67e8ff); box-shadow:0 0 8px #67e8ff; transition:width .15s ease; }
.boss-ufo.boss-hit::before { filter:brightness(2.25) drop-shadow(0 0 12px #fff); }
body.theme-complete:not(.theme-legendary) .boss-ufo { filter:drop-shadow(0 0 12px rgba(255,79,200,.62)) drop-shadow(0 0 25px rgba(103,232,255,.24)) !important; }
body.theme-complete:not(.theme-legendary) .boss-ufo::before {
  background:#ff4fc8 !important;
  box-shadow:-17px 10px 0 #67e8ff,17px 10px 0 #67e8ff,-28px 22px 0 #a952ff,28px 22px 0 #a952ff,-15px 32px 0 #f9eaff,15px 32px 0 #f9eaff,0 24px 0 #fff !important;
}
body.theme-complete:not(.theme-legendary) .boss-ufo-label { color:#ff9ade; }
body.theme-complete:not(.theme-legendary) .boss-ufo-health i { background:linear-gradient(90deg,#b653ff,#ff4fc8,#67e8ff); box-shadow:0 0 9px #ff4fc8; }
body.theme-complete.theme-legendary .boss-ufo { filter:drop-shadow(0 0 13px rgba(255,173,45,.70)) drop-shadow(0 0 27px rgba(67,224,220,.28)) !important; }
body.theme-complete.theme-legendary .boss-ufo::before {
  background:#ff9a24 !important;
  box-shadow:-17px 10px 0 #43e0dc,17px 10px 0 #43e0dc,-28px 22px 0 #d66a0d,28px 22px 0 #d66a0d,-15px 32px 0 #fff0b5,15px 32px 0 #fff0b5,0 24px 0 #fff !important;
}
body.theme-complete.theme-legendary .boss-ufo-label { color:#ffd86a; }
body.theme-complete.theme-legendary .boss-ufo-health i { background:linear-gradient(90deg,#ff7a1a,#ffc83d,#43e0dc); box-shadow:0 0 10px #ffc83d; }


/* ========================================================================== 
   v2.45 // Real Rupee economy and shop
   ========================================================================== */
/* The two collection tracks reveal independently. A heart should not be required
   to prove that a wallet exists, and spending the wallet to zero should not hide it. */
.progress-hud .heart-meter { display:none; }
.progress-hud .heart-meter.visible { display:flex; }
.progress-hud .rupee-meter { pointer-events:auto; cursor:pointer; appearance:none; width:100%; text-align:left; }
.progress-hud .rupee-meter:hover { border-color:#67cfff; background:linear-gradient(90deg,rgba(23,91,142,.20),rgba(7,13,20,.96)); }
.progress-hud .rupee-meter:focus-visible { outline:2px solid #67cfff; outline-offset:2px; }
body.theme-complete:not(.theme-legendary) .progress-hud .rupee-meter:hover { border-color:#ff63ca; background:linear-gradient(90deg,rgba(116,35,151,.24),rgba(13,31,42,.20)),rgba(11,7,16,.97); }
body.theme-complete.theme-legendary .progress-hud .rupee-meter:hover { border-color:#55ddd9; background:linear-gradient(90deg,rgba(128,75,8,.31),rgba(17,78,74,.22)),rgba(20,12,5,.98); }

.shop-popup {
  position:fixed; inset:0; z-index:475; display:grid; place-items:center; padding:24px;
  background:rgba(0,0,0,.62); opacity:0; pointer-events:none; transition:opacity .18s ease; backdrop-filter:blur(5px);
}
.shop-popup.open { opacity:1; pointer-events:auto; }
.shop-window {
  position:relative; width:min(920px,calc(100vw - 34px)); max-height:min(790px,calc(100vh - 40px)); overflow:auto;
  padding:26px; border:1px solid rgba(88,166,255,.42);
  background:linear-gradient(145deg,#111b26,#080d13 72%); color:#eaf4ff;
  box-shadow:0 32px 120px rgba(0,0,0,.82),0 0 54px rgba(0,112,224,.10);
}
.shop-close { position:absolute; right:12px; top:10px; width:32px; height:32px; border:0; background:transparent; color:#91a7bb; font-size:24px; cursor:pointer; }
.shop-close:hover { color:#fff; }
.shop-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding-right:34px; }
.shop-kicker { display:block; color:#67b8ff; font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.16em; }
.shop-head h3 { margin:9px 0 0; font-size:clamp(30px,5vw,48px); line-height:.92; }
.shop-wallet { min-width:116px; display:grid; grid-template-columns:1fr auto; align-items:end; column-gap:10px; padding:10px 11px; border:1px solid rgba(93,174,255,.28); background:rgba(0,112,224,.07); }
.shop-wallet span,.shop-wallet small { font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.13em; color:#75caff; }
.shop-wallet small { grid-column:1/-1; margin-top:4px; color:#6e8295; }
.shop-wallet b { font:900 21px/.9 ui-monospace,SFMono-Regular,Consolas,monospace; color:#e8fbff; }
.shop-copy { max-width:680px; margin:18px 0 15px; color:#91a5b8; line-height:1.55; }
.shop-equipped-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; min-height:40px; padding:8px 10px; border:1px solid rgba(93,174,255,.18); background:rgba(255,255,255,.018); }
.shop-equipped-row > span { color:#6d8398; font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.15em; }
.shop-equipped-row > strong { color:#83d7ff; font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; }
#shop-unequip { visibility:hidden; min-height:26px; padding:0 9px; border:1px solid rgba(93,174,255,.24); background:#0c1722; color:#9bb1c5; font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
#shop-unequip.visible { visibility:visible; }
#shop-unequip:hover { border-color:#67cfff; color:#fff; }
.shop-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:10px; }
.shop-item { position:relative; min-height:168px; display:flex; flex-direction:column; padding:15px; border:1px solid rgba(93,174,255,.18); background:linear-gradient(145deg,rgba(22,38,53,.74),rgba(7,13,19,.88)); transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.shop-item:hover { border-color:rgba(103,207,255,.48); background:linear-gradient(145deg,rgba(26,49,68,.86),rgba(8,15,22,.94)); }
.shop-item.owned { border-color:rgba(93,174,255,.36); }
.shop-item.equipped { border-color:#67cfff; box-shadow:inset 3px 0 0 #168cff,0 0 24px rgba(0,112,224,.07); }
.shop-item.shop-denied { animation:shop-denied .28s ease; }
@keyframes shop-denied { 25%{translate:-4px 0} 50%{translate:4px 0} 75%{translate:-2px 0} }
.shop-item-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.shop-item-top span,.shop-item-top b { font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.13em; }
.shop-item-top span { color:#68bfff; }
.shop-item-top b { color:#8ba2b7; }
.shop-item h4 { margin:11px 0 6px; color:#edf7ff; font-size:18px; }
.shop-item p { margin:0 0 15px; color:#899fb3; font-size:12px; line-height:1.45; }
.shop-item button { margin-top:auto; min-height:34px; border:1px solid rgba(93,174,255,.34); background:rgba(0,112,224,.10); color:#cfeaff; font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.09em; cursor:pointer; }
.shop-item button:hover:not(:disabled) { border-color:#67cfff; background:rgba(0,112,224,.22); color:#fff; }
.shop-item button:disabled { opacity:.48; cursor:default; }
.shop-item.equipped button:disabled { opacity:1; color:#a7e7ff; background:rgba(0,112,224,.18); }
.shop-merchant { margin:13px 0 0; min-height:18px; color:#71889d; font:800 8px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; }
.ufo-projectile.warranty-deflected { background:#ffd468 !important; box-shadow:0 0 8px #fff1a8,0 0 22px #ffad24 !important; }

body.theme-complete:not(.theme-legendary) .shop-window { border-color:rgba(214,104,255,.46); background:linear-gradient(145deg,#1a0d25,#0b0a13 72%); box-shadow:0 32px 120px rgba(0,0,0,.82),0 0 58px rgba(191,66,255,.10); }
body.theme-complete:not(.theme-legendary) .shop-kicker,body.theme-complete:not(.theme-legendary) .shop-item-top span { color:#ff68ce; }
body.theme-complete:not(.theme-legendary) .shop-wallet,body.theme-complete:not(.theme-legendary) .shop-equipped-row,body.theme-complete:not(.theme-legendary) .shop-item { border-color:rgba(213,104,255,.27); }
body.theme-complete:not(.theme-legendary) .shop-wallet { background:rgba(171,54,226,.08); }
body.theme-complete:not(.theme-legendary) .shop-wallet span { color:#ff70d4; }
body.theme-complete:not(.theme-legendary) .shop-wallet b,body.theme-complete:not(.theme-legendary) .shop-equipped-row > strong { color:#6be9f5; }
body.theme-complete:not(.theme-legendary) .shop-item.equipped { border-color:#ff5acb; box-shadow:inset 3px 0 0 #c747ff,0 0 26px rgba(224,78,255,.09); }
body.theme-complete:not(.theme-legendary) .shop-item button { border-color:rgba(214,104,255,.38); background:rgba(178,54,226,.10); }
body.theme-complete:not(.theme-legendary) .shop-item button:hover:not(:disabled) { border-color:#ff62cf; background:rgba(214,61,246,.20); }

body.theme-complete.theme-legendary .shop-window { border-color:rgba(255,192,64,.52); background:linear-gradient(145deg,#211506,#090d0d 74%); box-shadow:0 32px 120px rgba(0,0,0,.84),0 0 62px rgba(255,165,27,.10); }
body.theme-complete.theme-legendary .shop-kicker,body.theme-complete.theme-legendary .shop-item-top span { color:#ffd15c; }
body.theme-complete.theme-legendary .shop-wallet,body.theme-complete.theme-legendary .shop-equipped-row,body.theme-complete.theme-legendary .shop-item { border-color:rgba(255,190,61,.29); }
body.theme-complete.theme-legendary .shop-wallet { background:linear-gradient(90deg,rgba(139,77,7,.23),rgba(17,73,70,.13)); }
body.theme-complete.theme-legendary .shop-wallet span { color:#ffd465; }
body.theme-complete.theme-legendary .shop-wallet b,body.theme-complete.theme-legendary .shop-equipped-row > strong { color:#61e5df; }
body.theme-complete.theme-legendary .shop-item.equipped { border-color:#55ddd9; box-shadow:inset 3px 0 0 #ffad24,0 0 28px rgba(255,173,36,.10); }
body.theme-complete.theme-legendary .shop-item button { border-color:rgba(255,190,61,.38); background:rgba(141,78,8,.18); color:#ffe8a6; }
body.theme-complete.theme-legendary .shop-item button:hover:not(:disabled) { border-color:#55ddd9; background:rgba(22,104,99,.22); color:#87f4ee; }

@media (max-width:700px){
  .shop-popup { padding:10px; }
  .shop-window { width:100%; max-height:calc(100vh - 20px); padding:20px 15px; }
  .shop-head { gap:12px; }
  .shop-wallet { min-width:98px; }
  .shop-items { grid-template-columns:1fr; }
  .shop-equipped-row { grid-template-columns:auto 1fr; }
  #shop-unequip { grid-column:1/-1; justify-self:start; }
}


/* ========================================================================== 
   v2.46 // Shop readability, locked Legendary preview, full rarity treatment
   ========================================================================== */
/* The store should tease future progression without spoiling it. Golden Trigger
   is always present, but Rare/Epic visitors only see a Legendary mystery slot. */
.shop-popup { background:rgba(1,7,13,.72); }
.shop-window { scrollbar-color:rgba(103,207,255,.48) rgba(4,10,16,.65); }
.shop-close { border:1px solid transparent; border-radius:2px; transition:color .15s ease,border-color .15s ease,background .15s ease; }
.shop-close:hover,.shop-close:focus-visible { color:#fff; border-color:rgba(103,207,255,.46); background:rgba(0,112,224,.14); outline:none; }
.shop-head h3 { color:#f2f8ff; }
.shop-copy { color:#9eb3c6; }
.shop-equipped-row { background:linear-gradient(90deg,rgba(0,112,224,.055),rgba(255,255,255,.012)); }
.shop-equipped-row > span { color:#7f96aa; }
#shop-unequip { min-height:30px; padding:0 11px; border-color:rgba(93,174,255,.34); background:rgba(3,15,25,.92); color:#b7cadd; font-size:8px; }
#shop-unequip:hover,#shop-unequip:focus-visible { border-color:#67cfff; color:#fff; background:rgba(0,112,224,.18); outline:none; }
.shop-item { overflow:hidden; }
.shop-item-top span { color:#68bfff; }
.shop-item-top b { color:#b4c8da; font-size:9px; letter-spacing:.10em; white-space:nowrap; }
.shop-item h4 { color:#f3f8ff; }
.shop-item p { color:#9cafc0; }
.shop-item button {
  min-height:42px; padding:0 14px; font-size:11px; letter-spacing:.075em;
  display:flex; align-items:center; justify-content:center; text-align:center;
}
.shop-item button:focus-visible { outline:2px solid #67cfff; outline-offset:2px; }
.shop-item button:disabled { opacity:.58; }
.shop-item.owned button:disabled,.shop-item.equipped button:disabled { opacity:1; }
.shop-merchant { color:#859caf; }

.shop-item.locked {
  border-color:rgba(116,140,161,.24);
  background:
    linear-gradient(135deg,rgba(255,255,255,.018) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.018) 50%,rgba(255,255,255,.018) 75%,transparent 75%) 0 0/16px 16px,
    linear-gradient(145deg,rgba(17,29,40,.78),rgba(7,12,17,.94));
}
.shop-item.locked:hover { border-color:rgba(143,164,183,.34); background:
    linear-gradient(135deg,rgba(255,255,255,.022) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.022) 50%,rgba(255,255,255,.022) 75%,transparent 75%) 0 0/16px 16px,
    linear-gradient(145deg,rgba(18,31,43,.84),rgba(7,12,17,.96)); }
.shop-item.locked .shop-item-top span,.shop-item.locked .shop-item-top b { color:#718497; }
.shop-item.locked h4 { color:#9badbd; letter-spacing:.16em; }
.shop-item.locked p { color:#8395a5; }
.shop-item.locked button:disabled { opacity:1; border-color:rgba(125,147,166,.26); background:rgba(77,92,105,.08); color:#8195a6; }

/* EPIC // violet + pink with cyan response accents. */
body.theme-complete:not(.theme-legendary) .shop-popup { background:rgba(11,2,17,.76); }
body.theme-complete:not(.theme-legendary) .shop-window { scrollbar-color:rgba(255,98,207,.50) rgba(13,7,20,.72); }
body.theme-complete:not(.theme-legendary) .shop-close { color:#bba6c9; }
body.theme-complete:not(.theme-legendary) .shop-close:hover,
body.theme-complete:not(.theme-legendary) .shop-close:focus-visible { color:#fff; border-color:#ff62cf; background:rgba(201,65,236,.15); }
body.theme-complete:not(.theme-legendary) .shop-head h3 { color:#fff3fd; }
body.theme-complete:not(.theme-legendary) .shop-copy { color:#bda7c5; }
body.theme-complete:not(.theme-legendary) .shop-equipped-row { background:linear-gradient(90deg,rgba(177,47,222,.09),rgba(30,167,185,.035)); }
body.theme-complete:not(.theme-legendary) .shop-equipped-row > span { color:#aa8fb4; }
body.theme-complete:not(.theme-legendary) #shop-unequip { border-color:rgba(215,102,255,.36); background:rgba(24,7,31,.90); color:#d7bddf; }
body.theme-complete:not(.theme-legendary) #shop-unequip:hover,
body.theme-complete:not(.theme-legendary) #shop-unequip:focus-visible { border-color:#ff62cf; background:rgba(202,59,237,.18); color:#fff; }
body.theme-complete:not(.theme-legendary) .shop-item { background:linear-gradient(145deg,rgba(38,15,49,.82),rgba(10,8,17,.94)); }
body.theme-complete:not(.theme-legendary) .shop-item:hover { border-color:rgba(255,99,207,.54); background:linear-gradient(145deg,rgba(50,18,64,.88),rgba(13,9,22,.97)); }
body.theme-complete:not(.theme-legendary) .shop-item-top b { color:#d2b8dc; }
body.theme-complete:not(.theme-legendary) .shop-item h4 { color:#fff0fb; }
body.theme-complete:not(.theme-legendary) .shop-item p { color:#bba6c3; }
body.theme-complete:not(.theme-legendary) .shop-item button { color:#f6d8f2; }
body.theme-complete:not(.theme-legendary) .shop-item button:focus-visible { outline-color:#ff62cf; }
body.theme-complete:not(.theme-legendary) .shop-item.equipped button:disabled { color:#72eff4; background:rgba(31,179,194,.12); border-color:rgba(103,232,255,.42); }
body.theme-complete:not(.theme-legendary) .shop-merchant { color:#ad93b7; }
body.theme-complete:not(.theme-legendary) .shop-item.locked { border-color:rgba(138,104,151,.30); background:
    linear-gradient(135deg,rgba(221,121,255,.022) 25%,transparent 25%,transparent 50%,rgba(221,121,255,.022) 50%,rgba(221,121,255,.022) 75%,transparent 75%) 0 0/16px 16px,
    linear-gradient(145deg,rgba(28,17,34,.86),rgba(10,8,14,.96)); }
body.theme-complete:not(.theme-legendary) .shop-item.locked .shop-item-top span,
body.theme-complete:not(.theme-legendary) .shop-item.locked .shop-item-top b,
body.theme-complete:not(.theme-legendary) .shop-item.locked h4 { color:#9b7ba6; }
body.theme-complete:not(.theme-legendary) .shop-item.locked p { color:#947f9c; }
body.theme-complete:not(.theme-legendary) .shop-item.locked button:disabled { border-color:rgba(160,110,177,.28); background:rgba(111,60,127,.08); color:#997da2; }

/* LEGENDARY // gold/amber economy with teal interaction accents. */
body.theme-complete.theme-legendary .shop-popup { background:rgba(10,6,1,.78); }
body.theme-complete.theme-legendary .shop-window { scrollbar-color:rgba(255,190,61,.54) rgba(17,10,3,.72); }
body.theme-complete.theme-legendary .shop-close { color:#c6ab78; }
body.theme-complete.theme-legendary .shop-close:hover,
body.theme-complete.theme-legendary .shop-close:focus-visible { color:#fff5d0; border-color:#55ddd9; background:rgba(20,107,102,.17); }
body.theme-complete.theme-legendary .shop-head h3 { color:#fff2c0; }
body.theme-complete.theme-legendary .shop-copy { color:#c6ad82; }
body.theme-complete.theme-legendary .shop-equipped-row { background:linear-gradient(90deg,rgba(143,79,7,.16),rgba(18,99,94,.08)); }
body.theme-complete.theme-legendary .shop-equipped-row > span { color:#b49a69; }
body.theme-complete.theme-legendary #shop-unequip { border-color:rgba(255,190,61,.38); background:rgba(31,19,4,.92); color:#e6c982; }
body.theme-complete.theme-legendary #shop-unequip:hover,
body.theme-complete.theme-legendary #shop-unequip:focus-visible { border-color:#55ddd9; background:rgba(20,104,99,.18); color:#8df5ef; }
body.theme-complete.theme-legendary .shop-item { background:linear-gradient(145deg,rgba(47,29,6,.84),rgba(8,12,11,.95)); }
body.theme-complete.theme-legendary .shop-item:hover { border-color:rgba(255,197,76,.58); background:linear-gradient(145deg,rgba(62,38,8,.90),rgba(9,17,15,.97)); }
body.theme-complete.theme-legendary .shop-item-top b { color:#d8c08a; }
body.theme-complete.theme-legendary .shop-item h4 { color:#fff2bf; }
body.theme-complete.theme-legendary .shop-item p { color:#c1aa80; }
body.theme-complete.theme-legendary .shop-item.equipped button:disabled { color:#8ff5ef; background:rgba(17,104,99,.19); border-color:rgba(85,221,217,.52); }
body.theme-complete.theme-legendary .shop-item button:focus-visible { outline-color:#55ddd9; }
body.theme-complete.theme-legendary .shop-merchant { color:#af9769; }

/* Golden Trigger stops being mysterious once Legendary exists. This rule is
   defensive in case stale DOM ever carries the locked class for one frame. */
body.theme-complete.theme-legendary .shop-item.locked { border-color:rgba(255,190,61,.29); opacity:1; }

@media (max-width:700px){
  .shop-item button { min-height:44px; font-size:10px; }
  .shop-item-top b { font-size:8px; }
}


/* ==========================================================================
   v2.47 // Cross-system interaction pass
   ========================================================================== */
/* Doug's offscreen cameo is an affordance now, not scenery. If a dog appears
   in reach, users will try to pet it. They were correct. */
.doug-peek {
  appearance:none; -webkit-appearance:none; padding:0; border:0; background:transparent;
}
.doug-peek.show { pointer-events:auto; cursor:grab; }
.doug-peek.show:active { cursor:grabbing; }
.doug-peek.show:hover img,.doug-peek.show:focus-visible img {
  border-color:#67cfff; box-shadow:0 0 0 2px rgba(103,207,255,.12),0 0 28px rgba(47,147,255,.22);
}
.doug-peek:focus-visible { outline:none; }
.doug-peek.petted img { transform:scale(1.025); }
.doug-peek img { transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease; }
.doug-peek-shades {
  position:absolute; z-index:4; left:50%; top:82px; transform:translateX(-50%) rotate(-4deg) scale(.88);
  opacity:0; pointer-events:none; font-size:42px; line-height:1; filter:drop-shadow(0 3px 4px rgba(0,0,0,.72));
  transition:opacity .14s ease,transform .14s ease;
}
.doug-peek.star-cool .doug-peek-shades { opacity:1; transform:translateX(-50%) rotate(-4deg) scale(1); }
.doug-card.doug-star-cool .doug-photo-wrap::after {
  content:'🕶️'; position:absolute; z-index:5; left:50%; top:48%; transform:translate(-50%,-50%) rotate(-5deg);
  font-size:38px; line-height:1; pointer-events:none; filter:drop-shadow(0 3px 4px rgba(0,0,0,.72));
  animation:doug-star-cool .32s cubic-bezier(.2,.9,.3,1.25) both;
}
@keyframes doug-star-cool { from{opacity:0;transform:translate(-50%,-50%) rotate(-10deg) scale(.45)} to{opacity:1;transform:translate(-50%,-50%) rotate(-5deg) scale(1)} }
body.theme-complete:not(.theme-legendary) .doug-peek.show:hover img,body.theme-complete:not(.theme-legendary) .doug-peek.show:focus-visible img {
  border-color:#ff62cf; box-shadow:0 0 0 2px rgba(255,98,207,.12),0 0 30px rgba(103,232,255,.18);
}
body.theme-complete.theme-legendary .doug-peek.show:hover img,body.theme-complete.theme-legendary .doug-peek.show:focus-visible img {
  border-color:#55ddd9; box-shadow:0 0 0 2px rgba(85,221,217,.12),0 0 32px rgba(255,190,61,.20);
}

/* Arcade rewards visibly bridge combat into the Rupee economy before the
   wallet total updates. */
.arcade-rupee-reward {
  position:fixed; z-index:9994; width:18px; height:18px; margin:-9px 0 0 -9px; pointer-events:none;
  display:grid; place-items:center; color:#6bd4ff; font:900 22px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-shadow:0 0 8px #2f93ff,0 0 18px rgba(103,232,255,.78);
  animation:arcade-rupee-reward .82s cubic-bezier(.18,.78,.24,1) forwards;
}
@keyframes arcade-rupee-reward {
  0%{opacity:0;transform:translate(0,0) rotate(45deg) scale(.35)}
  18%{opacity:1;transform:translate(calc(var(--rx)*.28),calc(var(--ry)*.55)) rotate(45deg) scale(1.2)}
  100%{opacity:0;transform:translate(var(--rx),var(--ry)) rotate(225deg) scale(.55)}
}
body.theme-complete:not(.theme-legendary) .arcade-rupee-reward { color:#67e8ff; text-shadow:0 0 9px #67e8ff,0 0 20px rgba(255,79,200,.72); }
body.theme-complete.theme-legendary .arcade-rupee-reward { color:#55ddd9; text-shadow:0 0 9px #55ddd9,0 0 20px rgba(255,190,61,.82); }

/* Star Power is deliberately louder in Legendary when two progression systems
   overlap, but the underlying rule remains hover-to-contact. */
body.theme-legendary.star-power .completion-cursor-aura {
  box-shadow:0 0 18px #fff0b5,0 0 30px #ffc43f,0 0 42px #ff7a1a,0 0 54px #43e0dc,0 0 68px #ffffff !important;
}


/* ==========================================================================
   v2.48 // Doug theme image pass
   ========================================================================== */
/* Theme-specific Doug art now carries the cool-state itself, so the previous
   emoji sunglasses overlays retire gracefully. */
.doug-card.doug-star-cool .doug-photo-wrap::after { content:none !important; display:none !important; }
.doug-peek-shades { display:none !important; }


/* ==========================================================================
   v2.49 // Doug popup fix + UFO arcade arc
   ========================================================================== */

/* Popup Doug is a real interaction surface. Keep him above every normal HUD/game
   layer and strip every trace of native/inherited button chrome. Children do not
   take pointer input so the entire visible cameo pets the same button. */
.doug-peek {
  z-index:10070 !important;
  display:block;
  box-sizing:border-box;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:inherit;
  font:inherit;
  appearance:none !important;
  -webkit-appearance:none !important;
  pointer-events:none !important;
  touch-action:manipulation;
}
.doug-peek.show {
  pointer-events:auto !important;
  cursor:grab !important;
}
.doug-peek.show:active { cursor:grabbing !important; }
.doug-peek > * { pointer-events:none !important; }
.doug-peek img { background:transparent !important; box-shadow:none; }
.doug-peek.show:hover img,
.doug-peek.show:focus-visible img { transform:scale(1.018); }
.doug-peek:focus-visible img { outline:2px solid #67cfff; outline-offset:3px; }
body.theme-complete:not(.theme-legendary) .doug-peek:focus-visible img { outline-color:#ff62cf; }
body.theme-complete.theme-legendary .doug-peek:focus-visible img { outline-color:#55ddd9; }

/* Regular UFOs quietly become more threatening as the current ten-kill cycle
   approaches the boss. The visual escalation is intentionally modest. */
.galaga-secret.ufo-threat-2 {
  filter:drop-shadow(0 0 10px rgba(103,232,255,.62)) drop-shadow(0 0 16px rgba(255,79,200,.20));
}
.galaga-secret.ufo-threat-3 {
  filter:drop-shadow(0 0 12px rgba(103,232,255,.78)) drop-shadow(0 0 22px rgba(255,79,200,.30));
}
body.theme-complete:not(.theme-legendary) .galaga-secret.ufo-threat-2 {
  filter:drop-shadow(0 0 11px rgba(255,79,200,.62)) drop-shadow(0 0 18px rgba(103,232,255,.24)) !important;
}
body.theme-complete:not(.theme-legendary) .galaga-secret.ufo-threat-3 {
  filter:drop-shadow(0 0 14px rgba(255,79,200,.82)) drop-shadow(0 0 25px rgba(103,232,255,.32)) !important;
}
body.theme-complete.theme-legendary .galaga-secret.ufo-threat-2 {
  filter:drop-shadow(0 0 11px rgba(255,190,61,.62)) drop-shadow(0 0 18px rgba(67,224,220,.24)) !important;
}
body.theme-complete.theme-legendary .galaga-secret.ufo-threat-3 {
  filter:drop-shadow(0 0 14px rgba(255,190,61,.82)) drop-shadow(0 0 25px rgba(67,224,220,.34)) !important;
}

.boss-ufo-integrity {
  position:absolute;
  left:50%;
  bottom:-24px;
  transform:translateX(-50%);
  width:max-content;
  padding:3px 5px;
  border:1px solid rgba(103,232,255,.28);
  background:rgba(3,8,13,.90);
  color:#dff8ff;
  font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.08em;
  white-space:nowrap;
  text-shadow:0 0 7px currentColor;
}
body.theme-complete:not(.theme-legendary) .boss-ufo-integrity {
  border-color:rgba(255,79,200,.34);
  background:rgba(18,5,24,.92);
  color:#ffd5f3;
}
body.theme-complete.theme-legendary .boss-ufo-integrity {
  border-color:rgba(67,224,220,.34);
  background:rgba(20,12,3,.92);
  color:#ffe8a6;
}

.arcade-hit-flash {
  position:fixed;
  inset:0;
  z-index:10040;
  pointer-events:none;
  opacity:0;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 1px,transparent 1px 5px),
    radial-gradient(circle at var(--hit-x,50%) var(--hit-y,50%),rgba(103,232,255,.18),transparent 22%);
  mix-blend-mode:screen;
  animation:arcade-hit-flash .28s steps(2,end) forwards;
}
@keyframes arcade-hit-flash {
  0% { opacity:0; }
  18% { opacity:.95; transform:translateX(0); }
  45% { opacity:.48; transform:translateX(3px); }
  72% { opacity:.30; transform:translateX(-2px); }
  100% { opacity:0; transform:translateX(0); }
}
body.theme-complete:not(.theme-legendary) .arcade-hit-flash {
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 5px),
    radial-gradient(circle at var(--hit-x,50%) var(--hit-y,50%),rgba(255,79,200,.20),transparent 22%);
}
body.theme-complete.theme-legendary .arcade-hit-flash {
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 5px),
    radial-gradient(circle at var(--hit-x,50%) var(--hit-y,50%),rgba(255,190,61,.20),rgba(67,224,220,.08) 12%,transparent 24%);
}


/* ==========================================================================
   v2.51 // Pass 6: Dynamic Objectives
   ========================================================================== */
/* This is deliberately a compact opportunity card rather than a quest log.
   It rides above the existing discovery stack and gets out of the way when
   the Director detects that another interaction owns the player's attention. */
.dynamic-objective {
  position:fixed; left:18px; bottom:60px; z-index:249;
  width:min(318px,calc(100vw - 36px)); padding:11px 12px 10px;
  border:1px solid rgba(89,177,255,.34);
  background:linear-gradient(145deg,rgba(11,20,30,.975),rgba(5,10,16,.985));
  box-shadow:0 16px 44px rgba(0,0,0,.42),0 0 24px rgba(47,147,255,.045);
  opacity:0; transform:translateY(8px) scale(.985); pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,bottom .18s ease,filter .16s ease;
}
.dynamic-objective.show { opacity:1; transform:none; pointer-events:auto; }
.dynamic-objective.attention-muted { opacity:1; pointer-events:auto; filter:none; }
.objective-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.objective-topline span { color:#67cfff; font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.14em; }
.objective-topline button { width:20px; height:20px; padding:0; border:0; background:transparent; color:#70879f; font:700 17px/1 Arial,sans-serif; cursor:pointer; }
.objective-topline button:hover,.objective-topline button:focus-visible { color:#fff; outline:0; }
.dynamic-objective > strong { display:block; margin-top:7px; color:#edf7ff; font-size:12px; line-height:1.25; }
.dynamic-objective > small { display:block; margin-top:4px; color:#8097ad; font-size:9px; line-height:1.4; }
.objective-progress { height:3px; margin-top:9px; overflow:hidden; background:rgba(116,166,211,.10); }
.objective-progress i { display:block; width:0; height:100%; background:linear-gradient(90deg,#2f93ff,#67e8ff); box-shadow:0 0 12px rgba(103,232,255,.35); transition:width .22s linear; }
.objective-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
.objective-footer span,.objective-footer b { font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.10em; }
.objective-footer span { color:#6e8da9; }
.objective-footer b { color:#bdefff; }
.dynamic-objective.complete { border-color:rgba(103,232,255,.52); box-shadow:0 16px 44px rgba(0,0,0,.42),0 0 28px rgba(47,147,255,.09); }
.dynamic-objective.complete .objective-progress i { width:100% !important; }
.dynamic-objective.failed { border-color:rgba(255,92,92,.54); box-shadow:0 16px 44px rgba(0,0,0,.44),0 0 28px rgba(255,70,70,.08); }
.dynamic-objective.failed .objective-topline span,.dynamic-objective.failed .objective-footer b { color:#ff8585 !important; }
.dynamic-objective.failed .objective-progress { background:rgba(255,90,90,.11) !important; }
.dynamic-objective.failed .objective-progress i { background:linear-gradient(90deg,#ff9b72,#ff4d68) !important; box-shadow:0 0 12px rgba(255,77,104,.28) !important; }


body.theme-complete:not(.theme-legendary) .dynamic-objective {
  border-color:rgba(217,108,255,.40);
  background:linear-gradient(145deg,rgba(25,10,34,.98),rgba(7,18,25,.985));
  box-shadow:0 16px 44px rgba(0,0,0,.44),0 0 26px rgba(255,79,200,.055);
}
body.theme-complete:not(.theme-legendary) .objective-topline span { color:#ff69cf; }
body.theme-complete:not(.theme-legendary) .dynamic-objective > strong { color:#fff1ff; }
body.theme-complete:not(.theme-legendary) .dynamic-objective > small { color:#aa91b5; }
body.theme-complete:not(.theme-legendary) .objective-progress { background:rgba(203,115,235,.10); }
body.theme-complete:not(.theme-legendary) .objective-progress i { background:linear-gradient(90deg,#b13cff,#ff4fc8,#67e8ff); box-shadow:0 0 13px rgba(255,79,200,.34); }
body.theme-complete:not(.theme-legendary) .objective-footer b { color:#86efff; }
body.theme-complete:not(.theme-legendary) .dynamic-objective.complete { border-color:rgba(103,232,255,.52); }

body.theme-complete.theme-legendary .dynamic-objective {
  border-color:rgba(255,194,66,.42);
  background:linear-gradient(145deg,rgba(38,25,7,.985),rgba(12,12,7,.99) 72%);
  box-shadow:0 16px 46px rgba(0,0,0,.48),0 0 30px rgba(255,176,31,.06);
}
body.theme-complete.theme-legendary .objective-topline span { color:#ffc94e; }
body.theme-complete.theme-legendary .dynamic-objective > strong { color:#fff4cb; }
body.theme-complete.theme-legendary .dynamic-objective > small { color:#b9a67b; }
body.theme-complete.theme-legendary .objective-progress { background:rgba(255,200,81,.09); }
body.theme-complete.theme-legendary .objective-progress i { background:linear-gradient(90deg,#ff7a1a,#ffc83d,#43e0dc); box-shadow:0 0 14px rgba(255,196,63,.34); }
body.theme-complete.theme-legendary .objective-footer span { color:#9e895e; }
body.theme-complete.theme-legendary .objective-footer b { color:#65e5df; }
body.theme-complete.theme-legendary .dynamic-objective.complete { border-color:rgba(67,224,220,.50); }

@media (max-width:620px){
  .dynamic-objective { left:12px; width:min(300px,calc(100vw - 24px)); }
}


/* ==========================================================================
   v2.52 // Full rarity theme audit + player-model surfaces
   ========================================================================== */
/* Central semantic rarity tokens. These intentionally sit at the end of the
   cascade so new UI does not accidentally inherit an old blue, purple, or gold
   from whichever feature happened to be written first. */
body {
  --rarity-primary:#2f93ff;
  --rarity-secondary:#67e8ff;
  --rarity-hot:#8fd6ff;
  --rarity-panel:rgba(6,12,19,.975);
  --rarity-panel-2:rgba(10,20,31,.97);
  --rarity-line:rgba(93,174,255,.38);
  --rarity-text:#edf8ff;
  --rarity-muted:#8fa9c0;
  --rarity-shadow:rgba(47,147,255,.10);
}
body.theme-complete:not(.theme-legendary) {
  --rarity-primary:#b13cff;
  --rarity-secondary:#67e8ff;
  --rarity-hot:#ff4fc8;
  --rarity-panel:rgba(24,9,34,.978);
  --rarity-panel-2:rgba(12,19,27,.97);
  --rarity-line:rgba(215,104,255,.44);
  --rarity-text:#fff2ff;
  --rarity-muted:#b59bc1;
  --rarity-shadow:rgba(255,79,200,.11);
}
body.theme-complete.theme-legendary {
  --rarity-primary:#ff9d25;
  --rarity-secondary:#43e0dc;
  --rarity-hot:#ffc83d;
  --rarity-panel:rgba(30,18,5,.982);
  --rarity-panel-2:rgba(9,20,19,.97);
  --rarity-line:rgba(255,192,64,.46);
  --rarity-text:#fff3c7;
  --rarity-muted:#c2ad83;
  --rarity-shadow:rgba(255,159,31,.10);
}

/* Discovery UI: ledger, hint, rarity selector, progression HUD, objectives. */
.ledger-trigger,.theme-cycle-trigger,.hint-trigger,
.progress-hud .rupee-meter,.progress-hud .heart-meter {
  border-color:var(--rarity-line);
}
.achievement-ledger,.dynamic-objective {
  border-color:var(--rarity-line);
  box-shadow:0 20px 64px rgba(0,0,0,.48),0 0 30px var(--rarity-shadow);
}
.ledger-head button,.objective-topline button { color:var(--rarity-muted); }
.ledger-head button:hover,.ledger-head button:focus-visible,
.objective-topline button:hover,.objective-topline button:focus-visible { color:var(--rarity-secondary); outline:0; }
.ledger-controls button:hover:not(:disabled),.ledger-controls button:focus-visible:not(:disabled) {
  border-color:var(--rarity-secondary); color:var(--rarity-text); outline:0;
}
body.theme-complete:not(.theme-legendary) .ledger-entry.unlocked { box-shadow:inset 2px 0 0 var(--rarity-hot); }
body.theme-complete.theme-legendary .ledger-entry.unlocked { box-shadow:inset 2px 0 0 var(--rarity-secondary); }
body.theme-complete.theme-legendary .hint-trigger {
  border-color:rgba(255,190,61,.48); color:#ffe5a0;
  background:linear-gradient(90deg,rgba(126,69,7,.32),rgba(34,106,102,.10)),rgba(24,14,5,.96);
}
body.theme-complete.theme-legendary .hint-trigger:hover,
body.theme-complete.theme-legendary .hint-trigger:focus-visible {
  border-color:#55ddd9; color:#7bf3ed; background:linear-gradient(90deg,rgba(143,76,8,.38),rgba(36,136,131,.16)),rgba(24,14,5,.98); outline:0;
}

/* Dev console and asynchronous progress. Rare was previously inheriting the
   Epic purple shader bar because this component predated the rarity split. */
.dev-console { border-color:var(--rarity-line); }
.console-head { border-bottom-color:var(--rarity-line); color:var(--rarity-primary); }
.console-head button { color:var(--rarity-muted); }
.console-head button:hover,.console-head button:focus-visible { color:var(--rarity-secondary); outline:0; }
.console-input-row { border-top-color:var(--rarity-line); color:var(--rarity-primary); }
.console-input-row input { color:var(--rarity-text); }
.console-progress { border-color:color-mix(in srgb,var(--rarity-secondary) 38%,transparent); }
.console-progress > i { background:linear-gradient(90deg,var(--rarity-primary),var(--rarity-secondary)) !important; box-shadow:0 0 12px var(--rarity-shadow); }
.console-line.good { color:#78dfc0; }
body.theme-complete:not(.theme-legendary) .console-line.good { color:#7cebf4; }
body.theme-complete.theme-legendary .console-line.good { color:#75e8df; }
body.theme-complete:not(.theme-legendary) .console-line.warn { color:#ff8bd7; }
body.theme-complete.theme-legendary .console-line.warn { color:#ffc963; }
body.theme-complete:not(.theme-legendary) .dev-console {
  background:linear-gradient(180deg,rgba(25,10,35,.986),rgba(7,11,17,.99));
}

/* Faux Unreal performance stats now belong to the active rarity while still
   retaining their compact engine-stat silhouette. */
.fps-stat {
  border:1px solid var(--rarity-line);
  background:color-mix(in srgb,var(--rarity-panel) 88%,transparent);
  color:var(--rarity-secondary);
  box-shadow:0 10px 30px rgba(0,0,0,.34),0 0 18px var(--rarity-shadow);
  text-shadow:0 0 8px color-mix(in srgb,var(--rarity-secondary) 45%,transparent);
}
body.theme-complete:not(.theme-legendary) .fps-stat { color:#ff86d7; }
body.theme-complete.theme-legendary .fps-stat { color:#72e9e4; }

/* Vibe/Gipiti overlay. */
.vibe-agent.active {
  border-color:var(--rarity-line);
  background:var(--rarity-panel);
  color:var(--rarity-text);
  box-shadow:0 12px 36px rgba(0,0,0,.34),0 0 20px var(--rarity-shadow);
}
.vibe-agent i { background:var(--rarity-secondary); box-shadow:0 0 12px var(--rarity-secondary),0 0 24px var(--rarity-shadow); }
body:not(.theme-complete).vibe-mode::after { background:linear-gradient(110deg,transparent 20%,rgba(47,147,255,.024) 42%,rgba(103,232,255,.038) 57%,transparent 76%); }
body.theme-complete:not(.theme-legendary).vibe-mode::after { background:linear-gradient(110deg,transparent 20%,rgba(103,232,255,.025) 42%,rgba(255,79,200,.04) 57%,transparent 76%); }
body.theme-complete.theme-legendary.vibe-mode::after { background:linear-gradient(110deg,transparent 20%,rgba(255,157,37,.028) 42%,rgba(67,224,220,.04) 57%,transparent 76%); }
body.theme-complete:not(.theme-legendary) .vibe-agent i { animation-name:vibe-thinking-epic; }
body.theme-complete.theme-legendary .vibe-agent i { animation-name:vibe-thinking-legendary; }
@keyframes vibe-thinking-epic { to{transform:scale(1.45);background:#ff4fc8;} }
@keyframes vibe-thinking-legendary { to{transform:scale(1.45);background:#ffc83d;} }

/* Blueprint and compile remain recognizably Unreal-like, but their chrome now
   acknowledges the current rarity. Semantic node-header colors stay intact. */
body.theme-complete:not(.theme-legendary) .blueprint-popup,
body.theme-complete:not(.theme-legendary) .compile-popup { background:rgba(9,2,13,.62); }
body.theme-complete:not(.theme-legendary) .blueprint-window,
body.theme-complete:not(.theme-legendary) .compile-window {
  border-color:rgba(213,104,255,.48); box-shadow:0 30px 100px rgba(0,0,0,.78),0 0 42px rgba(255,79,200,.08);
}
body.theme-complete:not(.theme-legendary) .blueprint-titlebar { background:#2a1832; border-bottom-color:#110817; color:#f6e8ff; }
body.theme-complete:not(.theme-legendary) .blueprint-toolbar { background:#211629; border-bottom-color:#100914; color:#c8b4d2; }
body.theme-complete:not(.theme-legendary) .blueprint-toolbar b { color:#ff72cf; }
body.theme-complete:not(.theme-legendary) .blueprint-stage {
  background-color:#130d18; background-image:linear-gradient(rgba(216,119,255,.085) 1px,transparent 1px),linear-gradient(90deg,rgba(103,232,255,.065) 1px,transparent 1px);
}
body.theme-complete:not(.theme-legendary) .bp-add-valid { border-color:#67e8ff; background:#252036; color:#f5faff; box-shadow:0 0 0 4px rgba(18,9,24,.80); }
body.theme-complete:not(.theme-legendary) .bp-add-valid:hover,body.theme-complete:not(.theme-legendary) .bp-add-valid:focus-visible { background:#9a39d5; border-color:#ff79d4; }
body.theme-complete:not(.theme-legendary) .bp-add-hint { border-color:rgba(114,237,242,.38); background:rgba(26,14,33,.88); color:#c9d5e2; }
body.theme-complete:not(.theme-legendary) .bp-add-hint b { color:#fff; }
body.theme-complete:not(.theme-legendary) .blueprint-status { background:#211628; border-top-color:#46304f; color:#ff9ada; }
body.theme-complete:not(.theme-legendary) .blueprint-stage.validated + .blueprint-status { color:#72edf2; }
body.theme-complete:not(.theme-legendary) .compile-window { background:#211729; color:#f8edff; }
body.theme-complete:not(.theme-legendary) .compile-icon { background:linear-gradient(145deg,#a43cff,#3b9fc0); }
body.theme-complete:not(.theme-legendary) .compile-copy small { color:#baa8c2; }
body.theme-complete:not(.theme-legendary) .compile-progress { border-color:#100915; background:#0e0912; }
body.theme-complete:not(.theme-legendary) .compile-progress i { background:linear-gradient(90deg,#a43cff,#ff4fc8,#67e8ff); }
body.theme-complete:not(.theme-legendary) #compile-cancel { border-color:#704d7e; background:#32203a; color:#f1dcf8; }
body.theme-complete:not(.theme-legendary) #compile-cancel:hover { border-color:#67e8ff; background:#3b2943; }

body.theme-complete.theme-legendary .blueprint-popup,
body.theme-complete.theme-legendary .compile-popup { background:rgba(9,6,1,.64); }
body.theme-complete.theme-legendary .blueprint-window,
body.theme-complete.theme-legendary .compile-window {
  border-color:rgba(255,191,62,.50); box-shadow:0 30px 100px rgba(0,0,0,.80),0 0 44px rgba(255,158,26,.08);
}
body.theme-complete.theme-legendary .blueprint-titlebar { background:#302008; border-bottom-color:#130d04; color:#fff0bd; }
body.theme-complete.theme-legendary .blueprint-toolbar { background:#241a0c; border-bottom-color:#110d05; color:#cdb991; }
body.theme-complete.theme-legendary .blueprint-toolbar b { color:#ffc64b; }
body.theme-complete.theme-legendary .blueprint-stage {
  background-color:#151109; background-image:linear-gradient(rgba(255,198,79,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(67,224,220,.055) 1px,transparent 1px);
}
body.theme-complete.theme-legendary .bp-add-valid { border-color:#55ddd9; background:#282116; color:#fff3c6; box-shadow:0 0 0 4px rgba(18,13,5,.82); }
body.theme-complete.theme-legendary .bp-add-valid:hover,body.theme-complete.theme-legendary .bp-add-valid:focus-visible { background:#915710; border-color:#ffc84c; }
body.theme-complete.theme-legendary .bp-add-hint { border-color:rgba(104,229,223,.42); background:rgba(24,18,8,.9); color:#e0d8b2; }
body.theme-complete.theme-legendary .bp-add-hint b { color:#fff6d6; }
body.theme-complete.theme-legendary .blueprint-status { background:#241a0b; border-top-color:#51401f; color:#ffc55c; }
body.theme-complete.theme-legendary .blueprint-stage.validated + .blueprint-status { color:#68e5df; }
body.theme-complete.theme-legendary .compile-window { background:#251b0d; color:#fff3ce; }
body.theme-complete.theme-legendary .compile-icon { background:linear-gradient(145deg,#d87918,#2c9f9b); }
body.theme-complete.theme-legendary .compile-copy small { color:#c8b48b; }
body.theme-complete.theme-legendary .compile-progress { border-color:#130e05; background:#0f0b05; }
body.theme-complete.theme-legendary .compile-progress i { background:linear-gradient(90deg,#ff7618,#ffc43f,#43e0dc); }
body.theme-complete.theme-legendary #compile-cancel { border-color:#715324; background:#33240f; color:#ffe8ad; }
body.theme-complete.theme-legendary #compile-cancel:hover { border-color:#55ddd9; background:#3b2b12; color:#7cf0ea; }

/* Doug cameo labels now theme with the art rather than retaining base blue. */
.doug-peek strong { border-color:var(--rarity-line); background:var(--rarity-panel); color:var(--rarity-text); }
body:not(.theme-complete) .doug-peek-hearts { color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .doug-peek-hearts { color:#ff62cf; }
body.theme-complete.theme-legendary .doug-peek-hearts { color:#ffc43f; }

/* Flying object theme audit. Forced commands can expose celestial/arcade objects
   before Epic, so each rarity needs an explicit appearance. */
body:not(.theme-complete) .shooting-star::before { box-shadow:0 0 12px #fff,0 0 26px #67e8ff,0 0 38px #2f93ff; }
body:not(.theme-complete) .shooting-star::after { background:linear-gradient(90deg,transparent,rgba(47,147,255,.30),rgba(103,232,255,.78),#fff); }
body.theme-complete:not(.theme-legendary) .shooting-star::before { box-shadow:0 0 12px #fff,0 0 26px #67e8ff,0 0 38px #ff4fc8; }
body.theme-complete:not(.theme-legendary) .shooting-star::after { background:linear-gradient(90deg,transparent,rgba(255,79,200,.34),rgba(103,232,255,.78),#fff); }

/* Mushroom cursor visuals used to drift toward Legendary colors regardless of
   the active theme. Cursor size is a mechanic, rarity color is presentation. */
body:not(.theme-complete) .power-cursor { background:linear-gradient(135deg,#fff 0 56%,#62bfff 57% 100%); filter:drop-shadow(0 2px 1px rgba(0,0,0,.7)) drop-shadow(0 0 7px rgba(93,174,255,.46)); }
body:not(.theme-complete).cursor-power-2 .power-cursor { background:linear-gradient(135deg,#f5fbff 0 50%,#2f93ff 51% 72%,#67e8ff 73% 100%); filter:drop-shadow(0 3px 2px rgba(0,0,0,.7)) drop-shadow(0 0 10px rgba(103,232,255,.48)); }
body.theme-complete:not(.theme-legendary) .power-cursor { background:linear-gradient(135deg,#fff2ff 0 54%,#b13cff 55% 74%,#67e8ff 75% 100%); filter:drop-shadow(0 2px 1px rgba(0,0,0,.72)) drop-shadow(0 0 8px rgba(255,79,200,.46)); }
body.theme-complete:not(.theme-legendary).cursor-power-2 .power-cursor { background:linear-gradient(135deg,#fff5ff 0 48%,#ff4fc8 49% 70%,#67e8ff 71% 100%); filter:drop-shadow(0 3px 2px rgba(0,0,0,.72)) drop-shadow(0 0 11px rgba(177,60,255,.52)); }
body.theme-complete.theme-legendary .power-cursor { background:linear-gradient(135deg,#fff8d8 0 54%,#ffc43f 55% 74%,#43e0dc 75% 100%); filter:drop-shadow(0 2px 1px rgba(0,0,0,.72)) drop-shadow(0 0 8px rgba(255,190,61,.48)); }
body.theme-complete.theme-legendary.cursor-power-2 .power-cursor { background:linear-gradient(135deg,#fff4c4 0 48%,#ff8a1e 49% 69%,#43e0dc 70% 100%); filter:drop-shadow(0 3px 2px rgba(0,0,0,.72)) drop-shadow(0 0 12px rgba(255,190,61,.54)); }

/* Wish success pulse and Lumen remain intentionally dramatic but no longer
   leak Epic purple into Rare/Legendary. HAL red and money-gold stay semantic. */
body:not(.theme-complete).wish-granted::before { background:radial-gradient(circle at 50% 50%,rgba(103,232,255,.20),rgba(47,147,255,.09) 22%,transparent 58%); }
body.theme-complete:not(.theme-legendary).wish-granted::before { background:radial-gradient(circle at 50% 50%,rgba(103,232,255,.18),rgba(216,77,255,.10) 22%,transparent 58%); }
body.theme-complete.theme-legendary.wish-granted::before { background:radial-gradient(circle at 50% 50%,rgba(255,196,63,.19),rgba(67,224,220,.09) 22%,transparent 58%); }
body:not(.theme-complete) .lumen-blob.light { background:rgba(111,201,255,.23); }
body.theme-complete:not(.theme-legendary) .lumen-blob.light { background:rgba(213,121,255,.20); }
body.theme-complete.theme-legendary .lumen-blob.light { background:rgba(255,193,83,.19); }
body.theme-complete.theme-legendary .lumen-blob.dark { background:rgba(15,8,1,.52); }

/* Mippi Bird shares, Unreal Source reward, objective dismiss, and Shop controls
   receive explicit focus states so keyboard interaction follows rarity too. */
#flappy-share:focus-visible,.flappy-share-menu button:focus-visible,
.unreal-gift-actions a:focus-visible,.unreal-gift-actions button:focus-visible,
.shop-close:focus-visible,#shop-unequip:focus-visible {
  outline:2px solid var(--rarity-secondary); outline-offset:2px;
}
body.theme-complete:not(.theme-legendary) .unreal-gift-actions a:hover,
body.theme-complete:not(.theme-legendary) .unreal-gift-actions button:hover { border-color:#67e8ff; color:#8ff4ff; }
body.theme-complete:not(.theme-legendary) .unreal-gift-window { color:#f9edff; }
body.theme-complete.theme-legendary .unreal-gift-window { color:#fff1c1; }

/* Intentional semantic exceptions from the rarity sweep:
   - HAL remains red because the reference depends on it.
   - Money-wish coins remain gold because they are coins, not rarity currency.
   - UFO projectiles remain white/cyan for combat readability.
   - Blueprint node header colors preserve node-family readability. */


/* ==========================================================================
   v2.53 // Motion preference policy
   ========================================================================== */
/* Intentional product decision:
   OS/browser prefers-reduced-motion does not alter this site's playable layer.
   Core particles, flying objects, arcade motion, and interaction timing remain
   available to every visitor. Player-controlled pacing lives inside the site
   through systems such as Slowmo, Easy Mode, and the Adaptive Director. */


/* ========================================================================== 
   v2.54 // Design Mode + Super Boss + Mippi Bird / Castle polish
   ========================================================================== */

/* Design Mode is a late-game commentary layer. Like Inspect Mode, it must never
   mutate the layout of the element it annotates. */
body.design-mode [data-design-note] { outline:0 !important; }
body.design-mode [data-design-note]::after { display:none !important; content:none !important; }
.ledger-controls { grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; }
#design-toggle[hidden] { display:none !important; }
#design-toggle.active {
  border-color:rgba(103,232,255,.60) !important;
  color:#e8fbff !important;
  background:linear-gradient(90deg,rgba(47,147,255,.14),rgba(103,232,255,.07)) !important;
}
.inspect-tooltip.design {
  max-width:min(470px,calc(100vw - 28px));
  border-color:rgba(103,232,255,.58);
  color:#e4fbff;
  background:linear-gradient(145deg,rgba(5,13,21,.98),rgba(4,22,26,.98));
  box-shadow:0 18px 54px rgba(0,0,0,.52),0 0 34px rgba(103,232,255,.12);
}
body.theme-complete:not(.theme-legendary) #design-toggle.active {
  border-color:rgba(255,79,200,.60) !important;
  color:#fff0fb !important;
  background:linear-gradient(90deg,rgba(177,60,255,.17),rgba(103,232,255,.08)) !important;
}
body.theme-complete:not(.theme-legendary) .inspect-tooltip.design {
  border-color:rgba(255,79,200,.55);
  color:#ffe8fa;
  background:linear-gradient(145deg,rgba(23,7,31,.98),rgba(4,23,28,.98));
  box-shadow:0 18px 54px rgba(0,0,0,.58),0 0 36px rgba(255,79,200,.14);
}
body.theme-complete.theme-legendary #design-toggle.active {
  border-color:rgba(67,224,220,.62) !important;
  color:#fff0b5 !important;
  background:linear-gradient(90deg,rgba(255,154,36,.16),rgba(67,224,220,.09)) !important;
}
body.theme-complete.theme-legendary .inspect-tooltip.design {
  border-color:rgba(67,224,220,.54) !important;
  color:#fff0b5 !important;
  background:linear-gradient(145deg,rgba(28,15,4,.98),rgba(4,25,24,.98)) !important;
  box-shadow:0 18px 56px rgba(0,0,0,.62),0 0 38px rgba(255,180,52,.14) !important;
}
@media (max-width:620px){ .ledger-controls { grid-template-columns:1fr !important; } }

/* The castle now reads as a chunky three-tower fortress instead of an abstract
   icon. The silhouette remains theme-driven rather than copying external art. */
.section-castle { width:58px !important; height:50px !important; margin-left:-29px !important; top:-29px !important; }
.section-castle svg { stroke-width:1.6 !important; }
.section-castle .castle-door,.section-castle .castle-window { fill:var(--bg-deep,#05090f); stroke:none; }
.section-castle .castle-flag { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:square; stroke-linejoin:miter; }
body.theme-complete:not(.theme-legendary) .section-castle .castle-door,
body.theme-complete:not(.theme-legendary) .section-castle .castle-window { fill:#0b0610; }
body.theme-complete.theme-legendary .section-castle .castle-door,
body.theme-complete.theme-legendary .section-castle .castle-window { fill:#100903; }

/* Super Boss encounter owns the screen while active. The website is visible
   underneath, but all pointer interaction is intentionally captured here. */
.superboss-arena {
  position:fixed; inset:0; z-index:30000; overflow:hidden; isolation:isolate;
  background:rgba(1,5,10,.83); cursor:none; touch-action:none; user-select:none;
  backdrop-filter:blur(1px) saturate(.62);
}
.superboss-vignette { position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 38%,transparent 0 27%,rgba(0,0,0,.28) 62%,rgba(0,0,0,.72) 100%),repeating-linear-gradient(0deg,rgba(103,232,255,.022) 0 1px,transparent 1px 6px); }
.superboss-header { position:absolute; z-index:10; top:22px; left:50%; transform:translateX(-50%); width:min(620px,calc(100vw - 40px)); text-align:center; pointer-events:none; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.superboss-header>span { display:block; color:#7fa8c8; font-size:8px; font-weight:900; letter-spacing:.18em; margin-bottom:6px; }
.superboss-header>strong { display:block; color:#dff8ff; font-size:20px; letter-spacing:.18em; text-shadow:0 0 18px rgba(103,232,255,.54); }
.superboss-header>small { display:block; margin-top:6px; color:#a9d9f7; font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.12em; }
.superboss-health { height:7px; margin:10px auto 0; width:min(430px,78vw); overflow:hidden; border:1px solid rgba(103,232,255,.44); background:rgba(0,0,0,.78); }
.superboss-health i { display:block; width:100%; height:100%; background:linear-gradient(90deg,#176fc4,#2f93ff,#67e8ff); box-shadow:0 0 12px #67e8ff; transition:width .14s ease; }
.superboss-core { position:absolute; z-index:5; left:0; top:0; width:190px; height:118px; margin:-59px 0 0 -95px; pointer-events:none; filter:drop-shadow(0 0 18px rgba(47,147,255,.75)) drop-shadow(0 0 42px rgba(103,232,255,.22)); }
.superboss-core::before { content:""; position:absolute; left:18px; right:18px; top:29px; height:48px; border:3px solid #67e8ff; background:linear-gradient(180deg,#153f66,#07131f); clip-path:polygon(14% 0,86% 0,100% 52%,82% 100%,18% 100%,0 52%); box-shadow:inset 0 0 24px rgba(47,147,255,.36); }
.superboss-core::after { content:""; position:absolute; left:70px; top:17px; width:50px; height:50px; border:4px solid #dff8ff; border-radius:50%; background:radial-gradient(circle,#fff 0 7%,#67e8ff 8% 30%,#176fc4 31% 52%,#07111d 53%); box-shadow:0 0 18px #67e8ff,0 0 40px rgba(47,147,255,.66); }
.superboss-core span::before,.superboss-core span::after { content:""; position:absolute; top:74px; width:48px; height:22px; border:2px solid #2f93ff; background:#0a1b2d; }
.superboss-core span::before { left:13px; transform:skewX(-24deg); }
.superboss-core span::after { right:13px; transform:skewX(24deg); }
.superboss-arena.boss-hit .superboss-core { filter:brightness(2) drop-shadow(0 0 25px #fff); }
.superboss-add-layer { position:absolute; inset:0; pointer-events:none; }
.superboss-add { position:absolute; left:0; top:0; width:45px; height:30px; margin:-15px 0 0 -22px; pointer-events:none; filter:drop-shadow(0 0 10px rgba(103,232,255,.55)); }
.superboss-add::before { content:""; position:absolute; inset:4px 3px 5px; background:#176fc4; border:2px solid #67e8ff; clip-path:polygon(20% 0,80% 0,100% 55%,77% 100%,23% 100%,0 55%); }
.superboss-add::after { content:""; position:absolute; left:17px; top:0; width:10px; height:10px; border:2px solid #dff8ff; border-radius:50%; background:#2f93ff; }
.superboss-add.destroyed { opacity:0; filter:brightness(3) drop-shadow(0 0 18px #fff); transition:opacity .09s linear,filter .09s linear; }
.superboss-cursor { position:absolute; z-index:50; left:0; top:0; width:32px; height:32px; margin:-16px 0 0 -16px; pointer-events:none; border:2px solid #67e8ff; border-radius:50%; box-shadow:0 0 10px #67e8ff,0 0 24px rgba(47,147,255,.55); }
.superboss-cursor::before,.superboss-cursor::after { content:""; position:absolute; background:#dff8ff; }
.superboss-cursor::before { left:14px; top:-8px; width:2px; height:44px; }
.superboss-cursor::after { top:14px; left:-8px; height:2px; width:44px; }
.superboss-cursor i { position:absolute; inset:9px; border-radius:50%; background:#fff; box-shadow:0 0 10px #67e8ff; }
.superboss-exit { position:absolute; z-index:80; right:18px; bottom:18px; min-height:40px; padding:0 16px; border:1px solid rgba(103,232,255,.54); background:rgba(4,12,20,.94); color:#dff8ff; cursor:pointer !important; font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.10em; box-shadow:0 10px 28px rgba(0,0,0,.42); }
.superboss-exit:hover,.superboss-exit:focus-visible { border-color:#fff; color:#fff; outline:none; box-shadow:0 0 0 2px rgba(103,232,255,.16),0 10px 28px rgba(0,0,0,.42); }
.superboss-bullet,.superboss-rocket { position:absolute; z-index:25; left:0; top:0; pointer-events:none; transform-origin:center; }
.superboss-bullet { width:18px; height:4px; margin:-2px 0 0 -9px; border-radius:999px; background:#fff; box-shadow:0 0 8px #fff,0 0 18px #67e8ff; }
.superboss-rocket { width:30px; height:10px; margin:-5px 0 0 -15px; border-radius:7px 2px 2px 7px; background:linear-gradient(90deg,#ff8a32,#fff0b5 38%,#67e8ff 42% 100%); box-shadow:-9px 0 13px rgba(255,120,36,.84),0 0 11px rgba(103,232,255,.78); }
.superboss-rocket::after { content:""; position:absolute; right:-6px; top:2px; border-left:7px solid #dff8ff; border-top:3px solid transparent; border-bottom:3px solid transparent; }
.superboss-laser { position:absolute; z-index:20; height:4px; transform-origin:0 50%; pointer-events:none; background:rgba(103,232,255,.36); box-shadow:0 0 12px rgba(103,232,255,.70); }
.superboss-laser.charging { animation:superboss-laser-charge .18s linear infinite alternate; }
.superboss-laser.active { height:26px; margin-top:-11px; background:linear-gradient(180deg,rgba(255,255,255,.98),#67e8ff 42%,rgba(47,147,255,.88)); box-shadow:0 0 20px #fff,0 0 45px #67e8ff,0 0 80px rgba(47,147,255,.72); }
@keyframes superboss-laser-charge { to{opacity:.42;filter:brightness(1.7)} }
.superboss-impact { position:absolute; z-index:60; width:48px; height:48px; margin:-24px 0 0 -24px; pointer-events:none; border:3px solid #fff; border-radius:50%; box-shadow:0 0 18px #fff,0 0 42px #67e8ff; animation:superboss-impact .42s ease-out forwards; }
@keyframes superboss-impact { to{opacity:0;transform:scale(2.2)} }
.superboss-player-shot { position:absolute; z-index:30; width:7px; height:7px; margin:-3px 0 0 -3px; border-radius:50%; background:#fff; box-shadow:0 0 12px #67e8ff; animation:superboss-player-shot .26s ease-out forwards; }
@keyframes superboss-player-shot { to{opacity:0;transform:scale(2.4)} }
.superboss-arena.cursor-hit::after { content:""; position:absolute; inset:0; z-index:70; pointer-events:none; background:rgba(255,255,255,.08); animation:superboss-screen-hit .18s steps(2,end) forwards; }
@keyframes superboss-screen-hit { 50%{background:rgba(103,232,255,.14)} to{background:transparent} }

body.theme-complete:not(.theme-legendary) .superboss-arena { background:rgba(8,2,12,.86); }
body.theme-complete:not(.theme-legendary) .superboss-header>strong { color:#ffd8f4; text-shadow:0 0 18px rgba(255,79,200,.62); }
body.theme-complete:not(.theme-legendary) .superboss-health { border-color:rgba(255,79,200,.48); }
body.theme-complete:not(.theme-legendary) .superboss-health i { background:linear-gradient(90deg,#9345e6,#ff4fc8,#67e8ff); box-shadow:0 0 12px #ff4fc8; }
body.theme-complete:not(.theme-legendary) .superboss-core { filter:drop-shadow(0 0 20px rgba(255,79,200,.72)) drop-shadow(0 0 42px rgba(103,232,255,.22)); }
body.theme-complete:not(.theme-legendary) .superboss-core::before { border-color:#ff4fc8; background:linear-gradient(180deg,#3b1651,#120719); }
body.theme-complete:not(.theme-legendary) .superboss-core::after { border-color:#ffd8f4; background:radial-gradient(circle,#fff 0 7%,#ff4fc8 8% 30%,#8c4ce8 31% 52%,#120719 53%); box-shadow:0 0 18px #ff4fc8,0 0 40px rgba(103,232,255,.36); }
body.theme-complete:not(.theme-legendary) .superboss-add::before { background:#7d3ec8; border-color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .superboss-add::after { background:#ff4fc8; }
body.theme-complete:not(.theme-legendary) .superboss-cursor { border-color:#ff4fc8; box-shadow:0 0 10px #ff4fc8,0 0 24px rgba(103,232,255,.45); }
body.theme-complete:not(.theme-legendary) .superboss-cursor i { box-shadow:0 0 10px #ff4fc8; }
body.theme-complete:not(.theme-legendary) .superboss-exit { border-color:rgba(103,232,255,.50); background:rgba(18,5,24,.96); color:#ffe8fa; }
body.theme-complete:not(.theme-legendary) .superboss-laser.active { background:linear-gradient(180deg,#fff,#ff4fc8 42%,#67e8ff); box-shadow:0 0 20px #fff,0 0 45px #ff4fc8,0 0 80px rgba(103,232,255,.60); }

body.theme-complete.theme-legendary .superboss-arena { background:rgba(10,6,1,.87); }
body.theme-complete.theme-legendary .superboss-header>strong { color:#fff0b5; text-shadow:0 0 18px rgba(255,196,63,.68); }
body.theme-complete.theme-legendary .superboss-header>span { color:#c9b287; }
body.theme-complete.theme-legendary .superboss-health { border-color:rgba(67,224,220,.48); }
body.theme-complete.theme-legendary .superboss-health i { background:linear-gradient(90deg,#ff7a1a,#ffc83d,#43e0dc); box-shadow:0 0 12px #ffc83d; }
body.theme-complete.theme-legendary .superboss-core { filter:drop-shadow(0 0 20px rgba(255,190,61,.76)) drop-shadow(0 0 44px rgba(67,224,220,.24)); }
body.theme-complete.theme-legendary .superboss-core::before { border-color:#43e0dc; background:linear-gradient(180deg,#5d3508,#160d03); }
body.theme-complete.theme-legendary .superboss-core::after { border-color:#fff0b5; background:radial-gradient(circle,#fff 0 7%,#ffc83d 8% 30%,#ff7a1a 31% 52%,#160d03 53%); box-shadow:0 0 18px #ffc83d,0 0 42px rgba(67,224,220,.38); }
body.theme-complete.theme-legendary .superboss-add::before { background:#a9560c; border-color:#43e0dc; }
body.theme-complete.theme-legendary .superboss-add::after { background:#ffc83d; border-color:#fff0b5; }
body.theme-complete.theme-legendary .superboss-cursor { border-color:#ffc83d; box-shadow:0 0 10px #ffc83d,0 0 25px rgba(67,224,220,.48); }
body.theme-complete.theme-legendary .superboss-cursor::before,body.theme-complete.theme-legendary .superboss-cursor::after { background:#43e0dc; }
body.theme-complete.theme-legendary .superboss-cursor i { background:#fff0b5; box-shadow:0 0 11px #ffc83d; }
body.theme-complete.theme-legendary .superboss-exit { border-color:rgba(67,224,220,.54); background:rgba(24,14,4,.96); color:#fff0b5; }
body.theme-complete.theme-legendary .superboss-rocket { background:linear-gradient(90deg,#ff7a1a,#fff0b5 38%,#43e0dc 42% 100%); }
body.theme-complete.theme-legendary .superboss-laser.active { background:linear-gradient(180deg,#fff,#ffc83d 38%,#43e0dc); box-shadow:0 0 20px #fff,0 0 45px #ffc83d,0 0 82px rgba(67,224,220,.66); }

/* ========================================================================== 
   v2.55 // Progression and meta polish
   ========================================================================== */

/* The post-Epic trace gives completion a next direction instead of a dead end. */
.progress-hud { min-width:150px; max-width:min(286px,calc(100vw - 36px)); }
.meta-trace {
  display:none; padding:8px 10px; border:1px solid rgba(93,174,255,.34);
  background:linear-gradient(120deg,rgba(17,72,119,.22),rgba(5,12,20,.96));
  box-shadow:0 9px 28px rgba(0,0,0,.28),0 0 20px rgba(47,147,255,.06);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.meta-trace.visible { display:grid; gap:3px; }
.meta-trace span { color:#67cfff; font-size:7px; font-weight:900; letter-spacing:.15em; }
.meta-trace b { color:#e7f5ff; font-size:8px; line-height:1.35; letter-spacing:.025em; }
body.theme-complete:not(.theme-legendary) .meta-trace {
  border-color:rgba(255,79,200,.42); background:linear-gradient(120deg,rgba(111,35,148,.25),rgba(10,8,17,.97));
  box-shadow:0 9px 28px rgba(0,0,0,.30),0 0 22px rgba(255,79,200,.08);
}
body.theme-complete:not(.theme-legendary) .meta-trace span { color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .meta-trace b { color:#ffe9fb; }
body.theme-complete.theme-legendary .meta-trace {
  border-color:rgba(67,224,220,.42); background:linear-gradient(120deg,rgba(118,69,7,.30),rgba(13,11,5,.97));
  box-shadow:0 9px 28px rgba(0,0,0,.32),0 0 22px rgba(255,190,61,.08);
}
body.theme-complete.theme-legendary .meta-trace span { color:#55ddd9; }
body.theme-complete.theme-legendary .meta-trace b { color:#fff0b5; }

/* Doug's Coolness behaves like a tiny limit meter rather than an unexplained state swap. */
.cool-meter {
  display:none; min-height:34px; padding:7px 9px 8px; border:1px solid rgba(93,174,255,.30);
  background:rgba(7,13,20,.95); box-shadow:0 9px 24px rgba(0,0,0,.24);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.cool-meter.visible { display:grid; gap:5px; }
.cool-meter-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cool-meter-top span { color:#72e8ff; font-size:7px; font-weight:900; letter-spacing:.14em; }
.cool-meter-top b { color:#e8fbff; font-size:8px; letter-spacing:.08em; }
.cool-meter-track { height:6px; overflow:hidden; border:1px solid rgba(103,207,255,.24); background:#03080e; }
.cool-meter-track i { display:block; height:100%; width:0; background:linear-gradient(90deg,#147ee0,#2f93ff,#67e8ff); box-shadow:0 0 10px #67e8ff; transition:width .16s linear; }
.cool-meter.limit-ready { border-color:#fff; animation:cool-meter-limit .48s ease-in-out infinite alternate; }
.cool-meter.limit-ready .cool-meter-track i { background:linear-gradient(90deg,#0a84ff,#34c759,#ffcc00,#ff3b30,#bf5af2); background-size:220% 100%; animation:cool-meter-rainbow .7s linear infinite; }
@keyframes cool-meter-limit { to{box-shadow:0 0 18px rgba(103,232,255,.42),0 9px 24px rgba(0,0,0,.28)} }
@keyframes cool-meter-rainbow { to{background-position:220% 0} }
body.theme-complete:not(.theme-legendary) .cool-meter { border-color:rgba(255,79,200,.36); background:rgba(13,7,18,.96); }
body.theme-complete:not(.theme-legendary) .cool-meter-top span { color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .cool-meter-top b { color:#ffdff7; }
body.theme-complete:not(.theme-legendary) .cool-meter-track { border-color:rgba(255,79,200,.28); }
body.theme-complete:not(.theme-legendary) .cool-meter-track i { background:linear-gradient(90deg,#8e48df,#ff4fc8,#67e8ff); box-shadow:0 0 11px #ff4fc8; }
body.theme-complete.theme-legendary .cool-meter { border-color:rgba(67,224,220,.38); background:rgba(19,12,4,.97); }
body.theme-complete.theme-legendary .cool-meter-top span { color:#55ddd9; }
body.theme-complete.theme-legendary .cool-meter-top b { color:#fff0b5; }
body.theme-complete.theme-legendary .cool-meter-track { border-color:rgba(255,190,61,.30); }
body.theme-complete.theme-legendary .cool-meter-track i { background:linear-gradient(90deg,#ff7a1a,#ffc83d,#43e0dc); box-shadow:0 0 11px #ffc83d; }

/* A charged wish advertises itself in help instead of asking the player to remember a rare pickup. */
.console-wish-ready {
  font-weight:900; color:#fff; background:linear-gradient(90deg,#ff3b30,#ff9500,#ffcc00,#34c759,#00c7be,#0a84ff,#bf5af2,#ff2d55,#ff3b30);
  background-size:260% 100%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation:console-wish-rainbow 1.35s linear infinite; filter:drop-shadow(0 0 6px rgba(103,232,255,.38));
}
@keyframes console-wish-rainbow { to{background-position:260% 0} }

/* Lumen is deliberately obvious and unstable when enabled. */
.lumen-artifacts.active { opacity:1 !important; }
.lumen-blob { filter:blur(48px); animation-name:lumen-breathe-v255 !important; transition:opacity .12s steps(2,end),filter .18s ease; }
.lumen-blob.lumen-cut { opacity:0 !important; animation-play-state:paused !important; }
.lumen-blob.lumen-hot { opacity:.78 !important; filter:blur(34px) saturate(1.35) brightness(1.18); }
@keyframes lumen-breathe-v255 {
  0%{opacity:.08;transform:scale(.64) translate(-7%,6%)}
  24%{opacity:.62}
  48%{opacity:.17;transform:scale(1.12) translate(4%,-3%)}
  71%{opacity:.76}
  100%{opacity:.12;transform:scale(1.28) translate(8%,-7%)}
}
.lighting-rebuild-warning {
  position:fixed; z-index:25000; left:50%; top:86px; transform:translate(-50%,-14px);
  padding:8px 13px; border:1px solid rgba(255,204,56,.60); background:rgba(29,20,3,.94);
  color:#ffd75c; font:900 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em;
  text-shadow:0 0 10px rgba(255,194,39,.55); box-shadow:0 12px 34px rgba(0,0,0,.44);
  opacity:0; pointer-events:none;
}
.lighting-rebuild-warning.show { animation:lighting-rebuild-warning 4.2s ease both; }
@keyframes lighting-rebuild-warning { 0%{opacity:0;transform:translate(-50%,-14px)} 10%,72%{opacity:1;transform:translate(-50%,0)} 100%{opacity:0;transform:translate(-50%,-7px)} }

/* AI Mode is now a screen-space state, not just a tiny wandering label. */
.vibe-agent.active {
  padding:10px 14px !important; font-size:10px !important; letter-spacing:.035em;
  border-width:1px !important; backdrop-filter:blur(8px); text-transform:uppercase;
}
body.vibe-mode::after {
  opacity:1 !important;
  background-size:180% 100% !important;
  box-shadow:inset 0 0 100px rgba(103,232,255,.055);
}
body.vibe-mode::before {
  content:""; position:fixed; inset:0; z-index:60; pointer-events:none;
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(103,232,255,.055) 50%,transparent 50.2%),
    linear-gradient(0deg,transparent 49.8%,rgba(103,232,255,.038) 50%,transparent 50.2%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px);
  background-size:120px 100%,100% 120px,100% 5px;
  opacity:.62; mix-blend-mode:screen; animation:ai-mode-grid 5.5s linear infinite;
}
@keyframes ai-mode-grid { to{background-position:120px 0,0 120px,0 15px} }
body.theme-complete:not(.theme-legendary).vibe-mode::before { filter:hue-rotate(48deg) saturate(1.3); }
body.theme-complete.theme-legendary.vibe-mode::before { filter:sepia(.42) saturate(1.25); }

/* Mippi Bird now communicates its rechargeable and banked lives explicitly. */
.flappy-footer { grid-template-columns:auto auto auto 1fr !important; }
#flappy-lives { color:#8ca9c4; }
#flappy-lives.has-life { color:#8ff2d8; text-shadow:0 0 9px rgba(103,232,255,.28); }
body.theme-complete:not(.theme-legendary) #flappy-lives.has-life { color:#ff8bd9; text-shadow:0 0 9px rgba(255,79,200,.32); }
body.theme-complete.theme-legendary #flappy-lives.has-life { color:#fff0b5; text-shadow:0 0 9px rgba(255,196,63,.34); }
@media (max-width:760px){ .flappy-footer { grid-template-columns:auto auto !important; } .flappy-footer .flappy-help { grid-column:1/-1; text-align:left; } }

/* Brief payoff before Super Boss lockdown releases. */
.superboss-victory {
  position:absolute; z-index:100; inset:0; display:grid; place-content:center; justify-items:center; gap:8px;
  text-align:center; pointer-events:none; background:radial-gradient(circle,rgba(24,73,108,.38),rgba(0,3,7,.88) 58%);
  animation:superboss-victory-in 2.35s ease both; font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.superboss-victory span { color:#7fcfff; font-size:8px; font-weight:900; letter-spacing:.18em; }
.superboss-victory strong { color:#fff; font-size:clamp(42px,8vw,92px); line-height:.9; letter-spacing:.10em; text-shadow:0 0 18px #67e8ff,0 0 52px rgba(47,147,255,.72); }
.superboss-victory b { color:#dff8ff; font-size:13px; letter-spacing:.16em; }
.superboss-victory small { color:#8ff2d8; font-size:9px; letter-spacing:.12em; }
.superboss-arena.victory .superboss-header,.superboss-arena.victory .superboss-core,.superboss-arena.victory .superboss-add-layer,.superboss-arena.victory .superboss-cursor,.superboss-arena.victory .superboss-exit { opacity:0 !important; pointer-events:none !important; }
@keyframes superboss-victory-in { 0%{opacity:0;transform:scale(.92)} 12%,78%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(1.025)} }
body.theme-complete:not(.theme-legendary) .superboss-victory { background:radial-gradient(circle,rgba(99,31,128,.42),rgba(5,1,9,.90) 58%); }
body.theme-complete:not(.theme-legendary) .superboss-victory strong { text-shadow:0 0 20px #ff4fc8,0 0 58px rgba(103,232,255,.58); }
body.theme-complete:not(.theme-legendary) .superboss-victory span { color:#67e8ff; }
body.theme-complete.theme-legendary .superboss-victory { background:radial-gradient(circle,rgba(108,62,6,.44),rgba(7,4,1,.91) 58%); }
body.theme-complete.theme-legendary .superboss-victory strong { color:#fff0b5; text-shadow:0 0 20px #ffc83d,0 0 60px rgba(67,224,220,.52); }
body.theme-complete.theme-legendary .superboss-victory span,body.theme-complete.theme-legendary .superboss-victory small { color:#55ddd9; }


.ledger-postgame {
  margin-top:8px; padding:10px; border:1px solid rgba(93,174,255,.28);
  background:linear-gradient(120deg,rgba(21,69,108,.18),rgba(5,11,18,.72));
  display:grid; gap:3px;
}
.ledger-postgame span { color:#67cfff; font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.15em; }
.ledger-postgame strong { color:#e8f6ff; font:900 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.11em; }
.ledger-postgame small { color:#8daac3; font:700 8px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; }
body.theme-complete:not(.theme-legendary) .ledger-postgame { border-color:rgba(255,79,200,.35); background:linear-gradient(120deg,rgba(105,35,139,.22),rgba(9,6,14,.78)); }
body.theme-complete:not(.theme-legendary) .ledger-postgame span { color:#67e8ff; }
body.theme-complete:not(.theme-legendary) .ledger-postgame strong { color:#ffdff6; }
body.theme-complete.theme-legendary .ledger-postgame { border-color:rgba(67,224,220,.36); background:linear-gradient(120deg,rgba(112,65,8,.25),rgba(13,9,3,.82)); }
body.theme-complete.theme-legendary .ledger-postgame span { color:#55ddd9; }
body.theme-complete.theme-legendary .ledger-postgame strong { color:#fff0b5; }


/* v2.56 // Theme-independent gameplay, rarity shop, Interact Mode, Finale */
.interact-mode-toggle{position:fixed;right:18px;bottom:18px;z-index:360;min-width:132px;padding:10px 13px;border:1px solid rgba(103,207,255,.38);background:rgba(5,13,20,.93);color:#dff5ff;font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.11em;cursor:pointer;box-shadow:0 10px 34px rgba(0,0,0,.36);transition:.16s ease}.interact-mode-toggle[hidden]{display:none!important}.interact-mode-toggle:hover,.interact-mode-toggle:focus-visible{border-color:#67cfff;color:#fff;outline:none}.interact-mode-toggle.active{background:rgba(0,112,224,.22);border-color:#67cfff;box-shadow:0 0 28px rgba(47,147,255,.16)}body.interaction-hunt main{opacity:.34;filter:brightness(.58) saturate(.70);transition:opacity .22s ease,filter .22s ease}body.interaction-hunt main a,body.interaction-hunt main button,body.interaction-hunt main input,body.interaction-hunt main select,body.interaction-hunt main textarea,body.interaction-hunt main [role="button"]{pointer-events:none!important}body.interaction-hunt main .section-castle{pointer-events:auto!important}body.theme-complete:not(.theme-legendary) .interact-mode-toggle{border-color:rgba(255,98,207,.52);color:#ffd9f4;background:rgba(25,8,32,.94)}body.theme-legendary .interact-mode-toggle{border-color:rgba(255,196,70,.56);color:#ffe7a2;background:rgba(25,16,5,.94)}
.shop-items{display:block!important}.shop-rarity-section{margin-top:14px;padding:10px;border:1px solid rgba(255,255,255,.08)}.shop-rarity-section>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;padding-bottom:8px;border-bottom:1px solid currentColor;font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.14em}.shop-rarity-section>header small{opacity:.68;font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.shop-rarity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shop-rarity-section.rarity-rare{color:#67cfff;border-color:rgba(74,169,255,.28);background:linear-gradient(145deg,rgba(10,31,49,.42),rgba(5,11,17,.12))}.shop-rarity-section.rarity-epic{color:#ff68ce;border-color:rgba(207,88,255,.32);background:linear-gradient(145deg,rgba(47,15,60,.34),rgba(12,8,18,.12))}.shop-rarity-section.rarity-legendary{color:#ffd15c;border-color:rgba(255,190,61,.34);background:linear-gradient(145deg,rgba(57,34,5,.36),rgba(8,13,12,.12))}.shop-item-grade{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}.shop-item-grade small{opacity:.62;font:inherit}.shop-item.rarity-rare{border-color:rgba(74,169,255,.30)!important}.shop-item.rarity-rare .shop-item-grade{color:#67cfff}.shop-item.rarity-epic{border-color:rgba(224,91,255,.34)!important}.shop-item.rarity-epic .shop-item-grade{color:#ff68ce}.shop-item.rarity-legendary{border-color:rgba(255,190,61,.38)!important}.shop-item.rarity-legendary .shop-item-grade{color:#ffd15c}.shop-item.rarity-legendary:not(.locked){box-shadow:inset 2px 0 0 rgba(85,221,217,.34)}@media(max-width:700px){.shop-rarity-grid{grid-template-columns:1fr}}
body.finale-ready .brand-mark{animation:finale-logo-pulse 1.45s ease-in-out infinite;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 0 26px #67cfff;cursor:pointer}@keyframes finale-logo-pulse{50%{transform:scale(1.08);filter:brightness(1.35)}}.finale-overlay{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;background:#020305;opacity:0;pointer-events:none;transition:opacity .7s ease}.finale-overlay.show{opacity:1;pointer-events:auto}.finale-center{width:min(760px,88vw);text-align:center;color:#fff}.finale-center strong{display:block;min-height:1.2em;font:900 clamp(34px,6vw,78px)/.95 Inter,system-ui,sans-serif;letter-spacing:-.05em}.finale-center span{display:block;min-height:1.4em;margin-top:24px;color:#aab8c5;font:600 clamp(16px,2vw,24px)/1.35 Inter,system-ui,sans-serif}.finale-center b{display:block;min-height:1.2em;margin-top:22px;color:#67cfff;font:900 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em}.finale-controls{display:flex;justify-content:center;gap:10px;margin-top:36px}.finale-controls[hidden]{display:none}.finale-controls button{min-height:42px;padding:0 16px;border:1px solid rgba(103,207,255,.42);background:rgba(18,31,43,.58);color:#e9f7ff;font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.10em;cursor:pointer}.finale-controls button:hover,.finale-controls button:focus-visible{border-color:#67cfff;background:rgba(47,147,255,.18);outline:none}body.theme-complete:not(.theme-legendary) .finale-center b{color:#ff68ce}body.theme-legendary .finale-center b{color:#ffd15c}body.finale-active>*:not(.finale-overlay){pointer-events:none!important}


/* ==========================================================================
   v2.58 // Perspective Visualizer, Doug Cool air-traffic, Session Debrief
   ========================================================================== */

/* User-supplied Heavy Water Perspective Visualizer, scoped for the portfolio. */
/* Scoped to the interactive demo so it can be embedded on the portfolio. */
.perspective-demo {
  --bg: #0a0d12; --bg-deep: #07090d; --bg-2: #10141b;
  --panel: rgba(18,23,31,.92); --panel-2: rgba(24,30,40,.92);
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.20);
  --line-blue: rgba(0,112,224,.48); --text: #f3f5f8;
  --muted: #9ca7b7; --muted-2: #6f7a8a;
  --accent: #0070e0; --accent-bright: #2f93ff;
  --accent-soft: rgba(0,112,224,.14);
  color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5; width: 100%;
}
.perspective-demo *, .perspective-demo *::before, .perspective-demo *::after { box-sizing: border-box; }
.perspective-demo .demo-container { width:100%; max-width: 1220px; margin:auto; padding:28px; border:1px solid var(--line); border-top-color:var(--line-blue); border-radius:6px; background:var(--panel); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.perspective-demo .demo-header { text-align:left; margin-bottom:22px; }
.perspective-demo .eyebrow { color:var(--accent-bright); font-size:10px; font-weight:800; letter-spacing:.18em; margin:0 0 7px; }
.perspective-demo .eyebrow::before {content:'[ '; color:var(--muted-2)}
.perspective-demo .eyebrow::after {content:' ]'; color:var(--muted-2)}
.perspective-demo .demo-header h1 { font-size:clamp(24px,3.5vw,34px); font-weight:800; letter-spacing:-.035em; margin:0; line-height:1.1; }
.perspective-demo .demo-header .subtitle { color:var(--muted); font-size:13px; margin:7px 0 0; }
.perspective-demo .perspective-nav { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:20px; }
.perspective-demo .nav-btn { min-height:40px; padding:0 17px; border:1px solid var(--line-strong); border-radius:4px; background:rgba(255,255,255,.028); color:var(--muted); font:800 11px/1.2 inherit; font-size:11px; font-weight:800; letter-spacing:.04em; cursor:pointer; transition:background .16s ease,border-color .16s ease,color .16s ease; touch-action:manipulation; }
.perspective-demo .nav-btn:hover, .perspective-demo .nav-btn:focus-visible { border-color:var(--accent-bright); background:var(--accent-soft); color:var(--text); }
.perspective-demo .nav-btn.active { background:linear-gradient(180deg,#1380eb,#0066cc); border-color:var(--accent-bright); color:white; box-shadow:inset 0 1px 0 rgba(255,255,255,.14); }
.perspective-demo .viewport-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.perspective-demo .panel { min-width:0; border:1px solid var(--line); border-radius:4px; background:rgba(11,15,21,.94); padding:14px; }
.perspective-demo .panel-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:7px; min-height:19px; margin-bottom:12px; }
.perspective-demo .panel-title { color:var(--text); font-size:10px; letter-spacing:.13em; font-weight:800; }
.perspective-demo .panel-instruction { color:var(--accent-bright); font-size:10px; font-weight:800; letter-spacing:.08em; }
.perspective-demo .rec-badge { color:var(--muted-2); display:flex; align-items:center; gap:6px; font-size:10px; letter-spacing:.1em; font-weight:700; }
.perspective-demo .rec-dot { width:6px; height:6px; border-radius:50%; background:var(--accent-bright); }
.perspective-demo .canvas-wrapper { width:100%; aspect-ratio: 480 / 420; border:1px solid var(--line); border-radius:3px; overflow:hidden; position:relative; background:#080c12; }
.perspective-demo canvas { display:block; width:100%; height:100%; }
.perspective-demo .hud-overlay { position:absolute; inset:0; padding:10px; pointer-events:none; font:9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; color:var(--muted); display:flex; flex-direction:column; justify-content:space-between; }
.perspective-demo .hud-overlay > div { background:rgba(7,9,13,.78); border:1px solid rgba(255,255,255,.08); border-radius:2px; padding:4px 6px; width:max-content; max-width:80%; }
.perspective-demo .hud-overlay > div:nth-child(1),.perspective-demo .hud-overlay > div:nth-child(3) { align-self:flex-start; }
.perspective-demo .hud-overlay > div:nth-child(2) { position:absolute; top:10px; right:10px; }
.perspective-demo .hud-overlay > div:nth-child(4) { position:absolute; bottom:10px; right:10px; }
.perspective-demo .hud-bottom-left { color:var(--accent-bright); }
.perspective-demo .panel-legend { display:flex; flex-wrap:wrap; gap:10px 16px; color:var(--muted); font-size:11px; margin-top:14px; }
.perspective-demo .legend-item { display:flex; align-items:center; gap:7px; }
.perspective-demo .dot { display:block; width:8px; height:8px; border-radius:50%; flex:none; }
.perspective-demo .player-dot { background:#0070e0; }
.perspective-demo .companionNpc-dot { background:#8793a3; }
.perspective-demo .panel-footer { margin-top:14px; color:var(--muted); font-size:12px; line-height:1.6; }
.perspective-demo #mapCanvas { touch-action:none; cursor:grab; user-select:none; }
.perspective-demo #mapCanvas:active { cursor:grabbing; }
@media(max-width:820px) { .perspective-demo .viewport-grid {grid-template-columns:1fr;} }
@media(max-width:550px) { .perspective-demo .demo-container {padding:13px;} .perspective-demo .panel {padding:9px;} .perspective-demo .hud-overlay {font-size:8px;padding:6px;} .perspective-demo .hud-overlay > div:nth-child(2) {top:6px;right:6px;} .perspective-demo .hud-overlay > div:nth-child(4) {bottom:6px;right:6px;} }
/* Camera label stays inside its canvas; outer panel headings intentionally removed. */
.perspective-demo .hud-overlay > .hud-top-left { align-self:flex-start; }

.heavy-water .perspective-demo { grid-column:1 / -1; border-top:1px solid var(--line); padding:12px; background:rgba(4,8,13,.52); }
.heavy-water .perspective-demo .demo-container { max-width:none; }
.heavy-water .perspective-demo .demo-header h3 { margin:0; font-size:clamp(24px,3.4vw,34px); }
body.theme-complete:not(.theme-legendary) .perspective-demo {
  --line-blue:rgba(217,108,255,.48); --accent:#b13cff; --accent-bright:#67e8ff; --accent-soft:rgba(217,108,255,.14);
}
body.theme-legendary .perspective-demo {
  --line-blue:rgba(255,196,63,.50); --accent:#ffc43f; --accent-bright:#55ddd9; --accent-soft:rgba(85,221,217,.13);
}
body.theme-complete:not(.theme-legendary) .perspective-demo .nav-btn.active { background:linear-gradient(180deg,#c34cff,#7d28c7); border-color:#67e8ff; }
body.theme-legendary .perspective-demo .nav-btn.active { background:linear-gradient(180deg,#ffc43f,#c9780d); border-color:#55ddd9; color:#160f03; }
body.theme-complete:not(.theme-legendary) .perspective-demo .player-dot { background:#d96cff; }
body.theme-legendary .perspective-demo .player-dot { background:#ffc43f; }

/* Cool Mode infects Doug Bones with a full rainbow read and visible particle wake. */
.doug-bone.cool-bone .doug-bone-icon { animation:doug-cool-bone-rainbow .62s linear infinite; filter:drop-shadow(0 0 8px rgba(255,255,255,.85)) drop-shadow(0 0 18px currentColor) !important; }
.doug-bone.cool-bone .doug-bone-icon g { fill:#fff !important; stroke:#fff !important; stroke-width:1.8 !important; }
@keyframes doug-cool-bone-rainbow { 0%{filter:hue-rotate(0deg) saturate(2) drop-shadow(0 0 8px #ff4f7b)} 50%{filter:hue-rotate(180deg) saturate(2.4) drop-shadow(0 0 13px #62efff)} 100%{filter:hue-rotate(360deg) saturate(2) drop-shadow(0 0 8px #ff4f7b)} }
.doug-rainbow-particle { position:fixed; z-index:9993; width:7px; height:7px; border-radius:50%; pointer-events:none; background:hsl(var(--hue) 100% 67%); box-shadow:0 0 8px hsl(var(--hue) 100% 62%),0 0 16px hsl(calc(var(--hue) + 55) 100% 64%); animation:doug-rainbow-trail .72s ease-out forwards; }
@keyframes doug-rainbow-trail { from{opacity:1;transform:translate(-50%,-50%) scale(1)} to{opacity:0;transform:translate(calc(-50% + var(--px)),calc(-50% + var(--py))) scale(.15)} }

/* Proper post-game debrief rather than dumping the player back into console text. */
.session-debrief { position:fixed; inset:0; z-index:20500; display:grid; place-items:center; padding:28px; background:rgba(2,5,8,.88); backdrop-filter:blur(16px); opacity:0; pointer-events:none; transition:opacity .24s ease; }
.session-debrief.show { opacity:1; pointer-events:auto; }
.session-debrief-window { position:relative; width:min(900px,94vw); max-height:min(840px,90vh); overflow:auto; padding:34px; border:1px solid var(--ui-accent-line,rgba(103,207,255,.34)); border-top-color:var(--ui-accent,#67cfff); background:linear-gradient(180deg,rgba(13,22,31,.98),rgba(6,10,15,.98)); box-shadow:0 28px 100px rgba(0,0,0,.62),0 0 42px var(--ui-accent-glow,rgba(47,147,255,.10)); color:#edf7ff; }
.session-debrief-close { position:absolute; right:14px; top:14px; width:34px; height:34px; border:1px solid var(--ui-accent-line,rgba(103,207,255,.32)); background:rgba(255,255,255,.025); color:#eaf6ff; cursor:pointer; }
.session-debrief-kicker { display:block; color:var(--ui-accent,#67cfff); font:900 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.15em; }
.session-debrief h3 { margin:8px 0 6px; font-size:clamp(38px,6vw,70px); line-height:.95; letter-spacing:-.05em; }
.session-debrief-summary { margin:0 0 26px; max-width:720px; color:#aebdca; font-size:16px; }
.session-debrief-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--ui-accent-line,rgba(103,207,255,.22)); }
.session-debrief-grid>div { padding:13px 14px; border-right:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.018); }
.session-debrief-grid span { display:block; color:#73889a; font:800 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.12em; }
.session-debrief-grid b { display:block; margin-top:5px; color:#edf7ff; font-size:15px; }
.session-debrief-observations { margin-top:24px; padding:18px; border-left:2px solid var(--ui-accent,#67cfff); background:rgba(255,255,255,.018); }
.session-debrief-observations>span { color:var(--ui-accent,#67cfff); font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.14em; }
.session-debrief-observations p { margin:9px 0 0; color:#b8c8d4; }
.session-debrief-assistance { margin:18px 0 0; color:#879baa; font:800 9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; }
.session-debrief-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.session-debrief-actions button { min-height:40px; padding:0 13px; border:1px solid var(--ui-accent-line,rgba(103,207,255,.34)); background:rgba(255,255,255,.025); color:#ddecf6; font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; cursor:pointer; }
.session-debrief-actions button:hover,.session-debrief-actions button:focus-visible { border-color:var(--ui-accent,#67cfff); color:#fff; background:var(--ui-accent-soft,rgba(47,147,255,.12)); outline:none; }
.session-debrief-window>small { display:block; margin-top:18px; color:#607586; }
body.theme-complete:not(.theme-legendary) .session-debrief-window { border-color:rgba(217,108,255,.40); border-top-color:#67e8ff; box-shadow:0 28px 100px rgba(0,0,0,.62),0 0 44px rgba(255,79,200,.10); }
body.theme-complete:not(.theme-legendary) .session-debrief-kicker,body.theme-complete:not(.theme-legendary) .session-debrief-observations>span { color:#ff68ce; }
body.theme-complete:not(.theme-legendary) .session-debrief-observations { border-left-color:#67e8ff; }
body.theme-legendary .session-debrief-window { border-color:rgba(255,196,63,.42); border-top-color:#55ddd9; box-shadow:0 28px 100px rgba(0,0,0,.66),0 0 46px rgba(255,196,63,.11); }
body.theme-legendary .session-debrief-kicker,body.theme-legendary .session-debrief-observations>span { color:#ffc43f; }
body.theme-legendary .session-debrief-observations { border-left-color:#55ddd9; }
body.debrief-active>*:not(.session-debrief) { pointer-events:none!important; }
@media(max-width:700px){ .session-debrief{padding:12px} .session-debrief-window{padding:26px 18px 20px} .session-debrief-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }


/* ==========================================================================
   v2.59 // Pass 12 integration and stability correction
   ========================================================================== */

/* Progression meters have a stable gameplay-HUD width. Meta guidance is wider,
   but it no longer dictates the width of Rupees, Hearts, or Coolness. */
.progress-hud {
  width: 158px !important;
  min-width: 158px !important;
  max-width: 158px !important;
}
.progress-hud .rupee-meter,
.progress-hud .heart-meter,
.progress-hud .cool-meter {
  width: 158px !important;
  min-width: 158px !important;
  max-width: 158px !important;
  box-sizing: border-box;
}
.progress-hud .meta-trace {
  position: absolute;
  left: 0;
  bottom: calc(100% + 5px);
  width: min(286px, calc(100vw - 36px));
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}
@media (max-width:620px) {
  .progress-hud { width: 142px !important; min-width:142px !important; max-width:142px !important; }
  .progress-hud .rupee-meter,
  .progress-hud .heart-meter,
  .progress-hud .cool-meter { width:142px !important; min-width:142px !important; max-width:142px !important; }
  .progress-hud .meta-trace { width:min(270px,calc(100vw - 24px)); }
}

/* Cool Mode rainbow must win after rarity-specific meter colors. */
body .cool-meter.limit-ready .cool-meter-track i,
body.theme-complete:not(.theme-legendary) .cool-meter.limit-ready .cool-meter-track i,
body.theme-complete.theme-legendary .cool-meter.limit-ready .cool-meter-track i {
  background: linear-gradient(90deg,#ff3b30,#ff9500,#ffcc00,#34c759,#00c7be,#0a84ff,#bf5af2,#ff2d55,#ff3b30) !important;
  background-size: 260% 100% !important;
  box-shadow: 0 0 12px rgba(255,255,255,.82),0 0 22px rgba(103,232,255,.34) !important;
  animation: cool-meter-rainbow-v259 .72s linear infinite !important;
}
body .cool-meter.limit-ready .cool-meter-top span,
body .cool-meter.limit-ready .cool-meter-top b {
  color:#fff !important;
  text-shadow:0 0 8px rgba(255,255,255,.5);
}
@keyframes cool-meter-rainbow-v259 { to { background-position:260% 0; } }

/* Keep the Interact control clear of the Hint button. INTERACT // OFF means
   normal portfolio interaction is disabled and the game layer owns clicks. */
.interact-mode-toggle { right:18px !important; bottom:60px !important; }
@media (max-width:620px){ .interact-mode-toggle { right:12px !important; bottom:54px !important; } }

/* Interact OFF also blocks the custom Three.js navigation canvas, which does not
   use an ordinary link/button element. Game-layer objects remain untouched. */
body.interaction-hunt #hero-canvas,
body.interaction-hunt .hero-scene-wrap,
body.interaction-hunt .perspective-demo canvas {
  pointer-events:none !important;
}

/* Popup Doug is still a valid game-layer interaction while the page body is
   suppressed, so keep the cameo visually alive rather than inheriting the
   surrounding "do not click this" mood. */
body.interaction-hunt .doug-peek {
  opacity:1 !important;
  filter:drop-shadow(0 -14px 30px rgba(0,0,0,.48)) brightness(1.09) saturate(1.08) !important;
  isolation:isolate;
}
body.interaction-hunt .doug-peek::before {
  content:"";
  position:absolute;
  inset:5% -8% 0;
  z-index:-1;
  border-radius:48% 48% 0 0;
  background:radial-gradient(ellipse at 50% 55%,rgba(103,232,255,.15),transparent 68%);
  pointer-events:none;
}
body.theme-complete:not(.theme-legendary).interaction-hunt .doug-peek::before {
  background:radial-gradient(ellipse at 50% 55%,rgba(255,98,207,.16),transparent 68%);
}
body.theme-legendary.interaction-hunt .doug-peek::before {
  background:radial-gradient(ellipse at 50% 55%,rgba(255,196,63,.16),rgba(85,221,217,.06) 40%,transparent 70%);
}

/* Mushroom cursor: size is the power-up read, rarity palette is the visual read.
   Keep the arrow clean instead of changing into a multi-band candy gradient. */
.power-cursor,
body:not(.theme-complete) .power-cursor,
body.theme-complete:not(.theme-legendary) .power-cursor,
body.theme-complete.theme-legendary .power-cursor,
body:not(.theme-complete).cursor-power-2 .power-cursor,
body.theme-complete:not(.theme-legendary).cursor-power-2 .power-cursor,
body.theme-complete.theme-legendary.cursor-power-2 .power-cursor {
  background:#eef8ff !important;
  filter:drop-shadow(1px 1px 0 #06111e) drop-shadow(0 0 7px rgba(103,207,255,.60)) !important;
}
body.theme-complete:not(.theme-legendary) .power-cursor,
body.theme-complete:not(.theme-legendary).cursor-power-2 .power-cursor {
  background:#fff1fb !important;
  filter:drop-shadow(1px 1px 0 #17071b) drop-shadow(0 0 8px rgba(255,79,200,.66)) !important;
}
body.theme-complete.theme-legendary .power-cursor,
body.theme-complete.theme-legendary.cursor-power-2 .power-cursor {
  background:#fff0b7 !important;
  filter:drop-shadow(1px 1px 0 #1b1004) drop-shadow(0 0 8px rgba(255,196,63,.68)) drop-shadow(0 0 13px rgba(85,221,217,.24)) !important;
}

/* Console recovery affordances for the Wish runtime error. */
.console-inline-action {
  appearance:none;
  margin:2px 0;
  padding:5px 8px;
  border:1px solid rgba(255,88,88,.48);
  background:rgba(94,17,17,.24);
  color:#ff8d8d;
  font:800 9px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.04em;
  cursor:pointer;
}
.console-inline-action:hover,.console-inline-action:focus-visible {
  border-color:#ffb2b2; color:#fff; background:rgba(132,25,25,.34); outline:none;
}
.console-blueprint-error {
  color:#ff6262 !important;
  text-shadow:0 0 8px rgba(255,62,62,.46);
  font-weight:900;
}

/* Perspective mode selection belongs to the panel header. */
.perspective-demo .demo-header {
  display:flex !important;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin-bottom:22px;
}
.perspective-demo .demo-header-copy { min-width:0; flex:1 1 auto; }
.perspective-demo .demo-header .perspective-nav {
  flex:0 0 auto;
  justify-content:flex-end;
  margin:0 !important;
}
@media (max-width:760px) {
  .perspective-demo .demo-header { align-items:flex-start; flex-direction:column; gap:14px; }
  .perspective-demo .demo-header .perspective-nav { justify-content:flex-start; width:100%; }
}

/* Projectile impacts should never leave a finished shot sitting over the page. */
.ufo-projectile { will-change:transform,opacity; }


/* ==========================================================================
   v2.60 // Progression guidance and cleanup
   ========================================================================== */

/* Compile error is brief but unambiguous before the fake compiler closes. */
.compile-popup.compile-error .compile-window {
  border-color:rgba(255,78,78,.72) !important;
  box-shadow:0 30px 100px rgba(0,0,0,.78),0 0 34px rgba(255,58,58,.16) !important;
}
.compile-popup.compile-error .compile-icon {
  background:#9d2020 !important;
}
.compile-popup.compile-error .compile-progress i {
  background:linear-gradient(90deg,#c72d2d,#ff6868) !important;
  animation:compile-error-pulse-v260 .42s ease-in-out infinite alternate;
}
.compile-popup.compile-error #compile-percent {
  color:#ff7474 !important;
}
@keyframes compile-error-pulse-v260 {
  from { opacity:.52; }
  to { opacity:1; }
}

/* Mippi Bird logo is intentionally unglowed. The canvas itself handles blinking
   for invulnerability, so the mark remains readable at its small gameplay size. */


/* ==========================================================================
   v2.61 // Systems cohesion, progress arcs, and arcade correction
   ========================================================================== */

/* Bottom-right mode controls sit below toaster notifications. HINT remains the
   rightmost affordance, while Inspect / Design / Interact form one mode cluster. */
.play-mode-controls{
  position:fixed;
  right:76px;
  bottom:18px;
  z-index:245;
  display:flex;
  align-items:center;
  gap:6px;
  pointer-events:none;
}
.play-mode-controls > button{
  pointer-events:auto;
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(103,207,255,.34);
  background:rgba(5,13,20,.93);
  color:#cfefff;
  font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.30);
}
.play-mode-controls > button:hover,
.play-mode-controls > button:focus-visible{
  border-color:#67cfff;
  color:#fff;
  outline:none;
}
.play-mode-controls > button.active{
  border-color:#67e8ff;
  color:#fff;
  background:rgba(20,94,145,.42);
  box-shadow:0 0 20px rgba(103,232,255,.12),0 10px 30px rgba(0,0,0,.30);
}
.play-mode-controls .interact-mode-toggle{
  position:static !important;
  right:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  min-width:122px;
}
body.theme-complete:not(.theme-legendary) .play-mode-controls > button{
  border-color:rgba(255,98,207,.46);
  background:rgba(25,8,32,.94);
  color:#ffd9f4;
}
body.theme-complete:not(.theme-legendary) .play-mode-controls > button.active{
  border-color:#67e8ff;
  color:#fff;
  background:linear-gradient(90deg,rgba(129,48,177,.50),rgba(29,116,140,.35));
}
body.theme-legendary .play-mode-controls > button{
  border-color:rgba(255,196,70,.48);
  background:rgba(25,16,5,.94);
  color:#ffe7a2;
}
body.theme-legendary .play-mode-controls > button.active{
  border-color:#55ddd9;
  color:#fff0b5;
  background:linear-gradient(90deg,rgba(119,69,8,.54),rgba(18,91,87,.35));
}
@media(max-width:760px){
  .play-mode-controls{
    right:70px;
    bottom:12px;
    max-width:calc(100vw - 150px);
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .play-mode-controls > button{min-height:32px;padding:0 8px;font-size:7px;}
  .play-mode-controls .interact-mode-toggle{min-width:108px;}
}

/* Dev Console discovery stays visible beside Theme rather than hiding inside
   the expanded Achievement Ledger. */
.console-tip-dock{
  pointer-events:auto;
  min-height:34px;
  padding:0 10px;
  border:1px solid rgba(118,157,196,.30);
  background:rgba(10,17,25,.94);
  color:#9fb7cf;
  font:800 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.08em;
  cursor:pointer;
}
.console-tip-dock:hover,.console-tip-dock:focus-visible{
  border-color:#67cfff;
  color:#eaf8ff;
  outline:none;
}
body.theme-complete:not(.theme-legendary) .console-tip-dock{
  border-color:rgba(218,112,255,.38);
  background:#1c1027;
  color:#e8ccf4;
}
body.theme-complete:not(.theme-legendary) .console-tip-dock:hover{border-color:#67e8ff;color:#fff;}
body.theme-legendary .console-tip-dock{
  border-color:rgba(85,221,217,.34);
  background:#0c2424;
  color:#d9fffd;
}

/* Extra HUD tracks share the same stable width and visual grammar. */
.progress-hud .invasion-meter,
.progress-hud .castle-meter{
  display:none;
  width:158px !important;
  min-width:158px !important;
  max-width:158px !important;
  box-sizing:border-box;
  padding:7px 9px;
  border:1px solid rgba(103,207,255,.25);
  background:rgba(5,12,18,.95);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.progress-hud .invasion-meter.visible,
.progress-hud .castle-meter.visible{display:grid;gap:5px;}
.system-meter-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.system-meter-top span{color:#72e8ff;font-size:7px;font-weight:900;letter-spacing:.14em;}
.system-meter-top b{color:#e8fbff;font-size:8px;letter-spacing:.07em;}
.system-meter-track{
  height:6px;
  overflow:hidden;
  border:1px solid rgba(103,207,255,.24);
  background:#03080e;
}
.system-meter-track i{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,#147ee0,#2f93ff,#67e8ff);
  box-shadow:0 0 10px rgba(103,232,255,.56);
  transition:width .22s ease;
}
.invasion-meter.contact{
  border-color:rgba(255,93,93,.72)!important;
  animation:invasion-contact-v261 .42s ease-in-out infinite alternate;
}
.invasion-meter.contact .system-meter-track i{
  background:linear-gradient(90deg,#ff3b30,#ff9f0a,#fff2b2)!important;
  box-shadow:0 0 13px rgba(255,88,67,.72)!important;
}
@keyframes invasion-contact-v261{to{box-shadow:0 0 18px rgba(255,70,55,.28),0 9px 24px rgba(0,0,0,.28)}}
body.theme-complete:not(.theme-legendary) .progress-hud .invasion-meter,
body.theme-complete:not(.theme-legendary) .progress-hud .castle-meter{
  border-color:rgba(255,79,200,.32);
  background:rgba(13,7,18,.96);
}
body.theme-complete:not(.theme-legendary) .system-meter-top span{color:#67e8ff;}
body.theme-complete:not(.theme-legendary) .system-meter-top b{color:#ffdff7;}
body.theme-complete:not(.theme-legendary) .system-meter-track{border-color:rgba(255,79,200,.26);}
body.theme-complete:not(.theme-legendary) .system-meter-track i{
  background:linear-gradient(90deg,#8e48df,#ff4fc8,#67e8ff);
  box-shadow:0 0 11px #ff4fc8;
}
body.theme-legendary .progress-hud .invasion-meter,
body.theme-legendary .progress-hud .castle-meter{
  border-color:rgba(67,224,220,.34);
  background:rgba(19,12,4,.97);
}
body.theme-legendary .system-meter-top span{color:#55ddd9;}
body.theme-legendary .system-meter-top b{color:#fff0b5;}
body.theme-legendary .system-meter-track{border-color:rgba(255,190,61,.28);}
body.theme-legendary .system-meter-track i{
  background:linear-gradient(90deg,#ff7a1a,#ffc83d,#43e0dc);
  box-shadow:0 0 11px #ffc83d;
}
@media(max-width:620px){
  .progress-hud .invasion-meter,
  .progress-hud .castle-meter{
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
  }
}

/* Enemy bullets are now JS-driven, so no CSS animation can leave them frozen
   at their final transform if a removed Shop effect or animation event fails. */
.ufo-projectile{
  left:0 !important;
  top:0 !important;
  animation:none !important;
  opacity:1 !important;
}

/* Super Boss: Interact Off provides the underlying content suppression. The
   arena remains the combat surface, but it no longer represents a separate
   interaction-lock philosophy. */
.superboss-arena{
  background:rgba(0,5,10,.40)!important;
  backdrop-filter:blur(1px) brightness(.74);
}
body.theme-complete:not(.theme-legendary) .superboss-arena{background:rgba(8,2,12,.42)!important;}
body.theme-legendary .superboss-arena{background:rgba(10,6,1,.43)!important;}

/* Player fire exists inside the Super Boss regardless of Legendary progression. */
.superboss-player-bullet{
  position:absolute;
  left:0;
  top:0;
  z-index:34;
  width:6px;
  height:28px;
  margin:-14px 0 0 -3px;
  border-radius:999px;
  pointer-events:none;
  background:linear-gradient(180deg,#fff,#67e8ff 62%,rgba(47,147,255,.18));
  box-shadow:0 0 8px #fff,0 0 18px #67e8ff,0 0 30px rgba(47,147,255,.42);
  will-change:transform;
}
body.theme-complete:not(.theme-legendary) .superboss-player-bullet{
  box-shadow:0 0 8px #fff,0 0 18px #ff4fc8,0 0 26px rgba(103,232,255,.48);
}
body.theme-legendary .superboss-player-bullet{
  background:#fff0b5;
  box-shadow:0 0 8px #fff0b5,0 0 18px #ffc83d,0 0 28px rgba(67,224,220,.54);
}

/* The sweeping Mega Laser changes angle continuously. */
.superboss-laser{transition:none!important;}
.superboss-laser.active{animation:superboss-live-beam-v261 .16s linear infinite alternate;}
@keyframes superboss-live-beam-v261{to{filter:brightness(1.24)}}

/* Longer Design notes need a readable commentary panel instead of a one-line
   tooltip. It still does not move or reflow the annotated page element. */
.inspect-tooltip.design{
  width:min(590px,calc(100vw - 28px));
  max-width:min(590px,calc(100vw - 28px));
  max-height:min(48vh,430px);
  overflow:auto;
  white-space:normal;
  line-height:1.58;
  padding:13px 15px;
}

/* Wish branches now get authored spectacle, not only a one-line toast. */
.wish-spectacle{
  position:fixed;
  inset:0;
  z-index:510;
  display:grid;
  place-items:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .24s ease;
  background:radial-gradient(circle at 50% 48%,rgba(47,147,255,.14),rgba(0,0,0,.26) 54%,transparent 78%);
}
.wish-spectacle.show{opacity:1;}
.wish-spectacle-panel{
  width:min(620px,calc(100vw - 36px));
  padding:24px 26px;
  border:1px solid var(--rarity-line);
  background:linear-gradient(145deg,var(--rarity-panel),var(--rarity-panel-2));
  box-shadow:0 30px 110px rgba(0,0,0,.68),0 0 44px var(--rarity-shadow);
  text-align:center;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  animation:wish-spectacle-in-v261 .46s cubic-bezier(.2,.8,.2,1) both;
}
.wish-spectacle-panel>span{
  display:block;
  color:var(--rarity-secondary);
  font-size:8px;
  font-weight:900;
  letter-spacing:.18em;
  margin-bottom:9px;
}
.wish-spectacle-panel>strong{
  display:block;
  color:var(--rarity-text);
  font-size:clamp(22px,4vw,42px);
  line-height:1.04;
  letter-spacing:.06em;
  margin-bottom:16px;
}
.wish-spectacle-lines{display:grid;gap:7px;}
.wish-spectacle-lines b,.wish-spectacle-lines em{
  display:block;
  color:var(--rarity-muted);
  font-size:9px;
  font-style:normal;
  letter-spacing:.08em;
}
.wish-spectacle-lines em{color:var(--rarity-secondary);margin-top:6px;}
.wish-spectacle-panel img{
  width:118px;
  height:118px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid var(--rarity-secondary);
  margin:0 auto 15px;
  box-shadow:0 0 28px var(--rarity-shadow);
}
.wish-spectacle-ai .wish-spectacle-panel{animation:wish-ai-glitch-v261 .22s steps(2,end) 4,wish-spectacle-in-v261 .46s ease both;}
.wish-spectacle-game{background:radial-gradient(circle,rgba(255,255,255,.10),rgba(0,0,0,.18) 58%,transparent 82%);}
.wish-spectacle-doug .wish-spectacle-panel{border-radius:5px;}
@keyframes wish-spectacle-in-v261{from{opacity:0;transform:scale(.94) translateY(12px)}to{opacity:1;transform:none}}
@keyframes wish-ai-glitch-v261{0%{translate:-2px 0}50%{translate:3px -1px}100%{translate:0 0}}

/* ==========================================================================
   v2.65 // Shop rarity cards keep their own rarity palette
   ========================================================================== */
/* Shop inventory rarity is semantic. A Rare card should stay Rare blue/cyan
   even while the surrounding site is currently using Epic or Legendary. */
.shop-rarity-section.rarity-rare {
  --shop-rarity-primary:#2f93ff;
  --shop-rarity-secondary:#67e8ff;
  --shop-rarity-hot:#8fd6ff;
  --shop-rarity-panel:rgba(6,12,19,.975);
  --shop-rarity-panel-2:rgba(10,28,43,.97);
  --shop-rarity-line:rgba(93,174,255,.42);
  --shop-rarity-text:#edf8ff;
  --shop-rarity-muted:#8fa9c0;
  --shop-rarity-shadow:rgba(47,147,255,.12);
}
.shop-rarity-section.rarity-epic {
  --shop-rarity-primary:#b13cff;
  --shop-rarity-secondary:#67e8ff;
  --shop-rarity-hot:#ff4fc8;
  --shop-rarity-panel:rgba(24,9,34,.978);
  --shop-rarity-panel-2:rgba(12,19,27,.97);
  --shop-rarity-line:rgba(215,104,255,.44);
  --shop-rarity-text:#fff2ff;
  --shop-rarity-muted:#b59bc1;
  --shop-rarity-shadow:rgba(255,79,200,.11);
}
.shop-rarity-section.rarity-legendary {
  --shop-rarity-primary:#ff9d25;
  --shop-rarity-secondary:#43e0dc;
  --shop-rarity-hot:#ffc83d;
  --shop-rarity-panel:rgba(30,18,5,.982);
  --shop-rarity-panel-2:rgba(9,20,19,.97);
  --shop-rarity-line:rgba(255,192,64,.46);
  --shop-rarity-text:#fff3c7;
  --shop-rarity-muted:#c2ad83;
  --shop-rarity-shadow:rgba(255,159,31,.10);
}
.shop-rarity-section .shop-item:not(.locked) {
  border-color:var(--shop-rarity-line) !important;
  background:linear-gradient(145deg,var(--shop-rarity-panel),var(--shop-rarity-panel-2)) !important;
  box-shadow:0 0 0 transparent;
}
.shop-rarity-section .shop-item:not(.locked):hover {
  border-color:var(--shop-rarity-secondary) !important;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--shop-rarity-primary) 16%,var(--shop-rarity-panel)),
    var(--shop-rarity-panel-2)) !important;
  box-shadow:0 0 24px var(--shop-rarity-shadow);
}
.shop-rarity-section .shop-item:not(.locked) .shop-item-grade {
  color:var(--shop-rarity-hot) !important;
}
.shop-rarity-section .shop-item:not(.locked) .shop-item-top span {
  color:var(--shop-rarity-primary) !important;
}
.shop-rarity-section .shop-item:not(.locked) .shop-item-top b {
  color:var(--shop-rarity-muted) !important;
}
.shop-rarity-section .shop-item:not(.locked) h4 {
  color:var(--shop-rarity-text) !important;
}
.shop-rarity-section .shop-item:not(.locked) p {
  color:var(--shop-rarity-muted) !important;
}
.shop-rarity-section .shop-item:not(.locked) button {
  border-color:color-mix(in srgb,var(--shop-rarity-primary) 52%,transparent) !important;
  background:color-mix(in srgb,var(--shop-rarity-primary) 11%,var(--shop-rarity-panel)) !important;
  color:var(--shop-rarity-text) !important;
}
.shop-rarity-section .shop-item:not(.locked) button:hover:not(:disabled) {
  border-color:var(--shop-rarity-secondary) !important;
  background:color-mix(in srgb,var(--shop-rarity-primary) 23%,var(--shop-rarity-panel)) !important;
  color:#fff !important;
}
.shop-rarity-section .shop-item:not(.locked) button:focus-visible {
  outline-color:var(--shop-rarity-secondary) !important;
}
.shop-rarity-section .shop-item.owned:not(.locked) {
  border-color:color-mix(in srgb,var(--shop-rarity-secondary) 54%,var(--shop-rarity-line)) !important;
}
.shop-rarity-section .shop-item.equipped:not(.locked) {
  border-color:var(--shop-rarity-secondary) !important;
  box-shadow:inset 3px 0 0 var(--shop-rarity-primary),0 0 26px var(--shop-rarity-shadow) !important;
}
.shop-rarity-section .shop-item.equipped:not(.locked) button:disabled {
  color:var(--shop-rarity-secondary) !important;
  background:color-mix(in srgb,var(--shop-rarity-primary) 17%,var(--shop-rarity-panel)) !important;
  border-color:color-mix(in srgb,var(--shop-rarity-secondary) 52%,transparent) !important;
}


/* ==========================================================================
   v2.66 // Timed objectives + ambient opportunity floor
   ========================================================================== */
/* Optional Objectives stay fully opaque while active. Their bar is now a real
   countdown, not task-completion fill. Failure is explicit and short-lived. */

/* ========================================================================== 
   v2.69 // Authored Wish events
   ========================================================================== */
.wish-sequence-overlay{
  position:fixed;
  inset:0;
  z-index:520;
  display:grid;
  place-items:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s ease;
  background:radial-gradient(circle at 50% 42%,rgba(30,105,170,.18),rgba(0,0,0,.42) 62%,rgba(0,0,0,.12));
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.wish-sequence-overlay.show{opacity:1;}
.wish-sequence-overlay.leaving{opacity:0;}

/* Multi-engine port */
.engine-port-window{
  width:min(900px,calc(100vw - 40px));
  padding:26px;
  border:1px solid rgba(103,232,255,.42);
  background:linear-gradient(150deg,rgba(8,14,22,.98),rgba(9,24,35,.98));
  box-shadow:0 34px 120px rgba(0,0,0,.78),0 0 50px rgba(47,147,255,.16);
}
.engine-port-kicker{color:#67e8ff;font-size:9px;font-weight:900;letter-spacing:.16em;margin-bottom:8px;}
.engine-port-window h2{margin:0;color:#f2f8ff;font-size:clamp(24px,4vw,44px);letter-spacing:.04em;}
.engine-port-copy{margin:7px 0 20px;color:#91a8bd;font-size:10px;}
.engine-port-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.engine-port-grid article{padding:14px;border:1px solid rgba(116,157,191,.28);background:rgba(255,255,255,.025);}
.engine-port-grid article.complete{border-color:rgba(103,232,255,.68);box-shadow:inset 0 0 24px rgba(50,180,220,.08);}
.engine-port-grid article strong{display:block;color:#dfeaf4;font-size:11px;letter-spacing:.07em;}
.engine-port-grid article>b{display:block;margin:9px 0 7px;color:#67e8ff;font-size:22px;}
.engine-port-grid article>i{display:block;height:7px;border:1px solid rgba(255,255,255,.14);background:#081018;overflow:hidden;}
.engine-port-grid article>i span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2f93ff,#67e8ff);}
.engine-port-grid article small{display:block;margin-top:7px;color:#72879a;font-size:8px;min-height:20px;}
.engine-port-log{margin:16px 0 12px;padding:10px 12px;border-left:2px solid #67e8ff;background:rgba(103,232,255,.055);color:#c6d5e2;font-size:9px;letter-spacing:.06em;}
.engine-port-total{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;color:#8097aa;font-size:8px;letter-spacing:.09em;}
.engine-port-total>i{height:9px;background:#071019;border:1px solid rgba(255,255,255,.12);overflow:hidden;}
.engine-port-total>i b{display:block;height:100%;width:0;background:linear-gradient(90deg,#2f93ff,#67e8ff);}
.engine-port-total>strong{color:#e8f6ff;font-size:10px;}
.engine-port-build{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);color:#708597;font-size:9px;}
.engine-port-build b,.engine-port-build strong,.engine-port-build small{display:block;}
.engine-port-build b{color:#6fe6c2;margin-bottom:4px;}
.engine-port-build strong{color:#ffd166;font-size:20px;margin-bottom:4px;}
.engine-port-build small{color:#8c9eac;}

/* AI refactor disaster */
body.ai-wish-corrupted{overflow-x:hidden;}
body.ai-wish-corrupted main{filter:contrast(1.08) saturate(1.35);}
body.ai-wish-corrupted main>section:nth-of-type(odd){transform:translateX(18px) skewX(-.8deg);}
body.ai-wish-corrupted main>section:nth-of-type(3n){filter:hue-rotate(22deg) saturate(1.75);}
body.ai-wish-corrupted main .card:nth-child(3n+1),body.ai-wish-corrupted main article:nth-child(3n+1){transform:rotate(.8deg) scale(1.018);}
body.ai-wish-corrupted main .card:nth-child(3n+2),body.ai-wish-corrupted main article:nth-child(3n+2){transform:translateY(13px) rotate(-.55deg);}
body.ai-wish-corrupted .hero h1{letter-spacing:.22em;transform:scaleX(.84);transform-origin:left center;}
body.ai-wish-corrupted .site-nav{transform:translateY(7px) scaleY(.92);}
body.ai-wish-corrupted main a,body.ai-wish-corrupted main button,body.ai-wish-corrupted .site-nav a{pointer-events:none!important;cursor:not-allowed!important;}
body.ai-wish-corrupted .progress-hud{transform:scale(.91) rotate(.4deg);transform-origin:right bottom;}
body.ai-wish-corrupted .theme-cycle{filter:hue-rotate(115deg);}
.ai-corruption-badge{
  position:fixed;z-index:8700;pointer-events:none;padding:6px 9px;border:1px solid rgba(255,85,166,.58);background:rgba(22,6,18,.93);color:#ff74ba;
  font:800 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;box-shadow:0 8px 30px rgba(0,0,0,.38);transform:rotate(-2deg);
}
.ai-corruption-badge:nth-of-type(even){transform:rotate(2deg);}
.ai-corruption-status{
  position:fixed;z-index:8750;left:18px;bottom:18px;width:min(310px,calc(100vw - 36px));padding:13px 14px;border:1px solid rgba(255,85,166,.5);background:rgba(12,6,13,.96);box-shadow:0 18px 60px rgba(0,0,0,.58);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.ai-corruption-status span,.ai-corruption-status strong,.ai-corruption-status small{display:block;}
.ai-corruption-status span{color:#ff74ba;font-size:8px;font-weight:900;letter-spacing:.12em;}
.ai-corruption-status strong{margin:5px 0 3px;color:#fff;font-size:13px;}
.ai-corruption-status small{color:#a78c9d;font-size:9px;}
.ai-undo-button{
  position:fixed;z-index:9000;right:22px;top:22px;width:min(330px,calc(100vw - 44px));padding:14px 16px;border:2px solid #ff4f9a;background:linear-gradient(145deg,#2a081b,#12060e);color:#fff;text-align:left;cursor:pointer;box-shadow:0 20px 80px rgba(0,0,0,.62),0 0 36px rgba(255,79,154,.28);opacity:0;transform:translateY(-12px) scale(.96);transition:opacity .2s ease,transform .2s ease;
}
.ai-undo-button.show{opacity:1;transform:none;}
.ai-undo-button:hover,.ai-undo-button:focus-visible{border-color:#fff;box-shadow:0 20px 80px rgba(0,0,0,.68),0 0 48px rgba(255,79,154,.45);}
.ai-undo-button span,.ai-undo-button strong,.ai-undo-button small{display:block;}
.ai-undo-button span{color:#ff8fc4;font:800 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;}
.ai-undo-button strong{margin:4px 0;color:#fff;font:900 28px/1 Segoe UI,Arial,sans-serif;letter-spacing:.04em;}
.ai-undo-button small{color:#c6a8b7;font:9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;}

/* Commercial success monkey paw */
.game-success-overlay{background:radial-gradient(circle at 50% 30%,rgba(50,140,170,.2),rgba(3,13,20,.72) 64%,rgba(0,0,0,.45));}
.game-success-window{width:min(900px,calc(100vw - 40px));padding:24px;border:1px solid rgba(92,180,202,.42);background:linear-gradient(155deg,rgba(7,22,31,.985),rgba(9,31,43,.985));box-shadow:0 35px 130px rgba(0,0,0,.8);}
.game-success-head span{display:block;color:#66d7ec;font-size:9px;font-weight:900;letter-spacing:.14em;}
.game-success-head strong{display:block;margin:5px 0 3px;color:#eefaff;font-size:clamp(26px,5vw,48px);}
.game-success-head small{color:#8ba6b4;font-size:9px;}
.game-success-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0 12px;}
.game-success-stats article{padding:11px 12px;border:1px solid rgba(102,215,236,.16);background:rgba(255,255,255,.025);}
.game-success-stats span,.game-success-stats b{display:block;}
.game-success-stats span{color:#708c9b;font-size:8px;letter-spacing:.08em;}
.game-success-stats b{margin-top:4px;color:#dffbff;font-size:17px;}
.game-success-news{display:flex;gap:9px;align-items:center;padding:9px 11px;background:rgba(102,215,236,.055);border-left:2px solid #66d7ec;color:#bed0da;font-size:9px;}
.game-success-news i{font-style:normal;color:#ff6a7b;font-weight:900;}
.game-success-money{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:10px;margin-top:13px;}
.game-success-money>div{padding:12px;border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.18);}
.game-success-money span,.game-success-money strong,.game-success-money b,.game-success-money small{display:block;}
.game-success-money span{color:#8096a2;font-size:8px;letter-spacing:.08em;}
.game-success-money strong{margin-top:4px;color:#fff;font-size:20px;}
.game-success-money small{margin-top:3px;color:#8b99a1;font-size:8px;}
.game-success-money .developer{border-color:rgba(255,96,112,.34);}
.game-success-money .developer strong{color:#ff6978;}
.game-success-money .mippi{border-color:rgba(113,230,180,.36);box-shadow:inset 0 0 25px rgba(72,220,160,.05);}
.game-success-money .mippi strong{color:#78ebbb;font-size:26px;}
.game-success-money .mippi b{margin-top:3px;color:#d9fff0;font-size:15px;}
.game-success-fineprint{margin-top:12px;color:#738994;font-size:8px;text-align:center;}
.game-success-fineprint b{color:#fff;}.game-success-fineprint strong{color:#78ebbb;font-size:15px;}
.game-success-overlay.monkey-paw .game-success-window{box-shadow:0 35px 130px rgba(0,0,0,.8),0 0 58px rgba(72,220,160,.11);}
.game-exposure-badge{position:absolute;right:4vw;bottom:5vh;padding:11px 15px;border:2px solid #ffd166;background:#211807;color:#fff;transform:rotate(-7deg);box-shadow:0 18px 50px rgba(0,0,0,.48);}
.game-exposure-badge span,.game-exposure-badge strong,.game-exposure-badge small{display:block;}.game-exposure-badge span{font-size:7px;}.game-exposure-badge strong{color:#ffd166;font-size:22px;}.game-exposure-badge small{font-size:8px;color:#b9a77b;}

/* Doug executive review */
.doug-review-overlay{place-items:end start;background:linear-gradient(90deg,rgba(0,0,0,.38),transparent 55%);}
.doug-review-board{width:min(430px,calc(100vw - 34px));margin:0 0 26px 24px;padding:16px;border:1px solid rgba(255,209,102,.38);background:rgba(15,17,18,.97);box-shadow:0 26px 90px rgba(0,0,0,.68);}
.doug-review-board header{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08);}
.doug-review-board header img{width:68px;height:68px;border-radius:50%;object-fit:cover;border:2px solid #ffd166;}
.doug-review-board header span,.doug-review-board header strong,.doug-review-board header small{display:block;}
.doug-review-board header span{color:#ffd166;font-size:8px;font-weight:900;letter-spacing:.12em;}
.doug-review-board header strong{margin:3px 0;color:#fff;font-size:19px;}
.doug-review-board header small{color:#858d92;font-size:8px;}
.doug-review-rows{margin-top:10px;display:grid;gap:5px;}
.doug-review-rows>div{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:7px 9px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);}
.doug-review-rows span{color:#848d93;font-size:8px;letter-spacing:.08em;}.doug-review-rows b{color:#dce1e4;font-size:8px;text-align:right;}.doug-review-rows b.warn{color:#ff9f68;}.doug-review-rows b.good{color:#7be7ac;}
.doug-review-board footer{margin-top:10px;padding:10px;border:1px solid rgba(255,209,102,.25);text-align:center;background:rgba(255,209,102,.04);}.doug-review-board footer span,.doug-review-board footer strong{display:block;}.doug-review-board footer span{color:#8c8367;font-size:7px;}.doug-review-board footer strong{margin-top:3px;color:#ffd166;font-size:13px;}
.doug-directive{position:fixed;z-index:540;padding:8px 11px;border:2px solid #ffd166;background:#17140c;color:#fff;font:900 12px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;box-shadow:0 12px 40px rgba(0,0,0,.5);opacity:0;transform:scale(.7) rotate(-4deg);transition:opacity .14s ease,transform .14s ease;pointer-events:none;}.doug-directive.show{opacity:1;transform:scale(1) rotate(-2deg);}.doug-directive.leaving{opacity:0;transform:scale(1.05) rotate(2deg);}
.doug-approval-stamp{position:fixed;z-index:545;right:8vw;top:18vh;padding:18px 24px;border:5px double #ffd166;color:#ffd166;background:rgba(29,22,8,.91);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;transform:rotate(-12deg) scale(2);opacity:0;transition:opacity .22s ease,transform .28s cubic-bezier(.2,.9,.3,1.2);pointer-events:none;}.doug-approval-stamp.show{opacity:1;transform:rotate(-8deg) scale(1);}.doug-approval-stamp.leaving{opacity:0;}.doug-approval-stamp span,.doug-approval-stamp strong,.doug-approval-stamp small{display:block;}.doug-approval-stamp span{font-size:9px;}.doug-approval-stamp strong{font-size:28px;}.doug-approval-stamp small{margin-top:4px;color:#fff3bd;font-size:9px;}
body.doug-review-bigger .progress-hud{transform:scale(1.18);transform-origin:right bottom;}

@media (max-width:720px){
  .engine-port-grid,.game-success-stats{grid-template-columns:1fr;}
  .game-success-money{grid-template-columns:1fr;}
  .engine-port-window,.game-success-window{max-height:88vh;overflow:auto;}
  .doug-review-board{margin:0 17px 18px;}
  .doug-approval-stamp{right:4vw;top:12vh;}
  .ai-corruption-badge{display:none;}
}


/* v2.70 // Contextual progression attention --------------------------------
   These pulses are stateful affordances, not ambient decoration. They only
   appear when clicking the control can immediately advance a live system. */
.progress-hud .rupee-meter.shop-ready{
  border-color:#7de7ff;
  animation:rupee-shop-ready .58s ease-in-out infinite alternate;
}
.progress-hud .rupee-meter.shop-ready b{
  color:#fff;
  text-shadow:0 0 9px rgba(103,232,255,.95);
}
@keyframes rupee-shop-ready{
  from{box-shadow:0 0 0 rgba(103,232,255,0),0 8px 18px rgba(0,0,0,.26);filter:brightness(1)}
  to{box-shadow:0 0 18px rgba(103,232,255,.62),0 0 34px rgba(20,126,224,.22),0 9px 24px rgba(0,0,0,.30);filter:brightness(1.16)}
}
body.theme-complete:not(.theme-legendary) .progress-hud .rupee-meter.shop-ready{
  border-color:#ff75d8;
  animation-name:rupee-shop-ready-epic;
}
@keyframes rupee-shop-ready-epic{
  from{box-shadow:0 0 0 rgba(255,79,200,0),0 8px 18px rgba(0,0,0,.28);filter:brightness(1)}
  to{box-shadow:0 0 18px rgba(255,79,200,.58),0 0 34px rgba(103,232,255,.22),0 9px 24px rgba(0,0,0,.32);filter:brightness(1.16)}
}
body.theme-complete.theme-legendary .progress-hud .rupee-meter.shop-ready{
  border-color:#ffc83d;
  animation-name:rupee-shop-ready-legendary;
}
@keyframes rupee-shop-ready-legendary{
  from{box-shadow:0 0 0 rgba(255,200,61,0),0 8px 18px rgba(0,0,0,.30);filter:brightness(1)}
  to{box-shadow:0 0 19px rgba(255,200,61,.62),0 0 34px rgba(67,224,220,.22),0 9px 24px rgba(0,0,0,.34);filter:brightness(1.17)}
}

.console-tip-dock.attention-ready{
  border-color:#7de7ff;
  color:#f4fbff;
  animation:console-attention-ready .56s ease-in-out infinite alternate;
}
.console-tip-dock.attention-ready.attention-blueprint{
  border-color:#ffbd66;
  animation-name:console-attention-blueprint;
}
@keyframes console-attention-ready{
  from{box-shadow:0 0 0 rgba(103,232,255,0);filter:brightness(1)}
  to{box-shadow:0 0 17px rgba(103,232,255,.62),0 0 32px rgba(20,126,224,.22);filter:brightness(1.18)}
}
@keyframes console-attention-blueprint{
  from{box-shadow:0 0 0 rgba(255,189,102,0);filter:brightness(1)}
  to{box-shadow:0 0 18px rgba(255,189,102,.64),0 0 30px rgba(255,86,86,.17);filter:brightness(1.18)}
}
body.theme-complete:not(.theme-legendary) .console-tip-dock.attention-ready:not(.attention-blueprint){
  border-color:#ff75d8;
  animation-name:console-attention-epic;
}
@keyframes console-attention-epic{
  from{box-shadow:0 0 0 rgba(255,79,200,0);filter:brightness(1)}
  to{box-shadow:0 0 18px rgba(255,79,200,.58),0 0 30px rgba(103,232,255,.20);filter:brightness(1.18)}
}
body.theme-complete.theme-legendary .console-tip-dock.attention-ready:not(.attention-blueprint){
  border-color:#ffc83d;
  animation-name:console-attention-legendary;
}
@keyframes console-attention-legendary{
  from{box-shadow:0 0 0 rgba(255,200,61,0);filter:brightness(1)}
  to{box-shadow:0 0 18px rgba(255,200,61,.62),0 0 31px rgba(67,224,220,.20);filter:brightness(1.18)}
}

/* ==========================================================================
   v2.72 // Postgame achievement tiers, claim cues, Finale and console polish
   ========================================================================== */

/* Fixed bottom controls own screen space. Give the footer a little more air so
   its useful links do not land underneath them at max scroll. */
.site-footer{
  box-sizing:border-box;
  padding-bottom:40px;
}
@media(max-width:760px){
  .site-footer{padding-bottom:52px;}
}

/* Hearts and Castles are meters until complete, then become explicit claim
   buttons. Disabled retains the meter's normal visual weight. */
.heart-meter,
.progress-hud .castle-meter{
  appearance:none;
  -webkit-appearance:none;
  margin:0;
  text-align:inherit;
}
.heart-meter:disabled,
.progress-hud .castle-meter:disabled{
  opacity:1;
  cursor:default;
}
.heart-meter.reward-ready,
.progress-hud .castle-meter.reward-ready{
  cursor:pointer;
  pointer-events:auto;
  animation:milestone-claim-ready-rare .56s ease-in-out infinite alternate;
}
.heart-meter.reward-ready{
  border-color:#ff6f96 !important;
}
.progress-hud .castle-meter.reward-ready{
  border-color:#7de7ff !important;
}
.heart-meter.reward-ready span.filled{
  color:#ff6f96 !important;
  text-shadow:0 0 11px rgba(255,91,133,.95),0 0 24px rgba(255,91,133,.45) !important;
}
.progress-hud .castle-meter.reward-ready .system-meter-top span,
.progress-hud .castle-meter.reward-ready .system-meter-top b{
  color:#effcff !important;
  text-shadow:0 0 10px rgba(103,232,255,.75);
}
@keyframes milestone-claim-ready-rare{
  from{box-shadow:0 0 0 rgba(103,232,255,0),0 8px 18px rgba(0,0,0,.26);filter:brightness(1)}
  to{box-shadow:0 0 19px rgba(103,232,255,.58),0 0 34px rgba(255,91,133,.16),0 10px 24px rgba(0,0,0,.30);filter:brightness(1.18)}
}
body.theme-complete:not(.theme-legendary) .heart-meter.reward-ready,
body.theme-complete:not(.theme-legendary) .progress-hud .castle-meter.reward-ready{
  border-color:#ff75d8 !important;
  animation-name:milestone-claim-ready-epic;
}
@keyframes milestone-claim-ready-epic{
  from{box-shadow:0 0 0 rgba(255,79,200,0),0 8px 18px rgba(0,0,0,.28);filter:brightness(1)}
  to{box-shadow:0 0 20px rgba(255,79,200,.64),0 0 34px rgba(103,232,255,.24),0 10px 24px rgba(0,0,0,.32);filter:brightness(1.18)}
}
body.theme-complete.theme-legendary .heart-meter.reward-ready,
body.theme-complete.theme-legendary .progress-hud .castle-meter.reward-ready{
  border-color:#ffc83d !important;
  animation-name:milestone-claim-ready-legendary;
}
@keyframes milestone-claim-ready-legendary{
  from{box-shadow:0 0 0 rgba(255,200,61,0),0 8px 18px rgba(0,0,0,.30);filter:brightness(1)}
  to{box-shadow:0 0 20px rgba(255,200,61,.68),0 0 34px rgba(67,224,220,.24),0 10px 24px rgba(0,0,0,.34);filter:brightness(1.19)}
}

/* Achievement Ledger frame follows the active theme, but individual entries
   own their rarity palette. Active theme must never recolor a Rare/Epic/
   Legendary achievement into a different rarity. */
.achievement-ledger .ledger-rarity{
  display:inline-block;
  margin-bottom:4px;
  font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.14em;
}
.achievement-ledger .ledger-hint-label{font-weight:900;letter-spacing:.08em;}
.achievement-ledger .ledger-entry.rarity-rare{
  border-color:rgba(74,169,255,.25) !important;
  background:linear-gradient(100deg,rgba(9,43,74,.22),rgba(5,12,18,.22)) !important;
  box-shadow:inset 2px 0 0 rgba(47,147,255,.34) !important;
}
.achievement-ledger .ledger-entry.rarity-rare .num,
.achievement-ledger .ledger-entry.rarity-rare .ledger-rarity{color:#67cfff !important;}
.achievement-ledger .ledger-entry.rarity-rare strong{color:#8db9e8 !important;}
.achievement-ledger .ledger-entry.rarity-rare small{color:#6889aa !important;}
.achievement-ledger .ledger-entry.rarity-rare.unlocked{
  border-color:rgba(74,169,255,.42) !important;
  background:linear-gradient(100deg,rgba(9,55,96,.34),rgba(5,12,18,.28)) !important;
  box-shadow:inset 2px 0 0 #2f93ff,0 0 14px rgba(47,147,255,.05) !important;
}
.achievement-ledger .ledger-entry.rarity-rare.unlocked strong{color:#eef7ff !important;}
.achievement-ledger .ledger-entry.rarity-rare.unlocked small{color:#9bb9d6 !important;}

.achievement-ledger .ledger-entry.rarity-epic{
  border-color:rgba(224,91,255,.28) !important;
  background:linear-gradient(100deg,rgba(75,20,98,.25),rgba(9,12,19,.24)) !important;
  box-shadow:inset 2px 0 0 rgba(255,79,200,.38) !important;
}
.achievement-ledger .ledger-entry.rarity-epic .num,
.achievement-ledger .ledger-entry.rarity-epic .ledger-rarity{color:#ff68ce !important;}
.achievement-ledger .ledger-entry.rarity-epic strong{color:#c993df !important;}
.achievement-ledger .ledger-entry.rarity-epic small{color:#9b78aa !important;}
.achievement-ledger .ledger-entry.rarity-epic.unlocked{
  border-color:rgba(224,91,255,.48) !important;
  background:linear-gradient(100deg,rgba(100,29,132,.36),rgba(18,18,31,.30)) !important;
  box-shadow:inset 2px 0 0 #ff4fc8,0 0 14px rgba(255,79,200,.06) !important;
}
.achievement-ledger .ledger-entry.rarity-epic.unlocked strong{color:#ffe3f8 !important;}
.achievement-ledger .ledger-entry.rarity-epic.unlocked small{color:#d5a9d0 !important;}

.achievement-ledger .ledger-entry.rarity-legendary{
  border-color:rgba(255,190,61,.34) !important;
  background:linear-gradient(100deg,rgba(96,56,7,.28),rgba(10,20,19,.24)) !important;
  box-shadow:inset 2px 0 0 rgba(85,221,217,.44) !important;
}
.achievement-ledger .ledger-entry.rarity-legendary .num,
.achievement-ledger .ledger-entry.rarity-legendary .ledger-rarity{color:#ffd15c !important;}
.achievement-ledger .ledger-entry.rarity-legendary strong{color:#c9ad69 !important;}
.achievement-ledger .ledger-entry.rarity-legendary small{color:#9b8b67 !important;}
.achievement-ledger .ledger-entry.rarity-legendary.unlocked{
  border-color:rgba(255,190,61,.58) !important;
  background:linear-gradient(100deg,rgba(120,70,8,.42),rgba(13,38,36,.30)) !important;
  box-shadow:inset 2px 0 0 #55ddd9,0 0 18px rgba(255,200,61,.08) !important;
}
.achievement-ledger .ledger-entry.rarity-legendary.unlocked strong{color:#fff0b5 !important;}
.achievement-ledger .ledger-entry.rarity-legendary.unlocked small{color:#dbc88f !important;}

.ledger-tier-head{
  margin:13px 0 6px;
  padding:8px 9px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.018);
}
.ledger-tier-head:first-child{margin-top:0;}
.ledger-tier-head span,.ledger-tier-head strong{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;}
.ledger-tier-head span{font-size:7px;font-weight:900;letter-spacing:.14em;opacity:.72;}
.ledger-tier-head strong{margin-top:3px;font-size:9px;letter-spacing:.10em;}
.ledger-tier-head.rare{border-color:rgba(74,169,255,.22);color:#67cfff;}
.ledger-tier-head.epic{border-color:rgba(224,91,255,.28);color:#ff68ce;}
.ledger-tier-head.legendary{border-color:rgba(255,190,61,.34);color:#ffd15c;box-shadow:inset 2px 0 0 rgba(85,221,217,.45);}

/* The help listing doubles as an interaction surface. Commands still look
   like console text rather than generic browser buttons. */
.console-help-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:0;}
.console-help-category{display:inline-block;min-width:78px;color:#7891a8;font-weight:800;white-space:pre;}
.console-help-command{
  appearance:none;
  padding:0;
  border:0;
  background:transparent;
  color:#b7dfff;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
}
.console-help-command:hover,.console-help-command:focus-visible{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
  outline:none;
}
.console-help-command.console-wish-ready{color:#76f4e8;text-shadow:0 0 8px rgba(103,232,255,.45);}
.console-help-command.console-blueprint-error{color:#ffbc71;text-shadow:0 0 8px rgba(255,164,78,.28);}

/* Finale identity card: show the actual Mippi mark in white once the ending
   resolves to the identity screen. Cursor visibility is explicitly restored
   so custom cursor modes cannot make the two choices blind. */
.finale-mippi-logo{
  display:none;
  width:min(126px,28vw);
  height:auto;
  margin:0 auto 24px;
  filter:brightness(0) invert(1) drop-shadow(0 0 22px rgba(255,255,255,.16));
}
.finale-overlay.identity .finale-mippi-logo{display:block;}
body.finale-active .finale-overlay,
body.finale-active .finale-overlay *{cursor:auto !important;}
body.finale-active .finale-controls button{cursor:pointer !important;}
body.finale-active .power-cursor{opacity:0 !important;}

/* Finale-ready header signal must survive every theme, including Legendary. */
body.theme-complete.theme-legendary.finale-ready .brand-mark{
  animation:finale-logo-pulse-legendary 1.35s ease-in-out infinite !important;
  box-shadow:0 0 0 1px rgba(255,214,106,.34),0 0 24px rgba(255,200,61,.72),0 0 42px rgba(85,221,217,.28) !important;
  filter:brightness(1.18) drop-shadow(0 0 8px rgba(255,200,61,.5)) !important;
  cursor:pointer !important;
}
@keyframes finale-logo-pulse-legendary{
  50%{transform:scale(1.09);filter:brightness(1.45) drop-shadow(0 0 12px rgba(85,221,217,.62));}
}

/* Legendary 100% reward. Compact fixed player lives above the bottom-right
   control strip and can collapse to a small now-playing header. */
.music-player{
  position:fixed;
  right:18px;
  bottom:64px;
  z-index:254;
  width:min(326px,calc(100vw - 36px));
  padding:11px;
  border:1px solid rgba(255,200,61,.46);
  background:linear-gradient(150deg,rgba(36,23,6,.97),rgba(7,24,24,.97));
  color:#fff1bc;
  box-shadow:0 20px 56px rgba(0,0,0,.48),inset 2px 0 0 rgba(85,221,217,.48);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.music-player[hidden]{display:none !important;}
.music-player .music-player-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid rgba(255,200,61,.18);}
.music-player .music-player-head span,.music-player .music-player-head strong{display:block;}
.music-player .music-player-head span{color:#55ddd9;font-size:7px;font-weight:900;letter-spacing:.14em;}
.music-player .music-player-head strong{margin-top:4px;color:#fff0b5;font-size:12px;letter-spacing:.04em;}
.music-player .music-player-head button{width:28px;height:28px;padding:0;border:1px solid rgba(255,200,61,.34);background:rgba(255,255,255,.025);color:#fff0b5;cursor:pointer;}
.music-now{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;color:#9fdeda;font-size:7px;font-weight:800;letter-spacing:.08em;}
.music-now b{color:#d8c789;font-size:7px;}
.music-controls{display:grid;grid-template-columns:auto auto auto 1fr;gap:6px;margin-top:9px;}
.music-controls button,.music-controls a{min-height:31px;display:flex;align-items:center;justify-content:center;padding:0 9px;border:1px solid rgba(255,200,61,.26);background:rgba(255,255,255,.025);color:#f7e6a9;text-decoration:none;font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;cursor:pointer;}
.music-controls button:hover,.music-controls button:focus-visible,.music-controls a:hover,.music-controls a:focus-visible{border-color:#55ddd9;color:#fff;outline:none;}
.music-controls a.disabled{opacity:.42;cursor:not-allowed;}
.music-track-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px;}
.music-track-list button{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 7px;border:1px solid rgba(255,255,255,.065);background:rgba(255,255,255,.018);color:#a99d78;text-align:left;cursor:pointer;}
.music-track-list button span{color:#55ddd9;font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;}
.music-track-list button b{overflow:hidden;color:inherit;font:800 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap;}
.music-track-list button.active{border-color:rgba(255,200,61,.48);background:rgba(255,200,61,.08);color:#fff0b5;}
.music-player.collapsed{width:min(246px,calc(100vw - 36px));}
.music-player.collapsed .music-now,.music-player.collapsed .music-controls,.music-player.collapsed .music-track-list{display:none;}
.music-player.collapsed .music-player-head{padding-bottom:0;border-bottom:0;}
.music-player.new-unlock{animation:music-player-unlock 1s ease-in-out 4;}
@keyframes music-player-unlock{50%{box-shadow:0 0 28px rgba(255,200,61,.46),0 0 46px rgba(85,221,217,.18),0 20px 56px rgba(0,0,0,.48);}}
@media(max-width:760px){
  .music-player{right:12px;bottom:58px;width:min(310px,calc(100vw - 24px));}
  .music-track-list{grid-template-columns:1fr;max-height:122px;overflow:auto;}
}

/* Persistent authored Wish reports stay on screen until the visitor dismisses
   them. Their close action is intentionally unavailable until the sequence has
   finished presenting its result. */
.wish-sequence-overlay{pointer-events:auto;}
.wish-sequence-close{
  display:block;
  width:100%;
  min-height:38px;
  margin-top:14px;
  padding:0 14px;
  border:1px solid rgba(103,232,255,.34);
  background:rgba(255,255,255,.025);
  color:#9db1c2;
  font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em;
  cursor:not-allowed;
}
.wish-sequence-close.ready{
  border-color:#67e8ff;
  color:#effcff;
  background:rgba(47,147,255,.12);
  cursor:pointer;
  box-shadow:0 0 18px rgba(103,232,255,.08);
}
.wish-sequence-close.ready:hover,.wish-sequence-close.ready:focus-visible{
  border-color:#fff;
  background:rgba(103,232,255,.16);
  outline:none;
}
.doug-review-board .wish-sequence-close.ready{border-color:#ffd166;color:#fff0bd;background:rgba(255,209,102,.08);}
.game-success-window .wish-sequence-close.ready{border-color:#78ebbb;color:#e5fff4;background:rgba(72,220,160,.08);}

/* v2.79 // Header music player alignment + console help state polish */
.site-header{overflow:visible;}

/* The 100% reward now belongs to the sticky header instead of the bottom-right
   gameplay controls. Its top edge is the anchor: expanding only grows down. */
.site-header > .music-player{
  position:absolute;
  top:calc(100% + 1px);
  left:max(20px,calc((100vw - var(--max))/2));
  right:auto;
  bottom:auto;
  z-index:24;
  width:min(326px,calc(100vw - 40px));
  max-height:min(520px,calc(100vh - var(--header) - 18px));
  overflow:auto;
  padding:11px;
  border:1px solid rgba(47,147,255,.52);
  background:linear-gradient(150deg,rgba(8,20,34,.98),rgba(5,12,20,.98));
  color:#dff1ff;
  box-shadow:0 18px 48px rgba(0,0,0,.48),inset 2px 0 0 rgba(47,147,255,.52);
  transform:none;
  transform-origin:top left;
}
.site-header > .music-player.collapsed{width:min(266px,calc(100vw - 40px));overflow:hidden;}
.site-header > .music-player > .music-player-head{border-bottom-color:rgba(47,147,255,.20);}
.site-header > .music-player > .music-player-head span{color:#67cfff;}
.site-header > .music-player > .music-player-head strong{color:#e9f6ff;}
.site-header > .music-player > .music-player-head button{border-color:rgba(47,147,255,.38);color:#bfe5ff;}
.site-header > .music-player .music-now{color:#8fcfff;}
.site-header > .music-player .music-now b{color:#a9c9e3;}
.site-header > .music-player .music-controls button,
.site-header > .music-player .music-controls a{border-color:rgba(47,147,255,.28);color:#cae9ff;}
.site-header > .music-player .music-controls button:hover,
.site-header > .music-player .music-controls button:focus-visible,
.site-header > .music-player .music-controls a:hover,
.site-header > .music-player .music-controls a:focus-visible{border-color:#67cfff;color:#fff;}
.site-header > .music-player .music-track-list button{color:#8ea7bb;}
.site-header > .music-player .music-track-list button span{color:#67cfff;}
.site-header > .music-player .music-track-list button.active{border-color:rgba(47,147,255,.52);background:rgba(47,147,255,.09);color:#eef8ff;}

body.theme-complete:not(.theme-legendary) .site-header > .music-player{
  border-color:rgba(255,79,200,.48);
  background:linear-gradient(150deg,rgba(31,10,40,.98),rgba(10,15,30,.98));
  color:#ffe4f8;
  box-shadow:0 18px 48px rgba(0,0,0,.50),inset 2px 0 0 rgba(103,232,255,.48);
}
body.theme-complete:not(.theme-legendary) .site-header > .music-player > .music-player-head{border-bottom-color:rgba(255,79,200,.20);}
body.theme-complete:not(.theme-legendary) .site-header > .music-player > .music-player-head span,
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-track-list button span{color:#67e8ff;}
body.theme-complete:not(.theme-legendary) .site-header > .music-player > .music-player-head strong{color:#ffdff7;}
body.theme-complete:not(.theme-legendary) .site-header > .music-player > .music-player-head button,
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-controls button,
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-controls a{border-color:rgba(255,79,200,.32);color:#ffd6f3;}
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-now{color:#d9a6ff;}
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-now b{color:#67e8ff;}
body.theme-complete:not(.theme-legendary) .site-header > .music-player .music-track-list button.active{border-color:rgba(255,79,200,.54);background:rgba(196,72,255,.10);color:#ffe8fb;}

body.theme-complete.theme-legendary .site-header > .music-player{
  border-color:rgba(255,200,61,.46);
  background:linear-gradient(150deg,rgba(36,23,6,.98),rgba(7,24,24,.98));
  color:#fff1bc;
  box-shadow:0 18px 48px rgba(0,0,0,.50),inset 2px 0 0 rgba(85,221,217,.48);
}
body.theme-complete.theme-legendary .site-header > .music-player > .music-player-head{border-bottom-color:rgba(255,200,61,.18);}
body.theme-complete.theme-legendary .site-header > .music-player > .music-player-head span,
body.theme-complete.theme-legendary .site-header > .music-player .music-track-list button span{color:#55ddd9;}
body.theme-complete.theme-legendary .site-header > .music-player > .music-player-head strong{color:#fff0b5;}
body.theme-complete.theme-legendary .site-header > .music-player > .music-player-head button,
body.theme-complete.theme-legendary .site-header > .music-player .music-controls button,
body.theme-complete.theme-legendary .site-header > .music-player .music-controls a{border-color:rgba(255,200,61,.30);color:#f7e6a9;}
body.theme-complete.theme-legendary .site-header > .music-player .music-now{color:#9fdeda;}
body.theme-complete.theme-legendary .site-header > .music-player .music-now b{color:#d8c789;}
body.theme-complete.theme-legendary .site-header > .music-player .music-track-list button.active{border-color:rgba(255,200,61,.48);background:rgba(255,200,61,.08);color:#fff0b5;}

/* "wish" is always a crisp rainbow special command. The previous clickable
   help rule reset its background to transparent while text remained clipped,
   which left only the glow and made the word look like a smudge. */
.console-help-command.console-wish-command,
.console-help-command.console-wish-command:hover,
.console-help-command.console-wish-command:focus-visible{
  color:transparent !important;
  background:linear-gradient(90deg,#ff3b30,#ff9500,#ffcc00,#34c759,#00c7be,#0a84ff,#bf5af2,#ff2d55,#ff3b30) !important;
  background-size:260% 100% !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  font-weight:900;
  text-shadow:none !important;
  filter:drop-shadow(0 0 2px rgba(103,232,255,.30));
  animation:console-wish-rainbow 1.35s linear infinite;
}
.console-help-command.console-wish-command.console-wish-ready{
  filter:drop-shadow(0 0 3px rgba(103,232,255,.66));
}

/* Blueprint becomes a live error-state command while the Wish reference is
   broken, including help text that was printed before the error occurred. */
.console-help-command.console-blueprint-error{
  color:#ff515f !important;
  -webkit-text-fill-color:#ff515f !important;
  text-shadow:0 0 8px rgba(255,55,70,.58) !important;
  animation:console-blueprint-help-alert .85s ease-in-out infinite alternate;
}
@keyframes console-blueprint-help-alert{to{color:#ff9aa3;text-shadow:0 0 12px rgba(255,55,70,.84);}}

@media(max-width:760px){
  .site-header > .music-player,
  .site-header > .music-player.collapsed{
    left:12px;
    right:12px;
    bottom:auto;
    width:auto;
    max-width:none;
  }
}

/* v2.79 // Music player aligns to the left edge of the Mippi logo square / header content inset. */

/* v2.80 // Soundtrack controls, shuffle, repeat, and editable LRC lyrics. */
.site-header > .music-player{
  --music-highlight:#67cfff;
  --music-highlight-rgb:47,147,255;
  --music-soft:#9abfdb;
}
body.theme-complete:not(.theme-legendary) .site-header > .music-player{
  --music-highlight:#ff68ce;
  --music-highlight-rgb:255,79,200;
  --music-soft:#d9b0e7;
}
body.theme-complete.theme-legendary .site-header > .music-player{
  --music-highlight:#ffd15c;
  --music-highlight-rgb:255,200,61;
  --music-soft:#bbd9c6;
}
.music-play-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:6px;
}
.site-header > .music-player .music-play-options button{
  min-width:0;
  min-height:28px;
  padding:4px 5px;
  border:1px solid rgba(var(--music-highlight-rgb),.26);
  background:rgba(255,255,255,.025);
  color:var(--music-soft);
  font:900 8px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.045em;
  cursor:pointer;
}
.site-header > .music-player .music-play-options button:hover,
.site-header > .music-player .music-play-options button:focus-visible{
  color:var(--music-highlight);
  border-color:var(--music-highlight);
  outline:none;
}
.site-header > .music-player .music-play-options button[aria-pressed="true"]{
  color:var(--music-highlight);
  background:rgba(var(--music-highlight-rgb),.13);
  border-color:rgba(var(--music-highlight-rgb),.64);
  box-shadow:inset 2px 0 0 var(--music-highlight);
}
/* Track selections and lyric '?' indicators are independent hit targets. */
.music-track-list .music-track-row{
  display:flex;
  align-items:stretch;
  gap:4px;
  min-width:0;
}
.site-header > .music-player .music-track-list .music-track-select{
  display:flex;
  flex:1 1 auto;
  gap:7px;
  min-width:0;
  align-items:center;
  padding:6px 5px;
  border:1px solid rgba(255,255,255,.065);
  background:rgba(255,255,255,.018);
  color:var(--music-soft);
  text-align:left;
  cursor:pointer;
}
.site-header > .music-player .music-track-list .music-track-select span{
  flex:none;
  color:var(--music-highlight);
}
.site-header > .music-player .music-track-list .music-track-select b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:8px;
}
.site-header > .music-player .music-track-list .music-track-row.active .music-track-select{
  color:var(--music-highlight);
  border-color:rgba(var(--music-highlight-rgb),.52);
  background:rgba(var(--music-highlight-rgb),.09);
}
.site-header > .music-player .music-track-list .music-track-info{
  display:grid;
  flex:0 0 23px;
  place-items:center;
  align-self:center;
  width:23px;
  height:23px;
  padding:0;
  border:1px solid rgba(var(--music-highlight-rgb),.45);
  border-radius:50%;
  background:rgba(var(--music-highlight-rgb),.045);
  color:var(--music-highlight);
  font:900 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  cursor:pointer;
}
.site-header > .music-player .music-track-list .music-track-info:hover,
.site-header > .music-player .music-track-list .music-track-info:focus-visible,
.site-header > .music-player .music-track-list .music-track-info.open{
  outline:none;
  color:#fff;
  border-color:var(--music-highlight);
  background:rgba(var(--music-highlight-rgb),.20);
  box-shadow:0 0 9px rgba(var(--music-highlight-rgb),.20);
}
.site-header > .music-player .music-track-list .music-track-select:hover,
.site-header > .music-player .music-track-list .music-track-select:focus-visible{
  outline:none;
  border-color:var(--music-highlight);
}
.music-lyrics-panel{
  margin-top:10px;
  padding:9px;
  border:1px solid rgba(var(--music-highlight-rgb),.38);
  background:rgba(0,0,0,.14);
}
.music-lyrics-panel[hidden]{display:none !important;}
.music-lyrics-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  padding-bottom:7px;
  border-bottom:1px solid rgba(var(--music-highlight-rgb),.18);
}
.music-lyrics-head div{min-width:0;}
.music-lyrics-head span,.music-lyrics-head strong{display:block;}
.music-lyrics-head span{
  color:var(--music-highlight);
  font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.10em;
}
.music-lyrics-head strong{
  margin-top:4px;
  color:inherit;
  font:900 10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.site-header > .music-player .music-lyrics-head button{
  flex:none;
  width:24px;
  height:24px;
  padding:0;
  border:1px solid rgba(var(--music-highlight-rgb),.30);
  background:transparent;
  color:var(--music-highlight);
  cursor:pointer;
}
.site-header > .music-player .music-lyrics-head button:hover{border-color:var(--music-highlight);}
.music-lyrics-content{
  position:relative;
  max-height:180px;
  min-height:44px;
  overflow:auto;
  padding:7px 0;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
}
.music-lyric-line{
  margin:0 0 7px;
  padding:3px 5px;
  color:var(--music-soft);
  font:600 10px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;
  overflow-wrap:anywhere;
  border-left:2px solid transparent;
  transition:color .18s ease,background .18s ease;
}
.music-lyric-line.current{
  color:var(--music-highlight);
  border-left-color:var(--music-highlight);
  background:rgba(var(--music-highlight-rgb),.10);
  font-weight:900;
}
.music-lyrics-empty{
  margin:0;
  padding:6px 3px;
  color:var(--music-soft);
  font:600 9px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.music-player.collapsed .music-play-options,
.music-player.collapsed .music-lyrics-panel{display:none;}
@media(max-width:760px){
  .site-header > .music-player .music-track-list{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce){
  .music-lyrics-content{scroll-behavior:auto;}
  .music-lyric-line{transition:none;}
}

.music-lyric-line.timed{display:grid;grid-template-columns:48px minmax(0,1fr);gap:6px;align-items:baseline;}
.music-lyric-time{color:var(--music-soft);opacity:.65;font:800 8px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;}
.music-lyric-line.current .music-lyric-time{color:var(--music-highlight);opacity:1;}

/* ===========================================================================
   v2.81 // Four-column compact HUD; replaces independent screen-space widgets
   =========================================================================== */
body.hud-unified{--hud-height:54px;--hud-divider:rgba(103,207,255,.21);}
#site-game-hud[hidden]{display:none!important;}
body.hud-unified #site-game-hud{
  position:fixed;inset:auto 0 0;z-index:255;display:grid;
  grid-template-columns:minmax(205px,1.2fr) minmax(215px,1.3fr) minmax(165px,1fr) minmax(120px,.78fr);
  min-height:var(--hud-height);padding:5px max(12px,calc((100vw - var(--max))/2));
  border-top:1px solid var(--rarity-line,rgba(103,207,255,.34));
  background:rgba(4,10,18,.96);box-shadow:0 -11px 38px rgba(0,0,0,.42);
  backdrop-filter:blur(14px);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
body.hud-unified.theme-complete:not(.theme-legendary) #site-game-hud{background:rgba(20,8,29,.97);--hud-divider:rgba(255,79,200,.25);}
body.hud-unified.theme-legendary #site-game-hud{background:rgba(22,17,7,.97);--hud-divider:rgba(255,190,61,.26);}
#site-game-hud .hud-cell{min-width:0;display:flex;align-items:center;gap:6px;padding:0 12px;min-height:43px;}
#site-game-hud .hud-cell:not(:last-child){border-right:1px solid var(--hud-divider);}
#site-game-hud #hud-progress{justify-content:flex-start;}
#site-game-hud #hud-gameplay{justify-content:center;gap:9px;}
#site-game-hud #hud-modes{justify-content:center;}
#site-game-hud #hud-utilities{justify-content:flex-end;}
#site-game-hud button{cursor:pointer;}
#site-game-hud .hud-icon-btn{
  position:relative;flex:0 0 34px;width:34px;height:34px;min-height:34px;
  display:inline-flex!important;align-items:center;justify-content:center;
  border:1px solid transparent;border-radius:4px;background:transparent!important;
  color:var(--accent-bright,#67cfff)!important;font-size:0!important;
  letter-spacing:0!important;box-shadow:none!important;opacity:1;overflow:visible;
}
#site-game-hud .hud-icon-btn::before{content:'';width:19px;height:19px;display:block;
  background:currentColor;mask-image:var(--hud-icon-markup);-webkit-mask-image:var(--hud-icon-markup);
  mask-size:contain;-webkit-mask-size:contain;mask-position:center;-webkit-mask-position:center;
  mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}
#site-game-hud .hud-icon-btn b{position:absolute;left:24px;bottom:0;font-size:8px;line-height:1;color:inherit;background:rgba(0,0,0,.8);padding:1px 2px;border-radius:2px;}
#site-game-hud .hud-icon-btn:hover,#site-game-hud .hud-icon-btn:focus-visible,
#site-game-hud .hud-icon-btn.active{border-color:var(--rarity-line,#67cfff);background:var(--accent-soft,rgba(67,180,255,.12))!important;outline:none;}
#site-game-hud .hud-icon-btn[hidden]{display:none!important;}
#site-game-hud #docs-toggle{order:1;}
#site-game-hud #design-toggle{order:0;}
#site-game-hud #inspect-toggle{order:2;}
#site-game-hud #interact-toggle{order:3;}
#site-game-hud #hint-trigger{order:0;}
#site-game-hud #theme-cycle{order:1;}
#site-game-hud #console-tip-button{order:2;}
/* Existing resource controls retain their click handlers and attention cues. */
#site-game-hud #rupee-meter,#site-game-hud #heart-meter{
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  min-height:34px;height:34px;width:auto;min-width:48px;padding:0 6px;
  border:1px solid rgba(103,207,255,.18);border-radius:4px;
  background:rgba(255,255,255,.018);box-shadow:none;font-size:10px;
}
#site-game-hud #rupee-meter:not(.visible),#site-game-hud #heart-meter:not(.visible){display:none;}
#site-game-hud #rupee-meter span{font-size:7px;letter-spacing:.04em;}
#site-game-hud #rupee-meter{gap:5px;}
#site-game-hud #heart-meter{gap:1px;min-width:94px;padding:0 4px;}
#site-game-hud #heart-meter span{display:inline-flex;width:15px;text-align:center;justify-content:center;font:900 17px/1 Georgia,serif;}
#site-game-hud #heart-meter:disabled{cursor:default;}
/* All three gameplay meters: identical footprint, no visible numbers. */
#site-game-hud #hud-gameplay.progress-hud{
  position:static!important;opacity:1!important;transform:none!important;pointer-events:auto!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  margin:0!important;transition:none!important;
}
#site-game-hud #hud-gameplay .cool-meter,
#site-game-hud #hud-gameplay .invasion-meter,
#site-game-hud #hud-gameplay .castle-meter{
  position:relative;display:grid!important;gap:4px!important;flex:1 1 65px;min-width:44px!important;
  max-width:81px!important;width:auto!important;min-height:29px!important;
  padding:4px 2px!important;margin:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;opacity:1!important;
  text-align:left;pointer-events:auto!important;
}
#site-game-hud #hud-gameplay .cool-meter-top,
#site-game-hud #hud-gameplay .system-meter-top{display:flex;gap:0;min-height:9px;font-size:7px;line-height:1;}
#site-game-hud #hud-gameplay .cool-meter-top span,
#site-game-hud #hud-gameplay .system-meter-top span{font:900 7px/1 ui-monospace,Consolas,monospace;letter-spacing:.045em;}
#site-game-hud #hud-gameplay .cool-meter-top b,
#site-game-hud #hud-gameplay .system-meter-top b{display:none!important;}
#site-game-hud #hud-gameplay .cool-meter-track,
#site-game-hud #hud-gameplay .system-meter-track{
  display:block;width:100%!important;height:5px!important;min-height:5px!important;margin:0!important;border-radius:1px;
  background:rgba(255,255,255,.07);overflow:hidden;
}
#site-game-hud #hud-gameplay .cool-meter-track i,
#site-game-hud #hud-gameplay .system-meter-track i{display:block;height:100%;}
#site-game-hud #hud-gameplay .castle-meter.reward-ready{animation:milestone-claim-ready-rare .56s infinite alternate;}
/* Old detached widgets can no longer create a second HUD or move objective up. */
body.hud-unified #discovery-controls,body.hud-unified #play-mode-controls{display:none!important;}
body.hud-unified #progress-hud{display:none!important;}
body.hud-unified .achievement-ledger{position:fixed;left:max(12px,calc((100vw - var(--max))/2));bottom:calc(var(--hud-height) - 1px);z-index:280;}
body.hud-unified .dev-console{position:fixed;left:auto;right:max(12px,calc((100vw - var(--max))/2));bottom:calc(var(--hud-height) - 1px);
  transform:translateY(calc(100% + var(--hud-height) + 20px));z-index:300;}
body.hud-unified .dev-console.open{transform:none;}
body.hud-unified .dynamic-objective{left:50%;right:auto;transform:translate(-50%,6px);}
body.hud-unified .dynamic-objective.show{transform:translateX(-50%);}
body.hud-unified .site-footer{padding-bottom:calc(var(--hud-height) + 32px);}
body.hud-unified #site-game-hud [hidden]{display:none!important;}
/* Dialogs always restore the native pointer even with purchased large cursors. */
body.cursor-grown:has(.azure-gallery[aria-hidden="false"],.session-debrief.show,.finale-overlay.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay,.unreal-gift-popup.open,.flappy-game.open) *,
body.cursor-grown:has(.azure-gallery[aria-hidden="false"],.session-debrief.show,.finale-overlay.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay,.unreal-gift-popup.open,.flappy-game.open){cursor:auto!important;}
body.cursor-grown:has(.session-debrief.show,.finale-overlay.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay) .power-cursor{opacity:0!important;}
body.cursor-grown :is(.finale-controls button,.session-debrief button,.compile-popup button,.shop-popup button,.blueprint-popup button,.wish-sequence-overlay button){cursor:pointer!important;}
.compile-popup.open{z-index:500!important;}
.about-docs-link{display:grid!important;gap:7px;padding:20px 25px!important;border-top:1px solid var(--rarity-line);text-decoration:none;background:var(--accent-soft,rgba(47,147,255,.05));}
.about-docs-link span{font:900 9px ui-monospace,Consolas,monospace;letter-spacing:.10em;color:var(--accent-bright);}
.about-docs-link strong{font-size:12px;color:var(--text,#f5faff);}
.about-docs-link b{font:900 9px ui-monospace,Consolas,monospace;letter-spacing:.12em;color:var(--accent-bright);}
@media(max-width:1050px){
  #site-game-hud{grid-template-columns:minmax(165px,1.2fr) minmax(170px,1fr) auto auto!important;padding-inline:10px!important;}
  #site-game-hud .hud-cell{padding-inline:6px;gap:3px;}
  #site-game-hud #heart-meter{min-width:75px;}
  #site-game-hud #heart-meter span{width:12px;font-size:15px;}
  #site-game-hud .hud-icon-btn{flex-basis:31px;width:31px;}
}
@media(max-width:680px){
  body.hud-unified{--hud-height:93px;}
  #site-game-hud{grid-template-columns:1fr 1fr!important;grid-template-rows:42px 42px;padding:4px 7px!important;}
  #site-game-hud .hud-cell{min-height:42px!important;justify-content:center!important;border-right:0!important;}
  #site-game-hud #hud-gameplay{order:2;}
  #site-game-hud #hud-modes{order:3;}
  #site-game-hud #hud-utilities{order:4;}
  #site-game-hud #hud-progress{order:1;}
  #site-game-hud .hud-cell:nth-child(odd){border-right:1px solid var(--hud-divider)!important;}
  #site-game-hud .hud-cell:nth-child(-n+2){border-bottom:1px solid var(--hud-divider);}
  #site-game-hud #heart-meter{min-width:66px;}
  #site-game-hud #heart-meter span{width:10px;font-size:14px;}
  #site-game-hud #rupee-meter span{display:none;}
  body.hud-unified .dev-console{right:8px;max-width:calc(100vw - 16px);}
  body.hud-unified .achievement-ledger{left:8px;max-width:calc(100vw - 16px);}
}

/* ===========================================================================
   v2.81 // Music player, icons, enhanced lyrics, progress bar and split panel
   =========================================================================== */
.site-header > .music-player{overflow:visible!important;}
.site-header > .music-player .music-controls{display:flex!important;justify-content:space-between;gap:4px;margin-top:7px;}
.site-header > .music-player .music-controls > *{padding:0!important;flex:1;min-width:0;min-height:31px;}
.site-header > .music-player .music-controls svg{width:17px;height:17px;flex:none;}
.site-header > .music-player .music-controls [aria-pressed="true"],
.site-header > .music-player .music-controls .active{color:var(--music-highlight)!important;border-color:var(--music-highlight)!important;background:rgba(var(--music-highlight-rgb),.11)!important;}
.site-header > .music-player .music-controls #music-play{flex:1.25;}
.music-progress-row{display:flex;align-items:center;gap:6px;margin-top:9px;font:800 8px ui-monospace,Consolas,monospace;color:var(--music-soft);}
.music-progress-row span{flex:0 0 27px;white-space:nowrap;}
.music-progress-row input[type=range]{flex:1;min-width:0;width:100%;height:6px;accent-color:var(--music-highlight);cursor:pointer;}
.music-progress-row input:disabled{opacity:.38;cursor:default;}
.site-header > .music-player.collapsed{width:min(282px,calc(100vw - 36px))!important;}
.site-header > .music-player.collapsed .music-progress-row{margin-top:5px;}
.site-header > .music-player.collapsed .music-now,
.site-header > .music-player.collapsed .music-track-list{display:none!important;}
.site-header > .music-player.collapsed .music-controls{display:flex!important;position:absolute;top:7px;right:40px;margin:0;gap:3px;}
.site-header > .music-player.collapsed .music-controls > *{display:none!important;}
.site-header > .music-player.collapsed .music-controls #music-play,
.site-header > .music-player.collapsed .music-controls #music-next{display:flex!important;width:28px;min-height:27px;flex:0 0 28px;}
.site-header > .music-player.collapsed #music-track-title{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Old question-mark buttons and timestamp badges are intentionally removed. */
.music-track-info,.music-lyric-time{display:none!important;}
.site-header > .music-lyrics-panel{
  position:absolute;top:calc(100% + 1px);
  left:calc(max(20px, (100vw - var(--max)) / 2) + min(326px, 100vw - 40px) + 8px);
  z-index:27;margin:0;width:min(340px,calc(100vw - 380px));max-width:340px;
  min-height:80px;max-height:min(440px,calc(100vh - var(--header) - 25px));
  padding:12px;border:1px solid rgba(var(--music-highlight-rgb),.5);
  background:rgba(4,10,20,.97);color:var(--music-highlight,#67cfff);
  box-shadow:0 18px 44px rgba(0,0,0,.56);
  font-family:ui-monospace,Consolas,monospace;
}
.site-header > .music-lyrics-panel[hidden]{display:none!important;}
.music-lyrics-actions{display:flex;align-items:center;gap:6px;}
.site-header > .music-lyrics-panel .music-lyrics-head button{border:1px solid rgba(var(--music-highlight-rgb),.35);padding:4px 7px;background:transparent;color:var(--music-highlight);font:800 9px Consolas,monospace;cursor:pointer;}
.site-header > .music-lyrics-panel .music-lyrics-content{max-height:330px;min-height:40px;overflow:auto;padding:10px 0;}
.site-header > .music-lyrics-panel .music-lyric-line{display:block!important;font:600 14px/1.6 system-ui,sans-serif;margin:0 0 8px;padding:5px 8px;}
.site-header > .music-lyrics-panel .music-lyric-line.current{font-weight:750;}
.site-header > .music-lyrics-panel .music-lyric-word.spoken{color:var(--music-highlight);font-weight:900;text-shadow:0 0 7px rgba(var(--music-highlight-rgb),.20);}
.site-header > .music-lyrics-panel .music-lyric-line.current .music-lyric-word:not(.spoken){color:var(--music-soft);}
.site-header > .music-lyrics-panel.single .music-lyric-line{display:none!important;}
.site-header > .music-lyrics-panel.single .music-lyric-line.current{display:block!important;text-align:center;border:0;background:transparent;}
.site-header > .music-lyrics-panel.single .music-lyric-line.current{font-size:16px!important;line-height:1.5;}
.site-header > .music-lyrics-panel.single .music-lyrics-content{min-height:44px;max-height:80px;overflow:hidden;}
body.music-minimized-lyrics .site-header > .music-lyrics-panel{
  left:calc(max(20px, (100vw - var(--max)) / 2) + min(282px, 100vw - 36px) + 8px);
  width:min(345px,calc(100vw - 330px));min-height:44px;padding:9px;
}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyrics-head{display:none;}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyric-line.current{font-size:13px!important;}
@media(max-width:790px){
  .site-header > .music-lyrics-panel,body.music-minimized-lyrics .site-header > .music-lyrics-panel{
    left:12px;top:calc(100% + 230px);width:min(340px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:180px;
  }
  .site-header > .music-player.collapsed ~ .music-lyrics-panel,
  body.music-minimized-lyrics .site-header > .music-lyrics-panel{top:calc(100% + 85px);}
}
#site-game-hud .hud-icon-btn{inset:auto!important;transform:none!important;}
#site-game-hud .hud-icon-btn::before{pointer-events:none;}
#site-game-hud .hud-icon-btn:focus-visible{outline:2px solid var(--music-highlight,#67cfff);outline-offset:2px;}
/* Lyrics are a sibling of the player, so give the companion its own theme vars. */
.site-header > .music-lyrics-panel{--music-highlight:#67cfff;--music-highlight-rgb:47,147,255;--music-soft:#9abfdb;}
body.theme-complete:not(.theme-legendary) .site-header > .music-lyrics-panel{--music-highlight:#ff68ce;--music-highlight-rgb:255,79,200;--music-soft:#d9b0e7;background:rgba(24,10,34,.98);}
body.theme-legendary .site-header > .music-lyrics-panel{--music-highlight:#ffd15c;--music-highlight-rgb:255,200,61;--music-soft:#bbd9c6;background:rgba(26,18,8,.98);}
/* Preserve attention communication even when buttons move into the compact HUD. */
#site-game-hud .hud-icon-btn.attention-ready,
#site-game-hud #rupee-meter.shop-ready,
#site-game-hud #heart-meter.reward-ready,
#site-game-hud #hud-gameplay .castle-meter.reward-ready,
#site-game-hud #hud-gameplay .cool-meter.limit-ready,
#site-game-hud #hud-gameplay .invasion-meter.contact{
  animation:hud-urgent-pulse .68s ease-in-out infinite alternate!important;
}
@keyframes hud-urgent-pulse{
  from{filter:brightness(1) drop-shadow(0 0 0 transparent);}
  to{filter:brightness(1.35) drop-shadow(0 0 8px var(--accent-bright,#67cfff));}
}

/* ======================================================================
   v2.82 | Performance, compact HUD, full-rarity Ledger and notification stack
   ====================================================================== */
/* HUD is deliberately quiet when idle. Four groups are separated by space,
   not lines; every icon has a consistent 19px mark and 34px hit area. */
#site-game-hud .hud-cell,
#site-game-hud .hud-cell:not(:last-child){border-right:0!important;border-bottom:0!important;}
#site-game-hud .hud-icon-btn{width:34px!important;min-width:34px;flex:0 0 34px!important;height:34px!important;min-height:34px!important;padding:0!important;}
#site-game-hud .hud-icon-btn::before{width:19px!important;height:19px!important;flex:0 0 19px;}
#site-game-hud #ledger-trigger{display:inline-flex!important;}
#site-game-hud #ledger-trigger b{display:none!important;}
#site-game-hud #rupee-meter span{display:none!important;}
#site-game-hud #rupee-meter::before,
#site-game-hud #hud-gameplay .cool-meter-top::before,
#site-game-hud #hud-gameplay .system-meter-top::before{
  content:'';display:block;width:19px;height:19px;flex:0 0 19px;
  background:currentColor;
  -webkit-mask:var(--meter-icon) center/contain no-repeat;
  mask:var(--meter-icon) center/contain no-repeat;
}
#site-game-hud #rupee-meter{min-width:54px;gap:5px;}
#site-game-hud #hud-gameplay .cool-meter-top span,
#site-game-hud #hud-gameplay .system-meter-top span{display:none!important;}
#site-game-hud #hud-gameplay .cool-meter,
#site-game-hud #hud-gameplay .invasion-meter,
#site-game-hud #hud-gameplay .castle-meter{
  border:1px solid transparent!important;
  border-radius:4px!important;
  min-height:34px!important;
  padding:4px 7px!important;
  max-width:78px!important;
  justify-content:center;
}
#site-game-hud #hud-gameplay .cool-meter-top,
#site-game-hud #hud-gameplay .system-meter-top{height:19px;min-height:19px!important;align-items:center;color:var(--accent-bright);}
#site-game-hud #rupee-meter,#site-game-hud #heart-meter{
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
#site-game-hud #rupee-meter:hover,#site-game-hud #rupee-meter:focus-visible,
#site-game-hud #heart-meter:not(:disabled):hover,#site-game-hud #heart-meter:not(:disabled):focus-visible,
#site-game-hud #hud-gameplay .castle-meter.reward-ready:hover,
#site-game-hud #hud-gameplay .castle-meter.reward-ready:focus-visible{
  border:1px solid var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(47,147,255,.14))!important;
  box-shadow:0 0 12px rgba(103,207,255,.20)!important;
  outline:none!important;
  cursor:pointer!important;
}
#site-game-hud #heart-meter:not(:disabled){cursor:pointer!important;}
#site-game-hud #hud-gameplay .castle-meter.reward-ready{
  border:1px solid var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(47,147,255,.14))!important;
  box-shadow:0 0 12px rgba(103,207,255,.17)!important;
  cursor:pointer!important;
}
#site-game-hud .hud-icon-btn.attention-new,
#site-game-hud .hud-icon-btn.attention-ready{
  border:1px solid var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(47,147,255,.12))!important;
  animation:hud-urgent-pulse .9s ease-in-out infinite alternate!important;
}
#site-game-hud #hud-gameplay .cool-meter,
#site-game-hud #hud-gameplay .invasion-meter,
#site-game-hud #hud-gameplay .castle-meter{gap:2px!important;}
@media(max-width:680px){
  #site-game-hud .hud-cell:nth-child(odd),
  #site-game-hud .hud-cell:nth-child(-n+2){border:0!important;}
}

/* The shell may be gold in Legendary, but an individual item owns its rarity. */
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-rare,
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-rare.unlocked{
  border-color:rgba(74,169,255,.43)!important;
  background:linear-gradient(100deg,rgba(9,55,96,.34),rgba(5,12,18,.28))!important;
  box-shadow:inset 2px 0 0 #2f93ff!important;
}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-rare :is(.num,.ledger-rarity){color:#67cfff!important;}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-rare strong{color:#e8f6ff!important;background:none!important;-webkit-text-fill-color:#e8f6ff!important;}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-rare small{color:#a1bfdb!important;}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-epic,
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-epic.unlocked{
  border-color:rgba(224,91,255,.45)!important;
  background:linear-gradient(100deg,rgba(100,29,132,.34),rgba(18,18,31,.30))!important;
  box-shadow:inset 2px 0 0 #ff4fc8!important;
}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-epic :is(.num,.ledger-rarity){color:#ff68ce!important;}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-epic strong{color:#ffe3f8!important;background:none!important;-webkit-text-fill-color:#ffe3f8!important;}
body.theme-complete.theme-legendary .achievement-ledger .ledger-entry.rarity-epic small{color:#d5a9d0!important;}

/* Notification queue is always above the optional objective. The visual order
   is oldest at top, newest at bottom, max three. */
.system-toast-stack{
  position:fixed;right:18px;bottom:calc(var(--hud-height,54px) + 12px);
  z-index:252;width:min(330px,calc(100vw - 36px));
  display:flex;flex-direction:column;gap:8px;pointer-events:none;
}
.system-toast{
  position:relative;padding:11px 13px;border:1px solid var(--line-blue);
  border-radius:3px;background:rgba(9,17,28,.97);
  box-shadow:0 12px 34px rgba(0,0,0,.4);pointer-events:auto;
  color:#e9f6ff;font-family:ui-monospace,Consolas,monospace;
}
.system-toast-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.system-toast-heading span{font-size:8px;font-weight:900;letter-spacing:.12em;color:var(--accent-bright);}
.system-toast-heading button{appearance:none;border:0;background:transparent;color:var(--accent-bright);font-size:16px;cursor:pointer;line-height:1;}
.system-toast strong{display:block;margin-top:5px;font-size:13px;line-height:1.25;}
.system-toast small{display:block;font-size:10px;line-height:1.35;margin-top:4px;color:#a7b9ca;}
.system-toast>b{display:block;margin-top:6px;font-size:8px;letter-spacing:.08em;color:var(--accent-bright);}
body.theme-complete:not(.theme-legendary) .system-toast{background:rgba(27,11,37,.97);border-color:rgba(255,79,200,.40);}
body.theme-legendary .system-toast{background:rgba(32,23,7,.97);border-color:rgba(255,195,55,.44);}
body.hud-unified .dynamic-objective,body.hud-unified .dynamic-objective.show{
  position:fixed!important;right:18px!important;left:auto!important;
  bottom:calc(var(--hud-height,54px) + 12px)!important;
  transform:none!important;width:min(330px,calc(100vw - 36px))!important;
  max-width:330px!important;
}
/* Objective is the lowest slot and toasts move above it. */
body.hud-unified .achievement:not(.show){pointer-events:none;}
@media(max-width:680px){
  .system-toast-stack{right:8px;width:min(300px,calc(100vw - 16px));}
  body.hud-unified .dynamic-objective,body.hud-unified .dynamic-objective.show{right:8px!important;width:min(300px,calc(100vw - 16px))!important;}
}

/* Fireworks now travel farther and linger, without making every small
   explosion heavier. Lifetime/radius are set per burst in JS. */
.arcade-pixel{will-change:transform,opacity;}

/* Header player stays identical width in either state. Icon rows align in
   the same track with the collapse control, never at a separate baseline. */
.site-header > .music-player.collapsed{
  width:min(326px,calc(100vw - 40px))!important;
  min-width:0!important;
  min-height:72px!important;
}
.site-header > .music-player.collapsed .music-controls{
  top:10px!important;right:42px!important;align-items:center!important;
}
.site-header > .music-player.collapsed .music-controls #music-play,
.site-header > .music-player.collapsed .music-controls #music-next{
  height:28px!important;min-height:28px!important;align-self:center!important;
}
.site-header > .music-player.collapsed .music-player-head button{height:28px!important;}
body.music-minimized-lyrics .site-header > .music-lyrics-panel{
  left:calc(max(20px,(100vw - var(--max))/2) + min(326px,100vw - 40px) + 8px)!important;
  min-height:72px!important;height:72px!important;
  padding:8px 12px!important;
  display:flex;align-items:center;justify-content:center;
}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyrics-content{
  width:100%;min-height:0!important;max-height:none!important;padding:0!important;
  text-align:center;
}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyric-line.current{
  font-size:15px!important;line-height:1.4!important;margin:0!important;
}
.site-header > .music-lyrics-panel .music-lyrics-empty{
  font-size:14px!important;line-height:1.4!important;text-align:center;
}
@media(max-width:790px){
  body.music-minimized-lyrics .site-header > .music-lyrics-panel{
    left:12px!important;right:12px!important;width:calc(100vw - 24px)!important;
    top:calc(100% + 85px)!important;
  }
}

/* The dock is composited above moving WebGL content; avoid an expensive
   full-width backdrop blur on every pointer projectile frame. */
#site-game-hud{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}

/* ======================================================================
   v2.83 | HUD uniform surfaces, Wish guidance and music layout refinements
   ====================================================================== */
/* Shared visibly-button-like appearance even before hover. Every item now
   occupies a framed surface rather than invisible hitbox/empty space. */
#site-game-hud :is(.hud-icon-btn, #rupee-meter, #heart-meter,
  #hud-gameplay .cool-meter, #hud-gameplay .invasion-meter,
  #hud-gameplay .castle-meter){
  border:1px solid rgba(103,207,255,.22)!important;
  border-radius:4px!important;
  background:rgba(103,207,255,.035)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.10)!important;
  transition:background-color .16s,border-color .16s,box-shadow .16s!important;
}
body.theme-complete:not(.theme-legendary) #site-game-hud :is(.hud-icon-btn, #rupee-meter, #heart-meter,
  #hud-gameplay .cool-meter, #hud-gameplay .invasion-meter,
  #hud-gameplay .castle-meter){
  border-color:rgba(255,95,210,.25)!important;
  background:rgba(255,95,210,.045)!important;
}
body.theme-legendary #site-game-hud :is(.hud-icon-btn, #rupee-meter, #heart-meter,
  #hud-gameplay .cool-meter, #hud-gameplay .invasion-meter,
  #hud-gameplay .castle-meter){
  border-color:rgba(255,200,61,.29)!important;
  background:rgba(255,200,61,.048)!important;
}
#site-game-hud :is(.hud-icon-btn, #rupee-meter, #heart-meter:not(:disabled), #hud-gameplay .castle-meter:not(:disabled)):is(:hover,:focus-visible){
  border-color:var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(103,207,255,.17))!important;
  box-shadow:0 0 0 1px rgba(103,207,255,.16),0 0 12px rgba(103,207,255,.18)!important;
  outline:none!important;
}
#site-game-hud :is(.hud-icon-btn.attention-ready,.hud-icon-btn.attention-new,
  #rupee-meter.shop-ready,#heart-meter.reward-ready,
  #hud-gameplay .castle-meter.reward-ready){
  border-color:var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(103,207,255,.14))!important;
  animation:hud-urgent-pulse .85s ease-in-out infinite alternate!important;
}
#site-game-hud #ledger-trigger::before{
  position:absolute!important;
  left:50%!important;top:50%!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
}
/* Documentation is a normal utility unless the player deliberately activates
   Design Mode. The stored "new" marker alone must not animate it. */
body:not(.design-mode) #site-game-hud #docs-toggle{
  animation:none!important;filter:none!important;
}
body:not(.design-mode) #site-game-hud #docs-toggle.attention-new{
  border-color:rgba(103,207,255,.22)!important;
  background:rgba(103,207,255,.035)!important;
  box-shadow:none!important;
}
/* No ghost button with invisible hit feedback on progress/resources. */
#site-game-hud #hud-gameplay .cool-meter,
#site-game-hud #hud-gameplay .invasion-meter,
#site-game-hud #hud-gameplay .castle-meter{min-width:65px!important;max-width:78px!important;}
#site-game-hud #hud-gameplay{gap:5px!important;}

/* The Console and bottom-right feedback column have a slightly smaller width. */
.dev-console{width:min(800px,calc(100vw - 36px))!important;}
.system-toast-stack{width:min(310px,calc(100vw - 36px))!important;}
body.hud-unified .dynamic-objective,
body.hud-unified .dynamic-objective.show{width:min(310px,calc(100vw - 36px))!important;max-width:310px!important;}
@media(max-width:680px){
  .system-toast-stack{width:min(280px,calc(100vw - 16px))!important;}
  body.hud-unified .dynamic-objective,
  body.hud-unified .dynamic-objective.show{width:min(280px,calc(100vw - 16px))!important;max-width:280px!important;}
}

/* A discoverable Wish cue at the Console entry point, intentionally lighter
   than a full toast so it does not obscure the page while playing. */
#site-game-hud #console-tip-button:is(.attention-wish,.attention-blueprint)::after{
  content:attr(data-wish-cue);
  position:absolute;
  bottom:calc(100% + 6px);
  right:0;
  white-space:nowrap;
  padding:5px 7px;
  border:1px solid var(--accent-bright,#67cfff);
  border-radius:2px;
  background:rgba(5,14,26,.98);
  color:var(--accent-bright,#67cfff);
  box-shadow:0 8px 26px rgba(0,0,0,.40);
  font:900 8px/1.1 ui-monospace,Consolas,monospace;
  letter-spacing:.1em;
  pointer-events:none;
}
#site-game-hud #console-tip-button.attention-blueprint::after{color:#ff838d;border-color:#ff838d;}
.console-wish-guide[hidden]{display:none!important;}
.console-wish-guide{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:9px 12px;
  border-bottom:1px solid rgba(103,207,255,.28);
  color:#93eddf;background:rgba(18,100,114,.13);
  font:800 10px/1.35 ui-monospace,Consolas,monospace;
}
.console-wish-guide.repair-needed{
  color:#ffb3a7;border-bottom-color:rgba(255,90,95,.35);
  background:rgba(107,26,40,.14);
}
.console-wish-guide button{
  flex:none;padding:6px 8px;
  border:1px solid currentColor;background:rgba(0,0,0,.12);
  color:inherit;cursor:pointer;
  font:900 9px/1 ui-monospace,Consolas,monospace;
}
.console-wish-guide button:hover,.console-wish-guide button:focus-visible{
  background:rgba(255,255,255,.1);outline:1px solid currentColor;
}

/* Collapsed player controls share a single flex row with the expand button.
   Avoid absolute offsets between unrelated containers. */
.site-header > .music-player .music-player-head{
  display:flex!important;align-items:center!important;gap:8px!important;
  min-height:28px!important;
}
.site-header > .music-player .music-player-identity{min-width:0;flex:1 1 auto;}
.site-header > .music-player .music-player-identity strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.site-header > .music-player .music-mini-controls{display:none;gap:5px;align-items:center;flex:none;}
.site-header > .music-player.collapsed .music-mini-controls{display:flex!important;}
.site-header > .music-player .music-mini-controls[hidden]{display:none!important;}
.site-header > .music-player.collapsed .music-mini-controls :is(#music-play,#music-next),
.site-header > .music-player.collapsed #music-collapse{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 28px!important;width:28px!important;height:28px!important;
  min-width:28px!important;min-height:28px!important;
  margin:0!important;padding:0!important;
  border:1px solid rgba(var(--music-highlight-rgb),.34)!important;
  color:var(--music-highlight)!important;
  background:rgba(var(--music-highlight-rgb),.055)!important;
  border-radius:1px;
  vertical-align:middle!important;
}
.site-header > .music-player.collapsed .music-mini-controls svg{width:17px;height:17px;}
.site-header > .music-player.collapsed .music-controls{
  position:static!important;display:none!important;
  margin:0!important;height:0!important;
}
.site-header > .music-player.collapsed{width:min(326px,calc(100vw - 40px))!important;}

/* Companion panel height is driven by music-player ResizeObserver; it will
   match the full player or the collapsed 72px shell at any text content. */
.site-header > .music-lyrics-panel,
body.music-minimized-lyrics .site-header > .music-lyrics-panel{
  box-sizing:border-box!important;
  height:var(--music-companion-height,72px)!important;
  min-height:0!important;
  max-height:min(540px,calc(100vh - var(--header) - 20px))!important;
  display:flex;flex-direction:column;overflow:hidden;
}
.site-header > .music-lyrics-panel .music-lyrics-head{flex:none;}
.site-header > .music-lyrics-panel .music-lyrics-content{
  flex:1 1 auto;min-height:0!important;max-height:none!important;
  overflow-y:auto;padding:8px 0!important;
}
/* Match the 12px song name, not the previous 14-16px lyric typography. */
.site-header > .music-lyrics-panel .music-lyric-line,
.site-header > .music-lyrics-panel.single .music-lyric-line.current,
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyric-line.current,
.site-header > .music-lyrics-panel .music-lyrics-empty{
  font-size:12px!important;line-height:1.45!important;
}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyrics-content{
  flex:1 1 auto;display:flex;align-items:center;justify-content:center;
  min-height:0!important;max-height:none!important;
}
body.music-minimized-lyrics .site-header > .music-lyrics-panel .music-lyrics-empty{
  margin:auto!important;padding:0!important;font-size:12px!important;
}

/* v2.84 | Unlock-safe HUD, full-surface attention, performant cursor & shots */
/* No unlock: no hotbar footprint, no placeholder icon, no accidental hit target. */
#site-game-hud #ledger-trigger:not(.visible),
#site-game-hud #docs-toggle[hidden],
#site-game-hud #design-toggle[hidden]{display:none!important;}

/* Use an actual inline SVG instead of a mask-only pseudo icon. A previous
   pseudo mask could render as an empty achievement button on some browsers. */
#site-game-hud .hud-icon-btn::before{display:none!important;content:none!important;}
#site-game-hud .hud-svg-icon{
  display:flex;align-items:center;justify-content:center;
  width:19px;height:19px;flex:0 0 19px;
  color:var(--accent-bright,#67cfff);
  pointer-events:none;
}
#site-game-hud .hud-svg-icon svg{display:block;width:19px;height:19px;stroke:currentColor;fill:none;}

/* Both the BOX and ICON animate when attention is required. This ring is a
   child rather than ::after because the Console uses ::after for Wish cues. */
#site-game-hud .hud-attention-ring{
  display:none;position:absolute;inset:-2px;border:2px solid currentColor;
  border-radius:5px;pointer-events:none;
}
#site-game-hud :is(.attention-ready,.attention-new,.shop-ready,.reward-ready) > .hud-attention-ring{
  display:block;animation:hud-box-ring 1s ease-in-out infinite alternate;
}
#site-game-hud :is(.attention-ready,.attention-new,.shop-ready,.reward-ready){
  border-color:var(--accent-bright,#67cfff)!important;
  background:var(--accent-soft,rgba(103,207,255,.17))!important;
  animation:hud-control-glow 1s ease-in-out infinite alternate!important;
}
#site-game-hud :is(.attention-ready,.attention-new,.shop-ready,.reward-ready) > .hud-svg-icon,
#site-game-hud :is(.attention-ready,.attention-new,.shop-ready,.reward-ready) > .hud-svg-icon svg{
  animation:hud-icon-bright 1s ease-in-out infinite alternate;
}
@keyframes hud-box-ring{
  from{opacity:.30;box-shadow:0 0 1px currentColor;}
  to{opacity:1;box-shadow:0 0 10px currentColor,0 0 19px currentColor;}
}
@keyframes hud-control-glow{
  from{filter:brightness(1)}
  to{filter:brightness(1.4)}
}
@keyframes hud-icon-bright{
  from{opacity:.75;filter:brightness(1)}
  to{opacity:1;filter:brightness(1.7) drop-shadow(0 0 4px currentColor)}
}
/* Docs stays quiet unless Design Mode is ON and documentation not visited. */
body:not(.design-mode) #site-game-hud #docs-toggle{animation:none!important;filter:none!important;}
body:not(.design-mode) #site-game-hud #docs-toggle > .hud-attention-ring{display:none!important;}

/* Repaint-only glows on many independent bullets were the expensive part of
   the shooting path. The bright single-color core keeps shots legible. */
.legendary-player-projectile{
  background:#ffcf56!important;
  box-shadow:none!important;
  border:1px solid rgba(255,247,202,.9);
  will-change:transform;
  contain:layout paint style;
  backface-visibility:hidden;
}

/* Cursor is now an actual browser/native cursor when enlarged. The old CSS
   set cursor:none across the whole page and relied on a DOM imitation; losing
   pointer focus could make the Windows cursor appear missing altogether. */
html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-1,html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-1 *{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2242%22%20viewBox%3D%220%200%2028%2036%22%3E%3Cpath%20d%3D%22M2%202%20L2%2031%20L8%2025%20L12%2034%20L17%2032%20L12%2023%20L23%2024%20Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2362bfff%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20%2F%3E%3C%2Fsvg%3E") 3 3,auto!important;}
html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-2,html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-2 *{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2246%22%20height%3D%2260%22%20viewBox%3D%220%200%2028%2036%22%3E%3Cpath%20d%3D%22M2%202%20L2%2031%20L8%2025%20L12%2034%20L17%2032%20L12%2023%20L23%2024%20Z%22%20fill%3D%22%23fff6cc%22%20stroke%3D%22%2343e0dc%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20%2F%3E%3C%2Fsvg%3E") 3 3,auto!important;}
body.cursor-grown .power-cursor{display:none!important;}
body.cursor-window-inactive,body.cursor-window-inactive *{cursor:auto!important;}
body:has(.finale-overlay.show,.session-debrief.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay) .power-cursor{display:none!important;}
body.cursor-grown:has(.finale-overlay.show,.session-debrief.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay),
body.cursor-grown:has(.finale-overlay.show,.session-debrief.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay) *{cursor:auto!important;}
@media(prefers-reduced-motion:reduce){#site-game-hud .hud-attention-ring{animation:none!important;}}

/* ===========================================================================
   v2.85 | Unified HUD icon integrity, even grouping, themed mouse, shot polish
   =========================================================================== */
/* The five Heart glyphs are the ONLY visible children of this control. The
   generic attention ring must never masquerade as a sixth Heart. */
#site-game-hud #heart-meter > .hud-attention-ring{display:none!important;}
#site-game-hud #heart-meter > span:not(.hud-attention-ring){
  flex:0 0 15px;width:15px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  font:900 17px/1 Georgia,serif;
}
/* The icon remains centered even when the hidden accessible label changes. */
#site-game-hud .hud-icon-btn{position:relative!important;}
#site-game-hud .hud-icon-btn > .hud-svg-icon{
  position:absolute!important;left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important; flex:0 0 19px;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
#site-game-hud .hud-icon-btn > .hud-svg-icon svg{display:block!important;width:19px!important;height:19px!important;stroke:currentColor!important;}
#site-game-hud .hud-icon-btn > .hud-control-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
#site-game-hud .hud-icon-btn:focus-visible{outline:1px solid var(--accent-bright,#67cfff)!important;outline-offset:2px;}
/* Use equal *between-group* spacing instead of 4 unequal fractional tracks. */
@media(min-width:1000px){
  body.hud-unified #site-game-hud{
    grid-template-columns:max-content max-content max-content max-content!important;
    justify-content:space-between!important;
    column-gap:16px!important;
  }
  #site-game-hud .hud-cell{padding-inline:0!important;}
}
/* Theme-specific native mushroom cursor: same size and fallback as v2.84,
   but the actual SVG palette updates when the theme changes. */
html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-1,html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-1 *,
html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-2,html:not(.cursor-test-inheritance) body.cursor-grown.cursor-power-2 *{
  cursor:var(--mippi-grown-cursor,auto)!important;
}
/* These retain precedence over cursor upgrades for safety and usability. */
body.cursor-window-inactive,body.cursor-window-inactive *,
body.cursor-grown:has(.finale-overlay.show,.session-debrief.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay),
body.cursor-grown:has(.finale-overlay.show,.session-debrief.show,.compile-popup.open,.shop-popup.open,.blueprint-popup.open,.wish-sequence-overlay) *{cursor:auto!important;}
/* A short compositor-friendly transform tween bridges uneven main-thread
   frame delivery. JS collision logic remains authoritative. */
.legendary-player-projectile{
  transition:transform 46ms linear!important;
  animation:none!important;filter:none!important;
  transform-origin:center center;
}
/* Discoverable wheel/trackpad scrolling without selecting the Ledger first. */
.achievement-ledger.open{overscroll-behavior:contain;overflow-y:auto;touch-action:pan-y;}

/* v2.86 // Keep themed colors in Three.js itself, not as an additional
   full-canvas post-process on every WebGL frame. Epic/Legendary scenes
   already recolor their particles, meshes and lights in JavaScript. */
body.theme-complete.theme-legendary #ambient-canvas,
body.theme-complete.theme-legendary #about-canvas,
body.theme-complete #ambient-canvas,
body.theme-complete #about-canvas,
#ambient-canvas,#about-canvas{
  filter:none!important;
  -webkit-filter:none!important;
}


/* v2.87 // Intentional paired HUD groups and opt-in performance isolation.
   Progress+Gameplay / Modes+Utilities have fixed 20px internal gaps. Only the
   space BETWEEN the two pairs expands as the viewport becomes wider. */
@media(min-width:1000px){
  body.hud-unified #site-game-hud{
    display:flex!important;align-items:center!important;
    justify-content:flex-start!important;gap:0!important;
  }
  body.hud-unified #site-game-hud > .hud-cell{
    flex:0 0 auto!important;width:auto!important;
    padding-inline:0!important;
  }
  body.hud-unified #site-game-hud > #hud-gameplay{margin-left:20px!important;}
  body.hud-unified #site-game-hud > #hud-modes{margin-left:auto!important;}
  body.hud-unified #site-game-hud > #hud-utilities{margin-left:20px!important;}
}

/* Permanent, opt-in diagnostic switches; inactive unless explicitly enabled.
   Disabling the dock hides its paint/compositing, NOT its JS state updates. */
html.profile-hide-hud body.hud-unified #site-game-hud{
  visibility:hidden!important;pointer-events:none!important;
}
html.profile-no-hudfx body.hud-unified #site-game-hud,
html.profile-no-hudfx body.hud-unified #site-game-hud *,
html.profile-no-hudfx body.hud-unified #site-game-hud *::before,
html.profile-no-hudfx body.hud-unified #site-game-hud *::after{
  animation:none!important;transition:none!important;
  filter:none!important;backdrop-filter:none!important;
  box-shadow:none!important;text-shadow:none!important;
}
/* Deliberately broad treatment for isolating CSS paint/glow cost. No WebGL
   geometry or Three.js material is modified. QA only, use `dev profile reset`. */
html.profile-no-themefx body.theme-complete *:not(canvas),
html.profile-no-themefx body.theme-complete *:not(canvas)::before,
html.profile-no-themefx body.theme-complete *:not(canvas)::after{
  filter:none!important;backdrop-filter:none!important;
  box-shadow:none!important;text-shadow:none!important;
  animation:none!important;
}
html.profile-hide-ambient #ambient-canvas{display:none!important;}

html.profile-no-cursorfx :is(.cursor-spark,.rainbow-cursor-spark,.completion-cursor-aura,.power-cursor){display:none!important;}

/* v2.90 // Permanent diagnostic combat lab; visible only during opt-in tests. */
@keyframes combat-lab-drift{
  from{translate:-14px -7px;}
  to{translate:14px 9px;}
}
.combat-lab-target,.combat-lab-ship{contain:layout style paint;}


/* v2.93 | Permanent, opt-in Combat Visual Isolation
   Player/UFO OFF stops PAINT only. Simulation, hit tests, DOM lifetimes,
   animation timers and cleanup still execute. These diagnostic rules have no
   effect without an explicit dev combat visual command. */
html.profile-hide-combat-player .legendary-player-projectile,
html.profile-hide-combat-ufo .ufo-projectile,
html.profile-hide-combat-explosionpaint .arcade-pixel{
  visibility:hidden!important;
}
/* Explosion emission OFF is handled by explodeAt() before DOM creation.
   Existing particles are hidden immediately while they finish their lifecycle. */
html.profile-no-combat-explosions .arcade-pixel{visibility:hidden!important;}
/* Keep silhouette, movement and normal colors. Remove only expensive visual
   treatments. Includes the disposable lab ships, so tests can isolate glow. */
html.profile-no-combat-glow :is(.ufo-projectile,.legendary-player-projectile,.arcade-pixel,.arcade-hit-flash,.combat-lab-ship,.combat-lab-target),
html.profile-no-combat-glow :is(.ufo-projectile,.legendary-player-projectile,.arcade-pixel,.arcade-hit-flash,.combat-lab-ship,.combat-lab-target)::before,
html.profile-no-combat-glow :is(.ufo-projectile,.legendary-player-projectile,.arcade-pixel,.arcade-hit-flash,.combat-lab-ship,.combat-lab-target)::after{
  box-shadow:none!important;text-shadow:none!important;
  filter:none!important;backdrop-filter:none!important;
  mix-blend-mode:normal!important;
}

/* v2.96 Canvas2D burst layer. Created only while particles are alive.
   It matches original arcade-pixel z-order, and never accepts pointer input. */
.mippi-particle-canvas { position:fixed;inset:0;z-index:70;pointer-events:none;display:block; }
html.profile-hide-combat-explosionpaint .mippi-particle-canvas,
html.profile-no-combat-explosions .mippi-particle-canvas { visibility:hidden!important; }

/* v2.97 // Opt-in Cursor Lab isolation. Defaults match v2.96 visuals. */
/* Inherited cursor mode avoids the universal selector on every descendant. */
html.cursor-test-inheritance body.cursor-grown {cursor:var(--mippi-grown-cursor,auto)!important;}
/* Keep the Windows cursor visible when the graphic is intentionally disabled. */
html.cursor-test-no-native body.cursor-grown,html.cursor-test-no-native body.cursor-grown * {cursor:auto!important;}
html.cursor-test-no-aura .completion-cursor-aura {display:none!important;}
html.cursor-test-no-glow :is(.completion-cursor-aura,.cursor-spark,.rainbow-cursor-spark,.power-cursor){box-shadow:none!important;filter:none!important;text-shadow:none!important;}
html.cursor-test-no-trail .cursor-spark,html.cursor-test-no-starsparks .rainbow-cursor-spark{display:none!important;}


/* ==========================================================================
   v2.98 // Scoped mushroom cursor architecture (default)
   --------------------------------------------------------------------------
   We intentionally use a DIFFERENT state class from the legacy `cursor-grown`.
   It prevents earlier whole-page `*` and `body:has()` cursor rules from
   matching this mode, without changing those rules for the A/B fallback.
   The artwork comes from the same theme-aware --mippi-grown-cursor SVG.
   No cursor:none is applied: native cursor remains available on Windows.
   ========================================================================== */
html.cursor-arch-scoped body.cursor-scoped-grown {
  cursor:var(--mippi-grown-cursor,auto)!important;
}
/* Only explicit interactive widgets need help inheriting the upgraded cursor.
   Do NOT replace with `.cursor-scoped-grown *`: that defeats isolation. */
html.cursor-arch-scoped body.cursor-scoped-grown :is(a,button,input,select,textarea,summary,label,[role="button"],[role="link"],[onclick]) {
  cursor:inherit!important;
}
/* Native pointer safety for visible full-screen dialogs, without parent :has().
   The browser naturally inherits this cursor from the active modal surface. */
html.cursor-arch-scoped body.cursor-scoped-grown :is(
  .azure-gallery[aria-hidden="false"],.session-debrief.show,.finale-overlay.show,
  .compile-popup.open,.shop-popup.open,.blueprint-popup.open,
  .wish-sequence-overlay,.unreal-gift-popup.open,.flappy-game.open
) {cursor:auto!important;}
html.cursor-arch-scoped body.cursor-scoped-grown :is(
  .azure-gallery[aria-hidden="false"],.session-debrief.show,.finale-overlay.show,
  .compile-popup.open,.shop-popup.open,.blueprint-popup.open,
  .wish-sequence-overlay,.unreal-gift-popup.open,.flappy-game.open
) :is(a,button,input,select,textarea,summary,[role="button"],[role="link"]) {cursor:pointer!important;}
/* The diagnostic "native off" mode must still work for either architecture. */
html.cursor-arch-scoped.cursor-test-no-native body.cursor-scoped-grown {cursor:auto!important;}
html.cursor-arch-scoped.cursor-test-no-native body.cursor-scoped-grown :is(a,button,input,select,textarea,summary,label,[role="button"],[role="link"],[onclick]) {cursor:auto!important;}
html.cursor-arch-scoped body.cursor-scoped-grown.cursor-window-inactive {cursor:auto!important;}
/* Keep the old DOM imitation hidden in both modes. */
body.cursor-scoped-grown .power-cursor {display:none!important;}

/* v2.99 // Canvas-first FX layers. Event-transparent and created only while particles exist. */
.mippi-fx-canvas { position:fixed;inset:0;pointer-events:none;mix-blend-mode:screen; }
html.profile-no-cursorfx .mippi-fx-low { visibility:hidden; }

/* The single remaining cursor aura follows with compositor-friendly individual translate. */
.completion-cursor-aura { will-change:translate; }
body:not(.theme-complete) .game-pickup[data-kind="rupee"]{color:#2f93ff;}
body:not(.theme-complete) .game-pickup[data-kind="heart"]{color:#ff75cf;}
body:not(.theme-complete) .game-pickup[data-kind="star"]{color:#8fd6ff;}
body:not(.theme-complete) .game-pickup[data-kind="1up"]{color:#48cfff;}
body:not(.theme-complete) .game-pickup[data-kind="key"]{color:#5daeff;}
body:not(.theme-complete) .doug-bone{color:#e7f4ff;}
body:not(.theme-complete) .galaga-secret:not(.boss-ufo){color:#2f93ff;}
body:not(.theme-complete) .galaga-secret.boss-ufo{color:#2f93ff;}
body:not(.theme-complete) .superboss-core{color:#67e8ff;}
body:not(.theme-complete) .superboss-add{color:#2f93ff;}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="rupee"]{color:#38d6e8;}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="heart"]{color:#ff4fc8;}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="star"]{color:#c66cff;}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="1up"]{color:#9f52f2;}
body.theme-complete:not(.theme-legendary) .game-pickup[data-kind="key"]{color:#df72ff;}
body.theme-complete:not(.theme-legendary) .doug-bone{color:#f4ddff;}
body.theme-complete:not(.theme-legendary) .galaga-secret:not(.boss-ufo){color:#ff4fc8;}
body.theme-complete:not(.theme-legendary) .galaga-secret.boss-ufo{color:#ff4fc8;}
body.theme-complete:not(.theme-legendary) .superboss-core{color:#ff4fc8;}
body.theme-complete:not(.theme-legendary) .superboss-add{color:#ff4fc8;}
body.theme-complete.theme-legendary .game-pickup[data-kind="rupee"]{color:#24bdbb;}
body.theme-complete.theme-legendary .game-pickup[data-kind="heart"]{color:#ff7b35;}
body.theme-complete.theme-legendary .game-pickup[data-kind="star"]{color:#ffd24f;}
body.theme-complete.theme-legendary .game-pickup[data-kind="1up"]{color:#2bc8ac;}
body.theme-complete.theme-legendary .game-pickup[data-kind="key"]{color:#ffc43f;}
body.theme-complete.theme-legendary .doug-bone{color:#ffd78a;}
body.theme-complete.theme-legendary .galaga-secret:not(.boss-ufo){color:#ffab3b;}
body.theme-complete.theme-legendary .galaga-secret.boss-ufo{color:#ff9a24;}
body.theme-complete.theme-legendary .superboss-core{color:#ffc43f;}
body.theme-complete.theme-legendary .superboss-add{color:#ff9a24;}


/* v3.00 // New supplied SVG silhouettes. CSS preserves theme tinting and original hitboxes. */
.game-art-icon {
  display:block;background-color:currentColor;
  -webkit-mask-image:var(--game-art);mask-image:var(--game-art);
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:contain;mask-size:contain;
}
.game-pickup .game-art-icon {width:56px;height:56px;margin:auto;}
.doug-bone .game-art-icon {width:60px;height:32px;margin:auto;}
.section-castle .castle-art {width:100%;height:100%;transition:transform .15s ease,filter .15s ease;}
.section-castle:hover .castle-art {transform:translateY(-3px) scale(1.08);filter:drop-shadow(0 0 5px currentColor);}
body .galaga-secret:not(.boss-ufo)::before {
  content:"";left:1px!important;top:0!important;width:42px!important;height:32px!important;
  border:0!important;box-shadow:none!important;background:currentColor!important;
  -webkit-mask:url('assets/game/enemy.svg') center/contain no-repeat;
  mask:url('assets/game/enemy.svg') center/contain no-repeat;
}
body .galaga-secret.boss-ufo::before {
  content:"";left:2px!important;top:0!important;width:100px!important;height:62px!important;
  border:0!important;box-shadow:none!important;background:currentColor!important;
  -webkit-mask:url('assets/game/boss.svg') center/contain no-repeat;
  mask:url('assets/game/boss.svg') center/contain no-repeat;
}
body .superboss-arena .superboss-core::before {
  inset:0!important;width:100%!important;height:100%!important;
  content:"";border:0!important;border-radius:0!important;clip-path:none!important;
  box-shadow:none!important;background:currentColor!important;
  -webkit-mask:url('assets/game/super-boss.svg') center/contain no-repeat;
  mask:url('assets/game/super-boss.svg') center/contain no-repeat;
}
body .superboss-arena .superboss-core::after,
body .superboss-arena .superboss-core span::before,
body .superboss-arena .superboss-core span::after,
body .superboss-arena .superboss-add::after {content:none!important;}
body .superboss-arena .superboss-add::before {
  inset:0!important;width:100%!important;height:100%!important;
  content:"";border:0!important;clip-path:none!important;
  background:currentColor!important;
  -webkit-mask:url('assets/game/boss.svg') center/contain no-repeat;
  mask:url('assets/game/boss.svg') center/contain no-repeat;
}
#site-game-hud #heart-meter > span:not(.hud-attention-ring) {font-size:0!important;}
#site-game-hud #heart-meter > span:not(.hud-attention-ring)::before {
  content:"";display:block;width:15px;height:15px;flex:none;background:currentColor;
  -webkit-mask:url('assets/game/heart-empty.svg') center/contain no-repeat;
  mask:url('assets/game/heart-empty.svg') center/contain no-repeat;
}
#site-game-hud #heart-meter > span.filled::before {
  -webkit-mask-image:url('assets/game/heart-full.svg');
  mask-image:url('assets/game/heart-full.svg');
}


/* v3.00 // larger author art, matching rarity tint, standardized hotbar states */
body .superboss-arena .superboss-core {
  width:380px!important;height:236px!important;margin:-118px 0 0 -190px!important;
}
body .superboss-arena .superboss-add {
  width:104px!important;height:72px!important;margin:-36px 0 0 -52px!important;
}
body .section-castle {
  width:87px!important;height:75px!important;margin-left:-43.5px!important;top:-44px!important;
}
body .section-castle .castle-art {width:100%!important;height:100%!important;}

/* Single rarity tint for all clickable world elements, enemy sprites and castles */
body {--game-clickable-ink:#67cfff;--hud-unified-ink:#a9dfff;
  --hud-unified-border:rgba(103,207,255,.30);--hud-unified-bg:rgba(103,207,255,.055);
  --hud-unified-active-bg:rgba(36,131,210,.27);--hud-unified-glow:rgba(103,207,255,.47);}
body.theme-complete:not(.theme-legendary) {
  --game-clickable-ink:#ff6bd2;--hud-unified-ink:#fface8;
  --hud-unified-border:rgba(255,110,207,.34);--hud-unified-bg:rgba(255,110,207,.07);
  --hud-unified-active-bg:rgba(181,54,161,.32);--hud-unified-glow:rgba(255,103,206,.50);
}
body.theme-complete.theme-legendary {
  --game-clickable-ink:#ffd16b;--hud-unified-ink:#ffe19b;
  --hud-unified-border:rgba(255,199,84,.36);--hud-unified-bg:rgba(255,199,84,.07);
  --hud-unified-active-bg:rgba(181,123,33,.32);--hud-unified-glow:rgba(255,198,76,.50);
}
body .game-pickup,body .doug-bone,body .section-castle,
body .galaga-secret,body .superboss-core,body .superboss-add {
  color:var(--game-clickable-ink)!important;
}
/* Retire the !important rarity body-colors behind masked UFO and boss art. */
body .galaga-secret::before,
body.theme-complete .galaga-secret::before,
body.theme-complete.theme-legendary .galaga-secret::before,
body.theme-complete:not(.theme-legendary) .galaga-secret::before,
body .boss-ufo::before,
body.theme-complete .boss-ufo::before,
body.theme-complete.theme-legendary .boss-ufo::before {
  background:currentColor!important;box-shadow:none!important;
}
/* The visible circle equals the gameplay interaction radius. Transform is never animated;
   the compositor-friendly translate property positions the circle with the pointer. */
body .completion-cursor-aura,
body.theme-complete.theme-legendary .completion-cursor-aura,
body.star-power .completion-cursor-aura {
  width:calc(var(--cursor-click-radius,22px) * 2)!important;
  height:calc(var(--cursor-click-radius,22px) * 2)!important;
  margin:calc(-1 * var(--cursor-click-radius,22px)) 0 0 calc(-1 * var(--cursor-click-radius,22px))!important;
  box-sizing:border-box!important;transform:none!important;animation:none!important;border-radius:50%!important;
}
body.star-power .completion-cursor-aura {
  opacity:1!important;border:3px solid #fff!important;
  /* All existing multicolor shadows and rainbow particles remain. */
}
/* Hotbar neutral state: identical tint across icons, hearts, meters and utility buttons. */
#site-game-hud :is(.hud-icon-btn,#rupee-meter,#heart-meter,
  #hud-gameplay .cool-meter,#hud-gameplay .invasion-meter,#hud-gameplay .castle-meter) {
  color:var(--hud-unified-ink)!important;
  border:1px solid var(--hud-unified-border)!important;
  background:var(--hud-unified-bg)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)!important;
  border-radius:4px!important;
  transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease!important;
}
#site-game-hud .hud-svg-icon,
#site-game-hud .hud-svg-icon svg,
#site-game-hud #hud-gameplay :is(.cool-meter-top,.system-meter-top),
#site-game-hud #heart-meter > span {color:var(--hud-unified-ink)!important;}
#site-game-hud .hud-svg-icon svg {stroke:currentColor!important;}

/* Active modes have one consistent filled/outlined visual language. */
#site-game-hud .hud-icon-btn:is(.active,[aria-pressed="true"]),
#site-game-hud :is(#inspect-toggle,#design-toggle,#interact-toggle)[aria-pressed="true"] {
  border-color:var(--hud-unified-ink)!important;
  background:var(--hud-unified-active-bg)!important;
  box-shadow:inset 0 0 0 1px var(--hud-unified-glow),0 0 11px var(--hud-unified-glow)!important;
  color:var(--hud-unified-ink)!important;
}
#site-game-hud :is(.hud-icon-btn,#rupee-meter,#heart-meter,
  #hud-gameplay .cool-meter,#hud-gameplay .invasion-meter,#hud-gameplay .castle-meter):is(:hover,:focus-visible) {
  border-color:var(--hud-unified-ink)!important;
  outline:2px solid var(--hud-unified-glow)!important;outline-offset:1px!important;
}
/* Attention is not active. One static, bright theme glow avoids costly repaint
   from independent shadow animations on every hotbar control. */
#site-game-hud .hud-icon-btn:is(.attention-new,.attention-ready),
#site-game-hud #rupee-meter.shop-ready,
#site-game-hud #heart-meter.reward-ready,
#site-game-hud #hud-gameplay .castle-meter.reward-ready,
#site-game-hud #hud-gameplay .cool-meter.limit-ready,
#site-game-hud #hud-gameplay .invasion-meter.contact {
  animation:none!important;border-color:var(--hud-unified-ink)!important;
  background:var(--hud-unified-active-bg)!important;
  box-shadow:0 0 14px var(--hud-unified-glow),inset 0 0 0 1px var(--hud-unified-glow)!important;
}
.play-mode-controls > button.active {
  outline:2px solid currentColor!important;outline-offset:1px!important;
  box-shadow:0 0 13px currentColor!important;
}

/* v3.01 // New non-flying spawn architecture */
.mippi-spawn-panel-host{position:relative;isolation:isolate;}
.game-pickup.mippi-motion,.doug-bone.mippi-motion,.galaga-secret.mippi-motion{
  animation:none!important;transition:none!important;will-change:transform;
  left:0!important;top:0!important;
}
.game-pickup.mippi-ground-drop {
  z-index:265!important; /* ground pickups sit above the hotbar */
  filter:drop-shadow(0 0 8px currentColor);
}
.game-pickup.mippi-panel-key {
  position:absolute!important;inset:auto 6px 6px auto!important;
  width:48px!important;min-width:48px!important;height:48px!important;
  z-index:38!important;animation:none!important;
}
.game-pickup.mippi-panel-key .game-pickup-icon {width:42px!important;height:42px!important;}
.game-pickup.mippi-motion[data-kind="1up"]{z-index:44!important;}
.game-pickup.mippi-motion[data-kind="star"]{z-index:264!important;}
.doug-bone.mippi-motion{z-index:265!important;}

/* v3.02 // Body-overlay mushrooms hover above (not inside) their host panel. */
body .game-pickup.mippi-motion.mippi-panel-orbit{
  position:fixed!important;left:0!important;top:0!important;
  width:64px!important;min-width:64px!important;max-width:64px!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  padding:0!important;box-sizing:border-box!important;
  z-index:266!important;overflow:visible!important;transform-origin:center center!important;
}
body .game-pickup.mippi-panel-orbit .game-pickup-icon,
body .game-pickup.mippi-panel-orbit .game-art-icon{
  width:56px!important;min-width:56px!important;max-width:56px!important;
  height:56px!important;min-height:56px!important;max-height:56px!important;
  margin:auto!important;flex:none!important;
}
body .section-castle::before{content:none!important;display:none!important;}
@keyframes mippi-spawn-expiry{
  from{opacity:1}
  55%{opacity:.8}
  to{opacity:0}
}
@keyframes mippi-spawn-icon-exit{
  from{transform:translateY(0) scale(1);opacity:1}
  to{transform:translateY(-12px) scale(.72);opacity:0}
}
body .game-pickup.mippi-despawning,
body .doug-bone.mippi-despawning,
body .galaga-secret.mippi-despawning{
  pointer-events:none!important;
  animation:mippi-spawn-expiry 380ms ease-in forwards!important;
}
body .mippi-despawning .game-art-icon,
body .mippi-despawning .doug-bone-icon{
  animation:mippi-spawn-icon-exit 380ms ease-in forwards!important;
}
@media(prefers-reduced-motion:reduce){
  body .mippi-despawning .game-art-icon,
  body .mippi-despawning .doug-bone-icon{animation:none!important;}
}

/* v3.03 // Keep orbiting mushrooms above content, but under both interface bars. */
body .game-pickup.mippi-motion.mippi-panel-orbit{z-index:110!important;}
/* The site header already owns z-index 120; HUD owns z-index 255. */

/* v3.04 mouth-anchored capsule beam, add HP feedback and onscreen entrances */
.superboss-laser,.superboss-laser.active{border-radius:999px 0 0 999px!important;}
.superboss-laser::before{content:"";position:absolute;left:-6px;top:50%;width:14px;height:14px;transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle,#fff 0%,#b5faff 40%,transparent 85%);filter:drop-shadow(0 0 6px #67e8ff);}
.superboss-laser.active::before{width:29px;height:29px;left:-8px;}
.superboss-add-health{position:absolute;left:26px;right:26px;bottom:-9px;height:5px;overflow:hidden;pointer-events:none;border-radius:3px;border:1px solid var(--game-clickable-ink,#67e8ff);background:rgba(0,0,0,.7);opacity:0;transition:opacity .15s ease;}
.superboss-add.damaged .superboss-add-health{opacity:1;}
.superboss-add-health i{display:block;width:100%;height:100%;border-radius:2px;background:var(--game-clickable-ink,#67e8ff);transition:width .12s linear;}
.superboss-add.boss-hit{filter:brightness(2) drop-shadow(0 0 16px #fff);}
@keyframes mippi-enter-v304{from{opacity:0;filter:brightness(1.65)}to{opacity:1;filter:brightness(1)}}
body .mippi-motion.mippi-spawning,.superboss-add.mippi-spawning{animation:mippi-enter-v304 380ms ease-out both!important;}
@media(prefers-reduced-motion:reduce){body .mippi-motion.mippi-spawning,.superboss-add.mippi-spawning{animation:none!important;}}


/* v3.05 // Restore rainbow Star Power motion while retaining the v3.04
   mushroom-scaled interaction radius. Never animate transform on this ring. */
body.star-power .completion-cursor-aura {
  animation:star-power-rainbow-v305 1.15s linear infinite !important;
  box-shadow:0 0 18px #ff3b30,0 0 28px #ffcc00,0 0 38px #34c759,0 0 48px #0a84ff,0 0 58px #bf5af2 !important;
}
@keyframes star-power-rainbow-v305 {
  from { filter:hue-rotate(0deg); }
  to { filter:hue-rotate(360deg); }
}
@media (prefers-reduced-motion:reduce) {
  body.star-power .completion-cursor-aura { animation:none !important; }
}

/* Elarsi sits alongside the existing side-project features, with its own
   lightweight CSS visual instead of loading another image or animation loop. */
@media (min-width:1200px) {
  .tool-feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.elarsi-feature .tool-feature-copy { display:flex; flex-direction:column; align-items:flex-start; }
.elarsi-feature .inline-card-link { margin-top:auto; padding-top:18px; }
.elarsi-visual {
  display:grid; place-items:center; padding:26px;
  background:radial-gradient(circle at 76% 18%,rgba(44,165,245,.21),transparent 55%),linear-gradient(145deg,#111a27,#070c13);
}
.elarsi-art { position:relative; width:min(100%,370px); padding:22px; border:1px solid rgba(109,192,255,.23); background:rgba(6,13,23,.80); border-radius:12px; box-shadow:0 16px 36px rgba(0,0,0,.27); color:#dceeff; }
.elarsi-art-label { font:700 10px ui-monospace,monospace; letter-spacing:.16em; color:#80cfff; }
.elarsi-waveform { height:86px; display:flex; align-items:center; justify-content:space-between; gap:4px; padding:8px 0; }
.elarsi-waveform i { width:5%; height:var(--wave,28%); border-radius:4px; background:linear-gradient(#73d8ff,#3285e3); box-shadow:0 0 10px rgba(58,166,249,.24); }
.elarsi-waveform i:nth-child(5n+1) { --wave:68%; }
.elarsi-waveform i:nth-child(3n+2) { --wave:42%; }
.elarsi-waveform i:nth-child(4n+3) { --wave:85%; }
.elarsi-lyric { font-size:13px; color:#8dcfff; margin:8px 0 16px; }
.elarsi-lyric strong { color:#f2f8ff; font-weight:600; }
.elarsi-timeline { display:flex; align-items:center; gap:10px; font:10px ui-monospace,monospace; color:#93a6bd; }
.elarsi-timeline div { height:4px; flex:1; border-radius:4px; background:#253f57; }
.elarsi-timeline b { display:block; width:36%; height:100%; background:#62cfff; border-radius:inherit; }
body.theme-complete .elarsi-visual { background:radial-gradient(circle at 78% 18%,rgba(255,79,200,.18),transparent 55%),linear-gradient(145deg,#20102d,#090711); }
body.theme-complete .elarsi-waveform i,body.theme-complete .elarsi-timeline b { background:#ff4fc8; }
body.theme-complete.theme-legendary .elarsi-visual { background:radial-gradient(circle at 78% 18%,rgba(255,185,74,.20),transparent 55%),linear-gradient(145deg,#24180f,#0a1011); }
body.theme-complete.theme-legendary .elarsi-waveform i,body.theme-complete.theme-legendary .elarsi-timeline b { background:#ffc43f; }

/* 3D failure fallback: real navigation controls, keyboard access and visible focus. */
.scene-fallback.show .fallback-node { pointer-events:auto; cursor:pointer; text-decoration:none; }
.scene-fallback.show .fallback-node:focus-visible { outline:2px solid currentColor; outline-offset:5px; }

.scene-fallback.show { pointer-events:auto; }
.scene-fallback:not(.show) .fallback-node { visibility:hidden; }


/* v3.09 // Future collaboration entry. Art belongs beside the other career
   backgrounds: assets/career-real/yourstudiohere.png. The gradient is a safe
   fallback until that user-provided image is checked into the repository. */
.studio-yourstudio .studio-yourstudio-image {
  background: url('assets/career-real/yourstudiohere.png') right center / cover no-repeat,
              linear-gradient(115deg, #07101d 0%, #0d2543 65%, #17477a 100%);
}
.studio-yourstudio .studio-art {
  color:rgba(142,203,255,.17);
  letter-spacing:.08em;
}
@media (min-width:901px) {
  .studio-grid > .studio-yourstudio {
    grid-column:span 2;
    min-height:224px;
  }
  .studio-yourstudio strong, .studio-yourstudio span { max-width:55%; }
  /* First card consumes two columns; the third card in each visual row
     is now 3n+2 instead of 3n. Keep separator lines aligned to the grid. */
  .studio-grid > article:nth-child(3n) { border-right:1px solid var(--line); }
  .studio-grid > article:nth-child(3n+2) { border-right:0; }
  .studio-grid > .studio-sony { border-right:0; }
}
@media (max-width:900px) {
  .studio-grid > .studio-yourstudio { grid-column:auto; min-height:190px; }
  .studio-yourstudio strong, .studio-yourstudio span { max-width:70%; }
}

/* v3.11 // The physical AoE interaction radius must remain visible in Rare.
   Rarity changes color, not the existence or size of the ring. */
body:not(.theme-complete) .completion-cursor-aura {
  opacity:.75;
  border-color:rgba(96,190,255,.58);
  box-shadow:0 0 16px rgba(37,140,246,.22),inset 0 0 10px rgba(59,164,255,.09);
}

/* Star Power uses a rotating circular spectrum, not a hue shift applied to
   stacked monochromatic shadows. Pseudos never affect the hit radius. */
body.star-power .completion-cursor-aura {
  opacity:1!important;
  border:2px solid rgba(255,255,255,.8)!important;
  box-shadow:0 0 12px rgba(255,255,255,.26)!important;
  filter:none!important;
  animation:none!important;
  isolation:isolate;
}
body.star-power .completion-cursor-aura::before,
body.star-power .completion-cursor-aura::after {
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  background:conic-gradient(#ff4242,#ffcc35,#4eeb75,#3aceff,#636aff,#e451ed,#ff4242);
}
body.star-power .completion-cursor-aura::before {
  inset:-4px;
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  animation:mippi-star-aura-orbit-v311 .95s linear infinite;
}
body.star-power .completion-cursor-aura::after {
  inset:-10px;
  opacity:.78;
  filter:blur(8px);
  -webkit-mask:radial-gradient(farthest-side,transparent 61%,#000 83%);
  mask:radial-gradient(farthest-side,transparent 61%,#000 83%);
  animation:mippi-star-aura-orbit-v311 1.25s linear infinite reverse;
}
@keyframes mippi-star-aura-orbit-v311 {
  to {transform:rotate(360deg);}
}
@media (prefers-reduced-motion:reduce) {
  body.star-power .completion-cursor-aura::before,
  body.star-power .completion-cursor-aura::after {animation:none!important;}
}

/* The same action button alternates between TRY WISH and OPEN BLUEPRINT.
   Both states pulse whenever available; idle consoles remain quiet. */
.console-wish-guide:not([hidden]) #console-wish-guide-action {
  animation:mippi-console-action-ready-v311 1.1s ease-in-out infinite;
  will-change:transform;
}
@keyframes mippi-console-action-ready-v311 {
  0%,100% {transform:scale(1);box-shadow:0 0 0 0 currentColor;}
  50% {transform:scale(1.055);box-shadow:0 0 12px 1px currentColor;}
}
@media (prefers-reduced-motion:reduce) {
  .console-wish-guide:not([hidden]) #console-wish-guide-action {
    animation:none!important;outline:2px solid currentColor;outline-offset:2px;
  }
}


/* v3.12 // Résumé-backed Selected Studios details are clipped to each card.
   The grid never grows or shifts as the reveal slides in. */
.studio-grid > .studio-card {cursor:pointer;min-height:208px;}
.studio-card-open {
  position:absolute;inset:0;z-index:8;width:100%;height:100%;
  background:transparent;border:0;padding:0;cursor:pointer;
}
.studio-card-open:focus-visible {outline:2px solid var(--accent-bright,#62c8ff);outline-offset:-5px;}
.studio-card-cue {
  position:absolute!important;right:14px;top:12px;z-index:9;pointer-events:none;
  padding:4px 6px;border:1px solid rgba(119,193,255,.34);
  color:#a6d9ff!important;background:rgba(5,13,24,.74);
  font:800 9px/1.3 ui-monospace,Consolas,monospace!important;
  letter-spacing:.1em!important;white-space:nowrap;max-width:none!important;
}
.studio-card-cue span{font:inherit!important;color:inherit!important;margin:0!important;max-width:none!important;}
.studio-card-reveal {
  position:absolute;inset:0;z-index:12;display:block;
  box-sizing:border-box;overflow-y:auto;overscroll-behavior:auto;
  padding:15px 17px 16px;scrollbar-width:thin;
  background:linear-gradient(145deg,rgba(8,19,36,.985),rgba(9,30,54,.985));
  color:#e4f1ff;transform:translateY(101%);
  transition:transform .36s cubic-bezier(.22,.78,.21,1);
  pointer-events:none;
}
.studio-card.studio-expanded .studio-card-reveal{transform:translateY(0);pointer-events:auto;}
.studio-card.studio-expanded .studio-card-open{pointer-events:none;}
.studio-card.studio-expanded .studio-card-cue{opacity:0;}
.studio-reveal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.studio-card .studio-reveal-kicker{
  display:block;margin:0;color:#84cfff;font:800 10px/1.3 ui-monospace,Consolas,monospace;
  letter-spacing:.12em;text-transform:uppercase;max-width:none!important;
}
.studio-reveal-close{
  flex:0 0 auto;display:grid;place-items:center;width:27px;height:27px;
  border:1px solid rgba(125,193,252,.40);background:rgba(56,116,168,.15);
  color:#e4f1ff;font-size:20px;line-height:1;cursor:pointer;
}
.studio-reveal-close:hover,.studio-reveal-close:focus-visible{
  outline:2px solid #85d5ff;outline-offset:2px;background:rgba(86,155,210,.25);
}
.studio-card-reveal p{
  margin:0 0 9px;color:#f1f7ff;font-weight:500;
  font-family:inherit;font-size:12px;line-height:1.46;
}
.studio-card-reveal ul{margin:0;padding-left:16px;color:#bdd3e7;font-size:11.5px;line-height:1.45;}
.studio-card-reveal li+li{margin-top:5px;}
body.theme-complete:not(.theme-legendary) .studio-card-reveal {
  background:linear-gradient(145deg,rgba(36,11,49,.987),rgba(11,25,51,.987));
}
body.theme-complete:not(.theme-legendary) .studio-card .studio-reveal-kicker{color:#f4a4e5;}
body.theme-complete.theme-legendary .studio-card-reveal{
  background:linear-gradient(145deg,rgba(35,22,9,.987),rgba(7,32,34,.987));
}
body.theme-complete.theme-legendary .studio-card .studio-reveal-kicker{color:#ffd574;}
@media(max-width:900px){
  .studio-grid > .studio-card{min-height:208px;}
  .studio-card-reveal{padding:13px 15px 14px;}
}
@media(max-width:560px){
  .studio-grid > .studio-card{min-height:212px;}
}
@media(prefers-reduced-motion:reduce){
  .studio-card-reveal{transition:none!important;}
}


/* v3.13 // Selected Studios career details and Rare hover parity. */
.studio-card .studio-career-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px;padding-top:10px;border-top:1px solid rgba(140,204,255,.2);}
.studio-card .studio-career-linkgroup{display:flex;flex-direction:column;gap:7px;min-width:0;}
.studio-card .studio-career-linkgroup b{color:#a3d9ff;font-size:10px;letter-spacing:.1em;}
.studio-card .studio-career-linkgroup a{
  color:#e3f3ff;text-decoration:none;font-size:11px;line-height:1.3;
  border:1px solid rgba(134,198,255,.26);background:rgba(85,155,230,.1);
  border-radius:3px;padding:5px 7px;display:block;max-width:100%;
}
.studio-card .studio-career-linkgroup a:hover,.studio-card .studio-career-linkgroup a:focus-visible{
  background:rgba(95,169,242,.3);border-color:rgba(157,214,255,.8);outline:1px solid currentColor;
}
body:not(.theme-complete) .studio-card:not(.studio-expanded):hover .studio-image{
  -webkit-filter:grayscale(100%) contrast(1.08) brightness(.94)!important;
  filter:grayscale(100%) contrast(1.08) brightness(.94)!important;
}
body:not(.theme-complete) .studio-card:not(.studio-expanded):hover::after{
  background:#125dbe!important;opacity:.60!important;
}
body:not(.theme-complete) .studio-card:not(.studio-expanded):focus-within .studio-image{
  -webkit-filter:grayscale(100%) contrast(1.08) brightness(.94)!important;
  filter:grayscale(100%) contrast(1.08) brightness(.94)!important;
}

/* Banner is above the sticky header, with normal flow and no overlap. */
.mippi-software-notice {position:relative!important;top:auto!important;z-index:1100;box-sizing:border-box;}
html.mippi-software-fallback .mippi-software-notice{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px;}
html.mippi-software-fallback #hero-canvas,
html.mippi-software-fallback #about-canvas,
html.mippi-software-fallback #ambient-canvas{display:none!important;}
html.mippi-software-fallback .scene-fallback{display:block!important;opacity:1!important;pointer-events:auto!important;}
html.mippi-software-fallback .scene-fallback .fallback-node{visibility:visible!important;pointer-events:auto!important;}
html.mippi-software-fallback .scene-fallback .fallback-system{opacity:1;}

/* v3.14 // Keep every résumé summary readable inside its own studio card.
   Details are editorially curated for each role, not scroll-driven. */
.studio-grid > .studio-card{min-height:224px;}
.studio-card-reveal{padding:13px 15px 14px;scrollbar-width:none;}
.studio-card-reveal::-webkit-scrollbar{display:none;}
.studio-reveal-head{margin-bottom:6px;}
.studio-card-reveal p{font-size:11.4px;line-height:1.36;margin-bottom:6px;}
.studio-card-reveal ul{font-size:11px;line-height:1.34;padding-left:15px;}
.studio-card-reveal li+li{margin-top:3px;}
/* The work links are two compact horizontal rows, category label at left. */
.studio-card .studio-career-links{
  display:flex;flex-direction:column;gap:6px;
  margin-top:9px;padding-top:8px;
}
.studio-card .studio-career-linkgroup{
  display:grid;grid-template-columns:65px minmax(0,1fr);
  align-items:center;gap:6px;
}
.studio-card .studio-career-linkgroup b{
  font-size:9px;letter-spacing:.06em;white-space:nowrap;
}
.studio-card .studio-career-linkbuttons{
  display:flex;align-items:center;flex-wrap:wrap;gap:5px;
}
.studio-card .studio-career-linkgroup a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:3px 7px;font-size:10px;line-height:1.15;
  white-space:nowrap;max-width:none;border-radius:2px;
}
/* Never desaturate studio imagery, even while hovered or when focus
   returns to the card opener after the reveal closes. Preserve accent
   overlays as the hover affordance instead of greyscaling art. */
body #career .studio-grid .studio-card .studio-image,
body #career .studio-grid .studio-card:hover .studio-image,
body #career .studio-grid .studio-card:focus-within .studio-image{
  -webkit-filter:none!important;filter:none!important;
  transition:filter 0s!important,-webkit-filter 0s!important;
}
@media(max-width:900px){
  .studio-grid > .studio-card{min-height:232px;}
}
@media(max-width:560px){
  .studio-grid > .studio-card{min-height:244px;}
  .studio-grid > .studio-card.studio-yourstudio{min-height:260px;}
  .studio-card-reveal{padding:12px 13px;}
  .studio-card .studio-career-linkgroup{grid-template-columns:58px minmax(0,1fr);gap:5px;}
  .studio-card .studio-career-linkgroup a{padding:3px 5px;font-size:9.5px;}
}

/* v3.15: Crafting Play is one shared split panel with independent clickable sides. */
#crafting .crafting-unified-panel{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);background:var(--panel-3);margin-top:12px;overflow:hidden;}
#crafting .crafting-unified-panel>.work-card{margin:0;border:0;border-radius:0;min-width:0;height:100%;}
#crafting .crafting-unified-panel>.work-card:first-child{border-right:1px solid var(--line);}
#crafting .crafting-unified-panel .book-mark{transform:scale(.84);transform-origin:top right;}
#crafting .crafting-unified-panel .book-mark span{font-size:15px;letter-spacing:.015em;}
@media(max-width:720px){
  #crafting .crafting-unified-panel{grid-template-columns:1fr;}
  #crafting .crafting-unified-panel>.work-card:first-child{border-right:0;border-bottom:1px solid var(--line);}
  #crafting .crafting-unified-panel .book-mark{transform-origin:top left;}
}
/* Career cards now contain 4 to 6 short, role-relevant detail points.
   Preserve clipping and remove scrollbar reliance without compressing type. */
#career .studio-grid>.studio-card{min-height:258px;}
#career .studio-card-reveal{overflow:hidden;padding:12px 14px 13px;}
#career .studio-card-reveal p{font-size:11px;line-height:1.27;margin-bottom:6px;}
#career .studio-card-reveal ul{font-size:10.5px;line-height:1.27;padding-left:14px;}
#career .studio-card-reveal li+li{margin-top:2px;}
@media(max-width:900px){#career .studio-grid>.studio-card{min-height:280px;}}
@media(max-width:560px){#career .studio-grid>.studio-card{min-height:290px;}#career .studio-grid>.studio-card.studio-yourstudio{min-height:318px;}}

/* v3.15.2 | Discovered gameplay meters stay adjacent to the progress group.
   No phantom center alignment when Achievements has not appeared yet. */
@media(min-width:1000px){
  body.hud-unified #site-game-hud > #hud-gameplay{justify-content:flex-start!important;}
  body.hud-unified #site-game-hud > #hud-progress{justify-content:flex-start!important;}
}

/* v3.15.3 | Discovery controls HUD meter visibility even after reparenting.
   The unified HUD's default display:grid!important must not force undiscovered
   tracks on screen. Keep the existing visible-grid presentation intact. */
body.hud-unified #site-game-hud #hud-gameplay :is(#cool-meter,#invasion-meter,#castle-meter):not(.visible){
  display:none!important;
}

/* v3.15.4 | An undiscovered track never occupies layout space. */
body.hud-unified #site-game-hud #hud-gameplay > :is(#cool-meter,#invasion-meter,#castle-meter):not(.visible){display:none!important;}
/* Remove the empty Progress group entirely rather than leaving a blank column.
   Once any resource/achievement appears, restore the intended 20px grouping. */
@media(min-width:1000px){
  body.hud-unified #site-game-hud > #hud-progress:not(:has(> .visible)){display:none!important;}
  body.hud-unified #site-game-hud > #hud-gameplay{margin-left:0!important;}
  body.hud-unified #site-game-hud > #hud-progress:has(> .visible) + #hud-gameplay{margin-left:20px!important;}
}

/* v3.16 | Achievement emblems keep rarity colors independent of site theme. */
.achievement-ledger .ledger-entry{grid-template-columns:40px minmax(0,1fr);align-items:center;}
.achievement-emblem{--emblem-color:#67cfff;display:grid;place-items:center;flex:none;width:38px;height:38px;box-sizing:border-box;border:1px solid currentColor;border-radius:4px;color:var(--emblem-color);background:color-mix(in srgb,var(--emblem-color) 9%,transparent);}
.achievement-emblem-svg{width:27px;height:27px;display:block;overflow:visible;}
.rarity-rare .achievement-emblem{--emblem-color:#67cfff;}
.rarity-epic .achievement-emblem{--emblem-color:#bd85ff;}
.rarity-legendary .achievement-emblem{--emblem-color:#ffc83d;}
.ledger-entry:not(.unlocked) .achievement-emblem{opacity:.56;filter:saturate(.6);}
.ledger-entry.unlocked .achievement-emblem{opacity:1;box-shadow:0 0 12px color-mix(in srgb,var(--emblem-color) 24%,transparent);}
.achievement-toast-row{display:flex;align-items:center;gap:11px;margin-top:5px;}
.achievement-toast-row .toast-emblem{width:42px;height:42px;}
.achievement-toast-row .toast-emblem svg{width:29px;height:29px;}
.achievement-toast-content{flex:1;min-width:0;}
.achievement-unlock-toast .achievement-toast-content strong{margin:0;}
.achievement-unlock-toast .achievement-toast-content>b{display:block;margin-top:6px;font-size:8px;letter-spacing:.08em;color:var(--emblem-color);}
.achievement-unlock-toast.rarity-rare{--emblem-color:#67cfff;}
.achievement-unlock-toast.rarity-epic{--emblem-color:#bd85ff;}
.achievement-unlock-toast.rarity-legendary{--emblem-color:#ffc83d;}

/* v3.17 | Floating Doug Bones belong to the game plane, not site chrome. */
body .doug-bone,body .doug-bone:hover{z-index:40!important;}
body .site-header{z-index:300!important;}
body.hud-unified #site-game-hud{z-index:255!important;}
/* Identifiable shop gear silhouettes, including unrevealed stock as hints. */
.shop-item-identity{display:flex;align-items:center;gap:11px;margin:9px 0 6px;min-width:0;}
.shop-item-identity h4{margin:0;min-width:0;}
.shop-item-emblem{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;box-sizing:border-box;border:1px solid currentColor;border-radius:4px;color:#67cfff;background:rgba(103,207,255,.06);}
.shop-item-emblem svg{width:25px;height:25px;display:block;}
.shop-item.rarity-epic .shop-item-emblem{color:#bd85ff;background:rgba(189,133,255,.07);}
.shop-item.rarity-legendary .shop-item-emblem{color:#ffc83d;background:rgba(255,200,61,.07);}
.shop-item.locked .shop-item-emblem{opacity:.55;filter:saturate(.6);}
.shop-item.owned .shop-item-emblem{box-shadow:0 0 12px currentColor;}

/* v3.18: Two independent purchases share the Mippi Bird card. */
.shop-item-actions{display:flex;gap:7px;margin-top:auto;align-items:stretch;}
.shop-item-actions>button{margin-top:0;flex:1 1 0;min-width:0;padding:7px 4px;font-size:8px;line-height:1.3;}
@media(max-width:600px){.shop-item-actions{flex-wrap:wrap}.shop-item-actions>button{flex-basis:100%;}}

/* v3.18.2: the purchased Dev Console hotbar control stays absent until unlocked. */
#site-game-hud #console-tip-button[hidden],#discovery-controls #console-tip-button[hidden]{display:none!important;}

/* v3.19 | Clearer, recognizable locked emblems and visually distinct capstones. */
.ledger-entry:not(.unlocked) .achievement-emblem{opacity:.72;filter:saturate(.85);}
.achievement-emblem-svg,.shop-item-emblem svg{stroke-width:1.85;stroke-linejoin:round;}
.ledger-entry.rarity-legendary .achievement-emblem,.shop-item.rarity-legendary .shop-item-emblem{border:2px solid #ffc83d;border-radius:6px;background:linear-gradient(135deg,rgba(255,200,61,.21),rgba(255,200,61,.035));box-shadow:inset 0 0 0 2px rgba(255,200,61,.08);}
.ledger-entry.rarity-legendary.unlocked .achievement-emblem,.shop-item.rarity-legendary.owned .shop-item-emblem{box-shadow:0 0 13px rgba(255,200,61,.3),inset 0 0 0 2px rgba(255,200,61,.15);}

/* v3.20 | Per-icon fine detail may use explicit SVG geometry overrides. */
.achievement-emblem-svg [stroke-width],.shop-item-emblem svg [stroke-width]{stroke-width:revert-layer;}

/* v3.22 half-hearts: empty outline plus a smaller solid heart in center. */
#heart-meter>span.half-filled{position:relative;display:inline-flex;justify-content:center;align-items:center;}
#heart-meter>span.half-filled .heart-half-core{position:absolute;font-size:.48em;line-height:1;pointer-events:none;}

#heart-meter>span.half-filled{font-size:inherit;line-height:1;}
#heart-meter>span.half-filled .heart-half-core{inset:0;display:grid;place-items:center;font-size:.55em;}

html.mippi-game-paused :is(.game-pickup,.doug-bone,.galaga-secret,.shooting-star,.section-castle,.ufo-projectile,.legendary-player-projectile){animation-play-state:paused!important;}
#mippi-pause-overlay[hidden]{display:none!important;}
#mippi-pause-overlay{position:fixed;inset:0;z-index:560;background:#060c16ae;display:grid;place-items:center;pointer-events:none;}
.mippi-pause-panel{display:grid;gap:12px;pointer-events:auto;text-align:center;min-width:300px;padding:25px;background:#0c1929;border:1px solid #67cfff;color:white;font:12px ui-monospace,monospace;box-shadow:0 20px 60px #000a;}
.mippi-pause-panel strong{font-size:20px;letter-spacing:.16em;}.mippi-pause-panel button{padding:10px;border:1px solid #67cfff;background:#123858;color:white;cursor:pointer;}

/* v3.25.1 // Boss combat shares the game plane instead of hiding the site chrome. */
body.superboss-active .superboss-arena{z-index:90;}
body.superboss-active :is(.game-pickup,.doug-bone,.shooting-star,.section-castle){z-index:110!important;}
body.superboss-active .superboss-header{top:var(--superboss-header-top,106px);}
body.superboss-active .superboss-exit{bottom:var(--superboss-hud-clearance,76px);}

/* Multi-item loadouts may contain several names; keep the Shop summary readable. */
.shop-equipped-row > strong { min-width:0;overflow-wrap:anywhere;line-height:1.5; }
.shop-equipped-row { min-width:0; }

/* Storage-disabled visitors can still play; communicate temporary progress unobtrusively. */
#mippi-storage-notice{position:fixed;left:16px;bottom:92px;z-index:1200;max-width:min(390px,calc(100vw - 32px));padding:9px 12px;border:1px solid var(--line-blue,#2f93ff);border-radius:4px;background:#0b1726;color:#d8edff;font:600 11px/1.5 ui-monospace,Consolas,monospace;pointer-events:none;box-shadow:0 3px 15px rgba(0,0,0,.25)}
