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

:root {
  --main-color: #3498db;
  --accent-color: #be011e;
  --dark-accent-color: #770012;
  --secondary-color: #3f3f3f;
  --bg-color: #0c0c0c;
  --text-color: #c9c9c9;
  --light-text-color: #6b6b6b;
  --dark-text-color: #363636;
  --border-color: rgba(255, 255, 255, 0.08);
}

/* Main Styles - Canvas, Body, Background */

body {
  background: #060608;
  background-image: radial-gradient(circle at center, #1f0005 0%, #060608 100%);
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

#smoke-canvas {
  display: none;
}

.canvas-container {
  width: 95vw;
  height: 50vw;
  max-width: 1250px;
  max-height: 750px;
  min-height: 565px;
  display: grid;
  grid-template-columns: 45% 42% 13%;
  background-color: var(--bg-color);
  position: relative;

  /* Bluring and few layers of shadows */
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.8),
    inset 0 0 80px rgba(6, 6, 8, 0.9),
    inset 0 0 140px rgba(0, 0, 0, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.canvas-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 12;
  pointer-events: none;
}

/* Grid of dots */
.canvas-dot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 15%,
    transparent 20%
  );
  background-size: 6px 6px;
  z-index: 2;
  pointer-events: none;
}

.top-left {
  top: 25px;
  left: 25px;
  border-right: none;
  border-bottom: none;
}
.bottom-right {
  bottom: 25px;
  right: 25px;
  border-left: none;
  border-top: none;
}

/* Left panel - Quotes, Player, Meta data */

.left-panel {
  padding: 7%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.hero-quote-header {
  position: relative;
  display: inline-block;

  background-image: linear-gradient(
    90deg,
    #3f3f3f 0%,
    #c9c9c9 25%,
    #666666 40%,
    #3f3f3f 55%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
  padding-left: 20px;
}

.hero-quote-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;

  background: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}

.quote-jp {
  display: block;
  margin-top: 5px;

  -webkit-background-clip: border-box;
  background-clip: border-box;
  background-image: none;

  color: var(--text-color);
  -webkit-text-fill-color: var(--text-color);
}

.character-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding-bottom: 15px;

  position: relative;
  display: inline-block;

  background-image: linear-gradient(
    90deg,
    #3f3f3f 0%,
    #c9c9c9 50%,
    #666666 90%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
}

.main-title-group {
  position: relative;
  margin-top: 15px;
}

.main-kanji {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  display: inline-block;
}

/* Kanji image - Image with Japanese text (Kanji) for the main title */
#kanji-image {
  max-width: 100%;
  margin-left: -10px;

  height: auto;
  display: block;

  animation: float-character 4s ease-in-out infinite;
}

.japanese-sub {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 0 8px var(--border-color);
}

/* Music player */
.music-player {
  display: flex;
  flex-direction: column;

  padding: 15px;
  margin-top: 25px;

  gap: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border-radius: 6px;
  border: 2px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
  min-height: 120px;
}

.music-player.is-playing {
  border-color: var(--accent-color);
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 65%;
}

.time-display {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: bold;
  color: var(--light-text-color);
}

.progress-container {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--border-color);
  position: relative;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), #ffffff);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-color);
}

.player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-btn {
  display: flex;
  font-family: 'Inter';
  background: transparent;
  text-transform: uppercase;
  align-items: flex-end;
  cursor: pointer;

  padding: 7px 24px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  gap: 5px;

  color: var(--text-color);
  border: 2px solid var(--border-color);
  transition: all 0.25s ease;
}

.play-btn:hover {
  background: #ffffff;
  color: var(--bg-color);
  transform: scale(1.03);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-label {
  font-size: 0.7rem;
  color: var(--light-text-color);
  font-family: monospace;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;

  background: linear-gradient(
    to right,
    var(--accent-color) 0%,
    var(--accent-color) var(--progress, 50%),
    #2a2a2a var(--progress, 50%),
    #2a2a2a 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  cursor: pointer;

  width: 16px;
  height: 16px;
  background: var(--accent-color);

  /* Custom shape for the thumb using clip-path (heart)*/
  clip-path: path(
    'M8,4.5 C7.2,1.8 3,1.8 3,5.5 C3,9 7.2,12.2 8,13.5 C8.8,12.2 13,9 13,5.5 C13,1.8 8.8,1.8 8,4.5 Z'
  );
  transition: background-color 0.15s ease;
}

.volume-slider::-moz-range-thumb {
  border: none;
  cursor: pointer;

  width: 16px;
  height: 16px;
  background: var(--accent-color);

  clip-path: path(
    'M8,4.5 C7.2,1.8 3,1.8 3,5.5 C3,9 7.2,12.2 8,13.5 C8.8,12.2 13,9 13,5.5 C13,1.8 8.8,1.8 8,4.5 Z'
  );
  transition: background-color 0.15s ease;
}

.left-footer {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      #3f3f3f 0%,
      #c9c9c9 50%,
      #666666 75%,
      #3f3f3f 85%
    )
    1;
  padding-top: 30px;
  padding-left: 20px;
}

.left-footer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;

  background: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}

.game-meta {
  color: var(--light-text-color);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.tag-pill {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);

  font-weight: bold;
  font-size: 0.6rem;
  padding: 0.5rem 1rem;
  letter-spacing: 2px;
  border-radius: 7px;
}

.tag-pill:hover {
  background: var(--bg-color);
  transform: scale(1.1);
}

/* Center panel - Character render, Tech overlay, Animation */
.center-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.art-window {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.glitch {
  position: absolute;
  bottom: 0;
  left: 45%;
  transform: translateX(-50%);
  z-index: 1;
  width: 95%;
  height: 95%;
}

.large-bg-kanji {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);

  z-index: 2;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark-accent-color);

  opacity: 0.3;
  /* Effect of blending with the background */
  mix-blend-mode: overlay;

  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.character-root {
  position: absolute;
  bottom: -2%;
  left: 25%;
  transform: translateX(-50%);
  z-index: 3;
  height: 90%;
  pointer-events: none;
}

.character-img {
  height: 100%;

  display: block;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 60px rgba(220, 38, 38, 0.12));
}

/* Right panel - Vertical text, Kanji, Subtitles, Footer stamp */
.right-panel {
  background: transparent;
  padding: 40px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: var(--text-color);
  position: relative;
  z-index: 15;
  background: linear-gradient(-90deg, rgba(6, 6, 8, 0.4) 0%, transparent 100%);
}

.pill-box {
  display: flex;
  font-family: 'Inter';
  background: transparent;
  text-transform: uppercase;

  padding: 7px 24px;
  font-size: 0.8rem;
  font-weight: 400;
  border-radius: 20px;
  letter-spacing: 0.2em;
  gap: 5px;

  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.vertical-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.v-kanji-title {
  writing-mode: vertical-rl;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--text-color);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.v-latin-sub {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.diamond {
  color: var(--accent-color);
  font-size: 0.7rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

.panel-footer-stamp {
  text-align: center;
}

.mini-japanese {
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--text-color);
  font-weight: bold;
  writing-mode: vertical-rl;
  margin-top: 8px;
}

/* Animations - Keyframes*/
@keyframes float-character {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
