/* ゾンビ・ビストロ / Zombie Bistro — UI スタイル
 * 暗い緑・紫・クリーム・ネオン黄緑の「食堂ゲーム」クロム（ART_DIRECTION）
 * ※原作UIの複製・トレースはしない
 */
:root {
  --bg: #1a2216;
  --panel: #2a3424;
  --panel2: #34402c;
  --line: rgba(245, 230, 190, 0.22);
  --text: #f3ecda;
  --muted: #b0a888;
  --accent: #9dff6b;
  --accent2: #c39cff;
  --warn: #ffd166;
  --danger: #ff8a7a;
  --cream: #f5ecd4;
  --wood: #8a6238;
  --wood-dark: #4a3420;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(157, 255, 107, 0.14), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(195, 156, 255, 0.12), transparent 48%),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.06) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(180deg, #24301e 0%, var(--bg) 42%, #141a12 100%);
  padding:
    max(0.5rem, env(safe-area-inset-top))
    max(0.5rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
}

/* margin:auto で縦中央に寄せる。中央寄せに align-items を使うと、
   画面より高いときに上端が切れてスクロールできなくなるため。 */
#app {
  width: 100%;
  margin: auto 0;
  display: flex;
  justify-content: center;
}

#frame {
  position: relative;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ------------------------------- HUD ------------------------------- */

#hud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.chip {
  background: linear-gradient(180deg, #354530, var(--panel));
  border: 2px solid rgba(245, 230, 190, 0.28);
  border-radius: 12px;
  padding: 0.32rem 0.45rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 2px 0 var(--wood-dark);
}

.chip-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.chip b {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-money b { color: var(--accent); }

.bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 0.15rem;
}

.bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--warn);
  transition: width 0.25s linear;
}

.bar-rep span { background: var(--accent2); }
.bar-shop span { background: linear-gradient(90deg, #ffd166, #e8a838); }

.chip-shop .chip-sub {
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.1;
  margin-top: -0.05rem;
}

/* ラストオーダー中は残り時間チップを目立たせる */
.chip.is-last {
  border-color: rgba(255, 209, 102, 0.6);
  animation: last-order 1s ease-in-out infinite;
}

.chip.is-last b { color: var(--warn); font-size: 0.72rem; }

@keyframes last-order {
  0%, 100% { background: var(--panel); }
  50% { background: rgba(255, 209, 102, 0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .chip.is-last { animation: none; }
}

/* ------------------------------ 盤面＋サイドメニュー ---------------- */

.play-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.4rem;
  align-items: stretch;
}

#app:not(.is-playing) .side-menu {
  visibility: hidden;
  pointer-events: none;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.side-icon {
  appearance: none;
  font-family: inherit;
  width: 52px;
  min-height: 52px;
  padding: 0.28rem 0.15rem 0.2rem;
  border-radius: 14px;
  border: 2px solid rgba(245, 230, 190, 0.35);
  background: linear-gradient(180deg, #3a4a30, var(--panel));
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--wood-dark);
}

.side-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.side-icon span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1;
}

.side-icon:hover,
.side-icon:focus-visible {
  border-color: rgba(157, 255, 107, 0.45);
  outline: none;
}

.side-icon:active {
  transform: translateY(1px);
  box-shadow: none;
}

#stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--wood);
  box-shadow:
    0 0 0 2px var(--wood-dark),
    0 16px 36px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 240, 200, 0.12);
  background: #1a2214;
  min-width: 0;
}

#board {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  touch-action: manipulation;
  cursor: pointer;
}

/* ------------------------------ トースト --------------------------- */

#toasts {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
  width: min(94%, 460px);
}

.toast {
  background: rgba(32, 40, 26, 0.94);
  border: 2px solid rgba(245, 230, 190, 0.28);
  border-left: 4px solid var(--accent2);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 100%;
  box-shadow: 0 4px 0 var(--wood-dark);
}

.toast-good { border-left-color: var(--accent); }
.toast-bad { border-left-color: var(--danger); }
.toast.is-out { opacity: 0; transform: translateY(-6px); }

/* ---------------------------- 店員パネル --------------------------- */

.crew {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.crew-card {
  appearance: none;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, #354830, var(--panel));
  border: 2px solid rgba(245, 230, 190, 0.28);
  border-radius: 12px;
  padding: 0.35rem 0.45rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--wood-dark);
}

.crew-body {
  display: flex;
  flex-direction: column;
  /* button の UA 既定は align-items:flex-start のため、明示しないとバーが潰れる */
  align-items: stretch;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
}

.crew-face {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  object-fit: cover;
}

