/* ============================================================
   Roman Luka — Personal Website
   Ultra-Minimalist, Frameless Monochrome Design on White Background
   Typography: Digital Monospace (JetBrains Mono & Space Mono)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-muted: #444444;
  --text-subtle: #777777;
  --accent-color: #000000;
  
  --font-mono: 'JetBrains Mono', 'Space Mono', 'Courier New', monospace;
  --font-digital: 'Space Mono', 'JetBrains Mono', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Interactive Background Canvas ── */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Site Container: Pure White, No Frames ── */
.site-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  text-align: center;
  background: transparent;
}

@media (max-width: 640px) {
  .site-container {
    padding: 32px 14px 60px;
  }
}

/* ── Links ── */
a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mono-link {
  color: #111111;
  font-weight: 500;
  border-bottom: 1px dashed #777777;
}

.mono-link:hover {
  color: #000000;
  border-bottom-style: solid;
  border-bottom-color: #000000;
  background-color: rgba(0, 0, 0, 0.04);
}

.doc-link {
  color: #111111;
  font-weight: 500;
  border-bottom: 1px solid #111111;
}

.doc-link:hover {
  background-color: #111111;
  color: #ffffff;
}

/* ── Avatar Image (Frameless, Compact Proportions) ── */
.avatar-block {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.avatar-img {
  width: 115px;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 0.25s ease;
}

.avatar-img:hover {
  transform: scale(1.06);
}

/* ── Main Title ── */
.main-title {
  font-family: var(--font-digital);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 12px;
}

.main-title a:hover {
  color: #555555;
}

.bio-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bio-desc {
  font-size: 13.5px;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.consulting-note {
  font-size: 12px;
  color: #666666;
  font-style: italic;
  margin-bottom: 28px;
}

/* ── Stacked Link Buttons ── */
.links-button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
}

.stack-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background-color: #ffffff;
  border: 1.5px solid #111111;
  border-radius: 8px;
  font-family: var(--font-digital);
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.stack-btn:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arcade-highlight {
  background-color: #111111;
  color: #ffffff;
  border-color: #000000;
  animation: pulseBtn 2s infinite ease-in-out;
}

.arcade-highlight:hover {
  background-color: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@keyframes pulseBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

/* ── Quick Info ── */
.quick-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.quick-info p {
  margin-bottom: 6px;
}

.quick-info p:last-child {
  margin-bottom: 0;
}

/* ── Mono Divider ── */
.mono-divider {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #dddddd;
  letter-spacing: 0.1em;
  margin: 36px 0;
  user-select: none;
}

/* ── Info Sections ── */
.info-section {
  text-align: left;
}

.section-title {
  font-family: var(--font-digital);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 16px;
}

.info-section p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.info-section p:last-child {
  margin-bottom: 0;
}

/* ── Experience Items ── */
.exp-item {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #e5e5e5;
}

.exp-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.exp-role {
  font-size: 14.5px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.exp-meta {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 10px !important;
}

.exp-intro {
  margin-bottom: 10px !important;
}

.exp-bullets {
  list-style-type: square;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.exp-bullets li {
  margin-bottom: 8px;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

/* ── Mission Quote ── */
.mission-quote {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.75;
  color: #222222;
  border-left: 2px solid #000000;
  padding-left: 16px;
  margin-top: 12px;
}

/* ── Footer ── */
.profile-footer {
  margin-top: 20px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  font-size: 12px;
  text-transform: lowercase;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000000;
  margin-bottom: 4px;
}

.footer-years {
  font-size: 11px;
  color: #888888;
}

/* ────────────────────────────────────────────
   🕹 ARCADE MINI-GAME MODAL STYLES 🕹
   ────────────────────────────────────────── */
.arcade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.arcade-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.arcade-container {
  width: 100%;
  max-width: 440px;
  background: #090a0f;
  border: 2px solid #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-digital);
}

.arcade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.arcade-close-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arcade-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Buffs Bar */
.buffs-bar {
  display: flex;
  gap: 8px;
  min-height: 22px;
}

.buff-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.buff-tag.speed {
  background: #eab308;
  color: #000000;
}

.buff-tag.crown {
  background: #f59e0b;
  color: #000000;
}

.buff-tag.hidden {
  display: none;
}

.arcade-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.2;
  background: #050608;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.arcade-overlay-screen.hidden {
  display: none;
}

.game-headline {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: 12px;
}

.game-headline.red {
  color: #ef4444;
}

.game-instructions {
  font-size: 12.5px;
  line-height: 1.55;
  color: #d1d5db;
  margin-bottom: 14px;
}

.controls-hint {
  font-size: 11px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.arcade-play-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: var(--font-digital);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.arcade-play-btn:hover {
  background: #60a5fa;
  color: #ffffff;
  transform: scale(1.05);
}

.final-score-text,
.high-score-text {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.final-score-text span,
.high-score-text span {
  color: #60a5fa;
}

.stats-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: #d1d5db;
}

.stats-summary strong {
  color: #ffffff;
}

.arcade-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 4px 0;
}

.score-display span {
  color: #60a5fa;
}

.crypto-counts {
  display: flex;
  gap: 12px;
}

.btc-badge {
  color: #f7931a;
  background: rgba(247, 147, 26, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.eth-badge {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(192, 132, 252, 0.3);
}
