/* ============================================
   MAIN — Estils principals del joc
   ============================================ */

/* Reset mínim */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-family, 'Press Start 2P', monospace);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Tipografies: retro (per defecte) i accessible */
body:not([data-font-family]),
[data-font-family="retro"] {
  --font-family: 'Press Start 2P', monospace;
}

[data-font-family="accessible"] {
  --font-family: 'Verdana', 'Arial', sans-serif;
}

/* Contenidor principal */
#app {
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: relative;
}

/* ============================================
   PANTALLES — Contenidors de cada vista
   ============================================ */

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.4s ease-out;
}

.screen--active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1 {
  font-size: 1.2rem;
  color: var(--text-title);
  text-align: center;
  text-shadow: var(--glow-intensity);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 0.85rem;
  color: var(--text-accent);
  text-shadow: var(--glow-intensity);
  margin-bottom: 1rem;
}

p, .narrative-text {
  font-size: var(--font-body, 0.7rem);
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-muted);
  font-size: var(--font-muted, 0.55rem);
}

.text-accent {
  color: var(--text-accent);
}

.text-danger {
  color: var(--text-danger);
}

.text-success {
  color: var(--text-success);
}

/* ============================================
   BOTONS
   ============================================ */

.btn {
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-btn, 0.6rem);
  padding: 0.8rem 1.2rem;
  background-color: var(--bg-button);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  cursor: pointer;
  text-align: left;
  line-height: 1.8;
  transition: all 0.15s ease;
  position: relative;
}

.btn:hover,
.btn:focus {
  background-color: var(--bg-button-hover);
  border-color: var(--text-accent);
  color: var(--text-accent);
  outline: none;
  box-shadow: var(--glow-intensity);
}

.btn:active {
  background-color: var(--bg-button-active);
  transform: scale(0.98);
}

