/* AKIRA / EDGERUNNERS GRITTY ARCADE CYBERPUNK THEME */

:root {
  --bg-deep: #060709;
  --bg-surface: #0e1017;
  --bg-elevated: #161822;
  --hazard-yellow: #ffeb00;
  --neon-red: #ff003c;
  --cyber-cyan: #00f0ff;
  --matrix-green: #39ff14;
  --text-white: #f8fafc;
  --text-dim: #94a3b8;
  --border-harsh: #ffeb00;
  --font-display: 'Bebas Neue', 'Dela Gothic One', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-syne: 'Syne', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.arcade-body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-mono);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* BACKGROUND CANVAS & OVERLAYS */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.halftone-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255, 235, 0, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.crt-lines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 999;
}

/* HAZARD MARQUEE STRIP */
.hazard-marquee {
  background: var(--hazard-yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid #000;
  border-top: 2px solid #000;
}

.marquee-track {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* NAVIGATION */
.cyber-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(10, 11, 15, 0.92);
  border-bottom: 2px solid var(--neon-red);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kanji-badge {
  background: var(--neon-red);
  color: #fff;
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 12px;
  padding: 3px 8px;
  letter-spacing: 1px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--hazard-yellow);
}

.ver {
  font-size: 14px;
  color: var(--cyber-cyan);
}

.nav-metrics {
  display: flex;
  gap: 16px;
  align-items: center;
}

.metric-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 235, 0, 0.2);
  padding: 4px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
}

.m-label { color: var(--text-dim); }
.m-val.red { color: var(--neon-red); font-weight: bold; }
.m-val.yellow { color: var(--hazard-yellow); font-weight: bold; }

.sfx-btn {
  background: transparent;
  border: 1px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}
.sfx-btn:hover {
  background: var(--cyber-cyan);
  color: #000;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-btn {
  padding: 8px 16px;
  background: var(--bg-elevated);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: 0.2s;
}

.nav-btn:hover {
  border-color: var(--hazard-yellow);
  color: var(--hazard-yellow);
  box-shadow: 0 0 10px rgba(255, 235, 0, 0.4);
}

.nav-btn.chart-link {
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
}
.nav-btn.chart-link:hover {
  background: var(--cyber-cyan);
  color: #000;
}

.nav-btn.pump-glow {
  background: var(--neon-red);
  border-color: var(--neon-red);
  color: #fff;
  font-weight: bold;
}
.nav-btn.pump-glow:hover {
  background: var(--hazard-yellow);
  color: #000;
  border-color: var(--hazard-yellow);
}

/* WRAPPER */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* HERO BRUTALIST */
.hero-brutal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  margin-bottom: 80px;
  padding-top: 20px;
}

.kanji-watermark {
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 180px;
  color: rgba(255, 0, 60, 0.05);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.akira-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: #000;
  border-left: 4px solid var(--neon-red);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--neon-red);
  margin-bottom: 18px;
}

.blink-tag {
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

.mega-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.title-jp {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 28px;
  color: var(--hazard-yellow);
  letter-spacing: 6px;
}

.title-en {
  font-family: var(--font-display);
  font-size: 88px;
  letter-spacing: 4px;
  line-height: 0.9;
  color: #fff;
  text-shadow: 4px 4px 0px var(--neon-red);
}

.punchline-banner {
  background: var(--neon-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  padding: 8px 16px;
  display: inline-block;
  margin-bottom: 24px;
  transform: skewX(-6deg);
}

.hero-lore {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 32px;
}

.highlight-yellow {
  color: var(--hazard-yellow);
  font-weight: bold;
}

/* CTA BUTTONS */
.cta-cluster {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-akira {
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  position: relative;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: all 0.15s ease-in-out;
}

.btn-akira .btn-sub {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.btn-akira .btn-main {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 900;
}

.btn-akira.primary {
  background: var(--hazard-yellow);
  color: #000;
  box-shadow: 6px 6px 0px var(--neon-red);
}
.btn-akira.primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--neon-red);
}

.btn-akira.secondary {
  background: var(--bg-elevated);
  color: var(--cyber-cyan);
  border: 1px solid var(--cyber-cyan);
  box-shadow: 6px 6px 0px rgba(0, 240, 255, 0.3);
}
.btn-akira.secondary:hover {
  background: var(--cyber-cyan);
  color: #000;
  transform: translate(-3px, -3px);
}

.btn-akira.danger {
  background: var(--bg-elevated);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
  box-shadow: 6px 6px 0px rgba(255, 0, 60, 0.3);
}
.btn-akira.danger:hover {
  background: var(--neon-red);
  color: #fff;
  transform: translate(-3px, -3px);
}

/* CA TERMINAL BOX */
.ca-terminal-box {
  background: #000;
  border: 2px solid var(--hazard-yellow);
  padding: 14px 18px;
  max-width: 580px;
  box-shadow: 4px 4px 0px rgba(255, 235, 0, 0.2);
}

.ca-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--hazard-yellow);
  margin-bottom: 8px;
}

