/* Palette
   Deep coastal green/black: #0B1A16, #122821
   Warm off-white:           #F3EEE4, #E8E1D4
   Copper / amber accent:    #C8884A, #D4A574
*/

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-sans-3-latin.woff2") format("woff2"); }

:root {
  --bg: #0B1A16;
  --bg-soft: #122821;
  --ink: #F3EEE4;
  --ink-muted: #E8E1D4;
  --accent: #C8884A;
  --accent-soft: #D4A574;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --hub-max: 28rem;
  --radius: 0.875rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(11, 26, 22, 0.58) 0%, rgba(11, 26, 22, 0.72) 42%, rgba(11, 26, 22, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 136, 74, 0.1), transparent 55%),
    url("assets/backdrop-v2.jpg");
  background-image:
    linear-gradient(180deg, rgba(11, 26, 22, 0.58) 0%, rgba(11, 26, 22, 0.72) 42%, rgba(11, 26, 22, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 136, 74, 0.1), transparent 55%),
    image-set(url("assets/backdrop-v2.webp") type("image/webp"), url("assets/backdrop-v2.jpg") type("image/jpeg"));
  background-size: cover, cover, cover;
  background-position: center, center, center 35%;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hub {
  flex: 1;
  width: 100%;
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.15rem, 4vw, 1.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.profile { text-align: center; margin-bottom: 1.75rem; }
.avatar { display: inline-flex; margin-bottom: 1rem; }
.avatar svg {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(200, 136, 74, 0.25);
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
}

.handle {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.quiet {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  opacity: 0.7;
}

.links { display: flex; flex-direction: column; gap: 0.75rem; }

.link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(18, 40, 33, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 225, 212, 0.1);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover {
  background: #16352c;
  border-color: rgba(200, 136, 74, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.link-btn:active { transform: translateY(0); }
.link-btn.is-placeholder { cursor: default; }
.link-btn.is-placeholder:hover {
  transform: none;
  box-shadow: none;
  background: #152e27;
  border-color: rgba(232, 225, 212, 0.12);
}

.link-btn__label { display: block; }

.link-btn.has-icon {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  padding: 0.75rem 1rem;
}
.link-btn__marks {
  position: relative;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
}
.link-btn.has-icon .link-btn__icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(200, 136, 74, 0.35);
}
.link-btn__badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: cover;
  border-radius: 50%;
  background: #0b1a16;
  box-shadow: 0 0 0 2px rgba(11, 26, 22, 0.95), 0 0 0 3px rgba(212, 165, 116, 0.85);
}
.link-btn.has-icon .link-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.link-btn__secondary {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0.85;
}
.link-btn__secondary.keep-case { text-transform: none; letter-spacing: 0.02em; }

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  text-align: center;
}

.socials { margin-top: 1.75rem; text-align: center; }

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.social-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 40, 33, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 136, 74, 0.28);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-chip:hover {
  border-color: rgba(200, 136, 74, 0.55);
  background: #16352c;
}

.social-chip.is-placeholder { cursor: default; opacity: 0.75; }
.social-chip.is-placeholder:hover {
  background: var(--bg-soft);
  border-color: rgba(200, 136, 74, 0.28);
}

.footer {
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .profile, .links, .socials {
    animation: rise 0.75s ease-out both;
  }
  .links { animation-delay: 0.06s; }
  .socials { animation-delay: 0.1s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile, .links, .socials { animation: none; }
}

a:focus-visible,
.link-btn:focus-visible,
.social-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* backdrop mobile */
@media (max-width: 720px) {
  body {
    background-image: none;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--bg);
    background-image:
      linear-gradient(180deg, rgba(11, 26, 22, 0.38) 0%, rgba(11, 26, 22, 0.6) 45%, rgba(11, 26, 22, 0.86) 100%),
      url("assets/backdrop-mobile.webp");
    background-size: cover, cover;
    background-position: center, center top;
    background-repeat: no-repeat;
  }
}

.friend { margin-top: 1.5rem; text-align: center; }
.friend-card { display: flex; align-items: center; gap: 0.75rem; text-align: left; background: var(--bg-soft); border: 1px solid rgba(200,136,74,0.35); border-radius: var(--radius); padding: 0.6rem; color: var(--ink); text-decoration: none; }
.friend-card:hover, .friend-card:focus-visible { border-color: var(--accent); }
.friend-photos { display: flex; gap: 0.35rem; flex: none; }
.friend-photos img { width: 4rem; height: 5.25rem; object-fit: cover; border-radius: 0.4rem; display: block; }
.friend-body { display: block; min-width: 0; }
.friend-title { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent-soft); }
.friend-text { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--ink-muted); }
.friend-cta { display: inline-block; margin-top: 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent); color: #0B1A16; font-size: 0.8rem; font-weight: 600; }


/* Ember Warrior vs rival pixel banner */
.pixel-banner {
  /* Integer pixel scale: the 192x72 art is drawn at exactly 2x on phones
     (cropped a few art pixels at the sides when the screen is narrower than
     386px) and 3x on wider screens, so every art pixel is the same size. */
  --px: 2;
  position: relative;
  display: block;
  align-self: center;
  width: calc(100vw - 2rem);
  width: round(down, calc(100vw - 2rem), 2px);
  max-width: calc(192px * var(--px) + 2px);
  height: calc(72px * var(--px) + 2px);
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid rgba(200, 136, 74, 0.45);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #05040f url("assets/hero-rival-still.png") center / calc(192px * var(--px)) calc(72px * var(--px)) no-repeat;
  image-rendering: pixelated;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pixel-banner canvas {
  display: block;
  width: calc(192px * var(--px));
  height: calc(72px * var(--px));
  margin-left: calc((100% - 192px * var(--px)) / 2);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
@media (min-width: 640px) {
  .pixel-banner { --px: 3; }
}
.pixel-banner:hover { border-color: rgba(200, 136, 74, 0.75); }
.pixel-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pixel-banner.is-paused { opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .pixel-banner { animation: rise 0.75s ease-out 0.03s both; }
}
@media (prefers-reduced-motion: reduce) {
  .pixel-banner { cursor: default; }
}

.avatar img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(200, 136, 74, 0.9);
  box-shadow: 0 0 0 1px rgba(200, 136, 74, 0.25), 0 0 22px rgba(212, 165, 116, 0.25);
  background: #122821;
}

/* whGaming latest attacks card */
.attacks-card {
  display: flex;
  align-items: flex-end;
  min-height: 9.5rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 136, 74, 0.45);
  background-color: #0b1a16;
  background-image:
    linear-gradient(90deg, rgba(11, 26, 22, 0.94) 0%, rgba(11, 26, 22, 0.7) 45%, rgba(11, 26, 22, 0.1) 100%),
    url("assets/attacks-bg.webp");
  background-size: cover, cover;
  background-position: center, 70% center;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.attacks-card:hover, .attacks-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.attacks-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.attacks-card__text { display: flex; flex-direction: column; gap: 0.2rem; align-items: flex-start; }
.attacks-card__eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); }
.attacks-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1.05; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.attacks-card__cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.4rem 0.8rem 0.4rem 0.5rem; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(212, 165, 116, 0.5); font-size: 0.85rem; font-weight: 600; }
.attacks-card__play { width: 1.4rem; height: 1rem; border-radius: 0.3rem; background: #e02020; position: relative; flex: none; }
.attacks-card__play::after { content: ""; position: absolute; left: 0.5rem; top: 0.27rem; border-left: 0.45rem solid #fff; border-top: 0.23rem solid transparent; border-bottom: 0.23rem solid transparent; }

.ascent-link { margin-top: 0.75rem; }
