:root{
  --bg0:#050807;
  --bg1:#060b09;
  --fg: rgba(240,255,250,.92);
  --muted: rgba(240,255,250,.65);
  --wire: rgba(0,255,170,.22);
  --wire2: rgba(0,255,170,.12);
  --glow: rgba(0,255,170,.18);
  --cardRadius: 18px;
  --gap: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}.toolkit-page{
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(0,255,170,.06), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(0,255,170,.05), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--fg);
  font-family: var(--mono);
}
.toolkit-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 900px){
  .toolkit-shell{ grid-template-columns: 1fr; padding: 14px; }
}
.stack{ display:flex; flex-direction:column; gap: var(--gap); }
/* single-column shell for Design Studio pages */
.toolkit-shell--single{
  grid-template-columns: 1fr;
}
.topbarx{
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 18px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 0 11px #000, 0 0 0 12px rgba(0,255,170,0.14);
}
.topbarx-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.brandx{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.brandx .t1{ font-size: 14px; letter-spacing: .12em; }
.brandx .t2{ font-size: 12px; color: var(--muted); letter-spacing: .18em; }
.centerline{
  font-size: 12px;
  letter-spacing: .20em;
  color: rgba(0,255,170,.9);
  text-align:center;
  white-space: nowrap;
}
.actionsx{ display:flex; justify-content:flex-end; gap:10px; }
.btnx{
  font-family: var(--mono);
  border-radius: 14px;
  border: 1px solid rgba(0,255,170,0.22);
  background: #000;
  color: var(--fg);
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.btnx:active{ transform: translateY(1px); }
.btnx--primary{ background: rgba(0,255,170,.06); }
@media (max-width: 900px){
  .topbarx-inner{ grid-template-columns: 1fr; }
  .brandx{ align-items:center; }
  .actionsx{ justify-content:stretch; }
  .btnx{ width: 100%; }
}

/* small icon action (used for Tweaks) */
.btnx--ghost{
  background: transparent;
  border: 1px solid rgba(0,255,170,.28);
  box-shadow: 0 0 0 1px rgba(0,255,170,.10) inset;
  padding: 10px 12px;
  line-height: 1;
}
.btnx--ghost:hover{
  border-color: rgba(0,255,170,.45);
}
/* Design Studio — component-scoped styles */

.studio-card{
  padding: 14px;
}

.studio-head{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 6px 4px 10px;
}
.studio-title{
  font-size: 14px;
  letter-spacing: .14em;
}
.studio-sub{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .10em;
}

.studio-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 4px 4px;
}
@media (max-width: 900px){
  .studio-grid{ grid-template-columns: 1fr; }
}

.studio-tile{
  text-align:left;
  cursor:pointer;
  border: 1px solid rgba(0,255,170,0.18);
  background: #000;
  color: var(--fg);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.06);
  display:flex;
  align-items:center;
  gap: 12px;
}
.studio-tile:active{ transform: translateY(1px); }

.studio-ico{
  width: 36px;
  height: 36px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(0,255,170,0.22);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
  color: rgba(0,255,170,.92);
}
.studio-tt1{ font-size: 13px; letter-spacing: .12em; }
.studio-tt2{ font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .10em; }
.studio-go{ margin-left:auto; color: rgba(0,255,170,.8); font-size: 18px; }

.studio-hint{
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
  padding: 6px 4px 0;
}

