/* ------------------------------------------------------------------
   tools/assets/idea-generator.css (v=2, 2026-10-19): page rules for
   /tools/roblox-game-idea-generator (<body class="sl tl ig">). Loaded after
   /tokens.css, /landing.css, /seo-landing.css and /tools/assets/tools.css.
   Everything is an .ig-* name or scoped under body.ig, so the shared files
   stay as they are. Pieces:
     the picker panel and the idea card (.ig-panel, .ig-card, .ig-card-grid,
     .ig-desc, .ig-guides), the sample ideas (.ig-samples, .ig-more), the
     four step cards (.ig-steps, the look of the game maker's build loop),
     and the strip of guide loops (.ig-reel, .ig-tile).
   Nothing rests invisible; prefers-reduced-motion removes every transition
   and hover movement (videos: lib/inview-video.js shows posters instead).
   ------------------------------------------------------------------ */

/* JavaScript-only controls ship with hidden; .btn sets display, so hidden needs the help */
.ig [data-ig-js][hidden] { display: none !important; }

/* ---------- the picker panel ---------- */
.ig-panel .tl-panel-head { margin-bottom: 16px; }
.ig-field + .ig-field { margin-top: 20px; }
.ig-field .tl-hint { margin-top: 10px; min-height: 1.45em; }
.ig-panel .tl-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); }
.ig-panel .tl-actions .btn.tl-go { min-width: 200px; }

