/* Rủ Rê, the top of the page: the hero and the scrolling ribbon of kèo types, ported from the first landing page
   (main branch, assets/css/styles.css) at the client's request. Classes are prefixed oh- so they never meet the
   system's .hero, .btn, .stage or .chip. Be Vietnam Pro is the app's own face. */
.oh {
  --oh-bg: #fff5e8; --oh-surface: #ffffff; --oh-surface-2: #ffe9cc; --oh-ink: #2a1606; --oh-muted: #6e4a2c;
  --oh-line: #f6dcb8; --oh-line-strong: #e2bb87; --oh-cta: #ff8e0d; --oh-cta-hover: #f58205; --oh-ok: #2b7a3d;
  --oh-shadow: 0 1px 2px rgba(42, 22, 6, .06), 0 12px 32px -12px rgba(42, 22, 6, .18);
  --oh-shadow-cta: 0 6px 18px rgba(255, 142, 13, .35);
  --oh-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tone-cau-long: #4338ca; --tone-chay-bo: #bfe3ff; --tone-trekking: #cfe8a9; --tone-bong-ro: #ffb877;
  --tone-bong-da: #b5e6a4; --tone-bong-ban: #ffcfd2; --tone-tennis: #f2f08a; --tone-pickleball: #ffd51b;
  --tone-nhau: #ffe58a; --tone-bar-pub: #ffc0dc; --tone-cafe: #ecd3b8; --tone-boardgame: #ffd9b8;
  --tone-study-date: #fbcbe9; --tone-choi-game: #c8dcff;
  font-family: var(--oh-font); color: var(--oh-ink);
}
.oh-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

/* the section: the first screen, the ribbon at its foot */
.oh-hero { position: relative; min-height: 100svh; padding-top: var(--nav, 72px); display: flex; flex-direction: column; overflow: hidden; background: var(--oh-bg); }
.oh-hero__main { flex: 1 1 auto; display: flex; align-items: center; padding: 40px 0 56px; }
.oh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.oh-hero h1 { margin: 0; font-family: var(--oh-font); font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.04; color: var(--oh-ink); }
.oh-hl { position: relative; white-space: nowrap; z-index: 0; isolation: isolate; }
.oh-hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1; background: var(--tone-pickleball); border-radius: 6px; transform: rotate(-1deg); }
.oh-lead { max-width: 560px; margin: 24px 0 0; font-size: 1.25rem; line-height: 1.6; color: var(--oh-muted); font-weight: 400; }
.oh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin: 0 0 24px; background: var(--oh-surface); border: 1px solid var(--oh-line); border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--oh-ink); }
.oh-pill b { background: var(--oh-ink); color: var(--oh-bg); border-radius: 999px; padding: 2px 10px; font-size: .75rem; letter-spacing: .04em; font-weight: 700; }
.oh-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.oh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--oh-font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s, transform .15s, box-shadow .15s, border-color .15s; }
.oh-btn:hover { transform: translateY(-1px); }
.oh-btn:active { transform: translateY(1px); }
.oh-btn--primary { background: var(--oh-cta); color: var(--oh-ink); box-shadow: var(--oh-shadow-cta); }
.oh-btn--primary:hover { background: var(--oh-cta-hover); color: var(--oh-ink); }
.oh-btn--ghost { background: var(--oh-surface); color: var(--oh-ink); border-color: var(--oh-line-strong); }
.oh-btn--ghost:hover { border-color: var(--oh-ink); color: var(--oh-ink); }
.oh-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--oh-muted); font-size: .875rem; font-weight: 500; }
.oh-trust li { display: inline-flex; align-items: center; gap: 6px; }
.oh-trust .oh-icon { color: var(--oh-ok); width: 18px; height: 18px; }

