/* Duelo (Holmgang): a seção da página e o HUD do jogo. Carregado depois de style.css.
   O HUD é feito de etiquetas de papel (como as cartas): giz claro, tinta escura,
   cantos chanfrados e uma faixa na cor do clã. */

/* ---------------------------------------------------------------- duelo (seção) */
.rules-fold { margin-top: 1.2rem !important; }
.rules-fold > summary { display: none; }
.rules-short { display: grid; gap: 6px; }
.rules-short li { color: var(--ink-soft); font-size: 0.95rem; padding-left: 18px; position: relative; }
.rules-short li::before { content: "ᛁ"; position: absolute; left: 0; color: var(--amber); }
/* celular: as regras ficam recolhidas para a arena aparecer acima do texto */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .rules-fold { margin-top: 0.6rem !important; }
  .rules-fold > summary {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
    font-size: 0.92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
  }
  .rules-fold > summary::-webkit-details-marker { display: none; }
  .rules-fold > summary::after {
    content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    rotate: 45deg; translate: 0 -2px; transition: rotate 0.25s var(--ease-out);
  }
  .rules-fold[open] > summary::after { rotate: 225deg; translate: 0 2px; }
  .rules-fold .rules-short li { font-size: 0.9rem; }
}
.clan-pick { border: 0; padding: 0; margin: 1.5rem 0 0 !important; }
.clan-pick legend { font-size: var(--t-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; padding: 0; }
.clan-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.clan-pick label { position: relative; cursor: pointer; }
.clan-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.clan-pick span { display: block; padding: 9px 16px; border: 1px solid var(--rule); background: rgba(22, 22, 26, 0.35); color: var(--ink-soft); font-size: 0.9rem; text-shadow: none; }
.clan-pick input:checked + span { background: var(--chalk); color: var(--soot); border-color: var(--chalk); }
.clan-pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.clan-pick + .btn { margin-top: 1.4rem !important; }

/* ---------------------------------------------------------------- HUD: base */
.duel {
  --paper: #ece6d8;
  --paper-2: #ddd4c1;
  --ink-d: #1e1b19;
  --ink-d2: rgba(30, 27, 25, 0.62);
  --you: var(--minium);
  --foe: var(--c-serpente);
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  color: var(--chalk);
  font-family: var(--f-text);
}
.duel[hidden] { display: none; }
.duel button { pointer-events: auto; font: inherit; }
.duel { font-variant-numeric: lining-nums; } /* Vollkorn: o "1" sem cara de "I" */
.duel b, .duel dd { font-variant-numeric: lining-nums tabular-nums; }

/* etiqueta de papel: o papel fica no ::before (o recorte não corta a sombra) */
.duel-plate, .duel-half, .duel-caption, .duel-result__sheet, .duel-turn__title {
  position: relative; isolation: isolate;
  filter: drop-shadow(0 8px 18px rgba(8, 6, 4, 0.42)) drop-shadow(0 1px 1px rgba(8, 6, 4, 0.3));
}
.duel-plate::before, .duel-half::before, .duel-caption::before, .duel-result__sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.55), rgba(255, 252, 244, 0) 40%),
    var(--paper);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

