/* ═══════════ Tokens ═══════════ */
:root {
  --bg: #0a0b10;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .16);
  --text: #f3f4f8;
  --text-2: #aab0c0;
  --muted: #6e7488;
  --accent: #ff3d5a;
  --accent-2: #ff7a3d;
  --grad: linear-gradient(135deg, #ff3d5a, #ff7a3d);
  --alive: #2ee6a6;
  --dead: #ff3d5a;
  --bar: #2ee6a6;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Fond */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.g1 { width: 60vw; height: 60vw; left: -20vw; top: -25vw; background: radial-gradient(circle, #ff3d5a 0%, transparent 60%); }
.g2 { width: 50vw; height: 50vw; right: -18vw; bottom: -22vw; background: radial-gradient(circle, #2ee6a6 0%, transparent 60%); opacity: .25; }
.grain {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════ Coque ═══════════ */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(10, 11, 16, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand b { font-weight: 800; }
.logo {
  width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #0a0b10;
  display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 0 6px 18px rgba(255, 61, 90, .35);
}
.nav { margin: 0 auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.nav-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: transparent; border: 0; color: var(--text-2); font-weight: 500; transition: all .2s var(--ease);
}
.nav-btn svg { width: 17px; height: 17px; }
.nav-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-btn.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
.who {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; transition: all .2s var(--ease);
}
.who:hover { background: var(--surface-2); border-color: var(--border-2); }
.who svg { width: 14px; height: 14px; color: var(--muted); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #0a0b10; background: var(--pc, #a78bfa);
}
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 96px; }
.view { display: none; }
.view.active { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bottomnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(10, 11, 16, .8); backdrop-filter: blur(18px); border-top: 1px solid var(--border);
}
.bottomnav .nav-btn { flex: 1; flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 2px; border-radius: 12px; }
.bottomnav .nav-btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .appbar .nav, .brand-txt { display: none; }
  .appbar { justify-content: space-between; }
  .bottomnav { display: flex; }
  main { padding: 16px 14px 90px; }
}

/* ═══════════ Primitives ═══════════ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative;
}
.glass { background: rgba(14, 15, 22, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-2); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.error { color: var(--dead); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface-2); font-weight: 600; transition: all .18s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #0a0b10; box-shadow: 0 8px 24px rgba(255, 61, 90, .3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--dead); border-color: rgba(255, 61, 90, .35); background: transparent; }
.btn.danger:hover { background: rgba(255, 61, 90, .12); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

input[type=text], input[type=search], input[type=number], .select {
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 61, 90, .18); }
input::placeholder { color: var(--muted); }
.search { position: relative; display: flex; align-items: center; min-width: 260px; }
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding-left: 38px; }
.mini { width: 64px; padding: 6px 8px; text-align: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.inline-form input { flex: 1; min-width: 140px; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e7488' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); gap: 2px; }
.seg button { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; transition: all .18s var(--ease); }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.seg .avatar { width: 24px; height: 24px; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar.end { justify-content: flex-end; margin-top: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge.ok { background: rgba(46, 230, 166, .14); color: var(--alive); }
.badge.ko { background: rgba(255, 61, 90, .14); color: var(--dead); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* ═══════════ Choix du joueur ═══════════ */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(10, 11, 16, .6); backdrop-filter: blur(20px); }
.gate-inner { text-align: center; max-width: 720px; width: 100%; animation: rise .5s var(--ease); }
.gate h1 { margin: 0 0 6px; font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: -.03em; }
.gate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 560px) { .gate-cards { grid-template-columns: 1fr; } }
.gate-card {
  position: relative; overflow: hidden; text-align: left; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); transition: all .25s var(--ease);
}
.gate-card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--pc); opacity: .18; filter: blur(50px); transition: opacity .25s; }
.gate-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.gate-card:hover::before { opacity: .35; }
.gate-card .avatar { width: 56px; height: 56px; font-size: 24px; margin-bottom: 14px; box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 45%, transparent); }
.gate-card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.gate-card p { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }
.gate-card .stat { display: flex; gap: 18px; margin-top: 16px; }
.gate-card .stat b { display: block; font-size: 20px; font-weight: 800; }
.gate-card .stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ═══════════ Stepper ═══════════ */
.stepper { position: relative; margin-bottom: 24px; }
.stepper-track { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.stepper-track i { display: block; height: 100%; width: 25%; background: var(--grad); transition: width .4s var(--ease); }
.stepper ol { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.stepper li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: var(--text-2); }
.stepper li.current { color: var(--text); }
.stepper li.current b { background: var(--grad); color: #0a0b10; }
.stepper li.done { color: var(--text-2); cursor: pointer; }
.stepper li.done:hover { background: var(--surface-2); }
.stepper li.done b { background: rgba(46, 230, 166, .18); color: var(--alive); }
.stepper .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.stepper .val:empty { display: none; }
.stepper li.current .val, .stepper li.done .lbl:has(+ .val:not(:empty)) { display: none; }
@media (max-width: 700px) {
  .stepper ol { grid-template-columns: auto auto auto 1fr; }
  .stepper .lbl, .stepper li.done .val { display: none; }
  .stepper li.current .lbl { display: inline; }
}

.step { display: none; }
.step.active { display: block; animation: rise .3s var(--ease); }
.step-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

/* Tueurs */
.killer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 500px) { .killer-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.killer-card {
  position: relative; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface-2); overflow: hidden; text-align: left; transition: all .22s var(--ease);
}
.killer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.killer-card .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: var(--muted); letter-spacing: .04em; }
.killer-card .names { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 10px 10px; background: linear-gradient(to top, rgba(6, 7, 12, .95), rgba(6, 7, 12, .6) 55%, transparent); }
.killer-card .names { display: block; }
.killer-card .fr { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.15; letter-spacing: -.01em; }
.killer-card .en { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.killer-card:hover, .killer-card:focus-visible { transform: translateY(-4px) scale(1.02); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 61, 90, .4); outline: none; }
.killer-card:hover img { transform: scale(1.06); }
.killer-card.hidden { display: none; }

