/* Night Shift — game layout. Palette, fonts, body grid, buttons, selection and
   focus styles all come from /style.css (ink & signal); this file only adds the
   game shell. */

.game-page {
  max-width: 40rem;
}

/* The engine toggles visibility via the hidden attribute; explicit display
   values below (flex on .status/.enemy) would otherwise override it. */
[hidden] {
  display: none !important;
}

.game-title a {
  color: inherit;
  text-decoration: none;
}

/* Status bar */

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 0.25rem;
}

.pips {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.pips .lost {
  color: var(--text-faint);
}

.stat-items {
  flex: 1;
  min-width: 12rem;
}

#v-items {
  color: var(--text-muted);
}

/* Scene */

.scene {
  position: relative;
  padding: 1.6rem 1.7rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.scene h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.scene h2:empty {
  display: none;
}

#scene-text p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

/* Dice / combat feedback */

.log {
  margin: 0.9rem 0;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  white-space: pre-line;
}

/* Enemy plate (combat) */

.enemy {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-dim);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.enemy .pips {
  font-family: var(--font-mono);
}

/* Choices */

.choices {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.choice:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
}

.choice .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.choice:disabled .tag {
  color: var(--text-faint);
}

/* Ending flourish */

.scene.is-ending {
  border-color: var(--accent);
  box-shadow: 0 8px 28px -10px var(--card-shadow);
}

.ending-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 1rem;
}

/* Meta row */

.game-meta {
  margin: 1.1rem 0 0;
  text-align: right;
}

.linklike {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linklike:hover {
  color: var(--accent);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .scene {
    animation: rise 0.4s ease-out backwards;
  }
}
