/* ============================================================
   Spacejeux — how-it-works.css (how-it-works.php)
   ============================================================ */

/* ---------- shared bits ---------- */
.hw-sec-head { display: grid; gap: 12px; max-width: 700px; margin-bottom: 48px; }
.hw-sec-head h2 { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--dark); }
.hw-sec-head p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }

.hw-arrow-link { font-size: 14px; font-weight: 600; color: var(--teal); display: inline-block; }
.hw-arrow-link:hover { color: var(--teal-dark); }
.hw-arrow-link--sm { font-size: 13px; }

@media (max-width: 720px) {
  .hw-sec-head { margin-bottom: 24px; }
}

/* ---------- HERO ---------- */
.hw-hero { background: var(--white); padding-block: 72px; }
.hw-hero__inner {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 80px; align-items: center;
}
.hw-hero__copy h1 { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--dark); }
.hw-hero__lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--slate-700); }
.hw-hero__note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--slate-400); }
.hw-hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hw-hero__cta { padding-inline: 32px; font-weight: 700; }
.hw-hero__cta--ghost { font-weight: 600; color: #374151; }

/* lottery journey panel */
.hw-journey {
  position: relative; height: 320px; border-radius: 16px; overflow: hidden;
  background: var(--dark);
}
.hw-journey::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image:
    linear-gradient(#ffffff 1px, transparent 1px),
    linear-gradient(90deg, #ffffff 1px, transparent 1px);
  background-size: 106px 80px;
  background-position: 10px 10px;
}
.hw-journey__tag {
  position: absolute; top: 24px; right: 32px;
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  color: rgba(255, 255, 255, .25);
}
.hw-journey__line {
  position: absolute; left: 80px; right: 70px; top: 130px; height: 2px;
  background: #1e293b; border-radius: 1px;
}
.hw-journey__steps {
  position: absolute; left: 48px; right: 52px; top: 80px;
  display: flex; justify-content: space-between;
}
.hw-jstep { position: relative; width: 96px; display: grid; gap: 12px; justify-items: center; }
.hw-jstep__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal); color: var(--teal);
  display: grid; place-items: center;
  font-weight: 800; font-size: 11px;
}
.hw-jstep__card {
  justify-self: stretch;
  background: #1e293b; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px;
  padding: 10px; display: grid; gap: 4px; justify-items: center; text-align: center;
}
.hw-jstep__card b { font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); }
.hw-jstep__card i { font-style: normal; font-size: 11px; color: var(--slate-400); }
.hw-jstep--filled .hw-jstep__num { background: var(--teal); color: var(--white); }
.hw-jstep--filled .hw-jstep__card { background: var(--teal); border-color: transparent; }
.hw-jstep--filled .hw-jstep__card b { color: var(--white); }
.hw-jstep--filled .hw-jstep__card i { color: rgba(255, 255, 255, .8); }
.hw-journey__balls {
  position: absolute; left: 50%; top: 230px; transform: translateX(-50%);
  display: flex; align-items: center;
}
.hw-jball {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .08);
}
.hw-jball + .hw-jball { margin-left: -8px; }
.hw-jball--big {
  width: 52px; height: 52px; font-size: 18px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .09);
}

@media (max-width: 1100px) {
  .hw-hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .hw-hero { padding-block: 40px; }
  .hw-hero__copy h1 { font-size: 32px; }
  .hw-hero__actions { margin-top: 24px; }
  .hw-hero__cta { height: 44px; padding-inline: 16px; }
  .hw-journey { display: none; }
}

