/* /landing/test2's hero (components/landing/TicketEffectsHero2.js), in the owner's mockup (2026-10-19). Started as a copy
   of /landing/test's landing-test.css (scoped under .tfx2) with the new look layered on; folded into one rule per element
   on 2026-10-21 (same computed styles, checked at 8 screen sizes). landing-test.css and /landing/test are untouched. The
   ids and class names are the ones lib/ticket-effects/stack.js looks up. */

/* full bleed out of Layout's 1024 px column; clip, so the scrollbar's width never makes the page scroll sideways. <body> too:
   the browser treats clip on <html> as hidden, which leaves the page wider than the screen */
html:has(.tfx2), body:has(.tfx2) { overflow-x: clip; }
.tfx2 { --sans: var(--font-test2, "Helvetica Neue"), "Helvetica Neue", Arial, sans-serif; --thumb-w: clamp(120px, 11vw, 160px);
  width: 100%; color: #f2efe8; font: 15px/1.45 Arial, Helvetica, sans-serif; font-family: var(--sans); }
.tfx2 * { box-sizing: border-box; }

/* ======================= the sky ======================= */
/* The whole hero on one screen, the ticket as big as the height allows (owner, 2026-10-17/19). --chrome: the room above
   and below the hero, read by fitStage() in px (not 0: the stack reads 0 as unset and keeps 124 px). */
.tfx2 .hero { --chrome: 2px; position: relative; overflow: hidden; display: flex; width: 100vw; margin: 0 calc(50% - 50vw);
  background: linear-gradient(180deg, #0a66ae 0%, #0786d8 45%, #05a6fb 100%);
  min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); }
/* as wide as the screen (less a gutter), so the ticket can grow on big screens (owner, 2026-10-19); the stack sizes it.
   Spaces are padding, not margin: the stack's fitStage counts each row's height, not its margins. */
.tfx2 .content { position: relative; flex: 1; min-width: 0; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(.9rem, 2.6vh, 1.6rem);
  text-align: center; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(.15rem, .6vh, .5rem); }
/* "sky to paper" (owner pick, 2026-10-19): under the hero the blue fades to the white of the first section, eased as the
   fades between the sections (owner, 2026-10-20) */
.tfx2::after { content: ""; display: block; width: 100vw; margin: 0 calc(50% - 50vw); height: clamp(120px, 18vh, 220px); background: linear-gradient(180deg, #05a6fb 0%, color-mix(in oklab, #fff 2.8%, #05a6fb) 10%, color-mix(in oklab, #fff 10.4%, #05a6fb) 20%, color-mix(in oklab, #fff 21.6%, #05a6fb) 30%, color-mix(in oklab, #fff 35.2%, #05a6fb) 40%, color-mix(in oklab, #fff 50.0%, #05a6fb) 50%, color-mix(in oklab, #fff 64.8%, #05a6fb) 60%, color-mix(in oklab, #fff 78.4%, #05a6fb) 70%, color-mix(in oklab, #fff 89.6%, #05a6fb) 80%, color-mix(in oklab, #fff 97.2%, #05a6fb) 90%, #fff 100%); }


/* the headline: sentence case, the phrase underlined; phones get the short one */
.tfx2 .head { padding-top: clamp(.5rem, 2vh, 1.4rem); }
.tfx2 .title { font-family: var(--sans); font-weight: 700; font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 auto; color: #fff; }
.tfx2 .title u { text-decoration-thickness: .06em; text-underline-offset: .1em; }
.tfx2 .title-short { display: none; }

/* ======================= the ticket ======================= */
.tfx2 .stage { margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
/* Until the stack's script fits the stage to the screen (stack.js fitStage, about a second in): about the width it will
   pick, so the loading ticket (.ticket-wait) is the ticket's size from the first paint (2026-11-03). fitStage's sum:
   the width less the fan's reach (fanReach .035), and the height less the rest of the hero (417-465 px measured from
   1024 to 1536 px wide, a little more as the screen grows), 1.0 to 2.15 times real size */
.tfx2 .stage:not([style*="max-width"]) { max-width: min(calc(100% / 1.07 + 28px), max(556px, min(1165px, calc((100svh - 417px - 0.065 * (100vw - 1024px) - 0.14 * (100svh - 768px)) / 0.456 + 28px)))); }
.tfx2 .slot-cell { position: relative; width: 100%; display: flex; justify-content: center; padding: 0 14px 30px; }
/* a stack of tickets: all in one grid cell, one column exactly as wide as the stage, the front one on top; the ones
   behind are turned a little (--pose) so a corner shows, and rise a touch under the pointer. padding-top: the room for
   the fan (the stack's fanRoom, 0.1; less than test's 13.8%, so the ticket is bigger on one screen: owner, 2026-10-19) */
.tfx2 .stack { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; padding-top: 10%; }
/* the ticket's room before the engine has drawn it (server HTML, first frames), at most 2.15x, so nothing moves */
.tfx2 .stack::before { content: ""; grid-area: 1 / 1; width: 100%; max-width: calc(2.15 * 528px); justify-self: center; aspect-ratio: 528 / 188; pointer-events: none; }
/* ...and in that room while it loads, a pale ticket with "Loading your ticket…" and a soft sweep, so the space isn't
   blank; it fades as the ticket starts to print (owner, 2026-11-03). The editor puts it over its ticket box */
.tfx2 .ticket-wait { grid-area: 1 / 1; align-self: start; justify-self: center; width: 100%; aspect-ratio: 528 / 188; max-width: calc(2.15 * 528px);
  display: grid; place-items: center; border-radius: 6px; pointer-events: none; color: #fff; font: 600 clamp(.95rem, 1.8vw, 1.2rem) var(--sans);
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 80%) -150% 0 / 60% 100% no-repeat, rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); transition: opacity .3s ease; animation: tfx2-sweep 1.6s ease-in-out infinite; }
.tfx2 .ticket-wait.gone { opacity: 0; }
@keyframes tfx2-sweep { to { background-position: 250% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .tfx2 .ticket-wait { animation: none; } }
.tfx2 .stack-item { grid-area: 1 / 1; min-width: 0; display: flex; justify-content: center; pointer-events: none;
  transform: translateY(var(--lift, 0px)) var(--pose, rotate(0deg)); transition: transform .18s ease; }
.tfx2 .stack-item > .tfx { pointer-events: auto; }
.tfx2 .stack-item.is-back > .tfx { cursor: pointer; }
.tfx2 .stack-item.is-back:hover { --lift: -6px; }
/* the ones behind a shade darker, lighter under the pointer: on their pictures, which don't change as the stack tilts,
   rather than on the item, whose content moves every frame and had to be filtered again each time (2026-10-21) */
.tfx2 .stack-item .tfx-still > canvas, .tfx2 .stack-item .tfx-gl { transition: filter .18s ease; }
.tfx2 .stack-item.is-back .tfx-still > canvas, .tfx2 .stack-item.is-back .tfx-gl { filter: brightness(.95); }
.tfx2 .stack-item.is-back:hover .tfx-still > canvas, .tfx2 .stack-item.is-back:hover .tfx-gl { filter: brightness(1); }
/* the flat HTML ticket (no WebGL): on the item, as before */
.tfx2 .stack-item.is-back:has(> .tfx:not([data-gl])) { filter: brightness(.95); }
.tfx2 .stack-item.is-back:has(> .tfx:not([data-gl])):hover { filter: brightness(1); }
/* no tug or tilt when it tears off (owner, 2026-10-17). The engine waits for this animation's end before it takes the
   printer away, so it stays as a 50 ms still one. */
.tfx2 .tfx[data-print="tear"] .tfx-card { animation: tfxl-tear-still 50ms linear both; }
@keyframes tfxl-tear-still { from { translate: 0 0; } to { translate: 0 0; } }

/* the hint over the ticket, at the foot of the fan's room: a light bob; it fades once there's a second seat (its room
   stays, the fan rises into it). The gap under it is about one of the ticket's tall lines (3.8% of its width). */
.tfx2 .edit-hint-room { position: absolute; left: 14px; right: 14px; top: 0; height: 0; padding-top: 10%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; z-index: 8; }
.tfx2 .edit-hint { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 0 0 3.8%; color: #fff; font-size: clamp(.95rem, 1.6vw, 1.2rem);
  transition: opacity .3s ease, visibility .3s; }
.tfx2 .edit-hint b { font-weight: 700; }
.tfx2 .edit-hint .caret { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 9px solid #fff; }
.tfx2 .edit-hint > * { animation: tfx2-bob 1.8s ease-in-out infinite; }
@keyframes tfx2-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .tfx2 .edit-hint > * { animation: none; } }
.tfx2:has(.thumbs.many) .edit-hint { opacity: 0; visibility: hidden; }
/* "Tap any line…" on phones and touch screens, "Click on any line…" with a mouse (owner, 2026-10-21) */
.tfx2 .edit-hint .hint-tap { display: none; }

/* under the ticket: Flip on the left, the style dots centred, "Another idea" on the right (owner, 2026-10-19/21); where the
   ticket is too narrow for all three, the dots take a second line. The stage is the container (its width is the
   ticket's), so this follows the ticket, not the window. */
.tfx2 .under { position: relative; width: 100%; margin: -10px auto 0; padding: 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: space-between; align-items: center; gap: .35rem 1rem; min-height: 30px; }
.tfx2 .icon-btn { display: inline-flex; align-items: center; gap: .35rem; width: auto; /* styles/globals.css gives every [class*="icon-"] width 100% */
  padding: .25rem .5rem; border: 0; border-radius: 999px; background: none; color: #fff; font: 500 .95rem var(--sans); cursor: pointer; }
.tfx2 .icon-btn:hover { color: #fff; background: rgba(0,0,0,.2); }
.tfx2 .icon-btn svg { width: 16px; height: 16px; }
.tfx2 #flip { justify-self: start; }
.tfx2 #remove-under { display: none; } /* test's Remove: test2 removes with the x on the selected thumbnail */
.tfx2 #idea { justify-self: end; position: relative; }
/* "Another idea"'s timer: a line under the label that runs down, then the next example shows (TicketEffectsHero2); it
   fades once the visitor has clicked in the hero */
.tfx2 #idea .idea-timer { position: absolute; left: calc(.5rem + 16px + .35rem); right: .5rem; bottom: 1px; height: 2px; border-radius: 1px; background: currentColor;
  opacity: .9; transform-origin: left center; pointer-events: none; transition: opacity .3s ease; }
.tfx2 #idea.idea-stopped .idea-timer { opacity: 0; }
.tfx2 .styles-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tfx2 .under .styles-row { margin: 0; justify-self: center; }
.tfx2 .styles-label { font-size: 1rem; font-weight: 600; color: #fff; margin-right: .4rem; }
/* a dot per print series (the stack fills #styles with the series' pictures; they're hidden here) */
.tfx2 .styles { display: flex; gap: .55rem; justify-content: center; flex-wrap: nowrap; }
.tfx2 .styles img { display: none; }
.tfx2 .styles button { padding: 0; width: 30px; height: 30px; border: 2.5px solid #fff; border-radius: 50%; background: #ccc; box-shadow: 0 1px 4px rgba(0,30,70,.3);
  line-height: 0; cursor: pointer; transition: transform .12s ease; }
.tfx2 .styles button:hover { transform: scale(1.08); }
.tfx2 .styles button[aria-checked="true"] { outline: 2.5px solid #fff; outline-offset: 2px; }
.tfx2 .styles button[data-id="series1-modern"] { background: #c8171e; }
.tfx2 .styles button[data-id="series2-blue"] { background: #7fe0f5; }
.tfx2 .styles button[data-id="series2-purple"] { background: #d68cf5; }
.tfx2 .styles button[data-id="series2-green"] { background: #b5e6b5; }
.tfx2 .styles button[data-id="series3-blue"] { background: linear-gradient(90deg, #c9ccd2 50%, #8fc3ef 50%); }
.tfx2 .styles button[data-id="series3-purple"] { background: linear-gradient(90deg, #c9ccd2 50%, #4b3f9e 50%); }
.tfx2 .styles button[data-id="series3-rainbow"] { background: linear-gradient(90deg, #3a9a3a 0 25%, #f0a020 25% 50%, #e04040 50% 75%, #c9ccd2 75%); }
/* the new stock (2026-11-16, lib/landing/styleDots.js): the Series 4 colours with the scans' blue strip */
.tfx2 .styles button[data-id="series3-gold"] { background: linear-gradient(90deg, #c9ccd2 50%, #b3a535 50%); }
.tfx2 .styles button[data-id="series4-modern"] { background: linear-gradient(90deg, #cde3eb 50%, #2f6db5 50%); }
.tfx2 .styles button[data-id="series4-red"] { background: linear-gradient(90deg, #f04337 0 58%, #1d47b8 58% 74%, #fff 74%); }
.tfx2 .styles button[data-id="series4-purple"] { background: linear-gradient(90deg, #79469e 0 58%, #1d47b8 58% 74%, #fff 74%); }
.tfx2 .styles button[data-id="series4-pink"] { background: linear-gradient(90deg, #e93387 0 58%, #1d47b8 58% 74%, #fff 74%); }
/* a narrower ticket: the dots without their label, smaller buttons, still one line; narrower still, two lines */
@container (max-width: 860px) {
  .tfx2 .under .styles-label { display: none; }
  .tfx2 .under .icon-btn { font-size: .8rem; }
  .tfx2 .under .styles { gap: .4rem; }
  .tfx2 .under .styles button { width: 26px; height: 26px; }
}
/* twelve dots (the new stock, 2026-11-16) on one row on a phone: smaller to fit; seven keep their 26 px */
@media (max-width: 560px) {
  .tfx2 .under .styles button { width: min(26px, calc((100vw - 24px - (var(--dots, 7) - 1) * .4rem) / var(--dots, 7)));
    height: min(26px, calc((100vw - 24px - (var(--dots, 7) - 1) * .4rem) / var(--dots, 7))); }
}
@container (max-width: 600px) {
  .tfx2 .under { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tfx2 .under .styles-row { grid-column: 1 / -1; grid-row: 2; margin-top: .3rem; }
}

/* ======================= the seats ======================= */
/* their thumbnails, "+ add a seat" and Start over in one centred row under the ticket (owner, 2026-10-19/20) */
.tfx2 .pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: clamp(.6rem, 2vh, 1.4rem) 1rem clamp(.3rem, 1vh, .7rem); }
.tfx2 .deck { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 14px; width: 100%; min-height: 0; }
.tfx2 .deck-nav, .tfx2 .deck-count { display: none; }
.tfx2 .btn { font: 700 .9rem Arial, sans-serif; border-radius: 999px; padding: .6rem 1.1rem; min-height: 40px; cursor: pointer; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35); color: #fff; }
.tfx2 .btn:hover { border-color: #fff; background: rgba(0,0,0,.6); }
/* only the tickets there are: no empty places (the stack keeps them; "+ add a seat" does their job) */
.tfx2 .thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 6px 4px 0; min-width: 0; }
.tfx2 .thumbs .thumb.empty { display: none; }
.tfx2 .thumb { position: relative; min-width: 0; width: clamp(120px, 11vw, 160px); }
.tfx2 .thumb-go { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; color: #fff;
  opacity: .85; transition: opacity .15s, transform .15s; }
.tfx2 .thumb:hover .thumb-go { opacity: 1; transform: translateY(-2px); }
.tfx2 .thumb.sel .thumb-go { opacity: 1; }
/* the ticket's own HTML at its 528 px, scaled to the thumbnail by the stack (opts.thumbHtml) */
.tfx2 .thumb-pic { position: relative; display: block; aspect-ratio: 528 / 188; border-radius: 4px; overflow: hidden; background: #e9e9e9;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); outline: 2.5px solid transparent; outline-offset: 2px; }
.tfx2 .thumb.sel .thumb-pic { outline-color: #fff; }
.tfx2 .thumb-pic canvas, .tfx2 .thumb-pic img { display: block; width: 100%; height: 100%; }
.tfx2 .thumb-html { position: absolute; left: 0; top: 0; width: 530px; transform-origin: 0 0; pointer-events: none; text-align: left; white-space: normal; } /* the button centres; the ticket mustn't */
.tfx2 .thumb-cap { display: block; margin-top: 8px; font: 500 .9rem var(--sans); color: #fff; text-align: center; white-space: nowrap; }
/* remove: a small x on the corner of the selected seat's picture (and any other's while pointed at) */
.tfx2 .thumb-x { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; padding: 0; border: 1.5px solid #fff; border-radius: 50%; background: #1b2a4a; color: #fff;
  display: none; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.45); z-index: 1; }
.tfx2 .thumb-x svg { width: 10px; height: 10px; }
.tfx2 .thumb-x:hover { background: #d7262c; }
.tfx2 .thumbs.many .thumb.sel .thumb-x { display: grid; }
@media (hover: hover) { .tfx2 .thumbs.many .thumb:hover .thumb-x { display: grid; } }
/* "+ add a seat": as wide as a thumbnail, dashed, and as tall as the selected one with its outline (2.5 px, 2 px off it:
   4.5 px each side) */
.tfx2 #add { flex: none; white-space: nowrap; margin-top: 1.5px; width: clamp(120px, 11vw, 160px); height: calc(var(--thumb-w) * 188 / 528 + 9px); min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px dashed rgba(255,255,255,.9); border-radius: 6px; background: none; font: 600 1rem var(--sans); }
.tfx2 #add::before { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.tfx2 #add:hover { background: rgba(255,255,255,.1); }
.tfx2 #add:disabled { display: none; }
/* Start over (owner, 2026-10-20), centred on the thumbnails' pictures; the first tap arms it */
.tfx2 .start-over { align-self: flex-start; display: inline-flex; align-items: center; height: calc(var(--thumb-w) * 188 / 528 + 9px); margin-top: 1.5px; padding: 0 .4rem;
  border: 0; background: none; color: #fff; font: 500 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; white-space: nowrap; }
.tfx2 .start-over:hover { text-decoration-thickness: 2px; }
.tfx2 .start-over.armed { background: #fff; color: #0a66ae; text-decoration: none; border-radius: 999px; padding: .3rem .8rem; font-weight: 600; }
.tfx2 .start-over:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
/* at seven seats: "Want more? Add these 7 to your cart, then tap Start over" (owner, 2026-10-21), a white pill with the
   sky's blue text, floated into the gap above the buttons on desktop so the ticket keeps its size. hidden until the
   stylesheet shows it, so a stale stylesheet never shows it with fewer. */
.tfx2 .seat-max { display: none; position: absolute; left: 50%; right: auto; top: calc(100% - clamp(.3rem, 1vh, .7rem)); /* the seats' bottom edge (.pick's padding) */
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 1rem); margin: 0; padding: .06rem .8rem; border-radius: 999px; background: #fff; color: #0a66ae;
  font-size: .78rem; font-weight: 500; line-height: 1.15; text-align: center; box-shadow: 0 4px 14px rgba(0, 40, 90, .25); }
.tfx2 .seat-max b { font-weight: 700; }
.tfx2 .pick:has(#add:disabled) .seat-max, .tfx2 .pick:has(#add:disabled) .seat-max[hidden] { display: block; }

/* ======================= buy, status, review ======================= */
/* the two pills: Add to cart solid white, Open ticket editor outlined; one line under them shared by the checkout status
   and the stack's hint */
.tfx2 .buy { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: clamp(.3rem, 1.2vh, .9rem); }
.tfx2 .buy-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tfx2 .buy-btn { font: 500 1.35rem var(--sans); letter-spacing: .01em; color: #0c1f33; background: #fff; border: 0; border-radius: 999px; padding: .85rem 2.4rem; min-width: 14rem;
  cursor: pointer; box-shadow: 0 8px 22px rgba(0,40,90,.18); transition: background .12s ease, transform .12s ease; }
.tfx2 .buy-btn:hover { background: #f0f7ff; transform: translateY(-1px); }
.tfx2 .buy-btn.alt { background: none; color: #fff; border: 2.5px solid #fff; box-shadow: none; }
.tfx2 .buy-btn.alt:hover { background: rgba(255,255,255,.12); }
.tfx2 .buy-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.tfx2 .buy-note { position: relative; width: 100%; min-height: 1.45em; margin-top: .35rem; font-size: .8rem; line-height: 1.45; }
.tfx2 .hint { margin: 0; font-size: .8rem; color: #fff; min-height: 1.45em; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfx2 .buy-status:not(:empty) ~ .hint { visibility: hidden; }
.tfx2 .buy-status { position: absolute; inset: 0; margin: 0; font-size: .85rem; color: #fff; }
.tfx2 .buy-status:empty { display: none; }
.tfx2 .buy-status.err { color: #ffd2d2; }
/* the bottom of the blue: one review line, centred */
.tfx2 .meta { display: flex; align-items: center; justify-content: center; gap: .3rem 2rem; padding: clamp(.2rem, 1vh, .7rem) .75rem 0; }
.tfx2 .proof { display: inline-flex; align-items: center; gap: .9rem; margin: 0; white-space: nowrap; font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: #fff; }
.tfx2 .proof q { font-style: italic; }
.tfx2 .proof .quote { white-space: nowrap; }
.tfx2 .proof .by { font-weight: 400; }
.tfx2 .stars { display: inline-flex; gap: .35rem; color: #ffd400; }
.tfx2 .stars svg { width: 1.3em; height: 1.3em; }
@media (max-width: 860px) {
  .tfx2 .meta { flex-direction: column; padding-left: 0; padding-right: 0; }
  .tfx2 .proof { white-space: normal; text-align: center; justify-content: center; flex-wrap: wrap; }
}

/* ======================= phones' edit panel ======================= */
/* the tapped line is typed under the ticket (owner pick, 2026-10-19; the stack's editHost); the ticket shows it as typed,
   outlined, and the panel steps through the lines with the keyboard up */
.tfx2 .edit-sheet { position: absolute; left: 6px; right: 6px; top: calc(100% - 6px); z-index: 20; padding: .7rem .75rem .75rem; border-radius: 14px;
  background: #fff; color: #0c1f33; text-align: left; box-shadow: 0 14px 34px rgba(0, 30, 70, .35); font-family: var(--sans); }
.tfx2 .edit-sheet[hidden] { display: none; }
.tfx2 .es-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .4rem; font-size: .8rem; }
.tfx2 .es-label { text-transform: capitalize; font-weight: 700; letter-spacing: .01em; }
.tfx2 .es-count { color: #6b7d90; font-variant-numeric: tabular-nums; }
.tfx2 .es-count.full { color: #d7262c; }
/* the engine's input, moved here: a plain full-width field (16px or more, so iPhones don't zoom in) */
.tfx2 .es-field .tfx-input { position: static; display: block; width: 100% !important; box-sizing: border-box; padding: .6rem .7rem; border: 2px solid #0a7fd4; border-radius: 10px;
  outline: none; background: #f4f9ff; color: #111; -webkit-text-fill-color: #111; caret-color: #0a7fd4;
  font: 700 1.15rem/1.2 "composite", ui-monospace, monospace; letter-spacing: .04em; white-space: nowrap; }
.tfx2 .es-field .tfx-input::selection { background: rgba(10, 127, 212, .25); color: #111; }
.tfx2 .es-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-top: .55rem; }
.tfx2 .es-btn { min-height: 44px; border: 1.5px solid #c9dcee; border-radius: 999px; background: #fff; color: #0c1f33; font: 600 .95rem var(--sans); cursor: pointer; }
.tfx2 .es-btn.es-done { background: #0a7fd4; border-color: #0a7fd4; color: #fff; }
.tfx2 .tfx[data-edit-sheet] .tfx-editing.tfx-live .tfx-ghost { color: inherit !important; -webkit-text-fill-color: currentColor; }
.tfx2 .tfx[data-edit-sheet] .tfx-editing { outline: 1.5px solid #d7262c; outline-offset: 1px; background: rgba(215, 38, 44, .1); border-radius: 1px; }

/* ======================= after Add to Cart, and while working ======================= */
/* the "what next?" dialog (owner, 2026-10-20) */
.tfx2 .added-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(4, 28, 56, .5);
  backdrop-filter: blur(3px); animation: tfx2-fade .18s ease-out; }
.tfx2 .added { position: relative; width: min(100%, 26rem); padding: 2rem 1.75rem 1.6rem; border-radius: 20px; background: #fff; color: #0c1f33; text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0, 20, 50, .55); font-family: var(--sans); animation: tfx2-pop .22s cubic-bezier(.2,.8,.3,1.1); }
.tfx2 .added h2 { margin: .9rem 0 .4rem; font: 700 1.45rem/1.15 var(--sans); letter-spacing: -.03em; }
.tfx2 .added p { margin: 0; font-size: .95rem; line-height: 1.5; color: #3c5268; }
.tfx2 .added-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e6f4ff; color: #0a7fd4; }
.tfx2 .added-check svg { width: 28px; height: 28px; }
.tfx2 .added-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none;
  color: #3c5268; cursor: pointer; }
.tfx2 .added-x:hover { background: #eef5fb; color: #0c1f33; }
.tfx2 .added-x svg { width: 20px; height: 20px; }
.tfx2 .added-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.tfx2 .added-btn { min-height: 50px; border-radius: 999px; border: 2px solid #0a7fd4; background: #0a7fd4; color: #fff; font: 600 1.05rem var(--sans); cursor: pointer; }
.tfx2 .added-btn:hover { background: #0868b0; border-color: #0868b0; }
.tfx2 .added-btn.alt { background: #fff; color: #0a7fd4; }
.tfx2 .added-btn.alt:hover { background: #eef7fe; }
.tfx2 .added-btn:focus-visible, .tfx2 .added-x:focus-visible { outline: 3px solid rgba(10, 127, 212, .45); outline-offset: 2px; }
@keyframes tfx2-fade { from { opacity: 0; } }
@keyframes tfx2-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .tfx2 .added-backdrop, .tfx2 .added { animation: none; } }
/* "Taking you to your cart…": the dialog stays up after Go to cart, a cart rolling in place and three dots, until the
   cart page loads (owner, 2026-10-20) */
.tfx2 .added-going { display: flex; flex-direction: column; align-items: center; padding: .4rem 0 .2rem; }
.tfx2 .added-going h2 { margin-top: 1rem; }
.tfx2 .added-cart-anim { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f4ff; color: #0a7fd4; overflow: hidden; }
.tfx2 .added-cart-anim svg { width: 32px; height: 32px; animation: tfx2-roll 1.1s cubic-bezier(.45,.05,.35,1) infinite; }
@keyframes tfx2-roll { 0% { transform: translateX(-46px); } 35%, 65% { transform: translateX(0) rotate(-4deg); } 50% { transform: translateX(0) rotate(3deg); } 100% { transform: translateX(46px); } }
.tfx2 .added-dots { display: flex; gap: 6px; margin-top: 1rem; }
.tfx2 .added-dots i { width: 8px; height: 8px; border-radius: 50%; background: #0a7fd4; animation: tfx2-dot 1s ease-in-out infinite; }
.tfx2 .added-dots i:nth-child(2) { animation-delay: .15s; } .tfx2 .added-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tfx2-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tfx2 .added-cart-anim svg, .tfx2 .added-dots i { animation: none; } }
/* working: Add to Cart saving and adding, or the editor opening (as /landing/create's; owner, 2026-10-20). The hero dims
   and blurs behind one card with a spinner; nothing in it can be clicked meanwhile. */
.tfx2 .content.busy > :not(.leaving) { filter: blur(3px); pointer-events: none; user-select: none; }
.tfx2 .leaving { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; background: rgba(4, 28, 56, .55); }
.tfx2 .leaving-card { position: sticky; top: 30vh; margin-top: 28vh; display: flex; flex-direction: column; align-items: center; gap: .7rem; max-width: calc(100% - 2rem);
  padding: 1.4rem 1.9rem; border-radius: 16px; background: #fff; color: #0c1f33; text-align: center; box-shadow: 0 20px 50px -12px rgba(0, 20, 50, .55); font-family: var(--sans); }
.tfx2 .leaving-card strong { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.tfx2 .leaving-card span:last-child { font-size: .92rem; color: #3c5268; }
.tfx2 .leaving-spin { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 4px solid rgba(10, 127, 212, .2); border-top-color: #0a7fd4; animation: tfx2-spin .8s linear infinite; }
@keyframes tfx2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tfx2 .leaving-spin { animation-duration: 2s; } }

/* ======================= phones ======================= */
/* the logo and cart on one row with the ship date under */
@media (max-width: 639px) {
}
/* Phones (owner, 2026-10-20). The ticket is held by the width, not the height, and runs to the gutters (the stack's
   fanReach). The blue fills the screen; small base gaps (so a 375 x 667 phone still fits), then each gap takes an even
   share of the spare height (auto margins), the one above the review line a double share, so the review sits at the
   bottom and the rest spaces out evenly with the screen. The seats are one strip that scrolls sideways (the selected one
   kept in view, TicketEffectsHero2), so seven seats don't wrap into rows and push the buttons off the screen. */
@media (max-width: 560px) {
  .tfx2 { --thumb-w: 88px; }
  .tfx2 .title-long { display: none; }
  .tfx2 .title-short { display: inline; white-space: nowrap; }
  .tfx2 .content { justify-content: flex-start; gap: .35rem; padding: 0 .5rem 1rem; }
  .tfx2 .head { padding: .6rem 0 .7rem; margin-top: auto; }
  .tfx2 .stage, .tfx2 .pick { margin-top: auto; }
  .tfx2 .slot-cell { padding-left: 0; padding-right: 0; }
  .tfx2 .stage:not([style*="max-width"]) { max-width: calc(100% / 1.07); } /* the fan's reach; no padding to add here */
  .tfx2 .edit-hint-room { left: 0; right: 0; }
  .tfx2 .under { padding: 0 4px; }
  .tfx2 .icon-btn { white-space: nowrap; }
  .tfx2 .styles-row { gap: 6px; }
  .tfx2 .under .styles-row { margin-top: clamp(.35rem, 1.4svh, .8rem); }
  .tfx2 .pick { padding: .6rem 0 0; }
  .tfx2 .deck { flex-wrap: nowrap; gap: 10px; }
  .tfx2 .thumbs { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; padding: 10px 10px 0 4px; margin-top: -4px; }
  .tfx2 .thumbs::-webkit-scrollbar { display: none; }
  .tfx2 .thumb { flex: none; width: 88px; }
  .tfx2 .thumb-cap { font-size: .72rem; }
  /* remove: the x on the selected thumbnail, as on desktop (owner pick, 2026-10-19), in place of test's Remove */
  .tfx2 .thumb-x { display: none !important; }
  .tfx2 .thumbs.many .thumb.sel .thumb-x { display: grid !important; }
  .tfx2 #add { width: 88px; font-size: .8rem; gap: .25rem; }
  .tfx2 .thumbs.many ~ #add:not(:disabled) { width: 64px; font-size: 0; }
  .tfx2 .thumbs.many ~ #add::before { font-size: 1.5rem; }
  .tfx2 .start-over { flex: none; font-size: .8rem; }
  .tfx2 .seat-max { position: static; transform: none; margin: .5rem auto 0; padding: .3rem .8rem; font-size: .82rem; line-height: 1.25; }
  .tfx2 .buy { padding-top: .5rem; margin-top: auto; margin-bottom: auto; }
  .tfx2 .buy-row { width: 100%; gap: .6rem; flex-wrap: nowrap; }
  .tfx2 .buy-btn { flex: 1 1 0; min-width: 0; font-size: 1.05rem; padding: .7rem .6rem; white-space: nowrap; }
  .tfx2 .meta { margin-top: auto; padding-top: .5rem; }
  .tfx2 .proof { font-size: .95rem; gap: .5rem; }
}
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .tfx2 .edit-hint .hint-click { display: none; }
  .tfx2 .edit-hint .hint-tap { display: inline; }
}

/* Tall phones, by visible height (the thresholds note at the end). In the order they switch on: */
/* the desktop's full headline, on two balanced lines (owner, 2026-10-21); shorter phones keep "Buy custom ticket stubs." */
@media (max-width: 400px) and (min-height: 706px), (min-width: 401px) and (max-width: 560px) and (min-height: 721px) {
  .tfx2 .title-long { display: inline; }
  .tfx2 .title-short { display: none; }
  .tfx2 .title { font-size: clamp(1.5rem, 7.4vw, 2rem); line-height: 1.08; text-wrap: balance; }
}
/* the fanned tickets behind spread as on /landing/test (13.8% of the ticket's width over it, the stack's fanRoom; owner,
   2026-10-21: there's height to spare, no need to crowd them) */
@media (max-width: 400px) and (min-height: 718px), (min-width: 401px) and (max-width: 560px) and (min-height: 736px) {
  .tfx2 .stack, .tfx2 .edit-hint-room { padding-top: 13.8%; }
}
/* the seats wrap onto a second line instead of the sideways strip (owner, 2026-10-20: the strip read as an awkward
   half-hidden scroll); the thumbnails, "+" and Start over share the rows. Short phones keep the strip. */
@media (max-width: 400px) and (min-height: 775px), (min-width: 401px) and (max-width: 560px) and (min-height: 789px) {
  .tfx2 { --thumb-w: 80px; }
  .tfx2 .deck { flex-wrap: wrap; gap: 6px 8px; padding-top: 6px; }
  .tfx2 .thumbs { display: contents; }
  .tfx2 .thumb { width: var(--thumb-w); }
}
/* The tall-phone thresholds above are the visible height (the browser's bars taken off: about 664 on an iPhone 14 in
   Safari, 715 on an iPhone 11, 740 on a Pro Max, ~790 on a Pixel 7) at which the hero still fits with 7 seats, measured
   at 360-430 wide, plus 4 px (owner, 2026-10-21; re-measure: node scripts/landing/test2-fit.mjs). First the full headline
   (narrow phones 706, wide 721), then the wider fan (718 / 736), and the seats on two lines only where all three fit
   (775 / 789); below that the seats scroll sideways. TicketEffectsHero2's WIDE_FAN matches the fan's. */

/* /landing/xmas (2026-10-24): a review longer than test2's ("Great gift idea for my concert loving friend!!!" - Paulette)
   ran off 360 and 320 px phones; there its type follows the width so the line still fits. test2's quote doesn't get it. */
@media (max-width: 400px) { .tfx2 .proof.long-quote { font-size: min(.95rem, 3.75vw); } }
