/* =============================================================================
   Teddy Rush — thème « café cosy » du Coffe Cute
   Nappe à carreaux roses, papier crème, tables en bois, boutons bonbon.
   ========================================================================== */

@font-face {
    font-family: "Teddy Display";
    src: url("fonts/display.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #fbe6ec;
    --paper: #fffaf4;
    --paper-2: #fff3e8;
    --ink: #4b2a22;
    --ink-soft: #8d6157;
    --pink: #e8638f;
    --pink-deep: #c44a76;
    --pink-soft: #f9c9d9;
    --pink-pale: #fff0f5;
    --gold: #e0a91c;
    --gold-deep: #b98710;
    --gold-pale: #fff5d6;
    --coffee: #8a5a3c;
    --wood: #c99668;
    --wood-deep: #9b6b45;
    --mint: #3fae7a;
    --mint-pale: #e6f7ee;
    --red: #d9534f;
    --line: #f0cfd9;
    --b: #e8638f;
    --e: #9b6b45;
    --a: #d99a12;
    --radius: 18px;
    --shadow: 0 2px 0 rgba(196, 74, 118, .08), 0 10px 26px rgba(75, 42, 34, .10);
    --shadow-lift: 0 4px 0 rgba(196, 74, 118, .12), 0 16px 34px rgba(75, 42, 34, .16);
    --display: "Teddy Display", "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    /* Nappe vichy rose. */
    background-color: var(--bg);
    background-image:
        linear-gradient(90deg, rgba(232, 99, 143, .07) 50%, transparent 50%),
        linear-gradient(rgba(232, 99, 143, .07) 50%, transparent 50%);
    background-size: 44px 44px;
}

button { font: inherit; color: inherit; border: none; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }

#app { max-width: 1120px; margin: 0 auto; padding: 10px 14px 24px; min-height: 100vh; }

.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
.empty { color: var(--ink-soft); font-size: 13px; align-self: center; }
.section-title, h2, h3 { font-family: var(--display); font-style: italic; }
.offline { opacity: .5; pointer-events: none; }

/* ----- Boutons bonbon ----- */

.btn {
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f58bae, var(--pink));
    color: #fff;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--pink-deep);
    transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 var(--pink-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn.secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 var(--line); }
.btn.gold { background: linear-gradient(180deg, #f5c94e, var(--gold)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--gold-deep); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.big { padding: 13px 24px; font-size: 16px; }
.icon-btn, .bell {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--paper);
    font-size: 19px;
    box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 var(--line);
}
.icon-btn:active, .bell:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.pill.cash { color: var(--pink-deep); }
.pill.points { background: var(--gold-pale); box-shadow: inset 0 0 0 1px #f0d68a; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; }
.chip.done { background: var(--mint-pale); box-shadow: inset 0 0 0 1px #bfe8d0; }

.notice {
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--gold-pale);
    box-shadow: inset 0 0 0 1px #f0d68a;
    font-size: 14px;
}

/* ----- Écran de chargement ----- */

.splash { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 80vh; text-align: center; }
.splash-title {
    font-family: var(--display);
    font-size: 54px;
    font-style: italic;
    color: var(--pink);
    text-shadow: 0 3px 0 #fff, 0 8px 22px rgba(232, 99, 143, .4);
    animation: float 2.4s ease-in-out infinite;
}
.splash-sub { color: var(--ink-soft); }

/* ----- Barre du haut ----- */

.topnav {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -10px -14px 14px;
    padding: 10px 16px;
    background: rgba(255, 250, 244, .94);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(75, 42, 34, .06);
}
.brand { font-family: var(--display); font-style: italic; color: var(--pink); font-size: 21px; }
.bell.ring { animation: ring 1.6s ease-in-out infinite; }
.bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    padding: 1px 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 0 0 2px var(--paper);
}

/* ----- Accueil ----- */

.home, .screen, .lobby, .board { display: grid; gap: 14px; }

.hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .7), transparent 40%),
        linear-gradient(135deg, #ffd6e4, #fff1dc 70%);
    box-shadow: var(--shadow);
}
.hero::after {
    content: "☕ 🧁 💗 🍩 ✨";
    position: absolute;
    right: 18px;
    bottom: 10px;
    font-size: 18px;
    letter-spacing: 6px;
    opacity: .5;
}
.hero img { width: 136px; border-radius: 16px; box-shadow: 0 10px 24px rgba(196, 74, 118, .35); transform: rotate(-4deg); }
.hero h1 { margin: 0; font-family: var(--display); font-size: 46px; font-style: italic; color: var(--pink); text-shadow: 0 3px 0 #fff, 0 6px 16px rgba(232, 99, 143, .3); line-height: 1; }
.hero p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 520px; }

