: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); }.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%; }
}/* 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;
}

.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; }.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; }