/* twinsonice.link hub — custom CSS, no build step. Served per-module
   via the assets router (resources/assets/links/app.css). */
:root {
  color-scheme: dark;
  --bg: #090c10;
  --bg-elevated: #10151c;
  --card: #131a23;
  --text: #eef2f7;
  --muted: #9aa7b8;
  --border: #223041;
  --accent: #7dd3fc;
  --accent-ink: #06222e;
  --danger: #fda4af;
  --ok: #6ee7b7;
  --radius: 14px;
  --font-display: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(1100px 500px at 50% -10%, #14202f 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; fill: currentColor; }
.icon--brand { width: 26px; height: 26px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 12, 16, .85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar__brand { color: var(--text); font-family: var(--font-display); font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.topbar__host { color: var(--muted); font-size: .75rem; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 1.25rem 4rem; }

.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero__avatar img { border-radius: 50%; border: 3px solid var(--border); object-fit: cover; }
.hero h1 { font-family: var(--font-display); font-size: 2rem; margin: 1rem 0 .5rem; letter-spacing: .01em; }
.hero__tagline { color: var(--muted); max-width: 34rem; margin: 0 auto; }
.hero__tagline strong { color: var(--text); }
.socials { display: flex; gap: .6rem; justify-content: center; margin-top: 1.25rem; }
.socials a, .socials button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  padding: 0;
}
.socials a:hover, .socials button:hover { transform: translateY(-2px); border-color: var(--accent); }
.hero__followers { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.hero__followers strong { color: var(--text); }

.section { margin-top: 2.5rem; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section__head h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.section__hint { color: var(--muted); font-size: .8rem; }

.stories-wrapper { display: flex; align-items: center; gap: .5rem; }
.stories { display: flex; gap: .9rem; overflow-x: auto; padding: .5rem .1rem; scrollbar-width: none; flex: 1; }
.stories::-webkit-scrollbar { display: none; }
.stories-scroll-btn {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.story { background: none; border: none; color: var(--text); cursor: pointer; padding: 0; width: 78px; flex: none; }
.story__ring {
  display: block; width: 74px; height: 74px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 180deg, var(--accent), #c4b5fd, var(--accent));
  position: relative;
}
.story__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg); background: var(--bg-elevated); }
.story__badge {
  position: absolute; right: 2px; bottom: 2px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .65rem; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.story__label { display: block; margin-top: .35rem; font-size: .72rem; color: var(--muted); }
.stories-empty { color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }

.cards { display: grid; gap: .8rem; }
.card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card__body { flex: 1; min-width: 0; }
.card__title { display: block; font-family: var(--font-display); font-weight: 700; }
.card__desc { display: block; color: var(--muted); font-size: .85rem; }
.card__go { color: var(--accent); font-size: 1.3rem; }
.card__cover img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }

.row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.btn, .btn-submit {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; border: none; border-radius: 10px; padding: .7rem 1.2rem;
  text-decoration: none; cursor: pointer; font-size: .95rem;
}
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

.modal { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 9, .8); align-items: center; justify-content: center; padding: 1rem; }
.modal--open { display: flex; }
.modal__frame {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 1.5rem; position: relative;
}
.modal__close {
  position: absolute; top: .7rem; right: .7rem;
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.modal__media img, .modal__media video { max-width: 100%; border-radius: 10px; display: block; margin: 0 auto; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .6rem .8rem; font: inherit;
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-status { margin-top: .75rem; font-size: .9rem; min-height: 1.4em; }
.form-status--ok { color: var(--ok); }
.form-status--error { color: var(--danger); }

.footer { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 3rem; }
.footer__nav { display: flex; gap: .75rem; justify-content: center; margin: .5rem 0; }
.footer__credits, .footer__credits a { color: var(--muted); font-size: .75rem; }

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .section__head { flex-direction: column; gap: .1rem; align-items: flex-start; }
}