.studio-sectionhead{
  padding: 6px 4px 10px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.studio-sectiontitle{
  font-size: 13px;
  letter-spacing: .16em;
}
.studio-sectionsub{
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
}

.studio-two{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 14px 4px 4px;
}
@media (max-width: 900px){
  .studio-two{ grid-template-columns: 1fr; }
}

/* mini nav under main navbar */
.studio-mininav{
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px 0;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-navbtn{
  cursor:pointer;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.studio-navbtn--on{
  background: rgba(0,255,170,.06);
  border-color: rgba(0,255,170,0.26);
}

.ds-row{ display:flex; gap: 10px; align-items:center; }
.ds-row--wrap{ flex-wrap: wrap; }

/* pills + inputs */
.ds-pill{
  cursor:pointer;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.ds-pill--on{ background: rgba(0,255,170,.06); border-color: rgba(0,255,170,0.28); }

.ds-knobs{ display:flex; flex-direction:column; gap: 12px; }
.ds-knob{
  border: 1px solid rgba(0,255,170,0.14);
  border-radius: 18px;
  padding: 10px 10px;
  background:#000;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.08);
}
.ds-knobhead{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom: 8px; }
.ds-knoblabel{ font-size: 11px; letter-spacing: .16em; color: rgba(0,255,170,.9); }
.ds-knobhint{ font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.ds-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  padding: 10px 10px;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.ds-range{ display:flex; align-items:center; gap: 10px; }
.ds-rangein{ width: 100%; }
.ds-rangeval{
  min-width: 56px;
  text-align:right;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
}
.ds-toggle{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  padding: 10px 10px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
  cursor:pointer;
}
.ds-toggleknob{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,170,0.22);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 14px rgba(0,255,170,.10);
}
.ds-toggle--on .ds-toggleknob{ background: rgba(0,255,170,.14); }
.ds-toggletxt{ font-size: 11px; letter-spacing: .16em; color: rgba(0,255,170,.86); }

/* stage + export actions */
.export-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 2px 0;
}
.ds-preview{
  border-radius: 18px;
  border: 1px solid rgba(0,255,170,0.14);
  overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.08);
}
.studio-note{
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
  padding: 6px 2px 0;
}

.ds-go-stage{ padding: 10px 2px 0; }
/* Export Tray — fixed bottom-right, doesn't block navbar */

.tray{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none; /* only tab/body re-enable */
}

.tray-tab{
  width: 100%;
  pointer-events: auto;
  cursor:pointer;
  border-radius: 16px;
  border: 1px solid rgba(0,255,170,0.22);
  background:#000;
  color: rgba(0,255,170,.92);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .20em;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.tray-count{
  display:inline-grid;
  place-items:center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,170,0.22);
  color: var(--fg);
  letter-spacing: .10em;
}

.tray-body{
  pointer-events: auto;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,255,170,0.16);
  background:#000;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.08);
  overflow:hidden;
}

.tray-empty{
  padding: 12px 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
}

.tray-list{
  max-height: 240px;
  overflow:auto;
  padding: 10px 10px 0;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.tray-item{
  border-radius: 16px;
  border: 1px solid rgba(0,255,170,0.14);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.08);
  padding: 10px 10px;
}
.tray-itemtop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.tray-name{ font-size: 11px; letter-spacing: .14em; color: rgba(0,255,170,.9); }
.tray-x{
  cursor:pointer;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  border-radius: 12px;
  width: 28px;
  height: 28px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.tray-files{
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .10em;
}
.tray-btns{ margin-top: 10px; display:flex; gap: 10px; }
.tray-btn{
  cursor:pointer;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.tray-btn--on{ background: rgba(0,255,170,.06); border-color: rgba(0,255,170,0.28); }

.tray-actions{
  display:flex;
  gap: 10px;
  padding: 10px 10px 12px;
  border-top: 1px solid rgba(0,255,170,0.10);
}

@media (max-width: 900px){
  .tray{ right: 10px; bottom: 10px; width: min(360px, calc(100vw - 20px)); }
}
/* Studio Navbar Templates */

.ds-topbar{
  position: relative;
  background:#000;
  border: 1px solid rgba(0,255,170,0.18);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.06);
  padding: 10px 12px;
  overflow: hidden;
}

.ds-inner{
  height: 100%;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 12px;
}
.ds-brand{ display:flex; flex-direction:column; gap: 2px; }
.ds-t1{ font-size: 13px; letter-spacing: .14em; }
.ds-t2{ font-size: 11px; color: var(--muted); letter-spacing: .18em; }

.ds-center{
  font-size: 11px;
  color: rgba(0,255,170,.9);
  text-align:center;
  letter-spacing: .22em;
  white-space: nowrap;
}

.ds-actions{ display:flex; justify-content:flex-end; gap: 10px; }
.ds-btn{
  font-family: var(--mono);
  border-radius: 14px;
  border: 1px solid rgba(0,255,170,0.22);
  background: #000;
  color: var(--fg);
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.ds-btn--primary{ background: rgba(0,255,170,.06); }
.ds-btn:active{ transform: translateY(1px); }

.ds-dot{
  position:absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(0,255,170,.45);
  box-shadow: 0 0 0 6px rgba(0,0,0,1), 0 0 0 7px rgba(0,255,170,0.20), 0 0 16px rgba(0,255,170,.12);
  pointer-events:none;
}
.ds-dot--l{ left: 8px; }
.ds-dot--r{ right: 8px; }

@media (max-width: 900px){
  .ds-inner{ grid-template-columns: 1fr; }
  .ds-brand{ align-items:center; }
  .ds-actions{ justify-content:stretch; }
  .ds-btn{ width: 100%; }
  .ds-dot{ display:none; }
}
/* Studio Buttons */

.ds-btnstage{
  padding: 18px 8px 8px;
  display:flex;
  justify-content:flex-start;
}

.dsbtn{
  font-family: var(--mono);
  border: 1px solid rgba(0,255,170,0.22);
  background:#000;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
  cursor:pointer;
  letter-spacing: .10em;
}
.dsbtn:active{ transform: translateY(1px); }
.dsbtn--full{ width: 100%; }

.dsbtn--wire{ background:#000; }
.dsbtn--mint{ background: rgba(0,255,170,.06); }
.dsbtn--ghost{ background: transparent; border-color: rgba(0,255,170,0.14); }

.dsbtn--glow{
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.08);
}
/* Studio Cards */

.ds-cardstage{
  padding: 8px 2px 0;
  overflow:auto;
}

.dscard{
  background:#000;
  border: 1px solid rgba(0,255,170,0.18);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.06);
  overflow:hidden;
}
.dscard-head{
  padding: 12px 12px 8px;
}
.dscard-title{
  font-size: 12px;
  letter-spacing: .16em;
}
.dscard-sub{
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .14em;
  margin-top: 6px;
}
.dscard-wire{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,170,0.20), transparent);
}
.dscard-body{
  padding: 12px 12px 14px;
  font-size: 12px;
  color: rgba(240,255,250,.86);
  letter-spacing: .06em;
}
/* Studio Game Over Variants (swap bubble style) */

