/* The "Frag die Karte" page (owner, 2 Nov 2026): tools/ask_page.py. A real table, one huge word, one question box; then the
   conversation fills the screen. Motion moves transform and opacity only (assets/ask-page.js). */

/* Opening */
.ax-hero { position: relative; height: var(--screen); overflow: hidden; background: #050505; color: var(--ink); }
.ax-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 50% 42%; }
.ax-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,5,.5) 0, rgba(5,5,5,.12) 26%, rgba(5,5,5,.3) 50%, rgba(5,5,5,.84) 76%, #050505 100%); }
.ax-crumb { position: absolute; z-index: 2; left: var(--m); right: var(--m); top: clamp(84px, 13vh, 112px); }
.ax-crumb .pg-crumbs { justify-content: flex-start; margin: 0; color: var(--ink); }
.ax-hero-in { position: absolute; z-index: 2; inset: auto var(--m) calc(clamp(36px, 8svh, 84px) + var(--bar)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ax-by { margin: clamp(12px, 2vh, 18px) 0 0; font-size: var(--detail); font-weight: 500; }
.ax-title { margin: 0; font-size: min(calc((100vw - 2 * var(--m)) / (var(--n) * .49)), 214px); font-weight: 500; line-height: .96; letter-spacing: -.045em; white-space: nowrap; }
.ax-input { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); height: 64px; margin-top: clamp(20px, 4vh, 40px); padding: 0 10px 0 20px; border-radius: 999px;
  background: rgba(16,16,16,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.4); text-align: left; }
.ax-typed { min-width: 0; overflow: hidden; font-size: 18px; white-space: nowrap; }
.ax-caret { flex: none; width: 2px; height: 22px; margin-left: -10px; background: var(--ink); animation: ax-blink 1.05s steps(2, start) infinite; }
@keyframes ax-blink { to { opacity: 0; } }
.ax-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: #fff; color: #050505; }
.ax-send svg { width: 20px; height: 20px; }

/* The sentence */
.ax-read { display: flex; align-items: center; justify-content: center; height: var(--screen); padding: 0 var(--m) var(--bar); background: #050505; color: var(--ink); }
.ax-statement { max-width: 1120px; margin: 0; font-size: clamp(34px, 5.6vw, 80px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; text-align: center; }

/* The film: stacked without motion, one screen at a time with it. White, because the app's dish photos stand on pure white. */
.ax-film.light { background: #fff; }
.ax-film.is-live { height: var(--screen); overflow: hidden; }
.ax-scene { position: relative; height: var(--screen); overflow: hidden; background: #fff; }
.ax-film.is-live .ax-scene { position: absolute; inset: 0; }
.ax-scene-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 4vw, 64px); height: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(88px, 13svh, 120px) var(--m) calc(clamp(24px, 5svh, 48px) + var(--bar)); }
.ax-ask { grid-column: 1; grid-row: 1; }
.ax-who { margin: 0 0 clamp(10px, 1.6svh, 16px); font-size: var(--detail); font-weight: 500; }
.ax-q { max-width: 16ch; margin: 0; font-size: clamp(40px, min(5.8vw, 10.4svh), 96px); font-weight: 500; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.ax-said { margin: clamp(8px, 1.4svh, 14px) 0 0; font-size: clamp(18px, 2.05vw, 28px); line-height: 1.3; letter-spacing: -.012em; }
.ax-side { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); min-height: 0; }
.ax-dish { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; margin: 0; }
/* brightness: the photos' white is a hair off pure white, which would show as a faint square on the page. */
.ax-dish img { display: block; width: min(100%, 58svh); height: auto; aspect-ratio: 1; object-fit: contain; filter: brightness(1.03); }
.ax-side.is-two .ax-dish { flex: 1 1 0; }
.ax-side.is-two .ax-dish img { width: min(118%, 46svh); max-width: none; margin: 0 -9%; }
.ax-dish figcaption { display: flex; gap: 12px; margin-top: 2px; font-size: var(--detail); line-height: 1.3; text-align: center; }
.ax-dish b, .ax-list b { font-weight: 500; white-space: nowrap; }
.ax-reply { grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: clamp(12px, 2svh, 20px); max-width: 620px; padding-top: clamp(16px, 3svh, 32px); }
.ax-ans { display: flex; align-items: flex-start; gap: 14px; margin: 0; font-size: clamp(18px, min(1.9vw, 3.1svh), 28px); line-height: 1.3; letter-spacing: -.012em; }
.ax-ans .ak-orb { flex: none; width: 28px; height: 28px; margin-top: .1em; }
.ax-meant { display: block; margin-top: .5em; font-size: var(--detail); line-height: 1.4; letter-spacing: 0; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 42px; }
.ax-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: #F0F0EE; font-size: var(--detail); font-weight: 500; white-space: nowrap; }
.ax-chip.is-yes { background: #050505; color: #fff; }
.ax-list { width: min(100%, 440px); padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; background: #F7F7F5; font-size: var(--detail); }
.ax-list h4 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.ax-list ul { margin: 0; padding: 0; list-style: none; }
.ax-list li { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.ax-list li img { flex: none; width: clamp(64px, 11svh, 104px); height: auto; aspect-ratio: 1; border-radius: 18px; background: #fff; }
.ax-list li b, .ax-list p b { margin-left: auto; }
.ax-list p { display: flex; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.12); font-weight: 500; }
.ax-rule { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); margin-top: clamp(16px, 3svh, 32px); padding-top: clamp(12px, 2svh, 20px); border-top: 1px solid rgba(0,0,0,.14); }
.ax-rule h4 { margin: 0; font-size: var(--detail); font-weight: 500; line-height: 1.4; }
.ax-rule p { margin: 0; font-size: var(--detail); line-height: 1.4; }
.ax-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: #050505; transform: scaleX(0); transform-origin: 0 50%; display: none; }
.ax-film.is-live .ax-bar { display: block; }

/* On the guest's phone */
.ax-demo { padding-top: clamp(72px, 12vh, 136px); }

/* The tiles */
.ax-facts { padding: clamp(72px, 12vh, 136px) var(--m); background: #050505; color: var(--ink); }
.ax-facts > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.ax-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vh, 56px); }
.ax-tile { grid-column: span 2; display: flex; flex-direction: column; gap: 28px; min-height: 340px; padding: 28px; overflow: hidden; border-radius: 28px; background: #121212; }
.ax-tile.is-knows, .ax-tile.is-speaks { grid-column: span 3; min-height: 420px; }
.ax-tx h3 { margin: 0 0 8px; font-size: var(--detail); font-weight: 500; }
.ax-tx p { margin: 0; font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; line-height: 1.22; letter-spacing: -.3px; text-wrap: pretty; }
.ax-menu { display: flex; flex-direction: column; margin: auto 0 -28px; padding: 0; list-style: none; }
.ax-menu li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: var(--detail); }
.ax-menu img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.ax-menu b { margin-left: auto; font-weight: 500; white-space: nowrap; }
.ax-words { display: flex; flex-direction: column; gap: 6px; margin: auto -28px 0; overflow: hidden; }
.ax-words-row { display: flex; width: max-content; gap: 28px; font-size: clamp(44px, 5vw, 72px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; white-space: nowrap; animation: ax-slide 70s linear infinite; }
.ax-words-row > span { flex: none; }
.ax-words-row.is-back { animation-direction: reverse; opacity: .34; }
@keyframes ax-slide { to { transform: translateX(-50%); } }
.is-away .ax-words-row, .is-away .ax-caret { animation-play-state: paused; }
.ax-thumbs { display: flex; margin-top: auto; }
.ax-thumbs img { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: 0 0 0 4px #121212; }
.ax-thumbs img + img { margin-left: -18px; }
.ax-tile-end { margin-top: auto; }
.ax-chips.is-tile { justify-content: flex-start; }
.ax-gone { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.ax-bubble { padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255,255,255,.14); font-size: var(--detail); }
.ax-bubble:nth-child(1) { opacity: .16; }
.ax-bubble:nth-child(2) { opacity: .42; }

/* Nothing to set up */
.ax-owner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; height: var(--screen); padding: 0 var(--m) var(--bar); background: #050505; color: var(--ink); text-align: center; }
.ax-owner .t-body { max-width: 560px; margin: 0; }

@media (max-width: 900px) {
  .ax-tile, .ax-tile.is-knows, .ax-tile.is-speaks { grid-column: span 6; min-height: 0; }
  .ax-words, .ax-menu, .ax-thumbs, .ax-gone, .ax-chips.is-tile { margin-top: 12px; }
}
@media (max-width: 760px) {
  .ax-title { font-size: clamp(66px, 21vw, 128px); line-height: .94; white-space: normal; }
  .ax-input { height: 58px; padding-left: 16px; }
  .ax-typed { font-size: 16px; }
  .ax-send { width: 40px; height: 40px; }
  .ax-scene-in { display: flex; flex-direction: column; padding-top: clamp(80px, 11svh, 96px); }
  .ax-who { margin-bottom: 8px; font-size: var(--caption); }
  .ax-q { max-width: none; font-size: clamp(30px, min(9.4vw, 5.4svh), 48px); }
  .ax-said { font-size: clamp(15px, 2.2svh, 18px); }
  .ax-side { flex: 1 1 0; align-items: center; margin: 8px 0; gap: 10px; }
  .ax-dish { flex: 1 1 0; height: 100%; justify-content: center; }
  .ax-dish img, .ax-side.is-two .ax-dish img { flex: 0 1 auto; width: auto; max-width: 100%; min-height: 0; margin: 0; }
  .ax-dish figcaption { flex: none; flex-direction: column; gap: 0; margin-top: 0; font-size: var(--caption); }
  .ax-reply { flex: none; gap: 10px; padding-top: 0; }
  .ax-ans { font-size: clamp(15px, 2.2svh, 19px); gap: 10px; }
  .ax-ans .ak-orb { width: 22px; height: 22px; }
  .ax-meant { font-size: var(--caption); }
  .ax-chips { padding-left: 32px; }
  .ax-chip { height: 38px; padding: 0 14px; }
  .ax-list { width: 100%; padding: 14px 16px; border-radius: 22px; }
  .ax-list li { padding: 4px 0; }
  .ax-list li img { width: clamp(44px, 7svh, 64px); border-radius: 12px; }
  .ax-list h4 { font-size: 18px; margin-bottom: 4px; }
  .ax-list p { margin-top: 4px; padding-top: 8px; }
  .ax-rule { flex: none; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 12px; padding-top: 10px; }
  .ax-rule h4, .ax-rule p { font-size: var(--caption); }
  .ax-tile { padding: 24px; border-radius: 24px; }
  .ax-words { margin-left: -24px; margin-right: -24px; }
  .ax-menu { margin-bottom: -24px; }
}
@media (prefers-reduced-motion: reduce) { .ax-caret, .ax-words-row { animation: none; } }
