/* The hall, the collection and the battle table use the same emerald instrument glass. */
#play-screen .ll-subheader.ll-duel-context,
#play-screen .cl-shell .cl-dialog[data-surface="glass"],
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) {
  --rh-instrument-ink: #f5f0df;
  --rh-instrument-muted: #e0e1d0;
  --rh-instrument-gold: #ffe4a3;
  --rh-instrument-rule: rgba(214,186,126,.40);
  --rh-instrument-shine: rgba(255,229,171,.35);
  --rh-instrument-type: var(--rh-inscription, Georgia, serif);
  --rh-instrument-body: var(--rh-reading, system-ui, sans-serif);
}

/* A transparent edge, a soft reflection and one polished line carry the material. */
#play-screen .cl-shell .cl-dialog[data-surface="glass"],
#play-screen .db-shell dialog.db-dialog:where([data-kind]):not([data-kind="end"]) {
  --rh-instrument-pad: clamp(18px,2.2vw,32px);
  --rh-instrument-surface:
    radial-gradient(circle at 98% -34px,transparent 78px,#ffdfa617 79px,transparent 80px 87px,#ffdfa615 88px,transparent 89px),
    radial-gradient(ellipse at 2% 0%,rgba(126,176,143,.22),transparent 55%),
    linear-gradient(120deg,rgba(17,50,44,.80),rgba(8,29,28,.84) 45%,rgba(12,35,33,.74));
  --rh-instrument-blur: blur(15px) saturate(1.12);
  --db-wine: #ddc28a;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  color-scheme: dark;
  margin: auto;
  inline-size: min(33rem,calc(100% - 28px));
  block-size: fit-content;
  max-block-size: calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--rh-instrument-pad);
  border: 1px solid rgba(219,191,132,.70);
  border-block-start-color: #e3cd9a;
  border-radius: 8px 2px 8px 2px;
  color: var(--rh-instrument-ink);
  background: var(--rh-instrument-surface);
  -webkit-backdrop-filter: var(--rh-instrument-blur);
  backdrop-filter: var(--rh-instrument-blur);
  box-shadow: 0 17px 55px #020b09a6, inset 0 0 0 1px #071b19ae,
              inset 0 0 0 3px #b4aa7d26, inset 0 1px 18px #bcddbb13;
  scrollbar-width: thin;
  scrollbar-color: #a69670 #16302b;
  text-align: start;
}

#play-screen .cl-shade:has(.cl-inspect,.cl-delete-actions,.cl-deck-form),
#play-screen .db-shell dialog.db-dialog:where([data-kind]):not([data-kind="end"])::backdrop {
  background: radial-gradient(ellipse at 49% 42%,#04131118 16%,#03101165 85%);
}

