:root {
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-stroke: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  background: #f5f6f7;
}

#welcome-container {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  z-index: 1;
}

.brand {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 1px;
  text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
}

.tagline {
  margin: 0 0 6px;
  color: #555;
  font-size: clamp(14px, 2.4vw, 18px);
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.icon-btn {
  all: unset;
  display: inline-block;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  will-change: transform;
  transform: translateZ(0);
}

.icon-btn img {
  display: block;
  width: 128px;
  height: 128px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.icon-btn:active {
  transform: scale(0.98);
}

.wiki-btn-corner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wiki-btn-corner:hover,
.wiki-btn-corner:focus-visible {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wiki-btn-corner:active {
  transform: scale(0.98);
}

#transition-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 1s ease;
  will-change: opacity;
}

#transition-overlay.fade-out {
  opacity: 1;
}

#loading-bar-container {
  margin-top: 10px;
}

.about-btn-corner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.about-btn-corner:hover,
.about-btn-corner:focus-visible {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.about-btn-corner:active {
  transform: scale(0.98);
}
