/* Mismos colores que la app (src/theme.ts del frontend) */
:root {
  --paper: #fbf1dc;
  --paper-dark: #efdcb8;
  --text: #2a1f1d;
  --muted: #6b5a4c;
  --shell: #f2727f;
  --lcd: #c4cfa1;
  --ink: #1c2414;
  --bezel: #fff4e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1,
h2,
.brand {
  font-family: "Press Start 2P", monospace;
  line-height: 1.5;
}

h1 {
  font-size: 20px;
  margin: 24px 0 8px;
}

h2 {
  font-size: 13px;
  margin: 40px 0 12px;
}

a {
  color: #b23a4b;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
}

header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 3px solid var(--text);
}

.brand {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.lang {
  margin-left: auto;
  font-size: 15px;
}

/* Recuadro con estética de pantalla LCD para lo más importante */
.lcd {
  background: var(--lcd);
  color: var(--ink);
  border: 3px solid var(--text);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.lcd ul {
  margin: 0;
  padding-left: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 2px solid var(--paper-dark);
}

th {
  background: var(--bezel);
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}

/* Portada */
.hero {
  text-align: center;
  padding-top: 40px;
}

.hero img {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  border: 4px solid var(--text);
}

.hero h1 {
  font-size: 26px;
}

.hero p {
  font-size: 19px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  background: #ffd23f;
  color: var(--text);
  border: 3px solid var(--text);
  border-bottom-width: 6px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  h1 {
    font-size: 16px;
  }
  .hero h1 {
    font-size: 20px;
  }
  table {
    font-size: 14px;
  }
}
