/* ----------------------------------------------------------------------------------------------- */
/* -------------------------------------- Global Formatting -------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
html, body{
  width: 100%;
  height: 100%;
  background-color: var(--bg1);
  touch-action: manipulation; /* allows taps, blocks zoom/pan */
  -webkit-text-size-adjust: 100%;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: rgba(255,255,255,0.92);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea {
	border-radius: 0;
	padding: 0px;
	resize: none;
	border: 1px solid black;
}
input:focus, textarea:focus, select:focus{
	outline: none;
}
input:disabled {
	background-color: #FFFFFF;
	color: inherit;
	opacity: 1;
	-webkit-text-fill-color: inherit;
	cursor: not-allowed;
	border: 1px solid black;
}

.button{
  appearance: none;
  border: none;
  width: 100%;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  color: #030B18;
  background: #bfa276;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}
.button:active{ transform: translateY(0px); }
.button:disabled{ cursor: not-allowed; opacity: 1; filter: none; }

.button:disabled, .button.isDisabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(20%);
  transform: none !important; /* prevents any hover/tap lift */
}
.button:disabled {
  box-shadow: none;
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------- App Container Formatting ---------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
#mainContainer{
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
}
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

/* -------------------------------- Splash Overlay (Wake Lock) -------------------------------- */
.splashOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.splashOverlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.splashOverlay.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.splashCard {
  text-align: center;
  padding: 26px 22px 18px 22px;
  width: calc(100% - 60px);
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  background: #0a0a0a;
  box-shadow: 0 22px 80px rgba(0,0,0,0.65);
  transform: translateY(10px) scale(0.98);
  animation: splashCardIn 520ms ease forwards;
}

@keyframes splashCardIn {
  0% { transform: translateY(18px) scale(0.97); opacity: 0.2; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.splashLogo {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.65));
  animation: splashLogoPulse 2.2s ease-in-out infinite;
}

@keyframes splashLogoPulse {
  0%,100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

.splashTitle {
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.splashTitleName {
  display: block;
  font-size: 50px;
  line-height: 1.05;
}

.splashTap {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  letter-spacing: 0.5px;
  padding-top: 4px;
  animation: splashTapBlink 1.4s ease-in-out infinite;
}

@keyframes splashTapBlink {
  0%,100% { opacity: 0.55; }
  50% { opacity: 1; }
}


/* ----------------------------------------------------------------------------------------------- */
/* -------------------------------------- Global Ambience ---------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
:root{
  --bg0:#05060a;
  --bg1:#0E131D;
  --gold: rgba(191,162,118,0.14);
  --gold2: rgba(201,171,120,0.22);
}

html{
  color-scheme: dark;
  background-color: var(--bg1);
}

html, body{
  background-color: var(--bg1);
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(191,162,118,0.10), transparent 60%),
    radial-gradient(900px 600px at 82% 70%, rgba(68,132,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  position: relative;
  overflow: hidden;
}

body::before{
  content:'';
  position: fixed;
  inset: -20vh -20vw;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(900px 680px at 20% 30%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(900px 680px at 80% 60%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(1200px 900px at 50% 50%, rgba(191,162,118,0.06), transparent 65%);
  filter: blur(18px);
  animation: fogDrift 16s ease-in-out infinite alternate;
  z-index: 0;
}

body::after{
  content:'';
  position: fixed;
  inset: -30vh -30vw;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(600px 420px at 50% 40%, rgba(201,171,120,0.16), transparent 58%),
    radial-gradient(700px 520px at 55% 60%, rgba(201,171,120,0.10), transparent 62%);
  filter: blur(24px);
  animation: sheenSpin 26s linear infinite;
  transform-origin: 50% 50%;
  z-index: 0;
}

@keyframes fogDrift{
  0%{ transform: translate3d(-2%, -1%, 0) scale(1.03); }
  100%{ transform: translate3d(2%, 1%, 0) scale(1.05); }
}

@keyframes sheenSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Keep app content above ambience */
#mainContainer{
  position: relative;
  z-index: 1;
}



/* --- Override: remove decorative tints to keep background clean and dark --- */
body::before, body::after{
  content: none !important;
  background: none !important;
  animation: none !important;
  opacity: 0 !important;
}