/* ---------- PROCESS TIMELINE ---------- */
.hw-process { background: var(--bg-tint); padding-block: 72px; }
.hw-timeline { position: relative; }
.hw-timeline__line {
  position: absolute; left: 52px; right: 52px; top: 27px; height: 2px;
  background: var(--slate-300); border-radius: 1px;
}
.hw-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.hw-step { display: grid; gap: 20px; align-content: start; justify-items: start; }
.hw-step__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal); color: var(--teal);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.hw-step__num--filled { background: var(--teal); color: var(--white); }
.hw-step__text { display: grid; gap: 10px; }
.hw-step__text h3 { font-size: 16px; font-weight: 700; color: var(--dark); }
.hw-step__text p { font-size: 13px; line-height: 1.5; color: var(--slate-700); }
.hw-step__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hw-chip {
  padding: 6px 10px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--border);
  font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--slate-700);
}
.hw-chip--dark { background: var(--dark); border-color: var(--dark); color: var(--white); }
.hw-step__panel {
  justify-self: stretch;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; display: flex; flex-wrap: wrap; gap: 6px;
}
.hw-minipick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--border); color: var(--slate-400);
  display: grid; place-items: center;
  font-weight: 700; font-size: 9px;
}
.hw-minipick.is-on { background: var(--teal); color: var(--white); }
.hw-step__note { font-size: 11px; color: var(--slate-400); }
.hw-step__flows { display: grid; gap: 6px; }
.hw-flowline { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--slate-400); }
.hw-flowtag {
  padding: 3px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 600; line-height: 1.33; color: var(--white);
}
.hw-flowtag--dark { background: var(--dark); }
.hw-flowtag--teal { background: var(--teal); }
.hw-step__verified {
  justify-self: stretch;
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-radius: 8px;
  background: #ecfdf5; border: 1px solid var(--success-bg);
  font-size: 11px; font-weight: 600; color: var(--success);
}
.hw-step__verified-icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #10b981; color: var(--white);
  display: grid; place-items: center;
}

@media (min-width: 1101px) {
  /* keep the four step footers on one line, as in the mock */
  .hw-step__text { min-height: 90px; align-content: start; }
}
@media (max-width: 1100px) {
  .hw-steps { grid-template-columns: repeat(2, 1fr); }
  .hw-timeline__line { display: none; }
}
@media (max-width: 640px) {
  .hw-process { padding-block: 40px; }
  .hw-steps { grid-template-columns: 1fr; gap: 24px; }
  .hw-step { gap: 16px; }
}

/* ---------- TWO WAYS TO PLAY ---------- */
.hw-ways { background: var(--white); padding: 72px 0 30px; }
.hw-sec-head--ways { margin-bottom: 40px; }
.hw-ways__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hw-way {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  display: grid; gap: 24px; align-content: start; justify-items: start;
}
.hw-way__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); }
.hw-way__head { display: grid; gap: 12px; }
.hw-way__head h3 { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--dark); }
.hw-way__head p { font-size: 14px; line-height: 1.5; color: var(--slate-700); }

