body.duel-page main {
  width: min(1280px, calc(100% - 20px));
}

.duel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 12px;
}

.duel-head h2 {
  margin: 0 0 8px;
}

.duel-actions {
  text-align: right;
}

.duel-actions p,
.duel-hint {
  color: var(--muted);
  margin: 0 0 10px;
}

.duel-error {
  color: #ffb4c8;
  margin: 0 0 12px;
}

/* ---------- Tabuleiro ---------- */

#board {
  --cw: 88px;
  --ch: 122px;
  margin-bottom: 24px;
}

.duel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.mat {
  position: relative;
  background:
    radial-gradient(520px 200px at 50% 50%, rgba(255, 214, 120, 0.12), transparent 70%),
    linear-gradient(180deg, #2a1240 0%, #14301f 40%, #123a2c 60%, #241338 100%);
  border: 1px solid rgba(255, 214, 120, 0.35);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 4px rgba(7, 20, 16, 0.45), 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.lp-box {
  border: 1px solid rgba(255, 214, 120, 0.4);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 12px;
  padding: 8px 10px;
  color: #e7fff5;
}
.lp-box span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.lp-box strong {
  display: block;
  font-size: 24px;
  color: #ffe7a3;
  line-height: 1.1;
}
.lp-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 6px;
}
.lp-track div {
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease;
}
.lp-box.you .lp-track div { background: linear-gradient(90deg, #4ade80, #a3e635); }
.lp-box.bot .lp-track div { background: linear-gradient(90deg, #f472b6, #fb7185); }

.piles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pile {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #d7efe6;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px 2px;
  font: inherit;
}
button.pile {
  cursor: pointer;
}
button.pile:hover {
  border-color: #ffd76a;
}
.pile b {
  font-size: 18px;
  color: #fff;
}
.pile span {
  font-size: 10px;
}

.zones {
  display: grid;
  grid-template-columns: repeat(5, var(--cw));
  justify-content: center;
  gap: 10px;
}
.zones.bot-back,
.zones.you-back {
  opacity: 0.95;
}
.zones.you-mon {
  margin-top: 2px;
}

.hand {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: calc(var(--ch) + 12px);
  overflow-x: auto;
  padding: 8px 4px 4px;
}
.bot-hand {
  min-height: 0;
  padding: 0;
  gap: 4px;
}

.midline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3fff8;
}
.turn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #cfe9de;
}
.turn-info b {
  font-size: 15px;
  color: #ffb4c8;
}
.turn-info b.mine {
  color: #a3e635;
}
.summon-flag {
  color: #a3e635;
}
.summon-flag.used {
  color: #9ca3af;
  text-decoration: line-through;
}
.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.steps li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #9fb8ad;
  background: rgba(255, 255, 255, 0.05);
}
.steps li.now {
  color: #241433;
  background: #ffd76a;
  font-weight: 700;
}
.step-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#board button:not(.ycard):not(.pile),
#start {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: #f3e9ff;
  color: #241433;
}
#board button:not(.ycard):not(.pile):disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#board button.end-turn:not(.ycard) {
  background: #ffd76a;
}
#board button.ghost:not(.ycard) {
  background: transparent;
  color: #f3e9ff;
  border: 1px solid rgba(243, 233, 255, 0.4);
}
#board button.surrender:not(.ycard) {
  background: #5a1f2e;
  color: #ffd6df;
  width: 100%;
}

.alert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff8e8;
}
.alert p {
  margin: 0;
}
.alert div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.alert.attack {
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.85), rgba(120, 20, 60, 0.85));
  border: 1px solid #fb7185;
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.alert.mode {
  background: rgba(255, 215, 106, 0.16);
  border: 1px solid #ffd76a;
}
.alert.error {
  background: rgba(190, 18, 60, 0.3);
  border: 1px solid #fb7185;
  color: #ffd6df;
}
@keyframes pulse {
  from { box-shadow: 0 0 0 rgba(251, 113, 133, 0); }
  to { box-shadow: 0 0 22px rgba(251, 113, 133, 0.55); }
}

