/* Ronceclair (ronceclair.html) — interface façon Dofus / Wakfu : bois sombre, or, parchemin, coins carrés en escalier */
:root { --rc-ink: #2a1810; --rc-w0: #1b120a; --rc-w1: #2e1d10; --rc-w2: #46301d; --rc-w3: #6e4a26; --rc-edge: #a8763a; --rc-gold: #ffd257; --rc-gold2: #e0a82a; --rc-parch: #f3e4bf; --rc-red: #e8584a; --rc-green: #58b36a; --rc-blue: #5aa8ff; }

.rc-stage { background: #1f3a2b; height: min(80vh, 760px); min-height: 520px; }
.rc-stage .game-canvas { cursor: crosshair; image-rendering: pixelated; }
.rc-stage.is-full .fs-exit { display: grid; }
.rc-ui { position: absolute; inset: 0; pointer-events: none; z-index: 4; font-family: "Nunito", system-ui, sans-serif; color: var(--rc-parch); }
.rc-ui button, .rc-ui input, .rc-ui .rcu-screen, .rc-ui .rcu-win, .rc-ui .rcu-bar, .rc-ui .rcu-joy { pointer-events: auto; }
.rc-ui [hidden] { display: none !important; }
.rcu-ico { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; }
.rcu-ico.sm { width: 18px; height: 18px; } .rcu-ico.big { width: 44px; height: 44px; }
.grow { flex: 1; }
.rc-ui kbd { color: var(--rc-ink); background: var(--rc-parch); border: 2px solid var(--rc-w3); padding: 0 5px; font: 800 .75rem "Nunito", system-ui, sans-serif; }

/* ---------- boutons ---------- */
.rcu-btn { font: inherit; font-weight: 900; cursor: pointer; border: 0; padding: 8px 18px; margin: 4px; background: linear-gradient(#ffd96b, #e0a82a 60%, #c98a1f); color: var(--rc-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: 0 -3px 0 0 var(--rc-ink), 0 3px 0 0 var(--rc-ink), -3px 0 0 0 var(--rc-ink), 3px 0 0 0 var(--rc-ink), 0 6px 0 0 #7a4f18; transition: transform .06s; }
.rcu-btn:hover { background: linear-gradient(#ffe69a, #f0b83a 60%, #d99a2a); }
.rcu-btn:active { transform: translateY(3px); box-shadow: 0 -3px 0 0 var(--rc-ink), 0 3px 0 0 var(--rc-ink), -3px 0 0 0 var(--rc-ink), 3px 0 0 0 var(--rc-ink), 0 3px 0 0 #7a4f18; }
.rcu-btn.big { font-size: 1.25rem; padding: 12px 34px; min-width: 240px; }
.rcu-btn.small { padding: 4px 12px; font-size: .9rem; }
.rcu-btn.alt { background: linear-gradient(#9be8a8, #58b36a 60%, #3d8a4e); color: #10301a; }
.rcu-btn.alt:hover { background: linear-gradient(#b8f4c2, #6fc87e 60%, #4a9a5a); }
.rcu-btn.danger { background: linear-gradient(#ff9a8a, #e8584a 60%, #b83a30); color: #3a0f0a; }
.rcu-btn[disabled] { filter: grayscale(.9) brightness(.7); cursor: not-allowed; }

/* ---------- écrans plein cadre (titre, sélection, création) ---------- */
.rcu-screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; z-index: 6; }
.rcu-scene { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.rcu-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(12, 24, 14, .15), rgba(10, 16, 10, .82) 100%); }
.rcu-screen > :not(.rcu-scene):not(.rcu-shade) { position: relative; }
.rcu-s-title { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.rcu-logo { margin-top: -2%; }
.rcu-logo-sq { width: 108px; height: 108px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.rcu-logo h1 { margin: 0; font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 900; color: var(--rc-gold); letter-spacing: .02em; line-height: 1;
  text-shadow: 0 4px 0 #a8661a, 0 8px 0 var(--rc-ink), -3px 0 0 var(--rc-ink), 3px 0 0 var(--rc-ink), 0 -3px 0 var(--rc-ink); }
.rcu-logo p { margin: 8px 0 0; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #fff3d0; text-shadow: 0 2px 0 var(--rc-ink); font-size: .95rem; }
.rcu-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; }
.rcu-menu .rcu-btn { min-width: 240px; }
.rcu-foot { position: absolute !important; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .8rem; opacity: .8; text-shadow: 0 1px 0 #000; }
.rcu-notice { position: absolute !important; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(70, 20, 14, .92); border: 3px solid var(--rc-red); padding: 8px 16px; margin: 0; font-weight: 800; max-width: 90%; z-index: 3; }
.rcu-notice.ok { background: rgba(14, 60, 30, .92); border-color: var(--rc-green); }
.rcu-joining { margin: auto; text-align: center; background: rgba(30, 20, 10, .9); border: 4px solid var(--rc-edge); padding: 28px 40px; }

.rcu-head { padding: 14px 20px 6px; text-align: center; }
.rcu-head h2 { margin: 0; font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 900; color: var(--rc-gold); text-shadow: 0 3px 0 var(--rc-ink), -2px 0 0 var(--rc-ink), 2px 0 0 var(--rc-ink); }
.rcu-sel { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px 1fr 310px; gap: 14px; padding: 8px 18px; }
.rcu-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.rcu-slot { display: flex; align-items: center; gap: 10px; font: inherit; text-align: left; cursor: pointer; padding: 8px 10px; color: var(--rc-parch);
  background: rgba(30, 20, 11, .88); border: 0; box-shadow: 0 -3px 0 0 var(--rc-w3), 0 3px 0 0 var(--rc-w3), -3px 0 0 0 var(--rc-w3), 3px 0 0 0 var(--rc-w3); margin: 3px 3px 3px 3px; }
.rcu-slot:hover { background: rgba(60, 40, 20, .92); }
.rcu-slot.on { background: rgba(90, 60, 22, .95); box-shadow: 0 -3px 0 0 var(--rc-gold), 0 3px 0 0 var(--rc-gold), -3px 0 0 0 var(--rc-gold), 3px 0 0 0 var(--rc-gold); }
.rcu-slot img { width: 46px; height: 46px; image-rendering: pixelated; flex: none; }
.rcu-slot b { display: block; font-size: 1rem; color: #fff; } .rcu-slot small { opacity: .85; font-size: .8rem; }
.rcu-slot.blank { opacity: .8; border-style: dashed; } .rcu-slot .plus { width: 46px; height: 46px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: var(--rc-gold); flex: none; }
.rcu-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.rcu-pedestal { position: relative; width: 270px; height: 260px; }
.rcu-pedestal::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 2px; height: 30px; background: radial-gradient(ellipse at center, rgba(255, 210, 87, .35), rgba(0, 0, 0, 0) 70%); z-index: 0; }
.rcu-pedestal.sm { width: 150px; height: 150px; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); }
.rcu-preview { position: relative; z-index: 1; image-rendering: pixelated; max-width: 100%; }
.rcu-name { margin: 6px 0 0; font-size: 1.7rem; font-weight: 900; color: #fff; text-shadow: 0 3px 0 var(--rc-ink), -2px 0 0 var(--rc-ink), 2px 0 0 var(--rc-ink); }
.rcu-sub { margin: 4px 0; font-size: .9rem; opacity: .92; }
.rcu-eqrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; max-width: 330px; }
.rcu-eqslot.empty { opacity: .45; }
.rcu-eqslot { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(20, 12, 6, .85); border: 3px solid var(--rc-w3); text-align: center; }
.rcu-eqslot small { font-size: .6rem; opacity: .6; } .rcu-eqslot .rcu-ico { width: 30px; height: 30px; }
.rcu-info { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.rcu-card { background: rgba(26, 16, 8, .9); border: 3px solid var(--rc-w3); padding: 10px 12px; }
.rcu-card h4 { margin: 0 0 6px; color: var(--rc-gold); font-size: 1rem; font-weight: 900; }
.rcu-card p { margin: 0; font-size: .86rem; line-height: 1.35; }
.rcu-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rcu-stats li { display: flex; justify-content: space-between; font-size: .88rem; border-bottom: 1px dashed rgba(255, 255, 255, .12); padding: 2px 0; } .rcu-stats b { color: #fff; }
.rcu-stats.tight li { font-size: .8rem; }
.rcu-spellrow { display: flex; flex-wrap: wrap; gap: 5px; } .rcu-sk { background: rgba(0, 0, 0, .4); border: 3px solid var(--rc-w3); padding: 2px; } .rcu-sk.lock { opacity: .35; filter: grayscale(1); }
.rcu-actions { display: flex; align-items: center; gap: 8px; padding: 8px 18px 16px; position: relative; }
.rcu-field { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; }
.rcu-field input, .rcu-join input, .rcu-link { font: inherit; font-weight: 800; background: #fff5dc; color: var(--rc-ink); border: 3px solid var(--rc-w3); padding: 7px 10px; width: 190px; box-sizing: border-box; }
.rcu-dice { font-size: 1.3rem; background: var(--rc-w2); border: 3px solid var(--rc-w3); cursor: pointer; padding: 3px 8px; }
.rcu-furs { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; flex-wrap: wrap; justify-content: center; }
.rcu-fur { display: flex; flex-direction: column; align-items: center; font: inherit; cursor: pointer; color: var(--rc-parch); background: rgba(20, 12, 6, .85); border: 3px solid var(--rc-w3); padding: 4px 8px; }
.rcu-fur img { width: 42px; height: 42px; image-rendering: pixelated; } .rcu-fur small { font-weight: 800; }
.rcu-fur.on { border-color: var(--rc-gold); background: rgba(90, 60, 22, .95); }
.rcu-bars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.rcu-bars li { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 800; }
.rcu-bars i { display: flex; gap: 2px; } .rcu-bars b { width: 14px; height: 10px; background: #1a1008; border: 1px solid #5a4028; } .rcu-bars b.on { background: linear-gradient(#ffe69a, #e0a82a); border-color: #ffd257; }
.rcu-skills { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 6px; max-height: 330px; overflow-y: auto; } .rcu-skills em { font-style: normal; color: var(--rc-gold); font-size: .72rem; font-weight: 700; }
.rcu-skills li { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; } .rcu-skills li b { display: block; color: #fff; } .rcu-skills small { opacity: .85; line-height: 1.25; display: block; }
.rcu-skills em { font-style: normal; color: var(--rc-gold); font-size: .72rem; }

/* ---------- fenêtres ---------- */
.rcu-win { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9; padding: 10px; box-sizing: border-box; }
.rcu-dim { position: absolute; inset: 0; background: rgba(8, 4, 0, .62); }
.rcu-frame { position: relative; width: min(880px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--rc-w1); color: var(--rc-parch);
  box-shadow: 0 -4px 0 0 var(--rc-gold2), 0 4px 0 0 var(--rc-gold2), -4px 0 0 0 var(--rc-gold2), 4px 0 0 0 var(--rc-gold2), 0 10px 0 0 rgba(0, 0, 0, .5); }
.rcu-frame.small { width: min(520px, 100%); }
.rcu-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-weight: 900; font-size: 1.05rem; color: var(--rc-ink); background: linear-gradient(#ffd96b, #e0a82a); }
.rcu-x { font: inherit; font-weight: 900; cursor: pointer; width: 30px; height: 30px; border: 0; background: var(--rc-red); color: #fff; box-shadow: 0 0 0 3px var(--rc-ink); }
.rcu-body { display: flex; min-height: 0; flex: 1; overflow: hidden; background-image: linear-gradient(45deg, rgba(0, 0, 0, .1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .1) 75%), linear-gradient(45deg, rgba(0, 0, 0, .1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .1) 75%); background-size: 4px 4px; background-position: 0 0, 2px 2px; }
.rcu-tabs { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; background: rgba(0, 0, 0, .25); width: 160px; flex: none; }
.rcu-tabs button { position: relative; display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; cursor: pointer; color: var(--rc-parch); background: transparent; border: 0; padding: 7px 8px; text-align: left; }
.rcu-tabs button .rcu-ico { width: 26px; height: 26px; }
.rcu-tabs button:hover { background: rgba(255, 255, 255, .08); } .rcu-tabs button.on { background: rgba(255, 210, 87, .18); box-shadow: inset 4px 0 0 var(--rc-gold); color: #fff; }
.rcu-tabs em { margin-left: auto; font-style: normal; font-size: .75rem; background: var(--rc-gold); color: var(--rc-ink); padding: 0 6px; font-weight: 900; }
.rcu-pane { flex: 1; min-width: 0; min-height: 0; overflow: auto; padding: 12px 14px; }
.rcu-body.dlg { padding: 14px; gap: 14px; align-items: flex-start; overflow: auto; }
.rcu-dlg { position: relative; text-align: center; background: var(--rc-w1); padding: 20px 26px; width: min(460px, 100%); box-shadow: 0 -4px 0 0 var(--rc-gold2), 0 4px 0 0 var(--rc-gold2), -4px 0 0 0 var(--rc-gold2), 4px 0 0 0 var(--rc-gold2); }
.rcu-dlg h3 { margin: 0 0 8px; color: var(--rc-gold); font-weight: 900; font-size: 1.4rem; } .rcu-dlg p { margin: 6px 0; }
.rcu-or { opacity: .8; font-size: .85rem; } .rcu-join { display: flex; gap: 8px; justify-content: center; align-items: center; }
.rcu-join input { width: 8em; text-align: center; letter-spacing: .25em; text-transform: uppercase; font-weight: 900; }
.rcu-code { font-size: 1.9rem; letter-spacing: .3em; background: #fff0c2; color: var(--rc-ink); border: 3px solid var(--rc-gold2); padding: 0 12px; }
.rcu-link { width: 100%; font-size: .8rem; margin: 6px 0; }
.rcu-npc { width: 78px; height: 78px; image-rendering: pixelated; flex: none; } .rcu-npcbox { text-align: center; flex: none; width: 120px; }
.rcu-shop { flex: 1; display: grid; gap: 10px; } .rcu-shoprow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.rcu-shoprow > div { flex: 1; } .rcu-shoprow b { display: block; font-size: .95rem; } .rcu-shoprow small { font-size: .74rem; opacity: .85; }

/* inventaire */
.rcu-inv { display: grid; grid-template-columns: 290px 1fr; gap: 14px; }
.rcu-left { display: grid; gap: 8px; align-content: start; }
.rcu-doll { position: relative; height: 380px; background: rgba(0, 0, 0, .25); border: 3px solid var(--rc-w3); }
.rcu-dslot { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; font: inherit; cursor: pointer; color: var(--rc-parch); background: rgba(20, 12, 6, .92); border: 3px solid var(--rc-w3); z-index: 2; }
.rcu-dslot small { font-size: .62rem; opacity: .6; } .rcu-dslot:hover { border-color: var(--rc-gold) !important; }
.rcu-dslot.s-tete, .rcu-dslot.s-dos, .rcu-dslot.s-ceinture, .rcu-dslot.s-bottes, .rcu-dslot.s-familier { left: 6px; }
.rcu-dslot.s-main, .rcu-dslot.s-bouclier, .rcu-dslot.s-amulette, .rcu-dslot.s-anneau1, .rcu-dslot.s-anneau2 { right: 6px; }
.rcu-dslot.s-tete, .rcu-dslot.s-main { top: 6px; } .rcu-dslot.s-dos, .rcu-dslot.s-bouclier { top: 62px; } .rcu-dslot.s-ceinture, .rcu-dslot.s-amulette { top: 118px; }
.rcu-dslot.s-bottes, .rcu-dslot.s-anneau1 { top: 174px; } .rcu-dslot.s-familier, .rcu-dslot.s-anneau2 { top: 230px; }
.rcu-dslot.s-trophee1, .rcu-dslot.s-trophee2, .rcu-dslot.s-trophee3 { bottom: 8px; top: auto; } .rcu-dslot.s-trophee1 { left: calc(50% - 76px); } .rcu-dslot.s-trophee2 { left: calc(50% - 24px); } .rcu-dslot.s-trophee3 { left: calc(50% + 28px); }
.rcu-pedestal.sm canvas { image-rendering: pixelated; }
.rcu-bagtop { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rcu-bag { display: grid; grid-template-columns: repeat(8, 44px); gap: 4px; }
.rcu-cell { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0, 0, 0, .38); border: 3px solid var(--rc-w3); padding: 0; cursor: pointer; }
.rcu-cell .rcu-ico { width: 34px; height: 34px; } .rcu-cell.blank { border-color: rgba(255, 255, 255, .08); cursor: default; } .rcu-cell.on { outline: 3px solid var(--rc-gold); } .rcu-cell.static { width: 46px; height: 46px; flex: none; cursor: default; }
.rcu-detail { margin-top: 10px; background: rgba(0, 0, 0, .35); border: 3px solid var(--rc-w3); padding: 8px 10px; }
.rcu-dhead { display: flex; gap: 10px; align-items: center; } .rcu-dhead small { display: block; opacity: .85; }
.rcu-itemstats { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 2px; font-size: .85rem; }
.rcu-itemstats li { display: flex; gap: 8px; } .rcu-itemstats li span { flex: 1; } .rcu-itemstats b { color: #fff; } .rcu-itemstats i { font-style: normal; font-size: .78rem; } .rcu-itemstats i.up { color: #7df0a0; } .rcu-itemstats i.down { color: #ff8a7a; }
.rcu-cmp { display: block; opacity: .8; } .rcu-dbtn { margin-top: 6px; } .rcu-hint { opacity: .85; font-size: .85rem; margin-top: 10px; }
.rcu-statrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .rcu-statrows li { display: flex; align-items: center; gap: 10px; } .rcu-statrows li > div { flex: 1; } .rcu-statrows small { display: block; opacity: .85; }
.rcu-pstats { display: grid; gap: 10px; } .gold { color: var(--rc-gold); }
.rcu-xpline { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; } .rcu-xpline .rcu-xp { flex: 1; }
.rcu-spellbook { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .rcu-spellhead { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 4px; } .rcu-spellhead b { color: var(--rc-gold); font-size: 1.05rem; } .rcu-spico { position: relative; flex: none; } .rcu-spico em { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-size: .68rem; font-weight: 900; background: var(--rc-w0); color: var(--rc-gold); border: 2px solid var(--rc-ink); padding: 0 4px; }
@media (max-width: 860px) { .rcu-spellbook { grid-template-columns: 1fr; } } .rcu-spell { display: flex; gap: 12px; align-items: center; background: rgba(0, 0, 0, .3); border: 3px solid var(--rc-w3); padding: 8px 10px; }
.rcu-spell small { display: block; opacity: .88; font-size: .8rem; line-height: 1.3; } .rcu-spell.lock { opacity: .5; }
.rcu-spico { text-align: center; flex: none; } .rcu-spico small { font-weight: 900; color: var(--rc-gold); }
.rcu-quests { display: grid; gap: 8px; } .rcu-quest-card { background: rgba(0, 0, 0, .3); border: 3px solid var(--rc-w3); padding: 8px 12px; position: relative; } .rcu-quest-card small { display: block; opacity: .9; margin: 2px 0; }
.rcu-quest-card.cur { border-color: var(--rc-gold); } .rcu-quest-card.done { opacity: .6; } .rcu-quest-card.todo { opacity: .4; } .rcu-quest-card em { position: absolute; right: 10px; top: 8px; font-style: normal; color: #7df0a0; font-weight: 900; }
.rcu-menu-pane { display: grid; gap: 10px; justify-items: start; }

/* éléments, caractéristiques, sorts, résultat */
.rcu-el { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 2px; background: rgba(0, 0, 0, .35); border: 2px solid var(--c, #888); font-weight: 900; font-size: .8rem; margin: 2px; }
.rcu-el.res { border-style: dashed; } .rcu-el b { color: #fff; }
.rcu-elrow { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0; } .rcu-elrow.tight { margin: 2px 0; }
.rcu-eltab { width: 100%; border-collapse: collapse; font-size: .88rem; } .rcu-eltab th { text-align: left; opacity: .75; font-weight: 700; padding: 2px 4px; } .rcu-eltab td { padding: 3px 4px; border-top: 1px dashed rgba(255, 255, 255, .12); font-weight: 800; }
.rcu-chname { display: flex; align-items: center; gap: 8px; flex: 1; } .rcu-chname small { display: block; opacity: .85; font-size: .75rem; }
.rcu-statrows li .rcu-btn.small { padding: 3px 9px; margin: 2px; }
.rcu-fx { color: #ffe9b0; opacity: 1 !important; } .rcu-card h4 small { font-weight: 600; opacity: .8; }
.rcu-dlg.wide { width: min(520px, 100%); } .rcu-dlg h3.win { color: #7df0a0; font-size: 1.8rem; } .rcu-dlg h3.lose { color: #ff8a7a; }
.rcu-lvlup { color: var(--rc-gold); font-weight: 900; } .rcu-loot { display: grid; gap: 6px; margin: 8px 0; } .rcu-lootitem { display: flex; align-items: center; gap: 8px; border: 3px solid; background: rgba(0, 0, 0, .35); padding: 4px 8px; font-weight: 800; text-align: left; }

/* ---------- barre de jeu façon Dofus ---------- */
.rcu-hud { position: absolute; inset: 0; }
.rcu-topleft { position: absolute; left: 10px; top: 10px; display: grid; gap: 6px; max-width: 240px; }
.rcu-zone, .rcu-mate, .rcu-quest { background: rgba(26, 16, 8, .82); border: 3px solid var(--rc-w3); padding: 4px 10px; font-weight: 800; font-size: .85rem; text-shadow: 0 1px 0 #000; }
.rcu-zone { color: var(--rc-gold); } .rcu-mate b { color: #9ad7ff; }
.rcu-quest { position: absolute; right: 10px; top: 64px; max-width: 250px; font-size: .78rem; line-height: 1.3; pointer-events: none; }
.rcu-menus { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.rcu-menus button { position: relative; width: 42px; height: 42px; padding: 0; cursor: pointer; background: radial-gradient(#5a3d22, #2a1a0c); border: 3px solid var(--rc-edge); display: grid; place-items: center; }
.rcu-menus button:hover { border-color: var(--rc-gold); } .rcu-menus .rcu-ico { width: 28px; height: 28px; }
.rcu-menus em { position: absolute; right: -7px; top: -8px; font-style: normal; font-size: .7rem; font-weight: 900; background: var(--rc-gold); color: var(--rc-ink); padding: 0 5px; border: 2px solid var(--rc-ink); }
.rcu-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 12px; max-width: calc(100% - 12px); background: var(--rc-w1);
  box-shadow: 0 -4px 0 0 var(--rc-gold2), 0 4px 0 0 var(--rc-gold2), -4px 0 0 0 var(--rc-gold2), 4px 0 0 0 var(--rc-gold2), 0 10px 0 0 rgba(0, 0, 0, .45); }
.rcu-portrait { position: relative; width: 62px; height: 62px; background: radial-gradient(#6e8a4a, #2f4a2a); border: 3px solid var(--rc-ink); flex: none; display: grid; place-items: center; }
.rcu-portrait img { width: 56px; height: 56px; image-rendering: pixelated; }
.rcu-portrait b { position: absolute; right: -8px; bottom: -8px; min-width: 24px; text-align: center; background: var(--rc-gold); color: var(--rc-ink); border: 2px solid var(--rc-ink); font-weight: 900; font-size: .85rem; }
.rcu-vitals { width: 210px; display: grid; gap: 4px; }
.rcu-hp { position: relative; height: 20px; background: #1a0f08; border: 3px solid var(--rc-ink); overflow: hidden; }
.rcu-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ff9a8a, #e8584a 55%, #b83a30); transition: width .12s; }
.rcu-hp u { position: absolute; left: 0; bottom: 0; height: 5px; background: #9ad7ff; text-decoration: none; transition: width .12s; }
.rcu-hp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .74rem; font-weight: 900; text-shadow: 0 1px 0 #000; color: #fff; }
.rcu-xp { height: 10px; background: #1a0f08; border: 2px solid var(--rc-ink); overflow: hidden; } .rcu-xp i { display: block; height: 100%; background: linear-gradient(#bfe3ff, #5aa8ff); transition: width .15s; }
.rcu-res { display: flex; gap: 12px; font-weight: 900; font-size: .85rem; } .rcu-res span { display: flex; align-items: center; gap: 4px; }
.rcu-banner { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); text-align: center; padding: 10px 26px; background: rgba(26, 16, 8, .92); border: 4px solid var(--rc-gold); max-width: 86%; z-index: 7; pointer-events: none; }
.rcu-banner strong { display: block; font-size: 1.35rem; color: var(--rc-gold); text-shadow: 0 2px 0 #000; } .rcu-banner span { font-size: .92rem; }
.rcu-banner.pop { animation: rcu-pop .4s cubic-bezier(.2, 1.5, .4, 1) both; } @keyframes rcu-pop { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* combat : frise des tours, orbes PA / PM, sorts, fin de tour (cachés hors combat) */
.rcu-timeline, .rcu-orbs, .rcu-spells, .rcu-endturn { display: none; }
.rcu-hud.fight .rcu-quest { display: none; }
.rcu-hud.fight .rcu-timeline { display: flex; }
.rcu-hud.fight .rcu-orbs { display: flex; } .rcu-hud.fight .rcu-spells { display: flex; } .rcu-hud.fight .rcu-endturn { display: block; }
.rcu-hud.fight .rcu-xp, .rcu-hud.fight .rcu-res { display: none; }
.rcu-timeline { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); align-items: center; gap: 4px; padding: 4px 8px; background: rgba(26, 16, 8, .85); border: 3px solid var(--rc-w3); max-width: calc(100% - 270px); overflow: hidden; pointer-events: none; }
.rcu-round { font-weight: 900; font-size: .8rem; color: var(--rc-gold); margin-right: 6px; white-space: nowrap; }
.rcu-tl { position: relative; flex: none; width: 40px; height: 40px; background: rgba(0, 0, 0, .4); border: 3px solid #5aa8ff; } .rcu-tl.side1 { border-color: #e8584a; }
.rcu-tl img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.rcu-tl i { position: absolute; left: 0; bottom: 0; height: 4px; background: #7df0a0; } .rcu-tl.side1 i { background: #ff7b6a; }
.rcu-tl.cur { border-color: var(--rc-gold); transform: scale(1.18); box-shadow: 0 0 0 2px var(--rc-ink); z-index: 1; }
.rcu-orbs { gap: 8px; }
.rcu-orb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 3px solid var(--rc-ink); position: relative; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25), inset 0 5px 0 rgba(255, 255, 255, .3); }
.rcu-orb b { font-size: 1.5rem; line-height: 1; text-shadow: 0 2px 0 #000; color: #fff; } .rcu-orb small { position: absolute; bottom: -4px; font-size: .6rem; font-weight: 900; background: var(--rc-ink); padding: 0 4px; }
.rcu-orb.pa { background: radial-gradient(#6ab6ff, #2a62b8); } .rcu-orb.pm { background: radial-gradient(#8be09a, #2f8a46); }
.rcu-spells { gap: 6px; }
.rcu-sp { position: relative; width: 54px; height: 54px; padding: 0; cursor: pointer; font: inherit; background: radial-gradient(#5a3d22, #2a1a0c); border: 3px solid var(--el, var(--rc-edge)); overflow: hidden; color: #fff; }
.rcu-sp:hover { filter: brightness(1.25); } .rcu-sp .rcu-ico { width: 38px; height: 38px; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); }
.rcu-sp .key { position: absolute; right: 2px; top: 0; font-size: .62rem; font-weight: 900; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.rcu-sp .pa { position: absolute; left: 1px; bottom: 1px; min-width: 16px; text-align: center; font-size: .7rem; font-weight: 900; background: #2a62b8; border: 2px solid var(--rc-ink); line-height: 1.1; }
.rcu-sp .cdt { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.3rem; text-shadow: 0 2px 0 #000; background: rgba(0, 0, 0, .55); pointer-events: none; } .rcu-sp .cdt:empty { display: none; }
.rcu-sp .uses { position: absolute; right: 2px; bottom: 1px; font-size: .62rem; font-weight: 900; text-decoration: none; color: var(--rc-gold); text-shadow: 0 1px 0 #000; }
.rcu-sp.off { filter: grayscale(.8) brightness(.65); } .rcu-sp.nopa .pa { background: #b83a30; }
.rcu-sp.sel { box-shadow: 0 0 0 3px var(--rc-gold), 0 0 12px 2px var(--rc-gold); transform: translateY(-4px); }
.rcu-endturn { font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer; padding: 10px 16px; min-width: 120px; background: #4a3a28; color: #c9b896; border: 0; box-shadow: 0 -3px 0 0 var(--rc-ink), 0 3px 0 0 var(--rc-ink), -3px 0 0 0 var(--rc-ink), 3px 0 0 0 var(--rc-ink), 0 6px 0 0 #2a1a0c; }
.rcu-endturn.go { background: linear-gradient(#9be8a8, #58b36a 60%, #3d8a4e); color: #10301a; animation: rcu-pulse 1.2s ease-in-out infinite; } .rcu-endturn[disabled] { cursor: default; }
@keyframes rcu-pulse { 50% { filter: brightness(1.25); } }

@media (max-width: 860px) {
  .rcu-sel { display: flex; flex-direction: column; overflow-y: auto; gap: 8px; padding: 6px 10px; min-height: 0; }
  .rcu-head { padding: 8px 10px 2px; } .rcu-head h2 { font-size: 1.2rem; }
  .rcu-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; flex: none; padding-bottom: 4px; } .rcu-slot { min-width: 150px; padding: 5px 8px; } .rcu-slot img { width: 34px; height: 34px; } .rcu-slot .plus { width: 34px; height: 34px; } .rcu-slot small { display: none; }
  .rcu-center { flex: none; } .rcu-pedestal { width: 170px; height: 160px; } .rcu-preview { width: 100%; height: auto; }
  .rcu-name { font-size: 1.3rem; } .rcu-info { overflow: visible; flex: none; }
  .rcu-actions { flex-wrap: wrap; padding: 6px 10px 10px; background: rgba(20, 12, 6, .85); gap: 4px; } .rcu-actions .rcu-btn { margin: 2px; padding: 8px 14px; } .rcu-btn.big { min-width: 0; padding: 10px 20px; }
  .rcu-body { flex-direction: column; overflow: auto; } .rcu-tabs { flex-direction: row; width: auto; overflow-x: auto; } .rcu-tabs button span { display: none; } .rcu-tabs button { flex: none; }
  .rcu-inv { grid-template-columns: 1fr; } .rcu-doll { height: 380px; max-width: 330px; margin: 0 auto; width: 100%; } .rcu-pedestal.sm { width: 140px; height: 140px; } .rcu-bag { grid-template-columns: repeat(6, 44px); }
  .rcu-logo-sq { width: 80px; height: 80px; } .rcu-menu .rcu-btn { min-width: 200px; }
  /* barre de jeu étroite : portrait + PV en haut à gauche, sorts en bas */
  .rcu-menus { top: 8px; right: 8px; flex-direction: column; gap: 4px; background: rgba(26, 16, 8, .82); padding: 3px; box-shadow: 0 0 0 3px var(--rc-w3); } .rcu-menus button { width: 36px; height: 36px; } .rcu-menus .rcu-ico { width: 24px; height: 24px; }
  .rcu-topleft { top: 76px; max-width: 200px; } .rcu-zone { font-size: .74rem; } .rcu-quest { top: auto; right: auto; left: 8px; bottom: 74px; max-width: 150px; font-size: .66rem; }
  .rcu-bar { left: 6px; right: 6px; bottom: 6px; transform: none; max-width: none; flex-wrap: wrap; justify-content: center; gap: 6px 8px; padding: 5px 6px; }
  .rcu-hud:not(.fight) .rcu-bar { top: 8px; bottom: auto; right: 54px; justify-content: flex-start; flex-wrap: nowrap; }
  .rcu-portrait { width: 44px; height: 44px; } .rcu-portrait img { width: 40px; height: 40px; } .rcu-vitals { width: 150px; } .rcu-res { gap: 8px; font-size: .74rem; }
  .rcu-orb { width: 42px; height: 42px; } .rcu-orb b { font-size: 1.15rem; }
  .rcu-sp { width: 46px; height: 46px; } .rcu-sp .rcu-ico { width: 32px; height: 32px; } .rcu-spells { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .rcu-endturn { padding: 8px 12px; min-width: 96px; font-size: .9rem; }
  .rcu-timeline { top: 8px; max-width: calc(100% - 64px); left: 6px; transform: none; } .rcu-tl { width: 32px; height: 32px; }
  .rcu-hud.fight .rcu-topleft { top: 56px; }
  .rcu-banner { padding: 6px 14px; top: 26%; } .rcu-banner strong { font-size: 1.1rem; } .rcu-banner span { font-size: .78rem; }
}
@media (max-width: 760px) { .rc-stage { height: calc(100svh - 190px); min-height: 460px; } .rc-stage.is-full, .rc-stage.is-max { height: 100%; } }

/* plein écran : la croix de sortie de GameKit est en haut à droite, on décale les menus */
.rc-stage.gk-fs .rcu-menus { right: 58px; }
@media (max-width: 860px) { .rc-stage.gk-fs .rcu-menus { right: 8px; top: 58px; } .rc-stage.gk-fs .rcu-hud:not(.fight) .rcu-bar { right: 8px; } }

/* plein écran : pas de bouton Réglages du site en bas à gauche, croix de sortie discrète */
.rc-stage.gk-fs .gk-gear, .rc-stage.gk-fs .gk-fsbtn, .rc-stage.gk-fs .gk-fab { display: none !important; }
.rc-stage.gk-fs > .gk-fs-exit, .rc-stage.is-full .gk-fs-exit { width: 32px; height: 32px; min-width: 0; min-height: 0; font-size: .9rem; opacity: .55; top: 6px; right: 6px; left: auto; bottom: auto; } .rc-stage.gk-fs > .gk-fs-exit:hover { opacity: 1; }
.rc-stage.gk-fs .rcu-menus { right: 46px; top: 6px; }