/* dark demo panels */
.hw-demo {
  justify-self: stretch;
  border-radius: 12px; padding: 20px;
  display: grid; gap: 16px; justify-items: center;
}
.hw-demo--draw { background: var(--dark); }
.hw-demo--instant { background: #0b1020; }
.hw-demo__flow { display: flex; align-items: center; gap: 12px; }
.hw-demo__arrow { font-size: 16px; color: var(--slate-700); }
.hw-demo__pill {
  padding: 8px 16px; border-radius: 6px;
  background: rgba(13, 148, 136, .125);
  font-size: 11px; font-weight: 600; color: var(--teal); text-align: center;
}
.hw-picksheet { background: #1e293b; border-radius: 8px; padding: 10px; display: grid; gap: 4px; }
.hw-picksheet__row { display: flex; gap: 4px; }
.hw-picksheet__row span {
  width: 20px; height: 20px; border-radius: 4px;
  background: var(--border); color: var(--slate-700);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 8px;
}
.hw-picksheet__row span.is-on { background: var(--teal); color: var(--white); font-weight: 800; }
.hw-demo__balls { display: flex; gap: 6px; }
.hw-demo__balls span {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
}
.hw-scratch {
  background: var(--night); border: 1px solid #1e293b; border-radius: 8px;
  padding: 10px; display: grid; gap: 4px;
}
.hw-scratch__row { display: flex; gap: 4px; }
.hw-scratch__cell {
  width: 36px; height: 28px; border-radius: 6px;
  background: var(--night); border: 1px solid #1e293b;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.hw-scratch__cell--hidden { color: #1e293b; }
.hw-scratch__cell--star { color: var(--white); }
.hw-scratch__cell--win { color: var(--teal); border-color: var(--teal); }
.hw-demo__result {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: #10b981; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .2);
}
.hw-demo__result svg { stroke-width: 3; }

.hw-way__list { display: grid; gap: 12px; }
.hw-way__list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.3; color: #374151; }
.hw-way__list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

@media (max-width: 960px) {
  .hw-ways__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hw-ways { padding: 40px 0 24px; }
  .hw-way { padding: 20px; gap: 16px; }
  .hw-demo__flow { flex-wrap: wrap; justify-content: center; }
}

/* ---------- ALREADY HAVE A TICKET? ---------- */
.hw-checker { background: var(--white); padding-block: 48px; }
.hw-checker__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 480px;
  gap: 80px; align-items: center;
}
.hw-checker__head h2 { font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--dark); }
.hw-checker__head p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.hw-checker__card {
  margin-top: 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-card);
  display: grid; gap: 8px;
}
.hw-checker__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.hw-checker__row { display: flex; gap: 12px; flex-wrap: wrap; }
.hw-checker__input {
  flex: 1 1 240px; min-width: 0; height: 44px; padding-inline: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hw-checker__input::placeholder { color: var(--slate-400); }
.hw-checker__input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.hw-checker__row .btn { height: 44px; }
.hw-checker__scan { color: var(--slate-700); padding-inline: 16px; }
.hw-checker__foot { margin-top: 28px; display: grid; gap: 12px; }
.hw-checker__foot p { font-size: 12px; line-height: 1.4; color: var(--slate-500); }

/* checker output (classes set by assets/js/main.js) */
.hw-checker .ticket-result {
  margin-top: 8px; padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; line-height: 1.5;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--slate-700);
}
.hw-checker .ticket-result--win  { background: var(--success-bg); border-color: #a7f3d0; color: #065f46; }
.hw-checker .ticket-result--lose { background: var(--bg-soft); }
.hw-checker .ticket-result--error{ background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* verification sequence card */
.hw-verify {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  min-height: 340px;
  display: grid; gap: 24px; align-content: center;
}
.hw-verify__eyebrow {
  text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate-500);
}
.hw-verify__flow { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hw-verify__arrow { color: var(--slate-300); margin-bottom: 28px; }
.hw-vstep { display: grid; gap: 12px; justify-items: center; width: 110px; }
.hw-vstep__label { font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; }
.hw-vstep__visual {
  width: 64px; height: 80px; border-radius: 6px; position: relative;
  display: grid; place-items: center;
}
.hw-vstep__visual--ticket {
  background: var(--bg-soft); border: 1.5px solid var(--slate-400); border-radius: 4px;
  align-content: center; justify-items: center; gap: 4px; padding: 10px;
}
.hw-vstep__visual--ticket i {
  display: block; width: 40px; height: 2px; background: var(--slate-300); border-radius: 1px;
}
.hw-vstep__visual--ticket i.short { width: 28px; }
.hw-vstep__barcode { display: flex; gap: 2px; margin-top: 2px; align-items: flex-end; height: 10px; }
.hw-vstep__barcode b { display: block; height: 10px; background: var(--slate-400); }
.hw-vstep__barcode b:nth-child(1) { width: 2px; }
.hw-vstep__barcode b:nth-child(2) { width: 1px; }
.hw-vstep__barcode b:nth-child(3) { width: 3px; }
.hw-vstep__barcode b:nth-child(4) { width: 1.5px; }
.hw-vstep__visual--scanner { background: #f0fdfa; border: 1.5px solid var(--teal); }
.hw-vstep__visual--scanner .corner { position: absolute; width: 8px; height: 8px; border: 1px solid var(--teal); }
.hw-vstep__visual--scanner .tl { top: 8px; left: 4px; border-right: 0; border-bottom: 0; }
.hw-vstep__visual--scanner .tr { top: 8px; right: 4px; border-left: 0; border-bottom: 0; }
.hw-vstep__visual--scanner .bl { bottom: 8px; left: 4px; border-right: 0; border-top: 0; }
.hw-vstep__visual--scanner .br { bottom: 8px; right: 4px; border-left: 0; border-top: 0; }
.hw-vstep__laser { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--teal); }
.hw-vstep__visual--result { background: #ecfdf5; border: 1.5px solid var(--success-bg); }
.hw-vstep__check {
  width: 32px; height: 32px; border-radius: 50%;
  background: #10b981; color: var(--white);
  display: grid; place-items: center;
}

@media (max-width: 1100px) {
  .hw-checker__inner { grid-template-columns: 1fr; gap: 40px; }
  .hw-verify { max-width: 520px; }
}
@media (max-width: 720px) {
  .hw-checker { padding-block: 40px; }
  .hw-checker__head h2 { font-size: 28px; }
  .hw-checker__head p { font-size: 14px; }
  .hw-checker__card { padding: 16px; gap: 12px; }
  .hw-checker__label { font-size: 13px; }
  .hw-checker__row { flex-direction: column; gap: 8px; }
  .hw-checker__input { flex-basis: auto; width: 100%; height: 42px; font-size: 13px; }
  .hw-checker__row .btn { width: 100%; height: 42px; }
  .hw-verify { padding: 16px; min-height: 0; gap: 16px; }
  .hw-verify__flow { gap: 4px; justify-content: space-between; }
  .hw-verify__arrow { margin-bottom: 24px; color: var(--border); }
  .hw-vstep { width: 90px; gap: 8px; }
  .hw-vstep__visual { width: 48px; height: 60px; padding: 8px; }
  .hw-vstep__visual--ticket i { width: 30px; }
  .hw-vstep__visual--ticket i.short { width: 20px; }
  .hw-vstep__label { font-size: 11px; }
  .hw-vstep__check { width: 24px; height: 24px; }
  .hw-vstep__check svg { width: 12px; height: 12px; }
}

/* ---------- PLAY BRIGHT ---------- */
.hw-bright { background: var(--bg-tint); padding-block: 80px; }
.hw-bright__head { max-width: 680px; display: grid; gap: 12px; margin-bottom: 48px; }
.hw-bright__head h2 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.hw-bright__head p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.hw-help {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  padding: 24px 0 24px 38px;
  margin-bottom: 48px;
}
.hw-help::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--teal);
}
.hw-help__content { display: grid; gap: 16px; align-content: center; justify-items: start; }
.hw-help__content h3 { font-size: 24px; font-weight: 700; }
.hw-help__content > p { font-size: 15px; line-height: 1.6; color: var(--slate-700); }
.hw-help__phone { display: flex; align-items: center; gap: 12px; }
.hw-help__phone-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal); color: var(--white);
  display: grid; place-items: center;
}
.hw-help__phone a { font-size: 18px; font-weight: 700; color: var(--ink); }
.hw-help__call { padding-inline: 30px; font-weight: 700; }

