:root{--background:#030205;--surface:#171926;--surface-alt:#572878;--text:#FEFEFA;--text-muted:#EEE6DE;--accent:#DAB864;--accent-text:#030205;--user-bubble:#572878;--border:#83539B;--focus:#AC79C3;--font-heading:'Cormorant Garamond', Georgia, 'Times New Roman', serif;--font-body:Inter, 'Nunito Sans', Aptos, system-ui, -apple-system, 'Segoe UI', sans-serif;color-scheme:dark}
:root{--dash-cta:#572878;--dash-cta-text:#FEFEFA;--dash-highlight:#DAB864;--dash-tile:#171926;--dash-nav-muted:#AC79C3}
:root{--button:#572878;--button-text:#FEFEFA}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2')}
/* Layout and components. Brand colours and fonts come from the product's
   theme in product.json, written as CSS variables at the top of the built file. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; }
a { color: var(--accent); text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--button, var(--accent)); color: var(--button-text, var(--accent-text)); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.brand { margin: 0; font-size: 1.2rem; }
.icon-button {
  min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer;
}

main { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 720px; margin: 0 auto; }
.panel { padding: 24px 16px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.status { margin: 8px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--border); }
.status[data-kind="error"] { border-color: var(--focus); }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 48px;
}
button { font: inherit; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  margin-top: 14px; border-radius: 999px; border: 0; background: var(--button, var(--accent)); color: var(--button-text, var(--accent-text));
  font-weight: 600; cursor: pointer;
}
.primary:disabled { opacity: 0.6; cursor: progress; }
.link-button { background: none; border: 0; color: var(--accent); text-decoration: underline; padding: 12px 0; min-height: 44px; cursor: pointer; }

/* Chat */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.log { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.bubble p { margin: 0 0 0.6em; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 0.2em 0 0.6em; padding-left: 1.3em; }
.msg-user .bubble { background: var(--user-bubble); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg-assistant .bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg-notice .bubble { background: var(--surface-alt); border: 1px dashed var(--accent); }
.thinking { color: var(--text-muted); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.starters { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.welcome { margin: 0 0 4px; color: var(--text-muted); }
.starter {
  text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.starter:hover { border-color: var(--accent); }

.composer {
  position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--background);
  border-top: 1px solid var(--border);
}
.composer textarea { flex: 1 1 200px; resize: none; max-height: 40dvh; field-sizing: content; }
.send { margin-top: 0; }
.counter { width: 100%; order: 3; font-size: 0.85rem; color: var(--text-muted); }

/* Menu */
dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px 20px;
  background: var(--surface); color: var(--text);
}
dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-head h2 { margin: 0; }
dialog > button, .menu-link {
  display: block; width: 100%; text-align: left; margin-top: 10px; min-height: 48px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
  text-decoration: none; line-height: 1.6;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0 6px; }
.note { min-height: 1.5em; margin: 12px 0 0; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Consent */
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.check input { width: 24px; min-height: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check label { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Dashboard (only for products whose product.json has a "dashboard" block;
   the body then has class "has-dashboard"). Phone first; sidebar from 900px.
   --------------------------------------------------------------------------- */
.has-dashboard[data-screen="dashboard"] .top { display: none; }
.home-button { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; font-size: 0.95rem; }
.home-button svg { width: 20px; height: 20px; }
.has-dashboard .icon-button { min-width: 48px; min-height: 48px; }

.dash { display: grid; grid-template-areas: "hero" "ritual" "open" "title" "tiles"; gap: 14px; padding: 0 0 calc(88px + env(safe-area-inset-bottom)); }
.dash-hero { grid-area: hero; position: relative; min-height: 250px; overflow: hidden; background: var(--accent); color: var(--accent-text); }
.dash-hero picture, .dash-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dash-hero-img { object-fit: cover; object-position: center 70%; }
.dash-hero-text { position: relative; padding: 18px 20px 72px; background: linear-gradient(180deg, rgb(7 31 64 / 0.78) 0%, rgb(7 31 64 / 0.35) 70%, rgb(7 31 64 / 0) 100%); }
.dash-logo { display: block; width: 56px; height: 56px; margin-bottom: 14px; }
.dash-hero h2 { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.9rem; color: #FFFFFF; }
.dash-tagline { margin: 6px 0 0; max-width: 22em; font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: #FFFFFF; }

.dash-ritual { grid-area: ritual; margin: 0 16px; padding: 14px 12px 12px; border-radius: 14px; background: var(--accent); color: var(--accent-text); }
.dash-ritual h3 { margin: 0 4px 10px; font-size: 1rem; color: var(--accent-text); }
.dash-ritual ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ritual-step { width: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--accent-text); cursor: pointer; font-size: 0.78rem; line-height: 1.2; text-align: center; }
.ritual-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--dash-highlight); color: var(--dash-highlight); }
.ritual-step:hover .ritual-icon { background: rgb(251 201 119 / 0.15); }
.dash-ritual .ritual-step:focus-visible { outline-color: var(--dash-highlight); }

.dash-open-wrap { grid-area: open; margin: 0 16px; }
.dash-open { width: 100%; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--dash-cta); color: var(--dash-cta-text); font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.dash-open:hover { filter: brightness(1.05); }

.dash-tiles-title { grid-area: title; margin: 6px 16px 0; font-size: 1.15rem; }
.dash-tiles { grid-area: tiles; list-style: none; margin: 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-tile { width: 100%; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; border: 1px solid rgb(45 53 68 / 0.14); border-radius: 14px; background: var(--dash-tile); color: var(--text); box-shadow: 0 1px 3px rgb(7 31 64 / 0.08); cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; text-align: center; }
.dash-tile img { width: 72px; height: 48px; object-fit: contain; }
.dash-tile:hover { border-color: var(--accent); }

/* App navigation: bottom bar on phones (dashboard only), sidebar on wide screens. */
.appnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--dash-tile); border-top: 1px solid rgb(45 53 68 / 0.14); padding-bottom: env(safe-area-inset-bottom); }
.appnav[hidden] { display: none; }
.appnav-logo { display: none; }
.appnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.appnav-item { width: 100%; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--text); font-size: 0.8rem; cursor: pointer; }
.appnav-item[aria-current="page"] { color: var(--accent); font-weight: 600; }
.appnav-item[aria-current="page"] svg { color: #B57F1E; }
.has-dashboard[data-screen="chat"] .appnav, .has-dashboard[data-screen="install"] .appnav { display: none; }

@media (min-width: 900px) {
  .has-dashboard { padding-left: 232px; }
  .has-dashboard .appnav, .has-dashboard[data-screen="chat"] .appnav, .has-dashboard[data-screen="install"] .appnav { display: block; top: 0; right: auto; width: 232px; border-top: 0; background: var(--accent); color: var(--accent-text); padding: 22px 14px; }
  .has-dashboard .appnav[hidden] { display: none; }
  .appnav-logo { display: block; width: 96px; height: 96px; margin: 0 auto 26px; }
  .appnav ul { display: flex; flex-direction: column; gap: 4px; }
  .appnav-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--accent-text); font-size: 0.98rem; }
  .appnav-item[aria-current="page"] { color: var(--dash-highlight); background: rgb(251 201 119 / 0.12); }
  .appnav-item[aria-current="page"] svg { color: var(--dash-highlight); }
  .appnav-item:focus-visible { outline-color: var(--dash-highlight); }
  .has-dashboard[data-screen="chat"] .home-button { display: none; }
  .has-dashboard[data-screen="dashboard"] main { max-width: 1040px; }
  .dash { grid-template-areas: "hero hero hero" "ritual ritual ritual" "title title title" "tiles tiles tiles"; padding: 20px 24px 32px; gap: 18px; }
  .dash-hero { min-height: 190px; border-radius: 0 0 16px 16px; margin: -20px -24px 0; display: flex; align-items: center; }
  .dash-hero-img { object-position: center 75%; }
  .dash-hero-text { padding: 28px 36px; background: linear-gradient(90deg, rgb(7 31 64 / 0.75) 0%, rgb(7 31 64 / 0.25) 60%, rgb(7 31 64 / 0) 100%); flex: 1; }
  .dash-logo { display: none; }
  .dash-hero h2 { font-size: 2.4rem; }
  .dash-open-wrap { grid-area: hero; align-self: center; justify-self: end; margin: 0 36px 0 0; position: relative; z-index: 1; }
  .dash-open { width: auto; }
  .dash-ritual { margin: 0; display: grid; grid-template-columns: 200px 1fr; align-items: center; padding: 16px 20px; }
  .dash-ritual h3 { margin: 0; font-size: 1.15rem; }
  .ritual-step { font-size: 0.85rem; }
  .dash-tiles-title, .dash-tiles { margin-left: 0; margin-right: 0; }
  .dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .dash-tile { min-height: 140px; font-size: 1.05rem; }
  .dash-tile img { width: 96px; height: 64px; }
}
@media (max-width: 380px) {
  .ritual-step { font-size: 0.72rem; }
  .ritual-icon { width: 36px; height: 36px; }
}

/* ---------------------------------------------------------------------------
   Deck layout (dashboard.layout "deck"): dark home screen with six card tiles,
   the card flip and Saved cards. Body classes "has-dashboard layout-deck".
   Gold (--dash-highlight) is used for text and hairlines only, never a button fill.
   --------------------------------------------------------------------------- */
.layout-deck h1, .layout-deck h2, .layout-deck h3 { font-weight: 500; }
.layout-deck[data-screen="dashboard"] .top, .layout-deck[data-screen="pull"] .top, .layout-deck[data-screen="saved"] .top { display: none; }
.layout-deck .appnav { background: var(--dash-tile); border-top: 1px solid rgb(218 184 100 / 0.35); }
.layout-deck .appnav ul { grid-template-columns: repeat(4, 1fr); }
.layout-deck .appnav-item { color: var(--dash-nav-muted); min-height: 64px; font-size: 0.8rem; }
.layout-deck .appnav-item[aria-current="page"], .layout-deck .appnav-item[aria-current="page"] svg { color: var(--dash-highlight); font-weight: 600; }
.layout-deck .appnav-item:focus-visible { outline-color: var(--focus); outline-offset: -3px; }
.layout-deck[data-screen="pull"] .appnav, .layout-deck[data-screen="saved"] .appnav { display: block; }

.deck-dash, .deck-page { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.deck-logo { display: block; width: 64px; height: 64px; margin: 4px auto 10px; }
.deck-head h2 { margin: 0; font-size: 2.1rem; line-height: 1.1; color: var(--text); }
.deck-subline { margin: 6px 0 0; font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: var(--dash-highlight); }
.deck-open { width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--dash-cta); color: var(--dash-cta-text); font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.deck-open:hover { filter: brightness(1.15); }
.deck-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deck-tile { width: 100%; min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px 12px; border: 1px solid rgb(218 184 100 / 0.45); border-radius: 12px; background: var(--dash-tile); color: var(--text); cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; line-height: 1.15; text-align: center; }
.deck-tile img { width: 72px; height: 100px; object-fit: contain; }
.deck-tile:hover { border-color: var(--dash-highlight); }
.deck-later { margin: 16px 0 0; padding: 10px 14px; border: 1px solid rgb(218 184 100 / 0.35); border-radius: 10px; text-align: center; font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: var(--dash-highlight); }

.deck-page-title { margin: 8px 0 4px; font-size: 2rem; color: var(--text); }
.deck-page-title:focus { outline: none; }
.deck-page-title:focus-visible { outline: 3px solid var(--focus); }
.deck-page-intro { margin: 0 0 16px; color: var(--text-muted); }
.secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; margin-top: 14px; border-radius: 999px; border: 1px solid var(--dash-highlight); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; }
.secondary:disabled { border-color: var(--border); color: var(--text-muted); cursor: default; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0 10px; }

/* The card flip. 432x600 artwork, black with a gold hairline. */
.flip-stage { display: flex; justify-content: center; perspective: 1400px; }
.flip-card { position: relative; width: min(72vw, 288px); aspect-ratio: 432 / 600; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; }
.flip-card[aria-disabled="true"] { cursor: default; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; }
.flip-face img { width: 100%; height: 100%; object-fit: contain; display: block; }
.flip-front { transform: rotateY(180deg); }
.text-face { display: none; }
.no-art img { display: none; }
.no-art .text-face { position: absolute; inset: 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; border: 1px solid var(--dash-highlight); border-radius: 12px; background: #030205; color: var(--dash-highlight); text-align: center; font-family: var(--font-heading); font-size: 1.6rem; }
.no-art .text-face-msg { font-size: 1.05rem; font-style: italic; color: var(--text); }
.flip-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.pull-result { max-width: 34rem; margin: 18px auto 0; text-align: center; }
.pull-result .card-actions { justify-content: center; }
.card-name { margin: 0; font-size: 1.9rem; color: var(--dash-highlight); }
.card-name:focus { outline: none; }
.card-message { margin: 8px 0 0; font-size: 1.05rem; }
.pull-limit { margin-top: 18px; padding: 14px 16px; border: 1px solid rgb(218 184 100 / 0.45); border-radius: 12px; background: var(--dash-tile); }
.pull-limit p { margin: 0; }

/* Saved cards: faces with name and message. No dates, no counts. */
.saved-empty { margin: 8px 0; padding: 16px; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-muted); }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.saved-card { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto auto 1fr; gap: 0 14px; padding: 12px; border: 1px solid rgb(218 184 100 / 0.45); border-radius: 12px; background: var(--dash-tile); }
.saved-face { grid-row: 1 / 4; position: relative; aspect-ratio: 432 / 600; align-self: start; }
.saved-face img { width: 100%; height: 100%; object-fit: contain; display: block; }
.saved-face.no-art .text-face { position: absolute; inset: 4%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--dash-highlight); border-radius: 10px; color: var(--dash-highlight); font-family: var(--font-heading); font-size: 1.2rem; }
.saved-card .card-name { margin: 0; font-size: 1.5rem; }
.saved-card .card-message { margin-top: 4px; font-size: 0.95rem; }
.saved-card .card-actions { gap: 0 8px; align-self: end; }
.saved-card .card-actions button { margin-top: 10px; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) {
  /* Cross-fade instead of the turn. */
  .flip-inner, .flip-card.flipped .flip-inner { transform: none !important; }
  .flip-front { transform: none; opacity: 0; }
  .flip-face { transition: opacity 0.35s ease !important; }
  .flip-card.flipped .flip-front { opacity: 1; }
  .flip-card.flipped .flip-back { opacity: 0; }
}

@media (min-width: 900px) {
  .layout-deck .appnav, .layout-deck[data-screen="chat"] .appnav, .layout-deck[data-screen="install"] .appnav, .layout-deck[data-screen="pull"] .appnav, .layout-deck[data-screen="saved"] .appnav { background: var(--dash-tile); color: var(--dash-nav-muted); border-right: 1px solid rgb(218 184 100 / 0.25); }
  .layout-deck .appnav-item { color: var(--dash-nav-muted); min-height: 48px; font-size: 1rem; }
  .layout-deck .appnav-item[aria-current="page"] { color: var(--dash-highlight); background: rgb(218 184 100 / 0.08); }
  .layout-deck[data-screen="dashboard"] main, .layout-deck[data-screen="saved"] main, .layout-deck[data-screen="pull"] main { max-width: 1040px; }
  .deck-dash, .deck-page { padding: 32px 40px 40px; }
  .deck-logo { display: none; }
  .deck-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .deck-head h2 { font-size: 3rem; }
  .deck-open { width: auto; min-width: 220px; margin-top: 0; }
  .deck-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
  .deck-tile { min-height: 230px; font-size: 1.4rem; }
  .deck-tile img { width: 104px; height: 144px; }
  .saved-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 16px; }
  .saved-card { display: flex; flex-direction: column; }
  .saved-card .card-name { margin-top: 10px; }
  .saved-card .card-message { flex: 1; }
  .saved-card .card-actions { flex-direction: column; }
  .saved-card .card-actions button { width: 100%; }
  .flip-card { width: 300px; }
}
@media (max-width: 380px) {
  .deck-head h2 { font-size: 1.85rem; }
  .deck-tile { min-height: 156px; font-size: 1.15rem; }
}