.goV{
  position: relative;
  background:#000;
  border: 1px solid rgba(0,255,170,0.18);
  border-radius: 18px;
  overflow:hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0,255,170,0.10),
    0 0 0 11px #000,
    0 0 0 12px rgba(0,255,170,0.14);
}

.goV-screen{
  position:absolute;
  inset: 0;
  border-radius: inherit;
  overflow:hidden;
  pointer-events:none;
}

/* dot matrix grill + scanlines */
.goV-screen::before{
  content:"";
  position:absolute;
  inset: 10px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,255,170,0.28) 1px, rgba(0,0,0,0) 2px) 0 0 / calc(var(--goDensity,6) * 1px) calc(var(--goDensity,6) * 1px),
    radial-gradient(circle at 1px 1px, rgba(0,255,170,0.12) 1px, rgba(0,0,0,0) 2px) 2px 2px / calc(var(--goDensity,6) * 1px) calc(var(--goDensity,6) * 1px),
    radial-gradient(circle at 30% 40%, rgba(0,255,170,0.14), rgba(0,0,0,0) 55%);
  opacity: 0.95;
}
.goV-screen::after{
  content:"";
  position:absolute;
  inset: 10px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 6px,
    rgba(0,0,0,0.25) 7px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.goV-text{
  position:absolute;
  inset: 8px;
  display:grid;
  place-items:center;
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.10em;
  text-align:center;
  white-space: nowrap;
  transform: translateX(-0.07em);
  color: transparent;
  background:
    radial-gradient(circle at 1px 1px, rgba(120,255,215,0.65) 1px, rgba(0,0,0,0) 2px) 0 0 / 6px 6px,
    radial-gradient(circle at 1px 1px, rgba(120,255,215,0.22) 1px, rgba(0,0,0,0) 2px) 2px 2px / 6px 6px;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0,255,170,0.18)) drop-shadow(0 0 22px rgba(0,255,170,0.12));
  z-index: 2;
  animation: go_flicker 2.8s infinite;
}

.goV-text--ghost{
  opacity: 0.22;
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events:none;
}
.goV-text--ghost.g1{ animation: go_glitch 1.8s infinite steps(2,end); }
.goV-text--ghost.g2{ animation: go_glitch 2.2s infinite steps(2,end); opacity: 0.18; }

