body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: whitesmoke }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 154px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }


/* Club entrance. Unity's template selectors and substitutions above are retained. */
:root { color-scheme: dark; --club-ink: #0c0812; --club-pink: #ff66b0; --club-white: #fff4fc; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--club-ink); font-family: "Segoe UI", Arial, sans-serif; }
#unity-canvas { display: block; background-color: var(--club-ink); }
#unity-loading-bar { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; z-index: 10; overflow: hidden; background: #0c0812; color: var(--club-white); }
.loading-atmosphere { position: absolute; inset: -15%; pointer-events: none; background: radial-gradient(ellipse at 18% 40%, #6c1b553b, transparent 48%), radial-gradient(ellipse at 85% 65%, #6636b94a, transparent 45%), radial-gradient(ellipse at 50% 110%, #ba306929, transparent 55%); animation: atmosphere 14s ease-in-out infinite alternate; }
#unity-loading-bar::after { content: ""; position: absolute; inset: 18px; border: 1px solid #ffffff0c; border-radius: 12px; pointer-events: none; }
.loading-topline { position: absolute; top: max(40px, env(safe-area-inset-top)); left: 48px; right: 48px; display: flex; justify-content: space-between; gap: 24px; color: #a994b5; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; }
.loading-topline span:first-child { color: #f7b7d7; }
.loading-content { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: min(680px, calc(100% - 64px)); text-align: center; }
#unity-logo { width: 80px; height: 80px; margin: 0 auto 24px; background-size: contain; filter: drop-shadow(0 0 24px #ef5abb35); }
.loading-eyebrow { margin: 0 0 16px; font-size: 10px; font-weight: 600; letter-spacing: 0.4em; color: #e6a8cb; }
.loading-title { margin: 0; font-size: clamp(32px, 6vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: -0.055em; overflow-wrap: anywhere; text-wrap: balance; }
.loading-subtitle { margin: 20px 0 48px; color: #bfadc9; font-size: clamp(14px, 2vw, 18px); font-weight: 400; letter-spacing: 0.02em; }
.loading-meter { width: min(360px, 100%); margin: auto; }
.loading-status { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-height: 36px; margin-bottom: 13px; text-align: left; font-size: 12px; color: #c9b8d2; }
#loading-phrase { transition: opacity 220ms ease, transform 220ms ease; }
#loading-phrase.is-changing { opacity: 0; transform: translateY(3px); }
#loading-percentage { color: #ffe8f6; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
#unity-progress-bar-empty { width: 100%; height: 4px; margin: 0; border-radius: 8px; background: #ffffff14; }
#unity-progress-bar-full { height: 100%; margin: 0; border-radius: inherit; background: linear-gradient(90deg, #ad76ff, #ed6aba, #ffc3d9); box-shadow: 0 0 16px #eb62c960; transition: width 180ms ease; }
.loading-note { margin: 26px 0 0; color: #9f8caa; font-size: 11px; letter-spacing: 0.025em; }
.loading-bottomline { position: absolute; bottom: max(42px, env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 13px; font-size: 9px; font-weight: 600; letter-spacing: 0.25em; color: #aa8eb9; }
.loading-equalizer { display: flex; align-items: center; gap: 3px; height: 15px; }
.loading-equalizer i { width: 2px; height: 12px; background: #de8bc4; border-radius: 2px; animation: pulse-bar 1.4s ease-in-out infinite alternate; }
.loading-equalizer i:nth-child(2) { animation-delay: -0.6s; height: 7px; }
.loading-equalizer i:nth-child(3) { animation-delay: -1s; height: 15px; }
.loading-equalizer i:nth-child(4) { animation-delay: -0.3s; height: 9px; }
.loading-equalizer i:nth-child(5) { animation-delay: -0.8s; height: 5px; }
#unity-warning { z-index: 20; max-width: min(600px, 85%); border-radius: 10px; overflow-wrap: anywhere; box-shadow: 0 12px 36px #0006; font-size: 13px; }
#unity-footer { color: #c9b8d2; background: var(--club-ink); }
#unity-fullscreen-button { border-radius: 8px; transition: filter 160ms; }
#unity-fullscreen-button:hover { filter: brightness(1.25); }
.loading-failed .loading-equalizer i { animation: none; }
.loading-failed .loading-status { justify-content: center; text-align: center; }
.loading-failed #loading-phrase { width: 100%; }
.loading-failed #loading-percentage { display: none; }
@keyframes atmosphere { to { transform: translate(2%, -2%) scale(1.08); opacity: 0.7; } }
@keyframes pulse-bar { from { transform: scaleY(0.35); opacity: 0.5; } to { transform: scaleY(1); opacity: 1; } }
@media (max-width: 600px) {
  .loading-topline { left: 30px; right: 30px; top: max(30px, env(safe-area-inset-top)); }
  .loading-topline span:last-child { display: none; }
  .loading-content { width: calc(100% - 64px); }
  #unity-logo { width: 64px; height: 64px; }
  .loading-subtitle { margin-bottom: 30px; }
  .loading-bottomline { bottom: max(30px, env(safe-area-inset-bottom)); }
}
@media (max-height: 550px) {
  #unity-logo { width: 40px; height: 40px; margin-bottom: 10px; }
  .loading-topline, .loading-note { display: none; }
  .loading-title { font-size: 32px; }
  .loading-eyebrow { margin-bottom: 8px; }
  .loading-subtitle { margin: 10px 0 16px; }
  .loading-bottomline { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-atmosphere, .loading-equalizer i { animation: none; }
  #loading-phrase, #unity-progress-bar-full { transition: none; }
  #loading-phrase.is-changing { opacity: 1; transform: none; }
}
