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

:root {
  --bg: #0b0f17;
  --surface: rgba(17, 24, 39, 0.74);
  --surface-2: rgba(255, 255, 255, 0.06);
  --text: #edf2f7;
  --muted: #b9c1ce;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button {
  font: inherit;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.background-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.background-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.18), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(192, 132, 252, 0.16), transparent 30%),
    linear-gradient(180deg, #0d1320 0%, #0b0f17 100%);
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.45));
}

.background-accent {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.22;
}

.background-accent-1 {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -80px;
  background: var(--accent);
}

.background-accent-2 {
  width: 280px;
  height: 280px;
  left: -60px;
  top: -60px;
  background: var(--accent-2);
}

.system-bar {
  position: absolute;
  inset: 18px 24px auto 24px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.brand-button,
.system-action {
  pointer-events: auto;
  border: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.55);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111b;
  font-weight: 700;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.system-actions {
  display: flex;
  gap: 10px;
}

.system-action {
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.content-panel {
  position: absolute;
  inset: 110px auto 150px 64px;
  width: min(42vw, 620px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.content-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.02;
  max-width: 11ch;
}

.content-text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.visual-slot {
  margin-top: 12px;
  max-width: 560px;
}

.visual-slot-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.visual-slot-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
}

.visual-slot-body {
  color: var(--muted);
  line-height: 1.7;
}

.character-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.character-stage {
  position: absolute;
  width: 100vw;
  height: 100vh;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.character-stage.position-right { transform: translateX(0); }
.character-stage.position-left { transform: translateX(-8vw); }
.character-stage.position-center { transform: translateX(-2vw); }

.character-video,
.character-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* veya contain */
}

.character-shadow {
  position: absolute;
  right: 8vw;
  bottom: 4vh;
  width: 32vw;
  height: 8vh;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,0,0,0.45), transparent 70%);
  filter: blur(16px);
}

.character-fallback {
  display: flex;
  align-items: end;
  justify-content: center;
}

.character-silhouette {
  width: min(28vw, 380px);
  height: min(70vh, 640px);
  border-radius: 180px 180px 36px 36px;
  background: linear-gradient(180deg, rgba(125,211,252,0.34), rgba(192,132,252,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  position: relative;
}

.character-silhouette::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 18%;
  border-radius: 50%;
  left: 29%;
  top: 6%;
  background: rgba(255,255,255,0.12);
}

.character-label {
  position: absolute;
  bottom: 10%;
  right: 18%;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.dialog-panel {
  position: absolute;
  right: 36px;
  bottom: 32px;
  z-index: 24;
  width: min(36vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dialog-bubble {
  border: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.dialog-speaker {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.dialog-text {
  color: var(--text);
  line-height: 1.7;
}

.choice-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
}

.is-hidden {
  display: none !important;
}
