/* === GLOBAL BASE STYLES (FORCED) === */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

main {
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
}

.container {
  margin-inline: auto;
}

body {
  overflow-x: hidden;
}

section {
  width: 100%;
}

.utility-shell {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.utility-page--with-header .utility-shell {
  padding-top: calc(28px + var(--utility-chrome-offset,
        calc(var(--spacing-6, 48px) + var(--spacing-4, 32px))));
}

@media (max-width: 720px) {
  .utility-shell {
    width: min(100% - 16px, 980px);
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .utility-page--with-header .utility-shell {
    padding-top: calc(16px + var(--utility-chrome-offset-mobile,
          calc(var(--spacing-4, 32px) + var(--spacing-3, 24px))));
  }
}

/* --- SVG icons (local sprite) --- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* g2 palette ssot start */
:root {
  --g2-palette-dark: #172033;
  --g2-palette-light: #f5efe5;
  --g2-palette-accent: #1d6b62;
  --g2-palette-text: #172033;
  --g2-color-primary: var(--g2-palette-accent);
  --g2-color-accent: var(--g2-palette-accent);
  --g2-color-text: var(--g2-palette-text);
}

/* g2 palette ssot end */

/* --- Top 10 Arcade Legends cards --- */
.legend-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
}

@media (min-width: 640px) {
  .legend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .legend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .legend-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.legend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--arcade-panel, #18181b);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.legend-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-blue, #00f3ff);
  box-shadow:
    0 0 28px rgba(0, 243, 255, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.legend-card[data-rank="1"] {
  border-color: rgba(255, 234, 0, 0.5);
  box-shadow:
    0 0 32px rgba(255, 234, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.legend-card[data-rank="1"]:hover {
  border-color: var(--neon-yellow, #ffea00);
  box-shadow:
    0 0 40px rgba(255, 234, 0, 0.45),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.legend-card[data-rank="2"]:hover {
  border-color: var(--neon-blue, #00f3ff);
  box-shadow:
    0 0 36px rgba(0, 243, 255, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.legend-card[data-rank="3"]:hover {
  border-color: var(--neon-purple, #b500ff);
  box-shadow:
    0 0 36px rgba(181, 0, 255, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.legend-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.legend-card:hover .legend-card__media img {
  transform: scale(1.1);
  filter: brightness(1.12) saturate(1.15);
}

.legend-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      var(--arcade-panel, #18181b) 0%,
      rgba(24, 24, 27, 0.4) 40%,
      transparent 70%);
  pointer-events: none;
}

.legend-card__rank {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 2;
  font-size: clamp(3rem, 8vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-shadow:
    0 0 24px currentColor,
    0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.legend-card:hover .legend-card__rank {
  transform: scale(1.05);
}

.legend-card[data-rank="1"] .legend-card__rank {
  color: var(--neon-yellow, #ffea00);
  text-shadow:
    0 0 32px rgba(255, 234, 0, 0.9),
    0 0 64px rgba(255, 234, 0, 0.4);
}

.legend-card[data-rank="2"] .legend-card__rank {
  color: var(--neon-blue, #00f3ff);
  text-shadow:
    0 0 28px rgba(0, 243, 255, 0.85),
    0 0 56px rgba(0, 243, 255, 0.35);
}

.legend-card[data-rank="3"] .legend-card__rank {
  color: var(--neon-purple, #b500ff);
  text-shadow:
    0 0 28px rgba(181, 0, 255, 0.85),
    0 0 56px rgba(181, 0, 255, 0.35);
}

.legend-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.legend-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.legend-card[data-rank="1"] .legend-card__title {
  font-size: 1.25rem;
}

.legend-card:hover .legend-card__title {
  color: var(--neon-blue, #00f3ff);
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.5);
}

.legend-card[data-rank="1"]:hover .legend-card__title {
  color: var(--neon-yellow, #ffea00);
  text-shadow: 0 0 14px rgba(255, 234, 0, 0.55);
}

.legend-card__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.legend-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.legend-card__row dt {
  color: var(--text-muted, #a1a1aa);
}

.legend-card__row dd {
  margin: 0;
  text-align: right;
}

.legend-card__year {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legend-card__publisher {
  color: var(--text-muted, #a1a1aa);
  font-weight: 600;
  transition: color 0.25s ease;
}

.legend-card:hover .legend-card__publisher {
  color: var(--neon-blue, #00f3ff);
}

.legend-card[data-rank="1"] .legend-card__publisher {
  color: var(--neon-blue, #00f3ff);
}

.legend-card__genre {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.legend-card:hover .legend-card__genre {
  border-color: rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

/* --- Legend section header & genre filters --- */
.legend-section__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .legend-section__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.legend-section__intro {
  max-width: 48rem;
}

.legend-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legend-filter {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--arcade-panel, #18181b);
  color: var(--text-main, #f4f4f5);
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.legend-filter:hover {
  border-color: var(--neon-blue, #00f3ff);
  color: var(--neon-blue, #00f3ff);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.25);
  transform: translateY(-1px);
}

.legend-filter:focus-visible {
  outline: 2px solid var(--neon-blue, #00f3ff);
  outline-offset: 2px;
}

.legend-filter.is-active {
  border-color: var(--neon-blue, #00f3ff);
  background: var(--neon-blue, #00f3ff);
  color: var(--arcade-dark, #09090b);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.45);
}

.legend-card.legend-card--hidden {
  display: none;
}

.legend-empty {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed rgba(0, 243, 255, 0.35);
  background: rgba(0, 243, 255, 0.06);
  color: var(--text-muted, #a1a1aa);
  font-size: 0.9375rem;
  text-align: center;
}

.legend-empty[hidden] {
  display: none;
}

.legend-grid--filtering .legend-card {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {

  .legend-card,
  .legend-card__media img,
  .legend-filter,
  .legend-card__rank,
  .legend-card__title,
  .legend-card__publisher,
  .legend-card__genre {
    transition: none;
  }

  .legend-card:hover {
    transform: none;
  }

  .legend-card:hover .legend-card__media img {
    transform: none;
  }
}

/* --- Did You Know --- */
.dyk-header {
  margin-bottom: 2.5rem;
}

.dyk-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .dyk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dyk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dyk-card {
  margin: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--arcade-panel, #18181b);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.dyk-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-blue, #00f3ff);
  box-shadow:
    0 0 24px rgba(0, 243, 255, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.dyk-card--gold {
  border-color: rgba(255, 234, 0, 0.35);
}

.dyk-card--gold:hover {
  border-color: var(--neon-yellow, #ffea00);
  box-shadow:
    0 0 28px rgba(255, 234, 0, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.dyk-card--cyan {
  border-color: rgba(0, 243, 255, 0.3);
}

.dyk-card--cyan:hover {
  border-color: var(--neon-blue, #00f3ff);
}

.dyk-card--purple {
  border-color: rgba(181, 0, 255, 0.35);
}

.dyk-card--purple:hover {
  border-color: var(--neon-purple, #b500ff);
  box-shadow:
    0 0 28px rgba(181, 0, 255, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.dyk-card__tag {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-blue, #00f3ff);
}

.dyk-card--gold .dyk-card__tag {
  color: var(--neon-yellow, #ffea00);
}

.dyk-card--purple .dyk-card__tag {
  color: var(--neon-purple, #b500ff);
}

.dyk-card__fact {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted, #a1a1aa);
}

.dyk-card__fact strong {
  color: #fff;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .dyk-card {
    transition: none;
  }

  .dyk-card:hover {
    transform: none;
  }
}

/* --- Contact page --- */


.contact-hero {
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg,
      rgba(245, 158, 11, 0.06) 0%,
      transparent 100%);
}

.contact-hero__inner {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
}

.contact-hero__kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-yellow, #ffea00);
}

.contact-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.contact-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted, #a1a1aa);
}

.contact-section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section--cards {
  background: rgba(24, 24, 27, 0.5);
}

.contact-section--cannot {
  background: rgba(9, 9, 11, 0.6);
}

.contact-section--affiliation {
  border-bottom: none;
}

.contact-section__inner {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
}

.contact-section__header {
  margin-bottom: 1.75rem;
}

.contact-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}

.contact-section__intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted, #a1a1aa);
}

.contact-section__note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 243, 255, 0.25);
  background: rgba(0, 243, 255, 0.06);
  font-size: 0.9375rem;
  color: var(--text-muted, #a1a1aa);
}

.contact-section__note a {
  color: var(--neon-blue, #00f3ff);
  font-weight: 600;
}

.contact-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--arcade-panel, #18181b);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--neon-yellow, #ffea00);
}

.contact-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-card__heading {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.contact-card__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #a1a1aa);
}

.contact-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neon-yellow, #ffea00);
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-card__link:hover {
  color: #fcd34d;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-list li {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted, #a1a1aa);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.contact-list--help li {
  border-left: 3px solid var(--neon-blue, #00f3ff);
}

.contact-list--cannot li {
  border-left: 3px solid rgba(248, 113, 113, 0.7);
}

.contact-list li strong {
  color: #fff;
  font-weight: 700;
}

.contact-notice {
  padding: 1.5rem 1.75rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(181, 0, 255, 0.35);
  background: rgba(181, 0, 255, 0.06);
  box-shadow: 0 0 28px rgba(181, 0, 255, 0.08);
}

.contact-notice p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted, #a1a1aa);
}

.contact-notice p:last-child {
  margin-bottom: 0;
}

.contact-notice strong {
  color: #fff;
}

.contact-notice a {
  color: var(--neon-blue, #00f3ff);
  font-weight: 600;
}

/* --- Cookie banner (site-wide) --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  background: #171717;
  border-top: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner--hidden,
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #d4d4d8;
  min-width: 0;
}

.cookie-banner__text a {
  color: #22d3ee;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #67e8f9;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .cookie-banner__actions {
    width: auto;
  }
}

.cookie-banner__btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__btn--decline {
  flex: 1;
  border: none;
  background: transparent;
  color: #a3a3a3;
}

.cookie-banner__btn--decline:hover {
  color: #fff;
}

.cookie-banner__btn--accept {
  flex: 1;
  border: none;
  background: #06b6d4;
  color: #0a0a0a;
}

.cookie-banner__btn--accept:hover {
  background: #22d3ee;
}

@media (min-width: 640px) {

  .cookie-banner__btn--decline,
  .cookie-banner__btn--accept {
    flex: 0 0 auto;
  }
}
