/* Seamless Co-op for Dark Souls 2 — project site (GitHub Pages, served from docs/).
   One stylesheet for both languages; colours follow the in-game menu. */

:root {
  --ground: #0e0b09;
  --panel-top: rgba(36, 29, 23, 0.92);
  --panel-bottom: rgba(22, 17, 14, 0.92);
  --edge: rgba(236, 204, 160, 0.13);
  --edge-strong: rgba(236, 204, 160, 0.26);
  --line: rgba(236, 204, 160, 0.12);
  --text: #eee4d4;
  --text-soft: #ddd0bd;
  --muted: #b5a793;
  --dim: #948674;
  --ember: #e8893a;
  --ember-hot: #ffb56b;
  --ember-light: #ffd3a3;
  --ember-glow: rgba(232, 137, 58, 0.38);
  --gold: #dab56e;

  --font-display: "Forum", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lede: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-h2: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --text-hero: clamp(3.1rem, 1.2rem + 8vw, 7.25rem);
  --text-hero-sub: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);

  --space-section: clamp(4rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --wrap: 74rem;
  --radius: 14px;

  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--text);
  font: 400 var(--text-base) / 1.65 var(--font-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ember-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ember-light);
}

:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(236, 204, 160, 0.07);
  color: #f3dcc0;
  overflow-wrap: anywhere;
}

kbd {
  font-family: var(--font-body);
  font-size: 0.8em;
  font-weight: 600;
  padding: 0.08em 0.45em;
  border-radius: 6px;
  border: 1px solid rgba(218, 181, 110, 0.6);
  background: rgba(218, 181, 110, 0.08);
  color: var(--gold);
}

b,
strong {
  font-weight: 600;
  color: var(--text);
}

/* ---- atmosphere: bonfire glow, grain, embers ---- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70rem 45rem at 6% 112%, rgba(232, 137, 58, 0.22), transparent 62%),
    radial-gradient(50rem 32rem at 104% -8%, rgba(150, 110, 80, 0.16), transparent 60%),
    linear-gradient(180deg, #130f0c 0%, var(--ground) 45%, #0b0907 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ember {
  position: absolute;
  bottom: -2vh;
  left: var(--x, 10%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 8px 2px var(--ember-glow);
  opacity: 0;
  animation: rise var(--t, 14s) linear var(--d, 0s) infinite;
}

@keyframes rise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift, 40px), -72vh, 0);
    opacity: 0;
  }
}

/* ---- layout ---- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--ember);
  color: #1d1005;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.skip:focus {
  transform: translateY(4rem);
}

/* ---- top bar ---- */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 11, 9, 0.74);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand small {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.diamond {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember-glow);
  transform: rotate(45deg);
}

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding-block: 0.3rem;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.lang {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.lang:hover {
  border-color: var(--ember);
  color: var(--ember-hot);
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }
}

/* ---- hero ---- */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--space-section);
}

.overline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overline::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
}

.h1-main {
  display: block;
  background: linear-gradient(180deg, #fff4e4 0%, #eadbc3 55%, #b89c7b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: var(--text-hero);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.h1-sub {
  display: block;
  margin-top: 0.7rem;
  color: var(--ember-hot);
  font-size: var(--text-hero-sub);
  line-height: 1.1;
}

.nowrap {
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  }

  /* the copy starts a little below the top of the picture */
  .hero-copy {
    padding-top: clamp(1.5rem, -2rem + 5vw, 4rem);
  }
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: #e4d8c6;
  font-size: var(--text-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn svg {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ember {
  background: linear-gradient(180deg, #ffb56b, #e8893a 60%, #cf6f27);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -12px rgba(232, 137, 58, 0.8);
  color: #1d1005;
}

.btn-ember::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(255, 160, 80, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.btn-ember:hover {
  color: #1d1005;
}

.btn-ember:hover::before {
  opacity: 1;
}

.btn-ghost {
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast);
}

.btn-ghost:hover {
  border-color: rgba(232, 137, 58, 0.65);
  color: var(--text);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-sm);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.facts li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  opacity: 0.85;
  transform: rotate(45deg);
}

/* the in-game menu with the notifications laid over its corner */
.hero-art {
  position: relative;
  margin: 0;
  padding: 0 0 3.5rem 2.5rem;
}

.hero-glow {
  position: absolute;
  inset: 8% 4% 0 14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(232, 137, 58, 0.34), transparent);
  filter: blur(28px);
}

/* cut under the player list and faded out, so the notifications sit over empty space */
.shot-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 620 / 470;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  transform: rotate(1.2deg);
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 190, 120, 0.25);
  pointer-events: none;
}

.shot-frame img {
  width: 100%;
}

.shot-toasts {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(62%, 330px);
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.95);
  transform: rotate(-2deg);
}

/* ---- sections ---- */

.section {
  position: relative;
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 20ch;
  margin: 0 0 clamp(2rem, 1rem + 3vw, 3.5rem);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* features: one lead item, then an editorial list */
.features-lead {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 860px) {
  .features-lead {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.num {
  font-family: var(--font-display);
  line-height: 1;
  color: var(--ember);
}

.features-lead .num {
  background: linear-gradient(180deg, var(--ember-hot), #a24c16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4.5rem, 3rem + 5vw, 8rem);
}

.features-lead h3 {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.features-lead p {
  max-width: 44rem;
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-lede);
}

.feature-list {
  display: grid;
  gap: 0 clamp(2rem, 1rem + 4vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 0.9rem;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.feature-list .num {
  padding-top: 0.1rem;
  font-size: 1.6rem;
}

.feature-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.also {
  max-width: 54rem;
  margin: 2rem 0 0;
  color: var(--muted);
}

/* getting started */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: 0.86fr 1fr 1fr;
  }
}

.card {
  position: relative;
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}

/* the ember hairline on top, like the in-game menu */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.card-need {
  border-style: dashed;
  background: transparent;
}

.card-need::before {
  display: none;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
}

.card h3 span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card ul,
.card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.card li {
  position: relative;
  margin-top: 0.85rem;
  padding-left: 2.1rem;
  color: var(--text-soft);
}

.card ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(232, 137, 58, 0.55);
  border-radius: 50%;
  color: var(--ember-hot);
  font-size: 0.75rem;
  font-weight: 600;
}

.card ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.45rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.play {
  display: grid;
  gap: 0.6rem 2rem;
  margin-top: 1.25rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(232, 137, 58, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(232, 137, 58, 0.13), rgba(232, 137, 58, 0.03));
}

@media (min-width: 900px) {
  .play {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.play h3 {
  margin: 0;
  color: var(--ember-hot);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  white-space: nowrap;
}

.play p {
  margin: 0;
  color: #e6d9c6;
}

.more {
  display: inline-block;
  margin-top: 1.6rem;
  font-weight: 500;
}

/* screenshots: a strip that scrolls sideways on narrow screens */
.shots {
  display: grid;
  grid-auto-columns: minmax(14rem, 1fr);
  grid-auto-flow: column;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(232, 137, 58, 0.4) transparent;
  scrollbar-width: thin;
}

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.shots figure:hover img {
  transform: translateY(-4px);
}

.shots figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* status */
.note {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 860px) {
  .note {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.note h2 {
  margin-bottom: 0;
}

.note p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ---- footer ---- */

.foot {
  padding-block: 2.75rem 3.25rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: var(--text-sm);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--ember-hot);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ember {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
