/* Four user-supplied illustrations. All faces keep their original 2:3 proportions. */
[data-dinner-art-card] {
  --dinner-art-ink: #244f50;
  --dinner-art-muted: #526a67;
  box-sizing: border-box;
  position: relative;
  width: min(100%, 360px) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 3 !important;
  margin-inline: auto !important;
  border: 0;
  border-radius: 12px;
  container-type: inline-size;
}
[data-dinner-art-card="identity"] :is(.dinner-reveal-card-inner, .web-dinner-reveal-card-inner) {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 12px;
  box-shadow: 0 12px 30px -18px #244f504d;
}
[data-dinner-art-card] [data-dinner-card-art] {
  box-sizing: border-box;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  background-color: #faf4e7;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  overflow: hidden !important;
  color: var(--dinner-art-ink);
}
[data-dinner-art-card] [data-dinner-card-art]::before,
[data-dinner-art-card] [data-dinner-card-art]::after {
  display: none !important;
  content: none !important;
}
[data-dinner-art-card] [data-dinner-card-art="identity-back"] {
  background-image: url('./dinner-card-art/identity-back-20261016.webp') !important;
}
[data-dinner-art-card] [data-dinner-card-art="topic-back"] {
  background-image: url('./dinner-card-art/topic-back-20261016.webp') !important;
}
[data-dinner-art-card] [data-dinner-card-art="identity-front"] {
  background-image: url('./dinner-card-art/identity-front-20261016.webp') !important;
}
[data-dinner-art-card] [data-dinner-card-art="topic-front"] {
  background-image: url('./dinner-card-art/topic-front-20261016.webp') !important;
}
/* The original back artwork already contains its question mark and frame. */
[data-dinner-art-card] [data-dinner-card-art$="-back"] > * {
  display: none !important;
}
[data-dinner-art-card] [data-dinner-card-art] > .dinner-card-art-copy {
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  inset: 22% 11% 28%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #70a7a3 transparent;
  color: var(--dinner-art-ink);
  font-family: inherit;
  text-align: center;
  overflow-wrap: anywhere;
}
[data-dinner-art-card] [data-dinner-card-art="topic-front"] > .dinner-card-art-copy {
  inset: 15% 11% 29%;
  gap: 20px;
}
[data-dinner-art-card] .dinner-card-art-copy:focus-visible {
  outline: 2px solid #397f7e;
  outline-offset: 2px;
  border-radius: 4px;
}
[data-dinner-art-card] :is(.dinner-reveal-front-head, .web-dinner-reveal-front-head,
  .topic-card-front-head, .web-topic-card-front-head) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
}
[data-dinner-art-card] :is(.dinner-card-number, .web-dinner-card-number) { display: none; }
[data-dinner-art-card] :is(.my-dinner-badge, .dinner-status-badge, .topic-pick-card-cat,
  .web-pick-cat, .dinner-ux-topic-category-label, .topic-card-progress, .web-topic-card-progress) {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dinner-art-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .03em;
}
[data-dinner-art-card] :is(.dinner-reveal-front h3, .web-dinner-reveal-front h3) {
  margin: 0;
  color: var(--dinner-art-ink);
  font-size: clamp(24px, 8cqi, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
}
[data-dinner-art-card] :is(.dinner-reveal-subtitle, .dinner-role-line) {
  margin: 0;
  color: var(--dinner-art-muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
}
[data-dinner-art-card] :is(.dinner-reveal-identity, .web-dinner-reveal-identity) {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}
[data-dinner-art-card] :is(.dinner-reveal-identity, .web-dinner-reveal-identity) > span {
  color: var(--dinner-art-muted);
  font-size: 11px;
  font-weight: 500;
}
[data-dinner-art-card] :is(.dinner-reveal-identity, .web-dinner-reveal-identity) p {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--dinner-art-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
}
[data-dinner-art-card] :is(.topic-card-copy, .web-topic-card-copy) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  background: none;
}
[data-dinner-art-card] :is(.topic-core-question, .web-topic-core-question) {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 0;
  max-height: none;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--dinner-art-ink);
  font-size: clamp(20px, 6.6cqi, 24px);
  font-weight: 650;
  line-height: 1.65;
  text-align: left;
  white-space: pre-line;
  overflow: visible;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
[data-dinner-art-card] :is(.topic-core-question, .web-topic-core-question)::before,
[data-dinner-art-card] :is(.topic-core-question, .web-topic-core-question)::after { display: none; }
[data-dinner-art-card] .dinner-ux-question-detail {
  margin: 0;
  color: var(--dinner-art-muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
  white-space: pre-line;
}
[data-dinner-art-card] .dinner-ux-topic-selected[role="status"] {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2d7673;
  font-size: 12px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-dinner-art-card].is-clickable:hover { filter: drop-shadow(0 5px 7px #244f5014); }
}
@media (prefers-reduced-motion: reduce) {
  [data-dinner-art-card], [data-dinner-art-card] *, [data-dinner-card-art] {
    animation: none !important;
    transition: none !important;
  }
}

/* Current actions and full instructions stay below the illustrated identity face. */
.dt-role:has(> .dt-role-portrait) {
  width: 100%;
  max-width: 640px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.dt-role-covered[data-dinner-art-card] {
  padding: 0 !important;
  background: none;
}
[data-dinner-art-card][data-dinner-art-layout="flow"] {
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0;
  background: none;
  box-shadow: 0 12px 30px -18px #244f5040;
}
[data-dinner-art-layout="flow"] [data-dinner-card-art] {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  background: none !important;
  overflow: visible !important;
  isolation: isolate;
}
[data-dinner-art-layout="flow"] [data-dinner-card-art] > .dinner-card-art-copy {
  position: relative;
  inset: auto;
  min-height: 150cqi;
  padding: 33cqi 11cqi 42cqi;
  overflow: visible;
  scrollbar-width: none;
}
[data-dinner-art-layout="flow"] [data-dinner-card-art="topic-front"] > .dinner-card-art-copy {
  inset: auto;
  padding: 22.5cqi 11cqi 43.5cqi;
}
/* Keep the illustrated edges at their original proportions. Only blank paper
   in the middle extends when a question is long; the dialog owns scrolling. */
[data-dinner-art-layout="flow"] [data-dinner-card-art] > [data-dinner-art-part] {
  position: absolute;
  inset-inline: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  background-image: var(--dinner-front-illustration);
  background-repeat: no-repeat;
  background-size: 100% auto;
}
[data-dinner-art-layout="flow"] [data-dinner-card-art="identity-front"] {
  --dinner-front-illustration: url('./dinner-card-art/identity-front-20261016.webp');
  --dinner-art-top: 33cqi;
  --dinner-art-bottom: 42cqi;
  --dinner-art-paper-size: 200%;
  --dinner-art-paper-position: 44%;
}
[data-dinner-art-layout="flow"] [data-dinner-card-art="topic-front"] {
  --dinner-front-illustration: url('./dinner-card-art/topic-front-20261016.webp');
  --dinner-art-top: 22.5cqi;
  --dinner-art-bottom: 43.5cqi;
  --dinner-art-paper-size: 178.571429%;
  --dinner-art-paper-position: 34.090909%;
}
[data-dinner-art-layout="flow"] [data-dinner-art-part="top"] {
  top: 0;
  height: var(--dinner-art-top);
  border-radius: 12px 12px 0 0;
  background-position: center top;
}
[data-dinner-art-layout="flow"] [data-dinner-art-part="paper"] {
  top: var(--dinner-art-top);
  bottom: var(--dinner-art-bottom);
  background-size: 100% var(--dinner-art-paper-size);
  background-position: center var(--dinner-art-paper-position);
}
[data-dinner-art-layout="flow"] [data-dinner-art-part="bottom"] {
  bottom: 0;
  height: var(--dinner-art-bottom);
  border-radius: 0 0 12px 12px;
  background-position: center bottom;
}
[data-dinner-art-layout="flow"] .dt-role-heading,
[data-dinner-art-layout="flow"] .dt-topic-face header {
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  gap: 8px 12px;
}
[data-dinner-art-layout="flow"] .dt-eyebrow,
[data-dinner-art-layout="flow"] .dt-count,
[data-dinner-art-layout="flow"] .dt-tag {
  margin: 0;
  padding: 0;
  background: none;
  color: #526a67;
  font-size: 12px;
}
.dt-role [data-dinner-art-layout="flow"] .dt-role-heading h3 {
  font-size: clamp(24px, 8cqi, 30px);
  text-align: center;
  color: #244f50;
}
.dt-role [data-dinner-art-layout="flow"] .dt-role-description {
  margin: 0;
  color: #244f50;
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
}
[data-dinner-art-layout="flow"] .dt-topic-face blockquote {
  margin: 0;
  color: #244f50;
  font-size: clamp(21px, 6.6cqi, 24px);
  line-height: 1.6;
}
[data-dinner-art-layout="flow"] .dt-topic-face .dinner-card-art-copy > p {
  margin: 0;
  color: #526a67;
  font-size: 15px;
  line-height: 1.75;
}
.dt-role [data-dt-compact] { margin-inline: auto; }
.dt-role > .dt-current { margin-top: 24px; }
.dt-role.is-compact .dt-role-portrait .dt-role-description { display: none; }
[data-dinner-art-layout="flow"] .dinner-card-art-copy:focus-visible {
  outline: none;
}
@supports not (width: 1cqi) {
  [data-dinner-art-layout="flow"] [data-dinner-card-art] > .dinner-card-art-copy { min-height: 500px; padding: 110px 36px 150px; }
  [data-dinner-art-layout="flow"] [data-dinner-art-part="top"] { height: 110px; }
  [data-dinner-art-layout="flow"] [data-dinner-art-part="bottom"] { height: 150px; }
  [data-dinner-art-layout="flow"] [data-dinner-art-part="paper"] { top: 110px; bottom: 150px; }
}
