
:root {
  --bg: #000;
  --panel: #050505;
  --red: #8c0e0e;
  --red2: #5a0606;
  --cyan: #33e3ce;
  --cyan2: #95fff2;
  --gold: #efcf67;
  --amber: #d58c24;
  --text: #ece8d0;
  --white: #f2f2f2;
  --green: #42e25a;
  --blue: #4ea3ff;
  --purple: #b74fff;
  --soft: #cfcfcf;
  --gray: #b8b8b8;
  --dark-red-text: #ffb6b6;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; min-height:100%; }
body {
  background: #000;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
}
button, input, select, textarea { font: inherit; }
#app {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px;
}
.wrap {}
.game {
  background: var(--panel);
  border: 4px solid #8b8b8b;
  box-shadow: inset 0 0 0 2px #111;
}
.topbar {
  background: var(--red);
  color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  font-size: 20px;
}
.topright { display:flex; align-items:center; gap:12px; }
.scorebox {
  background: #d7d7d7;
  color: #000;
  border: 2px solid #fff;
  padding: 2px 6px;
  font-weight: 700;
}
.stars { display:flex; gap:4px; }
.star {
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: #2b2b2b;
  border: 1px solid #d7bd43;
}
.star.filled {
  background: #f2d65c;
  box-shadow: 0 0 6px rgba(242, 214, 92, 0.45);
}
.instr {
  background: #030303;
  border-bottom: 2px solid #941010;
  padding: 4px 10px;
  color: #f2f2f2;
  font-size: 15px;
}
.main {
  display: grid;
  grid-template-columns: 1.08fr 56px 1.18fr;
  min-height: 620px;
}
.left {
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}
.mid {
  background: #5ebfd0;
  color: #311313;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 2px;
  font-size: 18px;
  padding: 12px 0;
  user-select: none;
}
.right {
  background: #940f0f;
  padding: 10px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 10px;
}
.panel {
  border: 2px solid var(--cyan);
  background: #030303;
  box-shadow: inset 0 0 0 2px #000;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel.red { border-color: #6a0b0b; }
.panel.black { border-color: #111; }
.panel.orange { border-color: #38d8d2; background: #9a4508; }
.panel.teal { border-color: #29d4c9; background: #081313; }
.panel-title {
  padding: 4px 8px 2px 8px;
  color: #f2f2f2;
  font-size: 16px;
  white-space: nowrap;
}
.panel-body {
  padding: 4px 8px 8px 8px;
  flex: 1;
  overflow: auto;
}
.panel-sub { color: #83f0cd; margin: 4px 0 6px; font-size: 14px; }
.view-strip, .region-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.view-strip button, .region-strip button, .prompt-choice, .action-button, .inline-button {
  background: #050505;
  color: var(--text);
  border: 1px solid var(--cyan);
  padding: 5px 8px;
  cursor: pointer;
}
.view-strip button.active, .region-strip button.active, .action-button.active {
  background: var(--amber);
  color: #0a0a0a;
}
.menu-item {
  display: flex;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted #7d2323;
  padding: 5px 6px;
  margin-bottom: 1px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.menu-item .hot { color: var(--cyan2); width: 20px; font-weight: 700; }
.menu-item.selected {
  background: var(--amber);
  color: #0a0a0a;
}
.menu-item.selected .hot { color: #0a0a0a; }
.mono-line { white-space: pre-wrap; }
.orangebig {
  color: #f4d86b;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: 2px;
  padding-left: 8px;
  user-select: none;
}
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 10px;
}
.bottombar {
  background: var(--red);
  color: #e9e9e9;
  padding: 6px 10px;
  display: grid;
  gap: 6px;
}
.meta-row, .function-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.meta-row span { color: var(--gray); font-size: 15px; }
.function-row span { font-size: 17px; }
.function-row .fkey { color: #cfcfcf; }
.function-row .ftext { color: var(--cyan2); margin-right: 8px; }
.help {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  color: #cfcfcf;
  font-size: 13px;
}
.type-area { min-height: 128px; }
.type-line { min-height: 1.25em; margin-bottom: 4px; white-space: pre-wrap; }
.go-standard { color: var(--white); }
.go-offer { color: #ffd56f; }
.go-gig { color: var(--dark-red-text); }
.go-booking { color: #d498ff; }
.go-warning { color: #ff9b9b; }
.gv-single { color: var(--green); }
.gv-album { color: var(--blue); }
.gv-basic { color: #d5d5d5; }
.gv-alert { color: #ffd56f; }

.starcard {
  border: 2px solid var(--red);
  background: #070707;
  padding: 6px 8px 8px;
  margin-bottom: 10px;
}
.star-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f0f0f0;
  font-size: 14px;
  margin-bottom: 6px;
}
.starbar {
  position: relative;
  height: 22px;
  border: 1px solid #ffffff;
  background: #220707;
  overflow: hidden;
}
.starfill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff8a00, #ffd200 60%, #fff29a);
  box-shadow: 0 0 10px rgba(255, 210, 0, 0.25);
}
.startext {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #000;
  font-weight: 700;
  mix-blend-mode: screen;
}
.meter-title, .meter-stage, .meter-sub { writing-mode: vertical-rl; transform: rotate(180deg); }
.meter-title { color: #311313; font-size: 14px; letter-spacing: 3px; }
.mid-meter {
  position: relative;
  width: 18px;
  flex: 1;
  border: 2px solid #311313;
  background: rgba(49,19,19,0.25);
  margin: 10px 0;
  display: flex;
  align-items: flex-end;
}
.mid-fill {
  width: 100%;
  background: linear-gradient(180deg, #fff4a3, #ffb300 60%, #ff5e00);
  box-shadow: 0 0 8px rgba(255, 190, 0, 0.3);
}
.meter-stage { color: #311313; font-size: 13px; }
.meter-sub { color: #311313; font-size: 12px; }

.small { font-size: 12px; color: #ddd2ba; }
.feedback-label { color: #ffd56f; }
.feedback-value { color: #ffe5a4; margin-bottom: 8px; }
.state-mode { color: var(--cyan2); margin-bottom: 6px; }
.tealtext { color: var(--cyan2); }
.stat-sep { height: 7px; }
.list-item, .chart-item, .release-item, .prompt-item, .song-item {
  padding: 6px 0;
  border-bottom: 1px dotted #9c1c1c;
}
.list-item:last-child, .chart-item:last-child, .release-item:last-child, .prompt-item:last-child, .song-item:last-child { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border: 1px solid var(--cyan);
  font-size: 11px;
  background: #000;
  color: var(--white);
  text-transform: uppercase;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.modal {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #1d0222;
  border: 4px solid #ff52ff;
  box-shadow: inset 0 0 0 3px #9f53c9;
  color: #ffd7ff;
  padding: 12px 14px 14px;
}
.modal h3 { margin: 0 0 10px 0; font-size: 22px; color: #ffb1ff; }
.form-row { margin-bottom: 10px; }
.form-row label {
  display:block;
  margin-bottom:4px;
  font-size: 12px;
  color: #ffcf71;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  background: #050505;
  color: #fff;
  border: 1px solid #c9a25f;
  padding: 8px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.archive-mini {
  margin-top: 8px;
  border-top: 1px dotted #7d2323;
  padding-top: 6px;
}
.archive-item {
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 4px;
  max-height: 2.6em;
  overflow: hidden;
}
.modal button {
  min-width: 120px;
  text-align: center;
  padding: 8px 12px;
  background: #180018;
  color: #fff;
  border: 4px solid #c9a25f;
  cursor: pointer;
}
.modal button:hover { background: #f8de7e; color: #000; }
.footer-note { margin-top: 8px; color: #ffe38c; font-size: 12px; line-height: 1.35; }
.start-box p { margin: 0 0 10px; }
@media (max-width: 940px) {
  .main { grid-template-columns: 1fr; }
  .mid { display: none; }
  .feedback-grid { grid-template-columns: 1fr; }
  .orangebig { font-size: 54px; }
}

.modal button:focus, .view-strip button:focus, .region-strip button:focus, .menu-item:focus, .inline-button:focus {
  outline: 2px solid #f8de7e;
  outline-offset: 1px;
}
.modal button[data-modal-action] {
  width: 100%;
  min-width: 0;
}
