/* cup-matcha.css — THUD CUP's matcha (CALM.md §4, §5 A): Chasen's room on the home.

   The hero is the room (cup-room.js; PUNK.world asks it for the still): the curtain, the bowl and the window kept in a
   phone's tall crop, the whole room on a wide screen. Its film lies over the still exactly, and neither breathes (no slow
   zoom: the room is still but for what moves in it). Behind a card the room stands still too (punk-wall.js asks
   cup-room.js; its camera held: scripts/verify_quiz_scene.py prices the room where it stands). The afternoon is the morning's still and film in late light, under
   Chasen's own filter (chasen.css, 2026-10-08), so the room a learner knows at nine is the room they find at four. No
   sparks over the room. Tokens only for colour (frap.css html[data-palette="matcha"], its Milk and its afternoon). */
html[data-palette="matcha"] .def-hero__art img,
html[data-palette="matcha"] .cup-room__film,
html[data-palette="matcha"] .pw__still { object-position: 84% 56%; animation: none; }
@media (min-aspect-ratio: 1/1) {
  html[data-palette="matcha"] .def-hero__art img,
  html[data-palette="matcha"] .cup-room__film,
  html[data-palette="matcha"] .pw__still { object-position: 62% 50%; }
}
html[data-palette="matcha"][data-part="afternoon"] .def-hero__art img,
html[data-palette="matcha"][data-part="afternoon"] .cup-room__film,
html[data-palette="matcha"][data-part="afternoon"] .pw__still { filter: sepia(.62) saturate(1.5) hue-rotate(-6deg) brightness(.99); }
/* behind a card the camera does not travel the room (punk-wall.js pan() sets these inline; a held page stays a room) */
html[data-palette="matcha"] .pw__cam { --pw-x: 0% !important; --pw-y: 0% !important; }
/* by day the app's name stands on paper: the header's mark in ink, not white in a dark halo (THUD CORE's, for its bright
   scenes), and the desk's side panel's chip in matcha's ink, not the reward gold (3.3:1 on the paper) */
html[data-look="milk"][data-palette="matcha"] .def-brand { color: var(--ink); text-shadow: none; }
html[data-look="milk"][data-palette="matcha"] .side__brand i { color: var(--acc-ink); }
/* Reading's covers, asked again 2026-11-14 subject first (scripts/firefly-matcha-covers.json; READER.md §15): the shelf's
   own thing large on a table by a window, in the lower two thirds. THUD CORE's card sets its names on a black foot over
   the picture's lower half, where the thing stands; so matcha's card is Chasen's tile: the cover whole, its names under
   it on the card's own surface in the skin's inks (priced on that surface by verify_contrast.py; verify_reading_art.py
   TILE). A banner cut wide from a cover shows its table and the thing on it */
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) { aspect-ratio: auto; display: flex; flex-direction: column; color: var(--ink); background: var(--glass-fill); }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-card__art { position: static; flex: none; height: auto; aspect-ratio: 3 / 4; }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-card__foot { position: static; flex: 1 1 auto; background: none; padding: 9px 12px 12px; }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-card__title { color: var(--ink); text-shadow: none; }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-card__uk { color: var(--ink-2); }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-jcard__line { color: var(--ink-2); }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-jcard__next { color: var(--ink); }
html[data-palette="matcha"] .rd-card:not(.rd-card--bare) .rd-card__n { color: var(--ink-3); }
html[data-palette="matcha"] .rd-banner__art { object-position: center 88%; }
html[data-palette="matcha"] .rd-banner--j .rd-banner__art { object-position: center 100%; }
/* the Debrief's score in its rim (PUNK.md call 41; CALM.md call 7, §5 F): a celadon tea bowl seen from above, its glazed
   lip and the wall going down (art/matcha/bezel.webp, scripts/cut_rims.py), its well the opening round the gauge, 180 px
   of 224, clear of the ticks (176 px); its shadow soft, the window's light from the upper left */
