body.trove-plaque-mode {
  min-height: 100dvh;
  height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: black;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  user-select: auto !important;
  -webkit-tap-highlight-color: red !important;
  -webkit-touch-callout:unset !important;
  position: relative;
  overflow: hidden;
}

.trove-plaque-bg {
  display: none;
}

body.trove-plaque-mode .trove-plaque-bg {
  position: absolute;
  display: block;  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(transparent, transparent 45%, rgb(0 0 0 / 40%) 80%, rgb(0 0 0 / 40%) 100%),
                    radial-gradient(circle at top, #3730a3 0%, #111827 80%);
  pointer-events: none;
  z-index: 0;
  animation: plaque-bg-appear 1600ms linear;
  animation-fill-mode: both;
}

body.trove-plaque-mode .trove-ripple-1,
body.trove-plaque-mode .trove-ripple-2,
body.trove-plaque-mode .trove-ripple-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100dvw 100dvh;
  background-position: center bottom;
  background-repeat: no-repeat;
  mix-blend-mode:soft-light;
  pointer-events: none;
}

body.trove-plaque-mode .trove-ripple-1 {
  background-image: url('/assets/ripples1.webp');
  animation: ripple-1 1.4s ease-in infinite;
  z-index: 1;
}

body.trove-plaque-mode .trove-ripple-2 {
  background-image: url('/assets/ripples2.webp');
  animation: ripple-2 1.4s ease-in infinite;
  z-index: 2;
}

@keyframes ripple-1 {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.2; }
}

@keyframes ripple-2 {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}


.hidden {
  display: none !important;
}

.trove-plaque {
  top: 32px;
  position: absolute;
  width: min(520px, 92vw);
  padding: 32px 28px;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  background: rgb(17 24 39 / 72%);
  box-shadow: 0 15px 25px rgb(15 23 42 / 90%);
  border: 1px rgb(127 127 255 / 10%) solid;
  text-align: center;
  -webkit-box-reflect: below 40px radial-gradient(ellipse at 50% 125%, rgb(0 0 0 / 50%) 0%, transparent 90%);
  z-index: 20;
  /*
  animation: plaque-appear 499ms ease-in;
  animation-fill-mode: both;
  */
}

.trove-plaque::after {
  content:" ";
  top:105%;
  left:0;
  backdrop-filter: blur(1px);
  width: 100%;
  height: 110%;
  display: block;
  position: absolute;
  z-index: 5; 
}

@keyframes plaque-appear {
  0% {
    transform: perspective(500px) scale3d(0.01, 0.01, 0.01) rotate3d(0.3, 0.3, 0.3, 45deg);
    transform-origin: 40% 100%;
    opacity: 0;
  }

  60% {
    transform: perspective(500px) rotate3d(-1, 0.3, 0.3, -30deg);
    opacity: 1;
  }

  85% {
    transform: perspective(500px) scale3d(1.5, 1.5, 1.5) rotate3d(1, 0.3, 1, 15deg);
  }

  100% {
    transform: perspective(500px) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg);
    transform-origin: 40% 100%;
  }
}


@keyframes plaque-bg-appear {
  from {
    opacity: 0;
    filter: contrast(1.3) brightness(3);
  }

  to {
    opacity: 1;
    filter: contrast(1) brightness(1);
  }
}

.tag-line {
  margin-bottom:8px;
  color: rgb(129 140 248 / 90%);
}

.trove-plaque.hidden {
  display: none;
}

.trove-plaque h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.trove-plaque p {
  margin: 0 auto 24px;
  max-width: 420px;
  line-height: 1.6;
  color: rgb(255 255 255 / 80%);
}

.trove-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.google-signin-container {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

#trove-signin-btn.hidden {
  display: none;
}

.trove-primary,
.trove-secondary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.trove-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 6px 30px rgb(99 102 241 / 35%);
}

.trove-primary:disabled,
.trove-secondary:disabled,
.trove-button-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.trove-primary:not(:disabled, .trove-button-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 38px rgb(99 102 241 / 45%);
}

.trove-secondary {
  background: rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 92%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.trove-secondary:not(:disabled, .trove-button-disabled):hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}

#trove-status {
  min-height: 44px;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 80%);
  font-weight: 400;
  margin-bottom: 16px;
}

.suggestedUsername a:first-of-type {
  text-decoration: underline;
  font-weight: 800;
  color: white;
}

.suggestedUsername a:nth-child(2) {
  font-weight: 800;
  font-size: 28px;
  vertical-align: -3px;
  color: rgb(129 140 248 / 100%);
}

.suggestedUsername a:nth-child(2):hover,
.suggestedUsername a:nth-child(2):active {
  color: white;
}

.suggestedUsername a {
  cursor: pointer;
}

.trove-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.trove-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.trove-field-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(255 255 255 / 78%);
}

#trove-username {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #fff;
  background: rgb(17 24 39 / 65%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  display: block;  
  /*
  animation: username-fade 1.0s ease-in;
  */
}

@keyframes username-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#trove-username:focus {
  outline: none;
  border-color: rgb(129 140 248 / 90%);
  box-shadow: 0 0 0 2px rgb(129 140 248 / 35%);
  background: rgb(30 41 59 / 80%);
}

#trove-username::placeholder {
  color: rgb(255 255 255 / 45%);
}

.trove-username-display {
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: rgb(79 70 229 / 45%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.trove-form-submit {
  display: none;
}

#trove-support {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgb(236 72 153 / 95%);
}

#trove-support.hidden {
  display: none;
}

@media (width <= 520px) {
  .trove-plaque {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .trove-plaque h1 {
    font-size: 1.6rem;
  }

  .trove-primary,
  .trove-secondary {
    font-size: 1rem;
  }
}
