:root {
  --coral: #da533c;
  --coral-deep: #c44732;
  --green: #3eb260;
  --ink: #1a202c;
  --muted: #4a5568;
  --slate: #2d3748;
  --line: #edf2f7;
  --bg: #f7fafc;
  --white: #ffffff;
  --content: 1290px;
  --prose: 860px;
  --font: "Inter", sans-serif;
  --shadow: 0 12px 30px rgba(26, 32, 44, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--coral);
}

a:hover {
  color: var(--coral-deep);
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 32px;
  text-align: center;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 28px;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 24px;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: var(--coral);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--white);
}

.logo img {
  width: 52px;
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  color: var(--white);
  text-decoration: none;
  position: relative;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.game-section {
  padding: 1.5rem 0 0.5rem;
}

.game-frame {
  height: 80vh;
  min-height: 420px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5px;
  padding: 15px 20px;
  background: var(--coral);
  color: var(--white);
  border-radius: 10px;
}

.game-bar h2 {
  margin: 0;
  color: var(--white);
  font-size: 24px;
}

.fullscreen-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 8px 16px;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.button {
  background: var(--coral);
  color: var(--white);
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
}

.button:hover {
  background: var(--green);
  color: var(--white);
}

.content {
  width: min(var(--prose), calc(100% - 3rem));
  margin: 2.5rem auto 4rem;
}

.lead {
  color: var(--slate);
  text-align: center;
}

.section-title {
  margin-top: 2.75rem;
  padding-bottom: 0.35rem;
  padding-left: 0.5rem;
  border-bottom: 2px solid var(--coral);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--coral);
  color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.06);
}

.card h2,
.card h3,
.card p {
  color: var(--white);
}

.card h2,
.card h3 {
  margin-bottom: 0.45rem;
}

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

.card.center {
  text-align: center;
}

.card-icon,
.feature-num {
  color: var(--white);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.6rem;
}

.feature-num {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.feature-card {
  border-radius: 15px;
}

.note-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0 0;
}

.note-list p {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--coral);
  border-radius: 8px;
}

.love-block h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.love-block h3 svg {
  width: 1em;
  height: 1em;
  color: var(--coral);
  flex: none;
}

.tips {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.tips li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.tips svg {
  width: 21px;
  height: 21px;
  margin-top: 0.2rem;
  color: var(--coral);
  flex: none;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 1.25rem;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 16px;
  border: 1px solid #f2f2f2;
  border-radius: 25px;
  background: var(--coral);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-item button[aria-expanded="true"] {
  border-color: #be530b;
}

.faq-item button:hover {
  background: var(--coral-deep);
}

.chevron {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.chevron::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.faq-item button[aria-expanded="true"] .chevron::before {
  top: 7px;
  transform: rotate(225deg);
}

.faq-panel {
  margin: 8px 4px 0;
  padding: 0.9rem 1rem 0.2rem;
  background: var(--white);
  border-radius: 12px;
}

.closing {
  margin-top: 2.5rem;
}

.closing .button {
  margin-top: 0.4rem;
}

.page-main {
  width: min(var(--prose), calc(100% - 3rem));
  margin: 2.5rem auto 4rem;
}

.page-main h1 {
  text-align: left;
  padding-left: 0.5rem;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 0.35rem;
}

.panel {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

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

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #edf2f7;
  border-radius: 10px;
  color: var(--slate);
}

.post-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.post-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.post-card h2,
.post-card h3 {
  margin: 0.35rem 0;
  font-size: 1.25rem;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-card time,
.crumbs,
.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs {
  margin: 0 0 1rem;
}

.crumbs a {
  color: var(--coral);
  text-decoration: none;
}

.article-body h2 {
  margin-top: 2rem;
}

.related {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.related ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.related li + li {
  margin-top: 0.35rem;
}

.site-footer {
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .card-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .card-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 84px;
    right: 1.5rem;
    left: 1.5rem;
    background: var(--coral-deep);
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.7rem 0.8rem;
  }

  .header-inner {
    position: relative;
  }

  .game-frame {
    height: 70vh;
    min-height: 320px;
  }

  .game-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }
}

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