/* V3 round 2, lane F: Through Their Eyes phone frame (wraps the existing rail) and the doors into Glaze Core.
   Variants: html[data-v-tte-frame] a Feed phone, b Phone row, c Split; html[data-v-core-door] a Pill, b Orb, c Ribbon. */

/* ---------- Through Their Eyes: the phone ---------- */
#kitchen > .glzv ~ .glzv { top: 46px; }
.tte-phone { --tte-bezel: #24141C; position: relative; width: min(372px, 100%); margin: .4rem auto 1.1rem; }
.tte-bezel { padding: 10px; border-radius: 52px; background: linear-gradient(150deg, #3D2632, var(--tte-bezel) 55%, #120A0E);
  box-shadow: 0 0 0 1.5px #0C0609, inset 0 0 0 1.5px rgba(255,255,255,.08), 0 30px 60px -30px rgba(45,25,40,.55), 0 12px 24px -16px rgba(45,25,40,.4); }
.tte-screen { position: relative; overflow: hidden; border-radius: 42px; background: var(--cream); text-align: left; }
.tte-status { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 26px 0 30px; font: 700 .82rem/1 'DM Sans', system-ui, sans-serif; color: var(--ink); }
.tte-island { width: 96px; height: 26px; border-radius: 16px; background: #0C0609; }
.tte-icons { display: flex; gap: 3px; align-items: flex-end; }
.tte-icons i { display: block; width: 4px; background: var(--ink); border-radius: 1px; }
.tte-icons i:nth-child(1) { height: 6px; } .tte-icons i:nth-child(2) { height: 9px; } .tte-icons i:nth-child(3) { height: 12px; }
.tte-appbar { display: flex; align-items: center; gap: .6rem; padding: .35rem 1rem .65rem; border-bottom: 1px solid var(--linen); }
.tte-appbar img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--honey-gold, #D4A843); }
.tte-appbar span { display: flex; flex-direction: column; line-height: 1.15; }
.tte-appbar b { font: 700 .92rem/1.15 'DM Sans', system-ui, sans-serif; color: var(--ink); }
.tte-appbar small { font-size: .72rem; color: var(--text-muted); }
.tte-framed .tte-rail-slot .creator-filmstrip { max-width: none; margin: 0; padding: 0; gap: 0; }
.tte-framed .tte-rail-slot .creator-filmstrip li { flex: 0 0 100%; }
.tte-framed .tte-rail-slot .creator-filmstrip a { border-radius: 0; }
.tte-dock { padding: .7rem 1rem 1.25rem; text-align: center; background: var(--cream); position: relative; }
.tte-dock::after { content: ""; display: block; width: 36%; height: 5px; margin: .85rem auto 0; border-radius: 3px; background: var(--ink); opacity: .85; }
.tte-open-core { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; border-radius: 999px; background: var(--plum); color: var(--cream);
  font: 700 .95rem/1 'DM Sans', system-ui, sans-serif; text-decoration: none; box-shadow: 0 10px 22px -12px rgba(74,32,58,.7);
  transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tte-open-core:hover { transform: translateY(-2px); }
.tte-open-core:active { transform: translateY(1px) scale(.99); }
.tte-open-core span { transition: transform .25s; } .tte-open-core:hover span { transform: translateX(3px); }

/* New real finds from tools/tte-scraper.mjs, after the existing items */
.creator-filmstrip li[data-tte-added] a { background: var(--ink); }
.tte-added img, .tte-added-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tte-added::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(30,14,22,.82)); pointer-events: none; }
.tte-added > * { z-index: 1; }
.tte-added-chip { position: absolute; top: .7rem; left: .65rem; padding: .3rem .55rem; border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 .7rem/1 'DM Sans', system-ui, sans-serif; }
.tte-added-text { position: absolute; left: .7rem; right: .7rem; bottom: 2.9rem; display: flex; flex-direction: column; gap: .4rem; text-align: left; }
.tte-added-cap { color: var(--cream); font: 600 .8rem/1.3 'DM Sans', system-ui, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tte-added-comment { align-self: flex-start; max-width: 100%; padding: .35rem .55rem; border-radius: 12px 12px 12px 4px; background: rgba(253,248,240,.94); color: var(--ink); font: 500 .74rem/1.3 'DM Sans', system-ui, sans-serif; }
.tte-added-comment b { font-weight: 700; }
.tte-added strong { z-index: 2; }

/* b: Phone row. The rail goes back to its own width and every card becomes a small phone. */
html[data-v-tte-frame="b"] .tte-phone { width: 100%; max-width: 66rem; }
html[data-v-tte-frame="b"] .tte-bezel { padding: 0; border-radius: 0; background: none; box-shadow: none; }
html[data-v-tte-frame="b"] .tte-screen { overflow: visible; border-radius: 0; background: none; }
html[data-v-tte-frame="b"] .tte-status, html[data-v-tte-frame="b"] .tte-appbar { display: none; }
html[data-v-tte-frame="b"] .tte-framed .tte-rail-slot .creator-filmstrip { gap: 1rem; padding: .75rem .25rem 1rem; }
html[data-v-tte-frame="b"] .tte-framed .tte-rail-slot .creator-filmstrip li { flex: 0 0 calc((100% - 2rem) / 3); padding: 2px; }
html[data-v-tte-frame="b"] .tte-framed .tte-rail-slot .creator-filmstrip a { border: 7px solid #24141C; border-radius: 30px; box-shadow: 0 18px 30px -20px rgba(45,25,40,.6); }
html[data-v-tte-frame="b"] .tte-framed .tte-rail-slot .creator-filmstrip a::before { content: ""; position: absolute; z-index: 3; top: 7px; left: 50%; width: 30%; height: 14px; margin-left: -15%; border-radius: 9px; background: #0C0609; }
html[data-v-tte-frame="b"] .tte-dock { background: none; padding: .5rem 0 0; }
html[data-v-tte-frame="b"] .tte-dock::after { display: none; }
html[data-v-tte-frame="b"] .tte-open-core { display: inline-flex; padding: 0 1.6rem; }
@media (max-width: 720px) { html[data-v-tte-frame="b"] .tte-framed .tte-rail-slot .creator-filmstrip li { flex-basis: 74%; } }

/* c: Split. Desktop: words and controls on the left, a slightly turned phone on the right. Phones: a dark phone. */
@media (min-width: 960px) {
  html[data-v-tte-frame="c"] #kitchen.tte-framed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 4rem; align-items: center; max-width: 66rem; margin: 0 auto; text-align: left; }
  html[data-v-tte-frame="c"] #kitchen.tte-framed > * { grid-column: 1; }
  html[data-v-tte-frame="c"] #kitchen.tte-framed > .tte-phone { grid-column: 2; grid-row: 1 / span 5; margin: 0; transform: rotate(2.5deg); }
  html[data-v-tte-frame="c"] #kitchen.tte-framed > .tte-heading, html[data-v-tte-frame="c"] #kitchen.tte-framed > .tail-heading { align-self: end; }
  html[data-v-tte-frame="c"] #kitchen.tte-framed .creator-controls { justify-content: flex-start; }
  html[data-v-tte-frame="c"] #kitchen.tte-framed > .tail-button { justify-self: start; }
  html[data-v-tte-frame="c"] #kitchen.tte-framed > .creator-footnote { align-self: start; }
}
html[data-v-tte-frame="c"] .tte-screen { background: #1E1018; }
html[data-v-tte-frame="c"] .tte-status, html[data-v-tte-frame="c"] .tte-appbar b { color: var(--cream); }
html[data-v-tte-frame="c"] .tte-icons i { background: var(--cream); }
html[data-v-tte-frame="c"] .tte-appbar { border-color: rgba(255,255,255,.12); }
html[data-v-tte-frame="c"] .tte-appbar small { color: rgba(253,248,240,.7); }
html[data-v-tte-frame="c"] .tte-dock { background: #1E1018; }
html[data-v-tte-frame="c"] .tte-dock::after { background: var(--cream); opacity: .6; }
html[data-v-tte-frame="c"] .tte-open-core { background: var(--cream); color: var(--plum); }

/* ---------- Doors into Glaze Core ---------- */
/* Edge tab (phones): sits on the right edge, steps aside while ordering. Swipe it left (or tap) to open Core. */
.core-edge { --p: 0; position: fixed; z-index: 65; right: 0; top: 58%; display: none; text-decoration: none; color: var(--cream);
  transform: translate3d(calc(100% + 4px), -50%, 0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 799px) { .core-edge { display: block; } }
.core-edge.is-on { transform: translate3d(calc(var(--p) * -28px), -50%, 0); }
.core-edge-tab { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .42rem .75rem .5rem; border-radius: 16px 0 0 16px; background: var(--plum);
  box-shadow: -6px 8px 20px -10px rgba(45,25,40,.6), inset 2px 0 0 rgba(212,168,67,.75); }
.core-edge-tab svg { width: 10px; height: 16px; }
.core-edge-tab b { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 .74rem/1 'DM Sans', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.core-edge-label { display: none; }
.core-edge.is-on .core-edge-tab svg { animation: coreNudge 2.8s ease-in-out 1.2s 2; }
@keyframes coreNudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(-4px); } 90% { transform: translateX(0); } }
.core-peek { --p: 0; position: fixed; z-index: 64; right: 0; top: 50%; width: min(240px, 66vw); display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.3rem 1rem;
  border-radius: 26px 0 0 26px; background: var(--plum); color: var(--cream); text-align: center; pointer-events: none;
  transform: translate3d(calc((1 - var(--p)) * 105%), -50%, 0); box-shadow: -20px 20px 40px -20px rgba(45,25,40,.6); }
.core-peek img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(212,168,67,.8); }
.core-peek b { font: 700 1.1rem/1.1 'DM Sans', system-ui, sans-serif; }
.core-peek span { font-size: .8rem; opacity: .85; }
.core-peek small { margin-top: .3rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.core-peek.is-ready small { opacity: 1; }
.core-peek.is-ready { box-shadow: -20px 20px 40px -20px rgba(45,25,40,.6), 0 0 0 3px rgba(212,168,67,.6); }

/* Smart button: bottom left (Bon Bon lives bottom right on desktop). Words follow the page and the clock. */
.core-smart { position: fixed; z-index: 66; left: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--cream); color: var(--plum); text-decoration: none;
  border: 1.5px solid rgba(212,168,67,.7); box-shadow: 0 14px 30px -16px rgba(45,25,40,.55);
  font: 700 .86rem/1.1 'DM Sans', system-ui, sans-serif; opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
  transition: opacity .4s ease-out, transform .5s cubic-bezier(.2,.8,.2,1); }
.core-smart.is-on { opacity: 1; transform: none; pointer-events: auto; }
.core-smart.is-on:hover { transform: translateY(-2px); }
.core-smart-icon img { display: block; width: 38px; height: 38px; border-radius: 50%; }
.core-smart-label { max-width: 15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.core-smart.is-new .core-smart-label { animation: coreWords .6s ease-out; }
@keyframes coreWords { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.core-smart:focus-visible, .core-edge:focus-visible .core-edge-tab, .tte-open-core:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
@media (max-width: 799px) { .core-smart { left: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

/* b: Orb. A round Glaze button; its words float out beside it when they change, and on hover or focus. */
html[data-v-core-door="b"] .core-smart { padding: 5px; gap: 0; }
html[data-v-core-door="b"] .core-smart-icon img { width: 46px; height: 46px; }
html[data-v-core-door="b"] .core-smart-label { position: absolute; left: calc(100% + 10px); top: 50%; padding: .5rem .8rem; border-radius: 14px; background: var(--plum); color: var(--cream);
  transform: translateY(-50%); opacity: 0; transition: opacity .3s; box-shadow: 0 10px 20px -12px rgba(45,25,40,.6); }
html[data-v-core-door="b"] .core-smart.is-new .core-smart-label { animation: coreBubble 3.6s ease-out; }
html[data-v-core-door="b"] .core-smart:hover .core-smart-label, html[data-v-core-door="b"] .core-smart:focus-visible .core-smart-label { opacity: 1; animation: none; }
@keyframes coreBubble { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* c: Ribbon. Phones: the edge tab carries the words (no separate button). Desktop: a slim ribbon on the left edge. */
@media (max-width: 799px) {
  html[data-v-core-door="c"] .core-smart { display: none; }
  html[data-v-core-door="c"] .core-edge-tab { flex-direction: row; padding: .6rem .7rem .6rem .55rem; gap: .45rem; }
  html[data-v-core-door="c"] .core-edge-tab b { display: none; }
  html[data-v-core-door="c"] .core-edge-label { display: block; max-width: 9.5rem; font: 700 .76rem/1.2 'DM Sans', system-ui, sans-serif; font-style: normal; }
}
@media (min-width: 800px) {
  html[data-v-core-door="c"] .core-smart { left: 0; bottom: auto; top: 50%; flex-direction: column; padding: 10px 7px 14px; border-radius: 0 18px 18px 0; border-left: 0;
    transform: translate3d(-100%, -50%, 0); }
  html[data-v-core-door="c"] .core-smart.is-on { transform: translate3d(0, -50%, 0); }
  html[data-v-core-door="c"] .core-smart.is-on:hover { transform: translate3d(3px, -50%, 0); }
  html[data-v-core-door="c"] .core-smart-icon img { width: 32px; height: 32px; }
  html[data-v-core-door="c"] .core-smart-label { writing-mode: vertical-rl; transform: rotate(180deg); max-width: none; max-height: 16rem; }
}

/* Still: reduced motion, Save-Data (html.glz-static) */
html.glz-static .core-edge, html.glz-static .core-smart, html.glz-static .core-peek, html.glz-static .tte-open-core, html.glz-static .tte-open-core span,
html.core-still .core-edge, html.core-still .core-smart, html.core-still .core-peek { transition: none !important; }
html.glz-static .core-edge-tab svg, html.glz-static .core-smart-label, html.core-still .core-edge-tab svg, html.core-still .core-smart-label { animation: none !important; }
html.glz-static[data-v-core-door="b"] .core-smart-label, html.core-still[data-v-core-door="b"] .core-smart-label { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .core-edge, .core-smart, .core-peek, .tte-open-core, html[data-v-tte-frame="c"] #kitchen.tte-framed > .tte-phone { transition: none !important; animation: none !important; } }
@media print { .core-edge, .core-smart, .core-peek { display: none !important; } }