@keyframes go_glitch{
  0%   { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  10%  { transform: translate(calc(-0.09em - 0.08em), -1px); clip-path: inset(10% 0 62% 0); }
  18%  { transform: translate(calc(-0.09em + 0.10em), 1px);  clip-path: inset(48% 0 28% 0); }
  28%  { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  40%  { transform: translate(calc(-0.09em + 0.06em), 0);    clip-path: inset(62% 0 12% 0); }
  52%  { transform: translate(calc(-0.09em - 0.10em), 0);    clip-path: inset(24% 0 48% 0); }
  66%  { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  100% { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
}
@keyframes go_flicker{ 0%,100%{opacity:1} 50%{opacity:.78} }

/* variants */
.goV--bubble{ height: 100px; }
.goV--wide{ height: 120px; }
.goV--wide{ box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 0 11px #000, 0 0 0 12px rgba(0,255,170,0.14); }
.goV--rail{
  height: 140px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10), 0 0 18px rgba(0,255,170,.08);
}
.goV--rail::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 18px;
  background: rgba(0,255,170,.06);
  box-shadow: inset -1px 0 0 rgba(0,255,170,0.18);
}
.goV--ghost{
  background: transparent;
  border-color: rgba(0,255,170,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.08), 0 0 18px rgba(0,255,170,.04);
}
.goV--ghost .goV-screen::after{ opacity: 0.18; }

@media (max-width: 900px){
  .goV-text{ font-size: clamp(46px, 10.5vw, 130px); inset: 10px; letter-spacing: 0.12em; }
}
/* Studio Socials */

.soc{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 2px 0;
}
.soc--inline{
  gap: 14px;
}
.soc-tag{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(0,255,170,0.18);
  background:#000;
  color: var(--fg);
  border-radius: 999px;
  padding: 10px 12px;
  text-decoration:none;
  letter-spacing: .12em;
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.soc-tag:active{ transform: translateY(1px); }
.soc-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,255,170,.48);
  box-shadow: 0 0 16px rgba(0,255,170,.14);
}
.soc-label{ font-size: 11px; }

.soc-edit{
  display:grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items:center;
  margin-top: 10px;
}
.soc-edithead{
  font-size: 10px;
  color: rgba(0,255,170,.9);
  letter-spacing: .16em;
}
.soc-edit .ds-input{
  grid-column: 2 / -1;
}
.cardx{
  background: #000;
  border: 1px solid var(--wire);
  border-radius: var(--cardRadius);
  box-shadow: inset 0 0 0 1px var(--wire2), 0 0 18px rgba(0,255,170,.08);
}
.cardx .wireline{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,170,.20), transparent);
}.widget{
  padding: 14px;
}
.widget-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.widget-title{
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(0,255,170,.88);
}
.row{ display:flex; gap: 10px; align-items: center; }
.field{
  display:flex; flex-direction:column; gap:6px; flex:1;
}
.label{
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .10em;
}
.select, .input{
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,170,0.18);
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  font-family: var(--mono);
  padding: 0 12px;
  outline: none;
}
.select{ appearance: none; }
.amountRow{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items:center;
}
.smallBtn{
  height: 42px;
  min-width: 88px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,170,0.22);
  background: #000;
  color: var(--fg);
  font-family: var(--mono);
  box-shadow: inset 0 0 0 1px rgba(0,255,170,0.10);
}
.smallBtn--accent{ background: rgba(0,255,170,.07); }
.sliderWrap{ display:flex; align-items:center; gap:10px; }
.slider{ width: 100%; }
.miniTop{
  display:grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}
.hr{ height:1px; background: rgba(0,255,170,.10); margin: 10px 0; }/* GAME OVER — clean, self-contained (no leakage) */

.go-card::before{
  content: none !important;
}

.go-card{
  background: #000;
  border: 1px solid rgba(0,255,170,0.18);
  border-radius: 18px;

  /* ✅ IMPORTANT: don't shrink the graphic area */
  padding: 0;

  /* ✅ restore original window height */
  height: 100px;
  min-height: 100px;

  box-shadow:
    inset 0 0 0 1px rgba(0,255,170,0.10),
    0 0 0 11px #000,
    0 0 0 12px rgba(0,255,170,0.14);

  /* ✅ let the screen fill the whole bubble */
  position: relative;
  overflow: hidden;
}


/* ✅ graphic fills the same bubble as the title */
.go-screen{
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
}

/* put title + wire on top of the full-screen graphic */
.go-card .card-title{
  position: relative;
  z-index: 5;
  padding: 10px 10px 0;
}

.go-card .wire{
  position: relative;
  z-index: 5;
  margin: 6px 10px 8px;
}



/* dot matrix grill */
.go-screen::before{
  content: "";
  position: absolute;
  inset: 10px; /* match .go-screen padding */
  background:
    radial-gradient(circle at 1px 1px, rgba(0,255,170,0.28) 1px, rgba(0,0,0,0) 2px) 0 0 / 6px 6px,
    radial-gradient(circle at 1px 1px, rgba(0,255,170,0.12) 1px, rgba(0,0,0,0) 2px) 2px 2px / 6px 6px,
    radial-gradient(circle at 30% 40%, rgba(0,255,170,0.14), rgba(0,0,0,0) 55%);
  opacity: 0.95;
}

