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

:root {
  --a: #00f5ff;
  --a2: #aa44ff;
  --warning: #ff3366;
  --bg: #020208;
}

html,body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* Cyber holographic grid background overlay */
html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), 
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px), 
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 4px, 40px 40px, 40px 40px;
  z-index: 2;
  pointer-events: none;
}

#vid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

#defaultCanvas0 {
  position: fixed!important;
  inset: 0;
  z-index: 1;
  background: transparent!important;
}

/* Sci-fi Cockpit HUD Header Bar */
#bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
  background: rgba(2, 6, 12, 0.92);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 0px; 
  backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.15), inset 0 0 8px rgba(0, 245, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); 
}

.logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--a), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hud-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--a);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.hud-item span {
  color: #ffffff;
  text-shadow: 0 0 8px #ffffff;
}

#livesVal {
  color: #ff3366;
  text-shadow: 0 0 10px #ff3366;
  font-size: 12px;
  letter-spacing: 2px;
}

#large-lives-hud {
  position: fixed;
  top: 14px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 20px;
  background: rgba(2, 6, 12, 0.92);
  border: 1px solid rgba(255, 51, 102, 0.25);
  backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.15), inset 0 0 8px rgba(255, 51, 102, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  font-family: 'Share Tech Mono', monospace;
}

#large-lives-hud .label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 51, 102, 0.6);
  margin-bottom: 2px;
}

#large-lives-hud .value {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ff3366;
  text-shadow: 0 0 15px #ff3366, 0 0 5px #ff3366;
}

.sep {
  width: 1px;
  height: 18px;
  background: rgba(0, 245, 255, 0.2);
}

.btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 5px 15px;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 0px;
  color: rgba(0, 245, 255, 0.7);
  cursor: pointer;
  transition: all .2s;
}

.btn:hover {
  background: rgba(0, 245, 255, 0.15);
  color: var(--a);
  border-color: var(--a);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

#st {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(0, 245, 255, 0.4);
  pointer-events: none;
  z-index: 100;
  transition: color .25s, text-shadow .25s;
  white-space: nowrap;
}

#st.draw {
  color: var(--a);
  text-shadow: 0 0 12px var(--a);
}

#st.grab {
  color: #ffb300;
  text-shadow: 0 0 12px #ffb300;
}

#tip {
  position: fixed;
  bottom: 40px;
  right: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0, 245, 255, 0.45);
  line-height: 2.2;
  text-align: right;
  pointer-events: none;
  z-index: 5;
}

#tip b {
  color: var(--a);
}

/* Loading Panel */
#ld {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity .5s;
}

#ld.out {
  opacity: 0;
  pointer-events: none;
}

#ld h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(16px, 4vw, 30px);
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--a), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ring {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0, 245, 255, 0.1);
  border-top-color: var(--a);
  border-radius: 50%;
  animation: sp .8s linear infinite;
}

@keyframes sp {
  to { transform: rotate(360deg); }
}

#ld p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 4px;
}

/* Hologram Warning Card */
#confession-card {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#confession-card.visible {
  opacity: 1;
  pointer-events: auto;
}

.card-inner {
  background: rgba(3, 10, 18, 0.9);
  border: 2px solid var(--a);
  border-radius: 4px; 
  padding: 45px 35px;
  max-width: 540px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.25), inset 0 0 15px rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(25px);
  animation: slideDown 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  font-family: 'Share Tech Mono', monospace;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

@keyframes slideDown {
  from { transform: translateY(-70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.heart-icon {
  font-size: 55px;
  display: block;
  margin-bottom: 24px;
  color: var(--a);
  animation: radarPulse 1.5s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--a)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 15px var(--a)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--a)); }
}

.card-inner h2 {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--a);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
  margin-bottom: 20px;
}

.card-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 35px;
  text-align: justify;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  position: relative;
}

.btn-love {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 12px 28px;
  border: 1px solid var(--a);
  border-radius: 0px; 
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.1);
  white-space: nowrap;
}

#yesBtn {
  background: rgba(0, 245, 255, 0.12);
  color: var(--a);
  border-color: var(--a);
  z-index: 1002;
}

#yesBtn:hover {
  background: var(--a);
  color: #020208;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.6);
  transform: translateY(-2px);
}

#noBtn {
  background: rgba(255, 51, 102, 0.1);
  border-color: var(--warning);
  color: var(--warning);
  z-index: 1001;
  position: relative;
  transition: transform 0.1s ease, left 0.15s ease, top 0.15s ease;
}

/* System Restored Terminal Overlay */
#celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  font-family: 'Share Tech Mono', monospace;
}

#celebration-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.celebration-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
  border: 1px solid var(--a);
  background: rgba(0, 245, 255, 0.02);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}

.heart-pulse {
  font-size: 80px;
  display: block;
  margin-bottom: 25px;
  color: var(--a);
  animation: radarPulse 1.2s infinite;
}

.celebration-content h1 {
  font-size: 32px;
  color: var(--a);
  text-shadow: 0 0 25px rgba(0, 245, 255, 0.6);
  margin-bottom: 25px;
  letter-spacing: 4px;
}

.celebration-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.hidden {
  display: none !important;
}