.ca-tag {
  color: var(--matrix-green);
  font-weight: bold;
}

.ca-row {
  display: flex;
  gap: 10px;
}

.ca-code {
  flex: 1;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyber-cyan);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

.ca-copy-btn {
  background: var(--neon-red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 0 20px;
  cursor: pointer;
  transition: 0.2s;
}

.ca-copy-btn:hover {
  background: var(--hazard-yellow);
  color: #000;
}

/* ARCADE CARD & ILLUSTRATION FRAME */
.arcade-card {
  position: relative;
  background: var(--bg-surface);
  border: 3px solid #000;
  box-shadow: 12px 12px 0px var(--neon-red);
  padding: 24px;
}

.card-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--hazard-yellow);
}
.top-left { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.top-right { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.btm-left { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.btm-right { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.poster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  font-size: 12px;
  color: var(--hazard-yellow);
  font-weight: bold;
}

.status-live {
  background: var(--neon-red);
  color: #fff;
  padding: 2px 8px;
  font-size: 10px;
}

.illustration-frame {
  padding: 20px 0;
  text-align: center;
}

.edgerunner-svg {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 0 15px rgba(255, 0, 60, 0.4));
  animation: pulse-art 3s ease-in-out infinite;
}

@keyframes pulse-art {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.poster-footer {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  font-size: 11px;
}

.stat-pill {
  color: var(--text-dim);
}
.stat-pill .lbl {
  color: var(--cyber-cyan);
}

/* =================================================== */
/* 📊 LIVE CHART TERMINAL HUD */
/* =================================================== */
.chart-section {
  margin-bottom: 80px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-live-pulse {
  background: rgba(57, 255, 20, 0.15);
  border: 1px solid var(--matrix-green);
  color: var(--matrix-green);
  font-size: 11px;
  padding: 2px 8px;
  font-weight: bold;
  animation: blink 1s infinite alternate;
}

.chart-container {
  background: #000;
  border: 2px solid var(--cyber-cyan);
  box-shadow: 8px 8px 0px rgba(0, 240, 255, 0.25);
  overflow: hidden;
}

.chart-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #0d1017;
  padding: 12px 20px;
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
  gap: 16px;
}

.hud-stat-item {
  display: flex;
  flex-direction: column;
}

.hud-stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.hud-stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
}

.val-white { color: #fff; }
.val-lime { color: var(--matrix-green); text-shadow: 0 0 8px rgba(57, 255, 20, 0.4); }
.val-yellow { color: var(--hazard-yellow); }

.bonding-progress-wrap {
  position: relative;
  width: 140px;
  height: 20px;
  background: #1a1d26;
  border: 1px solid var(--hazard-yellow);
  overflow: hidden;
  margin-top: 2px;
}

.bonding-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-red), var(--hazard-yellow));
  transition: width 0.5s ease;
}

.bonding-text {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.timeframe-controls {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.tf-btn {
  background: #181b24;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: 0.15s;
}

.tf-btn.active, .tf-btn:hover {
  border-color: var(--cyber-cyan);
  background: var(--cyber-cyan);
  color: #000;
  font-weight: bold;
}

.chart-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 420px;
}

.chart-canvas-box {
  position: relative;
  background: #06070a;
  border-right: 2px solid rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.chart-overlay-watermark {
  position: absolute;
  top: 14px;
  left: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 2px;
  font-weight: bold;
  pointer-events: none;
}

#candle-canvas {
  width: 100%;
  height: 380px;
  display: block;
}

.chart-crosshair-hud {
  padding: 8px 16px;
  background: #0a0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--cyber-cyan);
}

.chart-crosshair-hud span {
  color: var(--hazard-yellow);
}

/* LIVE TRANSACTIONS STREAM */
.chart-orders-box {
  background: #090b10;
  display: flex;
  flex-direction: column;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #11141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--hazard-yellow);
  font-weight: bold;
}

.orders-tag {
  color: var(--matrix-green);
  font-size: 9px;
}

.orders-list {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: hidden;
}

.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 10px;
  background: #121620;
  border-left: 3px solid var(--matrix-green);
  animation: slide-in-top 0.3s ease-out;
}

