:root {
  --color-bg: #070105;
  --color-panel: #150d14;
  --color-panel-strong: #21101c;
  --color-text: #fff6ed;
  --color-muted: #c7aeb9;
  --color-border: rgba(255, 226, 211, 0.16);
  --color-accent: #ff7aa8;
  --color-accent-warm: #ffd08a;
  --shadow-card: 0 22px 54px rgba(0, 0, 0, 0.36);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", "YuGothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  background:
    linear-gradient(rgba(7, 1, 5, 0.9), rgba(7, 1, 5, 0.96)),
    var(--color-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 122, 168, 0.22), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 208, 138, 0.14), transparent 24%),
    radial-gradient(ellipse at 80% 86%, rgba(116, 54, 122, 0.28), transparent 34%),
    linear-gradient(125deg, rgba(255, 122, 168, 0.08), transparent 42%);
}

a {
  color: inherit;
}

.party-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0 64px;
}

.top-link {
  margin-bottom: 32px;
}

.top-link a {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 246, 237, 0.06);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.top-link a:hover,
.game-card:hover {
  border-color: rgba(255, 208, 138, 0.44);
}

.party-hero {
  min-height: 310px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(7, 1, 5, 0.8), rgba(7, 1, 5, 0.34)),
    radial-gradient(circle at 18% 20%, rgba(255, 122, 168, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(255, 208, 138, 0.16), rgba(58, 18, 60, 0.62)),
    var(--color-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.label {
  margin: 0;
  color: var(--color-accent-warm);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: #fff2fb;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-style: italic;
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 2px 4px rgba(5, 1, 4, 0.82),
    0 14px 32px rgba(255, 122, 168, 0.2);
}

h2 {
  margin-bottom: 10px;
  font-size: 1.26rem;
  line-height: 1.35;
}

.party-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #ead3dc;
  font-size: 1.03rem;
  font-weight: 650;
  line-height: 1.8;
}

.game-link-section,
.detail-list {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-top: 8px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-card,
.detail-card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    var(--color-panel);
  box-shadow: var(--shadow-card);
}

.game-card {
  min-height: 238px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-panel-strong);
}

.game-card:focus-visible,
.top-link a:focus-visible {
  outline: 3px solid rgba(255, 122, 168, 0.42);
  outline-offset: 4px;
}

.game-card-primary {
  background:
    linear-gradient(145deg, rgba(255, 122, 168, 0.2), transparent 48%),
    var(--color-panel-strong);
}

.game-status {
  width: fit-content;
  min-height: 28px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 246, 237, 0.22);
  border-radius: 999px;
  color: var(--color-accent-warm);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-title {
  margin-top: auto;
  color: #fff8f0;
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.35;
}

.game-copy {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.game-tags {
  margin-top: 18px;
  color: rgba(255, 208, 138, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  min-height: 190px;
  padding: 24px;
  scroll-margin-top: 24px;
}

.detail-card h2 {
  margin-top: 10px;
}

.detail-card p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.82;
}

@media (max-width: 860px) {
  .party-shell {
    width: min(640px, calc(100% - 28px));
    padding-top: 24px;
  }

  .party-hero {
    min-height: 300px;
    padding: 34px;
  }

  .game-grid,
  .detail-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .party-shell {
    width: min(100% - 24px, 640px);
    padding-top: 18px;
  }

  .top-link {
    margin-bottom: 18px;
  }

  .party-hero {
    min-height: 280px;
    padding: 26px;
    border-radius: 20px;
  }

  .party-lead {
    font-size: 0.96rem;
  }

  .game-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 208px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
