:root {
  color-scheme: light;
  --ibni-purple: #7d51b1;
  --ibni-deep-purple: #3f205a;
  --ibni-pink: #dd98d1;
  --ibni-lilac: #9f8fc1;
  --ibni-mist: #b2b9da;
  --ibni-peach: #ffbe98;
  --ibni-ink: #21172f;
  --ibni-paper: #fbf9ff;
  --ibni-line: rgba(63, 32, 90, 0.16);
  --shadow: 0 18px 50px rgba(63, 32, 90, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ibni-ink);
  background:
    linear-gradient(180deg, rgba(178, 185, 218, 0.22), transparent 240px),
    var(--ibni-paper);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--ibni-line);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ibni-deep-purple);
  cursor: pointer;
}

button.secondary {
  color: var(--ibni-deep-purple);
  background: #fff;
}

button.soft {
  color: var(--ibni-deep-purple);
  background: rgba(125, 81, 177, 0.1);
}

.hidden {
  display: none !important;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--ibni-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ibni-ink);
  background: #fff;
}

.shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ibni-line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 76px;
  height: auto;
}

.brand small,
.eyebrow {
  display: block;
  color: var(--ibni-purple);
  font-weight: 800;
  text-transform: uppercase;
}

.brand h1 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.sidebar,
.panel,
.hero,
.stat {
  border: 1px solid var(--ibni-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.sidebar {
  align-self: start;
  padding: 14px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  text-align: left;
}

.content {
  display: grid;
  gap: 18px;
}

.hero {
  padding: 20px;
}

.hero.feature {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(221, 152, 209, 0.45), transparent 260px),
    linear-gradient(135deg, #fff, rgba(178, 185, 218, 0.22));
}

.hero.feature h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
}

.hero-visual {
  min-height: 320px;
  position: relative;
  display: grid;
  place-items: center;
}

.game-board-preview {
  width: min(500px, 100%);
  aspect-ratio: 1.2;
  position: relative;
  border: 3px solid var(--ibni-deep-purple);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 81, 177, 0.14), rgba(255, 190, 152, 0.24)),
    #fff;
  box-shadow: 0 28px 80px rgba(63, 32, 90, 0.22);
}

.station-dot {
  position: absolute;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--ibni-purple);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(63, 32, 90, 0.22);
}

.station-dot:nth-child(1) { left: 8%; top: 12%; }
.station-dot:nth-child(2) { left: 38%; top: 10%; background: var(--ibni-peach); color: var(--ibni-deep-purple); }
.station-dot:nth-child(3) { right: 9%; top: 25%; background: var(--ibni-deep-purple); }
.station-dot:nth-child(4) { right: 18%; bottom: 14%; background: var(--ibni-pink); color: var(--ibni-deep-purple); }
.station-dot:nth-child(5) { left: 16%; bottom: 17%; background: var(--ibni-mist); color: var(--ibni-deep-purple); }

.floating-card {
  position: absolute;
  right: 4%;
  bottom: 3%;
  width: 180px;
  border: 1px solid var(--ibni-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
}

.auth-showcase {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at 20% 20%, rgba(221, 152, 209, 0.46), transparent 260px),
    linear-gradient(135deg, rgba(125, 81, 177, 0.13), rgba(255, 190, 152, 0.22));
}

.auth-showcase img {
  width: 130px;
}

.auth-showcase h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
}

.auth-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.96);
}

.auth-card {
  display: grid;
  gap: 12px;
}

.hero h2,
.panel h2 {
  margin: 0 0 8px;
}

.hero p,
.muted {
  color: rgba(33, 23, 47, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  color: var(--ibni-deep-purple);
  font-size: 28px;
}

.panel {
  padding: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--ibni-line);
  padding: 10px 8px;
  text-align: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--ibni-deep-purple);
  background: rgba(125, 81, 177, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--ibni-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.item h3 {
  margin: 0 0 4px;
}

.form {
  display: grid;
  gap: 10px;
}

.notice {
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ibni-deep-purple);
  background: rgba(255, 190, 152, 0.28);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .stats,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero.feature,
  .auth-shell {
    grid-template-columns: 1fr;
  }
}
