/* GLOBAL LOCKDOWN */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    font-family: Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    touch-action: none;
    overscroll-behavior: none;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
#unity-container { position: fixed; width: 100%; height: 100%; top: 0; left: 0; display: flex; justify-content: center; align-items: center; background: transparent; overflow: hidden; z-index: 5; }
#unity-canvas { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; position: fixed; top: 0; left: 0; background: transparent; display: none; touch-action: none; }
 
#background-layer {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    background-color: #222;
    background-image: url('Images/background1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: translateZ(0) scale(1.02);
    will-change: transform;
    filter: brightness(0.9);
    pointer-events: none;
}
#loading-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: opacity 1s ease-out;
    overflow: hidden;
    cursor: default; /* FIXED: Was 'crosshair' previously */
}
#loading-screen.hidden { opacity: 0; pointer-events: none; display: none; }

/* --- NEW WRAPPER: Centers the button and loading items together --- */
#action-container { 
    position: absolute; 
    top: 48%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    max-width: 400px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    z-index: 10; 
}

/* LOADING ELEMENTS - Now relative to the wrapper so they take the button's exact spot */
#update-status-text { position: relative; font-size: 18px; color: yellow; display: none; width: 100%; text-align: center; margin-bottom: 5px; }
#status-text { position: relative; font-size: 18px; display: none; width: 100%; text-align: center; margin-bottom: 10px; }
#progress-bar-container { position: relative; width: 80%; height: 20px; background: #333; border: 2px solid #fff; border-radius: 5px; overflow: hidden; display: none; }
#progress-bar { width: 0%; height: 100%; background: #fff; transition: width 0.3s ease; }
#error-text { position: relative; font-size: 16px; color: #ff5555; display: none; width: 100%; text-align: center; margin-top: 10px; }

#start-button { 
    position: relative; 
    padding: 15px 30px; font-size: 20px; color: #fff; background: #444; border: 2px solid #fff; border-radius: 5px; cursor: pointer; transition: background 0.3s ease; white-space: nowrap; 
    animation: scalePulse 0.6s ease-in-out infinite; 
}
#start-button:hover { background: #666; }

@keyframes scalePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes gradientLoop { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
 
#copyright { position: absolute; bottom: 10px; color: #fff; opacity: 0.5; z-index: 10; white-space: nowrap; text-align: center; width: 100%; }
#copyright::before { content: ''; display: block; width: 90%; height: 1px; background: rgba(255, 255, 255, 0.3); margin: 0 auto 5px; }
 
#legal-footer {
    position: absolute;
    bottom: 35px;
    width: 100%;
    text-align: center;
    z-index: 10;
    font-size: 14px;
    color: #fff;
    pointer-events: auto;
}
#legal-footer a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    margin: 0 8px;
    transition: opacity 0.2s, text-decoration 0.2s;
    cursor: pointer;
}
#legal-footer a:hover { opacity: 1; text-decoration: underline; }
#legal-footer .separator { opacity: 0.5; }
input, textarea { position: fixed; bottom: 0; width: 100%; max-height: 20px; z-index: 1000; background: rgba(0, 0, 0, 0.8); color: #fff; border: none; padding: 10px; font-size: 16px; outline: none; opacity: 0; pointer-events: auto; user-select: text; -webkit-user-select: text; }
input:focus, textarea:focus { opacity: 1; }
h1 { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); color: #fff; font-size: 24px; z-index: 10; text-align: center; margin: 0; }

@font-face { font-family: 'Fredoka'; src: url("Fonts/Fredoka-VariableFont_wdth,wght.ttf"); font-weight: 650; }
.curved-text { display: flex; justify-content: center; align-items: center; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); z-index: 10; pointer-events: none; }
.curved-text .letter-wrapper { display: inline-block; animation: waveSequence 3.4s infinite; }
.curved-text span {
    font-family: 'Fredoka', sans-serif;
    font-size: 190px;
    font-weight: 1500;
    color: #2ae7f5;
    display: inline-block;
    transform-origin: center;
    position: relative;
    line-height: 1;
}
@keyframes wave { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }
@keyframes scaleDot { 0%, 41.18% { transform: scale(1); } 44.12% { transform: scale(1.1); } 47.06% { transform: scale(0.7); } 50% { transform: scale(1.1); } 52.94%, 100% { transform: scale(1); } }
@keyframes waveSequence { 0%, 26.47% { transform: translateY(0); } 13.24% { transform: translateY(-15px); } 26.48%, 41.18% { transform: translateY(0); } 41.19%, 100% { transform: translateY(0); } }
.curved-text .letter-wrapper:nth-child(1) { animation-delay: 0s; }
.curved-text .letter-wrapper:nth-child(2) { animation-delay: 0.1s; }
.curved-text .letter-wrapper:nth-child(3) { animation-delay: 0.2s; }
.curved-text .letter-wrapper:nth-child(4) { animation-delay: 0.3s; }
.curved-text .letter-wrapper:nth-child(5) { animation-delay: 0.4s; }
.curved-text .letter-wrapper:nth-child(6) { animation-delay: 0.5s; }
.curved-text .letter-wrapper:nth-child(7) { animation-delay: 0.6s; }
.curved-text .letter-wrapper:nth-child(8) { animation-delay: 0.7s; }
.curved-text .letter-wrapper:nth-child(6) span { animation: scaleDot 3.4s infinite; }
.curved-text span::before {
    content: attr(data-text);
    position: absolute;
    color: #2ae7f5;
    z-index: 1;
    top: 0;
    left: 0;
    transform: translateY(0);
}
.curved-text span::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    left: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    top: 0;
    transform: translateY(0);
}

#available-on-img {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 310px;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: auto;
}

@media (min-width: 768px) and (orientation: landscape) {
  #copyright { font-size: 12px; }
  #copyright::before { width: 30%; }
  #legal-footer { font-size: 14px; bottom: 35px; }
  #action-container { top: 50%; } 
  #start-button { padding: 12px 24px; font-size: 16px; }
  .curved-text span { font-size: 150px; }
}
@media (max-width: 1200px) and (orientation: landscape) {
  #copyright { font-size: 10px; }
  #copyright::before { width: 40%; }
  #legal-footer { font-size: 11px; bottom: 30px; }
  #action-container { top: 45%; } 
  #start-button { padding: 8px 16px; font-size: 12px; }
  .curved-text span { font-size: 75px; }
  .curved-text { top: 7%; }
  #available-on-img { width: 50%; max-width: 200px; bottom: 60px; }
}
@media (max-width: 767px) and (orientation: portrait) {
  #copyright { font-size: 10px; }
  #copyright::before { width: 60%; }
  #legal-footer { font-size: 10px; bottom: 30px; }
  #action-container { top: 40%; } 
  #start-button { padding: 10px 20px; font-size: 14px; }
  .curved-text span { font-size: 90px; }
  #available-on-img { width: 60%; max-width: 350px; bottom: 60px; }
}
@media (min-width: 1024px) {
    #background-layer {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

/* SEO CONTENT HIDDEN FROM VIEW BUT VISIBLE TO CRAWLERS */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
