/* Sedecordle App — premium marketing theme */
:root {
  --color-primary: #bfa2ff;
  --color-secondary: #9570ff;
  --color-bg: #f0ebff;
  --color-surface: #ffffff;
  --color-text: #2d1f4a;
  --color-muted: #5c4a7a;
  --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-heading: 0 4px 14px rgba(149, 112, 255, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1100px;
  /* Fixed header: text wordmark + nav */
  --site-header-offset: clamp(76px, 10vw, 90px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-offset) + 8px);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--site-header-offset);
}

/* Fixed header — full width bar; inner column centered */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 55%, #f3edff 100%);
  border-bottom: 1px solid rgba(149, 112, 255, 0.18);
  box-shadow: 0 4px 20px rgba(45, 31, 74, 0.07);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 6px 14px 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.site-logo {
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.site-logo:hover {
  text-decoration: none;
}

.site-header__inner .site-logo__text {
  font-size: clamp(1.35rem, 3.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.65rem;
  width: 100%;
  max-width: 100%;
  flex: none;
  margin-inline: auto;
  text-align: center;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(191, 162, 255, 0.45), rgba(149, 112, 255, 0.22));
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header__inner .site-logo__text {
    font-size: clamp(1.3rem, 4.2vw, 1.45rem);
  }

  .site-nav {
    gap: 0.2rem 0.45rem;
  }

  .site-nav a {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (min-width: 900px) {
  .site-header__inner .site-logo__text {
    font-size: 1.2rem;
  }
}

/* Main — full width; sections control width */
main.site-main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Section bands (alternate backgrounds) */
.section-band {
  width: 100%;
}

.section-band--white {
  background: #fff;
}

.section-band--tint {
  background: var(--color-bg);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

@media (max-width: 640px) {
  .section {
    padding: 40px 16px;
  }
}

.section > p {
  margin: 0 0 1.125rem;
}

.section > p:last-child {
  margin-bottom: 0;
}

/* Typography */
h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2.heading-bar,
h3.heading-bar {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  box-shadow: var(--shadow-heading);
}

h3.heading-bar {
  font-size: 1.08rem;
  margin-top: 0;
}

.lead {
  font-size: 1.12rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  text-align: center;
  padding: 0;
  margin: 0;
  background: transparent;
}

.hero__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin-bottom: 0.65rem;
  text-align: center;
}

.hero__inner .lead,
.hero__inner p {
  text-align: center;
}

.hero__lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
  font-size: 1.15rem;
  text-align: center;
}

.hero__media {
  display: block;
  margin: 2rem auto 0;
  padding: 0;
  text-align: center;
}

.hero__inner .hero__media,
.hero__inner .game-shot-wrap {
  max-width: 820px;
}

.hero__sub {
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  max-width: 38rem;
}

.hero__sub a {
  font-weight: 600;
}

/* First content band only: center opening paragraph and first image(s) per wrapper */
main.site-main > .section-band:first-child > section > p:first-of-type,
main.site-main > .section-band:first-child .hero__inner > p:first-of-type {
  text-align: center;
}

main.site-main > .section-band:first-child > section img:first-of-type,
main.site-main > .section-band:first-child .hero__inner img:first-of-type {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-secondary), #7b52e8);
  box-shadow: 0 4px 20px rgba(149, 112, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(149, 112, 255, 0.5);
  text-decoration: none;
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(191, 162, 255, 0.2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin: 1.5rem 0 0;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(191, 162, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(149, 112, 255, 0.15);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Embedded game strip (home): centered copy + frame */
.section--embed {
  text-align: center;
}

.section--embed .heading-bar {
  text-align: center;
}

.section--embed__lead {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Game placeholder */
.game-placeholder {
  min-height: 420px;
  background: linear-gradient(145deg, #e8e0ff, #f5f0ff);
  border: 2px dashed rgba(149, 112, 255, 0.45);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: min(100%, 960px);
  box-sizing: border-box;
}

.game-placeholder iframe {
  width: 100%;
  max-width: 100%;
  min-height: 600px;
  border: none;
  border-radius: var(--radius-sm);
  background: #1e1b2e;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.game-placeholder--compact {
  min-height: 320px;
}

.game-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.seo-keywords {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 1.5rem 0 0;
}

.muted-small {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Ad placeholders */
.ad-slot {
  min-height: 90px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(191, 162, 255, 0.12),
    rgba(191, 162, 255, 0.12) 10px,
    rgba(149, 112, 255, 0.08) 10px,
    rgba(149, 112, 255, 0.08) 20px
  );
  border: 1px dashed rgba(149, 112, 255, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin: 0;
}

.ad-slot--leaderboard {
  min-height: 100px;
}

.ad-slot--inline {
  min-height: 250px;
}

.section .ad-slot {
  margin-top: 1.5rem;
}

/*
 * TEMPORARY: hide ad placeholder slots. Removes visible blocks (and typical
 * injected creatives such as “Place Order”) without deleting HTML.
 * Re-enable ads: delete this entire block (restore layout spacing from rules above).
 */
.ad-slot,
.ad-slot--leaderboard,
.ad-slot--inline {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.section .ad-slot {
  margin-top: 0 !important;
}

/* FAQ accordion */
.faq-list {
  margin: 1rem 0 0;
}

.faq-item {
  border: 1px solid rgba(149, 112, 255, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.faq-item__btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: #faf8ff;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.faq-item__btn:hover {
  background: rgba(191, 162, 255, 0.2);
}

.faq-item__btn[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__panel[aria-hidden="false"] {
  max-height: 800px;
}

.faq-item__content {
  padding: 0 1.25rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Internal links block */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.link-grid a {
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(149, 112, 255, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
}

.section-band--tint .link-grid a {
  background: rgba(255, 255, 255, 0.9);
}

.link-grid a:hover {
  background: rgba(191, 162, 255, 0.35);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #3d2a5c 0%, #2d1f4a 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 1.25rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer a {
  color: var(--color-primary);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.site-footer__copy {
  font-size: 0.85rem;
  opacity: 0.88;
  margin: 0;
  line-height: 1.5;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(149, 112, 255, 0.4);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form {
  max-width: 520px;
}

/* Word list */
.word-columns {
  columns: 3 180px;
  column-gap: 1.5rem;
  font-size: 0.95rem;
}

.word-columns li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
  .word-columns {
    columns: 2 140px;
  }
}

.spoiler-box {
  background: #fff3cd;
  border: 1px solid #e6c200;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.answer-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-secondary);
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(149, 112, 255, 0.2);
}

/* Utility */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.section .heading-bar + .card {
  margin-top: 0.75rem;
}

.tips-list {
  margin: 0;
  padding-left: 1.25rem;
}

.tips-list li {
  margin-bottom: 0.35rem;
}

.card ul:not(.tips-list) {
  margin: 0;
  padding-left: 1.25rem;
}

/* SEO / content images — game-style depth */
.game-shot-wrap {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
  width: 100%;
}

.content-img,
.seo-img {
  object-fit: contain;
  height: auto;
}

.content-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin: 15px auto;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.45);
}

.seo-img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  margin: 20px auto;
  display: block;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 14px 36px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.5);
}

.game-shot {
  background: #020617;
}

.how-play-visual {
  text-align: center;
  margin: 1.25rem auto 0;
  max-width: 820px;
}

.how-play-visual .seo-img {
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 1.25rem 0;
}

.split .content-img {
  margin: 0;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card__media {
  margin: -20px -20px 16px -20px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  line-height: 0;
}

.card__media .content-img {
  margin: 0;
  border-radius: 0;
  max-height: 180px;
  width: 100%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.page-figure {
  margin: 1.5rem auto;
  max-width: 820px;
  text-align: center;
}

.page-figure .content-img {
  margin: 15px auto;
}

/* Inner pages: prose spacing */
.section .page-figure:first-of-type {
  margin-top: 0;
}
