:root {
  --gp-primary: #2a5082;
  --gp-primary-dark: #1d3a61;
  --gp-accent: #b3123a;
  --gp-text: #1f2633;
  --gp-muted: #5b6475;
  --gp-bg: #f5f7fb;
  --gp-card: #ffffff;
  --gp-border: #e3e8f0;
  --gp-radius: 14px;
  --gp-max: 1120px;
}

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

.gp-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gp-text);
  background: var(--gp-bg);
  min-width: 0;
}

.gp-body a {
  color: var(--gp-primary);
}
.gp-article a,
.gp-note a,
.gp-lead a,
.gp-faq a,
.gp-section-lead a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.gp-container {
  width: 100%;
  max-width: var(--gp-max);
  margin: 0 auto;
  padding: 0 20px;
}

.gp-skip {
  position: absolute;
  left: -9999px;
}
.gp-skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.gp-header {
  background: var(--gp-primary);
  color: #fff;
}
.gp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.gp-logo img {
  display: block;
  height: 36px;
  width: auto;
}
.gp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.gp-nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.92;
}
.gp-nav a:hover,
.gp-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Breadcrumbs */
.gp-breadcrumbs {
  font-size: 14px;
  color: var(--gp-muted);
  padding: 16px 0 0;
}
.gp-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gp-breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: #9aa3b2;
}

/* Hero */
.gp-hero {
  background: linear-gradient(135deg, #2a5082 0%, #3d6db0 55%, #5d2f87 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.gp-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 820px;
}
.gp-hero p {
  font-size: 19px;
  max-width: 760px;
  margin: 0 0 12px;
  opacity: 0.95;
}
.gp-hero a {
  color: #fff;
}
.gp-btn {
  display: inline-block;
  background: var(--gp-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  margin-top: 12px;
}
.gp-btn:hover {
  filter: brightness(1.08);
}
.gp-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-left: 8px;
}

/* Sections */
.gp-section {
  padding: 40px 0;
}
.gp-section + .gp-section {
  padding-top: 8px;
}
.gp-section h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.gp-section-lead {
  color: var(--gp-muted);
  max-width: 780px;
  margin: 0 0 24px;
}
.gp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cards */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gp-card {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 38, 51, 0.08);
}
.gp-card-link {
  color: inherit !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gp-card-img {
  aspect-ratio: 384 / 207;
  width: 100%;
  object-fit: cover;
  background: #dfe6f1;
  display: block;
}
.gp-card-body {
  padding: 14px 16px 18px;
}
.gp-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 6px;
  line-height: 1.3;
}
.gp-card-text {
  font-size: 15px;
  color: var(--gp-muted);
  margin: 0;
}
.gp-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gp-primary);
  background: #e8eef8;
  border-radius: 999px;
  padding: 2px 10px;
}

/* Steps */
.gp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gp-steps li {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  padding: 20px;
  position: relative;
}
.gp-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gp-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.gp-steps h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.gp-steps p {
  margin: 0;
  color: var(--gp-muted);
  font-size: 15px;
}

/* Article / prose */
.gp-article {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  padding: clamp(20px, 4vw, 44px);
  margin: 24px auto 40px;
  max-width: 860px;
}
.gp-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.gp-article h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  margin: 32px 0 10px;
  line-height: 1.3;
}
.gp-article h3 {
  font-size: 19px;
  margin: 22px 0 6px;
}
.gp-article p,
.gp-article li {
  font-size: 17px;
}
.gp-article ul,
.gp-article ol {
  padding-left: 22px;
}
.gp-article li {
  margin-bottom: 6px;
}
.gp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 16px;
}
.gp-article th,
.gp-article td {
  text-align: left;
  border-bottom: 1px solid var(--gp-border);
  padding: 8px 10px;
}
.gp-article th {
  background: #f0f4fa;
}
.gp-meta {
  color: var(--gp-muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.gp-lead {
  font-size: 19px;
  color: #3a4354;
}
.gp-note {
  background: #f0f4fa;
  border-left: 4px solid var(--gp-primary);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
}
.gp-faq dt {
  font-weight: 700;
  margin-top: 16px;
}
.gp-faq dd {
  margin: 4px 0 0;
  color: #3a4354;
}
.gp-related {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 20px;
}
.gp-related a {
  font-weight: 600;
}

/* Forms */
.gp-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 4px;
}
.gp-form input,
.gp-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9d2df;
  border-radius: 8px;
}
.gp-form textarea {
  min-height: 140px;
}
.gp-form button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

/* Footer */
.gp-footer {
  background: #18243a;
  color: #c9d2e3;
  padding: 40px 0 24px;
  font-size: 15px;
  margin-top: 24px;
}
.gp-footer a {
  color: #fff !important;
  text-decoration: none;
}
.gp-footer p a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.gp-footer a:hover {
  text-decoration: underline;
}
.gp-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}
.gp-footer h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 10px;
}
.gp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gp-footer li {
  margin-bottom: 6px;
}
.gp-footer-bottom {
  border-top: 1px solid #2c3a55;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 14px;
  color: #93a0b8;
}
@media (max-width: 800px) {
  .gp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .gp-footer-grid {
    grid-template-columns: 1fr;
  }
  .gp-btn-ghost {
    margin-left: 0;
  }
}

/* Content block appended under the interactive effect page */
.gp-effect-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--gp-text);
  line-height: 1.65;
}
.gp-effect-content .gp-article {
  max-width: none;
  margin: 24px 0 8px;
}
.game-welcome h1.game-title {
  margin: 0;
}
