/* ============================================================================
   _offer_sheet.css — THE REDESIGNED TRIAL OFFER SHEETS (v3 surfaces).
   Ported from the owner-approved build:
     output/ua/offer_redesign_2026-08-17/build/sheet.css
     acceptance renders RECOMMENDED_{15_words,30_words,200_listens}.png
   Used by three v2 surfaces only (hts.js v3sheet): session1_offer (15 plays),
   progress_30 (30 plays, the graceful last touch), lock_capped (200 cap).
   Every other sheet still renders through the older .htsv2 kit — untouched.

   ⚠️ EVERY CLASS IS NAMESPACED `o3__*`. The approved build used generic names
   (.eye/.chip/.big/.rule/.cta/.stake/.warm/.col/.th…) and EVERY ONE of those
   already exists in the app's own stylesheets — `.ico` 86 times, `.wave` 26,
   `.cta` 19, `.stake` 19, `.chip` 17. Bleed is not hypothetical: with generic
   names the app's `.rule` painted a 60px bordered box inside the eyebrow row and
   broke containment on landscape phones. Do NOT reintroduce a bare class here.

   THEME-INVARIANT BY DESIGN (literal hex only, no tokens, no prefers-color-scheme
   block) — same discipline as the navy Word-Breakdown card: this surface is one
   fixed navy/gold composition in light AND dark, exactly as approved.
   Thai = 'HTSThai' (Leelawadee UI, REAL 400/700 faces from tokens.css) — font law.
   CONTAINER IS GOD: the sheet is a flex column, the ledger area is the only thing
   that may ever compress/scroll, and the CTA + dismiss are flex siblings so they
   can never be pushed off screen. 45/45 device matrix.
   ==========================================================================*/

/* ---- the overlay ---- */
.htsv3{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(4,8,15,.74);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  color:#c9d6ea;-webkit-font-smoothing:antialiased;animation:htsv3F .22s ease both;
  /* the app's base.css sets body{line-height:1.55}; the approved build laid out at the browser
     default, so reset it here or every unset line in the sheet grows ~30% and the composition
     no longer fits the short-viewport variants. Explicit line-heights below are unaffected. */
  line-height:normal}
.htsv3 *{box-sizing:border-box}
.htsv3 h1,.htsv3 ul,.htsv3 li,.htsv3 p{margin:0;padding:0}
@keyframes htsv3F{from{opacity:0}to{opacity:1}}
@keyframes htsv3U{from{transform:translateY(26px);opacity:.4}to{transform:none;opacity:1}}

/* ---- the sheet ---- */
.htsv3c{position:relative;width:100%;display:flex;flex-direction:column;max-height:100%;
  padding:18px 20px calc(22px + env(safe-area-inset-bottom));
  background:linear-gradient(178deg,#0d2440 0%,#0a1a2f 46%,#071324 100%);
  border-top:1px solid rgba(232,199,147,.30);
  border-radius:26px 26px 0 0;
  box-shadow:0 -34px 80px -18px rgba(2,6,14,.92), inset 0 1px 0 rgba(255,244,224,.10);
  animation:htsv3U .34s cubic-bezier(.2,.8,.3,1) both}
.htsv3c::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,243,220,.75),transparent)}
.htsv3 .o3__grip{width:36px;height:4px;border-radius:3px;margin:0 auto 15px;flex:0 0 auto;
  background:linear-gradient(90deg,rgba(232,199,147,.15),rgba(232,199,147,.55),rgba(232,199,147,.15))}
.htsv3 .o3__body{flex:0 1 auto;min-height:0;overflow:hidden}
.htsv3 .o3__cta,.htsv3 .o3__no,.htsv3 .o3__fine{flex:0 0 auto}

