:root {
  color-scheme: dark;
  --page: #0b1118;
  --surface: #111b24;
  --ink: #f7f4ec;
  --muted: #c1c8ce;
  --yellow: #ffd84d;
  --cyan: #55d6d0;
  --coral: #ff715b;
  --dark-ink: #10161d;
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 280px;
  font-family: "Cairo", "Noto Kufi Arabic", sans-serif;
  color: var(--ink);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  min-height: 44px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(11, 17, 24, 0.72);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 72px));
  isolation: isolate;
  overflow: hidden;
  background-color: #121b22;
  background-image: url("./assets/drawing-game-art.webp");
  background-position: center 42%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 10, 15, 0.12) 0%, rgba(5, 10, 15, 0.38) 44%, rgba(5, 10, 15, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 10, 15, 0.12) 0%, rgba(5, 10, 15, 0.3) 100%);
}

.hero-inner {
  width: min(1680px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  padding: 30px 0 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-copy {
  width: min(690px, 100%);
  align-self: center;
  padding: 32px 0 26px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
  font-size: 5.4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.summary {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.action {
  min-height: 64px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.action:hover {
  transform: translateY(-2px);
}

.action:active {
  transform: translateY(0) scale(0.98);
}

.action-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(16, 22, 29, 0.12);
}

.action-icon img {
  display: block;
}

.action-copy {
  display: grid;
  gap: 2px;
  text-align: right;
}

.action-title {
  font-size: 1rem;
  line-height: 1.35;
}

.action-hint {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0.76;
}

.primary-action {
  color: var(--dark-ink);
  background: var(--yellow);
}

.primary-action:hover {
  background: #ffe478;
}

.secondary-action {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(11, 17, 24, 0.64);
}

.secondary-action:hover {
  border-color: var(--cyan);
  background: rgba(11, 17, 24, 0.88);
}

.secondary-action .action-icon {
  background: rgba(255, 255, 255, 0.09);
}

.secondary-action .action-icon img {
  filter: invert(1);
}

.quick-guide {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(11, 17, 24, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.quick-guide-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.quick-guide-kicker {
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
}

.quick-guide h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.quick-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.quick-step {
  position: relative;
  min-height: 88px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(16, 22, 29, 0.12);
  border-radius: 10px;
  color: var(--dark-ink);
  background: #f1eee5;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.13);
}

.quick-step::before {
  position: absolute;
  top: -4px;
  right: 50%;
  width: 34px;
  height: 10px;
  content: "";
  background: rgba(255, 216, 77, 0.72);
  transform: translateX(50%) rotate(-3deg);
}

.quick-step:nth-child(2)::before {
  background: rgba(85, 214, 208, 0.72);
  transform: translateX(50%) rotate(3deg);
}

.quick-step:nth-child(3)::before {
  background: rgba(255, 113, 91, 0.72);
}

.guide-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 216, 77, 0.72);
}

.quick-step:nth-child(2) .guide-icon {
  background: rgba(85, 214, 208, 0.72);
}

.quick-step:nth-child(3) .guide-icon {
  background: rgba(255, 113, 91, 0.72);
}

.guide-icon img {
  display: block;
}

.guide-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: baseline;
}

.guide-number {
  color: #8a332a;
  font-size: 0.72rem;
  font-weight: 900;
}

.guide-copy strong {
  font-size: 0.9rem;
  line-height: 1.4;
}

.guide-copy small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: #45515b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-note span {
  padding: 0 8px;
  color: var(--coral);
}

.start-section,
.gameplay-section,
.faq-section {
  width: 100%;
}

.start-section {
  padding: 76px max(24px, calc((100% - 1180px) / 2)) 84px;
  color: var(--ink);
  background: #10161d;
}

.start-section-inner,
.gameplay-section-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.start-section-top {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 40px;
}

.section-heading h2,
.gameplay-section h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.setup-storyboard,
.gameplay-visual {
  margin: 0;
}

.setup-storyboard img,
.gameplay-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.setup-storyboard img {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

.steps {
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 168px;
  padding: 24px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.steps li::before {
  position: absolute;
  top: -4px;
  right: 50%;
  width: 44px;
  height: 11px;
  content: "";
  background: rgba(255, 216, 77, 0.78);
  transform: translateX(50%) rotate(-3deg);
}

.steps li:nth-child(2)::before {
  background: rgba(85, 214, 208, 0.78);
  transform: translateX(50%) rotate(3deg);
}

.steps li:nth-child(3)::before {
  background: rgba(255, 113, 91, 0.78);
}

.step-number {
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 900;
}

.steps h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.steps p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.gameplay-section {
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  color: var(--dark-ink);
  background: #f1eee5;
}

.gameplay-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.gameplay-section .section-kicker {
  color: #b94334;
}

.gameplay-copy > p:last-child {
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.gameplay-visual {
  width: min(100%, 440px);
  justify-self: center;
}

.faq-section {
  padding: 76px max(24px, calc((100% - 1180px) / 2)) 84px;
  color: var(--ink);
  background: #10161d;
}

.faq-section-inner {
  width: min(940px, 100%);
  margin-inline: auto;
}

.faq-heading {
  max-width: 720px;
}

.faq-heading h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.faq-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--dark-ink);
  background: #f1eee5;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.faq-item::before {
  position: absolute;
  top: -3px;
  right: 48px;
  width: 54px;
  height: 10px;
  content: "";
  background: rgba(255, 216, 77, 0.88);
  transform: rotate(-2deg);
}

.faq-item:nth-child(3n + 2)::before {
  background: rgba(85, 214, 208, 0.82);
  transform: rotate(2deg);
}

.faq-item:nth-child(3n)::before {
  background: rgba(255, 113, 91, 0.82);
}

.faq-item > summary {
  min-height: 68px;
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.55;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -5px;
}

.faq-question {
  min-width: 0;
}

.faq-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--yellow);
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 15px;
  right: 9px;
  width: 14px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: #301b3a;
}

.faq-toggle::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.faq-item[open] .faq-toggle::after {
  transform: rotate(0deg);
}

.faq-answer {
  margin: 0 22px;
  padding: 0 0 20px;
  border-top: 1px dashed rgba(48, 27, 58, 0.2);
}

.faq-answer p {
  margin: 16px 0 0;
  color: #45515b;
  font-weight: 700;
  line-height: 1.85;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cyan);
  font-weight: 800;
}