/* the phone */
.oh-stage { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.oh-stage::before { content: ""; position: absolute; width: 480px; height: 480px; max-width: 110%; border-radius: 50%; background: var(--oh-surface-2); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.oh-phone { position: relative; width: 320px; aspect-ratio: 320 / 660; border-radius: 48px; padding: 12px; background: var(--oh-ink); box-shadow: 0 40px 80px -24px rgba(42, 22, 6, .45); margin: 0; }
.oh-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f4ecdf; display: flex; flex-direction: column; }
.oh-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: var(--oh-ink); border-radius: 999px; z-index: 3; }
.oh-map { position: relative; height: 44%; flex: none; }
.oh-map svg { display: block; width: 100%; height: 100%; }
.oh-map-top { position: absolute; top: 44px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.oh-map-top img { height: 18px; width: auto; }
.oh-map-filter { display: inline-flex; align-items: center; gap: 4px; background: var(--oh-surface); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; box-shadow: 0 2px 6px rgba(42, 22, 6, .12); }
.oh-map-filter .oh-icon { width: 12px; height: 12px; }
.oh-sheet { flex: 1; background: var(--oh-bg); border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.oh-grab { width: 36px; height: 4px; border-radius: 4px; background: var(--oh-line-strong); margin: -6px auto 2px; }
.oh-chip-cat { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--tone-cau-long); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.oh-pills { display: flex; gap: 6px; justify-content: center; }
.oh-mpill { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--oh-line-strong); border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--oh-surface); }
.oh-mpill .oh-icon { width: 11px; height: 11px; }
.oh-box { display: flex; gap: 6px; align-items: flex-start; padding: 7px 9px; border: 1px solid var(--oh-line); border-radius: 12px; font-size: 10.5px; line-height: 1.4; background: var(--oh-surface); }
.oh-box .oh-icon { width: 12px; height: 12px; margin-top: 1px; color: var(--oh-muted); }
.oh-members { display: flex; gap: 8px; }
.oh-member { flex: 1; border-radius: 14px; padding: 8px; height: 92px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 10px; font-weight: 700; line-height: 1.3; position: relative; overflow: hidden; }
.oh-avatar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; background: rgba(255, 255, 255, .75); }
.oh-member small { display: block; font-weight: 500; opacity: .85; font-size: 10px; }
.oh-m1 { background: var(--tone-choi-game); }
.oh-m2 { background: var(--tone-bar-pub); }
.oh-m3 { background: var(--tone-trekking); }
.oh-face { position: absolute; top: 36px; left: calc(50% + 10px); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--oh-ok); color: #fff; font-size: 9px; font-weight: 800; border: 2px solid #fff; }
.oh-phone-cta { margin-top: auto; background: var(--oh-cta); color: var(--oh-ink); text-align: center; border-radius: 999px; padding: 10px; font-size: 13px; font-weight: 800; }
.oh-float { position: absolute; z-index: 2; background: var(--oh-surface); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--oh-shadow); display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; line-height: 1.35; max-width: 240px; }
.oh-float .oh-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.oh-float small { display: block; color: var(--oh-muted); font-weight: 500; font-size: .75rem; }
.oh-float-1 { top: 18%; left: -2%; }
.oh-float-1 .oh-ic { background: #dff3e3; color: var(--oh-ok); }
.oh-float-2 { bottom: 14%; right: 0; }
.oh-float-2 .oh-ic { background: var(--tone-cafe); }
.oh-float-2 .oh-ic img { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .oh-float-1 { animation: oh-bob 6s ease-in-out infinite; }
  .oh-float-2 { animation: oh-bob 7s ease-in-out -2s infinite; }
  @keyframes oh-bob { 50% { transform: translateY(-8px); } }
}

/* the ribbon of kèo types, scrolling sideways */
.oh-ribbon { position: relative; display: flex; align-items: center; gap: 16px; padding: 28px 0; border-block: 1px solid var(--oh-line); background: var(--oh-surface); overflow: hidden; }
.oh-window { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.oh-track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: no-preference) {
  .oh-track { animation: oh-marquee 48s linear infinite; }
  .oh-ribbon:hover .oh-track { animation-play-state: paused; }
  @keyframes oh-marquee { to { transform: translateX(-50%); } }
}
.oh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap; color: var(--oh-ink); }
.oh-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; }
@media (prefers-reduced-motion: reduce) { .oh-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; } .oh-track [aria-hidden="true"] { display: none; } }
.t-cau-long { background: var(--tone-cau-long); color: #fff; }
.t-chay-bo { background: var(--tone-chay-bo); }
.t-trekking { background: var(--tone-trekking); }
.t-bong-ro { background: var(--tone-bong-ro); }
.t-bong-da { background: var(--tone-bong-da); }
.t-bong-ban { background: var(--tone-bong-ban); }
.t-tennis { background: var(--tone-tennis); }
.t-pickleball { background: var(--tone-pickleball); }
.t-nhau { background: var(--tone-nhau); }
.t-bar-pub { background: var(--tone-bar-pub); }
.t-cafe { background: var(--tone-cafe); color: #4a2e1a; }
.t-boardgame { background: var(--tone-boardgame); }
.t-study-date { background: var(--tone-study-date); }
.t-choi-game { background: var(--tone-choi-game); }

/* the header, as the first page drew it: the words in the middle, an orange pill button */
.nav, .nav .nav__link { font-family: var(--oh-font, "Be Vietnam Pro", system-ui, sans-serif); }
.nav .nav__link { font-weight: 600; font-size: .9375rem; }
.btn--primary { --action: #ff8e0d; --action-ink: #2a1606; font-weight: 700; box-shadow: 0 6px 18px rgba(255, 142, 13, .35); }
.btn--primary:focus-visible, .oh-btn:focus-visible { outline: 2px solid #2a1606; outline-offset: 3px; }

@media (max-width: 960px) {
  .oh-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .oh-hero__main { padding-top: 32px; }
}
@media (max-width: 480px) {
  .oh-phone { width: 300px; }
  .oh-m3 { display: none; }
  .oh-float-1 { display: none; }
  .oh-float-2 { right: 0; bottom: auto; top: 30%; }
  .oh-ctas .oh-btn { width: 100%; }
}

/* the section box: the hero holds its own height and padding (the system's main > section rule would cut the ribbon) */
main > section.oh-hero { height: auto; min-height: 100svh; padding: var(--nav, 72px) 0 0; }
/* a shorter screen (a 1440x900 laptop): less air round the phone, so the ribbon still ends the first screen */
@media (min-width: 961px) and (max-height: 980px) {
  .oh-hero__main { padding: 12px 0 12px; }
  .oh-stage { padding: 8px 0; }
  .oh-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
  .oh-pill { margin-bottom: 20px; }
  .oh-lead { margin-top: 20px; }
  .oh-ctas { margin-top: 28px; }
}

/* no pause buttons on the page (client's choice): a moving card or frame holds still while the pointer is on it (main.js) */
.loop-pause { display: none !important; }