/* support illustration */
.hw-support {
  position: relative; min-height: 220px; border-radius: var(--radius-lg);
  background-image: radial-gradient(circle, rgba(217, 226, 235, .45) 1px, transparent 1.2px);
  background-size: 24px 24px; background-position: 11px 11px;
}
.hw-support__line {
  position: absolute; left: 64px; right: 68px; top: 90px; height: 2px;
  background: rgba(9, 162, 159, .25); border-radius: 1px;
}
.hw-support__node { position: absolute; display: grid; justify-items: center; width: 92px; text-align: center; }
.hw-support__node--1 { left: 22px; top: 50px; }
.hw-support__node--2 { left: 114px; top: 50px; }
.hw-support__node--3 { right: 24px; top: 42px; }
.hw-support__num { font-size: 9px; color: rgba(9, 162, 159, .55); margin-bottom: 4px; }
.hw-support__circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(97, 128, 163, .25);
  display: grid; place-items: center; color: rgba(28, 42, 74, .6);
}
.hw-support__circle--accent {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(9, 162, 159, .5); color: #09a29f;
  box-shadow: 0 0 0 6px rgba(9, 162, 159, .06), 0 0 0 12px rgba(9, 162, 159, .04);
}
.hw-support__title {
  margin-top: 10px; font-size: 8px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #1c2a4a;
}
.hw-support__title.accent { color: #09a29f; }
.hw-support__sub { font-size: 7.5px; color: rgba(97, 128, 163, .75); }

@media (max-width: 1100px) {
  .hw-help { grid-template-columns: 1fr; padding: 24px 24px 24px 38px; }
  .hw-support { max-width: 360px; }
}
@media (max-width: 720px) {
  .hw-bright { padding-block: 40px; }
  .hw-bright__head { margin-bottom: 24px; }
  .hw-bright__head h2 { font-size: 28px; line-height: 1.2; }
  .hw-bright__head p { font-size: 14px; }
  .hw-help { padding: 20px; gap: 12px; margin-bottom: 24px; }
  .hw-help::before { display: none; }
  .hw-help__content h3 { font-size: 20px; }
  .hw-help__content > p { font-size: 13px; }
  .hw-help__phone a { font-size: 16px; }
  .hw-help__content div:last-child { justify-self: stretch; }
  .hw-help__call { width: 100%; height: 42px; }
  .hw-support { display: none; }
}
