/* ================================================================
   Vaultria — Japanese Theme
   Kyoto evening · torii gates · temple architecture · washi paper
   ================================================================ */

[data-lang="japanese"] {
  --bg-base:        #070510;
  --bg-surface:     #0e0918;
  --bg-panel:       rgba(8, 5, 16, 0.95);
  --bg-glass:       rgba(235, 170, 195, 0.04);
  --bg-hover:       rgba(235, 170, 195, 0.075);
  --bg-active:      rgba(235, 170, 195, 0.12);
  --border-subtle:  rgba(210, 150, 178, 0.08);
  --border-normal:  rgba(210, 150, 178, 0.17);
  --border-strong:  rgba(210, 150, 178, 0.30);
  --text-primary:   rgba(255, 242, 248, 0.95);
  --text-secondary: rgba(240, 200, 220, 0.60);
  --text-muted:     rgba(215, 170, 198, 0.32);
  --accent-primary: #e8a0b8;
  --accent-glow:    rgba(232, 160, 184, 0.22);
  --accent-dim:     rgba(232, 160, 184, 0.09);
  --accent-2:       #c8506c;
  --success:        #7dcfa0;
  --success-glow:   rgba(125, 207, 160, 0.14);
  --error:          #f4706a;
  --error-glow:     rgba(244, 112, 106, 0.14);
  --scrollbar-thumb: rgba(232, 160, 184, 0.16);
  --font-display: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

[data-lang="japanese"] .env-canvas {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(150,40,80,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60%  45% at 82% 18%,  rgba(180,80,120,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 40%  35% at 12% 78%,  rgba(80,20,50,0.10) 0%, transparent 55%),
    linear-gradient(170deg, #070510 0%, #0f0918 50%, #0b0814 100%);
}

[data-lang="japanese"] .env-canvas::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../../assets/svg/bg-japanese.svg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  mix-blend-mode: lighten;
}

/* Washi paper texture + vignette */
[data-lang="japanese"] .env-canvas::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(5, 2, 10, 0.75) 100%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(5, 2, 10, 0.8) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

[data-lang="japanese"] #petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

[data-lang="japanese"] .sakura-petal {
  position: absolute;
  width: 6px;
  height: 5px;
  background: rgba(255,185,210,0.50);
  border-radius: 50% 0 50% 0;
  animation: petalFall linear infinite;
  box-shadow: 0 0 4px rgba(255,180,200,0.3);
}

@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg) translateX(0px); opacity: 0; }
  8%   { opacity: 0.75; }
  85%  { opacity: 0.45; }
  100% { transform: translateY(110vh) rotate(520deg) translateX(45px); opacity: 0; }
}

/* Panel gets a subtle washi warmth */
[data-lang="japanese"] .left-panel,
[data-lang="japanese"] .right-panel {
  background: rgba(8, 5, 17, 0.96);
  border-color: rgba(200, 140, 168, 0.10);
}

/* Correct answer bloom */
[data-lang="japanese"] .env-canvas.glow-correct::after {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,175,200,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(5, 2, 10, 0.75) 100%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(5, 2, 10, 0.8) 0%, transparent 60%);
  animation: correctPulse 1.4s ease forwards;
}

[data-lang="japanese"] .env-canvas.glow-error::after {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(160,25,55,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(5, 2, 10, 0.75) 100%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(5, 2, 10, 0.8) 0%, transparent 60%);
  animation: errorDim 0.8s ease forwards;
}

@keyframes correctPulse { 0%{opacity:0} 20%{opacity:1} 100%{opacity:0} }
@keyframes errorDim     { 0%{opacity:0} 15%{opacity:1} 100%{opacity:0} }
