/* گیله خوراک — quiz + roulette */

.gileh-section {
  width: min(100% - 2rem, var(--max));
  max-width: 100%;
  margin: 0 auto 1.75rem;
  animation: rise 0.9s ease-out 0.22s both;
  box-sizing: border-box;
  min-width: 0;
}

.gileh-panel {
  overflow: hidden;
}

.gileh-panel .panel-body {
  position: relative;
  z-index: 1;
}

.gk-quiz,
.gk-roulette,
.gk-result {
  display: grid;
  gap: 1rem;
}

.gk-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.gk-step-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
}

.gk-step-dot.is-done {
  background: var(--good);
  border-color: transparent;
}

.gk-step-dot.is-current {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(201, 165, 106, 0.2);
}

.gk-progress-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.gk-step-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--accent-strong);
  font-weight: 800;
}

.gk-options {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gk-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gk-option {
  appearance: none;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gk-option:hover,
.gk-option:focus-visible {
  border-color: rgba(201, 165, 106, 0.5);
  background: rgba(201, 165, 106, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.gk-option-label {
  font-weight: 800;
  font-size: 1rem;
}

.gk-option-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.gk-roulette {
  justify-items: center;
  text-align: center;
}

.gk-roulette-caption {
  margin: 0;
  font-weight: 700;
  color: var(--accent-strong);
}

.gk-roulette-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.gk-wheel-wrap {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  margin: 0.35rem auto;
}

.gk-wheel-pointer {
  position: absolute;
  top: -0.15rem;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  margin-left: -0.55rem;
  border-left: 0.55rem solid transparent;
  border-right: 0.55rem solid transparent;
  border-top: 0.9rem solid var(--accent-strong);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.gk-wheel {
  position: absolute;
  inset: 0.6rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 165, 106, 0.45);
  box-shadow:
    inset 0 0 0 6px rgba(8, 18, 15, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.35);
  will-change: transform;
}

.gk-wheel-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 12%;
  transform: rotate(var(--gk-angle));
  pointer-events: none;
}

.gk-wheel-label > span {
  display: block;
  max-width: 5.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: rotate(0deg);
}

.gk-result-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--good);
  font-weight: 700;
}

.gk-result-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--accent-strong);
  line-height: 1.2;
}

.gk-result-blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 40rem;
}

.gk-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.gk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gk-tag {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 203, 158, 0.28);
  background: rgba(125, 203, 158, 0.1);
  color: #9ed4b4;
  font-size: 0.78rem;
  font-weight: 700;
}

.gk-markets {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}

.gk-markets-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.gk-again {
  appearance: none;
  justify-self: start;
  margin-top: 0.25rem;
  border: 1px solid rgba(201, 165, 106, 0.4);
  background: rgba(201, 165, 106, 0.1);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gk-again:hover,
.gk-again:focus-visible {
  background: rgba(201, 165, 106, 0.18);
  border-color: rgba(201, 165, 106, 0.65);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .gk-wheel {
    transition: none !important;
  }

  .gk-option {
    transition: none;
  }
}
