/* Simon program — classic memory game styles scoped to the simon window. */

.window--simon {
  --bg-simon: #0d0d0d;
  --hub-bg: #1a1a1a;
  --text-dim: #888888;
  --neon-green: #39ff14;
  --font-heading: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;
  max-width: 640px;
}

.window--simon .window-body {
  padding: 24px;
  background: var(--bg-simon);
}

.simon-layout {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.simon-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.simon-disc {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8), inset 0 0 0 4px #1f1f1f;
}

.simon-pad {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: filter 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.simon-pad:disabled {
  cursor: default;
}

.simon-pad--green {
  background: #00a74a;
  border-radius: 100% 0 0 0;
}

.simon-pad--red {
  background: #9f0f17;
  border-radius: 0 100% 0 0;
}

.simon-pad--yellow {
  background: #cca707;
  border-radius: 0 0 0 100%;
}

.simon-pad--blue {
  background: #094a8f;
  border-radius: 0 0 100% 0;
}

.simon-pad--green.is-lit {
  background: #40ff8c;
  box-shadow: 0 0 26px #40ff8c;
}

.simon-pad--red.is-lit {
  background: #ff4c56;
  box-shadow: 0 0 26px #ff4c56;
}

.simon-pad--yellow.is-lit {
  background: #ffe14d;
  box-shadow: 0 0 26px #ffe14d;
}

.simon-pad--blue.is-lit {
  background: #3aa0ff;
  box-shadow: 0 0 26px #3aa0ff;
}

.simon-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--hub-bg);
  border: 4px solid #000;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
}

.simon-hub-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 1px;
}

.simon-status {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.15;
  min-height: 2.3em;
  display: flex;
  align-items: center;
}

.simon-btn {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--bg-simon);
  background: var(--neon-green);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.simon-btn:hover {
  filter: brightness(1.1);
}

.simon-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.simon-btn.is-hidden {
  display: none;
}

.simon-btn--small {
  font-size: 0.55rem;
  padding: 8px 12px;
}

.simon-submit {
  display: flex;
  gap: 8px;
  align-items: center;
}

.simon-submit.is-hidden {
  display: none;
}

.simon-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 7px 10px;
  width: 130px;
  text-transform: uppercase;
}

.simon-name:focus {
  outline: none;
  border-color: var(--neon-green);
}

.simon-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 150px;
}

.simon-panel {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 10px 12px;
}

.simon-panel-label {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.simon-panel-value {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--neon-green);
  line-height: 1;
}

.simon-scores {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #ccc;
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.5;
}

.simon-scores .simon-scores-empty {
  list-style: none;
  margin-left: -1.4em;
  color: var(--text-dim);
}

.simon-scores-name {
  margin-right: 6px;
}

.simon-scores-score {
  float: right;
  color: var(--neon-green);
}

.simon-help {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .simon-layout {
    flex-direction: column;
    align-items: center;
  }

  .simon-side {
    width: 100%;
    max-width: 320px;
  }

  .simon-disc {
    width: 280px;
    height: 280px;
  }
}
