/* Lantern's look: a night of paper lanterns.
 *
 * Deep indigo like an evening sky, warm gold and coral like lantern light,
 * and a hand-drawn scene of lanterns rising over water. Headings are set in
 * Fraunces, a warm display serif; everything else in Figtree, a friendly
 * plain face. Both typefaces and the picture are served by Lantern itself:
 * nothing is fetched from anywhere else.
 *
 * The colours are named once, here. There are two sets, "dawn" (light) and
 * "night" (dark). Which one shows is the member's choice: Light, Dark, or
 * Auto, which follows the device's own setting.
 */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* Dawn: the light set. */
:root {
  --bg: #fff6ea;
  --bg-glow-1: rgba(255, 178, 62, 0.28);
  --bg-glow-2: rgba(255, 122, 89, 0.16);
  --card: #ffffff;
  --card-2: #fff1dd;
  --ink: #231f4d;
  --ink-soft: #66628a;
  --rule: #f0dfc6;
  --gold: #e07f00;
  --coral: #e2553a;
  --teal: #0c8a80;
  --on-accent: #ffffff;
  --accent-wash: #ffe9c7;
  --danger: #c2321f;
  --danger-wash: #ffe6e0;
  --good: #1f7a45;
  --good-wash: #e2f5e7;
  --focus: #3b5bdb;
  --shadow: 0 1px 2px rgba(35, 31, 77, 0.06), 0 8px 24px rgba(35, 31, 77, 0.08);
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

/* Night: the dark set. Used when the member chose Dark ... */
:root[data-theme="dark"] {
  --bg: #0f1130;
  --bg-glow-1: rgba(255, 178, 62, 0.16);
  --bg-glow-2: rgba(226, 85, 122, 0.14);
  --card: #1a1d47;
  --card-2: #232658;
  --ink: #f6f0e4;
  --ink-soft: #b4b1d6;
  --rule: #30346a;
  --gold: #ffb23e;
  --coral: #ff7a59;
  --teal: #5ad6c8;
  --on-accent: #23130a;
  --accent-wash: #3a2c4a;
  --danger: #ff8f7d;
  --danger-wash: #47223a;
  --good: #7fe0a0;
  --good-wash: #1c3a46;
  --focus: #9db4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
/* ... and when they chose Auto on a device set to dark. (The same values;
   plain CSS has no way to say them once for both cases.) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1130;
    --bg-glow-1: rgba(255, 178, 62, 0.16);
    --bg-glow-2: rgba(226, 85, 122, 0.14);
    --card: #1a1d47;
    --card-2: #232658;
    --ink: #f6f0e4;
    --ink-soft: #b4b1d6;
    --rule: #30346a;
    --gold: #ffb23e;
    --coral: #ff7a59;
    --teal: #5ad6c8;
    --on-accent: #23130a;
    --accent-wash: #3a2c4a;
    --danger: #ff8f7d;
    --danger-wash: #47223a;
    --good: #7fe0a0;
    --good-wash: #1c3a46;
    --focus: #9db4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 17px; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  /* Two soft pools of lantern light on the page. */
  background:
    radial-gradient(60rem 40rem at 100% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--coral); text-underline-offset: 3px; font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Things arrive with a small upward drift, unless the device asks for stillness. */
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.82; } 60% { opacity: 0.95; } }
.page > *, .door-form > * { animation: arrive 0.45s ease both; }
.page > *:nth-child(2), .door-form > *:nth-child(2) { animation-delay: 0.06s; }
.page > *:nth-child(3), .door-form > *:nth-child(3) { animation-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ----- the frame around every signed-in page ----- */

.frame { min-height: 100vh; display: grid; grid-template-columns: 17rem 1fr; }

.rail {
  margin: 1rem 0 1rem 1rem;
  padding: 1.3rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
}

.wordmark { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: 0 0.4rem; }
.wordmark img { width: 2.3rem; height: 2.3rem; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }

.rail nav { display: flex; flex-direction: column; gap: 0.3rem; }
.rail nav a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.rail nav a svg { grid-row: span 2; width: 2.2rem; height: 2.2rem; padding: 0.45rem; border-radius: 11px; background: var(--card-2); color: var(--coral); }
.rail nav a small { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
.rail nav a:hover { background: var(--card-2); transform: translateX(2px); }
.rail nav a[aria-current="page"] { background: linear-gradient(100deg, var(--gold), var(--coral)); color: var(--on-accent); }
.rail nav a[aria-current="page"] small { color: var(--on-accent); opacity: 0.85; }
.rail nav a[aria-current="page"] svg { background: rgba(255, 255, 255, 0.25); color: var(--on-accent); }

.rail .foot { margin-top: auto; display: grid; gap: 0.9rem; }
.who { display: flex; align-items: center; gap: 0.7rem; }
.who div { min-width: 0; font-size: 0.85rem; color: var(--ink-soft); }
.who strong { display: block; color: var(--ink); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A circle with someone's initial, coloured by who they are. */
.avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.tone-0 { background: linear-gradient(135deg, #ffb23e, #f2683a); }
.tone-1 { background: linear-gradient(135deg, #ff7a59, #d6336c); }
.tone-2 { background: linear-gradient(135deg, #3bc9db, #1c7ed6); }
.tone-3 { background: linear-gradient(135deg, #63e6be, #0c8a80); }
.tone-4 { background: linear-gradient(135deg, #b197fc, #7048e8); }
.tone-5 { background: linear-gradient(135deg, #ffd43b, #f08c00); }

/* The Auto / Light / Dark switch. */
.theme { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card-2); border-radius: 999px; padding: 3px; }
.theme button { border: 0; background: transparent; border-radius: 999px; padding: 0.3rem 0.2rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); box-shadow: none; }
.theme button:hover { transform: none; background: transparent; color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.page { padding: 1rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 66rem; width: 100%; display: grid; gap: 1.4rem; align-content: start; }

/* Each page opens with a banner: the lantern scene, with the page's name
   and a sentence saying what the page is for. */
.page > header {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  min-height: 10.5rem;
  display: grid;
  align-content: end;
  gap: 0.5rem;
  color: #fff;
  background: linear-gradient(90deg, rgba(13, 16, 51, 0.88) 0%, rgba(13, 16, 51, 0.55) 55%, rgba(13, 16, 51, 0.1) 100%), url("/scene.svg") center 38% / cover;
  box-shadow: var(--shadow);
}
.page > header h1 { color: #fff; }
.page > header .lead { color: rgba(255, 255, 255, 0.88); max-width: 40rem; font-size: 1.05rem; }
.page > header .hello { font-weight: 700; color: #ffd27a; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.lead { color: var(--ink-soft); }

/* On a phone the rail becomes a bar along the bottom. */
@media (max-width: 800px) {
  .frame { grid-template-columns: 1fr; padding-bottom: 5.2rem; }
  .rail {
    position: fixed; bottom: 0.6rem; left: 0.6rem; right: 0.6rem; top: auto; height: auto; margin: 0;
    flex-direction: row; align-items: center; gap: 0; padding: 0.35rem; z-index: 5; border-radius: 18px;
  }
  .rail .wordmark, .rail .foot { display: none; }
  .rail nav { flex-direction: row; flex: 1; gap: 0.2rem; }
  .rail nav a { flex: 1; grid-template-columns: 1fr; justify-items: center; row-gap: 0.1rem; padding: 0.4rem 0.2rem; font-size: 0.85rem; }
  .rail nav a svg { grid-row: auto; width: 1.9rem; height: 1.9rem; padding: 0.35rem; }
  .rail nav a small { display: none; }
  .rail nav a:hover { transform: none; }
  .page { padding-top: 0.8rem; }
  .only-wide { display: none; }
}
@media (min-width: 801px) { .only-phone { display: none; } }

/* ----- cards, sections and lists ----- */

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.stack { display: grid; gap: 1.2rem; }
.stack-tight { display: grid; gap: 0.6rem; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.section-head { display: grid; gap: 0.25rem; margin-bottom: 1.1rem; padding-left: 0.9rem; border-left: 4px solid var(--gold); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.list > li { background: var(--card-2); border-radius: 14px; padding: 0.9rem 1rem; display: grid; gap: 0.7rem; }
.list.plain > li { background: transparent; padding: 0.55rem 0; border-radius: 0; border-bottom: 1px dashed var(--rule); }

.person { display: flex; gap: 0.8rem; align-items: center; }
.person > div { display: grid; gap: 0.15rem; }

.empty { border: 2px dashed var(--rule); border-radius: 18px; padding: 2.4rem 1.4rem; text-align: center; color: var(--ink-soft); display: grid; gap: 0.5rem; justify-items: center; }
.empty img { width: 4rem; height: 4rem; animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.empty strong { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }

/* ----- project tiles ----- */

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.1rem; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: grid; align-content: start; transition: transform 0.18s, box-shadow 0.18s; animation: arrive 0.45s ease both; }
.tile:hover { transform: translateY(-4px); }
.tile .cover { height: 7rem; display: grid; place-items: center; font-family: var(--display); font-size: 3rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.tile .body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.7rem; }
.tile h3 { overflow-wrap: anywhere; }

/* ----- forms ----- */

label.field { display: grid; gap: 0.35rem; }
label.field > span { font-weight: 700; }
label.field > small { color: var(--ink-soft); font-size: 0.85rem; }

input[type="text"], input[type="password"], input[type="number"] {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--rule);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  width: 100%;
  max-width: 27rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-wash); outline: none; }
input::placeholder { color: var(--ink-soft); opacity: 0.8; }
input.code { font-family: var(--mono); letter-spacing: 0.14em; max-width: 14rem; }

label.tick { display: flex; gap: 0.65rem; align-items: flex-start; }
label.tick input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--coral); flex: none; }

button {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
button:hover { transform: translateY(-1px); background: var(--card-2); }
button:active { transform: none; }
button.main { border-color: transparent; color: var(--on-accent); background: linear-gradient(100deg, var(--gold), var(--coral)); box-shadow: 0 6px 18px rgba(242, 104, 58, 0.35); padding: 0.6rem 1.4rem; }
button.main:hover { background: linear-gradient(100deg, var(--gold), var(--coral)); filter: brightness(1.06); }
button.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
button.danger:hover { background: var(--danger-wash); }
button.plain { border-color: transparent; background: transparent; padding-left: 0.5rem; padding-right: 0.5rem; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
button.small { padding: 0.3rem 0.8rem; font-size: 0.88rem; }
button:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; filter: grayscale(0.4); }

/* ----- messages ----- */

.note, .problem, .done { border-radius: 14px; padding: 0.8rem 1rem; border: 1px solid transparent; }
.note { background: var(--accent-wash); border-color: var(--gold); }
.problem { background: var(--danger-wash); border-color: var(--danger); }
.done { background: var(--good-wash); border-color: var(--good); }

.badge { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 0.12rem 0.6rem; border-radius: 999px; background: var(--card); color: var(--ink-soft); border: 1px solid var(--rule); }
.badge.active { background: var(--good-wash); color: var(--good); border-color: transparent; }
.badge.suspended { background: var(--danger-wash); color: var(--danger); border-color: transparent; }
.badge.invited { background: var(--accent-wash); color: var(--gold); border-color: transparent; }

/* ----- the pages shown before signing in: picture on one side, form on the other ----- */

.door { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.door-art {
  position: relative;
  color: #fff;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  align-content: space-between;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(13, 16, 51, 0.35), rgba(13, 16, 51, 0) 40%, rgba(13, 16, 51, 0.6)), url("/scene.svg") center / cover;
  animation: flicker 7s ease-in-out infinite;
}
.door-art .wordmark { color: #fff; font-size: 2rem; padding: 0; }
.door-art .wordmark img { width: 2.8rem; height: 2.8rem; }
.door-art h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff; max-width: 14ch; }
.door-art p { color: rgba(255, 255, 255, 0.9); max-width: 30rem; font-size: 1.08rem; }
.door-form { padding: clamp(1.5rem, 6vh, 4rem) clamp(1rem, 4vw, 3.5rem) 3rem; display: grid; gap: 1.4rem; align-content: start; max-width: 36rem; width: 100%; justify-self: center; }
.door-form footer { color: var(--ink-soft); font-size: 0.9rem; display: grid; gap: 0.6rem; }
.door-form footer .theme { max-width: 15rem; }
@media (max-width: 900px) {
  .door { grid-template-columns: 1fr; }
  .door-art { min-height: 15rem; align-content: end; }
  .door-art p { display: none; }
}

ol.steps { list-style: none; counter-reset: step; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1.6rem; }
ol.steps > li { counter-increment: step; display: grid; gap: 0.8rem; padding-left: 3rem; position: relative; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral)); color: var(--on-accent);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
}

.qr { background: #ffffff; padding: 0.6rem; border-radius: 14px; width: 13.5rem; max-width: 100%; box-shadow: var(--shadow); }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; margin: 0; padding: 1rem 1.1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.45rem 1.2rem; font-family: var(--mono); background: var(--card-2); border-radius: 14px; }
.keytext { font-family: var(--mono); font-size: 0.9rem; word-break: break-all; background: var(--bg); border: 1px dashed var(--rule); border-radius: 12px; padding: 0.6rem 0.8rem; }
details summary { cursor: pointer; color: var(--coral); font-weight: 600; }

/* ----- one project: choosing pictures, and the shots ----- */

a.button { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.88rem; color: var(--on-accent); background: linear-gradient(100deg, var(--gold), var(--coral)); transition: transform 0.12s; }
a.button:hover { transform: translateY(-1px); }
.tile a.cover { text-decoration: none; }
.tile h3 a { color: var(--ink); text-decoration: none; font-weight: inherit; }
.tile h3 a:hover { text-decoration: underline; }
.page > header a.hello { text-decoration: none; }
.page > header a.hello:hover { text-decoration: underline; }
.page > header .lead a { color: #ffd27a; }

.pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
input[type="file"] { font: inherit; color: var(--ink-soft); background: var(--bg); border: 2px dashed var(--rule); border-radius: 12px; padding: 0.7rem; width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-right: 0.8rem; border: 0; border-radius: 999px; padding: 0.4rem 0.9rem; background: var(--card-2); color: var(--ink); cursor: pointer; }

.tiles.shots { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.frames { position: relative; background: var(--card-2); aspect-ratio: 16 / 10; }
.frames .still { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The picture a shot ends on sits small in the corner of the one it starts from. */
.frames .still.ending { position: absolute; right: 0.6rem; bottom: 0.6rem; width: 34%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; border: 3px solid var(--card); box-shadow: var(--shadow); }

/* ----- making videos ----- */

.tiles.shots { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); }
.videos { display: grid; gap: 0.8rem; border-top: 1px dashed var(--rule); padding-top: 0.8rem; }
textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--rule); border-radius: 12px; padding: 0.6rem 0.8rem; width: 100%; resize: vertical; min-height: 5.5rem;
}
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-wash); outline: none; }
select { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 12px; padding: 0.45rem 0.7rem; max-width: 12rem; }

/* Two side-by-side choices, the chosen one lit. */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice button { border-radius: 14px; display: grid; gap: 0.1rem; text-align: left; padding: 0.55rem 0.8rem; }
.choice button small { color: var(--ink-soft); font-weight: 500; font-size: 0.8rem; }
.choice button[aria-pressed="true"] { border-color: var(--gold); background: var(--accent-wash); }

.takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.take { background: var(--card-2); border-radius: 14px; padding: 0.6rem; display: grid; gap: 0.5rem; animation: arrive 0.35s ease both; }
.take video { width: 100%; border-radius: 10px; background: #000; display: block; }
.take a.small { font-size: 0.88rem; }

/* A thin moving glow while a video is in line or being made. */
@keyframes glide { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.working { height: 5px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--gold), var(--coral), transparent) no-repeat; background-size: 40% 100%; background-color: var(--rule); animation: glide 1.6s linear infinite; }

/* ----- the Server page: three figures side by side ----- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.8rem; }
.facts > div { background: var(--card-2); border-radius: 14px; padding: 0.9rem 1rem; display: grid; gap: 0.2rem; }
.facts strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.facts span { color: var(--ink-soft); font-size: 0.88rem; }

/* ----- shots from words, three-way choices, the film ----- */

.hidden { display: none !important; }
.label { font-weight: 700; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
.frames.words { display: grid; place-items: center; align-content: center; gap: 0.6rem; color: var(--ink-soft); font-weight: 600;
  background: linear-gradient(135deg, var(--accent-wash), var(--card-2)); }
.frames.words .outline { border: 3px dashed var(--gold); border-radius: 8px; }
.frames.words .outline.wide { width: 6.4rem; height: 3.6rem; }
.frames.words .outline.tall { width: 2.7rem; height: 4.8rem; }
.frames.words .outline.square { width: 4.2rem; height: 4.2rem; }
video.film { width: 100%; border-radius: 14px; background: #000; display: block; max-height: 70vh; }
