/* Ngola — menu, profil, boutique, classement et apparences.
   Rien ici ne change le plateau tant qu'aucune apparence n'est équipée :
   les classes skin-* ne s'appliquent qu'aux objets achetés. */

/* ---------- Apparences : billes ---------- */
body.skin-billes-ivoire .seed { background: radial-gradient(circle at 32% 26%, #fff 0%, #f7efdf 30%, #e2d3b4 65%, #a8936b 100%); }
body.skin-billes-rubis .seed { background: radial-gradient(circle at 32% 26%, #ffd9d2 0%, #e2543c 28%, #a3201a 62%, #4e0807 100%); }
body.skin-billes-emeraude .seed { background: radial-gradient(circle at 32% 26%, #d8ffe9 0%, #44c088 28%, #1d7a50 62%, #0b3322 100%); }
body.skin-billes-nuit .seed { background: radial-gradient(circle at 30% 24%, #f2f4ff 0%, #7c86c9 18%, #2b2f5c 55%, #0b0c1f 100%); }
/* Cauri : la bille par defaut (et l'apparence « cauris » des anciens profils).
   Laiton reste au choix dans la boutique. Un vrai coquillage vu de dessous (fente ondulee, dents, reflet nacre). */
body:not([class*="skin-billes-"]) .seed, body.skin-billes-cauris .seed { width: 12px; height: 16px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Cdefs%3E%3CradialGradient id='g' cx='38%25' cy='30%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23fffdf6'/%3E%3Cstop offset='.35' stop-color='%23f6ead0'/%3E%3Cstop offset='.72' stop-color='%23d9c194'/%3E%3Cstop offset='1' stop-color='%238f7448'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='65' rx='45' ry='60' fill='url(%23g)' stroke='%235a3c19' stroke-opacity='.55' stroke-width='3'/%3E%3Cellipse cx='50' cy='65' rx='33' ry='50' fill='none' stroke='%23fffaeb' stroke-opacity='.5' stroke-width='3'/%3E%3Cellipse cx='33' cy='38' rx='10' ry='17' fill='%23fff' opacity='.5'/%3E%3Cpath d='M50 16C43 42 57 86 50 114' fill='none' stroke='%233a240d' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M39 36h8M39 56h8M41 76h8M42 96h7M53 30h7M53 50h8M52 70h8M51 90h8' stroke='%237a5527' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.7)); }
body:not([class*="skin-billes-"]) .seed::after, body.skin-billes-cauris .seed::after { display: none; }
body[class*="skin-billes-"]:not(.skin-billes-laiton) .seed::after { opacity: .75; }

/* ---------- Apparences : plateau ---------- */
body.skin-plateau-ebene .board-wrap { background: linear-gradient(155deg, rgba(40,30,26,.92), rgba(8,6,5,.98)), repeating-linear-gradient(88deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px); }
body.skin-plateau-baobab .board-wrap { background: linear-gradient(155deg, rgba(196,150,96,.9), rgba(120,82,44,.95)), repeating-linear-gradient(88deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px); }
body.skin-plateau-baobab .hole { background: radial-gradient(circle at 50% 38%, #2a180b 0%, #4a2c14 60%, #6b4526 100%); }
body.skin-plateau-kente .board-wrap { background:
  linear-gradient(155deg, rgba(42,26,16,.55), rgba(20,12,6,.75)),
  repeating-linear-gradient(90deg, #b8860b 0 18px, #1f5e3b 18px 30px, #8c2416 30px 40px, #d9a441 40px 46px, #14100a 46px 54px); }
body.skin-plateau-fleuve .board-wrap { background:
  radial-gradient(ellipse at 20% 0%, rgba(120,200,230,.25), transparent 55%),
  repeating-radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.05) 0 2px, transparent 2px 16px),
  linear-gradient(155deg, #10425c, #06202e); }
body.skin-plateau-fleuve .hole { background: radial-gradient(circle at 50% 38%, #031018 0%, #072633 60%, #0d3a4e 100%); }

/* ---------- Apparences : camps ---------- */
body.skin-camps-savane .player.p1 .badge { background: linear-gradient(160deg, #f1c27d, #b0741f); }
body.skin-camps-savane .player.p2 .badge { background: linear-gradient(160deg, #a7b46b, #55612a); color: #141a07; }
body.skin-camps-braise .player.p1 .badge { background: linear-gradient(160deg, #ff9a52, #c2361b); color: #2a0d05; }
body.skin-camps-braise .player.p2 .badge { background: linear-gradient(160deg, #707070, #2a2a2a); color: #f4ead8; }
body.skin-camps-royal .player.p1 .badge { background: linear-gradient(160deg, #6fa0ff, #1d3f9b); color: #f4ead8; }
body.skin-camps-royal .player.p2 .badge { background: linear-gradient(160deg, #f06a5a, #8c1d14); color: #fff2d6; }

/* ---------- Boutons ajoutés à la barre d'état ---------- */
.hub-quick { display: inline-flex; gap: 8px; }
.hub-quick button, .hub-btn {
  font: 600 13px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .04em;
  color: var(--ivoire, #f4ead8); background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.35); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.hub-quick button:hover, .hub-btn:hover { background: rgba(201,162,39,.22); }
.hub-quick .hub-quit { border-color: rgba(163,58,36,.6); background: rgba(163,58,36,.16); }

/* ---------- Le menu (plein écran) ---------- */
.hub {
  position: fixed; inset: 0; z-index: 900; overflow-y: auto; overscroll-behavior: contain;
  color: #f4ead8; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    radial-gradient(ellipse at 50% -10%, #5c3a20 0%, transparent 55%),
    radial-gradient(ellipse at 50% 120%, #3a2413 0%, transparent 60%),
    linear-gradient(170deg, #1c1109 0%, #2a1a10 45%, #150c06 100%);
  -webkit-overflow-scrolling: touch;
}
.hub[hidden] { display: none; }
.hub-inner { max-width: 980px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 48px; }
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub-brand { display: flex; align-items: baseline; gap: 10px; }
.hub-brand h1 { margin: 0; font-size: 34px; letter-spacing: .08em; color: #e8c95a; text-shadow: 0 2px 0 #6b4a1c; }
.hub-brand small { font: 600 10px/1 ui-sans-serif, system-ui; letter-spacing: .3em; color: #a08a6a; text-transform: uppercase; }
.hub-wallet { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font: 600 13px/1 ui-sans-serif, system-ui; background: rgba(0,0,0,.35); border: 1px solid rgba(201,162,39,.3);
}
.chip.gold { color: #f0d27a; }
button.chip { cursor: pointer; color: inherit; }
.cauri { display: inline-block; width: 12px; height: 15px; border-radius: 50% / 60%; background: radial-gradient(ellipse at 40% 30%, #fffdf6, #e9d7ae 60%, #a88d5b); position: relative; vertical-align: -2px; }
.cauri::after { content: ""; position: absolute; left: 50%; top: 18%; width: 1.5px; height: 64%; background: #7a5a26; transform: translateX(-50%); border-radius: 1px; }

.hub-me { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; padding: 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(74,47,28,.75), rgba(42,26,16,.85)); border: 1px solid rgba(201,162,39,.22); }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #6b4526, #2a1a10); border: 2px solid #d4a53a; }
.hub-me .who { flex: 1; min-width: 0; }
.hub-me .who b { font-size: 20px; color: #f0d27a; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-me .who span { font: 500 12px/1.5 ui-sans-serif, system-ui; color: #c9b48f; }
.xpbar { height: 7px; border-radius: 4px; background: rgba(0,0,0,.45); margin-top: 6px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a227, #f0d27a); border-radius: 4px; transition: width .6s; }

.hub-daily { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(47,107,79,.45), rgba(47,107,79,.15)); border: 1px solid rgba(111,174,140,.35);
  font: 500 14px/1.4 ui-sans-serif, system-ui; }
.hub-daily[hidden] { display: none; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.tile {
  text-align: left; cursor: pointer; color: inherit; font: inherit; padding: 18px 16px; min-height: 112px;
  border-radius: 18px; border: 1px solid rgba(201,162,39,.2); display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(74,47,28,.8), rgba(42,26,16,.9));
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); border-color: #d4a53a; box-shadow: 0 12px 30px -12px rgba(0,0,0,.9); outline: none; }
.tile .ico { font-size: 26px; }
.tile b { font-size: 19px; color: #f0d27a; letter-spacing: .02em; }
.tile span { font: 500 13px/1.45 ui-sans-serif, system-ui; color: #c9b48f; }
.tile.primary { background: linear-gradient(160deg, #8a5a1c, #4a2f1c); border-color: #d4a53a; }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; }

.hub-section { margin-top: 26px; }
.hub-section h2 { font-size: 20px; color: #e8c95a; margin: 0 0 10px; letter-spacing: .04em; }
.hub-section p.note { font: 500 13px/1.5 ui-sans-serif, system-ui; color: #a08a6a; margin: 6px 0; }

.challenges { display: grid; gap: 8px; }
.challenge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.28); font: 500 14px/1.3 ui-sans-serif, system-ui; }
.challenge .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; min-width: 60px; }
.challenge .bar i { display: block; height: 100%; background: #6fae8c; }
.challenge.done { opacity: .6; }
.challenge .lbl { flex: 2; min-width: 0; }

/* ---------- Pages du menu ---------- */
.hub-page[hidden] { display: none; }
.hub-back { margin: 6px 0 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { font: 600 13px/1 ui-sans-serif, system-ui; padding: 9px 14px; border-radius: 999px; cursor: pointer; color: #f4ead8;
  background: rgba(0,0,0,.3); border: 1px solid rgba(201,162,39,.25); }
.tabs button.on { background: #c9a227; color: #2a1a10; border-color: #c9a227; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(74,47,28,.8), rgba(42,26,16,.9));
  border: 1px solid rgba(201,162,39,.2); display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.item.on { border-color: #6fae8c; box-shadow: 0 0 0 1px #6fae8c inset; }
.item .preview { height: 74px; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; background: #241509; }
.item .preview .pseed { width: 22px; height: 22px; border-radius: 50% 50% 46% 46% / 54% 54% 46% 46%; margin: 0 3px; box-shadow: 0 2px 4px rgba(0,0,0,.6); display: inline-block; }
.item .preview .pseed.cauri { width: 18px; height: 24px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Cdefs%3E%3CradialGradient id='g' cx='38%25' cy='30%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23fffdf6'/%3E%3Cstop offset='.35' stop-color='%23f6ead0'/%3E%3Cstop offset='.72' stop-color='%23d9c194'/%3E%3Cstop offset='1' stop-color='%238f7448'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='50' cy='65' rx='45' ry='60' fill='url(%23g)' stroke='%235a3c19' stroke-opacity='.55' stroke-width='3'/%3E%3Cellipse cx='50' cy='65' rx='33' ry='50' fill='none' stroke='%23fffaeb' stroke-opacity='.5' stroke-width='3'/%3E%3Cellipse cx='33' cy='38' rx='10' ry='17' fill='%23fff' opacity='.5'/%3E%3Cpath d='M50 16C43 42 57 86 50 114' fill='none' stroke='%233a240d' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M39 36h8M39 56h8M41 76h8M42 96h7M53 30h7M53 50h8M52 70h8M51 90h8' stroke='%237a5527' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.item .name { font: 600 14px/1.2 ui-sans-serif, system-ui; }
.item button { font: 700 13px/1 ui-sans-serif, system-ui; padding: 9px; border-radius: 10px; border: 0; cursor: pointer; background: linear-gradient(180deg, #f0d27a, #c9a227); color: #2a1a10; }
.item button.ghost { background: rgba(255,255,255,.08); color: #f4ead8; }
.item button:disabled { opacity: .55; cursor: default; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pack { padding: 16px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, #4a2f1c, #2a1a10); border: 1px solid rgba(201,162,39,.35); }
.pack b { display: block; font-size: 26px; color: #f0d27a; }
.pack .bonus { font: 700 11px/1 ui-sans-serif; color: #6fae8c; letter-spacing: .1em; }
.pack button { margin-top: 10px; width: 100%; }
.demo-note { padding: 10px 12px; border-radius: 12px; background: rgba(163,58,36,.18); border: 1px solid rgba(163,58,36,.45); font: 500 13px/1.5 ui-sans-serif, system-ui; margin-bottom: 12px; }

.board-table { width: 100%; border-collapse: collapse; font: 500 14px/1.3 ui-sans-serif, system-ui; }
.board-table td, .board-table th { padding: 9px 6px; border-bottom: 1px solid rgba(201,162,39,.12); text-align: left; }
.board-table th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a08a6a; }
.board-table tr.me td { background: rgba(201,162,39,.12); }
.board-table .rk { width: 34px; color: #f0d27a; font-weight: 700; }
.tiers { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.tier { padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.3); font: 500 12px/1.35 ui-sans-serif, system-ui; }
.tier b { display: block; color: #f0d27a; font-size: 13px; }

.form { display: grid; gap: 8px; max-width: 420px; }
.form input, .form select { font: 500 15px/1 ui-sans-serif, system-ui; padding: 11px 12px; border-radius: 10px; background: #160e08; color: #f4ead8; border: 1px solid #4a3320; }
.form .row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.stat { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.28); font: 500 12px/1.4 ui-sans-serif, system-ui; color: #c9b48f; }
.stat b { display: block; font-size: 20px; color: #f4ead8; }
.ledger { list-style: none; margin: 0; padding: 0; font: 500 13px/1.4 ui-sans-serif, system-ui; }
.ledger li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ledger .plus { color: #8fd3a8; } .ledger .minus { color: #f0a08f; }
.range { width: 100%; accent-color: #c9a227; }

/* Recherche de partie classée */
.searching { text-align: center; padding: 30px 10px; }
.searching .spin { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(201,162,39,.2); border-top-color: #e8c95a; animation: hubspin 1s linear infinite; }
@keyframes hubspin { to { transform: rotate(360deg); } }

/* ---------- Fenêtres, annonces ---------- */
.hub-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(8,5,2,.72); padding: 16px; }
.hub-modal[hidden] { display: none; }
.hub-card { width: min(440px, 100%); padding: 22px; border-radius: 20px; background: linear-gradient(180deg, #4a2f1c, #2a1a10); border: 1px solid #d4a53a; color: #f4ead8;
  font: 500 15px/1.5 ui-sans-serif, system-ui; box-shadow: 0 30px 80px -20px #000; }
.hub-card h3 { margin: 0 0 8px; font: 700 22px/1.2 "Iowan Old Style", Georgia, serif; color: #f0d27a; }
.hub-card .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.hub-card .actions button { font: 700 14px/1 ui-sans-serif, system-ui; padding: 11px 16px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(201,162,39,.4); background: rgba(255,255,255,.06); color: #f4ead8; }
.hub-card .actions .go { background: linear-gradient(180deg, #f0d27a, #c9a227); color: #2a1a10; border: 0; }
.hub-card .actions .danger { background: #a33a24; border-color: #a33a24; }
.report-lines { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.report-lines li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }

.toasts { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 1100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 11px 14px; border-radius: 14px; background: rgba(20,12,6,.94); border: 1px solid #d4a53a; color: #f4ead8; font: 600 14px/1.35 ui-sans-serif, system-ui;
  box-shadow: 0 12px 30px -8px #000; animation: toastin .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes toastin { from { transform: translateY(-14px) scale(.96); opacity: 0; } }

/* Annonce de combo au-dessus du plateau */
.combo { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 800; pointer-events: none;
  font: 900 clamp(28px, 7vw, 56px)/1 "Iowan Old Style", Georgia, serif; color: #f0d27a; letter-spacing: .06em;
  text-shadow: 0 3px 0 #6b4a1c, 0 0 30px rgba(240,210,122,.6); animation: combo 1.1s ease-out forwards; white-space: nowrap; }
@keyframes combo { 0% { transform: translate(-50%, -40%) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 950; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 50% / 60%; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 620px) {
  .hub-brand h1 { font-size: 28px; }
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 100px; padding: 14px 12px; }
  .tile b { font-size: 16px; }
  .tile span { font-size: 12px; }
  .hub-quick button { padding: 8px 11px; font-size: 12px; }
  .board-table .hide-sm { display: none; }
}
@media (max-width: 360px) { .hub-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .combo, .confetti i, .toast, .searching .spin { animation-duration: .01s !important; } }

/* Les boutons du jeu sont en capitales espacées : le menu reprend une écriture normale,
   sinon les tuiles débordent sur téléphone (mesuré à 390 px). */
.hub button, .hub-card button, .hub-quick button, .toast { text-transform: none; letter-spacing: normal; }
.hub .tile b, .hub .hub-me b { letter-spacing: .02em; }
.tile, .hub-me .who, .item { min-width: 0; overflow-wrap: anywhere; }
.hub .tabs button { letter-spacing: .04em; }
.item .preview { display: flex; align-items: center; justify-content: center; }
.hub button, .hub button * { white-space: normal; }
.hub .tabs button, .hub .hub-btn, .hub .chip { white-space: nowrap; }
.hub [hidden], .tile[hidden] { display: none !important; }

/* ---------- Connexion ---------- */
.chip.login { color: #2a1a10; background: #f0d27a; border-color: #f0d27a; font-weight: 700; }
.hub-btn.go { background: #f0d27a; color: #2a1a10; border-color: #f0d27a; font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; color: #f0d27a; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Menu v4 : un seul chemin, un bouton principal par écran ----------
   Trois niveaux de boutons : principal (doré plein, un seul par écran),
   secondaire (simple contour), lien (texte). Les onglets du bas remplacent
   la grille de tuiles. */
.hub-inner { padding-bottom: calc(110px + env(safe-area-inset-bottom)); max-width: 560px; }
.hub-top { flex-wrap: nowrap; }
.hub-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 4px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hub-who .avatar { width: 44px; height: 44px; font-size: 22px; }
.hub-who .who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-who .who b { font-size: 17px; color: #f4ead8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-who .who span { font: 500 13px/1.3 ui-sans-serif, system-ui; color: #c9b48f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-wallet { flex-wrap: nowrap; flex-shrink: 0; }
.hub-wallet .chip { min-height: 36px; box-sizing: border-box; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #c9b48f; display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn:hover { color: #f0d27a; background: rgba(201,162,39,.1); }
.kicker { display: block; font: 600 12px/1.2 ui-sans-serif, system-ui; letter-spacing: .1em; text-transform: uppercase; color: #c9b48f; margin-bottom: 10px; }
.hub-page[data-page="home"] .hub-daily { margin: 16px 0 0; }

.play-card { margin-top: 18px; padding: 22px; border-radius: 24px; background: #3a2413; display: flex; flex-direction: column; gap: 6px; }
.play-card .kicker { margin-bottom: 0; }
.play-title { font: 400 28px/1.15 "Iowan Old Style", Palatino, Georgia, serif; color: #f4ead8; }
.play-detail { font: 500 15px/1.4 ui-sans-serif, system-ui; color: #c9b48f; margin-bottom: 10px; }
.big-go { height: 56px; border-radius: 16px; border: 0; background: #f0d27a; color: #2a1a10; font: 700 18px/1 ui-sans-serif, system-ui; cursor: pointer; width: 100%; }
.big-go:hover { background: #fff3cf; }
.big-go[hidden], .play-alt[hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; color: #f0d27a; font: 500 15px/1.4 ui-sans-serif, system-ui; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.play-alt { align-self: center; padding: 10px; text-decoration: none; }
.rules-link { display: block; margin: 26px auto 0; text-decoration: none; color: #c9b48f; }

.online-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ghost-btn { min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(240,210,122,.45); background: transparent; color: #f0d27a;
  font: 600 16px/1.2 ui-sans-serif, system-ui; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ghost-btn small { font: 500 12px/1.2 ui-sans-serif, system-ui; color: #c9b48f; }
.ghost-btn:hover { background: rgba(240,210,122,.08); }
.ghost-btn.disabled { opacity: .45; }

.defi { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font: 500 15px/1.35 ui-sans-serif, system-ui; }
.defi-line { display: flex; justify-content: space-between; gap: 10px; }
.defi-count { color: #c9b48f; white-space: nowrap; font-variant-numeric: tabular-nums; }
.defi-bar { height: 6px; border-radius: 3px; background: #2a1a10; overflow: hidden; }
.defi-bar i { display: block; height: 100%; border-radius: 3px; background: #6fae8c; }
.defi.done .defi-count { color: #6fae8c; }

.hub-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 560px; margin: 0 auto; padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
  background: #160e07; border-top: 1px solid rgba(240,210,122,.14); }
.hub-tabs button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none;
  color: #a08a6a; font: 500 12px/1 ui-sans-serif, system-ui; cursor: pointer; }
.hub-tabs button.on { color: #f0d27a; font-weight: 700; }
.hub-tabs button.disabled { opacity: .45; }

.sheet { margin-top: 18px; padding: 18px 20px 24px; border-radius: 24px; background: #2a1a10; display: flex; flex-direction: column; gap: 20px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font: 400 28px/1.1 "Iowan Old Style", Palatino, Georgia, serif; color: #f4ead8; }
.np-group .kicker { margin-bottom: 8px; }
.np-group[hidden] { display: none; }
.np-group .note { margin: 8px 0 0; font: 500 14px/1.45 ui-sans-serif, system-ui; color: #c9b48f; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #1c120a; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #f4ead8; font: 500 15px/1 ui-sans-serif, system-ui; cursor: pointer; }
.seg button.on { background: #f0d27a; color: #2a1a10; font-weight: 700; }
.hub-guest { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.25); font: 500 14px/1.4 ui-sans-serif, system-ui; color: #c9b48f; }
.hub-guest[hidden] { display: none; }
.hub-guest .linkish { font-weight: 700; }

/* Accueil plus vivant : mini plateau, carte chaude, boutons en ligne avec icone. */
.play-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #6a4125 0%, #3a2413 55%, #2a1a10 100%); box-shadow: inset 0 0 0 1px rgba(240,210,122,.25), 0 10px 24px rgba(0,0,0,.35); }
.play-board { display: grid; gap: 6px; margin-bottom: 14px; padding: 10px; border-radius: 16px; background: linear-gradient(155deg, rgba(122,80,44,.78), rgba(42,26,16,.96)); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.play-board div { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.play-board i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #150c06 0%, #241509 60%, #3a2413 100%); box-shadow: inset 0 3px 6px rgba(0,0,0,.85); position: relative; }
.play-board i.on::after { content: ""; position: absolute; left: 32%; top: 24%; width: 36%; height: 52%; border-radius: 50%; background: radial-gradient(ellipse at 40% 30%, #fffdf6, #f3e6c8 55%, #cdb88d); box-shadow: 0 1px 2px rgba(0,0,0,.7); transform: rotate(-20deg); }
.ghost-btn .ico { display: block; font-size: 22px; margin-bottom: 4px; }
.ghost-btn { background: linear-gradient(160deg, #3a2413, #2a1a10); box-shadow: inset 0 0 0 1px rgba(240,210,122,.22); }
.ghost-btn:hover { box-shadow: inset 0 0 0 1px rgba(240,210,122,.6); }
