@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400&display=swap');

:root {
  --purple: #634d93;
  --tpurple: #1e103f;
  --black: rgba(0, 0, 0, 0.48);
  --violet-glow: #28115e;
  --violet-shadow: #23173f;
  --text-primary: #c0c0c0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  color: var(--text-primary);
  font-family: "MS UI Gothic", "MS Gothic", monospace;
  font-size: 12px;
  overflow-x: auto;
  cursor: url('../cursor/NormalCur.cur'), default;
}

/* Animated overlay */
.veil-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 7, 65, 0.49);
  animation: fadeInOut 8s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes fadeInOut {
  0% { opacity: 0.49; }
  50% { opacity: 0; }
  100% { opacity: 0.49; }
}

h1 {
  font-size: 24px;
  color: #fffffe;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.main-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 775px;
}

.stage-frame {
  width: 735px;
  background: linear-gradient(to bottom, #010101, #0f0f0f, #060606);
  border: 2px double #010101;
  outline: 1px solid var(--tpurple);
  outline-offset: -4px;
  box-shadow: 3px 3px 0 #010101;
  position: relative;
  padding: 20px;
  animation: fade 0.5s ease-in-out;
}

.stage-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, var(--violet-glow), transparent);
  opacity: 0.31;
  pointer-events: none;
}

.hint {
  border-bottom: 1px dotted #676767;
  cursor: url('../cursor/HelpCur.cur'), help;
  transition: all 0.2s ease;
}

.hint:hover {
  color: #fffffe;
  text-shadow: 0 0 3px var(--tpurple);
}

#qTip {
  position: absolute;
  display: none;
  opacity: 0;
  max-width: 300px;
  border-radius: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, var(--tpurple) 0%, #050505 100%);
  border: 1px solid rgba(99, 77, 147, 0.35); 
  outline: 1px solid rgba(30, 16, 63, 0.2);   
  font-family: "MS UI Gothic", "MS Gothic", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #d0cce5; 
  z-index: 999999999;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.75); 
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(3px);
}

#qTip.visible {
  opacity: 1;
  transform: translateY(0);
}


p, h1, h2, h3, h4, h5, h6, input[type="text"], textarea {
  cursor: url('../cursor/TextHoverCur.cur'), text;
}

a, a:hover, a:active, a:focus, a:active,
button, button:hover, button:focus, button:active,
.card-portrait:hover {
  cursor: url('../cursor/ClickCur.cur'), pointer;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}