﻿:root {
  --bg-left: #060d36;
  --bg-mid: #150d3a;
  --bg-right: #3c1556;
  --text: #f3f2ff;
  --muted: #bdc3ea;
  --accent-blue: #4f6df2;
  --accent-violet: #7a67ea;
  --accent-pink: #b566d8;
  --ac2-host-frame-width: 1280px;
  --ac2-host-frame-height: 780px;
  --ac2-host-frame-radius: 28px;
  --ac2-host-frame-mobile-radius: 22px;
  --ac2-host-frame-padding-top: 32px;
  --ac2-host-frame-padding-right: 32px;
  --ac2-host-frame-padding-bottom: 32px;
  --ac2-host-frame-padding-left: 32px;
  --ac2-host-frame-mobile-padding-top: 16px;
  --ac2-host-frame-mobile-padding-right: 0px;
  --ac2-host-frame-mobile-padding-bottom: 16px;
  --ac2-host-frame-mobile-padding-left: 0px;
  --unity-reveal-x: 50vw;
  --unity-reveal-y: 50vh;
  --unity-reveal-start-radius: 0px;
  --unity-reveal-end-radius: 150vmax;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  overflow: hidden;
  overflow-x: hidden;
  background:
    radial-gradient(40vw 40vw at 76% 44%, rgba(255, 130, 80, 0.18), transparent 64%),
    radial-gradient(54vw 54vw at 98% 12%, rgba(200, 92, 255, 0.24), transparent 72%),
    linear-gradient(95deg, var(--bg-left) 0%, var(--bg-mid) 42%, var(--bg-right) 100%);
}

body[data-ac2-frame-placement="center"] {
  --ac2-host-frame-justify: center;
  --ac2-host-frame-align: center;
}

body[data-ac2-frame-placement="right"] {
  --ac2-host-frame-justify: end;
  --ac2-host-frame-align: center;
}

body[data-ac2-frame-placement="left"] {
  --ac2-host-frame-justify: start;
  --ac2-host-frame-align: center;
}

body[data-ac2-frame-placement="top"] {
  --ac2-host-frame-justify: center;
  --ac2-host-frame-align: start;
}

body[data-ac2-frame-placement="bottom"] {
  --ac2-host-frame-justify: center;
  --ac2-host-frame-align: end;
}

body[data-ac2-frame-placement="fullscreen"] {
  --ac2-host-frame-width: 100vw;
  --ac2-host-frame-height: 100vh;
  --ac2-host-frame-radius: 0px;
  --ac2-host-frame-mobile-radius: 0px;
  --ac2-host-frame-padding-top: 0px;
  --ac2-host-frame-padding-right: 0px;
  --ac2-host-frame-padding-bottom: 0px;
  --ac2-host-frame-padding-left: 0px;
  --ac2-host-frame-mobile-padding-top: 0px;
  --ac2-host-frame-mobile-padding-right: 0px;
  --ac2-host-frame-mobile-padding-bottom: 0px;
  --ac2-host-frame-mobile-padding-left: 0px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.22) 100%);
}

.ac2-host-frame {
  position: relative;
  min-height: 100vh;
}

.ac2-host-frame-viewport {
  position: relative;
  min-height: 100vh;
}

body.is-embedded .ac2-host-frame {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  pointer-events: none;
}

body.is-embedded .ac2-host-frame-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: auto;
  isolation: isolate;
}

body.is-embedded {
  background: transparent;
}

body.is-embedded::after {
  content: none;
}

body.is-embedded .ac2-host-frame-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 76% 44%, rgba(255, 130, 80, 0.18), transparent 64%),
    radial-gradient(54vw 54vw at 98% 12%, rgba(200, 92, 255, 0.24), transparent 72%),
    linear-gradient(95deg, var(--bg-left) 0%, var(--bg-mid) 42%, var(--bg-right) 100%);
}

body.is-embedded .ac2-host-frame-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.22) 100%);
}

body.is-embedded .landing-shell,
body.is-embedded .loading-overlay,
body.is-embedded #container {
  position: absolute;
  inset: 0;
  min-height: 0;
}

