@import url("brand.css");

/* Mobile-first reach preview — white field, red accent */
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--c-bg);
  font-family: var(--font);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-red);
}

.app-bar .back {
  color: var(--c-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-bar .back:hover { text-decoration: underline; }

.app-title {
  font-weight: 700;
  flex: 1;
  text-align: center;
  color: var(--c-text);
}

.badge {
  font-size: 0.62rem;
  background: var(--c-red);
  color: var(--c-white);
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.seg {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.seg-btn {
  flex: 1;
  font: inherit;
  font-size: 0.72rem;
  padding: 9px 4px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-text-secondary);
  cursor: pointer;
}

.seg-btn:hover {
  border-color: var(--c-red-muted);
  color: var(--c-red-dark);
}

.seg-btn.active {
  background: var(--c-red);
  color: var(--c-white);
  border-color: var(--c-red);
  font-weight: 600;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  background: var(--c-white);
}

.toolbar label {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text);
}

.toolbar select,
.toolbar button {
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  margin-top: 4px;
  width: 100%;
}

.toolbar button {
  width: auto;
  background: var(--c-red);
  color: var(--c-white);
  font-weight: 600;
  border: none;
  padding: 10px 16px;
}

.toolbar button:hover { background: var(--c-red-dark); }

.meta {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 0.75rem;
  color: var(--c-text-secondary);
}

.meta.warn {
  color: var(--c-warn-text);
  background: var(--c-warn-bg);
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 8px;
}

.content {
  flex: 1;
  padding: 0 16px 24px;
  overflow-y: auto;
}

.content h1 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--c-text);
}

.content article {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.content h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-red-dark);
  margin: 0 0 8px;
  font-weight: 700;
}

.content p,
.content li {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--c-text);
}

.content .codename {
  margin-top: 16px;
  padding: 14px;
  background: var(--c-red-soft);
  border: 1px solid var(--c-red-muted);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-red-dark);
}

.radio-script {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--c-bg);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

.world-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.world-item .tier {
  font-size: 0.7rem;
  color: var(--c-red);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}

.world-item h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--c-text);
}

.app-foot {
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--c-text-secondary);
  border-top: 1px solid var(--c-border);
  text-align: center;
  background: var(--c-bg);
}

.app-foot a {
  color: var(--c-red);
  font-weight: 600;
}

@media (min-width: 500px) {
  body { padding: 24px 0; background: #e7e5e4; }
  .phone-frame {
    border-radius: 20px;
    min-height: 85vh;
    border: 1px solid var(--c-border);
  }
}