.crew-card:active { transform: translateY(1px); }
.crew-card.is-resting { border-color: rgba(255, 180, 84, 0.55); }
.crew-card.is-resting .crew-face { filter: saturate(0.5) brightness(0.85); }
.crew-card.is-boosted { border-color: rgba(157, 255, 107, 0.6); }
.crew-card.is-boosted .crew-face { box-shadow: 0 0 0 2px rgba(157, 255, 107, 0.45); }

.crew-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
  min-width: 0;
}

.crew-name {
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crew-lv { font-size: 0.68rem; color: var(--accent2); flex: none; }
.crew-role {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.crew-state {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crew-card.is-resting .crew-state { color: var(--warn); }

.crew-bar {
  display: block;
  margin-top: 0.15rem;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.crew-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.crew-card.is-resting .crew-bar i { background: var(--warn); }

.crew-card.is-empty {
  opacity: 0.42;
  border-style: dashed;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  cursor: default;
}

/* ------------------------------ レシピ帳 --------------------------- */

.recipe-book {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.45rem;
  margin: 0.6rem 0 0.75rem;
  max-height: min(42vh, 280px);
  overflow: auto;
  padding: 0.1rem;
}

.recipe-icon {
  appearance: none;
  font-family: inherit;
  border: 1px solid var(--line);
  background: #1a2228;
  border-radius: 12px;
  padding: 0.35rem 0.2rem 0.3rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-height: 86px;
}

.recipe-icon canvas {
  width: 56px;
  height: 44px;
  display: block;
}

.recipe-icon span {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--muted);
}

.recipe-icon.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(157, 255, 107, 0.35);
}

.recipe-icon.is-locked {
  opacity: 0.55;
}

.recipe-icon.is-locked span { color: #6a7380; }

.recipe-detail {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}

.recipe-detail canvas {
  flex: none;
  width: 72px;
  height: 56px;
  background: #151b20;
  border-radius: 8px;
}

.recipe-detail-body { min-width: 0; flex: 1; }

.recipe-detail h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.recipe-detail-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ------------------------------ 免責 ------------------------------- */

.legal {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.5;
  padding-bottom: 0.4rem;
}

/* ---------------------------- オーバーレイ -------------------------- */

#overlay {
  position: absolute;
  inset: -0.4rem;
  border-radius: 16px;
  background: rgba(12, 16, 10, 0.9);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 0.6rem;
}

#overlay[hidden] { display: none; }

.screen {
  width: min(430px, 100%);
  background:
    linear-gradient(180deg, rgba(58, 72, 48, 0.98), rgba(36, 46, 32, 0.98));
  border: 3px solid var(--wood);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow:
    0 0 0 2px var(--wood-dark),
    0 18px 50px rgba(0, 0, 0, 0.55);
  max-height: 100%;
  overflow-y: auto;
}

.screen[hidden] { display: none; }

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-align: center;
}

.screen h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  letter-spacing: 0.05em;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--cream);
}

.screen h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.sub {
  margin: 0.3rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.tagline {
  margin: 0.5rem 0 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream);
}

.btn-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

/* 一覧が長い画面でも決定ボタンが常に見えるようにする */
.screen .btn-col {
  position: sticky;
  bottom: -0.15rem;
  padding: 0.7rem 0 0.15rem;
  margin-top: 0.6rem;
  background: linear-gradient(180deg, rgba(36, 46, 32, 0), rgba(36, 46, 32, 0.98) 30%);
}

.btn {
  appearance: none;
  border: 2px solid rgba(245, 230, 190, 0.28);
  background: linear-gradient(180deg, #3a4a30, var(--panel));
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.72rem 0.6rem;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 3px 0 var(--wood-dark);
}

.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--wood-dark); }