/* ---- head block ---- */
.htsv3 .o3__eye{display:flex;align-items:center;gap:9px;font-size:9.5px;font-weight:700;letter-spacing:.24em;
  text-transform:uppercase;color:#e8c793;margin-bottom:11px}
.htsv3 .o3__dot{width:5px;height:5px;border-radius:50%;background:#e8c793;box-shadow:0 0 8px 2px rgba(232,199,147,.5);flex:0 0 auto}
.htsv3 .o3__rule{flex:1 1 auto;height:1px;min-width:0;background:linear-gradient(90deg,rgba(232,199,147,.28),transparent)}
.htsv3 h1{font-family:'Poppins','Inter',system-ui,sans-serif;font-weight:700;font-size:25px;line-height:1.08;
  letter-spacing:-.022em;color:#fff;text-shadow:0 2px 20px rgba(3,8,18,.8)}
.htsv3 h1 em{font-style:normal;background:linear-gradient(178deg,#fff6e4 6%,#e8c793 54%,#c99a4f 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 14px rgba(232,199,147,.28))}
.htsv3 .o3__sub{margin-top:9px;font-size:12.8px;line-height:1.5;color:#93a6c4;letter-spacing:.002em}

/* ---- LEDGER: the user's own proof (their real played words) ---- */
.htsv3 .o3__ledger{margin-top:15px;border:1px solid rgba(148,175,214,.16);border-radius:16px;overflow:hidden;
  background:linear-gradient(178deg,rgba(15,42,74,.72),rgba(8,22,40,.62))}
.htsv3 .o3__top{display:flex;align-items:center;gap:12px;padding:12px 13px 11px}
.htsv3 .o3__big{font-family:'Poppins','Inter',system-ui,sans-serif;font-weight:700;font-size:40px;
  line-height:.9;letter-spacing:-.03em;
  background:linear-gradient(176deg,#fff8ea 4%,#e8c793 58%,#c5903f 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 14px rgba(232,199,147,.30))}
.htsv3 .o3__lbl{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#93a6c4;line-height:1.35}
.htsv3 .o3__lbl s{display:block;text-decoration:none;color:#687c9b;font-weight:600;letter-spacing:.05em;
  text-transform:none;font-size:10.5px;margin-top:2px}
.htsv3 .o3__wave{margin-left:auto;flex:0 0 auto;opacity:.9;line-height:0}
.htsv3 .o3__chips{display:flex;gap:7px;padding:0 13px 12px}
.htsv3 .o3__chip{flex:1 1 0;min-width:0;padding:8px 6px 7px;border-radius:11px;text-align:center;
  background:linear-gradient(178deg,rgba(31,112,223,.16),rgba(10,26,47,.5));
  border:1px solid rgba(126,164,222,.20);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.htsv3 .o3__th{font-family:'HTSThai','Leelawadee UI',sans-serif;font-weight:700;font-size:17px;
  line-height:1.35;color:#fff;white-space:nowrap}
.htsv3 .o3__en{margin-top:1px;font-size:8.6px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:#687c9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.htsv3 .o3__chips--tight .o3__th{font-size:15px}

/* ---- STAKE: keep vs stays-locked ---- */
.htsv3 .o3__stake{margin-top:13px;display:flex;border:1px solid rgba(148,175,214,.15);border-radius:16px;overflow:hidden}
.htsv3 .o3__col{flex:1 1 0;min-width:0;padding:11px 12px 12px}
.htsv3 .o3__col+.o3__col{border-left:1px solid rgba(148,175,214,.16)}
.htsv3 .o3__ch{display:flex;align-items:center;gap:6px;font-size:9.5px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;margin-bottom:8px}
.htsv3 .o3__col--keep .o3__ch{color:#7fdcb4}
.htsv3 .o3__col--lose .o3__ch{color:#f0a4a4}
.htsv3 .o3__stake ul{list-style:none}
.htsv3 .o3__stake li{font-size:11.4px;line-height:1.42;color:#c9d6ea;padding-left:11px;position:relative;margin-bottom:5px}
.htsv3 .o3__stake li:last-child{margin-bottom:0}
.htsv3 .o3__stake li::before{content:"";position:absolute;left:0;top:6px;width:4px;height:4px;border-radius:50%}
.htsv3 .o3__col--keep li::before{background:#4fc08d}
.htsv3 .o3__col--lose li::before{background:#e0768a}
.htsv3 .o3__col--lose li{color:#93a6c4}

/* ---- DEADLINE band (the real, user-owned clock) ---- */
.htsv3 .o3__dl{margin-top:13px;display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:14px;
  background:linear-gradient(96deg,rgba(207,146,51,.16),rgba(207,146,51,.05));
  border:1px solid rgba(232,199,147,.30)}
.htsv3 .o3__ico{flex:0 0 auto;line-height:0}
.htsv3 .o3__dl .o3__t{font-size:11.6px;line-height:1.4;color:#fff3dc;font-weight:600}
.htsv3 .o3__dl .o3__t b{color:#fff;font-weight:800;letter-spacing:.005em}
.htsv3 .o3__dl .o3__t s{display:block;text-decoration:none;color:rgba(232,199,147,.72);font-weight:500;font-size:10.6px;margin-top:2px}

/* ---- WARM band (the graceful last touch: no clock, no pressure) ---- */
.htsv3 .o3__warm{margin-top:13px;display:flex;align-items:flex-start;gap:11px;padding:11px 13px;border-radius:14px;
  background:linear-gradient(96deg,rgba(79,192,141,.13),rgba(31,112,223,.06));
  border:1px solid rgba(126,200,168,.26)}
.htsv3 .o3__warm .o3__ico{margin-top:1px}
.htsv3 .o3__warm .o3__t{font-size:11.8px;line-height:1.4;color:#d8f0e4;font-weight:700}
.htsv3 .o3__warm .o3__t s{display:block;text-decoration:none;color:rgba(190,214,205,.82);font-weight:500;font-size:10.8px;
  line-height:1.45;margin-top:3px}
/* "plain" band variant (lock_expired, owner 08-18): no icon, centered text */
.htsv3 .o3__warm--c{justify-content:center}
.htsv3 .o3__warm--c .o3__t{text-align:center}

/* ---- DOOR: one CTA ---- */
.htsv3 .o3__cta{display:block;width:100%;margin-top:15px;padding:14px 16px 13px;border:0;border-radius:15px;
  background:linear-gradient(176deg,#ffe6b4 0%,#e8c793 42%,#cf9233 100%);
  color:#2a1a04;text-align:center;cursor:pointer;font-family:inherit;line-height:normal;
  box-shadow:0 16px 34px -12px rgba(207,146,51,.62), inset 0 1px 0 rgba(255,255,255,.6)}
.htsv3 .o3__l{font-family:'Poppins','Inter',system-ui,sans-serif;font-weight:700;font-size:16px;letter-spacing:-.01em;display:block}
.htsv3 .o3__s{display:block;margin-top:3px;font-size:10.2px;font-weight:600;letter-spacing:.045em;
  text-transform:uppercase;color:rgba(42,26,4,.72)}
/* relaxed variant — available, not pressing (the graceful last-touch sheet) */
.htsv3 .o3__cta--calm{margin-top:13px;padding:11px 14px 10px;border:1px solid rgba(232,199,147,.62);
  background:linear-gradient(178deg,rgba(232,199,147,.16),rgba(207,146,51,.07));
  color:#fff3dc;box-shadow:0 10px 26px -16px rgba(207,146,51,.45), inset 0 1px 0 rgba(255,244,224,.10)}
.htsv3 .o3__cta--calm .o3__l{font-size:14px}
.htsv3 .o3__cta--calm .o3__s{color:rgba(232,199,147,.66);margin-top:3px}

.htsv3 .o3__no{display:block;width:100%;margin-top:10px;background:none;border:0;cursor:pointer;
  font-family:inherit;font-size:12.4px;font-weight:600;color:#687c9b;text-align:center;line-height:normal;padding:0}
.htsv3 .o3__fine{margin-top:11px;padding-top:11px;border-top:1px solid rgba(148,175,214,.13);
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  font-size:9.4px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:#687c9b;text-align:center}
.htsv3 .o3__fine span{white-space:nowrap}
.htsv3 .o3__fine i{width:3px;height:3px;border-radius:50%;background:rgba(232,199,147,.45);display:inline-block}

/* ============================================================================
   CONTAINMENT — short viewports (landscape phones, small laptops): compress,
   then let the LEDGER area scroll; the CTA block is a flex sibling so it can
   never move off screen.
   ==========================================================================*/
@media (max-height:800px){
  .htsv3c{border-radius:20px 20px 0 0;padding:14px 18px calc(16px + env(safe-area-inset-bottom))}
  .htsv3 .o3__grip{margin-bottom:11px}
  .htsv3 h1{font-size:22px}
  .htsv3 .o3__sub{font-size:12.2px;margin-top:8px}
  .htsv3 .o3__ledger{margin-top:12px}
  .htsv3 .o3__big{font-size:34px}
  .htsv3 .o3__top{padding:10px 12px 9px}
  .htsv3 .o3__chips{padding:0 12px 10px}
  .htsv3 .o3__th{font-size:16px}
  .htsv3 .o3__chips--tight .o3__th{font-size:14px}
  .htsv3 .o3__stake,.htsv3 .o3__dl,.htsv3 .o3__warm{margin-top:11px}
  .htsv3 .o3__stake li{font-size:11px}
  .htsv3 .o3__cta{margin-top:12px;padding:12px 14px 11px}
  .htsv3 .o3__l{font-size:15px}
  .htsv3 .o3__body{overflow-y:auto;-webkit-overflow-scrolling:touch}
}
@media (max-height:560px){
  .htsv3c{padding:11px 16px calc(13px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
  .htsv3 .o3__grip{margin-bottom:8px}
  .htsv3 .o3__eye{margin-bottom:8px;font-size:9px}
  .htsv3 h1{font-size:18.5px;line-height:1.1}
  .htsv3 .o3__sub{font-size:11.4px;line-height:1.42;margin-top:6px}
  .htsv3 .o3__ledger{margin-top:9px}
  .htsv3 .o3__big{font-size:27px}
  .htsv3 .o3__top{padding:8px 10px 7px;gap:9px}
  .htsv3 .o3__lbl{font-size:9.5px}
  .htsv3 .o3__lbl s{font-size:9.5px}
  .htsv3 .o3__chips{padding:0 10px 8px;gap:6px}
  .htsv3 .o3__chip{padding:6px 5px 5px}
  .htsv3 .o3__th{font-size:14px}
  .htsv3 .o3__chips--tight .o3__th{font-size:13px}
  .htsv3 .o3__en{font-size:7.8px}
  .htsv3 .o3__stake,.htsv3 .o3__dl,.htsv3 .o3__warm{margin-top:9px}
  .htsv3 .o3__col{padding:9px 10px 10px}
  .htsv3 .o3__stake li{font-size:10.4px;margin-bottom:4px}
  .htsv3 .o3__dl,.htsv3 .o3__warm{padding:9px 11px}
  .htsv3 .o3__dl .o3__t,.htsv3 .o3__warm .o3__t{font-size:10.8px}
  .htsv3 .o3__dl .o3__t s,.htsv3 .o3__warm .o3__t s{font-size:9.8px}
  .htsv3 .o3__cta{margin-top:10px;padding:10px 12px 9px;border-radius:12px}
  .htsv3 .o3__l{font-size:13.5px}
  .htsv3 .o3__s{font-size:9.2px}
  .htsv3 .o3__cta--calm .o3__l{font-size:12.6px}
  .htsv3 .o3__no{margin-top:7px;font-size:11.6px}
  .htsv3 .o3__fine{margin-top:8px;padding-top:8px;font-size:8.6px}
}
/* VERY short viewports (landscape phones, 375-430px tall): the two-column stake, the
   sub-line and the breadth strip are the expendable elaboration — the persuasion spine
   is ledger + deadline/promise + door. Dropping them is a DESIGNED variant, not a
   truncation: everything that remains is fully rendered and nothing scrolls. */
@media (max-height:470px){
  .htsv3 .o3__stake{display:none}
  .htsv3 .o3__sub{display:none}
  .htsv3 .o3__fine{display:none}
  .htsv3 .o3__eye{margin-bottom:6px}
  .htsv3 h1{font-size:17px;line-height:1.09}
  .htsv3 .o3__ledger{margin-top:8px;border-radius:13px}
  .htsv3 .o3__big{font-size:24px}
  .htsv3 .o3__top{padding:7px 9px 6px;gap:8px}
  .htsv3 .o3__chips{padding:0 9px 7px;gap:5px}
  .htsv3 .o3__dl,.htsv3 .o3__warm{margin-top:8px;padding:8px 10px}
  .htsv3 .o3__cta{margin-top:9px}
  .htsv3 .o3__no{margin-top:6px}
  .htsv3 .o3__body{overflow:hidden}
}

/* tablet / desktop: the app centers its sheets at >=620px — mirror it (the approved build) */
@media (min-width:620px){
  .htsv3{align-items:center}
  /* 2026-08-17 owner order: desktop/laptop/iPad sheets +20% overall (mobile untouched).
     zoom scales the whole dialog — type, spacing, everything — as one unit; the max-height
     divisor keeps the scaled sheet inside the viewport. */
  .htsv3c{width:430px;max-width:430px;border-radius:22px;zoom:1.2;max-height:calc((100% - 28px)/1.2);
    border:1px solid rgba(232,199,147,.28);padding:22px 22px 20px}
  .htsv3c::before{display:none}
  .htsv3 .o3__grip{display:none}
}
@media (min-width:620px) and (max-height:560px){ .htsv3c{padding:14px 16px 14px} }

/* Early-bird in-sheet note (2026-08-17): first-48h users only, sits directly above the CTA. */
.htsv3 .o3__ebline{margin:12px 2px 9px;text-align:center;font-size:12.5px;letter-spacing:.02em;
  color:#e8c793;line-height:1.4}
.htsv3 .o3__ebline b{color:#ffd691;font-weight:700}

/* ---- htsv3--xl: the EXPIRED WALL ONLY rides ~8% bigger on phones (owner 2026-08-18).
   Scoped modifier — the 15/30/200 sheets keep their approved sizes. Tiers mirror the
   shrink breakpoints above; placed at end of file so each tier re-overrides in order. */
.htsv3--xl .o3__eye{font-size:10.2px}
.htsv3--xl h1{font-size:27px}
.htsv3--xl .o3__sub{font-size:13.6px}
.htsv3--xl .o3__big{font-size:44px}
.htsv3--xl .o3__lbl,.htsv3--xl .o3__lbl s{font-size:11.2px}
.htsv3--xl .o3__ch{font-size:10.2px}
.htsv3--xl .o3__stake li{font-size:12.2px}
.htsv3--xl .o3__warm .o3__t{font-size:12.6px}
.htsv3--xl .o3__warm .o3__t s{font-size:11.5px}
.htsv3--xl .o3__l{font-size:17px}
.htsv3--xl .o3__s{font-size:10.8px}
.htsv3--xl .o3__no{font-size:13.2px}
@media (max-height:800px){
  .htsv3--xl h1{font-size:24px}
  .htsv3--xl .o3__sub{font-size:13px}
  .htsv3--xl .o3__big{font-size:38px}
  .htsv3--xl .o3__stake li{font-size:11.8px}
  .htsv3--xl .o3__warm .o3__t{font-size:12.2px}
  .htsv3--xl .o3__warm .o3__t s{font-size:11px}
  .htsv3--xl .o3__l{font-size:16px}
}
@media (max-height:560px){
  .htsv3--xl h1{font-size:19px}
  .htsv3--xl .o3__sub{font-size:11.8px}
  .htsv3--xl .o3__big{font-size:29px}
  .htsv3--xl .o3__stake li{font-size:10.8px}
  .htsv3--xl .o3__warm .o3__t{font-size:11.2px}
  .htsv3--xl .o3__warm .o3__t s{font-size:10.2px}
  .htsv3--xl .o3__l{font-size:14px}
  .htsv3--xl .o3__s{font-size:9.4px}
}
@media (max-height:470px){
  .htsv3--xl h1{font-size:17.5px}
  .htsv3--xl .o3__big{font-size:25px}
}