body.is-embedded .landing-shell {
  z-index: 5;
}

body.is-embedded .landing {
  width: 100%;
  min-height: 100%;
}

body.is-embedded #player-version {
  position: absolute;
}

.creator-embed-close {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 120;
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent url("./images/Icon_close.svg") center / 36px 36px no-repeat;
  cursor: pointer;
}

body.is-embedded .creator-embed-close {
  display: inline-flex;
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 7, 20, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.confirm-panel {
  width: min(420px, calc(100vw - 2rem));
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(90deg, #060d36 0%, #150d3a 50%, #3c1556 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
}

.confirm-panel-header,
.confirm-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.confirm-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.confirm-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.confirm-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.confirm-progress-track {
  position: relative;
  height: 10px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.confirm-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(102deg, var(--accent-blue), var(--accent-violet) 50%, var(--accent-pink));
  transition: width 0.18s ease;
}

.confirm-progress-meta {
  margin-top: 0.9rem;
}

.confirm-progress-meta span:last-child {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.confirm-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.confirm-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.confirm-action-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  filter: brightness(1.05);
}

.confirm-action-button[hidden] {
  display: none;
}

.landing-shell {
  position: absolute;
  inset: 0;
  z-index: 5;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#container {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #000;
  clip-path: circle(var(--unity-reveal-start-radius) at var(--unity-reveal-x) var(--unity-reveal-y));
  -webkit-clip-path: circle(var(--unity-reveal-start-radius) at var(--unity-reveal-x) var(--unity-reveal-y));
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    clip-path 1s cubic-bezier(0.25, 0.9, 0.35, 1),
    -webkit-clip-path 1s cubic-bezier(0.25, 0.9, 0.35, 1);
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#player-version {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 30;
  font-size: 10px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  display: none;
  pointer-events: none;
  font-family: "Roboto", sans-serif;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#caption-wrapper {
  position: relative;
  width: 100%;
  pointer-events: none;
}

#loading-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  min-height: 0;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#loading-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  border-radius: 0;
  overflow: visible;
}
#loading-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(102deg, var(--accent-blue), var(--accent-violet) 50%, var(--accent-pink));
  border-radius: 0;
  transition: width 0.3s ease;
  position: relative;
  z-index: 2;
}

#loading-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 12%, rgba(224, 146, 255, 0.9) 34%, rgba(122, 103, 234, 0.55) 58%, rgba(79, 109, 242, 0.22) 74%, rgba(79, 109, 242, 0) 100%);
  filter: blur(4px) brightness(1.14);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#loading-bar[style*="width: 0"]::after,
#loading-bar[style*="width: 0%"]::after {
  opacity: 0;
}

#loading-bar:not([style*="width: 0"])::after,
#loading-bar:not([style*="width: 0%"])::after {
  opacity: 1;
}

body.show-loading-overlay .loading-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.show-loading-overlay #loading-status,
body.enter-unity #loading-status {
  opacity: 1;
  visibility: visible;
}

body.enter-unity .landing-shell,
body.enter-unity #player-version {
  pointer-events: none;
}

body.enter-unity .loading-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.enter-unity #container {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 40;
  clip-path: circle(var(--unity-reveal-end-radius) at var(--unity-reveal-x) var(--unity-reveal-y));
  -webkit-clip-path: circle(var(--unity-reveal-end-radius) at var(--unity-reveal-x) var(--unity-reveal-y));
}

body.unity-visible .landing-shell,
body.unity-visible #player-version {
  opacity: 0;
  visibility: hidden;
}

body.unity-visible #container {
  clip-path: none;
  -webkit-clip-path: none;
}

@media (max-width: 960px) {
  body.is-embedded .ac2-host-frame {
    padding: 0;
  }

  body.is-embedded .ac2-host-frame-viewport {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .creator-embed-close {
    top: 12px;
    right: 12px;
  }

  #loading-status {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  #loading-container {
    width: 100%;
  }
}