/* Maps */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.realm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px; }
.realm h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.realm .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.map-btn, .perk-btn {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13.5px; font-weight: 500; text-align: left; transition: all .16s var(--ease);
}
.map-btn:hover, .perk-btn:hover { border-color: var(--border-2); background: var(--surface-3); transform: translateY(-1px); }
.map-btn.hidden, .realm.hidden, .perk-btn.hidden, .perk-group.hidden { display: none; }

/* Compétences */
.perk-bar { position: sticky; top: 64px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .perk-bar { top: 58px; } }
.perk-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px dashed var(--border-2); color: var(--muted); }
.slot.filled { border: 1px solid transparent; background: var(--grad); color: #0a0b10; font-weight: 600; cursor: pointer; }
.slot.filled:hover { opacity: .8; text-decoration: line-through; }
.perk-actions { display: flex; gap: 8px; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.perk-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px; }
.perk-group.own { grid-column: 1 / -1; border-color: rgba(255, 61, 90, .4); background: linear-gradient(135deg, rgba(255, 61, 90, .08), transparent 60%); }
.perk-group h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.perk-group.own h3 { color: var(--accent); }
.perk-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perk-btn.selected { background: var(--grad); border-color: transparent; color: #0a0b10; font-weight: 600; }

/* Vie ou mort */
.fate { display: flex; gap: 10px; height: calc(100vh - 220px); min-height: 440px; }
.fate-half {
  flex: 1; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; padding: 0;
  background: #000; display: flex; align-items: flex-end; justify-content: center; transition: flex .45s var(--ease), border-color .3s;
}
.fate-half .scene { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease), filter .4s; filter: saturate(.9); }
.fate-half:hover, .fate-half:focus-visible { flex: 1.35; outline: none; }
.fate-half.alive:hover { border-color: var(--alive); }
.fate-half.dead:hover { border-color: var(--dead); }
.fate-half:hover .scene { transform: scale(1.05); filter: saturate(1.15) brightness(1.1); }
.fate-txt { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 12%; text-shadow: 0 4px 30px rgba(0, 0, 0, .9); }
.fate-label { font-size: clamp(36px, 7vw, 84px); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.fate-sub { font-size: 14px; color: rgba(255, 255, 255, .8); margin-top: 8px; font-weight: 500; }
.alive .fate-label { color: #dcfff2; } .dead .fate-label { color: #ffd6dc; }
@media (max-width: 640px) { .fate { flex-direction: column; height: calc(100vh - 200px); } .fate-half:hover { flex: 1.25; } }

/* ═══════════ Stats ═══════════ */
.hero { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.ring-card { display: grid; place-items: center; min-height: 220px; }
.ring { width: 190px; height: 190px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-track { stroke: var(--surface-3); }
.ring-fill { stroke: var(--alive); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 8px rgba(46, 230, 166, .5)); }
.ring-txt { position: absolute; text-align: center; }
.ring-txt b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.ring-txt span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.tile .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.tile .sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.duel { margin-bottom: 16px; }
.duel-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.duel-side { display: flex; align-items: center; gap: 12px; }
.duel-side.right { flex-direction: row-reverse; text-align: right; }
.duel-side .avatar { width: 40px; height: 40px; font-size: 16px; }
.duel-side b { display: block; font-size: 16px; }
.duel-side span { font-size: 12px; color: var(--text-2); }
.duel-vs { font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 800; }
.duel-rows { margin-top: 14px; display: grid; gap: 8px; }
.duel-row { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.duel-row .l, .duel-row .r { font-weight: 700; font-variant-numeric: tabular-nums; }
.duel-row .r { text-align: right; }
.duel-row .m { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.duel-row .win { color: var(--alive); }

.ranked { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; transition: background .15s; }
.rank-row:hover { background: var(--surface-2); }
.rank-row .thumb { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.rank-row .thumb.txt { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); }
.rank-row .name { min-width: 0; }
.rank-row .name b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .bar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 5px; }
.rank-row .bar i { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; transition: width .6s var(--ease); }
.ranked.freq .bar i { background: #5aa9ff; }
.freq-tiles { margin-bottom: 16px; }
.rank-row .nums { text-align: right; font-variant-numeric: tabular-nums; }
.rank-row .nums b { display: block; font-size: 15px; font-weight: 800; }
.rank-row .nums span { font-size: 11px; color: var(--muted); }

/* ═══════════ Historique ═══════════ */
.history { display: grid; gap: 8px; }
.h-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s; }
.h-row:hover { border-color: var(--border-2); }
.h-row .thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-3); }
.h-row .thumb.txt { display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.h-row .main b { font-weight: 700; }
.h-row .main .map { color: var(--text-2); font-size: 13px; }
.h-row .perks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.h-row .side { display: flex; align-items: center; gap: 12px; }
.h-row time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.h-row .del { width: 30px; height: 30px; padding: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--muted); }
.h-row .del:hover { color: var(--dead); border-color: rgba(255, 61, 90, .35); }
.h-row .del svg { width: 15px; height: 15px; }
.h-day { margin: 14px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { .h-row { grid-template-columns: 40px 1fr; } .h-row .side { grid-column: 1 / -1; justify-content: space-between; } }

/* Listes */
.custom-group { margin-bottom: 10px; }
.custom-group strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.custom-group .chip button { margin-left: 6px; border: 0; background: transparent; color: var(--muted); padding: 0; }
.custom-group .chip button:hover { color: var(--dead); }

/* ═══════════ Toast ═══════════ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: rgba(20, 22, 30, .92); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  backdrop-filter: blur(16px); animation: toastIn .3s var(--ease); max-width: calc(100vw - 32px);
}
@media (max-width: 760px) { .toast { bottom: 84px; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast .t-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; flex: none; }
.toast .t-icon.ok { background: rgba(46, 230, 166, .18); color: var(--alive); }
.toast .t-icon.ko { background: rgba(255, 61, 90, .18); color: var(--dead); }
.toast .t-icon.err { background: rgba(255, 170, 60, .18); color: #ffb347; }
.toast .t-body b { display: block; font-size: 14px; }
.toast .t-body span { font-size: 12px; color: var(--text-2); }
.toast .t-undo { margin-left: 6px; }

/* Skeleton */
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