@keyframes slide-in-top {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.order-row.buy .order-type { color: var(--matrix-green); font-weight: bold; }
.order-row.buy .order-amount { color: #fff; font-weight: bold; }
.order-row.buy .order-wallet { color: var(--text-dim); font-size: 10px; }

.orders-cta {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pump-buy-instant {
  display: block;
  text-align: center;
  background: var(--hazard-yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 900;
  transition: 0.15s;
}

.pump-buy-instant:hover {
  background: var(--matrix-green);
  box-shadow: 0 0 12px var(--matrix-green);
}

/* SOUNDBOARD SECTION */
.soundboard-section {
  margin-bottom: 80px;
  background: #000;
  border: 2px solid var(--cyber-cyan);
  padding: 32px;
  box-shadow: 8px 8px 0px rgba(0, 240, 255, 0.2);
}

.section-title-wrap {
  margin-bottom: 30px;
}

.badge-accent {
  background: var(--neon-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: bold;
  letter-spacing: 1px;
}

.brutal-h2 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 2px;
  color: #fff;
  margin-top: 6px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sound-pad {
  background: var(--bg-elevated);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
}

.sound-pad:hover {
  border-color: var(--hazard-yellow);
  background: rgba(255, 235, 0, 0.1);
  transform: translateY(-2px);
}

.sound-pad:active {
  transform: translateY(2px);
  background: var(--hazard-yellow);
  color: #000;
}

.pad-key {
  font-size: 11px;
  color: var(--cyber-cyan);
  margin-bottom: 4px;
}

.pad-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
}

.pad-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* TOKENOMICS MATRIX */
.tok-section {
  margin-bottom: 80px;
}

.tok-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tok-box {
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 28px 24px;
  position: relative;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
}

.tok-box.primary-box { border-color: var(--text-white); }
.tok-box.yellow-box { border-color: var(--hazard-yellow); box-shadow: 6px 6px 0px var(--hazard-yellow); }
.tok-box.cyan-box { border-color: var(--cyber-cyan); box-shadow: 6px 6px 0px var(--cyber-cyan); }
.tok-box.red-box { border-color: var(--neon-red); box-shadow: 6px 6px 0px var(--neon-red); }

.tok-badge {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.tok-huge {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.tok-caption {
  font-size: 14px;
  color: var(--text-dim);
}

/* MANGA PANELS */
.manga-section {
  margin-bottom: 80px;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.manga-panel {
  background: #000;
  border: 3px solid #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 8px 8px 0px #000;
  position: relative;
}

.manga-panel.accent-panel {
  border-color: var(--hazard-yellow);
  box-shadow: 8px 8px 0px var(--hazard-yellow);
}

.manga-panel.hero-panel {
  border-color: var(--neon-red);
  box-shadow: 8px 8px 0px var(--neon-red);
}

.panel-tag {
  font-size: 11px;
  color: var(--cyber-cyan);
  font-weight: bold;
  margin-bottom: 8px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 12px;
}

.panel-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.panel-sound {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 14px;
  color: var(--hazard-yellow);
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 12px;
  text-align: center;
}

/* RAID MATRIX */
.raid-matrix-section {
  margin-bottom: 80px;
}

.raid-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.raid-card {
  background: var(--bg-surface);
  border: 2px solid var(--hazard-yellow);
  padding: 20px;
}

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--hazard-yellow);
  font-weight: bold;
  margin-bottom: 14px;
}

.mini-copy-btn {
  background: var(--neon-red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 4px 12px;
  cursor: pointer;
}
.mini-copy-btn:hover {
  background: var(--hazard-yellow);
  color: #000;
}

.rc-content {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  font-size: 13px;
  color: #e2e8f0;
  white-space: pre-line;
}

/* FOOTER */
.cyber-footer {
  background: #000;
  border-top: 2px solid var(--neon-red);
}

.footer-meta {
  padding: 30px 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.f-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--hazard-yellow);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.f-disclaimer {
  font-size: 11px;
  color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-brutal {
    grid-template-columns: 1fr;
  }
  .chart-layout-grid {
    grid-template-columns: 1fr;
  }
  .chart-canvas-box {
    border-right: none;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
  }
  .title-en {
    font-size: 64px;
  }
  .nav-metrics {
    display: none;
  }
}