.action:focus-visible,
.site-nav a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 920px) and (min-width: 761px) {
  .hero-inner {
    width: min(100% - 36px, 1180px);
    padding-top: 22px;
  }

  .hero-copy {
    padding: 24px 0 20px;
  }

  h1 {
    font-size: 4.35rem;
  }

  .summary {
    margin-top: 16px;
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .actions {
    margin-top: 22px;
  }

  .quick-guide {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .hero-site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .hero {
    min-height: calc(100svh - 28px);
    background-position: 22% center;
  }

  .hero::before {
    background: rgba(5, 10, 15, 0.72);
  }

  .hero-inner,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero-inner {
    padding: 20px 0 24px;
  }

  .hero-copy {
    padding: 42px 0 24px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .summary {
    margin-top: 16px;
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .actions {
    display: grid;
    margin-top: 20px;
  }

  .action {
    width: 100%;
  }

  .quick-guide-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
  }

  .quick-guide {
    margin-top: 16px;
    padding: 12px;
  }

  .quick-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-step {
    min-height: 80px;
  }

  .section-heading h2,
  .gameplay-section h2,
  .faq-heading h2 {
    font-size: 1.75rem;
  }

  .start-section {
    padding: 56px 16px 64px;
  }

  .start-section-top,
  .gameplay-section-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .steps li {
    min-height: 0;
    padding: 20px;
  }

  .gameplay-section {
    padding: 52px 16px 58px;
  }

  .faq-section {
    padding: 56px 16px 64px;
  }

  .faq-list {
    margin-top: 28px;
  }

  .faq-item > summary {
    min-height: 64px;
    padding: 15px 16px;
    gap: 12px;
    font-size: 1rem;
  }

  .faq-answer {
    margin: 0 16px;
    padding-bottom: 18px;
  }

  .gameplay-visual {
    width: min(100%, 340px);
  }

  footer {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .site-footer-links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action,
  .faq-toggle::after {
    transition: none;
  }
}