.btn::before {
  content: '> ';
  color: var(--text-accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.btn:hover::before,
.btn:focus::before {
  opacity: 1;
}

/* Botó centrat (per a accions principals) */
.btn--center {
  text-align: center;
}

.btn--center::before {
  display: none;
}

/* Botó icona (toolbar del joc) */
.btn--icon {
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  line-height: 1;
  min-width: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn--icon::before {
  display: none;
}

/* Contenidor de botons d'opció — ancorat al fons de la pantalla */
.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  flex-shrink: 0;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .choices {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   ÀREA NARRATIVA
   ============================================ */

.narrative {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 0;
  min-height: 0;
  overflow-y: auto;
}

.narrative-text {
  white-space: pre-wrap;
}

/* Cursor parpellejant estil terminal */
.cursor {
  display: inline-block;
  width: 0.6rem;
  height: 1rem;
  background-color: var(--text-accent);
  animation: blink 0.8s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   PANELL / CAPSA
   ============================================ */

.panel {
  background-color: var(--bg-panel);
  border: 2px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   UTILITATS
   ============================================ */

.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.text-center { text-align: center; }

/* ============================================
   TITLE SCREEN
   ============================================ */

.title-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  gap: 2rem;
}

.title-screen__logo {
  text-align: center;
}

.title-screen__subtitle {
  margin-top: 1.5rem;
}

.title-screen__prompt {
  animation: blink 1.2s step-end infinite;
}

.title-screen__version {
  margin-top: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  transition: color 0.15s ease;
}

.title-screen__version:hover {
  color: var(--text-accent);
}

/* Changelog overlay */
.title-screen__changelog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.title-screen__changelog-box {
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
}

.title-screen__changelog-box h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.title-screen__changelog-entry {
  margin-bottom: 1.5rem;
}

.title-screen__changelog-entry ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.title-screen__changelog-entry li {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2.2;
  padding-left: 1rem;
}

.title-screen__changelog-entry li::before {
  content: '> ';
  color: var(--text-accent);
}

.title-screen__changelog-close {
  margin-top: 1rem;
  width: 100%;
}

/* ============================================
   MENU SCREEN
   ============================================ */

.menu-screen {
  display: flex;
  flex-direction: column;
  height: 90vh;
  overflow: hidden;
}

.menu-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-screen__header h1 {
  margin-bottom: 0;
}

.menu-screen__adventures {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.menu-screen__card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  background-color: var(--bg-panel);
  border: 2px solid var(--border-color);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  transition: all 0.15s ease;
}

.menu-screen__card:hover,
.menu-screen__card:focus {
  border-color: var(--text-accent);
  box-shadow: var(--glow-intensity);
  outline: none;
}

.menu-screen__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-screen__card-title {
  font-size: var(--font-btn, 0.6rem);
  color: var(--text-title);
  text-shadow: var(--glow-intensity);
}

.menu-screen__card-difficulty {
  font-size: var(--font-muted, 0.55rem);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.menu-screen__card-difficulty--easy {
  color: var(--text-success);
  border-color: var(--text-success);
}

.menu-screen__card-difficulty--medium {
  color: var(--text-warning, #f0ad4e);
  border-color: var(--text-warning, #f0ad4e);
}

.menu-screen__card-difficulty--hard {
  color: var(--text-danger);
  border-color: var(--text-danger);
}

.menu-screen__card-desc {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 0;
}

.menu-screen__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
}

.menu-screen__card-meta i {
  color: var(--text-accent);
  margin-right: 0.2rem;
}

/* Filtre de dificultat */
.menu-screen__filter {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.menu-screen__filter-btn {
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  padding: 0.3rem 0.7rem;
  background-color: var(--bg-button);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-screen__filter-btn:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.menu-screen__filter-btn--active {
  border-color: var(--text-accent);
  background-color: var(--bg-button-active);
  color: var(--text-accent);
}

/* Filtre d'idioma */
.menu-screen__lang-filter {
  margin-bottom: 0.5rem;
}

/* Botó enviar aventura */
/* Header — accions a la dreta */
.menu-screen__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-screen__create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  padding: 0.5rem 0.8rem;
  color: var(--text-accent);
  background-color: var(--bg-button);
  border: 2px solid var(--text-accent);
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-screen__create-btn:hover {
  background-color: var(--bg-button-hover);
}

/* CTA — bloc unificat per crear/enviar aventura */
.menu-screen__cta {
  margin-top: 1rem;
  border: 2px dashed var(--border-color);
  padding: 1rem 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.menu-screen__cta-text {
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 0.8rem;
}

.menu-screen__cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.menu-screen__cta-editor,
.menu-screen__cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-screen__cta-editor {
  color: var(--text-accent);
  background-color: var(--bg-button);
  border: 2px solid var(--text-accent);
}

.menu-screen__cta-editor:hover {
  background-color: var(--bg-button-hover);
}

.menu-screen__cta-email {
  color: var(--text-secondary);
  background-color: transparent;
  border: 2px solid var(--border-color);
}

.menu-screen__cta-email:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

/* Overlay enviar aventura */
.menu-screen__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.menu-screen__overlay-box {
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
}

.menu-screen__overlay-box h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.menu-screen__overlay-content p {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 0.8rem;
}

.menu-screen__overlay-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.menu-screen__overlay-content li {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2.2;
  padding-left: 1rem;
}

.menu-screen__overlay-content li::before {
  content: '> ';
  color: var(--text-accent);
}

.menu-screen__overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.menu-screen__overlay-actions a {
  text-decoration: none;
}


/* ============================================
   SETTINGS SCREEN
   ============================================ */

.settings-screen {
  display: flex;
  flex-direction: column;
  min-height: 90vh;
}

.settings-screen__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  flex: 1;
}

.settings-screen__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
  padding: 1rem;
}

.settings-screen__label {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-primary);
}

.settings-screen__toggle-btn {
  min-width: 5rem;
  text-align: center;
  font-size: var(--font-muted, 0.5rem);
}

/* Selector de mida de font: 3 botons Aa */
.settings-screen__font-sizes {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.settings-screen__font-btn {
  padding: 0.5rem 0.7rem;
  text-align: center;
  min-width: auto;
  border: 2px solid var(--border-color);
  background-color: var(--bg-button);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  transition: all 0.15s ease;
}

/* Selector de tipografia */
.settings-screen__fontfamily-btn {
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: auto;
  border: 2px solid var(--border-color);
  background-color: var(--bg-button);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--font-muted, 0.55rem);
  transition: all 0.15s ease;
}

.settings-screen__fontfamily-btn:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.settings-screen__fontfamily-btn--active {
  border-color: var(--text-accent);
  background-color: var(--bg-button-active);
  color: var(--text-accent);
  box-shadow: var(--glow-intensity);
}

.settings-screen__fontfamily-btn--retro {
  font-family: 'Press Start 2P', monospace;
}

.settings-screen__fontfamily-btn--accessible {
  font-family: 'Verdana', 'Arial', sans-serif;
}

/* Selector d'idioma */
.settings-screen__lang-btn {
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: auto;
  border: 2px solid var(--border-color);
  background-color: var(--bg-button);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: var(--font-muted, 0.55rem);
  transition: all 0.15s ease;
}

.settings-screen__lang-btn:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.settings-screen__lang-btn--active {
  border-color: var(--text-accent);
  background-color: var(--bg-button-active);
  color: var(--text-accent);
  box-shadow: var(--glow-intensity);
}

.settings-screen__font-btn:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.settings-screen__font-btn--active {
  border-color: var(--text-accent);
  background-color: var(--bg-button-active);
  color: var(--text-accent);
  box-shadow: var(--glow-intensity);
}

.settings-screen__font-btn--small {
  font-size: 0.45rem;
}

.settings-screen__font-btn--medium {
  font-size: 0.65rem;
}

.settings-screen__font-btn--large {
  font-size: 0.85rem;
}

.settings-screen__font-btn--x-large {
  font-size: 1.05rem;
}

.settings-screen__font-btn--xx-large {
  font-size: 1.25rem;
}

.settings-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-screen__header h1 {
  margin-bottom: 0;
}

@media (max-width: 500px) {
  .settings-screen__options {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GAME SCREEN
   ============================================ */

.game-screen {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 3rem);
  max-height: calc(100vh - 3rem);
  position: relative;
  padding-right: 2.5rem;
}

@media (max-width: 600px) {
  .game-screen {
    padding-right: 0;
  }
}

.game-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.game-screen__header h2 {
  margin-bottom: 0;
}

.game-screen__toolbar {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Tints de fons per a finals — aplicat al body sencer */
body.game-screen--death {
  background-color: #1a0808 !important;
  transition: background-color 1s ease;
}

body.game-screen--victory {
  background-color: #081a0c !important;
  transition: background-color 1s ease;
}

[data-theme="light"].game-screen--death {
  background-color: #f0d8d4 !important;
}

[data-theme="light"].game-screen--victory {
  background-color: #d4f0d8 !important;
}

/* Comptador de morts a la toolbar */
.game-screen__death-counter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  white-space: nowrap;
}

/* Bloc de resultat inline */
.game-screen__ending-result {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 1rem;
  border: 2px solid var(--border-color);
  animation: fadeIn 0.6s ease-out;
}

.game-screen__ending-label {
  font-size: var(--font-subtitle, 0.85rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.game-screen__ending-title {
  font-size: var(--font-body, 0.7rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

.game-screen__death-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.game-screen__death-count {
  font-size: var(--font-btn, 0.6rem);
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.game-screen__death-msg {
  font-size: var(--font-muted, 0.55rem);
  color: var(--text-secondary);
  line-height: 2;
}

/* Temporitzador — widget termòmetre 8-bit */
.game-screen__timer {
  position: absolute;
  right: -2.5rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

.game-screen__timer-text {
  font-family: var(--font-family, 'Press Start 2P', monospace);
  font-size: 0.45rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.game-screen__timer-frame {
  flex: 1;
  width: 18px;
  border: 3px solid var(--border-color);
  background-color: var(--bg-secondary);
  position: relative;
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, 0.3),
    inset -1px -1px 0 rgba(255, 255, 255, 0.05),
    0 0 6px rgba(0, 0, 0, 0.4);
}

/* Decoració 8-bit: marques laterals */
.game-screen__timer-frame::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-color) 0px,
    var(--border-color) 2px,
    transparent 2px,
    transparent 10px
  );
}

.game-screen__timer-fill {
  --timer-pct: 100%;
  --timer-color: var(--text-success, #0f0);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--timer-pct);
  background-color: var(--timer-color);
  transition: height 1s linear, background-color 2s ease;
  box-shadow:
    0 0 8px var(--timer-color),
    inset 2px 0 0 rgba(255, 255, 255, 0.15);
  image-rendering: pixelated;
}

/* Pixelat: segments horitzontals dins la barra */
.game-screen__timer-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 4px,
    rgba(0, 0, 0, 0.2) 4px,
    rgba(0, 0, 0, 0.2) 6px
  );
}

.game-screen__timer--expired .game-screen__timer-fill {
  animation: timerBlink 0.5s step-end infinite;
}

.game-screen__timer--expired .game-screen__timer-text {
  color: var(--text-danger);
  animation: timerBlink 0.5s step-end infinite;
}

@keyframes timerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.game-screen__timer-summary {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

/* Mòbil: termòmetre horitzontal sota el header */
@media (max-width: 600px) {
  .game-screen__timer {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    flex-direction: row-reverse;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .game-screen__timer-frame {
    flex: 1;
    width: auto;
    height: 16px;
  }

  .game-screen__timer-frame::before {
    left: 0;
    right: 0;
    top: -7px;
    bottom: auto;
    width: auto;
    height: 4px;
    background: repeating-linear-gradient(
      to right,
      var(--border-color) 0px,
      var(--border-color) 2px,
      transparent 2px,
      transparent 10px
    );
  }

  .game-screen__timer-fill {
    bottom: 0;
    top: 0;
    left: 0;
    right: auto;
    height: auto;
    width: var(--timer-pct);
    transition: width 1s linear, background-color 2s ease;
  }

  .game-screen__timer-fill::after {
    background: repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 4px,
      rgba(0, 0, 0, 0.2) 4px,
      rgba(0, 0, 0, 0.2) 6px
    );
  }
}

/* ============================================
   END SCREEN
   ============================================ */

.end-screen {
  display: flex;
  flex-direction: column;
  min-height: 90vh;
}

.end-screen__banner {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
}

.end-screen__banner--good {
  border-color: var(--text-success);
}

.end-screen__banner--bad {
  border-color: var(--text-danger);
}

.end-screen__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.end-screen__banner--good .end-screen__result {
  color: var(--text-success);
}

.end-screen__banner--bad .end-screen__result {
  color: var(--text-danger);
}

.end-screen__title {
  color: var(--text-secondary);
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  #app {
    padding: 1rem;
  }

  h1 {
    font-size: 0.9rem;
  }

  p, .narrative-text {
    font-size: 0.6rem;
  }

  .btn {
    font-size: 0.55rem;
    padding: 0.7rem 1rem;
  }
}
