/* Home page. Self-contained: every class here starts with hm- so the older
   rules in style.css can't interfere. */
.hm { --plum:#62428a; --plum-deep:#4e3471; --plum-wash:#f1e7f7; --rose:#b45e7a; --ink:#35273a; --soft:#5e5361; --mute:#746a78; --line:#ebdfe5; --card:#fffdfa;
  max-width: 1180px; margin: 0 auto; color: var(--ink); }
.hm h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.hm p { margin: 0; color: var(--soft); line-height: 1.6; }
.hm a.btn { text-decoration: none; }
.hm-eyebrow { font-size: 11px !important; font-weight: 800; letter-spacing: .14em; color: var(--rose) !important; margin-bottom: 12px !important; }
.hm-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 30px; }

/* Hero */
.hm-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hm-title { margin: 0 0 20px; font-size: clamp(42px, 6.4vw, 78px); line-height: 1; letter-spacing: -.05em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.hm-title span { color: var(--rose); }
.hm-lede { font-size: clamp(16px, 1.5vw, 19px); max-width: 46ch; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-join { margin-top: 18px !important; font-size: 14px; color: var(--mute) !important; }
.hm-textlink { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hm-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--soft); }
.hm-facts li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #2e8b78; vertical-align: 1px; }

/* Hero scene: the product itself, drawn rather than photographed */
.hm-scene { position: relative; aspect-ratio: 1 / .92; max-width: 540px; width: 100%; margin: 0 auto; }
.hm-blob { position: absolute; inset: 4% 2% 2% 6%; background: #f3dfe6; border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; }
.hm-strip { position: absolute; left: 8%; top: 4%; width: 36%; display: grid; gap: 4.5%; padding: 5% 5% 4%; background: #fffdfa; border-radius: 6px; box-shadow: 0 22px 44px rgba(79, 55, 79, .2); transform: rotate(-6deg); }
.hm-slot { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1.45; overflow: hidden; border-radius: 3px; }
.hm-slot svg { display: block; width: 100%; height: 100%; }
.hm-slot svg:first-child { background: #f9d9cf; }
.hm-slot svg:last-of-type { background: #d9d3ef; }
.hm-slot.s2 svg:first-child { background: #f6e3b5; } .hm-slot.s2 svg:last-of-type { background: #cfe4d6; }
.hm-slot.s3 svg:first-child { background: #d5e3f3; } .hm-slot.s3 svg:last-of-type { background: #f6d3de; }
.hm-slot.s2 svg:first-child { transform: rotate(-6deg) scale(1.08); } .hm-slot.s3 svg:last-of-type { transform: rotate(6deg) scale(1.08); }
.hm-heart { position: absolute; left: 50%; top: 8%; width: 16%; aspect-ratio: 1; transform: translateX(-50%); background: #d46f77; clip-path: path('M12 21C-8 8 4-6 12 5c8-11 20 3 0 16z'); }
.hm-strip-note { text-align: center; white-space: nowrap; font-size: clamp(6px, .85vw, 9px); font-weight: 700; color: #65516a; }
.hm-card { position: absolute; padding: 14px; background: #fffdfa; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 38px rgba(79, 55, 79, .16); }
.hm-card-label { display: block; margin-bottom: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: var(--rose); }
.hm-card-draw { right: 2%; top: 12%; width: 50%; transform: rotate(4deg); }
.hm-card-draw svg { display: block; width: 100%; border-radius: 10px; background: #faf5ef; }
.hm-cursor { position: absolute; padding: 3px 9px; border-radius: 999px 999px 999px 2px; font-size: 11px; font-weight: 800; color: #fff; }
.hm-cursor.c1 { left: 58%; top: 62%; background: #c2577c; } .hm-cursor.c2 { left: 22%; top: 34%; background: var(--plum); }
.hm-card-game { right: 8%; bottom: 14%; width: 44%; transform: rotate(-3deg); }
.hm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hm-tiles b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #f1ece6; font-size: clamp(16px, 2.2vw, 24px); font-weight: 800; color: var(--plum); }
.hm-tiles b.q { background: var(--plum); color: #fff; }
.hm-pill { position: absolute; left: 4%; bottom: 6%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #35273a; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 12px 26px rgba(53, 39, 58, .25); }
.hm-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5fd0b1; }

/* Steps */
.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.hm-step { display: flex; gap: 14px; padding: 8px; }
.hm-step > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--plum-wash); color: var(--plum); font-weight: 800; }
.hm-step strong { display: block; margin-bottom: 2px; font-size: 16px; }
.hm-step p { font-size: 14px; }

/* Two main panels */
.hm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 7vw, 88px); }
.hm-panel { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; }
.hm-panel h2 { font-size: clamp(24px, 2.8vw, 32px); }
.hm-panel-booth { background: #f6e4e1; cursor: pointer; }
.hm-panel-play { background: #ebe3f5; }
.hm-panel-actions { margin-top: auto; padding-top: 10px; }
.hm-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mute); }
.hm-games { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-games a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 253, 250, .85); border: 1px solid #dccfe6; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background .15s, transform .15s; }
.hm-games a:hover { background: #fff; transform: translateY(-2px); border-color: var(--plum); }

/* Frames */
.hm-frames, .hm-more { margin-top: clamp(56px, 8vw, 104px); }
.hm-frame-row { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 2.4vw, 34px); padding: 8px 4px 30px; overflow-x: auto; }
.hm-frame { flex: 0 0 clamp(118px, 13vw, 156px); display: grid; gap: 8px; padding: 11px 11px 12px; border-radius: 4px; box-shadow: 0 12px 26px rgba(60, 42, 55, .16); transform: rotate(-3deg); }
.hm-frame:nth-child(even) { transform: rotate(3deg); margin-top: 18px; }
.hm-frame i:nth-of-type(2) { background-color: #f6e3b5; } .hm-frame i:nth-of-type(3) { background-color: #d9d3ef; }
.hm-frame i { display: block; width: 100%; height: 0; padding-bottom: 68%; box-sizing: content-box; border: 3px solid rgba(255, 255, 255, .85); background: #f9d9cf url('/illustrations/mode-duo.svg') center / cover; }
.hm-frame span { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #554456; }
.hm-frame.f1 { background: repeating-linear-gradient(90deg, #f3cad2 0 12px, #fff3ec 12px 24px); }
.hm-frame.f2 { background: radial-gradient(circle, #efc568 2px, transparent 3px) 0 0 / 19px 19px, #fff5db; }
.hm-frame.f3 { background: repeating-linear-gradient(135deg, #f2c3bf 0 8px, #fffaf3 8px 16px, #b6d5e6 16px 24px); }
.hm-frame.f4 { background: radial-gradient(circle, #ed97ae 2px, transparent 3px) 0 0 / 18px 18px, #f3e6f6; }
.hm-frame.f5 { background: #f8dce4; }

/* Smaller activities */
.hm-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-mini { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 18px; text-align: left; font: inherit; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 22px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hm-mini:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(87, 56, 76, .1); border-color: #d9c4dc; }
.hm-mini img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.hm-mini strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hm-mini span { font-size: 14px; color: var(--soft); line-height: 1.5; }

/* Closing */
.hm-closing { display: grid; justify-items: center; gap: 4px; margin-top: clamp(56px, 8vw, 104px); padding: clamp(36px, 6vw, 64px) 24px; text-align: center; background: #35273a; border-radius: 32px; }
.hm-closing h2 { color: #fff; }
.hm-closing .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hm-closing .btn.secondary:hover { background: rgba(255, 255, 255, .1); }
.hm-closing .btn.primary { background: #fff; border-color: #fff; color: var(--plum-deep); }

@media (max-width: 900px) {
  .hm-hero, .hm-duo { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-more-grid { grid-template-columns: 1fr 1fr; }
  .hm-frame-row { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .hm-more-grid { grid-template-columns: 1fr; }
  .hm-actions .btn { flex: 1 1 100%; }
}

/* Mini strip inside the photo booth panel */
.hm-panel-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; max-width: 420px; background: #fffdfa; border-radius: 8px; box-shadow: 0 10px 24px rgba(79, 55, 79, .12); transform: rotate(-1.5deg); margin: 6px 0; }

/* Phones and small tablets: headline first, then the picture, then the rest,
   so the visual is on the first screen. display: contents lets the copy's
   children be ordered alongside the scene. */
@media (max-width: 900px) {
  .hm-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 0 44px; }
  .hm-hero-copy { display: contents; }
  .hm-hero-copy > .hm-eyebrow { order: 1; margin-bottom: 10px !important; }
  .hm-title { order: 2; margin-bottom: 4px; font-size: clamp(40px, 11.5vw, 60px); }
  .hm-scene { order: 3; width: 100%; max-width: 400px; aspect-ratio: 1 / .84; margin: 8px auto 14px; }
  .hm-lede { order: 4; }
  .hm-actions { order: 5; margin-top: 22px; }
  .hm-join { order: 6; }
  .hm-facts { order: 7; margin-top: 26px; padding-top: 18px; }
}
@media (max-width: 520px) {
  .hm-actions { gap: 10px; }
  .hm-actions .btn.btn-lg { padding: 15px 20px; }
  .hm-lede { font-size: 16px; }
  .hm-facts { font-size: 12.5px; gap: 8px 16px; }
  .hm-pill { font-size: 12px; padding: 8px 13px; }
}