.player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.player-info { flex: 1; display: grid; gap: 5px; min-width: 0; }
.player-name { font-family: var(--display); font-style: italic; font-size: 22px; }
.player-title { color: var(--pink-deep); font-weight: 800; font-size: 14px; }
.level {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5c94e, var(--gold));
    color: #fff;
    font-family: "Trebuchet MS", sans-serif;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    box-shadow: 0 2px 0 var(--gold-deep);
}

.greeting { display: flex; align-items: center; gap: 12px; }
.greeting-bubble {
    position: relative;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: 15px;
}
.greeting-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--paper);
    transform: translateY(-50%) rotate(45deg);
}
.greeting-bubble strong { color: var(--pink); }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: start;
    align-content: end;
    min-height: 118px;
    text-align: left;
    padding: 16px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile:active { transform: translateY(1px); }
.tile.primary {
    grid-column: span 3;
    min-height: 150px;
    padding: 22px 26px;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(135deg, var(--pink), #f39cba);
    color: #fff;
    box-shadow: 0 5px 0 var(--pink-deep), 0 16px 34px rgba(196, 74, 118, .35);
}
.tile.primary .tile-label { font-size: 30px; }
.tile.primary .tile-sub { color: #ffe9f1; font-size: 14px; }
.tile.learn { background: linear-gradient(135deg, var(--paper), var(--gold-pale)); }
.tile-icon { font-size: 30px; }
.tile-label { font-family: var(--display); font-style: italic; font-size: 19px; }
.tile-sub { font-size: 12px; color: var(--ink-soft); position: relative; }
.tile-art.fan { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); }
.tile-face { position: absolute; right: 12px; top: 12px; }
.tile-face .mascot-face { width: 54px; height: 54px; }

.home-foot { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----- Éventails de cartes ----- */

.fan { position: relative; display: inline-block; flex: none; }
.fan img {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 7px;
    box-shadow: 0 6px 14px rgba(75, 42, 34, .3);
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(calc(var(--i) * 14deg)) translateY(calc(var(--i) * var(--i) * 4px));
    transition: transform .2s;
}
/* La carte du milieu passe devant les autres. */
.fan img:nth-child(2) { z-index: 2; }
.fan.sm { width: 70px; height: 62px; }
.fan.sm img { width: 40px; }
.fan.md { width: 110px; height: 96px; }
.fan.md img { width: 62px; }
.fan.lg { width: 170px; height: 140px; }
.fan.lg img { width: 92px; }
.tile:hover .fan img, .deck-box:hover .fan img { transform: translateX(-50%) rotate(calc(var(--i) * 20deg)) translateY(calc(var(--i) * var(--i) * 6px - 4px)); }

/* ----- La table : avant la partie ----- */

.duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    border-radius: 28px;
    /* Table en bois du café. */
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 26px),
        linear-gradient(180deg, var(--wood), var(--wood-deep));
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 8px 0 #7d5233, 0 18px 34px rgba(75, 42, 34, .25);
}
.seat {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    min-height: 260px;
    padding: 18px 14px;
    border-radius: 22px;
    text-align: center;
    background: var(--paper);
    box-shadow: 0 4px 0 rgba(75, 42, 34, .15);
    overflow: hidden;
}
.seat::before { content: ""; position: absolute; inset: 0 0 auto; height: 70px; background: var(--deck, var(--pink-soft)); opacity: .45; }
.seat > * { position: relative; }
.seat.empty { background: rgba(255, 250, 244, .7); border: 3px dashed rgba(255, 255, 255, .7); justify-content: center; align-content: center; }
.seat.empty::before { display: none; }
.seat.mine { box-shadow: 0 0 0 4px var(--pink), 0 4px 0 rgba(75, 42, 34, .15); }
.seat.ready { box-shadow: 0 0 0 4px var(--mint), 0 4px 0 rgba(75, 42, 34, .15); }
.chair { font-size: 54px; filter: drop-shadow(0 4px 0 rgba(75, 42, 34, .15)); }
.seat-name { font-family: var(--display); font-style: italic; font-size: 20px; }
.seat-title { color: var(--pink-deep); font-weight: 800; font-size: 13px; }
.seat-deck { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-radius: 14px; background: var(--paper-2); font-size: 13px; text-align: left; }
.ready-ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    width: 140px;
    padding: 4px 0;
    background: var(--mint);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transform: rotate(35deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    z-index: 2;
}
.vs { display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; }
.vs span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f5c94e, var(--gold));
    color: #fff;
    font-family: var(--display);
    font-style: italic;
    font-size: 30px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 var(--gold-deep), 0 0 0 6px rgba(255, 255, 255, .35);
    animation: pulse 2s ease-in-out infinite;
}
.vs small { max-width: 110px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

.setup { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.section-title { margin: 0; font-size: 20px; color: var(--ink); }
.deck-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deck-box {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 14px 14px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--deck) 45%, #fff), var(--paper));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--deck) 60%, #fff), 0 4px 0 color-mix(in srgb, var(--deck) 70%, #6b3a2a);
    transition: transform .12s;
}
.deck-box:hover { transform: translateY(-3px); }
.deck-box.selected { box-shadow: inset 0 0 0 3px var(--pink), 0 0 0 4px rgba(232, 99, 143, .25), 0 4px 0 var(--pink-deep); }
.deck-box:disabled { opacity: .5; filter: grayscale(.7); transform: none; }
.deck-box-name { font-family: var(--display); font-style: italic; font-size: 20px; }
.deck-box-style { font-size: 13px; color: var(--ink-soft); max-width: 280px; }
.deck-box-foot { font-size: 12px; color: var(--ink-soft); }

.chef-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.chef-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 132px;
    padding: 10px;
    border-radius: 18px;
    background: var(--paper-2);
    box-shadow: inset 0 0 0 2px var(--line);
    text-align: center;
    transition: transform .12s;
}
.chef-card:hover { transform: translateY(-3px); }
.chef-card img { width: 100%; border-radius: 9px; box-shadow: 0 6px 14px rgba(75, 42, 34, .25); }
.chef-card.selected { box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 4px rgba(224, 169, 28, .25); background: var(--gold-pale); }
.chef-card.none { justify-content: center; min-height: 120px; }
.chef-none { font-size: 34px; }
.chef-card-name { font-weight: 800; font-size: 13px; }
.setup-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.lobby-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: rgba(255, 250, 244, .8);
    font-size: 14px;
}