.btn-primary {
  background: linear-gradient(180deg, #b8ff7a, #7ad84a);
  color: #1a2410;
  border-color: rgba(255, 255, 220, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { color: var(--danger); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------- 進行データの注記と書出／読込 --------------------- */

.save-tools {
  margin-top: 0.9rem;
  padding: 0.6rem 0.65rem 0.55rem;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.save-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.save-note b { color: var(--text); }
.save-note.is-warn { color: var(--danger); }

.save-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.btn-mini {
  flex: 1 1 0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.5rem 0.35rem;
  min-height: 38px;
  border-radius: 9px;
  color: var(--muted);
}

.legal-inline {
  margin: 0.9rem 0 0;
  font-size: 0.66rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ------------------------------ 来客メモ ------------------------------ */

.guests-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.45rem 0 0.15rem;
}

.guests-filter {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  cursor: pointer;
}

.guests-filter.is-on {
  color: var(--text);
  border-color: rgba(157, 255, 107, 0.45);
  background: rgba(157, 255, 107, 0.12);
}

/* 200 枠でも閉じるボタンが届くよう、一覧だけ内側スクロール */
.guests-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  max-height: min(48vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.guest-row.is-slot { opacity: 0.55; }

.guest-lineage {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.06rem 0.3rem;
  border-radius: 6px;
  background: rgba(207, 232, 207, 0.12);
  color: var(--muted);
}

.guest-badge.is-slot {
  background: rgba(207, 232, 207, 0.1);
  color: var(--muted);
}

.guest-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.guest-row.is-locked { opacity: 0.72; }
.guest-row.is-unlocked { border-color: rgba(195, 156, 255, 0.45); }
.guest-row.is-seen { border-color: rgba(157, 255, 107, 0.35); }

.guest-thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 22, 17, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 232, 207, 0.18);
}

.guest-thumb img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: none;
}

/* 解禁済・未来店: 形だけ見える黒い影（図鑑の「未発見」感）
   顔寄りクロップだと帽子・小物の差が消えるので、全身を収めて輪郭差を出す */
.guest-thumb.is-silhouette {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(157, 255, 107, 0.08), transparent 70%),
    rgba(8, 10, 9, 0.95);
  border-color: rgba(195, 156, 255, 0.35);
}

.guest-thumb.is-silhouette img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: 50% 55%;
  filter: brightness(0) opacity(0.82);
  transform: none;
}

.guest-thumb.is-mystery {
  background: repeating-linear-gradient(
    -45deg,
    rgba(30, 36, 32, 0.95),
    rgba(30, 36, 32, 0.95) 6px,
    rgba(50, 58, 52, 0.95) 6px,
    rgba(50, 58, 52, 0.95) 12px
  );
}

.guest-q {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--muted);
}

.guest-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.guest-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.guest-badge {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(157, 255, 107, 0.18);
  color: var(--accent);
}

.guest-badge.is-new {
  background: rgba(195, 156, 255, 0.22);
  color: var(--accent2);
}

.guest-trait {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.02em;
}

.guest-blurb {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------- あそびかた ---------------------------- */

.help-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text);
}

.help-steps b { color: var(--accent); }

.help-note {
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
}

.help-recipes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-recipes li {
  border-bottom: 1px dashed var(--line);
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.help-recipes b { font-size: 0.84rem; color: var(--cream); }
.help-recipes span { font-size: 0.72rem; color: var(--muted); }

/* ------------------------------ 仕込み ------------------------------ */

.shop-head {
  position: sticky;
  top: -0.2rem;
  z-index: 1;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0 0.45rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(25, 31, 37, 0.97);
}

.shop-head b { color: var(--accent); font-size: 1rem; }

.shop-list { display: flex; flex-direction: column; gap: 0.35rem; }

.shop-group {
  margin: 0.6rem 0 0.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.shop-item {
  appearance: none;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.6rem 0.7rem;
  color: var(--text);
  cursor: pointer;
  min-height: 52px;
}

.shop-item-icon {
  flex: none;
  width: 44px;
  height: 36px;
  border-radius: 6px;
  background: #151b20;
}

.shop-item:active { transform: translateY(1px); }

.shop-item-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.shop-item-main strong { font-size: 0.86rem; }
.shop-item-main small { font-size: 0.7rem; color: var(--muted); line-height: 1.4; }

.shop-price {
  flex: none;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
}

.shop-item.is-locked { opacity: 0.5; cursor: not-allowed; }
.shop-item.is-locked .shop-price { color: var(--danger); }

.shop-empty, .shop-note {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------- 日報 ------------------------------- */

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0.1rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}

.report-list li span { color: var(--muted); }
.report-list li b { color: var(--cream); }

.report-levels {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--accent2);
  text-align: center;
  white-space: pre-line;   /* 新顔と昇格を 1 行ずつ */
  line-height: 1.6;
}

/* ------------------------------ 画面幅 ------------------------------ */

@media (max-width: 560px) {
  #hud { grid-template-columns: repeat(3, 1fr); }
  .chip b { font-size: 0.78rem; }
}

/* 3 列に名前と顔は入りきらないので、狭い画面では顔で見分けてもらう */
@media (max-width: 460px) {
  .crew-name { display: none; }
  .crew-head { justify-content: flex-start; }
  .crew-face { width: 34px; height: 34px; }
  .crew-card.is-faceless .crew-name { display: block; }
  .crew-card.is-faceless .crew-head { justify-content: space-between; }
}

@media (max-width: 360px) {
  .chip-label { font-size: 0.58rem; }
  .chip b { font-size: 0.72rem; }
}

@media (min-height: 900px) and (min-width: 700px) {
  body { align-items: center; }
}
