dialog.gcr-welcome {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 90%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0 0 20px;
  overflow: auto;
  scrollbar-width: none;
  border: 2px solid rgb(44 157 241 / 45%);
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(40 40 40 / 97%), rgb(20 20 20 / 98%));
  color: #fff;
  text-align: center;
  font: 400 16px/1.6 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 20px 45px #0009, 0 0 25px #2c9df133;
}
dialog.gcr-welcome[open] {
  animation: gcr-popup-in .8s cubic-bezier(.175,.885,.32,1.275), gcr-popup-glow 3.5s ease-in-out infinite;
}
dialog.gcr-welcome::backdrop {
  background: rgb(0 0 0 / 35%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
dialog.gcr-welcome::-webkit-scrollbar { display: none; }
dialog.gcr-welcome *, dialog.gcr-welcome *::before, dialog.gcr-welcome *::after { box-sizing: border-box; }
dialog.gcr-welcome .gcr-welcome-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 230px);
  object-fit: contain;
  background: #141414;
  border-bottom: 2px solid #2c9df1;
  box-shadow: 0 8px 20px #2c9df12e;
}
dialog.gcr-welcome .gcr-welcome-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #55b5ff;
  border-radius: 50%;
  background: linear-gradient(135deg,#168de8,#0b78d1);
  color: #fff;
  box-shadow: 0 0 12px #087cdd59, inset 0 1px 0 #ffffff4d;
  cursor: pointer;
  transition: transform .35s;
}
dialog.gcr-welcome .gcr-welcome-close:hover { transform: rotate(90deg) scale(1.1); }
dialog.gcr-welcome .gcr-welcome-close svg { display: block; width: 18px; height: 18px; }
dialog.gcr-welcome .gcr-welcome-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
  padding: 20px;
}
dialog.gcr-welcome .gcr-welcome-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 12px;
  border: 2px solid #2c9df1;
  border-radius: 14px;
  color: #fff;
  font: 700 18px/1.3 "Segoe UI", Arial, sans-serif;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-shadow: 0 1px 2px #0007;
  transition: transform .35s, box-shadow .35s;
}
dialog.gcr-welcome .gcr-welcome-login {
  background: linear-gradient(180deg,#353535,#191919);
  box-shadow: 0 8px 0 #000, 0 16px 28px #0007, 0 0 18px #2c9df12e;
}
dialog.gcr-welcome .gcr-welcome-register {
  border-color: #9bd4ff;
  background: linear-gradient(135deg,#55b5ff,#087cdd,#168de8);
  color: #000b14;
  box-shadow: 0 8px 0 #0a579a, 0 18px 30px #087cdd47, 0 0 20px #2c9df138;
}
dialog.gcr-welcome .gcr-welcome-action:hover { transform: translateY(-4px); box-shadow: 0 12px 0 #084b85, 0 18px 30px #087cdd59; }
dialog.gcr-welcome .gcr-welcome-footer { position: relative; padding: 10px 14px 0; color: #b8dbfa; }
dialog.gcr-welcome .gcr-welcome-footer h2 { margin: 0; color: inherit; font: 400 13px/1.7 Georgia,serif; }
dialog.gcr-welcome .gcr-welcome-footer p { margin: 0; color: #55b5ff; font: 600 13px/1.7 Georgia,serif; text-shadow: 0 0 5px #408acb80; }
dialog.gcr-welcome .gcr-welcome-effects { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; pointer-events: none; z-index: 3; border: 1px solid #2c9df147; }
dialog.gcr-welcome .gcr-welcome-effects::before { content: ""; position: absolute; inset: -120%; background: linear-gradient(135deg,transparent 42%,#ffffff2e 49%,#ffffff73 50%,#0f87f047 52%,transparent 58%); animation: gcr-popup-sweep 5s linear infinite; }
dialog.gcr-welcome .gcr-welcome-effects i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle,#80bff7f2,#168de88c 60%,#0b78d114); box-shadow: 0 0 10px #2c9df1b3; animation: gcr-popup-particle 6s ease-in-out infinite; }
dialog.gcr-welcome .gcr-welcome-effects i:nth-child(1) { top: 15%; left: 12%; }
dialog.gcr-welcome .gcr-welcome-effects i:nth-child(2) { top: 35%; left: 88%; animation-delay: 1.5s; }
dialog.gcr-welcome .gcr-welcome-effects i:nth-child(3) { top: 65%; left: 18%; animation-delay: 3s; }
dialog.gcr-welcome .gcr-welcome-effects i:nth-child(4) { top: 25%; left: 75%; animation-delay: 4.5s; }
dialog.gcr-welcome .gcr-welcome-effects i:nth-child(5) { top: 80%; left: 60%; animation-delay: 6s; }
dialog.gcr-welcome :is(a,button):focus-visible { outline: 3px solid #8bd5ff; outline-offset: 3px; }
body.gcr-welcome-open { overflow: hidden; }
@keyframes gcr-popup-in { from { opacity: 0; transform: scale(.35) rotate(-10deg); } 60% { transform: scale(1.04) rotate(2deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes gcr-popup-glow { 0%,100% { box-shadow: 0 20px 45px #0009,0 0 18px #2c9df147,0 0 35px #087cdd2e; } 50% { box-shadow: 0 20px 45px #0009,0 0 35px #2c9df173,0 0 65px #087cdd52; } }
@keyframes gcr-popup-sweep { from { transform: translate(-100%,-100%) rotate(25deg); } to { transform: translate(100%,100%) rotate(25deg); } }
@keyframes gcr-popup-particle { from { opacity: 0; transform: translate(0,0) scale(.4); } 15%,85% { opacity: 1; } to { opacity: 0; transform: translate(40px,-120px) scale(1.25); } }
@media (max-width: 768px) {
  dialog.gcr-welcome .gcr-welcome-actions { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px; }
  dialog.gcr-welcome .gcr-welcome-action { min-height: 52px; }
  dialog.gcr-welcome .gcr-welcome-banner { max-height: calc(100dvh - 300px); }
}
@media (max-width: 480px) {
  dialog.gcr-welcome { width: 95%; max-width: 350px; }
  dialog.gcr-welcome .gcr-welcome-footer h2, dialog.gcr-welcome .gcr-welcome-footer p { font-size: 12px; }
  dialog.gcr-welcome .gcr-welcome-close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { dialog.gcr-welcome, dialog.gcr-welcome * , dialog.gcr-welcome *::before { animation: none !important; transition: none !important; } }