/* scanlines */
.go-screen::after{
  content: "";
  position: absolute;
  inset: 10px; /* match .go-screen padding */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 6px,
    rgba(0,0,0,0.25) 7px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.go-text{
  position: absolute;
  inset: 8px; /* safety margin so text stays inside frame */
  display: grid;
  place-items: center;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;

  /* ✅ sized to stay inside 100px panel */
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.10em;



  text-align: center;
  white-space: nowrap;


  /* optical centering for spacing */
  transform: translateX(-0.07em);

  /* ✅ dot-matrix letters (fill text with dots) */
  color: transparent;
  background:
    radial-gradient(circle at 1px 1px, rgba(120,255,215,0.65) 1px, rgba(0,0,0,0) 2px) 0 0 / 6px 6px,
    radial-gradient(circle at 1px 1px, rgba(120,255,215,0.22) 1px, rgba(0,0,0,0) 2px) 2px 2px / 6px 6px;
  -webkit-background-clip: text;
  background-clip: text;

  /* glow like the example */
  filter: drop-shadow(0 0 10px rgba(0,255,170,0.18)) drop-shadow(0 0 22px rgba(0,255,170,0.12));

  z-index: 2;
  animation: go_flicker 2.8s infinite;
}


.go-text--ghost{
  opacity: 0.22;
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events: none;
}

.go-g1{ animation: go_glitch 1.8s infinite steps(2,end); }
.go-g2{ animation: go_glitch 2.2s infinite steps(2,end); opacity: 0.18; }

@keyframes go_glitch{
  0%   { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  10%  { transform: translate(calc(-0.09em - 0.08em), -1px); clip-path: inset(10% 0 62% 0); }
  18%  { transform: translate(calc(-0.09em + 0.10em), 1px);  clip-path: inset(48% 0 28% 0); }
  28%  { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  40%  { transform: translate(calc(-0.09em + 0.06em), 0);    clip-path: inset(62% 0 12% 0); }
  52%  { transform: translate(calc(-0.09em - 0.10em), 0);    clip-path: inset(24% 0 48% 0); }
  66%  { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
  100% { transform: translateX(-0.09em); clip-path: inset(0 0 0 0); }
}

@keyframes go_flicker{0%,100%{opacity:1}50%{opacity:.78}}

/* =====================================================
   MOBILE ONLY: Bigger GAME OVER panel + text
   ===================================================== */
@media (max-width: 900px){
  .go-card{
    /* Adjustment knob (mobile only): tweak this value if needed */
    height: var(--go-card-mobile-height, 100px);
    min-height: var(--go-card-mobile-height, 100px);
  }

  .go-text{
    font-size: clamp(46px, 10.5vw, 130px);
    inset: 10px;
    letter-spacing: 0.12em;
  }
}


@keyframes go_glitch1{
  0%   { clip-path: inset(0 0 100% 0); transform: translateX(0); opacity: 0; }
  7%   { clip-path: inset(22% 0 62% 0); transform: translateX(-2px); opacity: 0.22; }
  9%   { clip-path: inset(22% 0 62% 0); transform: translateX(-1px); opacity: 0.10; }
  30%  { clip-path: inset(0 0 100% 0); opacity: 0; }
  55%  { clip-path: inset(62% 0 24% 0); transform: translateX(-3px); opacity: 0.18; }
  57%  { clip-path: inset(62% 0 24% 0); transform: translateX(-1px); opacity: 0.08; }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

@keyframes go_glitch2{
  0%   { clip-path: inset(0 0 100% 0); transform: translateX(0); opacity: 0; }
  18%  { clip-path: inset(34% 0 48% 0); transform: translateX(3px); opacity: 0.16; }
  20%  { clip-path: inset(34% 0 48% 0); transform: translateX(1px); opacity: 0.07; }
  66%  { clip-path: inset(76% 0 10% 0); transform: translateX(2px); opacity: 0.18; }
  68%  { clip-path: inset(76% 0 10% 0); transform: translateX(1px); opacity: 0.08; }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; }
}
/* Give GO screen more usable height inside 100px card */
.go-card .wire{
  margin: 6px 0 8px;
}

.tweakDock{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.tweakToggle{
  pointer-events:auto;
}
.tweakPanel{
  width: 320px;
  padding: 12px;
}
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  align-items:center;
  margin-top: 10px;
}
.kv span{ font-size: 11px; color: var(--muted); letter-spacing: .10em; }
@media (max-width: 900px){
  .tweakDock{ left: 14px; right: 14px; }
  .tweakPanel{ width: auto; }
}/* Minimal global reset + font, all styling is component-scoped in /src/styles */
html, body {
  margin: 0;
  padding: 0;
  background: #050807;
}
* { box-sizing: border-box; }
button, input, select { font: inherit; }