html[data-palette="matcha"] .fr-arc, html[data-palette="matcha"] .fr-res .fr-arc { margin: 38px 0 36px; }
html[data-palette="matcha"] .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/matcha/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(3px 7px 12px rgba(0, 0, 0, .4)); }
html[data-look="milk"][data-palette="matcha"] .fr-arc .ring::after { filter: drop-shadow(3px 6px 10px rgba(70, 76, 52, .26)); }
/* the arrival's curtain in matcha's room (cup.css): a sheer voile in the part's own light, the morning's, the afternoon's
   and the evening's (Firefly Image 4, scripts/firefly-calm.json «curtain»), tall and wide; the woven cloth under it in the
   picture's own colour while it loads. [data-calm] lifts these over cup.css, which comes after this sheet. */
html[data-calm][data-palette="matcha"] { --cup-curtain: url("art/matcha/curtain/morning-tall.webp"); }
html[data-calm][data-palette="matcha"][data-part] { --cup-cloth: 186, 199, 206; --cup-cloth-a: 1; }
html[data-calm][data-palette="matcha"][data-part="afternoon"] { --cup-curtain: url("art/matcha/curtain/afternoon-tall.webp"); --cup-cloth: 198, 177, 147; }
html[data-calm][data-palette="matcha"][data-part="evening"] { --cup-curtain: url("art/matcha/curtain/evening-tall.webp"); --cup-cloth: 92, 117, 158; }
@media (min-aspect-ratio: 1/1) {
  html[data-calm][data-palette="matcha"] { --cup-curtain: url("art/matcha/curtain/morning-wide.webp"); }
  html[data-calm][data-palette="matcha"][data-part="afternoon"] { --cup-curtain: url("art/matcha/curtain/afternoon-wide.webp"); }
  html[data-calm][data-palette="matcha"][data-part="evening"] { --cup-curtain: url("art/matcha/curtain/evening-wide.webp"); }
}
/* the welcome in the room (frap.js welcome(); CALM.md call 5): the room's still behind the glazed Tryzub, softly, under the
   paper, so the curtain the arrival draws aside opens on the room; the wall and its leaves on a phone, the window on a wide
   screen. Blackout shows no picture (cup.css). */
html[data-palette="matcha"] .brief .fl__world:has(> .brief__arms)::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("art/matcha/room/morning.jpg") 80% 40% / cover no-repeat; opacity: .66; }
html[data-palette="matcha"][data-part="afternoon"] .brief .fl__world:has(> .brief__arms)::before { filter: sepia(.62) saturate(1.5) hue-rotate(-6deg) brightness(.99); }
html[data-palette="matcha"][data-part="evening"] .brief .fl__world:has(> .brief__arms)::before { background-image: url("art/matcha/room/evening.jpg"); opacity: .9; }
html[data-palette="matcha"] .brief:not([data-step="1"]) .fl__world:has(> .brief__arms)::before { filter: blur(18px); opacity: .4; }
html[data-palette="matcha"][data-watch="on"] .brief .fl__world::before { display: none; }
@media (min-aspect-ratio: 1/1) { html[data-palette="matcha"] .brief .fl__world:has(> .brief__arms)::before { background-position: 62% 40%; } }

/* the faces (CALM.md call 15): Lora's brush-born serif for the titles and the figures (fonts/, through fonts.css), over
   Inter DEF, the labels in Montserrat DEF, as Silkpunk sets them. The card's face stays the learner's. */
html[data-palette="matcha"] { --display: "Lora", "Literata", Georgia, serif; }
html[data-palette="matcha"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .brief__title, .bk-title) { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
html[data-palette="matcha"] :is(.def-cell b, .fr-arc__n, .fr-tiles b, .fr-tile b) { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
html[data-palette="matcha"] .def-brand b { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }

html[data-look="milk"][data-palette="matcha"] { --key-cut: 0 -1px 0 rgba(16, 36, 10, .4); }
