/* Couch Couture on the shelf (index.html): the Saturday-morning cartoon look over the Twilight Cabin. Paper boxes with
   thick ink outlines and a hard shadow, sitting on the slipcover's scenery; each game's box art stays its own. Only
   applies while couture.js has dressed the page (html[data-couture]); the colours are couture.css's one colour map. */
html[data-couture] body { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 500; }
html[data-couture] h1, html[data-couture] h2, html[data-couture] h3 { font-family: 'Luckiest Guy', Fredoka, sans-serif; font-weight: 400; letter-spacing: .02em; }
html[data-couture] a { color: inherit; }
html[data-couture] :focus-visible { outline-color: var(--cc-a2); }

/* ---- the bar: a paper strip with the slipcover's couch as the logo */
html[data-couture] .bar { background: var(--cc-paper); border-bottom: 5px solid var(--cc-ink); backdrop-filter: none; }
html[data-couture] .word { font: 400 28px 'Luckiest Guy', Fredoka, sans-serif; letter-spacing: .02em; color: var(--cc-ink); }
html[data-couture] .word i { color: var(--cc-a); -webkit-text-stroke: 1px var(--cc-ink); }
html[data-couture] .word .ccLogo { width: 64px; flex: none; margin: -6px 0 -4px; }
html[data-couture] .word > .logo { display: none; }
html[data-couture] .barlink { color: var(--cc-ink); }
html[data-couture] .barlink:hover { color: var(--cc-a); }
html[data-couture] .melink { background: #fff; border: 3px solid var(--cc-ink); box-shadow: 2px 2px 0 var(--cc-ink); }
html:not([data-couture]) .ccLogo, html:not([data-couture]) .ccHero { display: none; }
@media (max-width: 720px) { html[data-couture] .word { font-size: 19px; gap: 5px; } html[data-couture] .word .ccLogo { width: 40px; margin: -4px 0 -2px; } }
@media (max-width: 400px) { html[data-couture] .word { font-size: 16px; } html[data-couture] .word .ccLogo { width: 32px; } }

/* ---- buttons: chunky, outlined, a hard shadow that squashes when pressed */
html[data-couture] .btn, html[data-couture] .hjb, html[data-couture] .hjsplit {
  border: 4px solid var(--cc-ink); box-shadow: 4px 4px 0 var(--cc-ink); }
html[data-couture] .btn, html[data-couture] .hjb { font-family: 'Luckiest Guy', Fredoka, sans-serif; font-weight: 400; letter-spacing: .03em; }
html[data-couture] .btn:hover, html[data-couture] .hjb:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--cc-ink); }
html[data-couture] .btn:active, html[data-couture] .hjb:active { transform: translate(3px, 3px) scale(.98, .95); box-shadow: 1px 1px 0 var(--cc-ink); }
html[data-couture] .btn.play, html[data-couture] .hjb.hjhost { background: var(--cc-a); color: var(--cc-a-ink); }
html[data-couture] .btn.play:hover, html[data-couture] .hjb.hjhost:hover { background: var(--cc-a); }
html[data-couture] .btn.more, html[data-couture] .btn.mirror { background: var(--cc-a2); color: var(--cc-a2-ink); box-shadow: 4px 4px 0 var(--cc-ink); }
html[data-couture] .btn.quiet { background: var(--cc-paper); color: var(--cc-ink); }
html[data-couture] .btn.off { background: #E3DACB; color: var(--cc-muted); box-shadow: none; border-style: dashed; }
html[data-couture] .hjb.hjjoin { background: var(--cc-a2); color: var(--cc-a2-ink); }
html[data-couture] .hjsplit { overflow: hidden; }
html[data-couture] .hjhalf { background: color-mix(in srgb, var(--cc-a2) 72%, #fff); color: var(--cc-a2-ink); font-family: Fredoka, sans-serif; }
html[data-couture] .hjhalf.likely, html[data-couture] .hjhalf:hover { background: var(--cc-a2); }
html[data-couture] .hjhalf:first-child { border-radius: 0; } html[data-couture] .hjhalf + .hjhalf { border-radius: 0; border-left: 4px solid var(--cc-ink); }
html[data-couture] .hjhalf b { font: 400 34px 'Luckiest Guy', Fredoka, sans-serif; letter-spacing: .03em; }
html[data-couture] .hjor { background: var(--cc-paper); color: var(--cc-ink); border: 3px solid var(--cc-ink); }
html[data-couture] .hjform input { border: 4px solid var(--cc-ink); background: #fff; color: var(--cc-ink); box-shadow: 4px 4px 0 var(--cc-ink); }
html[data-couture] .backlast a { background: var(--cc-paper); color: var(--cc-ink); border: 3px solid var(--cc-ink); box-shadow: 3px 3px 0 var(--cc-ink); }
html[data-couture] .backlast a small { color: var(--cc-ink); }

/* ---- the top: Host and Join, the couch beside them (no headline: Zach 2026-11-09, fewest words), words on the scenery
   in its own colour */
html[data-couture] .hello h1 { color: var(--cc-paper); -webkit-text-stroke: 3px var(--cc-ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--cc-ink); letter-spacing: .02em; }
html[data-couture] .hello h1 em { color: var(--cc-a2); }
html[data-couture] .hjhint, html[data-couture] .hjas,
html[data-couture] .padhint { color: var(--cc-text); }
html[data-couture] .hjas b, html[data-couture] .hjmsg { color: var(--cc-text); }
html[data-couture] .hjas button { color: var(--cc-text); }
html[data-couture] .ccHero { width: min(300px, 60vw); margin: -6px auto 4px; }
html[data-couture] .ccHeroRow { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
html[data-couture] .ccHeroRow .cc-lever { width: 34px; height: 56px; margin: 0 0 22px -14px; }
html[data-couture] .ccBarLever { width: 22px; height: 36px; margin-left: -14px; }
@media (min-width: 1200px) { html[data-couture] .ccBarLever { display: none; } }
@media (min-width: 1200px) {
  html[data-couture] .hello { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: 'hj couch'; align-items: center; column-gap: 24px; text-align: left; }
  html[data-couture] .hello .ccHeroBox { grid-area: couch; text-align: center; }
  html[data-couture] .hello .hostjoin { grid-area: hj; max-width: none; width: 100%; margin-top: 0; }
  html[data-couture] .ccHero { width: 190px; margin: 0; }
}
@media (max-width: 1199px) { html[data-couture] .ccHeroBox { display: none; } }   /* (Join's halves need the room) */

/* ---- the panel: How it works becomes a paper box on the scenery */
html[data-couture] .how { background: transparent; }
html[data-couture] .how .wrap { background: var(--cc-paper); color: var(--cc-ink); border: 5px solid var(--cc-ink); border-radius: 26px; box-shadow: var(--cc-shadow);
  max-width: calc(1280px - 2 * var(--gut)); width: calc(100% - 2 * var(--gut)); }
html[data-couture] .steps li { background: #fff; border: 4px solid var(--cc-ink); box-shadow: 4px 4px 0 var(--cc-ink); }
html[data-couture] .steps li::before { background: var(--cc-a2); color: var(--cc-a2-ink); border: 3px solid var(--cc-ink); }
html[data-couture] .steps b { font-family: 'Luckiest Guy', Fredoka, sans-serif; font-weight: 400; letter-spacing: .02em; }
html[data-couture] kbd { border-color: var(--cc-ink); color: var(--cc-ink); background: var(--cc-a2); }

/* ---- the games: boxes on a shelf, all standing straight, lifting a little when pointed at (Zach 2026-11-09: "One
   plain card frame"; the tilt and the wobble went) */
html[data-couture] .gamesbar h2 { color: var(--cc-paper); -webkit-text-stroke: 2px var(--cc-ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--cc-ink); }
html[data-couture] .filt .lab { color: var(--cc-text); }
html[data-couture] .filt button { background: var(--cc-paper); color: var(--cc-ink); border: 3px solid var(--cc-ink); box-shadow: 2px 2px 0 var(--cc-ink); font-family: Fredoka, sans-serif; font-weight: 600; }
html[data-couture] .filt button[aria-pressed="true"] { background: var(--cc-a2); color: var(--cc-a2-ink); border-color: var(--cc-ink); }
html[data-couture] .grid { gap: 22px; }
html[data-couture] .grid .none { color: var(--cc-text); }
html[data-couture] .tile { background: var(--cc-paper); border: 4px solid var(--cc-ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--cc-ink);
  transition: transform .15s ease, box-shadow .15s ease; }
html[data-couture] .tile:hover, html[data-couture] .tile:focus-visible { transform: translateY(-4px); box-shadow: 7px 7px 0 var(--cc-ink); }
html[data-couture] .tile .pv { border-bottom: 4px solid var(--cc-ink); }
html[data-couture] .tile h3 { font-size: 20px; color: var(--cc-ink); }
html[data-couture] .meta, html[data-couture] .ctl em { color: var(--cc-muted); }
html[data-couture] .ctl { color: var(--cc-ink); }
html[data-couture] .pvplay { background: var(--cc-paper); color: var(--cc-ink); box-shadow: 0 0 0 3px var(--cc-ink); }

/* ---- Party Pouf rearranges: the games are presents (a ribbon round each box's edge, the picture left clear: Zach
   2026-11-02 "Keep the layout, no ribbons" over the art), the boxes bounce in a looser stack */
html[data-couture-layout="party"] .tile { border-radius: 10px; overflow: visible;
  background: repeating-linear-gradient(45deg, var(--cc-a3) 0 10px, color-mix(in srgb, var(--cc-a3) 70%, #fff) 10px 20px); }
html[data-couture-layout="party"] .tile .pv { margin: 10px 10px 0; border: 4px solid var(--cc-ink); border-radius: 6px; }
html[data-couture-layout="party"] .tile .txt { margin: 0 10px 10px; border: 4px solid var(--cc-ink); border-top: 0; border-radius: 0 0 6px 6px; }
html[data-couture-layout="party"] .tile::after { content: ''; position: absolute; top: -14px; left: calc(50% - 22px); width: 44px; height: 24px; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at 25% 50%, var(--cc-a3) 0 9px, transparent 10px), radial-gradient(circle at 75% 50%, var(--cc-a3) 0 9px, transparent 10px);
  filter: drop-shadow(0 0 0 var(--cc-ink)) drop-shadow(2px 2px 0 var(--cc-ink)); }
html[data-couture-layout="party"] .tile .txt { background: var(--cc-paper); }
html[data-couture-layout="party"] .grid { gap: 30px 24px; }
html[data-couture-layout="party"] .tile:nth-child(odd) { margin-top: 14px; }

/* ---- a game's pop-out: a paper card */
html[data-couture] .sheet { background: #1B1530aa; }
html[data-couture] .card { background: var(--cc-paper); color: var(--cc-ink); border: 5px solid var(--cc-ink); box-shadow: 8px 8px 0 var(--cc-ink); }
html[data-couture] .card .top .pv { border-bottom: 5px solid var(--cc-ink); }
@media (min-width: 861px) { html[data-couture] .hero .top .pv { border-bottom: 0; border-right: 5px solid var(--cc-ink); } }
html[data-couture] .card .close { background: var(--cc-paper); color: var(--cc-ink); box-shadow: 0 0 0 4px var(--cc-ink), 3px 3px 0 4px var(--cc-ink); }
html[data-couture] .card .head .hook { color: var(--cc-ink); }
html[data-couture] .glance .ctl { color: var(--cc-muted); }
html[data-couture] .launch { background: var(--cc-paper2); }
html[data-couture] .launch { border: 4px solid var(--cc-ink); }
html[data-couture] .wseg { background: #fff; border: 3px solid var(--cc-ink); }
html[data-couture] .wseg button { color: var(--cc-muted); }
html[data-couture] .wseg button[aria-checked="true"] { background: var(--cc-a); color: var(--cc-a-ink); }
html[data-couture] .house .inside { background: var(--cc-paper2); border: 3px solid var(--cc-ink); }
html[data-couture] .moreinfo { border-top: 4px dashed var(--cc-ink); }
html[data-couture] .card .listen { border-color: var(--cc-ink); }
html[data-couture] .card .listen[aria-pressed="true"] { background: var(--cc-a2); color: var(--cc-a2-ink); }
html[data-couture] .golinks a { color: var(--cc-ink); }

@media (prefers-reduced-motion: reduce) { html[data-couture] .tile, html[data-couture] .tile:hover { transform: none; } }

/* ---- still until you point at it (Zach 2026-11-09: "a clean, snappy experience ... not overstimulating"). The front
   page's scenery holds still: the slipcover's sky keeps its picture (stars, flakes, waves where they are) but nothing
   drifts, and two clouds rest at the screen's edges, off the headline and the words (a phone shows just the sky).
   The couch (the bar's and the big one) moves only while it's pointed at. A card lifts when pointed at, and its clip plays (index.html). */
html[data-couture] #ccSky *, html[data-couture] #ccSky *::before, html[data-couture] #ccSky *::after { animation-play-state: paused !important; }
html[data-couture] #ccSky .cloud { animation: none !important; }
html[data-couture] #ccSky .cloud:nth-child(1 of .cloud) { top: 34vh !important; left: calc(100vw - 120px); }
html[data-couture] #ccSky .cloud:nth-child(2 of .cloud) { top: 88vh !important; left: -90px; }
html[data-couture] #ccSky .cloud:nth-child(n+3 of .cloud) { display: none; }   /* (two are plenty) */
@media (max-width: 720px) { html[data-couture] #ccSky > * { display: none; } }   /* a phone has no empty edges: just the sky's colours */
html[data-couture] .cc-couch * { animation-play-state: paused; }
html[data-couture] [data-couture-couch]:hover .cc-couch *, html[data-couture] .word:hover .cc-couch * { animation-play-state: running; }