/* ----- Le plateau ----- */

.bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.bar.active { box-shadow: 0 0 0 3px var(--pink), var(--shadow); background: linear-gradient(90deg, var(--pink-pale), var(--paper) 60%); }
.bar .who { display: grid; line-height: 1.15; }
.bar .name { font-family: var(--display); font-style: italic; font-size: 18px; }
.bar .spacer { flex: 1; }
.score { display: flex; gap: 3px; }
.score i { width: 10px; height: 10px; border-radius: 50%; background: #f3dde4; }
.score i.on { background: radial-gradient(circle at 35% 35%, #ffe28a, var(--gold)); box-shadow: 0 0 6px rgba(224, 169, 28, .5); }

.zone {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    min-height: 104px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: rgba(255, 250, 244, .55);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
    overflow-x: auto;
}
.zone-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--display);
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    align-self: center;
}

.teddy { position: relative; width: 74px; flex: none; padding: 0; background: none; text-align: center; transition: transform .15s; }
.teddy img { width: 74px; border-radius: 8px; display: block; box-shadow: 0 4px 10px rgba(75, 42, 34, .25); }
.teddy:hover { transform: translateY(-3px); }
.teddy.paused img { filter: grayscale(.85) brightness(.92); transform: rotate(-7deg); }
.teddy.selectable img { outline: 3px solid var(--mint); outline-offset: 2px; animation: pulse 1.2s ease-in-out infinite; }
.teddy.selected img { outline: 3px solid var(--pink); outline-offset: 2px; }
.teddy .gourm { position: absolute; top: -6px; right: -6px; background: var(--pink); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 5px; box-shadow: 0 2px 0 var(--pink-deep); }
.teddy .zz { position: absolute; top: 6px; left: 4px; font-size: 16px; }
.stats { display: flex; justify-content: center; gap: 2px; margin-top: 4px; font-size: 11px; font-weight: 800; }
.stats span { padding: 0 3px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stats .b { color: var(--b); }
.stats .e { color: var(--e); }
.stats .a { color: var(--a); }
.stats .up { background: var(--mint-pale); }

.middle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ardoise {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 220px;
    padding: 8px 14px;
    border-radius: 14px;
    /* Ardoise de craie du café. */
    background: linear-gradient(180deg, #3b3346, #2b2535);
    color: #f6efe6;
    box-shadow: inset 0 0 0 4px var(--wood), 0 4px 0 #7d5233;
    font-size: 13px;
}
.ardoise strong { font-family: var(--display); font-style: italic; }
.ardoise img { width: 40px; border-radius: 5px; }

/* Tables du café */
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.table {
    position: relative;
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 10px;
    border-radius: 22px;
    background: var(--paper);
    box-shadow: inset 0 -6px 0 var(--wood), 0 6px 0 var(--wood-deep), 0 14px 26px rgba(75, 42, 34, .18);
}
.table.target { cursor: pointer; box-shadow: inset 0 -6px 0 var(--wood), 0 0 0 3px var(--mint), 0 6px 0 var(--wood-deep); }
.table.winnable { background: linear-gradient(180deg, #fffbe8, var(--paper)); box-shadow: inset 0 -6px 0 var(--wood), 0 0 0 4px var(--gold), 0 0 22px rgba(224, 169, 28, .45), 0 6px 0 var(--wood-deep); }
.table-side { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; min-height: 22px; }
.table-side .teddy, .table-side .teddy img { width: 56px; }
.table-side .stats { flex-direction: column; align-items: center; gap: 1px; font-size: 10px; }
.table-side .stats span { min-width: 34px; }
.client { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; }
.client img, .client .noimg { width: 82px; border-radius: 8px; box-shadow: 0 5px 12px rgba(75, 42, 34, .25); }
.client .noimg { aspect-ratio: 530 / 742; display: grid; place-items: center; background: var(--paper-2); font-size: 11px; text-align: center; padding: 4px; }
.client-name { font-family: var(--display); font-style: italic; font-size: 15px; line-height: 1.15; }
.client-points { color: var(--gold-deep); font-weight: 800; font-size: 13px; }
.demand { display: grid; gap: 3px; margin-top: 5px; font-size: 12px; }
.demand-row { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 4px; align-items: center; }
.demand-row .need { font-weight: 800; }
.demand-row .need.b { color: var(--b); }
.demand-row .need.e { color: var(--e); }
.demand-row .need.a { color: var(--a); }
.demand-head { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.tot { text-align: center; border-radius: 8px; padding: 2px 0; background: #f6e7ec; font-weight: 800; }
.tot.ok { background: var(--mint-pale); color: #23784f; }
.empty-table { color: var(--ink-soft); font-size: 13px; text-align: center; padding: 26px 0; }
.hint { font-weight: 800; color: #23784f; }
.hint.partial { color: var(--ink-soft); font-weight: 700; }
.table .hint { text-align: center; font-size: 13px; }

/* Main du joueur, en éventail */
.hand { display: flex; justify-content: center; padding: 18px 10px 8px; overflow-x: auto; }
.card {
    position: relative;
    flex: none;
    width: 100px;
    margin: 0 -8px;
    padding: 0;
    background: none;
    transform: rotate(var(--tilt, 0deg));
    transform-origin: 50% 120%;
    transition: transform .15s;
}
.card img { width: 100px; border-radius: 9px; display: block; box-shadow: 0 6px 14px rgba(75, 42, 34, .28); }
.card:hover, .card.selected { transform: rotate(0) translateY(-14px) scale(1.06); z-index: 2; }
.card.selected img { outline: 3px solid var(--pink); outline-offset: 2px; }
.card.playable img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 16px rgba(232, 99, 143, .35); }
.card.unaffordable img { filter: saturate(.35) brightness(.94); }
.card .cost {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 0 var(--pink-deep);
}

.panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow);
}
.panel img { width: 128px; border-radius: 10px; box-shadow: 0 8px 18px rgba(75, 42, 34, .25); }
.panel h4 { margin: 0 0 4px; font-family: var(--display); font-style: italic; font-size: 20px; }
.panel p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.panel .buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chef { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.chef img { width: 38px; border-radius: 5px; box-shadow: 0 3px 6px rgba(75, 42, 34, .25); }
.log {
    max-height: 140px;
    overflow-y: auto;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: 13px;
    line-height: 1.5;
}
.log div { border-bottom: 1px dashed #f0dbe2; padding: 2px 0; }

/* ----- Fenêtres ----- */

.overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(75, 42, 34, .45); backdrop-filter: blur(3px); }
.modal {
    width: min(560px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 26px;
    background: var(--paper);
    text-align: center;
    box-shadow: 0 24px 60px rgba(75, 42, 34, .35);
    animation: pop .35s ease-out;
}
.modal h2 { margin: 0; font-size: 30px; color: var(--pink); }
.modal .hand { flex-wrap: wrap; gap: 10px; }
.modal .hand .card { margin: 0; }
.modal.win { box-shadow: 0 0 0 4px var(--gold), 0 0 0 10px rgba(224, 169, 28, .2), 0 24px 60px rgba(75, 42, 34, .35); }
.end-emoji { font-size: 60px; line-height: 1; animation: bounce-in .6s cubic-bezier(.2, 1.6, .4, 1); }
.confetti-rain { position: fixed; inset: 0; z-index: 11; overflow: hidden; pointer-events: none; }
/* Deux pluies de confettis, puis ils restent sortis de l'écran. */
.confetti-rain i { position: absolute; top: -40px; font-style: normal; font-size: 26px; animation: rain 3.2s linear 2 both; }
/* Fenêtre mise à jour sans être rouverte (voir keepOverlay dans client/main.js). */
.overlay.still .modal, .overlay.still .end-emoji { animation: none; }
.overlay.still .confetti-rain { display: none; }
.results { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--gold-pale); box-shadow: inset 0 0 0 1px #f0d68a; text-align: left; }
.result-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; font-size: 14px; }
.result-challenge, .result-xp { display: grid; gap: 5px; font-size: 13px; }
.result-unlocks { font-size: 13px; font-weight: 800; color: var(--pink-deep); }
.tuto-end { display: flex; gap: 12px; align-items: center; text-align: left; }

/* ----- Écrans du menu ----- */

.reward-card { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); font-size: 14px; }
.reward-card.done { background: linear-gradient(180deg, var(--mint-pale), var(--paper)); }
.reward-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.reward-head strong { font-family: var(--display); font-style: italic; font-size: 17px; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bar-track { height: 12px; border-radius: 999px; background: #f6e2e9; overflow: hidden; box-shadow: inset 0 1px 2px rgba(75, 42, 34, .12); }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), #f5a3c0 50%, var(--gold)); transition: width .5s; }
.sheet-items { display: grid; gap: 5px; }
.sheet-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--pink-pale); font-size: 14px; }
.sheet-item.done { background: var(--mint-pale); }
.sheet-item.done span:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(35, 120, 79, .45); }
.gain { color: var(--mint); font-weight: 800; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats-row div { display: grid; justify-items: center; padding: 12px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.stats-row strong { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--pink); }
.stats-row span { font-size: 12px; color: var(--ink-soft); }

.ranking { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 36px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-size: 14px; }
.rank-row.me { box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow); background: var(--pink-pale); }
.rank-pos { font-size: 20px; text-align: center; }
.rank-name { display: grid; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.badge { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(255, 250, 244, .6); color: var(--ink-soft); font-size: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.badge.on { background: linear-gradient(180deg, var(--gold-pale), var(--paper)); color: var(--ink); box-shadow: inset 0 0 0 2px #f0d68a, var(--shadow); }
.badge-emoji { font-size: 28px; }
.badge-name { font-weight: 800; font-size: 14px; }

.profile-editor h3 { margin: 8px 0 0; font-size: 19px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.preview { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, #ffe4ee, #fff4dc); box-shadow: var(--shadow); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-size: 11px; transition: transform .12s; }
.pick:hover:not(:disabled) { transform: translateY(-2px); }
.pick.on { box-shadow: 0 0 0 3px var(--pink), var(--shadow); background: var(--pink-pale); }
.pick.locked { opacity: .45; filter: grayscale(.9); cursor: not-allowed; box-shadow: none; background: rgba(255, 250, 244, .5); }
.pick-name { font-weight: 800; text-align: center; line-height: 1.1; }
.pick-progress { position: absolute; top: 5px; right: 5px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; }
.title-list, .frame-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pick.title, .pick.frame { justify-items: start; text-align: left; padding: 10px 12px; font-size: 13px; }
.pick.frame { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.pick.frame .muted { grid-column: 2; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); grid-row: span 2; }

.notif-list { display: grid; gap: 8px; }
.notif-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-size: 14px; }
.notif-row.unread { box-shadow: 0 0 0 2px var(--pink), var(--shadow); background: var(--pink-pale); }
.notif-icon { font-size: 22px; text-align: center; }

/* ----- Avatars et mascottes ----- */

.avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; padding: 3px; background: var(--pink-soft); box-shadow: 0 3px 8px rgba(75, 42, 34, .18); }
.avatar-face {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #fff;
    background-size: 230%;
    background-position: 52% 34%;
    background-repeat: no-repeat;
}
.avatar-face.client { background-size: 210%; background-position: 50% 42%; }
.avatar.robot .avatar-face { display: grid; place-items: center; font-size: 60%; background: #eef0ff; }
.avatar.sm { width: 38px; height: 38px; font-size: 28px; }
.avatar.md { width: 54px; height: 54px; font-size: 40px; }
.avatar.lg { width: 80px; height: 80px; font-size: 56px; }
.avatar.xl { width: 112px; height: 112px; font-size: 80px; padding: 5px; }

.mascot-face {
    display: inline-block;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: var(--pink-soft);
    background-size: 230%;
    background-position: 52% 34%;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(232, 99, 143, .35);
}

.mascot-pop {
    position: fixed;
    right: 14px;
    top: 74px;
    z-index: 15;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: min(380px, calc(100vw - 28px));
    padding: 10px 16px 10px 10px;
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 0 0 2px var(--pink-soft), var(--shadow-lift);
    font-size: 14px;
}
.mascot-pop .mascot-face { width: 52px; height: 52px; }
.mascot-pop.fresh { animation: pop .35s ease-out; }
.mascot-text strong { color: var(--pink); }

/* Coach du tutoriel */
.coach {
    position: sticky;
    top: 6px;
    z-index: 6;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--pink), var(--shadow-lift);
}
.coach.fresh { animation: pop .35s ease-out; }
.coach.small { align-items: center; position: static; box-shadow: 0 0 0 2px var(--pink-soft), var(--shadow); }
.coach-body { flex: 1; display: grid; gap: 6px; }
.coach-name { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--pink); }
.coach-mood { font-size: 20px; }
.coach-text { font-size: 15px; line-height: 1.5; }
.coach-hint { font-size: 13px; color: var(--red); font-weight: 800; }
.coach-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coach-step { font-size: 12px; color: var(--ink-soft); }
.coach-dots { display: flex; gap: 3px; }
.coach-dots i { width: 8px; height: 8px; border-radius: 50%; background: #f3dde4; }
.coach-dots i.on { background: var(--pink); }
.coach-wait { font-weight: 800; color: var(--mint); animation: bounce 1s infinite; }
.glow { position: relative; z-index: 2; outline: 4px solid var(--gold) !important; outline-offset: 3px; border-radius: 14px; animation: glow 1.2s ease-in-out infinite; }

/* ----- Notifications, annonces, son ----- */

.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; max-width: 90vw; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; text-align: center; box-shadow: var(--shadow-lift); }
.notif-stack { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 8px; width: min(430px, calc(100vw - 24px)); pointer-events: none; }
.notif-toast { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 3px var(--gold), var(--shadow-lift); font-size: 14px; font-weight: 800; }
.notif-toast.fresh { animation: drop .45s cubic-bezier(.2, 1.4, .4, 1); }

.turn-splash { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; pointer-events: none; }
.turn-splash span {
    padding: 16px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), #f5a3c0);
    color: #fff;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(26px, 6vw, 46px);
    box-shadow: 0 6px 0 var(--pink-deep), 0 16px 40px rgba(232, 99, 143, .5);
    animation: splash 1.3s ease-out forwards;
}

.table.served { animation: served-glow 1.8s ease-out; }
.served-burst { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.served-points { font-family: var(--display); font-style: italic; font-size: 36px; color: var(--pink); text-shadow: 0 3px 0 #fff, 0 0 16px #fff; animation: float-up 1.8s ease-out forwards; }
.table.served.theirs .served-points { color: var(--ink-soft); }
.served-burst .confetti { position: absolute; top: 28%; font-size: 24px; letter-spacing: 6px; animation: burst 1.6s ease-out forwards; }
.table.served.theirs .confetti { display: none; }

.sound-panel { position: fixed; top: 66px; right: 12px; z-index: 28; display: grid; gap: 10px; width: min(340px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 2px var(--pink-soft), var(--shadow-lift); animation: pop .25s ease-out; }
.vol-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-size: 14px; }
.vol-row input[type="range"] { grid-column: 1; width: 100%; accent-color: var(--pink); }
.vol-label { grid-column: 1 / -1; font-weight: 800; }
.vol-value { grid-column: 2; grid-row: 2; min-width: 40px; font-size: 12px; color: var(--ink-soft); text-align: right; }
.vol-row .btn { grid-column: 1 / -1; justify-self: start; }

/* ----- Animations ----- */

@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-16px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 169, 28, .55); } 50% { box-shadow: 0 0 0 12px rgba(224, 169, 28, 0); } }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
@keyframes splash { 0% { transform: scale(.6); opacity: 0; } 20% { transform: scale(1.08); opacity: 1; } 35% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: scale(1.04) translateY(-10px); opacity: 0; } }
@keyframes served-glow { 0% { box-shadow: 0 0 0 0 rgba(232, 99, 143, .6); } 40% { box-shadow: 0 0 0 12px rgba(232, 99, 143, .25); } 100% { box-shadow: inset 0 -6px 0 var(--wood), 0 6px 0 var(--wood-deep); } }
@keyframes float-up { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 20% { transform: translateY(0) scale(1.15); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-44px) scale(1); opacity: 0; } }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1.5) translateY(-30px); opacity: 0; } }
@keyframes bounce-in { from { transform: scale(.2) rotate(-20deg); } to { transform: none; } }
@keyframes rain { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .confetti-rain { display: none; }
}

