/* Crevette · direction A4 « Imprimé marin », mode clair */
:root {
  --bg: #FAF6EF;          /* fond : sable */
  --surface: #FFFFFF;     /* blocs, listes, champs */
  --surface-2: #FFFFFF;   /* boutons ronds, segments actifs */
  --ink: #22324A;
  --muted: #5B667A;
  --line: #ECE4D8;
  --yes: #2E9C7E;
  --no: #D9576A;
  --star: #F2A23C;
  --accent: #2F6FA8;
  --girl: #EFA3B3;
  --boy: #88B7E2;
  --mix: #EFCB62;
  --radius: 28px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); overscroll-behavior: none; }
[hidden] { display: none !important; }
h2 { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-weight: 600; font-size: 26px; margin: 22px 0 12px; }
h2:first-child { margin-top: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--no); font-weight: 700; }
.logo { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-weight: 600; font-size: 32px; letter-spacing: .5px; line-height: 1; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(34,50,74,.12); }
.welcome-icon { width: 128px; height: 128px; border-radius: 30px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(34,50,74,.25); }
.logo.big { font-size: 64px; color: #fff; text-shadow: 0 3px 18px rgba(34,50,74,.3); margin: 0 0 6px; }

.screen { height: 100dvh; display: flex; flex-direction: column; }
.screen.center { align-items: center; justify-content: center; padding: 24px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
#view-settings .stack { max-width: none; }

/* Accueil : bleu nuit imprimé, motif fixe */
.welcome { background-color: var(--boy); position: relative; overflow: hidden; color: #fff; }
.welcome::before { content: ''; position: absolute; inset: -40%; background-image: var(--motif); opacity: .5; transform: rotate(-8deg); }
.welcome > * { position: relative; }
.welcome-sub { font-size: 18px; font-weight: 700; margin: 0 0 22px; }
.welcome .btn { border: 0; font-weight: 800; font-size: 18px; padding: 16px; }
#code-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }

/* Boutons et champs */
.btn {
  font: inherit; font-size: 16px; font-weight: 700; padding: 13px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.white { background: #fff; border: 0; color: #14213A; }
.btn.danger { color: var(--no); }
.btn.link { border: 0; background: none; color: var(--accent); padding: 8px 0; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 12px; }
input, select {
  font: inherit; font-size: 16px; width: 100%; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
input::placeholder { color: #8A93A3; }
input:focus, select:focus { outline: 2px solid var(--boy); outline-offset: 1px; }
label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* En-tête */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 20px 4px; }
.chip { background: var(--surface); box-shadow: 0 2px 8px rgba(34,50,74,.08); border: 0; border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 800; }
.swipe-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 4px 10px; min-height: 28px; }
.filter-chip { font: inherit; font-size: 13px; font-weight: 800; color: var(--accent); background: #E1ECF8; border: 0; border-radius: 99px; padding: 5px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; }
.gchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.gchip { font: inherit; font-size: 15px; font-weight: 800; padding: 11px 6px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: #A3ABB8; transition: background .15s ease, color .15s ease, transform .15s var(--spring); }
.gchip:active { transform: scale(.96); }
.gchip.on { color: #fff; border-color: transparent; }
.gchip.on.g-F { background: var(--girl); } .gchip.on.g-M { background: var(--boy); } .gchip.on.g-X { background: var(--mix); }
.gchip.on { text-shadow: 0 1px 4px rgba(34,50,74,.25); }
/* Lignes dépliables (Matchs, Mes choix) */
.list li.exp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; cursor: pointer; transition: box-shadow .2s ease; }
.list li.exp .more-txt { grid-column: 1 / -1; }
.list li.exp.open { box-shadow: 0 6px 18px rgba(34,50,74,.12); }
.list .chev { color: #A3ABB8; display: flex; transition: transform .2s ease; }
.list li.exp.open .chev { transform: rotate(180deg); color: var(--ink); }
.list .more-txt { display: none; padding: 10px 2px 2px 50px; }
.list li.exp.open .more-txt { display: block; }
.list li.exp.open.anim .more-txt { animation: fade .2s ease; }
.mean { margin: 0; font-size: 15px; line-height: 1.45; display: grid; gap: 6px; }
.mean p { margin: 0; }
.mean .m-var { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.mean .m-sense { font-size: 17px; font-weight: 700; }
.mean .m-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.mean .m-list li::marker { color: var(--muted); }
.mean .m-mood { font-style: italic; color: var(--muted); font-size: 14px; }
.mean.none { color: var(--muted); font-style: italic; }
.facts { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.list .supers { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.list .sl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #B5761A; background: #FDF1DC; padding: 3px 8px 3px 6px; border-radius: 99px; }
.list .sl svg { width: 14px; height: 14px; color: var(--star); }
.initials { margin-top: 14px; }
.initials-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.initials .lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.segmented.mini { margin: 0; padding: 3px; }
.segmented.mini button { padding: 5px 12px; font-size: 13px; }
.letters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.letter { font: inherit; font-size: 15px; font-weight: 800; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.letter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.letters.exclude .letter.active { background: var(--no); border-color: var(--no); text-decoration: line-through; }
.progress { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }

main { flex: 1; min-height: 0; position: relative; }
.view { height: 100%; overflow-y: auto; padding: 0 16px 24px; }
#view-swipe { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }

/* Cartes : visuel en haut, nom en bas à gauche sur un voile sombre (modèle des apps de swipe) */
.deck { flex: 1; position: relative; margin: 0 4px 18px; }
.card {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  color: #fff; background: var(--boy); box-shadow: 0 14px 34px rgba(34,50,74,.18);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform;
}
.card.g-F { background: var(--girl); }
.card.g-M { background: var(--boy); }
.card.g-X { background: var(--mix); }
.card .motif { position: absolute; inset: -30%; background-image: var(--motif); opacity: .55; transform: rotate(-8deg); pointer-events: none; }
.card .scrim { display: none; }
.card.back { transform: scale(.95) translateY(12px); box-shadow: 0 4px 14px rgba(34,50,74,.1); cursor: default; pointer-events: none; }
.card .info { position: static; padding: 0 22px; }
.card .row { display: flex; flex-direction: column; align-items: center; }
.card .row > div { position: relative; }
.card .name { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-weight: 600; font-size: 54px; line-height: 1.02; margin: 0; word-break: break-word; text-shadow: 0 2px 14px rgba(34,50,74,.3); }
.card .meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.card .tag { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: rgba(34,50,74,.28); padding: 5px 11px; border-radius: 99px; }
.card .info-btn {
  position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: #FFFFFF; color: var(--ink); font: italic 600 18px var(--serif);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.card.open .info-btn { background: rgba(255,255,255,.35); color: #fff; }
.card dl { position: relative; margin: 18px auto 0; width: max-content; max-width: 100%; text-align: left; background: rgba(34,50,74,.24); padding: 8px 14px; border-radius: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; font-weight: 700; }
.card dt { opacity: .75; font-weight: 600; }
.card dd { margin: 0; }
.card .details { display: none; }
.card .more { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font-size: 14px; font-weight: 800; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 99px; box-shadow: 0 2px 10px rgba(34,50,74,.18); white-space: nowrap; }
.card .more-close, .card.open .more-open { display: none; }
.card.open .more-close { display: inline; }
.card .sheet { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; background: #fff; color: var(--ink); border-radius: 22px; padding: 18px 18px 62px; text-align: left; transform: translate3d(0, calc(100% + 16px), 0); backface-visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 6px 20px rgba(34,50,74,.15); }
.card .sheet { max-height: calc(100% - 150px); overflow: hidden; overscroll-behavior: contain; line-height: 1.45; }
.card.open .sheet { overflow-y: auto; touch-action: pan-y; }
.card .info { transition: transform .28s cubic-bezier(.2,.8,.2,1); transform-origin: center; }
.card.open .sheet { transform: translate3d(0, 0, 0); }
.card.back .sheet, .card.back .more { display: none; }
.card.open .details { display: grid; animation: fade .2s ease; }

.stamp {
  position: absolute; top: 26px; font-family: var(--sans); font-size: 26px; font-weight: 800; padding: 4px 14px;
  border: 3px solid; border-radius: 14px; opacity: 0; pointer-events: none; background: rgba(255,255,255,.92);
}
.stamp.yes { left: 22px; color: var(--yes); transform: rotate(-12deg); }
.stamp.no { right: 22px; color: var(--no); transform: rotate(12deg); }
.stamp.later, .stamp.super { left: 50%; top: 40%; transform: translateX(-50%); font-size: 18px; }
.stamp.later { color: var(--muted); }
.stamp.super { color: var(--star); }

.end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; }
.end .t { font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 30px; margin: 0; }
.end p { margin: 0 0 8px; }

/* Boutons de swipe */
.actions { display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 24px; padding-bottom: 4px; }
.actions .later { justify-self: end; }
.actions .super { justify-self: start; }
.round {
  width: 70px; height: 70px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(34,50,74,.12); transition: transform .18s var(--spring);
}
.round:active { transform: scale(.88); }
.round.bump { animation: bump .32s var(--spring); }
.round.yes { color: var(--yes); }
.round.no { color: var(--no); }
.round.later, .round.super { width: 46px; height: 46px; }
.round.later { color: var(--muted); font: 800 20px var(--sans); }
.round.super { color: var(--star); }
.round:disabled { opacity: .35; }

/* Listes */
.toolbar { display: flex; gap: 8px; margin-bottom: 6px; }
.toolbar input { flex: 1; min-width: 0; padding: 10px 12px; }
.toolbar select { width: auto; padding: 10px; max-width: 46%; }
.star-filter { padding: 0 12px; color: #B8BFCB; display: flex; align-items: center; }
.star-filter[aria-pressed="true"] { color: var(--star); border-color: var(--star); }
.count { margin: 4px 2px 10px; font-size: 13px; font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { background: var(--surface); border-radius: 18px; padding: 12px 14px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 2px 8px rgba(34,50,74,.05); }
.list .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list .dot { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background-color: var(--boy); background-size: 56px; position: relative; overflow: hidden; }
.list .dot.g-F { background-color: var(--girl); }
.list .dot.g-X { background-color: var(--mix); }
.list .n { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 36; font-weight: 600; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.list .n .mini-star { color: var(--star); display: inline-flex; }
.list .n .mini-star svg { width: 16px; height: 16px; }
.list .d { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 1px; }
.list .empty { background: none; box-shadow: none; color: var(--muted); justify-content: center; text-align: center; }
.list .acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.list .fire { border: 0; background: none; padding: 6px; cursor: pointer; color: #D3D8E0; display: flex; transition: transform .2s var(--spring); }
.list .fire.on { color: var(--star); }
.list .fire:active { transform: scale(.8); }

.segmented { display: flex; background: #EEE7DC; border-radius: 16px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.segmented button { flex: 1; font: inherit; font-size: 14px; font-weight: 700; border: 0; background: none; padding: 9px 4px; border-radius: 12px; color: var(--muted); cursor: pointer; }
.segmented button.active { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 4px rgba(34,50,74,.12); }
.section, .panel { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: 0 2px 8px rgba(34,50,74,.05); }
.panel .segmented { margin-bottom: 0; }
.footnote { margin-top: 20px; text-align: center; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Onglets */
.tabbar { display: flex; background: var(--surface); box-shadow: 0 -2px 12px rgba(34,50,74,.06); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; font: inherit; font-size: 13px; font-weight: 700; border: 0; background: none; padding: 15px 4px; color: var(--muted); cursor: pointer; position: relative; }
.tabbar button.active { color: var(--ink); }
.tabbar button.active::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 18px; height: 3px; border-radius: 3px; background: var(--boy); transform: translateX(-50%); }
.badge { background: var(--no); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 6px; margin-left: 2px; }

/* Match */
.overlay { position: fixed; inset: 0; background: rgba(34,50,74,.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10; animation: fade .25s ease; }
.match-box { position: relative; overflow: hidden; width: 100%; max-width: 340px; border-radius: 32px; padding: 40px 24px 26px; text-align: center; color: #fff; background: var(--boy); animation: pop .5s var(--spring); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.match-box.g-F { background: var(--girl); } .match-box.g-X { background: var(--mix); }
.match-box .motif { position: absolute; inset: -30%; background-image: var(--motif); opacity: .5; transform: rotate(-8deg); }
.match-box > :not(.motif) { position: relative; }
.match-title { font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 30px; margin: 0 0 6px; text-shadow: 0 2px 12px rgba(34,50,74,.3); }
.match-name { font-family: var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-weight: 600; font-size: 56px; margin: 0 0 6px; text-shadow: 0 2px 16px rgba(0,0,0,.3); animation: rise .6s .15s var(--spring) both; }
.match-sub { font-weight: 700; margin: 0; }
.match-box .btn { margin-top: 22px; width: 100%; }

/* Effets */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.fx-p { position: absolute; }
.fx-wave { position: fixed; left: 0; right: 0; bottom: 0; height: 45vh; pointer-events: none; z-index: 11; transform: translateX(-110%); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px) scale(.9); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.12); } }

.list .mean .m-list li { display: list-item; background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; min-height: 0; grid-template-columns: none; }

/* Inscription : créer / rejoindre un couple */
.welcome .btn.ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.welcome .btn.link.light { color: #fff; font-size: 15px; font-weight: 700; text-decoration: underline; padding: 6px 0; }
.welcome .btn:disabled { opacity: .6; }
.onb { text-align: left; }
.onb label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.onb input { color: var(--ink); font-size: 17px; }
.onb .welcome-sub { text-align: center; margin: 0; }
.welcome .error { background: rgba(255,255,255,.92); color: #B3261E; border-radius: 12px; padding: 8px 12px; font-weight: 700; text-align: center; }
.code-input { text-transform: uppercase; letter-spacing: 6px; font-weight: 800; text-align: center; font-size: 24px !important; }
.big-code { font-family: var(--serif); font-size: 52px; font-weight: 700; letter-spacing: 8px; margin: 4px 0 8px; background: rgba(255,255,255,.95); color: var(--ink); padding: 8px 18px 8px 26px; border-radius: 18px; }
.onb-hint { max-width: 320px; margin: 0 0 18px; font-weight: 700; line-height: 1.4; text-align: center; }
.onb-hint.small, .small { font-size: 13px; }
.onb .onb-hint { margin: 0; }
.wait-banner { background: #FFF3D6; color: var(--ink); border-radius: 14px; padding: 9px 12px; margin: 0 4px 8px; font-size: 14px; text-align: center; cursor: pointer; }
.couple-panel { display: grid; gap: 4px; text-align: center; }
.couple-names { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.couple-panel .muted { margin: 0; }
.couple-code { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: 6px; }
.couple-panel .btn { margin-top: 8px; }
#me-chip { cursor: pointer; }
#screen-create .logo.big, #screen-join .logo.big { font-size: 42px; margin-bottom: 18px; }
.welcome .onb label, .welcome .onb-hint, .welcome .welcome-sub { color: #fff; text-shadow: 0 1px 8px rgba(34,50,74,.45); }

/* Titre + bouton d'affichage compact */
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-row h2 { margin-right: auto; }
.icon-btn { border: 0; background: var(--surface); color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(34,50,74,.08); cursor: pointer; margin-top: 10px; }
.icon-btn .i-one { display: none; }
.icon-btn.on { background: var(--ink); color: #fff; }
.icon-btn.on .i-one { display: inline; } .icon-btn.on .i-two { display: none; }

/* Listes compactes : un prénom par ligne */
.list.compact { gap: 4px; }
.list.compact li { padding: 7px 10px 7px 8px; border-radius: 12px; gap: 8px; }
.list.compact .who { gap: 8px; }
.list.compact .who > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.list.compact .dot { width: 20px; height: 20px; border-radius: 6px; background-size: 30px; }
.list.compact .n { font-size: 17px; white-space: nowrap; }
.list.compact .d { font-size: 12px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list.compact .sl { font-size: 11px; padding: 2px 6px 2px 4px; }
.list.compact .supers { flex-direction: row; }
.list.compact .btn.small { padding: 4px 9px; font-size: 13px; }
.list.compact .more-txt { padding-left: 28px; }
.list.compact .rk { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }

/* Classement */
#rank-who { margin-bottom: 10px; }
#rank-who button { flex: 1; }
.rank-cta { margin-bottom: 12px; text-align: center; display: grid; gap: 6px; }
.rank-cta p { margin: 0; }
.rank-group { margin: 14px 2px 6px; font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.rk { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; background: var(--boy); }
.rk.g-F { background: var(--girl); } .rk.g-X { background: var(--mix); }
.center-txt { text-align: center; }

/* Duels */
.duel { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); gap: 10px; }
.duel-title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0; text-align: center; }
.duel-sub { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; max-width: 360px; }
.duel-pair { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 380px; margin: 10px 0; }
.duel-vs { text-align: center; font-weight: 800; color: var(--muted); }
.duel-card { position: relative; overflow: hidden; border: 0; border-radius: 26px; min-height: 150px; padding: 18px; color: #fff; background: var(--boy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 10px 26px rgba(34,50,74,.16); transition: transform .15s var(--spring), box-shadow .15s ease; }
.duel-card.g-F { background: var(--girl); } .duel-card.g-X { background: var(--mix); }
.duel-card:active { transform: scale(.97); }
.duel-card.chosen { transform: scale(1.03); box-shadow: 0 0 0 4px var(--ink), 0 10px 26px rgba(34,50,74,.2); }
.duel-motif { position: absolute; inset: -30%; background-image: var(--motif); opacity: .5; transform: rotate(-8deg); pointer-events: none; }
.duel-name { position: relative; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.05; text-shadow: 0 2px 12px rgba(34,50,74,.3); word-break: break-word; }
.duel-tag { position: relative; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: rgba(34,50,74,.28); padding: 4px 10px; border-radius: 99px; }
.duel-bar { width: 100%; max-width: 380px; height: 6px; border-radius: 99px; background: #EEE7DC; overflow: hidden; }
.duel-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.duel-actions { display: flex; gap: 10px; width: 100%; max-width: 380px; margin-top: 6px; }
.duel-actions .btn { flex: 1; }
@media (min-height: 720px) { .duel-card { min-height: 190px; } }