/* ---------------------------------------------------------------- placas dos lados */
.duel-plate {
  position: absolute; color: var(--ink-d);
  padding: 12px 18px 13px 22px; min-width: 15.5rem;
  pointer-events: auto;
}
.duel-plate::after { /* faixa do clã */
  content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px; background: var(--clan, var(--minium));
}
.duel-plate--foe { top: calc(var(--topbar-h) + 10px); right: var(--gutter); }
.duel-plate--you { left: var(--gutter); bottom: 18px; }
.duel-plate__who { display: flex; align-items: baseline; gap: 10px; line-height: 1.1; }
.duel-plate__clan { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-d2); }
.duel-plate__name { font-family: var(--f-display); font-size: 1.22rem; font-weight: 700; order: -1; }
.duel-plate__honor { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; margin-top: 6px; }
.duel-plate__honor b {
  grid-row: 1 / 3; font-family: var(--f-display); font-weight: 700; font-size: 2.5rem; line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums; min-width: 2ch;
}
.duel-plate__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-d2); }
.duel-plate__label b { font-family: var(--f-display); font-size: 0.95rem; letter-spacing: 0; color: var(--ink-d); margin-left: 3px; }
.duel-bar {
  --k: 1;
  position: relative; display: block; height: 8px; margin-top: 4px; align-self: center;
  background: rgba(30, 27, 25, 0.12);
}
.duel-bar::before, .duel-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k) * 100%); }
.duel-bar::after { /* a perda fica acesa um instante e depois encolhe */
  background: #e5734f; transition: width 0.7s var(--ease-out) 0.45s;
}
.duel-bar::before {
  z-index: 1; background: var(--clan, var(--minium)); transition: width 0.3s var(--ease-out);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 18 * var(--k) - 1px), transparent 0 calc(100% / 18 * var(--k)));
}
.duel-plate.is-hit .duel-plate__honor b { animation: duel-hit 0.7s var(--ease-out); }
.duel-plate.is-heal .duel-plate__honor b { animation: duel-heal 0.8s var(--ease-out); }
@keyframes duel-hit { 0% { color: #c23b1e; transform: scale(1.25) rotate(-3deg); } 100% { color: inherit; transform: none; } }
@keyframes duel-heal { 0% { color: #4f7a3a; transform: scale(1.18); } 100% { color: inherit; transform: none; } }
.duel-plate__stats { display: flex; gap: 16px; margin-top: 9px; align-items: flex-end; }
.duel-plate__stats li { display: grid; gap: 3px; }
.duel-plate__stats li > b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.pips, .gems { display: flex; gap: 3px; min-height: 18px; align-items: center; }
.pip--shield {
  width: 15px; height: 17px; background: var(--ink-d);
  clip-path: polygon(50% 0, 100% 16%, 100% 56%, 50% 100%, 0 56%, 0 16%);
}
.pip--shield.is-empty { background: rgba(30, 27, 25, 0.16); }
.gem {
  width: 14px; height: 14px; background: var(--amber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: background-color 0.2s, transform 0.2s;
}
.gem.is-empty { background: rgba(30, 27, 25, 0.16); }
.gem.is-cost { background: #c46a12; transform: translateY(-3px); }
.gem.is-short { background: rgba(178, 58, 33, 0.35); }
.duel-plate__breath .duel-plate__label b { color: #8a4f0c; } /* âmbar escuro: 5,3:1 sobre o papel */

/* ---------------------------------------------------------------- vez (fita no alto) */
.duel-turn {
  position: absolute; top: calc(var(--topbar-h) + 6px); left: 50%; translate: -50% 0;
  width: min(36rem, calc(100vw - 2 * var(--gutter) - 34rem)); min-width: 20rem;
  display: grid; justify-items: center; text-align: center; gap: 8px;
}
.duel-turn__title {
  margin: 0; padding: 7px 34px 8px; color: var(--ink-d);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.1;
}
.duel-turn__title::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  transition: background-color 0.4s;
}
.duel-turn__title::after { /* fio da cor de quem joga */
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 4px; height: 2px; background: var(--you);
}
.duel-turn[data-who="foe"] .duel-turn__title { color: var(--chalk); }
.duel-turn[data-who="foe"] .duel-turn__title::before { background: #24222a; }
.duel-turn[data-who="foe"] .duel-turn__title::after { background: var(--foe); }
.duel-turn__hint {
  margin: 0; max-width: 32rem; font-size: 1rem; line-height: 1.4; color: var(--chalk);
  text-shadow: 0 1px 14px rgba(8, 6, 4, 0.95), 0 0 3px rgba(8, 6, 4, 0.9);
}
.duel-turn.is-warn .duel-turn__hint { color: #ffc9a8; }
/* a fita vira como uma placa de papel quando muda a vez */
.duel-turn.is-flip .duel-turn__title { animation: duel-flip 0.55s var(--ease-out); transform-origin: 50% 0; }
@keyframes duel-flip { 0% { transform: perspective(500px) rotateX(-90deg); opacity: 0; } 60% { transform: perspective(500px) rotateX(12deg); opacity: 1; } 100% { transform: none; } }

/* ---------------------------------------------------------------- registro */
.duel-log {
  position: absolute; left: var(--gutter); top: calc(var(--topbar-h) + 12px);
  width: min(21rem, 22vw); display: grid; gap: 5px; align-content: start;
  font-size: 0.82rem; line-height: 1.35; color: var(--chalk);
  text-shadow: 0 1px 10px rgba(8, 6, 4, 0.95), 0 0 2px rgba(8, 6, 4, 0.9);
}
.duel-log li { position: relative; padding-left: 12px; opacity: 0.5; transition: opacity 0.4s; }
.duel-log li:nth-last-child(-n + 3) { opacity: 0.78; }
.duel-log li:last-child { opacity: 1; }
.duel-log li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 4px; height: 0.72em; background: rgba(232, 227, 215, 0.4); }
.duel-log li.is-you::before { background: var(--you); }
.duel-log li.is-foe::before { background: var(--foe); }
.duel-log li.is-turn { font-weight: 600; margin-top: 6px; }
.duel-log li.is-play { font-weight: 600; }
.duel-log li.is-hit { color: #ffc2a6; }

/* ---------------------------------------------------------------- mão */
.duel-hand { position: absolute; inset: 0; pointer-events: none; }
.duel-card {
  position: absolute; left: 0; top: 0; padding: 0; border: 0; background: transparent;
  cursor: pointer; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.duel-card:focus { outline: none; }
.duel-card:focus-visible::after { /* marca de foco sob a carta (a carta cresce em 3D) */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 5px; height: 3px; background: var(--amber);
}
.duel-card[aria-disabled="true"] { cursor: default; }
.duel.is-dragging, .duel.is-dragging .duel-card { cursor: grabbing; }

/* ---------------------------------------------------------------- escolha da metade */
.duel-choice {
  position: absolute; left: calc(var(--card-r, 50vw) + 40px); top: var(--card-y, 20vh);
  height: calc(var(--card-b, 70vh) - var(--card-y, 20vh));
  width: min(25rem, calc(100vw - var(--card-r, 50vw) - 40px - var(--gutter)));
  display: grid; grid-template-rows: 63.5fr 36.5fr; pointer-events: none;
}
.duel-choice[hidden] { display: none; }
.duel-choice.is-on { animation: duel-in 0.35s var(--ease-out); }
@keyframes duel-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.duel-choice__head { /* o nome já está na carta: fica só para leitores de tela */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}
.duel-choice__low { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.duel-choice__low .duel-half { align-self: stretch; }
.duel-half {
  align-self: center; display: grid; gap: 5px; text-align: left;
  padding: 14px 18px 15px 24px; border: 0; background: none; color: var(--ink-d); cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.duel-half::after { /* faixa da metade: mínio na Lâmina, fiorde na Dobra */
  content: ""; position: absolute; left: 9px; top: 13px; bottom: 13px; width: 4px; background: var(--minium); transition: width 0.25s var(--ease-out);
}
.duel-half--fold::after { background: var(--fjord-2); }
.duel-half__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #a8321c; }
.duel-half--fold .duel-half__k { color: #245059; }
.duel-half__text { font-family: var(--f-display); font-size: 1.18rem; font-weight: 600; line-height: 1.25; }
.duel-half__then { font-size: 0.9rem; line-height: 1.35; color: rgba(30, 27, 25, 0.78); padding-left: 18px; position: relative; }
.duel-half__then::before { content: "→"; position: absolute; left: 0; top: 0; color: rgba(30, 27, 25, 0.5); }
.duel-half__note { font-size: 0.8rem; font-style: italic; color: #8a3a22; }
.duel-half.is-win .duel-half__then { color: #8a2a12; font-weight: 600; }
.duel-half:hover, .duel-half:focus-visible { transform: translateX(-6px); }
.duel-half:hover::after, .duel-half:focus-visible::after { width: 7px; }
.duel-half:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.duel-half > *:first-child::before { /* fio até a metade da carta */
  content: ""; position: absolute; right: 100%; top: 50%; width: 40px; height: 1px; background: rgba(232, 227, 215, 0.75);
}
.duel-half--blade > *:first-child::before { top: 50%; }
.duel-choice__back {
  border: 0; background: none; padding: 6px 2px; cursor: pointer; pointer-events: auto;
  color: var(--chalk); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px;
  text-shadow: 0 1px 12px rgba(8, 6, 4, 0.95);
}
.duel-choice__back::after { content: " · Esc" / ""; color: rgba(232, 227, 215, 0.6); text-decoration: none; display: inline-block; margin-left: 4px; }
@media (hover: none) { .duel-choice__back::after { content: none; } }

/* ---------------------------------------------------------------- carta do adversário */
.duel-caption {
  position: absolute; left: var(--cx); top: var(--cy); translate: -100% -50%;
  width: min(21rem, 30vw); padding: 14px 18px 15px 22px; color: var(--ink-d); display: grid; gap: 4px;
}
.duel-caption[hidden] { display: none; }
.duel-caption.is-on { animation: duel-cap 0.35s var(--ease-out); }
@keyframes duel-cap { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.duel-caption::after { content: ""; position: absolute; left: 9px; top: 13px; bottom: 13px; width: 4px; background: var(--foe); }
.duel-caption__who { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-d2); }
.duel-caption__card { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.duel-caption__half { font-size: 0.95rem; line-height: 1.35; }

/* ---------------------------------------------------------------- textos que voam */
.duel-pop {
  position: absolute; z-index: 5; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1;
  text-shadow: 0 2px 14px rgba(8, 6, 4, 0.95), 0 0 2px rgba(8, 6, 4, 0.95);
  animation: duel-pop 1.6s var(--ease-out) forwards;
}
.duel-pop--damage { color: #ff8a5c; }
.duel-pop--heal { color: #cfe6a6; }
.duel-pop--block, .duel-pop--shield, .duel-pop--note {
  font-family: var(--f-text); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; text-shadow: none;
  color: var(--ink-d); background: var(--paper); padding: 5px 10px 6px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.duel-pop--block { background: #f1d3c2; }
.duel-pop--shield { background: #d4e2df; }
.duel-pop--note { font-weight: 600; }
@keyframes duel-pop {
  0% { opacity: 0; transform: translateY(12px) scale(0.8) rotate(-2deg); }
  14% { opacity: 1; transform: translateY(0) scale(1.06) rotate(1deg); }
  24% { transform: none; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-48px); }
}

/* ---------------------------------------------------------------- botões */
.duel-end { position: absolute; right: var(--gutter); bottom: 22px; margin: 0; min-width: 11rem; }
.duel-end:disabled { opacity: 0.4; }
.duel-end.is-ready { animation: duel-ready 1.6s ease-in-out infinite; }
@keyframes duel-ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0); filter: brightness(1); } 50% { filter: brightness(1.15) drop-shadow(0 0 12px rgba(233, 162, 59, 0.75)); } }
.duel-exit {
  position: absolute; top: 0; height: var(--topbar-h); right: calc(var(--gutter) + 92px);
  display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 0 4px;
  color: var(--chalk); font-size: 0.82rem; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 4px;
  text-shadow: 0 1px 12px rgba(8, 6, 4, 0.9);
}

/* ---------------------------------------------------------------- fim do duelo */
.duel-result {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(70% 60% at 50% 50%, rgba(12, 10, 10, 0.55), rgba(12, 10, 10, 0.8));
  pointer-events: auto; animation: duel-fade 0.5s var(--ease-out);
}
.duel-result[hidden] { display: none; }
@keyframes duel-fade { from { opacity: 0; } to { opacity: 1; } }
.duel-result__sheet {
  width: min(30rem, 100%); padding: 34px 36px 30px; color: var(--ink-d); text-align: center;
  display: grid; justify-items: center; gap: 12px; animation: duel-sheet 0.6s var(--ease-out);
}
@keyframes duel-sheet { from { transform: translateY(18px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.duel-result__eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-d2); }
.duel-result h2 { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--ink-d); }
.duel-result[data-result="win"] h2 { color: #8a2a12; }
.duel-result p { color: rgba(30, 27, 25, 0.82); max-width: 24rem; }
.duel-result__stats { display: flex; gap: 0; margin: 6px 0 4px; border-top: 1px solid rgba(30, 27, 25, 0.16); width: 100%; }
.duel-result__stats > div { flex: 1; padding: 12px 6px 0; display: flex; flex-direction: column; justify-content: space-between; }
.duel-result__stats > div + div { border-left: 1px solid rgba(30, 27, 25, 0.16); }
.duel-result__stats dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-d2); white-space: nowrap; }
.duel-result__stats dd { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; margin: 2px 0 0; }
.duel-result__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 8px; }
.duel-result__exit {
  min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer;
  color: var(--ink-d); font-weight: 600; font-size: 0.94rem;
}

/* ---------------------------------------------------------------- página durante o duelo */
body.is-dueling .stave, body.is-dueling .topbar__nav { opacity: 0; pointer-events: none; }
body.is-dueling .topbar { z-index: 45; }
body.is-dueling .hotspots { display: none; }
body.is-dueling main { opacity: 0; pointer-events: none; }
body.is-dueling main * { visibility: hidden !important; }

/* ---------------------------------------------------------------- telas médias */
@media (max-width: 1280px) and (min-width: 701px) {
  .duel-log { width: min(17rem, 22vw); font-size: 0.78rem; }
  .duel-turn { width: min(30rem, calc(100vw - 2 * var(--gutter) - 30rem)); }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .duel-log { display: none; }
  .duel-turn { left: var(--gutter); translate: none; justify-items: start; text-align: left; width: calc(100vw - 2 * var(--gutter) - 18rem); }
}
/* telas baixas (celular deitado, janelas achatadas): placas compactas */
@media (max-height: 560px) and (min-width: 701px) {
  .duel-log { display: none; }
  .duel-plate { min-width: 0; padding: 7px 12px 8px 17px; }
  .duel-plate::after { left: 7px; top: 8px; bottom: 8px; width: 3px; }
  .duel-plate__clan { display: none; }
  .duel-plate__name { font-size: 0.98rem; }
  .duel-plate__honor { margin-top: 2px; }
  .duel-plate__honor b { font-size: 1.6rem; }
  .duel-bar { width: 70px; height: 6px; }
  .duel-plate__stats { gap: 12px; margin-top: 4px; }
  .duel-plate__stats li { display: flex; align-items: center; gap: 5px; }
  .duel-plate__stats li:last-child { display: none; }
  .duel-plate__label { font-size: 0.6875rem; letter-spacing: 0.06em; }
  .duel-plate--foe { top: calc(var(--topbar-h) + 2px); }
  .duel-plate--you { bottom: 10px; }
  .duel-turn { top: calc(var(--topbar-h) - 6px); gap: 4px; }
  .duel-turn__title { font-size: 1.1rem; padding: 4px 26px 5px; }
  .duel-turn__hint { font-size: 0.86rem; }
  .duel-end { bottom: 12px; min-height: 42px; padding: 0 16px; font-size: 0.86rem; min-width: 0; }
  .duel-half { padding: 9px 14px 10px 20px; gap: 2px; }
  .duel-half__text { font-size: 0.98rem; }
  .duel-half__then { font-size: 0.8rem; }
  .duel-caption { padding: 10px 14px 11px 20px; }
}

/* ---------------------------------------------------------------- celular (em pé) */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .duel-log { display: none; }
  /* as duas placas lado a lado no alto (você à esquerda); ações embaixo */
  .duel-plate {
    top: calc(var(--topbar-h) + 2px); bottom: auto; width: calc(50vw - 16px); min-width: 0;
    padding: 7px 10px 8px 16px; display: grid; row-gap: 2px;
  }
  .duel-plate--you { left: 12px; right: auto; }
  .duel-plate--foe { right: 12px; left: auto; }
  .duel-plate::after { left: 7px; top: 8px; bottom: 8px; width: 3px; }
  .duel-plate::before { clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
  .duel-plate__clan { display: none; }
  .duel-plate__name { font-size: 0.98rem; }
  .duel-plate__honor { margin: 0; column-gap: 7px; }
  .duel-plate__honor b { font-size: 1.6rem; }
  .duel-bar { height: 6px; }
  .duel-plate__stats { flex-direction: column; align-items: flex-start; gap: 3px; margin: 3px 0 0; }
  .duel-plate__stats li { display: flex; align-items: center; gap: 6px; }
  .duel-plate__label { font-size: 0.6875rem; letter-spacing: 0.06em; }
  .duel-plate__stats li > b { font-size: 1rem; }
  .pip--shield { width: 11px; height: 13px; }
  .gem { width: 11px; height: 11px; }
  .pips, .gems { min-height: 14px; gap: 2px; }
  .duel-plate--foe .duel-plate__stats li:last-child, .duel-plate--you .duel-plate__stats li:last-child { display: none; }
  /* a fita e a dica logo abaixo das placas */
  .duel-turn {
    top: calc(var(--topbar-h) + 112px); left: 12px; right: 12px; translate: none; width: auto; min-width: 0;
    display: block; justify-items: normal; text-align: left;
  }
  .duel-turn__title { display: inline-block; font-size: 1.05rem; padding: 4px 20px 5px 14px; }
  .duel-turn__title::before { clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
  .duel-turn__title::after { left: 12px; right: 18px; bottom: 3px; }
  .duel-turn__hint { margin-top: 6px; max-width: none; font-size: 0.86rem; line-height: 1.3; }
  .duel-end { right: 12px; bottom: calc(var(--hand-h, 160px) + 12px); min-width: 0; min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
  .duel.is-choosing .duel-end { opacity: 0; pointer-events: none; }
  .duel-choice .duel-half { align-self: stretch; }
  .duel-exit { right: calc(16px + 80px); font-size: 0.78rem; }
  .duel-choice {
    left: 16px; right: 16px; width: auto; top: calc(var(--card-b) + 10px); height: auto;
    display: flex; flex-direction: column; gap: 8px;
  }
  .duel-choice__low { display: contents; }
  .duel-half { padding: 10px 14px 11px 20px; gap: 3px; }
  .duel-half::after { left: 8px; top: 10px; bottom: 10px; }
  .duel-half__text { font-size: 1rem; }
  .duel-half__then { font-size: 0.84rem; }
  .duel-half > *:first-child::before { display: none; }
  .duel-half:hover, .duel-half:focus-visible { transform: none; }
  .duel-choice__back { position: static; align-self: center; }
  .duel-caption { translate: -50% 0; width: calc(100vw - 32px); padding: 10px 14px 11px 20px; }
  .duel-caption__card { font-size: 1.1rem; }
  .duel-caption__half { font-size: 0.86rem; }
  .duel-pop { font-size: 1.6rem; }
  .duel-result__sheet { padding: 26px 22px 22px; }
}

@media (max-height: 620px) and (min-width: 861px) {
  .rules-short { display: none; }
}
