@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Baloo+2:wght@600;700;800&display=swap');

:root {
  --gold: #ffd166;
  --gold-deep: #d4a017;
  --magenta: #ff2e88;
  --purple: #6a1b9a;
  --teal: #06d6a0;
  --ink: #14082b;
  --ink-2: #1f1140;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 209, 102, 0.35);
  --text: #fff6e6;
  --text-dim: #c7b8ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% 0%, #3a1466 0%, #1a0838 45%, #0a041c 100%);
  min-height: 100vh;
  overflow-x: hidden;
  /* Kiosk tablet: no accidental text selection / callouts from stray touches. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bg-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(2px 2px at 10% 20%, rgba(255, 209, 102, 0.8), transparent),
    radial-gradient(2px 2px at 80% 15%, rgba(255, 46, 136, 0.7), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(6, 214, 160, 0.7), transparent),
    radial-gradient(2px 2px at 65% 60%, rgba(255, 209, 102, 0.6), transparent),
    radial-gradient(2px 2px at 90% 85%, rgba(255, 46, 136, 0.6), transparent),
    radial-gradient(2px 2px at 15% 55%, rgba(106, 27, 154, 0.7), transparent);
  background-size: 100% 100%;
  animation: twinkle 3.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  margin: 0;
}

.title-glow {
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.75), 0 0 28px rgba(255, 46, 136, 0.35);
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ---------- Home page ---------- */

.home-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.home-store-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(42px, 3.4vw, 34px) !important;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
}

.home-store-sub {
  font-size: clamp(23px, 1.8vw, 16px) !important;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
  margin-bottom: 22px;
}

.home-logo {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-logo .spark {
  animation: spin-slow 6s linear infinite;
  display: inline-block;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.home-subtitle {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: clamp(14px, 2vw, 18px);
  max-width: 560px;
}

.tool-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  width: min(880px, 92vw);
}

.tool-card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 34px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255, 209, 102, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tool-card.enabled:active,
.tool-card.enabled:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(255, 209, 102, 0.18), 0 0 0 1px rgba(255, 209, 102, 0.25) inset;
}

.tool-card.enabled:hover::before {
  opacity: 1;
}

.tool-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: conic-gradient(from 0deg, var(--magenta), var(--gold), var(--teal), var(--purple), var(--magenta));
  box-shadow: 0 0 24px rgba(255, 46, 136, 0.35);
}

.tool-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.tool-badge {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.tool-badge.soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-link {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.admin-link:active {
  background: rgba(255, 255, 255, 0.14);
}
