:root {
  --bg-a: #f4efe2;
  --bg-b: #d9edf1;
  --panel: #fffaf2;
  --ink: #1b2838;
  --muted: #6c7a89;
  --teal: #127d7a;
  --teal-dark: #0b5c5a;
  --orange: #f08b46;
  --sand: #f2d39b;
  --line: #d8dde3;
  --shadow: 0 8px 30px rgba(18, 54, 66, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1100px 700px at 18% 10%, var(--bg-a), transparent),
    radial-gradient(1100px 700px at 80% 80%, var(--bg-b), #e9f2f4);
  min-height: 100vh;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.page-shell {
  max-width: min(96vw, 1400px);
  margin: 0 auto;
  padding: clamp(10px, 2.5vw, 24px);
}


.home-guest-main {
  margin-top: 20px;
}

.home-guest-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 24px) clamp(18px, 3.5vw, 28px);
  box-shadow: var(--shadow);
  max-width: min(96vw, 720px);
}

.home-guest-panel--loading {
  opacity: 0.85;
}

.home-guest-title {
  margin: 0 0 clamp(8px, 1.5vw, 12px);
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.home-guest-brand {
  margin: 0 0 8px;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--teal-dark);
}

.home-guest-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
}

.home-guest-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


.map-main {
  margin-top: 18px;
}

.map-column {
  background: var(--panel);
  border: 1px solid #efe8da;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(12px, 2.2vw, 20px);
  max-width: min(96vw, 1200px);
  margin: 0 auto;
}

.filter-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(8px, 1.4vw, 12px) clamp(10px, 1.8vw, 16px);
  margin-bottom: clamp(10px, 1.8vw, 14px);
  background: #f4f8fb;
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  font-size: clamp(0.92rem, 1.55vw, 1.05rem);
  font-weight: 700;
}

.breadcrumb-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c8d6e5;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c7a89'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--teal);
  border-radius: 10px;
  padding: 8px 32px 8px 14px;
  font-size: clamp(0.92rem, 1.45vw, 1.02rem);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.breadcrumb-select:hover {
  border-color: var(--teal);
}

.breadcrumb-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(18, 125, 122, 0.15);
}

.breadcrumb-sep {
  color: var(--muted);
  font-size: 0.9rem;
}

.legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pill.completed {
  background: #d9f7d8;
  color: #257528;
}

.pill.current {
  background: #ffe8d3;
  color: #a7561a;
}

.pill.locked {
  background: #e8edf3;
  color: #5d6b79;
}

.map-root {
  display: block;
}

.lanes-wrap {
  display: grid;
  gap: clamp(10px, 2vw, 14px);
}

.grade-lane {
  border: 1px solid #e3d8c6;
  background: linear-gradient(180deg, #fffdfa, #fff7eb);
  border-radius: 18px;
  padding: clamp(8px, 1.5vw, 12px);
}

.lane-title {
  margin: 0 0 clamp(6px, 1.2vw, 10px);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-family: 'Baloo 2', cursive;
  color: #4a3f31;
}

.lane-canvas {
  position: relative;
  border-radius: 14px;
  min-height: clamp(220px, 34vw, 280px);
  background:
    radial-gradient(circle at 12% 15%, rgba(240, 139, 70, 0.2), transparent 33%),
    radial-gradient(circle at 84% 85%, rgba(18, 125, 122, 0.18), transparent 35%),
    #fffcf8;
  border: 1px dashed #e2cfb0;
}

.lane-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lane-link {
  stroke: #b5c6c8;
  stroke-width: 5.5;
  stroke-linecap: round;
  fill: none;
}

.lane-milestone {
  position: absolute;
  left: 8%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.lane-milestone::after {
  content: '';
  flex: 1;
  border-top: 2px dashed #c8d5e3;
}

.lane-milestone-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f08b46;
  border: 2px solid #fff7e9;
  box-shadow: 0 0 0 2px #d97d39;
}

.lane-milestone-text {
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 800;
  color: #2f4b62;
  background: #fff9ef;
  border: 1px solid #ebd7bb;
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.01em;
}

.map-node {
  position: absolute;
  width: clamp(118px, 19vw, 152px);
  height: clamp(118px, 19vw, 152px);
  border: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 31, 39, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.map-node.selected {
  outline: 4px solid #fff;
  box-shadow: 0 0 0 3px #17384f, 0 9px 20px rgba(15, 31, 39, 0.28);
}

.map-node.completed {
  filter: saturate(0.95);
}

.map-node.current {
  animation: pulse 2s infinite;
}

.map-node.locked {
  opacity: 0.55;
  box-shadow: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 139, 70, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 139, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 139, 70, 0);
  }
}

.map-node.sayilar {
  background: linear-gradient(160deg, #f4b86e, #f08b46);
  color: #41230f;
}

.map-node.islemler {
  background: linear-gradient(160deg, #f9d16b, #ebb445);
  color: #3f2c07;
}

.map-node.geometri {
  background: linear-gradient(160deg, #6cc6bf, #2e988f);
  color: #073835;
}

.map-node.olcme {
  background: linear-gradient(160deg, #96b6ff, #698fe7);
  color: #132c65;
}

.map-node.veri {
  background: linear-gradient(160deg, #83c0ef, #4f94cb);
  color: #0b3051;
}

.map-node.genel {
  background: linear-gradient(160deg, #d6cfbf, #b8aa8f);
  color: #352d1f;
}

.node-theme {
  font-size: clamp(0.85rem, 1.45vw, 1rem);
  font-weight: 700;
  opacity: 0.88;
}

.node-title {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: clamp(100px, 16vw, 132px);
}

.node-stars {
  display: block;
  font-size: clamp(1.76rem, 2.7vw, 1.96rem);
  letter-spacing: 0.1em;
  margin-top: 4px;
  line-height: 1;
}

/* Match mini-game finish card (e.g. s3-u1-b1-k1-o1 `.finish-stars`). */
.node-star-earned {
  color: #eab308;
  text-shadow:
    0 0 2px rgba(20, 12, 4, 0.9),
    0 2px 3px rgba(0, 0, 0, 0.55);
}

.node-star-missing {
  color: rgba(42, 28, 10, 0.55);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}


.term-chip,
.term-inline-link,
.glossary-page-link {
  text-decoration: none;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #f8fffe;
  font-weight: 800;
}

.term-inline-link {
  color: #1f6c8a;
  font-weight: 800;
  border-bottom: 1px dotted rgba(31, 108, 138, 0.45);
}

.glossary-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #195f79;
  font-weight: 800;
  border: 1px solid #c9d7e4;
}


@media (max-width: 640px) {
  .page-shell {
    padding: clamp(6px, 1.5vw, 10px);
  }

  .map-node {
    width: clamp(96px, 22vw, 118px);
    height: clamp(96px, 22vw, 118px);
  }

  .node-title {
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    max-width: clamp(82px, 20vw, 104px);
  }

  .node-stars {
    font-size: clamp(1.44rem, 5.6vw, 1.72rem);
  }

  .breadcrumb-select {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    padding: 7px 28px 7px 12px;
  }
}
