/* Chrome for the review gallery. Deliberately neutral and grey so it never
   reads as part of the client's design. Brand gold is used only for the
   selected state. */

:root {
  color-scheme: dark;
  --bg: #0E0E12;
  --panel: #16161C;
  --panel-2: #1D1D25;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #F3F2F6;
  --muted: #A3A1AE;
  --accent: #D4A45C;
  --accent-ink: #1A1206;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--text); }
button { font: inherit; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 14, 18, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-inner { width: min(1240px, 100% - 28px); margin-inline: auto; padding: 12px 0 14px; }
.brandrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mark {
  width: 9px; height: 9px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 164, 92, .16);
}
.brandrow strong { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.brandrow .spacer { flex: 1 1 auto; }
.brandrow a.plain {
  color: var(--muted); font-size: 13px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.brandrow a.plain:hover { color: var(--text); border-color: var(--line-strong); }

h1 { margin: 14px 0 4px; font-size: 25px; letter-spacing: 0; font-weight: 600; }
.brief { margin: 0 0 14px; max-width: 78ch; color: var(--muted); font-size: 13.5px; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; flex: 1 1 320px; }
.tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted); cursor: pointer; white-space: nowrap;
  font-size: 13px; transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tab .num { font-weight: 700; opacity: .75; }

.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.segmented button {
  padding: 7px 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 13px;
}
.segmented button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

main { width: min(1240px, 100% - 28px); margin-inline: auto; padding: 22px 0 40px; }

.stage-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 12px; }
.opt-name { font-size: 15px; font-weight: 600; }
.opt-name .idx { color: var(--accent); }
.opt-note { color: var(--muted); font-size: 13.5px; flex: 1 1 380px; }

.frame-outer {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 14px; overflow: hidden;
}
.frame { position: relative; width: 100%; overflow: hidden; }
.frame iframe { position: absolute; top: 0; left: 0; border: 0; background: #120620; transform-origin: top left; }
.frame[data-view="mobile"] iframe {
  border-radius: 26px; box-shadow: 0 0 0 1px var(--line-strong), 0 22px 48px rgba(0,0,0,.45);
}
.frame[data-view="desktop"] iframe { box-shadow: 0 0 0 1px var(--line); }

.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 13px;
  text-decoration: none;
}
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.copied { color: var(--accent); font-size: 13px; }

.bestfor { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.bestfor b { color: var(--text); font-weight: 600; }

.grid-section { margin-top: 34px; }
.grid-section h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.grid-section p.sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  display: grid; gap: 10px; padding: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: inherit; transition: border-color .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card[data-current="true"] { border-color: var(--accent); }
.card .thumb { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #120620; }
.card .thumb iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; }
.card .meta { display: flex; align-items: baseline; gap: 8px; }
.card .meta .idx { color: var(--accent); font-weight: 700; font-size: 12px; }
.card .meta .name { font-size: 13.5px; font-weight: 600; }
.card .note { color: var(--muted); font-size: 12.5px; }

.hint {
  width: min(1240px, 100% - 28px); margin: 0 auto; padding: 18px 0 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.hint b { color: var(--text); font-weight: 600; }

.index-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.index-list a {
  display: grid; gap: 4px; padding: 16px 18px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.index-list a:hover { border-color: var(--accent); }
.index-list .label { font-size: 15px; font-weight: 600; }
.index-list .desc { color: var(--muted); font-size: 13px; }
.index-list .status { color: var(--accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 620px) {
  h1 { font-size: 21px; }
  .frame-outer { padding: 10px; border-radius: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .card { padding: 9px; gap: 7px; }
  .card .note { font-size: 11.5px; }
  /* Every option stays visible on a phone instead of scrolling off the side. */
  .tabs { flex-wrap: wrap; overflow: visible; flex: 1 1 100%; }
  .tab { padding: 7px 11px; font-size: 12.5px; }
  .controls { gap: 8px; }
}