/* ---------- the idea card ---------- */
.ig-card {
  margin: 16px 0 0; padding: 26px 28px 22px; gap: 0;
  border-color: rgba(167, 139, 250, .3);
  background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(21, 16, 31, 0) 38%), #15101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 90px -46px rgba(124, 58, 237, .65);
}
.ig-card:hover { border-color: rgba(167, 139, 250, .38); }
.ig-card-head { display: grid; gap: 10px; }
.ig-card .tl-card-title { font-size: clamp(24px, 1.1rem + 1.2vw, 32px); letter-spacing: -.03em; }
.ig-card .tl-card-title:focus { outline: none; }
.ig-card .tl-card-title:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 4px; border-radius: 6px; }
.ig-card .tl-card-pitch { max-width: 70ch; font-size: 16.5px; }
.ig-card-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.ig-card-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ig-card-col > .tl-card-label { margin: 0; }
.ig-card-col > * + .tl-card-label, .ig-card-col > * + .ig-desc-head, .ig-card-col > * + .ig-guides-label { margin-top: 14px; }
.ig-card .tl-card-text { font-size: 15px; color: #e6def3; }
.ig-desc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.ig-desc-head .tl-card-label { margin: 0; }
.ig-desc {
  margin: 0; padding: 14px 16px; border: 1px solid rgba(233, 226, 250, .1); border-radius: 12px; background: #0f0c16;
  font-size: 14.5px; line-height: 1.6; color: #e6def3; text-wrap: pretty;
}
.ig-card .tl-prompts > li:first-child {
  background: linear-gradient(180deg, rgba(139, 92, 246, .34), rgba(109, 40, 217, .2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 34px -22px rgba(124, 58, 237, .9);
}
.ig-guides-label { margin: 0; font-size: 13px; line-height: 1.45; color: #8f84a3; }
.ig-guides { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ig-guides a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid rgba(233, 226, 250, .12); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font-size: 13px; font-weight: 500; line-height: 1.2; color: #cfc3e0; text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.tl-card .ig-guides a { color: #cfc3e0; text-decoration: none; }
.ig-guides a::after { content: "\2192"; color: #a78bfa; }
.tl-card .ig-guides a:hover { border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .08); color: #f6f1ff; }
.ig-guides a:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
.ig-card .tl-card-foot { margin-top: 24px; padding-top: 20px; }
.ig-card .tl-card-foot .btn { min-height: 48px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.ig-card .tl-card-foot .tl-copy { min-height: 48px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.ig-card-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #8f84a3; }

/* ---------- sample ideas (server HTML, also the page without JavaScript) ---------- */
.ig-samples { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.ig-sample { gap: 12px; }
.ig-sample .tl-card-title { font-size: 20px; }
.ig-sample .tl-card-pitch { font-size: 15px; }
.ig-sample .tl-card-label { margin: 2px 0 -4px; }
.ig-sample .tl-card-foot { margin-top: 0; padding-top: 14px; }
/* the build plan and the button line up at the bottom of every card in a row */
.ig-sample .ig-more { margin-top: auto; }
.ig-sample .tl-card-foot .btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; font-weight: 600; }
.ig-more { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 12px; }
.ig-more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: #cfc3e0;
}
.ig-more > summary::-webkit-details-marker { display: none; }
.ig-more > summary:hover { color: #f6f1ff; }
.ig-more > summary:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; border-radius: 8px; }
.ig-more-body { display: grid; gap: 10px; padding: 8px 0 4px; }
.ig-more-body .tl-card-label { margin: 6px 0 -2px; }
.ig-more-body .ig-desc { font-size: 14px; padding: 12px 14px; }
.ig-samples-foot { max-width: 760px; margin: 24px auto 0; font-size: 14px; line-height: 1.55; text-align: center; color: var(--rc-text-2); }
.ig-samples-foot a { color: var(--rc-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167, 139, 250, .5); }

/* ---------- four step cards (the look of the game maker's build loop) ---------- */
.ig-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.ig-step {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 20px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .07), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s ease;
}
.ig-step:hover { border-color: rgba(167, 139, 250, .3); }
.ig-step-art {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  height: 128px; padding: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(139, 92, 246, .16), transparent 62%), #110f17;
}
.ig-step-head { display: flex; align-items: center; gap: 10px; margin: 18px 8px 0; }
.ig-step-n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 13px; font-weight: 700; line-height: 1; color: #c4b5fd; background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .4);
}
.ig-step-head h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #f6f1ff; text-wrap: balance; }
.ig-step-text { margin: 8px 8px 0; font-size: 14px; line-height: 1.5; color: var(--rc-text-2); text-wrap: pretty; }
.ig-steps + .v3-note { margin-top: 24px; }
.ig-steps:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 6px; border-radius: 18px; }
.ig-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; white-space: nowrap;
  border: 1px solid rgba(233, 226, 250, .14); border-radius: 10px; background: #1a1424;
  font-size: 12.5px; font-weight: 500; line-height: 1; color: #e6def3;
}
.ig-chip.is-on { border-color: rgba(167, 139, 250, .65); background: rgba(139, 92, 246, .22); color: #fff; box-shadow: 0 0 22px -8px rgba(139, 92, 246, .9); }
.ig-chip.is-done::before, .ig-chip.is-next::before {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  font-family: var(--rc-font); font-size: 10px; font-weight: 800; line-height: 1;
}
.ig-chip.is-done { border-radius: 999px; border-color: rgba(52, 211, 153, .3); }
.ig-chip.is-done::before { content: "\2713"; color: #34d399; background: rgba(52, 211, 153, .16); }
.ig-chip.is-next { border-radius: 999px; }
.ig-chip.is-next::before { content: "+"; font-size: 12px; color: #fff; background: var(--rc-accent-fill, #7c3aed); }
.ig-art-pick { flex-direction: column; gap: 10px; }
.ig-art-pick > span { display: flex; gap: 8px; }
.ig-art-prompt { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; }
.ig-bubble {
  min-width: 0; padding: 10px 14px 11px; border-radius: 16px 16px 6px 16px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .30), rgba(109, 40, 217, .20));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px -22px rgba(124, 58, 237, .8);
  font-size: 13.5px; line-height: 1.4; color: #f6f1ff; text-wrap: pretty;
}
.ig-send {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #fff; background: var(--rc-accent-fill, #7c3aed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px -6px rgba(124, 58, 237, .8);
}
.ig-art-test { gap: 14px; }
.ig-play {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff;
  background: var(--rc-accent-fill, #7c3aed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 28px -4px rgba(139, 92, 246, .8);
}
.ig-play svg { translate: 1px 0; }
.ig-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ig-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; white-space: nowrap;
  border: 1px solid rgba(233, 226, 250, .16); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1; color: #cfc3e0;
}
.ig-pill.is-green { color: #6ee7b7; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.ig-art-next { align-content: center; gap: 8px; padding: 14px 16px; }

/* ---------- the strip of guide loops: four over three on desktop ---------- */
.ig-reel { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.ig-reel > li { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; }
.ig-tile {
  position: relative; margin: 0; aspect-ratio: 960 / 600; overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(233, 226, 250, .14); background: #0b0a0e center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 28px 56px -26px rgba(0, 0, 0, .95);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ig-tile:hover { border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 0 1px rgba(167, 139, 250, .2), 0 0 44px -10px rgba(139, 92, 246, .7), 0 28px 56px -26px rgba(0, 0, 0, .95); }
.ig-tile > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-tile > figcaption { margin: 0; }
.ig-tile-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; color: inherit; text-decoration: none; }
.ig-tile-link:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: -3px; }
.ig-tile-name {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(12, 11, 16, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 600; line-height: 1; color: #f6f1ff; transition: border-color .2s ease, background-color .2s ease;
}
.ig-tile-guide {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); height: 24px; padding: 0 9px;
  border-radius: 999px; background: rgba(12, 11, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 500; line-height: 1; color: #cfc3e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-tile-guide::after { content: "\2192"; color: #a78bfa; }
.ig-tile-link:hover .ig-tile-name { border-color: rgba(167, 139, 250, .6); background: rgba(46, 26, 84, .86); }
.ig-reel + .sl-cap { margin-top: 20px; }

/* ---------- more tools, the link box and the closing block ---------- */
.ig-link-box { max-width: 760px; margin: 40px auto 0; }
.ig-link-box .tl-snippet-head { font-size: 13px; }
.ig-final-media { margin: 0; min-width: 0; }
.ig-final-media .sl-frame { aspect-ratio: 16 / 10; }
.ig-final .final-inner h2 { max-width: 15ch; }
.ig-final .final-actions .btn { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.ig-final .micro-row { line-height: 1.6; }
@media (max-width: 1023px) {
  .ig-final-media { margin-top: 40px; }
}

/* ---------- tablets ---------- */
@media (max-width: 1099px) {
  .ig-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .ig-reel > li { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 1000px) {
  .ig-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ig-card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- phones: the samples, the steps and the strip scroll sideways ---------- */
@media (max-width: 640px) {
  .ig-panel .tl-actions .btn.tl-go { width: 100%; min-width: 0; }
  .ig-card { padding: 20px 16px 18px; }
  .ig-card .tl-card-pitch { font-size: 15.5px; }
  .ig-card-grid { margin-top: 18px; padding-top: 18px; }
  .ig-card .tl-card-foot .btn, .ig-card .tl-card-foot .tl-copy { width: 100%; }
  .ig-samples, .ig-steps, .ig-reel {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--rc-gutter)); padding: 0 var(--rc-gutter) 12px; scroll-padding: 0 var(--rc-gutter);
  }
  .ig-samples > li, .ig-steps > li { flex: 0 0 84%; scroll-snap-align: start; }
  .ig-reel > li { flex: 0 0 72%; scroll-snap-align: start; }
  .ig-samples:focus-visible, .ig-steps:focus-visible, .ig-reel:focus-visible { outline-offset: -2px; border-radius: 0; }
  .ig-step-art { height: 116px; }
}

/* ---------- reduced motion: no transitions, no hover movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .ig-guides a, .ig-step, .ig-tile, .ig-tile-name { transition: none; }
}
