@import url("./craft-album.css");
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #F7F2E8;
  --night: #102E32;
  --teal: #173E43;
  --panel: #285568;
  --ink: #102E32;
  --muted: #D8E5E9;
  --cinnabar: #A9252A;
  --lacquer: #651D27;
  --line: #D9B66F;
  --focus: var(--paper);
  --disabled: #C1D0D3;
  --notice: #FFDFDA;
  --radius: .3rem;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --panel-inset: clamp(.85rem, 3vw, 1.45rem);
  font: 100%/1.55 system-ui, sans-serif;
  background: var(--night);
  color: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: var(--paper); text-underline-offset: .23em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus-visible { outline-offset: -2px; }
.skip {
  position: fixed;
  z-index: 5;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  background: var(--paper);
  color: var(--ink);
  padding: .65rem;
}
.skip:focus { opacity: 1; pointer-events: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.frame { width: 100%; max-width: 78rem; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.masthead {
  border-block-start: 4px solid var(--lacquer);
  border-block-end: 2px solid var(--line);
  padding-top: env(safe-area-inset-top);
  background: var(--cinnabar);
}
.topbar { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; color: var(--paper); text-decoration: none; font: bold 1.38rem Georgia, serif; min-height: 44px; }
.brand img { margin-right: .25rem; }
.brand span { font-weight: normal; }
body:has(.hero) .brand { text-decoration: underline; }
nav, .actions, .game-toolbar, .save-line, .connection, .section-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem;
}
#nav { min-width: 0; max-width: 100%; }
.connection { color: var(--muted); font-size: .92rem; padding-block: .5rem; }
.connection:empty { display: none; }
main { padding-block: clamp(1rem, 3vw, 2.25rem) 2.75rem; }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; line-height: 1.13; font-weight: normal; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.52rem; }
p { margin: .7rem 0 1rem; }
p, h1, h2, h3, li, code, dd, label, button, a, .connection, .save-line { overflow-wrap: anywhere; }
button, .primary {
  display: inline-block; min-width: 44px; max-width: 100%; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--paper); background: var(--cinnabar); font-weight: 650;
  text-decoration: none; cursor: pointer; line-height: 1.35;
}
a.primary { display: inline-flex; max-width: 100%; gap: .6rem; align-items: center; overflow-wrap: anywhere; }
button:hover:not(:disabled), a.primary:hover { background: var(--lacquer); }
button.quiet { color: var(--paper); background: transparent; }
button.quiet:hover:not(:disabled) { background: var(--night); }
button:disabled, button.quiet:disabled { color: var(--ink); background: var(--disabled); border: 1px dashed var(--ink); cursor: default; }
.sandbox { display: inline-block; width: fit-content; padding: .32rem .64rem; border-radius: .3rem; background: var(--teal); color: var(--paper); font-size: .78rem; font-weight: 700; letter-spacing: .025em; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  border: 1px solid var(--line);
  background: var(--night);
  box-shadow: inset 0 0 0 4px var(--teal);
}
.hero-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(1.15rem, 4vw, 3.25rem);
}
.hero h1 { max-width: 12ch; text-wrap: balance; }
.hero p { max-width: 34ch; margin-block: .7rem 1rem; color: var(--muted); }
.hero .sandbox { display: block; margin-top: .75rem; }
.landscape {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 420;
  min-height: 17rem;
  background: var(--teal);
  border-inline-start: 1px solid var(--line);
}
.collection { margin-top: clamp(1.35rem, 3vw, 2.5rem); }
.section-title {
  justify-content: space-between;
  margin-bottom: .85rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
}
.games {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(.85rem, 2vw, 1.4rem);
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px double var(--line);
}
.cover {
  width: 100%;
  max-width: 14rem;
  height: auto;
  aspect-ratio: 320 / 188;
  margin: .7rem auto;
  border: 1px solid var(--line);
  background: var(--lacquer);
}
.card-copy { display: flex; flex-direction: column; flex: 1; min-height: 16rem; padding: 0 1.15rem 1rem; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-inline: -1.15rem; padding: .55rem 1.15rem;
  background: var(--cinnabar); border-block: 1px solid var(--line);
}
.card-head h3 { min-width: 0; }
.card-copy p, .game-heading p, .admin-heading p, .muted { color: var(--muted); }
.favorite {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  padding: .25rem;
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.favorite svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.favorite:hover:not(:disabled), .favorite[aria-pressed="true"] { background: var(--lacquer); }
.favorite[aria-pressed="true"] { box-shadow: inset 0 -2px var(--paper); }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
.play-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; width: fit-content; font-weight: 700; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding-top: .6rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); font-size: .88rem; color: var(--muted); }
.footer a, .game-heading > a, .admin-heading > a { display: inline-flex; align-items: center; min-height: 44px; }
.collection-return { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.game-heading, .admin-heading {
  margin-bottom: 1.25rem; padding: .6rem var(--panel-inset) 0;
  background: var(--cinnabar); border: 1px solid var(--line);
}
.game-heading h1, .admin-heading h1 { margin-block: .4rem .65rem; }
.game-heading .sandbox, .admin-heading .sandbox { margin-inline-start: .5rem; }
.game-heading p, .admin-heading p {
  margin: 0 calc(-1 * var(--panel-inset)); padding: .75rem var(--panel-inset);
  background: var(--panel); border-block-start: 1px solid var(--line);
}
.game-shell, .well { min-width: 0; padding: var(--panel-inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.game-shell {
  max-width: 100%;
  overflow-x: auto;
  background: var(--night);
  border-block-start: 3px double var(--line);
}
.game-toolbar, .save-line { margin-top: .85rem; }
.game-toolbar { padding: .65rem; background: var(--teal); border-block: 1px solid var(--line); }
.save-line { color: var(--muted); min-height: 1.5rem; font-size: .9rem; }
.well > :is(h1, h2):first-child {
  margin: calc(-1 * var(--panel-inset)) calc(-1 * var(--panel-inset)) var(--panel-inset);
  padding: .65rem var(--panel-inset);
  background: var(--cinnabar); border-block-end: 1px solid var(--line);
}
dialog {
  --dialog-top: max(1rem, env(safe-area-inset-top));
  --dialog-right: max(1rem, env(safe-area-inset-right));
  --dialog-bottom: max(1rem, env(safe-area-inset-bottom));
  --dialog-left: max(1rem, env(safe-area-inset-left));
  position: fixed;
  inset: var(--dialog-top) var(--dialog-right) var(--dialog-bottom) var(--dialog-left);
  margin: auto;
  width: 34rem;
  max-width: calc(100% - var(--dialog-left) - var(--dialog-right));
  height: fit-content;
  max-height: calc(100dvh - var(--dialog-top) - var(--dialog-bottom));
  overflow: auto;
  color: var(--paper); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--panel-inset); box-shadow: 0 1.5rem 4rem #102E3280;
}
dialog::backdrop { background: #102E32DD; }
.dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  margin: calc(-1 * var(--panel-inset)) calc(-1 * var(--panel-inset)) .8rem;
  padding: .65rem var(--panel-inset);
  background: var(--cinnabar); border-block-end: 1px solid var(--line);
}
.dialog-head h2 { min-width: 0; align-self: center; }
.form-status, [role="alert"] { color: var(--notice); font-weight: 650; }
.form-status:empty { display: none; }
.game-shell[aria-busy="true"] > [role="status"], #dialog-body[aria-busy="true"] {
  border-inline-start: 2px solid var(--line); padding-inline-start: .65rem;
}
.wallet-summary { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; border-bottom: 1px solid var(--line); padding: .5rem 0 .8rem; }
.wallet-summary dt { font-size: .86rem; color: var(--muted); }
.wallet-summary dd { margin: 0; font: 1.3rem Georgia, serif; }
.products, .records { list-style: none; padding: 0; }
.products li, .records li { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.products small, .records small { display: block; color: var(--muted); }
.ad-scene { margin-block: 1rem; padding: .65rem; border-radius: var(--radius); background: var(--teal); text-align: center; }
.ad-scene svg { width: min(100%, 15rem); margin-inline: auto; fill: var(--line); }
.ad-scene path { fill: none; stroke: var(--muted); stroke-width: 1.5; }
label { display: block; margin: 0 0 .25rem; font-weight: 650; }
input, textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #50666B; opacity: 1; }
input:user-invalid, textarea:user-invalid, select:user-invalid { box-shadow: inset 0 0 0 2px var(--cinnabar); }
textarea { resize: vertical; }
.narrow { max-width: 34rem; }
#admin-content { margin-top: 1rem; display: grid; gap: 1rem; }
.admin-columns, .draft-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.draft-form { margin-top: 1rem; }
.toast { pointer-events: none; position: fixed; inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto; max-width: min(30rem, calc(100% - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)))); z-index: 3; background: var(--lacquer); color: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; overflow-wrap: anywhere; }
.toast:empty { display: none; }
@media (max-width: 44rem) {
  .hero, .admin-columns { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: clamp(.9rem, 4vw, 1.4rem); }
  .hero h1 { max-width: none; font-size: clamp(1.85rem, 7vw, 3rem); }
  .landscape {
    grid-row: 1;
    aspect-ratio: auto;
    height: clamp(9.5rem, 52vw, 19rem);
    min-height: 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 30rem) {
  .draft-form { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding-block: .35rem; gap: .35rem .6rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 32px; height: 32px; margin-right: 0; }
  #nav { gap: .35rem; }
  #nav button { padding-inline: .55rem; font-size: .9rem; }
  .game-shell { padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root { font-family: 'Instrument Sans', system-ui, sans-serif; }
/* Approved Lantern Walk: editable UI over one continuous, text-free craft scene. */
:root { --night: #172326; --teal: #1d2c2d; --panel: #243334; --cinnabar: #9c2b20; --lacquer: #602219; --paper: #fff0d5; --muted: #e2d8c4; --line: #b58b54; --radius: .65rem; }
body { background: var(--night); }
h1,h2,h3,.brand,.walk-play { font-family: 'Instrument Serif', Georgia, serif; }
.masthead { position: relative; z-index: 1; border: 0; background: #172326; }
:root { --topbar-height: 68px; }
.topbar { max-width: 44rem; min-height: var(--topbar-height); flex-wrap: nowrap; padding-inline: max(16px, env(safe-area-inset-left)); }
.brand { flex: 0 0 auto; font-size: 1.65rem; font-weight: 400; letter-spacing: -.04em; gap: .25rem; }
.brand img { width: 28px; height: 28px; }
#nav { flex-wrap: nowrap; gap: .4rem; }
#nav button { min-height: 44px; padding: .45rem .65rem; border-radius: 2rem; border-color: #ad694d; font: 400 .82rem/1.2 'Instrument Sans', system-ui, sans-serif; background: #4b251ed9; }
body:has(.night-walk) .masthead { margin-bottom: calc(-1 * var(--topbar-height)); background: linear-gradient(#142023dd, #14202300); }
body:has(.night-walk) .topbar { padding-bottom: .6rem; }
body:has(.night-walk) #main { padding: 0; max-width: 44rem; }
body:has(.night-walk) .connection:not(:empty) { margin-top: var(--topbar-height); background: #172326; position: relative; z-index: 2; }
body:has(.night-walk) .connection:empty + #main .night-walk { padding-top: var(--topbar-height); }
.night-walk { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; min-width: 0; aspect-ratio: 852 / 1846; min-height: 844px; background: url('/assets/lantern-walk.webp') center top / cover no-repeat, #172326; }
.walk-stations { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; min-height: 776px; grid-template-rows: 1fr 1fr 1fr; }
.walk-station { display: flex; align-items: center; min-height: 252px; padding: 18px 18px 16px; }
.station-copy { width: 54%; min-width: 0; position: relative; }
.station-copy::before { content: ''; position: absolute; z-index: -1; inset: -22px -14px; background: radial-gradient(ellipse, #172326d9 5%, #17232699 47%, transparent 75%); pointer-events: none; }
.walk-station:nth-child(odd) { justify-content: flex-end; }
.walk-station:nth-child(2) { justify-content: flex-start; }
.station-copy h2 { font-size: clamp(1.65rem, 6.2vw, 2.8rem); letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; text-shadow: 0 2px 12px #111e20; }
.station-copy p { font-size: clamp(.88rem, 3.65vw, 1.05rem); line-height: 1.4; margin: .65rem 0 .85rem; color: #fff0d5; max-width: 24ch; text-shadow: 0 1px 6px #111e20; }
.walk-play { min-width: 116px; min-height: 44px; display: inline-flex; gap: 18px; align-items: center; justify-content: center; padding: .35rem 1.2rem; border: 1px solid #e3bc78; border-radius: 100px; background: linear-gradient(165deg, #c3452e, #8a241b 60%, #5c2019); color: #fff0d5; box-shadow: inset 0 1px 2px #ffd79e66, 0 4px 18px #12212466; text-decoration: none; font-size: 1.6rem; line-height: 1.2; transition: filter 150ms, transform 150ms; }
.walk-play:hover { filter: brightness(1.15); transform: translateY(-1px); }
.walk-play:active { transform: translateY(1px); }
.walk-play:focus-visible { outline: 3px solid #fff0d5; outline-offset: 4px; }
.walk-extras { background: var(--night); text-align: center; padding: 1.5rem 1rem 2rem; }
.walk-extras > p { font: italic 1.5rem 'Instrument Serif', Georgia, serif; color: var(--paper); }
.walk-preferences { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.walk-preferences button { font-size: .8rem; border-color: #72807a; }
.walk-empty { padding: 9rem 1.5rem; }
.footer { max-width: 44rem; border-color: #53605b; }
.game-heading,.admin-heading { border: none; background: transparent; }
.game-heading p,.admin-heading p { background: transparent; border: none; }
.game-shell { border: none; background: #152224; padding: .65rem; }
.game-toolbar { background: transparent; border: none; }
dialog { background: #243334; border-color: #9d8059; border-radius: 16px; }
.dialog-head { background: transparent; border-color: #6f6956; }
button,.primary { border-color: #b58b54; }
@media (min-width: 44rem) { .walk-station { padding-inline: 2.5rem; } .station-copy { width: 49%; } }
@media (max-width: 350px) { .brand { font-size: 1.35rem; } .brand img { width: 24px; height: 24px; } #nav button { font-size: .78rem; padding-inline: .4rem; } .topbar { gap: .4rem; padding-inline: 10px; } .walk-station { padding-inline: 14px; min-height: 255px; } .station-copy { width: 57%; } .station-copy h2 { font-size: 1.55rem; } }
@media (prefers-reduced-motion: reduce) { .walk-play { transition: none; } .walk-play:hover,.walk-play:active { transform: none; } }

.walk-unavailable { display: inline-flex; align-items: center; min-height: 44px; color: #fff0d5; background: #172326e8; padding: .45rem .75rem; border-radius: .5rem; font-size: .85rem; }
.more-games { padding: 2rem 1rem; background: var(--night); }
.more-games ul { list-style: none; padding: 0; }
.more-games li { padding-block: 1rem; border-bottom: 1px solid #53605b; }
body:has(.night-walk) .masthead { margin-bottom: calc(-68px - env(safe-area-inset-top)); }
body:has(.night-walk) .connection:empty + #main .night-walk { padding-top: calc(68px + env(safe-area-inset-top)); }
body:has(.night-walk) .connection:not(:empty) { margin-top: calc(68px + env(safe-area-inset-top)); }

/* Selected night-walk material continues into each game room, outside its board. */
main:has(.game-heading) { max-width: 54rem; }
.game-heading {
  --room-crop: 18%;
  position: relative;
  isolation: isolate;
  min-height: 180px;
  padding: .6rem 1.25rem 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  background-image: linear-gradient(90deg, #172326ed, #172326c9 58%, #1723268c), url('/assets/lantern-walk.webp');
  background-size: cover;
  background-position: center, center var(--room-crop);
}
main:has(.ec-lantern-garden) .game-heading { --room-crop: 17%; }
main:has(.ec-ink-sort) .game-heading { --room-crop: 51%; }
main:has(.ec-silk-blocks) .game-heading { --room-crop: 88%; }
.game-heading > a { min-height: 44px; font-size: .9rem; color: #fff0d5; }
.game-heading .sandbox { background: #172326dc; color: #fff0d5; font-weight: 500; }
.game-heading h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.08; margin-block: .25rem .5rem; color: #fff0d5; }
.game-heading p { max-width: 46ch; margin: 0; padding: 0; font-size: .9rem; line-height: 1.5; color: #fff0d5; background: transparent; }
@media (max-width: 350px) { .game-heading { padding-inline: 1rem; } }

/* Game rooms use the same lacquer hardware without surrounding every surface. */
main:has(.game-heading) .game-shell { padding: 0; background: transparent; }
main:has(.game-heading) .game-heading { box-shadow: inset 0 -1px #b58b5455; }
main:has(.game-heading) .game-toolbar { max-width: 36rem; margin-inline: auto; padding-inline: 0; gap: .5rem; }
main:has(.game-heading) .game-toolbar button { border-color: #8b7752; border-radius: 100px; font-size: .85rem; color: #f5e4c6; background: #24312d; }
main:has(.game-heading) .game-toolbar button:hover:not(:disabled) { background: #3e3a2c; }
main:has(.game-heading) .game-toolbar button:disabled { background: #343c37; color: #c5c3b0; border-style: dashed; }
main:has(.game-heading) .save-line { max-width: 36rem; margin-inline: auto; padding-inline: .25rem; color: #cfc7af; }

/* Let navigation use its own row before squeezing whole words. */
#nav > button, #nav > a { flex-shrink: 0; overflow-wrap: normal; word-break: normal; }
#nav > button { white-space: nowrap; }
#nav > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 30rem) {
  :root { --topbar-height: 112px; }
  .topbar {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: 8px; padding-block: 8px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .topbar .brand { align-self: flex-start; min-height: 44px; }
  #nav { display: grid; grid-template-columns: auto auto minmax(0, 1fr); width: 100%; gap: 6px; }
  #nav > button, #nav > a { min-width: 44px; min-height: 44px; margin: 0; font-size: .82rem; line-height: 1.2; }
  #nav > button { padding-inline: 10px; }
  #nav > a { justify-content: center; text-align: center; padding: 4px; white-space: normal; }
  body:has(.night-walk) .topbar { padding-bottom: 8px; }
}

/* L5 preview uses shape and labelled coordinates, not colour alone. */
.ec-game .ec-placement-preview{outline:3px dashed #8b2e25;outline-offset:-5px;background-image:repeating-linear-gradient(45deg,transparent 0 5px,#8b2e2533 5px 8px)}
.ec-game .ec-clear-preview{box-shadow:inset 0 0 0 3px #275d62}
.ec-placement-panel{padding:16px;border:1px solid #c5a66e;background:#233833;color:#f3e4c9;border-radius:8px;max-width:100%;overflow-wrap:anywhere}
.ec-placement-panel p{font-size:.9rem;line-height:1.5}.ec-placement-panel button{min-height:44px;margin:4px;max-width:100%}

.ec-weave-help summary{min-height:44px;display:list-item;cursor:pointer;padding:12px 0;color:#e7c78f}.ec-preview-selected{font-weight:600}.ec-preview-lines,.ec-preview-after{margin-block:8px}.ec-preview-ready{color:#ecd399;font-weight:600}.ec-weave-remaining{margin:8px 0;padding-inline-start:20px;overflow-wrap:anywhere}.ec-stuck h3{font-size:1rem;line-height:1.4}.ec-weave-help p{max-width:45ch}

/* Rooms keep their scene identity without a second introduction card. */
main:has(.game-heading) .game-heading{padding:8px 12px;min-height:0;margin-bottom:8px;border-radius:8px;background-size:cover}
main:has(.game-heading) .game-heading h1{font-size:1.5rem;margin:4px 0}main:has(.game-heading) .game-heading p{display:none}
.ec-host-tools .game-toolbar{margin:4px 0;padding:4px;display:flex;flex-wrap:wrap;gap:6px}.ec-host-tools .game-toolbar[hidden]{display:none}
@media(max-width:480px){main:has(.game-heading){width:100%;max-width:none;padding-inline:0}.craft-album:has(.album-practice-game){margin-inline:-16px}.album-practice-bar{padding-inline:12px}main:has(.game-heading) .game-heading{margin-inline:4px}.game-shell{padding:0;margin:0;border:0}.game-shell>.ec-game{max-width:none}.game-toolbar button,.game-toolbar a{min-height:44px}.save-line{padding-inline:8px}}
.game-shell .ec-game .ec-title{display:none}

.package-heading { max-width:52rem; margin:1rem auto; padding:0 1rem; }
#package-shell {max-width:52rem;margin:auto;padding:0 .5rem;}
.package-frame {display:block;width:100%;height: min(780px, 82dvh);min-height:530px;border:1px solid #b89b60;border-radius:16px;background:#fff5df;}
#package-shell > p {font-size:.85rem;color:#f5ce86;}
/* Independent games report their intrinsic content height; legacy packages retain the fallback. */
.package-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;min-height:44px;flex-wrap:wrap}
.package-heading h1{font-size:1.05rem;margin:0;flex:1;text-align:center;overflow-wrap:normal;word-break:normal}
.package-heading a{display:inline-flex;align-items:center;min-height:44px;font-size:.85rem}
.package-art-thumbnail{display:block;width:100%;height:130px;object-fit:contain}
.package-art-finished{display:block;width:100%;max-height:480px;object-fit:contain}
@media(max-width:480px){.package-heading{gap:8px;margin-bottom:4px}.package-heading h1{font-size:.9rem}.package-heading a{font-size:.75rem}.package-frame{border-radius:10px}}
