:root {
  /* Align with sazmankav.com brand tokens (--skv-primary / --skv-accent) */
  --sktg-bg: #f4f7fa;
  --sktg-ink: #0b1f3a;
  --sktg-accent: #1b4d6e;
  --sktg-accent-2: #c4a35a;
  --sktg-card: #ffffff;
  --sktg-muted: #5a6b7a;
  --sktg-line: #d5dde5;
  --sktg-font: "Vazirmatn", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.sktg-play-body {
  font-family: var(--sktg-font);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(27, 77, 110, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(196, 163, 90, 0.14), transparent),
    var(--sktg-bg);
  color: var(--sktg-ink);
  min-height: 100vh;
}

.sktg-app { max-width: 720px; margin: 0 auto; padding: 16px; min-height: 100vh; display: flex; flex-direction: column; }
.sktg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sktg-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--sktg-accent); }
.sktg-progress { font-size: 0.85rem; color: var(--sktg-muted); }
.sktg-main {
  flex: 1;
  background: var(--sktg-card);
  border: 1px solid var(--sktg-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(26, 31, 28, 0.06);
}
.sktg-loading { text-align: center; color: var(--sktg-muted); }

.sktg-btn {
  appearance: none;
  border: none;
  background: var(--sktg-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.sktg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sktg-btn-secondary { background: transparent; color: var(--sktg-accent); border: 1px solid var(--sktg-accent); margin-top: 8px; }
.sktg-btn-warn { background: var(--sktg-accent-2); }

.sktg-consent h1 { font-size: 1.4rem; margin: 0 0 8px; }
.sktg-consent p { color: var(--sktg-muted); line-height: 1.7; }
.sktg-fields { display: grid; gap: 10px; margin: 16px 0; }
.sktg-fields label { display: grid; gap: 4px; font-size: 0.9rem; }
.sktg-fields select, .sktg-fields input {
  font: inherit;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--sktg-line);
  background: #fff;
}

.sktg-game-title { margin: 0 0 4px; font-size: 1.25rem; }
.sktg-game-desc { margin: 0 0 16px; color: var(--sktg-muted); font-size: 0.95rem; line-height: 1.6; }
.sktg-stage {
  min-height: 280px;
  border-radius: 12px;
  background: #eef3f7;
  border: 1px dashed var(--sktg-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  user-select: none;
  touch-action: manipulation;
}

.sktg-balloon {
  width: 80px;
  height: 100px;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  background: radial-gradient(circle at 30% 30%, #ffb4a2, #e85d4c);
  transition: transform 0.08s ease;
  margin-bottom: 12px;
}
.sktg-balloon.pop { background: #bbb; transform: scale(0.2); opacity: 0.3; }
.sktg-row { display: flex; gap: 8px; width: 100%; max-width: 360px; }
.sktg-row .sktg-btn { flex: 1; }
.sktg-stat { margin-top: 12px; font-size: 0.9rem; color: var(--sktg-muted); }

.sktg-stimulus {
  font-size: 3rem;
  font-weight: 800;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sktg-stimulus.go { color: var(--sktg-accent); }
.sktg-stimulus.nogo { color: var(--sktg-accent-2); }

.sktg-digit {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
.sktg-digit-input {
  width: 100%;
  max-width: 280px;
  text-align: center;
  font-size: 1.4rem;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--sktg-line);
  margin-top: 12px;
  direction: ltr;
}

.sktg-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 400px;
}
.sktg-card-btn {
  aspect-ratio: 3/4;
  border-radius: 10px;
  border: 2px solid var(--sktg-line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sktg-card-btn:active { transform: scale(0.97); }
.sktg-card-btn.a { border-color: #c45c26; }
.sktg-card-btn.b { border-color: #0f6b4c; }
.sktg-card-btn.c { border-color: #2b4c7e; }
.sktg-card-btn.d { border-color: #6b4c0f; }

.sktg-tower-board {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}
.sktg-peg {
  width: 72px;
  height: 180px;
  background: linear-gradient(transparent 0 12px, #cfc6b6 12px), #e8e2d6;
  border-radius: 6px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  padding-bottom: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}
.sktg-peg.selected { border-color: var(--sktg-accent); }
.sktg-disk {
  height: 22px;
  border-radius: 6px;
  margin: 2px 0;
  background: var(--sktg-accent);
}
.sktg-disk.d1 { width: 28px; background: #0f6b4c; }
.sktg-disk.d2 { width: 44px; background: #2b7a9e; }
.sktg-disk.d3 { width: 58px; background: #c45c26; }

.sktg-trust-amt { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.sktg-slider { width: 100%; max-width: 320px; }

.sktg-strategy-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
.sktg-hud-item {
  background: #fff;
  border: 1px solid var(--sktg-line);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
}
.sktg-hud-item strong { display: block; font-size: 1.1rem; }
.sktg-env-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 76, 0.12);
  color: var(--sktg-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sktg-actions { display: grid; gap: 8px; width: 100%; max-width: 400px; }
.sktg-actions button {
  font: inherit;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--sktg-line);
  background: #fff;
  cursor: pointer;
  text-align: right;
}
.sktg-actions button:hover { border-color: var(--sktg-accent); }

.sktg-done { text-align: center; padding: 40px 12px; }
.sktg-done h1 { color: var(--sktg-accent); }

/* Report */
body.sktg-report-body {
  font-family: var(--sktg-font);
  background: var(--sktg-bg);
  margin: 0;
  color: var(--sktg-ink);
}
.sktg-report-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.sktg-report {
  background: var(--sktg-card);
  border: 1px solid var(--sktg-line);
  border-radius: 16px;
  padding: 28px;
}
.sktg-eyebrow { color: var(--sktg-accent); font-weight: 700; font-size: 0.85rem; margin: 0; }
.sktg-dim-list { list-style: none; padding: 0; margin: 0; }
.sktg-dim-list li { margin-bottom: 18px; }
.sktg-dim-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sktg-bar { height: 8px; background: #ebe6db; border-radius: 99px; overflow: hidden; }
.sktg-bar span { display: block; height: 100%; background: var(--sktg-accent); border-radius: 99px; }
.sktg-disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--sktg-line); color: var(--sktg-muted); font-size: 0.9rem; line-height: 1.7; }

@media (max-width: 480px) {
  .sktg-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sktg-strategy-hud { grid-template-columns: 1fr 1fr; }
}