/* ----- Téléphone ----- */

@media (max-width: 720px) {
    #app { padding: 6px 8px 16px; }
    .topnav { margin: -6px -8px 10px; padding: 8px 10px; }
    .brand { font-size: 17px; }
    .hero { gap: 12px; padding: 14px; }
    .hero img { width: 86px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 13px; }
    .hero::after { display: none; }
    .player-card { flex-wrap: wrap; gap: 12px; }
    .player-card .player-info { flex: 1 1 160px; }
    .player-card > .btn { flex: 1 1 100%; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tile.primary { grid-column: span 2; }
    .tile.primary .tile-label { font-size: 24px; }
    .tile-art.fan { right: 4px; transform: translateY(-50%) scale(.72); }
    .reward-grid, .deck-boxes { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }

    .duel { grid-template-columns: 1fr; padding: 12px; }
    .vs { grid-auto-flow: column; gap: 10px; }
    .vs span { width: 56px; height: 56px; font-size: 22px; }
    .seat { min-height: 0; }
    .fan.lg { width: 140px; height: 118px; }
    .fan.lg img { width: 76px; }
    .chef-card { width: 108px; }

    .tables { gap: 6px; }
    .table { padding: 6px; border-radius: 16px; }
    .client { grid-template-columns: 1fr; gap: 4px; }
    .client img, .client .noimg { width: 100%; max-width: 92px; margin: 0 auto; }
    .client-name { font-size: 12px; }
    .client-points { font-size: 11px; }
    .demand { font-size: 10px; }
    .demand-row { grid-template-columns: 1.3fr 1fr 1fr; gap: 2px; }
    .demand-head { display: none; }
    .table-side .teddy, .table-side .teddy img { width: 40px; }
    .table-side .stats { font-size: 9px; gap: 1px; }
    .teddy, .teddy img { width: 60px; }
    .teddy .stats { font-size: 9px; gap: 1px; }
    .stats span { padding: 0 1px; }
    .zone { min-height: 84px; }
    .card, .card img { width: 78px; }
    .card { margin: 0 -10px; }
    .bar { padding: 8px 10px; gap: 6px; }
    .bar .score { display: none; }
    .panel { grid-template-columns: 1fr; }
    .panel img { width: 96px; }
    .modal { padding: 16px; }
}

/* Decks personnalisés */
.custom-decks { display: grid; gap: 10px; }
.custom-deck { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.custom-deck.broken { opacity: .8; box-shadow: inset 0 0 0 2px #f3c2c2; }
.deck-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 3; }
.deck-name { flex: 1; min-width: 160px; padding: 8px 12px; border-radius: 12px; border: 1px solid #f0cfd9; font: inherit; font-weight: 700; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.deck-tile { display: grid; justify-items: center; gap: 3px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #f0cfd9; text-align: center; }
.deck-tile.in { box-shadow: inset 0 0 0 2px #e0658f, 0 4px 12px rgba(224, 101, 143, .2); }
.deck-tile img { width: 86px; border-radius: 8px; }
.deck-tile-name { font-size: 13px; font-weight: 800; line-height: 1.2; }
.deck-tile-ctrl { display: flex; align-items: center; gap: 6px; }
.deck-box.custom { --deck: #c7b3ef; }

/* Rangs classés */
.rank-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #fff3c4; color: #8a6a10; vertical-align: middle; }
.rank-badge.big { font-size: 16px; padding: 4px 14px; }
.rank-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rank-ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-ladder span { display: grid; justify-items: center; padding: 4px 10px; border-radius: 12px; background: #f6eef0; color: #b8a3a8; font-size: 13px; font-weight: 700; }
.rank-ladder span.on { background: #fff3c4; color: #8a6a10; }
.rank-ladder small { font-weight: 400; font-size: 11px; }
.result-rank { padding: 8px 10px; border-radius: 12px; background: #fff3c4; font-size: 14px; }

/* Semaine de lancement */
.launch-banner {
    padding: 12px 16px;
    border-radius: 18px;
    color: #4b2a22;
    background: linear-gradient(120deg, #ffd6e5, #fff1c7, #e9defc);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 6px 16px rgba(224, 101, 143, .2);
}

/* Tournoi */
.tournament { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--paper, #fffaf4); box-shadow: inset 0 0 0 2px #f6d365, 0 6px 16px rgba(212, 160, 23, .18); }
.tournament.compact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.t-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.t-players { display: flex; flex-wrap: wrap; gap: 6px; }
.t-bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.t-round { display: grid; gap: 8px; align-content: center; min-width: 150px; }
.t-round-name { font-size: 12px; font-weight: 800; color: var(--ink-soft, #8d6157); text-transform: uppercase; }
.t-match { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #f0cfd9; font-size: 14px; }
.t-match.live { box-shadow: inset 0 0 0 2px #e0658f, 0 0 12px rgba(224, 101, 143, .35); }
.t-match .won { font-weight: 800; color: #23784f; }
.t-match .lost { color: #b8a3a8; text-decoration: line-through; }
.t-vs { font-size: 11px; color: #c9a3b1; }
.pill.gold { background: #fbf0cf; color: #8a6a10; }

/* Choix du niveau de l'IA */
.ai-levels { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }

/* ----- Bonus du Coffret Collection : tapis de jeu et protège-cartes ----- */
.board.mat-bunny {
    padding: 14px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .55) 3px, transparent 4px) 0 0 / 34px 34px,
        linear-gradient(160deg, #e9defc, #dff4ea 55%, #fde3ec);
    box-shadow: inset 0 0 0 3px rgba(199, 179, 239, .7);
}
.board.sleeve-bunny .hand .card img {
    border: 4px solid transparent;
    background: linear-gradient(135deg, #c7b3ef, #bfe8d6, #f7c5d6) border-box;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 14px rgba(110, 80, 160, .3);
}
.swatch.sleeve-classique { background: #fffaf4; }
.swatch.sleeve-bunny { background: linear-gradient(135deg, #c7b3ef, #bfe8d6, #f7c5d6); }
.swatch.mat-cafe { background: linear-gradient(160deg, #fbe6ec, #f3e3c3); }
.swatch.mat-bunny { background: linear-gradient(160deg, #e9defc, #dff4ea); }
.board.mat-teddy {
    padding: 14px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .6) 3px, transparent 4px) 0 0 / 34px 34px,
        linear-gradient(160deg, #fde3ec, #f3e3c3 60%, #fff0f5);
    box-shadow: inset 0 0 0 3px rgba(224, 101, 143, .45);
}
.board.sleeve-teddy .hand .card img {
    border: 4px solid transparent;
    background: linear-gradient(135deg, #f7c5d6, #f3e3c3, #e0658f) border-box;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 14px rgba(224, 101, 143, .3);
}
.swatch.sleeve-teddy { background: linear-gradient(135deg, #f7c5d6, #f3e3c3, #e0658f); }
.swatch.mat-teddy { background: linear-gradient(160deg, #fde3ec, #f3e3c3); }