#play-screen .cl-shell .cl-dialog[data-surface="glass"]>header,
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0 0 13px;
  border: 0;
  background: linear-gradient(90deg,#edcf927f,#baac7573 43%,#d7c58b00 97%) left bottom/100% 1px no-repeat;
}
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head::before,
#play-screen .cl-shell .cl-dialog[data-surface="glass"]>header::before {
  content: "";
  width: 13px;
  height: 25px;
  flex: none;
  align-self: center;
  background: linear-gradient(130deg,#fff4cf,#c9a467 42%,#ffe5ac 68%,#977344);
  clip-path: polygon(50% 0,64% 35%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 35%);
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"]>header h2,
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head h3 {
  flex: 1;
  margin: 0;
  min-width: 0;
  color: #ffecbf;
  font: 600 clamp(24px,2.4vw,37px)/1.12 var(--rh-instrument-type);
  font-variant-numeric: lining-nums;
  letter-spacing: .005em;
  text-shadow: 0 1px 1px #091411,0 0 18px #dab36b33;
  text-wrap: balance;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-close,
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head .db-iconbutton {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  min-width: 44px;
  margin: -6px -5px -6px 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #f8dba3;
  background: transparent;
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-close:hover,
#play-screen .db-shell .db-dialog:is([data-kind="duel-menu"],[data-kind="field-actions"],[data-kind="confirm"],[data-kind="slots"],[data-kind="attack-menu"]) .db-dialog-head button:hover {
  color: #fff2cb;
  background: #d9bb8021;
  border-color: #d6ba7c6e;
}

#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-body {
  overflow: visible;
  max-height: none;
  padding: 0;
  color: var(--rh-instrument-ink);
  font: 400 16px/1.5 var(--rh-instrument-body);
}
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-body p {
  margin: 0 0 .65rem;
  font: inherit;
  color: var(--rh-instrument-ink);
}
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 14px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border: 0;
  background: linear-gradient(90deg,#c3a66b00,#bfa77872 55%,#d3b16c99) left top/100% 1px no-repeat;
}

/* Gold is carried in the letters and a narrow illuminated edge. */
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-actions button,
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-btn {
  min-height: 44px;
  inline-size: auto;
  padding: 9px 17px;
  margin: 0;
  border: 1px solid #bda77367;
  border-radius: 3px;
  color: #f0ddb0;
  font: 600 clamp(14px,1vw,16px)/1.22 var(--rh-instrument-type);
  font-variant-numeric: lining-nums;
  letter-spacing: .018em;
  text-align: center;
  text-shadow: 0 1px 2px #071510;
  text-decoration: none;
  background: linear-gradient(120deg,#a28e5630,#3a493326 70%);
  box-shadow: inset 0 1px #e2c99120;
  transition: border-color .16s ease,color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
#play-screen .db-shell .db-dialog:is([data-kind^="lesson-"],[data-kind="mulligan"]) .db-dialog-actions :is(.rh-action-primary,.db-primary,[data-cmd="start"],:only-child),
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-craft {
  border-color: #d9ba76b0;
  border-inline-start-color: #f6dba2;
  color: #ffedbf;
  background: linear-gradient(112deg,rgba(143,115,60,.55),rgba(50,65,46,.65) 66%,rgba(27,54,46,.68));
  box-shadow: inset 2px 0 #ffe7a35c,inset 0 1px #ffde9826,0 0 15px #deb7670d;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-btn:not(:disabled):is(:hover,:focus-visible),
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-actions button:not(:disabled):is(:hover,:focus-visible) {
  color: #fff4cf;
  background-color: #676342;
  border-color: #ffdc8e;
  box-shadow: inset 0 1px #ffe6ad73,0 0 15px #f0d5962e;
  text-shadow: 0 0 10px #ffe4a73b,0 1px 2px #18201b;
  text-decoration: none;
}
#play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) button:focus-visible,
#play-screen .cl-shell .cl-dialog[data-surface="glass"] button:focus-visible,
#play-screen .ll-duel-context button:focus-visible {
  outline: 2px solid #ffe8a7;
  outline-offset: 3px;
}

/* Menu commands keep the hall's glint, with a visible action surface inside a modal. */
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-craft.rh-menu-action,
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .db-dialog-actions .rh-menu-action {
  border: 1px solid #ddbf7c9c !important;
  border-inline-start-color: #f3d48b !important;
  background: linear-gradient(112deg,#75613d85,#254d3b63 83%) !important;
  box-shadow: inset 2px 0 #ffe7a348,inset 0 1px #ffde981c !important;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-craft.rh-menu-action:not(:disabled):is(:hover,:focus-visible),
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .db-dialog-actions .rh-menu-action:not(:disabled):is(:hover,:focus-visible) {
  border-color: #ffe5a6 !important;
  background: linear-gradient(112deg,#7e6c43bf,#31523fb3 83%) !important;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-craft.rh-menu-action:disabled {
  border: 1px dashed #a4ad9a !important;
  background: #233530bf !important;
  box-shadow: none !important;
}
#play-screen .db-shell .db-dialog:is([data-kind="duel-menu"],[data-kind="field-actions"],[data-kind="confirm"],[data-kind="slots"],[data-kind="attack-menu"]) .db-dialog-body .rh-menu-action {
  border-bottom: 1px solid #c5b58745 !important;
}
@media (prefers-reduced-motion:no-preference) {
  html:not([data-rh-motion="reduced"],[data-rh-quality="low"]) #play-screen .cl-dialog[data-surface="glass"],
  html:not([data-rh-motion="reduced"],[data-rh-quality="low"]) #play-screen .db-dialog[open]:where([data-kind]):not([data-kind="end"]) {
    animation: rh-instrument-appear .16s ease-out both;
  }
}
@keyframes rh-instrument-appear {
  from { opacity: .0; translate: 0 3px; }
  to { opacity: 1; translate: 0 0; }
}

/* Give the mechanic and its objective distinct voices. */
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .db-dialog-body .cp-lesson-kicker,
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .cp-lesson-goal strong {
  color: var(--rh-instrument-gold);
  font: 650 12px/1.3 var(--rh-instrument-type);
  letter-spacing: .094em;
  text-shadow: 0 0 9px #d2a85b25;
}
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .db-dialog-body .cp-lesson-goal {
  margin: 14px 0 0;
  padding: 10px 13px;
  color: #f1e5ca;
  border-inline-start: 2px solid #dbb979;
  background: linear-gradient(95deg,#d8ba6c18,#a8c5a407 75%,transparent);
}
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] .cp-lesson-goal strong { display: block; margin-bottom: 3px; }
#play-screen .db-shell .db-dialog[data-kind^="lesson-"] :is(.cp-goals,.cp-save) { color: #e8d8b6; }
#play-screen .db-shell .db-dialog[data-kind="lesson-result"] .cp-lesson-kicker { color: #ffdf91; }
#play-screen .db-shell .db-dialog:is([data-kind="duel-menu"],[data-kind="field-actions"],[data-kind="confirm"],[data-kind="slots"],[data-kind="attack-menu"]) .db-dialog-body button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #c5b58745;
  border-radius: 0;
  background: transparent;
  color: #eee3c7;
  font: 600 15px/1.3 var(--rh-instrument-type);
  text-align: start;
}
#play-screen .db-shell .db-dialog:is([data-kind="duel-menu"],[data-kind="field-actions"],[data-kind="confirm"],[data-kind="slots"],[data-kind="attack-menu"]) .db-dialog-body button:is(:focus-visible,:hover) {
  background: linear-gradient(95deg,#d8be7133,transparent 88%);
  color: #fff1cb;
}

#play-screen .db-shell dialog.db-dialog[data-kind="mulligan"] { inline-size: min(48rem,calc(100% - 28px)); }
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-initiative {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-bottom: 5px;
  padding: 0;
  color: var(--rh-instrument-muted);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-initiative strong {
  color: var(--rh-instrument-gold);
  font: 600 clamp(15px,1.3vw,19px)/1.25 var(--rh-instrument-type);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-initiative span { font-size: 13px; line-height: 1.4; }
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-dialog-body>p {
  color: var(--rh-instrument-muted);
  font-size: 14px;
  line-height: 1.4;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-dialog-body>p strong { color: #f8e7bf; }
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  justify-content: center;
  gap: clamp(6px,1.1vw,15px);
  width: min(100%,600px);
  margin: clamp(12px,2vh,20px) auto 10px;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: 0 0 3px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #dcd8bc;
  text-shadow: none;
  box-shadow: none;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card>.tc-card {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 5/7;
  margin: 0;
  outline: 1px solid #d4b77b5e;
  outline-offset: 1px;
  box-shadow: 0 5px 11px #021412ad;
  transition: filter .16s ease,outline-color .16s ease,box-shadow .16s ease;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card:is(:hover,:focus-visible)>.tc-card {
  outline-color: #efd093;
  box-shadow: 0 5px 11px #021412ad,0 0 10px #e6ca7b3b;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card.is-replaced>.tc-card {
  outline: 2px dashed #ffde8c;
  outline-offset: 1px;
  filter: saturate(.68) brightness(.77);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card>span:last-child:not(.tc-card) {
  display: block;
  width: 100%;
  min-height: 22px;
  margin: 4px 0 0;
  padding-top: 3px;
  border-bottom: 1px solid #bdba905c;
  color: #e4e3cb;
  font: 600 clamp(11px,.9vw,13px)/1.1 var(--rh-instrument-type);
  text-align: center;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card.is-replaced>span:last-child:not(.tc-card) {
  border-color: #ffdd8a;
  color: #ffe595;
  background: linear-gradient(0deg,#c8ab6726,transparent);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-reading {
  margin: 7px 0 0;
  padding: 9px 13px 10px;
  border: 1px solid #bba37255;
  border-inline-start: 2px solid #d5b67b;
  background: linear-gradient(104deg,#97ae8f1b,#17362f1a);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy small {
  color: #e1ca96;
  font: 600 11px/1.2 var(--rh-instrument-type);
  letter-spacing: .045em;
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy h4 {
  margin: 2px 0 4px;
  color: #fbe6b4;
  font: 600 clamp(17px,1.5vw,23px)/1.14 var(--rh-instrument-type);
}
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy p { margin: 1px 0; color: #ecedde; font-size: 13px; line-height: 1.4; }
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy :is(.db-choice-type,.db-choice-stats) { display: inline; color: #d5d8c4; }
#play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy .db-choice-stats { margin-inline-start: .65em; }

#play-screen .cl-shell .cl-dialog:has(.cl-inspect) { inline-size: min(43rem,calc(100% - 28px)); }
#play-screen .cl-shell .cl-inspect {
  display: grid;
  grid-template-columns: minmax(0,.74fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(16px,2.5vw,32px);
  color: var(--rh-instrument-ink);
}
#play-screen .cl-shell .cl-inspect .cl-inspect-card {
  place-self: center;
  position: relative;
  width: min(100%,220px);
  height: auto;
  max-height: none;
  filter: drop-shadow(0 6px 10px #021512aa);
}
#play-screen .cl-shell .cl-inspect>div:last-child { min-width: 0; }
#play-screen .cl-shell .cl-inspect>div:last-child p { margin: 4px 0; color: var(--rh-instrument-ink); font: 400 15px/1.42 var(--rh-instrument-body); }
#play-screen .cl-shell .cl-inspect .cl-grade { color: var(--rh-light,#ffdf9c); }
#play-screen .cl-shell .cl-inspect :is(.cl-subtle,.cl-metadata) { color: var(--rh-instrument-muted); }
#play-screen .cl-shell .cl-inspect p.cl-metadata { margin-bottom: 12px; color: #ffdfa0; font-weight: 600; }
#play-screen .cl-shell .cl-inspect p.cl-ability { font-size: clamp(15px,1.13vw,17px); }
#play-screen .cl-shell .cl-inspect .cl-btn:not(.cl-craft) { margin: 4px 3px 4px 0; }
#play-screen .cl-shell .cl-inspect .cl-subtle:has(+.cl-craft),
#play-screen .cl-shell .cl-inspect .cl-craft-balance {
  margin: 12px 0 7px;
  padding-top: 10px;
  border-top: 1px solid var(--rh-instrument-rule);
  color: #e8dbb8;
  font-size: 13px;
}
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-craft { width: 100%; }
#play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-btn:disabled {
  opacity: 1;
  color: #d5d8cc !important;
  border: 1px dashed #a4ad9a;
  background: #233530bf;
  box-shadow: none;
  text-shadow: none;
  cursor: default;
}
#play-screen .cl-shell .cl-inspect p.cl-craft-shortfall { margin: 5px 0 0; color: #d9ccac; font-size: 12px; }

#play-screen .ll-subheader.ll-duel-context.rh-submenu {
  display: grid;
  grid-template-columns: minmax(max-content,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: clamp(6px,1.25vw,24px);
  min-height: 48px;
  margin: 0;
  padding: 0 max(3vw,env(safe-area-inset-right)) 0 max(3vw,env(safe-area-inset-left));
  border: 0;
  border-bottom: 1px solid #b2945e8c;
  background: linear-gradient(180deg,rgba(14,28,28,.80),rgba(28,38,31,.73));
  box-shadow: inset 0 1px #fff1b314,0 3px 10px #07131136;
  -webkit-backdrop-filter: var(--rh-glass-filter,blur(3px));
  backdrop-filter: var(--rh-glass-filter,blur(3px));
}
#play-screen .ll-duel-context.rh-submenu .rh-hall-link {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: none;
  box-shadow: none;
  color: #f6e4ba;
  font: 600 clamp(15px,1.28vw,19px)/1.1 var(--rh-instrument-type);
  letter-spacing: .035em;
  text-decoration: none;
  text-shadow: 0 1px 3px #071310;
}
#play-screen .ll-duel-context.rh-submenu .rh-hall-link .icon {
  display: block;
  flex: none;
  width: 25px;
  height: 25px;
  transform: none;
  color: #e7c080;
}
#play-screen .ll-duel-context.rh-submenu .rh-hall-link:is(:hover,:focus-visible) { color: #fff1c9; text-shadow: 0 0 9px #e0b56d70; }

@media (max-width:600px) {
  #play-screen .ll-subheader.ll-duel-context.rh-submenu {
    grid-template-columns: max-content minmax(0,1fr);
    min-height: 44px;
    padding-inline: max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));
  }
  #play-screen .ll-duel-context.rh-submenu .rh-hall-link { gap: 5px; padding: 0 4px; font-size: 14px; }
  #play-screen .ll-duel-context.rh-submenu .rh-hall-link .icon { width: 20px; height: 21px; }
  #play-screen .ll-duel-context.rh-submenu .rh-subtabs { justify-content: end; gap: 6px; }
  #play-screen .cl-shell .cl-dialog[data-surface="glass"],
  #play-screen .db-shell dialog.db-dialog:where([data-kind]):not([data-kind="end"]) {
    --rh-instrument-pad: 16px;
    --rh-instrument-blur: blur(8px) saturate(1.12);
  }
  #play-screen .cl-shell .cl-dialog[data-surface="glass"]>header,
  #play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head { gap: 9px; margin-bottom: 12px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening { gap: 6px; }
  #play-screen .cl-shell .cl-inspect { grid-template-columns: minmax(88px,.75fr) minmax(0,1fr); gap: 12px; align-items: start; }
  #play-screen .cl-shell .cl-inspect .cl-inspect-card { align-self: start; }
  #play-screen .cl-shell .cl-dialog[data-surface="glass"] .cl-inspect .cl-btn { padding-inline: 8px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-dialog-actions { justify-content: center; }
}
@media (max-height:510px) and (min-width:610px) {
  #play-screen .cl-shell .cl-dialog[data-surface="glass"],
  #play-screen .db-shell dialog.db-dialog:where([data-kind]):not([data-kind="end"]) {
    --rh-instrument-pad: 14px 20px;
    max-block-size: calc(100dvh - 12px);
  }
  #play-screen .cl-shell .cl-dialog[data-surface="glass"]>header,
  #play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head { padding-bottom: 6px; margin-bottom: 8px; }
  #play-screen .cl-shell .cl-dialog[data-surface="glass"]>header h2,
  #play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-head h3 { font-size: 22px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-dialog-body {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    grid-template-areas: "cards initiative" "cards instructions" "cards reading";
    gap: 3px 15px;
    align-items: start;
  }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-initiative { grid-area: initiative; display: grid; gap: 1px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-dialog-body>p { grid-area: instructions; margin: 0; font-size: 12px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening { grid-area: cards; align-self: center; gap: 6px; margin: 0; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-reading { grid-area: reading; padding: 5px 8px; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-choice-copy p { font-size: 12px; }
  #play-screen .db-shell .db-dialog:where([data-kind]):not([data-kind="end"]) .db-dialog-actions { margin-top: 8px; padding-top: 6px; }
  #play-screen .cl-shell .cl-inspect .cl-inspect-card { width: min(100%,155px); }
  #play-screen .cl-shell .cl-inspect p.cl-metadata { margin-bottom: 4px; }
}
@media (prefers-reduced-transparency:reduce) {
  #play-screen .cl-shell .cl-dialog[data-surface="glass"],
  #play-screen .db-shell dialog.db-dialog:where([data-kind]):not([data-kind="end"]) {
    --rh-instrument-surface: #142e29;
    --rh-instrument-blur: none;
  }
  #play-screen .ll-subheader.ll-duel-context { background: #182723; }
}
html[data-rh-quality="low"] #play-screen :is(.cl-dialog[data-surface="glass"],.db-dialog:where([data-kind]):not([data-kind="end"])) {
  --rh-instrument-blur: none;
  --rh-instrument-surface: linear-gradient(115deg,#1b3731f2,#122b28ed);
}
@media (prefers-reduced-motion:reduce) {
  #play-screen :is(.cl-dialog[data-surface="glass"],.db-dialog:where([data-kind]):not([data-kind="end"])) :is(button,.tc-card) { transition: none !important; animation: none !important; }
}
html[data-rh-motion="reduced"] #play-screen :is(.cl-dialog[data-surface="glass"],.db-dialog:where([data-kind]):not([data-kind="end"])) :is(button,.tc-card) { transition: none !important; animation: none !important; }
@media (forced-colors:active) {
  #play-screen :is(.cl-dialog[data-surface="glass"],.db-dialog:where([data-kind]):not([data-kind="end"])) { border: 1px solid CanvasText; box-shadow: none; }
  #play-screen :is(.cl-dialog[data-surface="glass"],.db-dialog:where([data-kind]):not([data-kind="end"])) button:focus-visible { outline: 2px solid Highlight; }
  #play-screen .db-shell .db-dialog[data-kind="mulligan"] .db-opening-card.is-replaced>.tc-card { outline: 2px dashed Highlight; }
}

#play-screen .cl-shell .cl-dialog:has(.cl-delete-actions,.cl-deck-form) {inline-size:min(28.5rem,calc(100% - 24px));}
#play-screen .cl-shell .cl-dialog:has(.cl-delete-actions,.cl-deck-form) :is(p,strong,label) {color:#f5ead1;}
#play-screen .cl-shell .cl-delete-actions button {color:#fbe4ab!important;background:linear-gradient(120deg,#27463aaf,#142d27da)!important;border:1px solid #a78b56!important;padding:8px 14px;}
#play-screen .db-shell .db-dialog:is([data-kind="slots"],[data-kind="attack-menu"]) :is(.db-choice-copy h4,.db-choice-copy p,.db-choice-list button,.db-dialog-body small,.db-dialog-body h4) {color:#f8e7be;}
#play-screen .db-shell .db-dialog:is([data-kind="slots"],[data-kind="attack-menu"]) :is(.db-choice-list button,.db-choice-detail,.db-choice-reading) {background:#12312bd9;border-color:#ad925e88;}
