/* Whenster marketing site — palette matches StartScene UITK (SK tokens). */
:root {
  --void: #0c0b14;
  --deep: #141220;
  --cream: #f0e8d8;
  --orange: #f06020;
  --gold: #f0c030;
  --muted: rgba(240, 232, 216, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--cream);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: #ff7028; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(240, 192, 48, 0.12);
}

.logo {
  font-family: "Permanent Marker", cursive;
  font-size: 1.75rem;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.nav a {
  margin-left: 1.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.is-active { color: var(--cream); }

.hero {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.ornament__line {
  width: 3.75rem;
  height: 2px;
  background: rgba(240, 96, 32, 0.53);
}
.ornament__diamond {
  width: 9px;
  height: 9px;
  background: var(--orange);
  transform: rotate(45deg);
}

.hero h1 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--orange);
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

.tagline {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(240, 96, 32, 0.45);
  background: rgba(240, 96, 32, 0.15);
  color: var(--cream);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: rgba(240, 96, 32, 0.28);
  border-color: rgba(240, 96, 32, 0.7);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(240, 192, 48, 0.25);
  margin-left: 0.75rem;
}
.btn--ghost:hover {
  border-color: rgba(240, 192, 48, 0.5);
  background: rgba(240, 192, 48, 0.06);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.feature {
  background: var(--deep);
  border: 2px solid rgba(240, 192, 48, 0.12);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--gold);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: rgba(240, 232, 216, 0.25);
  font-size: 0.8rem;
  border-top: 1px solid rgba(240, 192, 48, 0.08);
}

/* Play page — full viewport below slim toolbar */
html:has(body.play-page),
body.play-page {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

body.play-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.play-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--deep);
  border-bottom: 1px solid rgba(240, 192, 48, 0.12);
  font-size: 0.85rem;
}
.play-toolbar .hint { color: var(--muted); }

#unity-container {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--void);
}

#unity-container.unity-fullbleed {
  display: block;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--void);
}

#unity-canvas.unity-fullbleed {
  position: absolute;
  inset: 0;
}
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(22rem, 80vw);
  text-align: center;
}
#unity-progress-bar-empty {
  width: 100%;
  height: 6px;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: var(--orange);
  transition: width 0.1s;
}
#unity-warning {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  max-width: 90%;
  z-index: 2;
}
#unity-warning:empty { display: none; }