.guide {
  margin: 0;
  text-align: center;
  color: #e7fff5;
  font-size: 14px;
}

/* ---------- Cartas ---------- */

.slot,
.ycard {
  width: var(--cw);
  height: var(--ch);
  flex: 0 0 auto;
}

.slot {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.ycard {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  padding: 6px;
  color: #1b1408;
  background: linear-gradient(180deg, #fff8e8, #f0d48a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.ycard:hover {
  transform: translateY(-4px);
  z-index: 2;
}
.ycard.mini {
  width: 28px;
  height: 40px;
  border-radius: 5px;
  cursor: default;
}
.ycard.mini:hover {
  transform: none;
}
.ycard.mini .back-mark {
  font-size: 12px;
}

.ycard[data-attr="TREVAS"] { background: linear-gradient(180deg, #f3e9ff, #c9a6ef); }
.ycard[data-attr="LUZ"] { background: linear-gradient(180deg, #fff8e8, #f0d48a); }
.ycard[data-attr="FOGO"] { background: linear-gradient(180deg, #ffe8e0, #f0a090); }
.ycard[data-attr="ÁGUA"] { background: linear-gradient(180deg, #e7f4ff, #9fd0f5); }
.ycard[data-attr="TERRA"] { background: linear-gradient(180deg, #f6ecdc, #d2b48c); }
.ycard[data-attr="VENTO"] { background: linear-gradient(180deg, #e9ffe8, #a9e6a0); }
.ycard.spell { background: linear-gradient(180deg, #e8fff4, #8fd8b8); }
.ycard.trap { background: linear-gradient(180deg, #ffe8f4, #f0a0c8); }
.ycard.back {
  background: repeating-linear-gradient(135deg, #6d28d9, #6d28d9 8px, #4c1d95 8px, #4c1d95 16px);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.back-mark {
  font-size: 22px;
  opacity: 0.85;
}

.ycard small,
.ycard b,
.ycard em {
  display: block;
}
.ycard.spell small,
.ycard.trap small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ycard b {
  font-size: 11px;
  line-height: 1.2;
  margin-top: 4px;
}
.ycard em {
  font-style: normal;
  font-size: 11px;
  margin-top: 6px;
}
.ycard-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}
.ycard-info {
  position: relative;
  display: block;
}
.ycard.has-art {
  padding: 0;
  color: #fff;
}
.ycard.has-art .ycard-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 5px 5px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 45%);
}
.ycard.has-art small {
  color: #ffd76a;
  font-size: 9px;
  letter-spacing: -1px;
}
.ycard.has-art b {
  margin-top: 2px;
  font-size: 10px;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ycard.has-art em {
  margin-top: 2px;
  font-size: 10px;
  color: #f3e9ff;
}

.badges {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  z-index: 2;
}
.badge {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.badge.atk { background: #b91c1c; }
.badge.def { background: #1d4ed8; }
.badge.down { background: #4c1d95; }
.badge.buff { background: #15803d; }
.badge.used { background: #374151; }
.badge.ready { background: #ffd76a; color: #241433; }

.ycard.def .ycard-art {
  filter: saturate(0.55) brightness(0.8);
}
.ycard.def {
  box-shadow: inset 0 0 0 2px #60a5fa, 0 6px 14px rgba(0, 0, 0, 0.3);
}
.ycard.facedown .ycard-art {
  filter: grayscale(0.6) brightness(0.55);
}
.ycard.spent {
  opacity: 0.7;
}

.ycard.picked {
  outline: 3px solid #ffd76a;
  outline-offset: 2px;
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 215, 106, 0.75);
}
.ycard.target,
.slot.target {
  outline: 3px solid #4ade80;
  outline-offset: 2px;
  animation: glow 0.9s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 4px rgba(74, 222, 128, 0.3); }
  to { box-shadow: 0 0 22px rgba(74, 222, 128, 0.85); }
}
.ycard.dim {
  opacity: 0.35;
}
.ycard.tribute {
  outline: 3px solid #ff5d7a;
  outline-offset: 2px;
  box-shadow: 0 0 18px rgba(255, 93, 122, 0.7);
  animation: none;
}
.ycard.tribute::after {
  content: "TRIBUTO";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: #ff5d7a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  z-index: 3;
}
.ycard.under-attack {
  outline: 3px solid #fb7185;
  outline-offset: 2px;
  animation: pulse 0.8s ease-in-out infinite alternate;
}

/* ---------- Painel lateral ---------- */

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
}
.inspect,
.log-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 12, 28, 0.82);
  padding: 12px;
}
.inspect .eyebrow,
.log-box .eyebrow {
  margin: 0 0 6px;
}
.inspect h3 {
  margin: 4px 0 2px;
  font-size: 17px;
}
.inspect .muted,
.inspect .note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.inspect {
  position: relative;
}
#board .inspect button.close:not(.ycard) {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 12px;
  z-index: 2;
  background: rgba(18, 12, 28, 0.8);
}
.inspect-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 210px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #241433;
  color: #241433;
  font-weight: 700;
  font-size: 22px;
}
.inspect-art.spell { background: linear-gradient(180deg, #e8fff4, #8fd8b8); aspect-ratio: 16 / 7; }
.inspect-art.trap { background: linear-gradient(180deg, #ffe8f4, #f0a0c8); aspect-ratio: 16 / 7; }
.inspect-stars {
  margin: 8px 0 0;
  color: #ffd76a;
  letter-spacing: -1px;
}
.inspect-stars span {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 12px;
}
.inspect-stats {
  display: flex;
  gap: 14px;
  margin: 6px 0;
  font-size: 14px;
}
.inspect-stats b {
  font-size: 18px;
  color: #ffe7a3;
}
.inspect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.inspect-tags i {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.inspect-text {
  font-size: 13px;
  margin: 6px 0;
  color: #f3e9ff;
}
.inspect-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.inspect-actions button {
  width: 100%;
  text-align: left;
}
#board .inspect-actions button.main:not(:disabled) {
  background: #ffd76a;
}
.inspect-actions .why {
  margin: -2px 0 4px 6px;
  font-size: 12px;
  color: #ffb4c8;
}
.inspect .rules {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}
.inspect .rules li + li {
  margin-top: 4px;
}
.grave-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  max-height: 320px;
  overflow: auto;
}
.grave-list small {
  color: var(--muted);
}

.log {
  margin: 0;
  padding: 0 0 0 18px;
  color: #e7fff5;
  font-size: 13px;
  max-height: 260px;
  overflow: auto;
}
.log li + li {
  margin-top: 4px;
}
.log li.fresh {
  color: #ffe7a3;
  font-weight: 600;
}

.result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  background: rgba(10, 6, 18, 0.78);
  backdrop-filter: blur(2px);
  z-index: 5;
  text-align: center;
}
.result h2 {
  margin: 0;
  font-size: 44px;
}
.result.win h2 { color: #ffd76a; }
.result.lose h2 { color: #fb7185; }
.result p {
  margin: 0 0 8px;
  color: #f3e9ff;
}
.result div {
  display: flex;
  gap: 8px;
}

.result b.gain { color: #a3e635; }
.result b.loss { color: #fb7185; }

.claim-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.alert.claim {
  flex-direction: column;
  align-items: stretch;
}

/* ---------- Chat da mesa ---------- */

.room-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 320px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.chat-toggle {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: #ffd76a;
  color: #241433;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.chat-toggle .unread {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  margin-left: 4px;
}
.chat-body {
  display: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 12, 28, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.room-chat.open .chat-body {
  display: block;
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  height: 260px;
  overflow-y: auto;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-list li {
  line-height: 1.35;
  word-break: break-word;
}
.chat-list li b {
  color: #c4b5fd;
}
.chat-list li.player b {
  color: #ffd76a;
}
.chat-list li.system {
  color: var(--muted);
  font-style: italic;
}
.chat-list li.system b {
  color: #9fd0f5;
  font-style: normal;
}
.chat-list li.empty {
  color: var(--muted);
}
.chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}
.chat-form button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background: #f3e9ff;
  color: #241433;
}

@media (max-width: 800px) {
  .room-chat {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
  .chat-list {
    height: 200px;
  }
}

/* ---------- Deck ---------- */

.collection {
  margin: 18px 0 28px;
}
.deck-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.deck-head h2 {
  margin: 0 0 4px;
}
.deck-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.deck-status.short {
  color: #ffb4c8;
}
.deck-tools,
.deck-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.deck-tools button,
.deck-count button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  background: #f3e9ff;
  color: #241433;
}
.deck-tools button:disabled,
.deck-count button:disabled {
  opacity: 0.4;
  cursor: default;
}
.deck-filters {
  margin: 14px 0 6px;
}
.deck-filters input[type="search"],
.deck-filters select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: rgba(18, 12, 28, 0.72);
  color: inherit;
}
.deck-filters input[type="search"] {
  flex: 1 1 220px;
}
.deck-filters label {
  color: var(--muted);
  font-size: 14px;
}
.deck-rules,
.deck-locked,
.deck-empty {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 12px;
}
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.deck-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(18, 12, 28, 0.72);
  display: flex;
  flex-direction: column;
}
.deck-card.in {
  border-color: #ffd76a;
  box-shadow: 0 0 0 2px rgba(255, 215, 106, 0.35);
}
.deck-card img,
.deck-card .no-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: grid;
  place-items: center;
  background: #241433;
  font-size: 32px;
}
.deck-card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.deck-card h3 {
  margin: 2px 0;
  font-size: 14px;
}
.deck-stars {
  margin: 0;
  color: #ffd76a;
  font-size: 13px;
  letter-spacing: -1px;
}
.deck-stars span {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 12px;
}
.deck-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.deck-meta b {
  color: inherit;
}
.deck-count {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deck-count button {
  padding: 4px 14px;
  font-size: 18px;
}

/* ---------- Tutorial ---------- */

.tutorial {
  margin: 0 0 18px;
}
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.tutorial article {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 28, 0.55);
}
.tutorial h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.tutorial p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1240px) {
  #board {
    --cw: 74px;
    --ch: 104px;
  }
  .duel-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .side-row {
    grid-template-columns: 96px minmax(0, 1fr) 96px;
  }
  .midline {
    grid-template-columns: auto 1fr;
  }
  .step-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .lp-box strong {
    font-size: 20px;
  }
}

@media (max-width: 800px) {
  #board {
    --cw: 58px;
    --ch: 82px;
  }
  .duel-grid {
    grid-template-columns: 1fr;
  }
  .side-panel {
    position: static;
  }
  .inspect.has-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 60vh;
    overflow: auto;
    z-index: 50;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.5);
  }
  .inspect.has-card .inspect-art {
    max-height: 120px;
  }
  .duel-head {
    display: block;
  }
  .duel-actions {
    text-align: left;
    margin-top: 12px;
  }
  .mat {
    padding: 8px;
  }
  .zones {
    gap: 5px;
  }
  .side-row {
    grid-template-columns: 1fr 1fr;
  }
  .side-row .hand {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }
  .midline {
    grid-template-columns: 1fr;
  }
  .steps {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .step-actions {
    justify-content: flex-start;
  }
  .ycard.has-art b,
  .ycard.has-art small {
    font-size: 8px;
  }
  .ycard.has-art em {
    font-size: 9px;
  }
  .badge {
    font-size: 7px;
    padding: 1px 3px;
  }
  .side-panel {
    grid-template-columns: 1fr;
  }
}
