/*
  GamuCosu unified theme layer.
  Uses the same visual system as Hoyo Ops and GearGumi while keeping cosplay
  identity as small accents instead of a separate page theme.
*/

:root {
  color-scheme: light;
  --bg: #f0f2f8;
  --bg-tint:
    radial-gradient(circle at 20% 12%, rgba(47, 95, 215, 0.1), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(104, 70, 183, 0.08), transparent 30%),
    linear-gradient(180deg, #f6f8ff 0%, #eef1f8 100%);
  --surface: #ffffff;
  --surface-sunk: #f5f7fb;
  --surface-nested: #fbfcff;
  --ink: #1a1d2e;
  --muted: #5f6678;
  --line: #e4e7ee;
  --line-strong: #cdd1dc;
  --line-soft: #eef0f5;
  --blue: #2f5fd7;
  --blue-dark: #2148ab;
  --blue-soft: #eef4ff;
  --green: #007a5f;
  --green-soft: #e6f7f1;
  --gold: #8a5a00;
  --gold-soft: #fff6da;
  --red: #b42318;
  --red-soft: #ffebe7;
  --violet: #6846b7;
  --violet-soft: #f0ecff;
  --pink: #c93f76;
  --pink-soft: #fff0f6;
  --shadow-sm: 0 12px 30px rgba(25, 31, 56, 0.07);
  --shadow-md: 0 24px 70px rgba(25, 31, 56, 0.12);
  --ring: 0 0 0 4px rgba(47, 95, 215, 0.16);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1040px;
}

html {
  background: var(--bg);
}

body,
.links-page {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(26, 29, 46, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(26, 29, 46, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-tint), var(--bg);
  font-family: "Outfit", "IBM Plex Sans Thai", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::selection {
  color: #ffffff;
  background: var(--blue);
}

h1,
h2,
h3,
.link-copy strong,
.mini-profile strong,
.stats-strip strong,
.feature-panel h2 {
  color: var(--ink);
  font-family: "Outfit", "IBM Plex Sans Thai", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

p,
.bio,
.link-copy span,
.mini-profile span,
.feature-panel p,
.stats-strip span {
  color: var(--muted);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.skip-link {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.page-shell {
  width: min(100% - 28px, var(--max));
  padding-block: 24px 44px;
}

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 22px;
}

.hero-copy,
.profile-stage,
.stats-strip,
.link-card,
.feature-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.hero-copy {
  min-height: auto;
  padding: clamp(22px, 5vw, 38px);
}

.eyebrow {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.handle {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(47, 95, 215, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  width: fit-content;
}

.button {
  min-height: 44px;
  border-radius: 13px;
  touch-action: manipulation;
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(47, 95, 215, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-ghost:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.profile-stage {
  overflow: hidden;
}

.photo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--surface-sunk);
}

.photo-frame img {
  filter: saturate(0.98) contrast(0.98);
}

.mini-profile {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stats-strip {
  gap: 0;
  padding: 8px;
}

.stats-strip div {
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.section-head h2 {
  color: var(--ink);
}

.link-list {
  gap: 12px;
}

.link-card {
  grid-template-columns: 52px minmax(0, 1fr) 46px;
  min-height: 84px;
  gap: 14px;
  padding: 14px;
  color: var(--ink);
  overflow: hidden;
  touch-action: manipulation;
}

.link-card::before {
  width: 4px;
  opacity: 1;
  background: var(--blue);
}

.link-card:hover {
  border-color: #bfd0ff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.accent-pink .link-icon,
.brand-instagram {
  color: var(--pink);
  background: var(--pink-soft);
}

.accent-blue .link-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.accent-indigo .link-icon,
.brand-facebook {
  color: #1877f2;
  background: #edf4ff;
}

.accent-mint .link-icon {
  color: var(--green);
  background: var(--green-soft);
}

.accent-gold .link-icon {
  color: var(--gold);
  background: var(--gold-soft);
}

.accent-dark .link-icon {
  color: var(--ink);
  background: var(--surface-sunk);
}

.link-arrow {
  color: var(--ink);
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
}

.link-card:hover .link-arrow {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.feature-panel {
  align-items: center;
}

.cosu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cosu-footer div {
  display: grid;
  gap: 4px;
}

.cosu-footer strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.cosu-footer span {
  font-size: 13px;
}

.cosu-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cosu-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cosu-footer a:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

@media (max-width: 780px) {
  body,
  .links-page {
    font-size: 14px;
  }

  .page-shell {
    width: min(100% - 20px, var(--max));
    padding-block: 14px 28px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .profile-stage,
  .feature-panel {
    padding: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: center;
  }

  .profile-stage {
    padding-top: 18px;
  }

  .photo-frame {
    aspect-ratio: 1 / 1;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    min-height: 62px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    min-height: 84px;
    padding: 12px;
    gap: 10px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
  }

  .link-copy strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .link-copy span {
    font-size: 12px;
  }

  .link-arrow {
    width: 44px;
    height: 44px;
  }

  .cosu-footer {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .cosu-footer nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .cosu-footer a {
    min-height: 44px;
  }
}

@media (max-width: 340px) {
  .link-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .link-arrow {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card:hover,
  .button:hover,
  .cosu-footer a:hover {
    transform: none;
  }
}
