#adventure-ui{font-family:var(--font-ui,'Lato',sans-serif);font-size:13px;line-height:1.45;color:var(--theme-chrome-text,#f3e4c3)}#adventure-ui *{box-sizing:border-box}#adventure-ui [hidden]{display:none!important}#adventure-ui button,#adventure-ui select{font:inherit;font-size:12px;min-height:44px;border:1px solid var(--theme-chrome-line,#837143);border-radius:9px;background:var(--theme-chrome,#302a17);color:var(--theme-chrome-text,#f3e4c3);padding:8px 12px;cursor:pointer}:where(html[data-theme="nuit"]) #adventure-ui button,:where(html[data-theme="nuit"]) #adventure-ui select{border:1px solid var(--theme-chrome-line,#475c7f);background:var(--theme-chrome,#19212e)}#adventure-ui button:hover:not(:disabled){background:color-mix(in srgb,var(--theme-gold,#caa75b) 20%,var(--theme-chrome,#302a17))}#adventure-ui button:disabled{opacity:.45;cursor:default}#adventure-ui button:focus-visible,#adventure-ui summary:focus-visible{outline:2px solid var(--theme-gold,#e0b94d);outline-offset:3px}#adventure-ui .adventure-primary{background:var(--theme-gold,#dbbb68);color:#30250d;font-weight:800;border-color:var(--theme-gold,#dbbb68)}
#adventure-toggle{position:fixed;z-index:43;top:202px;left:18px;display:flex;align-items:center;gap:8px;box-shadow:0 4px 14px #0003}#adventure-toggle img{width:22px;height:22px;object-fit:contain}#adventure-tracker{position:fixed;z-index:40;top:254px;left:18px;max-width:310px;text-align:left;font-size:11.5px!important;line-height:1.4;box-shadow:0 4px 14px #0002;background:color-mix(in srgb,var(--theme-chrome,#302a17) 88%,transparent)!important}:where(html[data-theme="nuit"]) #adventure-tracker{background:color-mix(in srgb,var(--theme-chrome,#19212e) 88%,transparent)!important}
#adventure-panel{position:fixed;z-index:66;top:70px;left:18px;width:min(370px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 100px));display:flex;flex-direction:column;overflow:hidden;background:var(--theme-chrome,#302a17);border:1px solid var(--theme-chrome-line,#837143);border-radius:16px;box-shadow:0 20px 55px #0007}:where(html[data-theme="nuit"]) #adventure-panel{background:var(--theme-chrome,#19212e);border:1px solid var(--theme-chrome-line,#475c7f)}#adventure-panel>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 14px 8px;flex:none}#adventure-panel h2{font-family:var(--font-heading,Georgia,serif);font-size:23px;line-height:1.15;margin:3px 0}#adventure-panel #adventure-close{width:44px;flex:none;border:0;background:transparent;font-size:18px;padding:8px}.adventure-eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.08em;color:var(--theme-chrome-muted,#cbbd91)}#adventure-panel nav{display:flex;gap:5px;padding:0 12px 10px;border-bottom:1px solid var(--theme-chrome-line,#837143)}:where(html[data-theme="nuit"]) #adventure-panel nav{border-bottom:1px solid var(--theme-chrome-line,#475c7f)}#adventure-panel nav button{flex:1;background:transparent;border-color:transparent;min-height:44px}#adventure-panel nav button.is-selected{border-color:var(--theme-chrome-line,#837143);background:#ffffff0b;color:var(--theme-gold,#e1c478)}:where(html[data-theme="nuit"]) #adventure-panel nav button.is-selected{border-color:var(--theme-chrome-line,#475c7f)}#adventure-content{padding:12px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:var(--theme-chrome-line,#837143) transparent}
#adventure-ui h3{font-size:14px;line-height:1.3;margin:0;font-weight:800}#adventure-ui p{margin:7px 0;color:var(--theme-chrome-muted,#d2c29f);font-size:12px}#adventure-ui small,#adventure-ui summary{font-size:11.5px}#adventure-ui small{display:block;color:var(--theme-chrome-muted,#d2c29f)}#adventure-ui summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--theme-chrome-muted,#d2c29f)}#adventure-ui details>p{margin-top:0}.adventure-quest,.adventure-job,.adventure-note,.adventure-recipe{padding:12px;border:1px solid color-mix(in srgb,var(--theme-chrome-line,#837143) 60%,transparent);border-radius:11px;margin-bottom:9px;background:#ffffff05}:where(html[data-theme="nuit"]) .adventure-quest,:where(html[data-theme="nuit"]) .adventure-job,:where(html[data-theme="nuit"]) .adventure-note,:where(html[data-theme="nuit"]) .adventure-recipe{border:1px solid color-mix(in srgb,var(--theme-chrome-line,#475c7f) 60%,transparent)}.adventure-quest:last-child{margin-bottom:0}.adventure-row{display:flex;align-items:center;gap:9px;justify-content:space-between}.adventure-row>div{flex:1}.adventure-row h3{flex:1}.adventure-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.adventure-actions button{padding:7px 10px}.adventure-reward{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:11.5px;color:var(--theme-gold,#e1c478)}.adventure-reward img{width:15px;height:15px;object-fit:contain}#adventure-ui progress{appearance:none;width:100%;height:5px;border:0;border-radius:6px;overflow:hidden;background:#0003;margin:7px 0 3px}#adventure-ui progress::-webkit-progress-bar{background:#0003}#adventure-ui progress::-webkit-progress-value{background:var(--theme-gold,#bda454);border-radius:6px}#adventure-ui progress::-moz-progress-bar{background:var(--theme-gold,#bda454)}.adventure-item-icon{width:38px;height:38px;object-fit:contain;flex:none}.adventure-delivery{display:flex;align-items:center;gap:8px;font-size:11.5px;margin-bottom:6px}.adventure-delivery img{width:25px;height:25px}.adventure-done{font-size:11.5px;color:#b9d593}.adventure-footnote{font-size:11.5px!important;opacity:.8}.adventure-shop-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #ffffff15}.adventure-shop-row>div{flex:1;min-width:0}.adventure-shop-row strong{font-size:12px}.adventure-shop-row button{padding:6px 10px}.adventure-quantity{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;font-size:12px}.adventure-quantity select{min-width:78px}.adventure-dungeon>button{margin:8px 5px 0 0}.adventure-dungeon ol{padding-left:25px;margin:14px 0}.adventure-dungeon li{padding:5px 0;color:var(--theme-chrome-muted,#d2c29f);font-size:12px}.adventure-dungeon li.is-current{color:var(--theme-gold,#e1c478);font-weight:800}.adventure-dungeon li.is-done{color:#b9d593}.adventure-harvest{padding:5px}.adventure-harvest>button{width:100%;margin-top:8px}#adventure-message{flex:none;margin:0!important;padding:10px 14px;background:#ffffff08;border-top:1px solid #ffffff16;color:var(--theme-gold,#e1c478)!important}#adventure-message.is-error{color:#ffba95!important}.is-fighting #adventure-toggle,.is-fighting #adventure-tracker{display:none!important}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){body.mobile-ui-ready #adventure-toggle{top:calc(60px + env(safe-area-inset-top,0px));left:8px;max-width:calc(100vw - 150px);min-height:44px;padding:7px 11px;font-size:12px}body.mobile-ui-ready #adventure-tracker{top:calc(112px + env(safe-area-inset-top,0px));left:8px;max-width:min(260px,calc(100vw - 24px));padding:7px 10px;min-height:36px}#adventure-panel{left:8px;top:calc(60px + env(safe-area-inset-top,0px));width:min(370px,calc(100vw - 16px));max-height:min(560px,calc(100dvh - 148px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))}#adventure-panel>header{padding:11px 12px 7px}#adventure-panel h2{font-size:21px}#adventure-content{padding:10px}.adventure-quest,.adventure-job,.adventure-note,.adventure-recipe{padding:10px}}
@media(max-height:500px) and (orientation:landscape){body.mobile-ui-ready #adventure-toggle{top:calc(60px + env(safe-area-inset-top,0px))}body.mobile-ui-ready #adventure-tracker{display:none}#adventure-panel{top:8px;left:8px;max-height:calc(100dvh - 16px);width:min(370px,calc(100vw - 16px))}}
.adventure-tool{display:flex;align-items:center;gap:9px;padding:10px;margin:10px 0 5px;border:1px solid var(--theme-chrome-line,#837143);border-radius:9px;background:#ffffff05}:where(html[data-theme="nuit"]) .adventure-tool{border:1px solid var(--theme-chrome-line,#475c7f)}.adventure-tool strong{font-size:12px}.adventure-tool.is-missing{border-color:color-mix(in srgb,var(--theme-gold,#caa75b) 65%,transparent)}#adventure-ui .adventure-tool-note{font-size:11.5px;margin-bottom:10px}#adventure-ui #adventure-toast{position:fixed;z-index:58;top:calc(68px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:max-content;max-width:min(360px,calc(100vw - 28px));padding:11px 15px;margin:0;border:1px solid var(--theme-chrome-line,#837143);border-radius:11px;background:var(--theme-chrome,#302a17);color:var(--theme-chrome-text,#f3e4c3);box-shadow:0 8px 24px #0005;font-size:12px;pointer-events:none;text-align:center}:where(html[data-theme="nuit"]) #adventure-ui #adventure-toast{border:1px solid var(--theme-chrome-line,#475c7f);background:var(--theme-chrome,#19212e)}#adventure-ui #adventure-toast.is-error{color:#ffc99c}.is-fighting #adventure-toast{display:none!important}
/* Compact NPC shop: a small catalogue and one selected order, never a long wall of purchase buttons. */
html[data-theme] #adventure-ui #adventure-panel[data-context="merchant"]{width:min(440px,calc(100vw - 24px));max-height:min(620px,calc(100dvh - 32px));top:16px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);margin:0;padding:0}
#adventure-ui #adventure-panel[data-context="merchant"]>header{padding:12px 14px 8px}#adventure-ui #adventure-panel[data-context="merchant"] .adventure-eyebrow{font-size:11.5px}#adventure-ui #adventure-panel[data-context="merchant"] h2{font-size:21px}#adventure-ui #adventure-panel[data-context="merchant"] #adventure-content{padding:0 12px 12px}
.merchant-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.merchant-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--window-line,#857451);border-radius:11px;background:#00000015}:where(html[data-theme="nuit"]) .merchant-tabs{border:1px solid var(--window-line,#4f6487)}#adventure-ui .merchant-tabs button{min-height:38px;border:0;border-radius:7px;background:transparent;padding:8px 14px}#adventure-ui .merchant-tabs [aria-pressed=true]{background:var(--theme-gold,#d1b369);color:var(--theme-chrome,#302a17)}.merchant .adventure-wallet{display:grid;grid-template-columns:18px auto;align-items:center;gap:2px 5px;text-align:right;font-size:14px}.merchant .adventure-wallet>img{width:18px;height:18px}.merchant .adventure-wallet>small{grid-column:2;font-size:11.5px}
.merchant-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-height:76px}#adventure-ui .merchant-item{display:grid;grid-template-columns:1fr;place-items:center;gap:2px;padding:6px 3px;min-height:76px;background:color-mix(in srgb,var(--window-paper,#f3e8c5) 7%,var(--theme-chrome,#302a17));border:1px solid var(--theme-chrome-line,#837143);border-radius:10px;color:var(--theme-chrome-text,#f3e4c3)}:where(html[data-theme="nuit"]) #adventure-ui .merchant-item{border:1px solid var(--theme-chrome-line,#475c7f)}#adventure-ui .merchant-item[aria-pressed=true]{border-color:var(--theme-gold,#d1b369);background:color-mix(in srgb,var(--theme-gold,#d1b369) 18%,var(--theme-chrome,#302a17));box-shadow:inset 0 0 0 1px var(--theme-gold,#d1b369)}.merchant-item .adventure-item-icon{width:30px;height:30px}.merchant-item>span{font-size:11.5px;font-weight:700;width:100%;line-height:1.15;text-align:center;overflow-wrap:anywhere;hyphens:auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.3em;align-content:center}.merchant-item>small{font-size:11.5px;line-height:1.15}.merchant-empty{grid-column:1/-1;padding:18px 8px;text-align:center}.merchant-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:6px}.merchant-pagination>span{font-size:11.5px}.merchant-pagination button{min-width:44px}
.merchant-detail{margin-top:12px;padding-top:12px;border-top:1px solid var(--theme-chrome-line,#837143)}:where(html[data-theme="nuit"]) .merchant-detail{border-top:1px solid var(--theme-chrome-line,#475c7f)}.merchant-item-heading{display:flex;gap:10px;align-items:center}.merchant-item-heading>.adventure-item-icon{width:44px;height:44px}.merchant-item-heading>div{min-width:0;flex:1}.merchant-item-heading h3{font-size:14px!important}.merchant-item-heading p{font-size:11.5px!important;margin:3px 0!important}.merchant-item-heading small{font-size:11.5px;line-height:1.3}.merchant-order{display:flex;align-items:center;gap:8px;margin-top:12px}.merchant-order>label{font-size:11.5px}.merchant-stepper{display:flex;align-items:center;gap:3px}.merchant-stepper>button{width:36px;padding:5px!important;font-size:17px!important}#adventure-ui .merchant-stepper input{box-sizing:border-box;width:48px;height:44px;padding:5px;border:1px solid var(--theme-chrome-line,#837143);border-radius:7px;background:var(--theme-chrome,#302a17);color:var(--theme-chrome-text,#f3e4c3);font:700 13px var(--font-ui);text-align:center;appearance:textfield}:where(html[data-theme="nuit"]) #adventure-ui .merchant-stepper input{border:1px solid var(--theme-chrome-line,#475c7f);background:var(--theme-chrome,#19212e)}.merchant-stepper input::-webkit-inner-spin-button{appearance:none}.merchant-total{margin-left:auto;text-align:right}.merchant-total small{font-size:11.5px}.merchant-total strong{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:15px;color:var(--theme-gold,#e0b94d)}.merchant-total img{width:18px;height:18px}.merchant-review{margin-top:12px}.merchant-review>button{width:100%}.merchant-review.is-confirming{padding:10px;border:1px solid var(--theme-gold,#d1b369);border-radius:10px;background:#ffffff05}.merchant-review p{margin:0 0 8px!important;font-size:11.5px!important}.merchant-review p strong{display:block;color:var(--theme-chrome-text,#f3e4c3)}.merchant-review>div{display:flex;gap:7px}.merchant-review>div>button:last-child{flex:1}.merchant-shortfall{color:#efb58a!important;font-size:11.5px!important}
@media(pointer:coarse){#adventure-ui .merchant-tabs button{min-height:44px}.merchant-stepper>button{width:44px}}
@media(max-width:480px){html[data-theme] #adventure-ui #adventure-panel[data-context="merchant"]{width:calc(100vw - 20px);top:10px;max-height:calc(100dvh - 20px)}.merchant-order{flex-wrap:wrap}.merchant-order>label{display:none}.merchant-grid{gap:5px}.merchant-item-heading>.adventure-item-icon{width:36px;height:36px}}
html[data-theme] #adventure-ui #adventure-panel[data-context="merchant"]{top:50%;transform:translate(-50%,-50%);color:var(--theme-ink);background:var(--theme-bg)!important;max-height:min(600px,calc(100dvh - 24px))}html[data-theme] #adventure-ui .merchant-item{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #adventure-ui .merchant-item[aria-pressed=true]{background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-accent);box-shadow:inset 0 0 0 1px var(--theme-accent)}html[data-theme] #adventure-ui .merchant-tabs [aria-pressed=true]{background:var(--theme-accent);color:var(--theme-accent-text)}html[data-theme] #adventure-ui .merchant-stepper input{background:var(--theme-card);color:var(--theme-ink);border-color:var(--theme-border)}html[data-theme] #adventure-ui .merchant-total strong{color:var(--theme-ink)}html[data-theme] #adventure-ui .merchant-detail,html[data-theme] #adventure-ui .merchant-tabs{border-color:var(--theme-border)}html[data-theme] #adventure-ui .merchant-review.is-confirming{background:var(--theme-card);border-color:var(--theme-accent)}html[data-theme] #adventure-ui .merchant-review strong{color:var(--theme-ink)}html[data-theme] #adventure-ui .merchant-shortfall{color:var(--theme-negative)!important}#adventure-ui .merchant-tabs button{min-height:44px}.merchant-stepper>button{width:44px}
@media(max-height:500px) and (min-width:620px){html[data-theme] #adventure-ui #adventure-panel[data-context="merchant"]{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 20px)}.merchant{display:grid;grid-template-columns:1fr 1.05fr;gap:0 12px}.merchant-toolbar{grid-column:1/-1}.merchant-detail{grid-column:2;grid-row:2/4;margin:0;padding:0 0 0 12px;border-top:0;border-left:1px solid var(--theme-border)}.merchant-grid{grid-column:1;align-self:start}.merchant-pagination{grid-column:1}.merchant-item-heading>.adventure-item-icon{width:32px;height:32px}.merchant-order>label{display:none}}
/* Carnet Rétro : lignes compactes alignées (lieux, métiers, épreuve), texte noir sur parchemin. */
#adventure-ui .rv-list,#adventure-ui .rv-jobs{display:grid;gap:6px}
#adventure-ui :is(.rv-row,.rv-job,.rv-dungeon){display:flex;align-items:center;gap:8px;padding:6px 8px;margin:0;border:1px solid var(--theme-border,#9b9271);border-radius:3px;background:var(--theme-card,#ebe5c9);color:var(--theme-ink,#2f2a1e);box-shadow:inset 0 1px #fff8}
#adventure-ui .rv-row-icon{width:26px;height:26px;flex:none;object-fit:contain}
#adventure-ui .rv-row-main{flex:1;min-width:0;display:flex;flex-direction:column}
#adventure-ui :is(.rv-row-main strong,.rv-row-main h3,.rv-job h3){font-size:13px;font-weight:800;color:var(--theme-ink,#2f2a1e);margin:0}
#adventure-ui :is(.rv-row,.rv-job,.rv-dungeon) small{display:block;font-size:12px;color:var(--theme-muted,#5e5640);line-height:1.3}
#adventure-ui .rv-ok{color:var(--theme-positive,#4b6b12);font-weight:800}#adventure-ui .rv-warn{color:var(--theme-negative,#a33025);font-weight:700}
#adventure-ui :is(.rv-row,.rv-job footer,.rv-dungeon footer) button{min-height:30px;padding:3px 10px;font-size:12px;font-weight:700;border-radius:3px}
#adventure-ui :is(.rv-job,.rv-dungeon){flex-direction:column;align-items:stretch;gap:5px}
#adventure-ui :is(.rv-job,.rv-dungeon)>header{display:flex;align-items:center;gap:8px;padding:0;margin:0;background:none!important;border:0!important;box-shadow:none!important}
#adventure-ui .rv-job-name{flex:1;min-width:0}#adventure-ui .rv-job-name b{color:var(--theme-accent-ink,#8f4600)}
#adventure-ui .rv-chip{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid var(--theme-border,#9b9271);border-radius:3px;background:var(--theme-paper-deep,#c9c19a);box-shadow:inset 0 1px 2px #0003;vertical-align:middle}
#adventure-ui .rv-chip img{width:24px;height:24px;object-fit:contain}
#adventure-ui .rv-chip b{position:absolute;right:-2px;bottom:-4px;padding:0 2px;border-radius:2px;background:var(--theme-ink,#2f2a1e);color:#fff;font-size:11px;line-height:13px;font-weight:800}:where(html[data-theme="nuit"]) #adventure-ui .rv-chip b{background:var(--theme-ink,#1d2430)}
#adventure-ui .rv-job-icon{width:36px;height:36px}#adventure-ui .rv-job-icon img{width:32px;height:32px}
#adventure-ui .rv-tool{position:relative;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--theme-border,#9b9271);border-radius:3px;background:var(--theme-paper-deep,#c9c19a)}
#adventure-ui .rv-tool img{width:26px;height:26px;object-fit:contain}#adventure-ui .rv-tool.is-missing img{filter:grayscale(1);opacity:.55}
#adventure-ui .rv-tool i{position:absolute;right:-5px;top:-5px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font:800 11px/1 Verdana,sans-serif;font-style:normal;color:#fff;background:var(--theme-positive,#4b6b12);border:1px solid #0006}
#adventure-ui .rv-tool.is-missing i{background:var(--theme-negative,#a33025)}
#adventure-ui .rv-xp{display:flex;align-items:center;gap:8px}#adventure-ui .rv-xp progress{flex:1;height:9px;margin:0;border:1px solid var(--rs-frame,#5b5242);border-radius:2px;background:#3d3628}:where(html[data-theme="nuit"]) #adventure-ui .rv-xp progress{border:1px solid var(--rs-frame,#3c4961);background:#262f3f}
#adventure-ui .rv-xp progress::-webkit-progress-bar{background:#3d3628}:where(html[data-theme="nuit"]) #adventure-ui .rv-xp progress::-webkit-progress-bar{background:#262f3f}#adventure-ui .rv-xp progress::-webkit-progress-value{background:linear-gradient(#f7c55a,#d98a12);border-radius:0}#adventure-ui .rv-xp progress::-moz-progress-bar{background:#e8a028}
#adventure-ui .rv-xp span{font-size:12px;font-weight:700;color:var(--theme-ink,#2f2a1e);white-space:nowrap;font-variant-numeric:tabular-nums}
#adventure-ui .rv-job-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 8px;align-items:center;margin:0;padding-top:5px;border-top:1px solid var(--theme-border,#9b9271)}
#adventure-ui .rv-job-grid dt{font-size:12px;font-weight:800;color:var(--theme-muted,#5e5640)}#adventure-ui .rv-job-grid dd{margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--theme-ink,#2f2a1e)}
#adventure-ui .rv-recipe{display:inline-flex;align-items:center;gap:3px;padding:2px 6px 2px 2px;border-radius:3px;background:#0000000d}#adventure-ui .rv-recipe>i{font-style:normal;font-weight:800;color:var(--theme-muted,#5e5640);padding:0 1px}
#adventure-ui .rv-kamas{display:inline-flex;align-items:center;gap:2px;font-weight:800;font-size:12px}#adventure-ui .rv-kamas img{width:14px;height:14px}
#adventure-ui :is(.rv-job,.rv-dungeon) footer{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap}
#adventure-ui .rv-stages{list-style:none;margin:0;padding:0;display:grid;gap:3px}
#adventure-ui .rv-stages li{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:6px;padding:3px 6px;border-radius:2px;background:#0000000a;font-size:12px;color:var(--theme-ink,#2f2a1e)}
#adventure-ui .rv-stages li small{font-size:12px}#adventure-ui .rv-stage-n{width:20px;height:20px;display:grid;place-items:center;border-radius:2px;background:var(--theme-chrome,#3d3628);color:#fff;font-weight:800;font-size:11px}:where(html[data-theme="nuit"]) #adventure-ui .rv-stage-n{background:var(--theme-chrome,#262f3f)}
#adventure-ui .rv-stage-name{font-weight:700}#adventure-ui .rv-stages li.is-current{background:var(--theme-accent-soft,#f1d8ac);box-shadow:inset 3px 0 var(--theme-accent,#c4650a)}#adventure-ui .rv-stages li.is-done{opacity:.75}#adventure-ui .rv-stages li.is-done .rv-stage-n{background:var(--theme-positive,#4b6b12)}
#adventure-ui .rv-boss{display:inline-block;margin-left:4px;padding:0 4px;border-radius:2px;background:var(--theme-negative,#a33025);color:#fff;font-size:11px;line-height:15px;vertical-align:1px}
#adventure-ui .rv-empty{text-align:center;color:var(--theme-muted,#5e5640)}
#adventure-ui .rv-summon{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:6px;padding:6px 8px;border-top:1px dashed var(--theme-border,#9b9271);font-size:12px;color:var(--theme-ink,#2f2a1e)}
#adventure-ui .rv-summon p{flex:1 1 160px;margin:0}
#adventure-ui .rv-summon button{min-height:28px;padding:3px 10px;font-size:12px;font-weight:700;border-radius:3px}

/* ===== Marchand : habillage premium (cuir sombre, filets dorés), comme le choix du personnage. ===== */
#adventure-panel:has(.merchant){--mg:#d9b25f;--mg-hi:#f6dc96;--mg-lo:#8a6a2c;--mi:#f4ead2;--mm:#b9a985;background:linear-gradient(180deg,#2b2319,#1f1912)!important;color:var(--mi)!important;border:1px solid var(--mg-lo)!important;border-radius:14px!important;box-shadow:0 0 0 1px #000,inset 0 0 0 1px #ffffff0d,0 30px 80px #000c,0 0 40px #d9b25f1a!important;overflow:hidden}:where(html[data-theme="nuit"]) #adventure-panel:has(.merchant){background:linear-gradient(180deg,#19202b,#12171f)!important}
#adventure-panel:has(.merchant) header,#adventure-panel:has(.merchant) .adventure-header{background:linear-gradient(180deg,#3d3122,#271f15)!important;color:var(--mg-hi)!important;border-bottom:1px solid var(--mg-lo)!important}:where(html[data-theme="nuit"]) #adventure-panel:has(.merchant) header,:where(html[data-theme="nuit"]) #adventure-panel:has(.merchant) .adventure-header{background:linear-gradient(180deg,#232c3c,#161c26)!important}
#adventure-panel:has(.merchant) h2{color:var(--mg-hi)!important;font-family:var(--font-display,Georgia,serif);letter-spacing:.03em;text-shadow:0 2px 0 #000}
#adventure-panel:has(.merchant) small,#adventure-panel:has(.merchant) p{color:var(--mm)}
#adventure-panel:has(.merchant) #adventure-close{background:#0005!important;border:1px solid var(--mg-lo)!important;color:var(--mg-hi)!important;border-radius:50%!important}
#adventure-panel .merchant{color:var(--mi)}
#adventure-panel .merchant-tabs{background:#0004;border-color:var(--mg-lo)}
#adventure-panel .merchant-tabs button{color:var(--mm);font-weight:800}
#adventure-panel .merchant-tabs [aria-pressed=true]{background:linear-gradient(180deg,#ffd27a,#e9a23a 45%,#b8700f);color:#2b1802;box-shadow:inset 0 1px #fff6d6}
#adventure-panel .merchant .adventure-wallet{color:var(--mg-hi)}
#adventure-panel .merchant-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
#adventure-panel .merchant-item{position:relative;min-height:108px;padding:10px 6px 8px;border:1px solid #5a4a30!important;border-radius:12px!important;background:linear-gradient(160deg,#352b1f,#2a2219)!important;color:var(--mi)!important;box-shadow:inset 0 1px #ffffff0f,0 4px 12px #0006;transition:transform .15s,border-color .15s,box-shadow .15s}:where(html[data-theme="nuit"]) #adventure-panel .merchant-item{border:1px solid #324058!important;background:linear-gradient(160deg,#1f2735,#191f2a)!important}
#adventure-panel .merchant-item:hover{transform:translateY(-2px);border-color:var(--mg)!important}
#adventure-panel .merchant-item[aria-pressed=true]{border-color:var(--mg-hi)!important;background:radial-gradient(ellipse at 50% 30%,#d9b25f33,transparent 65%),linear-gradient(160deg,#45361f,#2c2318)!important;box-shadow:inset 0 0 0 1px #f6dc9640,0 0 0 3px #d9b25f2e,0 0 22px #d9b25f30}:where(html[data-theme="nuit"]) #adventure-panel .merchant-item[aria-pressed=true]{background:radial-gradient(ellipse at 50% 30%,#d9b25f33,transparent 65%),linear-gradient(160deg,#232e41,#19202b)!important}
#adventure-panel .merchant-item .adventure-item-icon{width:44px;height:44px;filter:drop-shadow(0 3px 4px #0008)}
#adventure-panel .merchant-item>span{font-size:12px;color:#fff6df}
#adventure-panel .merchant-price{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;background:#0005;border:1px solid var(--mg-lo);color:var(--mg-hi)!important;font-weight:800}
#adventure-panel .merchant-price img{width:13px;height:13px}
#adventure-panel .merchant-owned{position:absolute;top:6px;right:6px;padding:0 6px;border-radius:999px;background:#3f8f4a;color:#fff;font:800 10.5px/1.6 var(--font-ui,sans-serif);font-style:normal}
#adventure-panel .merchant-detail{margin-top:14px;padding:12px;border:1px solid #5a4a30;border-radius:12px;background:#0003}:where(html[data-theme="nuit"]) #adventure-panel .merchant-detail{border:1px solid #324058}
#adventure-panel .merchant-item-heading>.adventure-item-icon{width:56px;height:56px}
#adventure-panel .merchant-item-heading h3{color:var(--mg-hi)!important;font-size:16px!important;font-family:var(--font-display,Georgia,serif)}
#adventure-panel .merchant-stepper input{background:#120e09;color:#fff6df;border-color:var(--mg-lo)}:where(html[data-theme="nuit"]) #adventure-panel .merchant-stepper input{background:#0a0c11}
#adventure-panel .merchant-stepper>button,#adventure-panel .merchant-pagination button{background:linear-gradient(180deg,#4a3d2a,#30271b)!important;color:var(--mi)!important;border:1px solid var(--mg-lo)!important;border-radius:8px!important}:where(html[data-theme="nuit"]) #adventure-panel .merchant-stepper>button,:where(html[data-theme="nuit"]) #adventure-panel .merchant-pagination button{background:linear-gradient(180deg,#2a364a,#1b2330)!important}
#adventure-panel .merchant-total strong{color:var(--mg-hi);font-size:18px}
#adventure-panel .merchant-review>button,#adventure-panel .merchant-review button.is-primary{min-height:44px;border-radius:10px!important;background:linear-gradient(180deg,#ffd27a,#e9a23a 45%,#b8700f)!important;color:#2b1802!important;border:1px solid #f6dc96!important;font-weight:800;font-size:14px;box-shadow:inset 0 1px #fff6d6,0 0 18px #e9a23a44}
#adventure-panel .merchant-review>button:disabled{filter:grayscale(.7);opacity:.6}
#adventure-panel .merchant-review.is-confirming{border-color:var(--mg);background:#d9b25f12}
#adventure-panel .merchant-empty{color:var(--mm)}
.rv-dungeon-key{display:flex;align-items:center;gap:8px;margin:6px 0 0;padding:6px 10px;border-radius:8px;background:#e8f6e0;border:1px solid #8cc172;font-size:12.5px}.rv-dungeon-key.is-missing{background:#fbe7e2;border-color:#d07a66}.rv-dungeon-key img{width:28px;height:28px}
/* Métiers : ressources par niveau ; maître de métier ; coffre de banque. */
#adventure-panel .rv-resources{list-style:none;margin:8px 0 4px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:5px}
#adventure-panel .rv-resources li{display:flex;align-items:center;gap:6px;padding:4px 6px;border:1px solid #cdbf98;border-radius:7px;background:#f5eedb;font-size:12px}
#adventure-panel .rv-resources li span{display:flex;flex-direction:column;flex:1;min-width:0}#adventure-panel .rv-resources li small{color:#7a6d4f;font-size:10.5px}
#adventure-panel .rv-resources li.is-locked{opacity:.62}#adventure-panel .rv-resources li i{font-style:normal;color:#4d6a2b;font-weight:800}
#adventure-panel .rv-job.is-unknown{border-style:dashed}#adventure-panel .rv-job-learn{font-size:12.5px;margin:6px 0}
#adventure-panel .rv-bank-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border:1px solid #cdbf98;border-radius:8px;background:#f5eedb;margin-bottom:8px;font-size:12.5px}
#adventure-panel .rv-bank-bar input{width:90px;margin-left:4px}#adventure-panel .rv-bank-kamas{display:flex;align-items:center;gap:4px;flex:1;min-width:180px}
#adventure-panel .rv-bank-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}#adventure-panel .rv-bank-cols h3{margin:0 0 6px;font-size:14px}
#adventure-panel .rv-bank-cols ul{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:4px}
#adventure-panel .rv-bank-cols li{display:flex;align-items:center;gap:6px;padding:3px 6px;border:1px solid #d8cdab;border-radius:6px;background:#faf5e6;font-size:12px}
#adventure-panel .rv-bank-cols li span{flex:1;min-width:0;display:flex;flex-direction:column}#adventure-panel .rv-bank-cols li small{color:#7a6d4f}
#adventure-panel .rv-bank-cols li.empty{justify-content:center;color:#8a7d5c;font-style:italic}#adventure-panel .rv-bank-note{display:block;margin-top:8px;color:#7a6d4f}
@media (max-width:640px){#adventure-panel .rv-bank-cols{grid-template-columns:1fr}}

/* Banque façon Rétro. */
#adventure-panel[data-context=banker]{width:min(860px,calc(100vw - 24px));max-height:min(720px,calc(100dvh - 90px));left:50%;transform:translateX(-50%)}
#adventure-panel .rv-bank-greet{display:flex;flex-direction:column;gap:10px;align-items:flex-start}#adventure-panel .rv-bank-greet small{opacity:.75}
#adventure-panel .rv-bank2{display:flex;flex-direction:column;gap:10px}
#adventure-panel .rv-bank-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:10px;background:#f4ecd4;border:1px solid #d3c495;color:#3d3420}
#adventure-panel .rv-bank-money{display:flex;align-items:center;gap:12px;font-size:13px}#adventure-panel .rv-bank-money img{width:26px;height:26px}#adventure-panel .rv-bank-money b{font-size:15px}
#adventure-panel .rv-bank-kamas{display:flex;gap:6px;align-items:center}#adventure-panel .rv-bank-kamas input{width:110px;padding:5px 7px;border-radius:7px;border:1px solid #b9a978}
#adventure-panel .rv-bank-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#adventure-panel .rv-bank-tools nav{display:flex;gap:4px;flex-wrap:wrap}
#adventure-panel .rv-bank-tools nav button{padding:4px 10px;border-radius:999px;font-size:12px}#adventure-panel .rv-bank-tools input{flex:1;min-width:140px;padding:5px 9px;border-radius:999px;border:1px solid #b9a978}
#adventure-panel .rv-bank-cols2{display:grid;grid-template-columns:1fr 112px 1fr;gap:10px;align-items:stretch}
#adventure-panel .rv-bank-side{display:flex;flex-direction:column;min-width:0;border:1px solid #cdbf98;border-radius:12px;background:#efe6c9;overflow:hidden}
#adventure-panel .rv-bank-side>header{display:flex;align-items:center;gap:8px;padding:7px 10px;background:linear-gradient(180deg,#5a4a2e,#3f3320);color:#f7ebc8}:where(html[data-theme="nuit"]) #adventure-panel .rv-bank-side>header{background:linear-gradient(180deg,#313f57,#222c3d)}
#adventure-panel .rv-bank-side>header h3{margin:0;font:400 16px/1.1 var(--font-display,"Bree Serif",serif);color:inherit}#adventure-panel .rv-bank-side>header small{opacity:.75;flex:1}
#adventure-panel .rv-bank-all{padding:2px 9px;border-radius:999px;font-size:11px}
#adventure-panel .rv-bank-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:5px;padding:8px;min-height:260px;max-height:380px;overflow:auto;align-content:start}
#adventure-panel .rv-bank-cell{position:relative;aspect-ratio:1;display:grid;place-items:center;padding:3px;border-radius:8px;border:1px solid #c9b989;background:radial-gradient(circle at 50% 40%,#fffaf0,#e8dcb5);cursor:pointer;user-select:none}
#adventure-panel .rv-bank-cell img{width:78%;height:78%;object-fit:contain;pointer-events:none}
#adventure-panel .rv-bank-cell b{position:absolute;right:2px;bottom:1px;padding:0 4px;border-radius:6px;background:#2f2717d9;color:#fff3cf;font-size:10.5px;line-height:15px;pointer-events:none}:where(html[data-theme="nuit"]) #adventure-panel .rv-bank-cell b{background:#19202dd9}
#adventure-panel .rv-bank-cell:hover{border-color:#c98a2a}#adventure-panel .rv-bank-cell.is-selected{border-color:#d97a10;box-shadow:0 0 0 2px #f0a43a,inset 0 0 0 1px #fff;background:radial-gradient(circle at 50% 40%,#fff3cc,#f3cf7d)}
#adventure-panel .rv-bank-empty{grid-column:1/-1;margin:30px 0;text-align:center;font-style:italic;color:#8a7d5c}
#adventure-panel .rv-bank-move{display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:center}#adventure-panel .rv-bank-move button{padding:9px 6px;font-weight:800}
#adventure-panel .rv-bank-move label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#efe3bf}#adventure-panel .rv-bank-move input{width:100%;padding:5px;border-radius:7px;border:1px solid #b9a978;text-align:center}
#adventure-panel .rv-bank-move small{font-size:10px;opacity:.75;color:#efe3bf}#adventure-panel .rv-bank-note{opacity:.75;font-size:11px}
@media (max-width:700px){#adventure-panel .rv-bank-cols2{grid-template-columns:1fr}#adventure-panel .rv-bank-move{flex-direction:row;flex-wrap:wrap}#adventure-panel[data-context=banker]{left:8px;transform:none}}
html[data-theme] #adventure-panel[data-context=banker]{width:min(860px,calc(100vw - 24px))!important;max-width:none!important}
html[data-theme] #adventure-panel .rv-bank-side>header :is(h3,small){color:#f7ebc8!important;text-shadow:0 1px 0 #0006}
html[data-theme] #adventure-panel .rv-bank-move :is(label,small){color:#6f6a4e!important}
html[data-theme] #adventure-panel .rv-bank-tools nav button{padding:4px 12px!important;border-radius:999px!important;font-size:12px!important;min-height:0!important}
html[data-theme] #adventure-panel .rv-bank-tools nav button[aria-pressed=true]{background:linear-gradient(180deg,#f7a54a,#d86c08)!important;color:#fff!important;border-color:#7a3a00!important}
html[data-theme] #adventure-panel .rv-bank-tools nav{border:0!important}
html[data-theme] #adventure-panel .rv-bank-all{padding:2px 9px!important;min-height:0!important;font-size:11px!important}
/* Banquier : petite fenêtre d'accueil ; la grande fenêtre seulement coffre ouvert (un peu plus grande). */
html[data-theme] #adventure-panel[data-context=banker]:not(.bank-open){width:min(380px,calc(100vw - 24px))!important}
html[data-theme] #adventure-panel[data-context=banker].bank-open{width:min(980px,calc(100vw - 24px))!important;max-height:min(800px,calc(100dvh - 60px))}
#adventure-panel.bank-open .rv-bank-grid{min-height:340px;max-height:460px;grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
#adventure-panel .rv-bank-greet{align-items:stretch;text-align:center}
#adventure-panel .rv-bank-greet blockquote{position:relative;margin:2px 0 4px;padding:10px 12px;border-radius:12px;background:#fffaf0;border:1px solid #d6c79a;font-style:italic;font-size:13px;line-height:1.4;color:#4a3f26}
#adventure-panel .rv-bank-greet blockquote::after{content:"";position:absolute;left:24px;bottom:-7px;width:12px;height:12px;background:#fffaf0;border-right:1px solid #d6c79a;border-bottom:1px solid #d6c79a;transform:rotate(45deg)}
#adventure-panel .rv-bank-price{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;border-radius:9px;background:#f1e7c8;font-size:12.5px;color:#5a4f33}
#adventure-panel .rv-bank-price b{display:flex;align-items:center;gap:5px;font-size:16px;color:#3a2f16}#adventure-panel .rv-bank-price img{width:18px;height:18px}
#adventure-panel .rv-bank-greet small{font-size:11px;opacity:.75}

/* Donjon : bannière, clef, parcours des salles. */
html[data-theme] #adventure-panel[data-context=dungeon]{width:min(440px,calc(100vw - 24px))!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)}
#adventure-panel .rv-dungeon2{display:flex;flex-direction:column;gap:10px}
#adventure-panel .rv-dg-hero{position:relative;display:flex;align-items:center;gap:12px;min-height:92px;padding:12px 14px;border-radius:14px;background:radial-gradient(circle at 18% 60%,#f6e3a8,#d9b766 55%,#a97a2c);border:1px solid #8a6a2c;color:#2b1d08;overflow:hidden}:where(html[data-theme="nuit"]) #adventure-panel .rv-dg-hero{border:1px solid #3d5379}
#adventure-panel .rv-dg-boss{width:86px;height:86px;object-fit:contain;filter:drop-shadow(0 4px 4px #0006)}
#adventure-panel .rv-dg-hero small{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
html[data-theme] #adventure-panel .rv-dg-hero h3{margin:1px 0 6px!important;font:400 22px/1.1 var(--font-display,"Bree Serif",serif)!important;color:#2b1d08!important}
#adventure-panel .rv-dg-chips{display:flex;flex-wrap:wrap;gap:5px}#adventure-panel .rv-dg-chips span{padding:2px 8px;border-radius:999px;background:#fff8e1cc;border:1px solid #a97a2c88;font-size:11px;font-weight:800}:where(html[data-theme="nuit"]) #adventure-panel .rv-dg-chips span{border:1px solid #46618f88}
#adventure-panel .rv-dg-key{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:1px solid #9fc06a;background:#eef6dd;color:#2f3d1a}
#adventure-panel .rv-dg-key.is-missing{border-color:#d08a7a;background:#fbe9e4;color:#5a2216}
#adventure-panel .rv-dg-key img{width:34px;height:34px;object-fit:contain}#adventure-panel .rv-dg-key span{flex:1;display:flex;flex-direction:column;font-size:12.5px}#adventure-panel .rv-dg-key small{opacity:.75;font-size:11px}
#adventure-panel .rv-dg-key em{font-style:normal;font-weight:900;font-size:14px}
#adventure-panel .rv-dg-stages{list-style:none;margin:0;padding:0 0 0 6px;display:flex;flex-direction:column;gap:0;position:relative}
#adventure-panel .rv-dg-stages li{position:relative;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;font-size:12.5px}
#adventure-panel .rv-dg-stages li:not(:last-child)::after{content:"";position:absolute;left:22px;top:30px;width:2px;height:calc(100% - 18px);background:#cdb984}
#adventure-panel .rv-dg-n{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#3f3320;color:#f7ebc8;font-weight:900;font-size:12px;z-index:1}:where(html[data-theme="nuit"]) #adventure-panel .rv-dg-n{background:#222c3d}
#adventure-panel .rv-dg-name{font-weight:800}#adventure-panel .rv-dg-stages small{opacity:.7;font-size:11px}
#adventure-panel .rv-dg-stages li.is-boss{background:linear-gradient(90deg,#f6d9d0,#fff0);}#adventure-panel .rv-dg-stages li.is-boss .rv-dg-n{background:#b3261e;color:#ffe9a8}
#adventure-panel .rv-dg-stages li.is-done .rv-dg-n{background:#4d7a2a}#adventure-panel .rv-dg-stages li.is-current{background:#fff3cc;box-shadow:inset 0 0 0 1px #e9a23a}
#adventure-panel .rv-dungeon2>footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#adventure-panel .rv-dungeon2>footer .adventure-primary{flex:1;min-height:42px;font-size:15px}

/* Donjon « premium » : bannière sombre et dorée, progression, salles en cartes (statut, monstres), actions hiérarchisées. */
#adventure-panel .rv-dg-premium{gap:12px}
#adventure-panel .rv-dg-premium .rv-dg-hero{min-height:118px;padding:16px 16px 14px;border-radius:16px;border:1px solid #c79a3c;background:radial-gradient(120% 140% at 0% 100%,#5b3b14 0%,#2e2210 55%,#1d150a 100%);color:#f7ebc8;box-shadow:inset 0 1px #ffe2a055,0 8px 22px #0005}:where(html[data-theme="nuit"]) #adventure-panel .rv-dg-premium .rv-dg-hero{background:radial-gradient(120% 140% at 0% 100%,#24324b 0%,#151c29 55%,#0d121a 100%)}
#adventure-panel .rv-dg-premium .rv-dg-hero::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 40%,#ffd27a14 55%,transparent 70%);pointer-events:none}
#adventure-panel .rv-dg-premium .rv-dg-boss{width:104px;height:104px;filter:drop-shadow(0 6px 8px #000a) drop-shadow(0 0 14px #ffcc6655)}
#adventure-panel .rv-dg-premium .rv-dg-title{flex:1;min-width:0}
#adventure-panel .rv-dg-premium .rv-dg-hero small{color:#e9c27a;opacity:1}
html[data-theme] #adventure-panel .rv-dg-premium .rv-dg-hero h3{color:#fff3d6!important;font-size:24px!important;text-shadow:0 2px 6px #000a}
#adventure-panel .rv-dg-premium .rv-dg-chips span{background:#ffffff14;border-color:#e9c27a66;color:#f7ebc8}
#adventure-panel .rv-dg-progress{position:relative;margin-top:10px;height:18px;border-radius:999px;background:#00000055;border:1px solid #e9c27a55;overflow:hidden}
#adventure-panel .rv-dg-progress i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#d98a1f,#ffd27a);box-shadow:0 0 12px #ffb54a88;transition:width .4s ease}
#adventure-panel .rv-dg-progress b{position:relative;display:block;text-align:center;font:800 11px/18px var(--font-ui,sans-serif);color:#fff;text-shadow:0 1px 2px #000}
#adventure-panel .rv-dg-premium .rv-dg-key{border-radius:14px;padding:10px 12px;box-shadow:0 2px 6px #0001}
#adventure-panel .rv-dg-premium .rv-dg-key em{padding:3px 9px;border-radius:999px;background:#4d7a2a;color:#fff;font-size:12px}
#adventure-panel .rv-dg-premium .rv-dg-key.is-missing em{background:#b3261e}
#adventure-panel .rv-dg-premium .rv-dg-stages{padding:0;gap:6px}
#adventure-panel .rv-dg-premium .rv-dg-stages li{grid-template-columns:34px 1fr auto auto;gap:10px;padding:9px 10px;border-radius:12px;background:#fffaf0;border:1px solid #e3d3a8;box-shadow:0 1px 3px #0000000d}
#adventure-panel .rv-dg-premium .rv-dg-stages li::after{display:none}
#adventure-panel .rv-dg-premium .rv-dg-n{width:30px;height:30px;font-size:13px;background:#cbb98d;color:#3a2a08}
#adventure-panel .rv-dg-premium .rv-dg-name{display:flex;flex-direction:column;min-width:0;line-height:1.2}
#adventure-panel .rv-dg-premium .rv-dg-name small{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.6}
#adventure-panel .rv-dg-premium .rv-dg-name b{font-size:13.5px}#adventure-panel .rv-dg-premium .rv-dg-name em{font-style:normal;font-size:11px;opacity:.7}
#adventure-panel .rv-dg-faces{display:flex}#adventure-panel .rv-dg-faces img{width:30px;height:30px;object-fit:contain;margin-left:-8px;filter:drop-shadow(0 2px 2px #0004)}
#adventure-panel .rv-dg-state{padding:3px 9px;border-radius:999px;font:800 10.5px/1.4 var(--font-ui,sans-serif);background:#e9e0c6;color:#6b5a32;white-space:nowrap}
#adventure-panel .rv-dg-premium li.is-done{opacity:.72}#adventure-panel .rv-dg-premium li.is-done .rv-dg-n{background:#4d7a2a;color:#fff}#adventure-panel .rv-dg-premium li.is-done .rv-dg-state{background:#dcebc9;color:#2f5a12}
#adventure-panel .rv-dg-premium li.is-current{background:linear-gradient(90deg,#fff1c9,#fffaf0);border-color:#e9a23a;box-shadow:0 0 0 2px #f0a43a55,0 4px 12px #e9a23a33}#adventure-panel .rv-dg-premium li.is-current .rv-dg-n{background:#d86c08;color:#fff}#adventure-panel .rv-dg-premium li.is-current .rv-dg-state{background:#d86c08;color:#fff}
#adventure-panel .rv-dg-premium li.is-boss{background:linear-gradient(90deg,#f8dcd3,#fffaf0)}#adventure-panel .rv-dg-premium li.is-boss .rv-dg-n{background:#8e1f17;color:#ffe9a8}
#adventure-panel .rv-dg-actions{display:flex;flex-direction:column;gap:8px}
#adventure-panel .rv-dg-actions .rv-dg-go{width:100%;min-height:46px;font-size:15.5px;border-radius:12px;box-shadow:0 4px 12px #d86c0844}
#adventure-panel .rv-dg-sub{display:flex;gap:8px}#adventure-panel .rv-dg-sub button{flex:1;min-height:36px;border-radius:10px}
#adventure-panel .rv-dg-quiet{background:transparent!important;border-color:#b9a77d!important;color:#6b5a32!important}
#adventure-panel .rv-dg-hint{font-size:12.5px;opacity:.8;text-align:center}#adventure-panel .rv-dg-won{text-align:center;font-weight:900;color:#8e1f17}
html[data-theme] #adventure-panel .rv-dg-premium .rv-dg-hero small{color:#f0c97a!important;opacity:1!important}

/* Donjon (adventure-ui.js) : ligne du boss sous le titre ; un seul donjon par gardien. */
.rv-dg-boss-line{margin:2px 0 6px;font-size:12.5px;color:#f3dfae;text-shadow:0 1px 3px #000}.rv-dg-boss-line b{color:#ffd07a}
/* Métiers : résumé (pastilles niveau + barre d'XP), métiers appris d'abord, les autres repliés */
.rv-job-summary{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.rv-job-summary p{margin:0;font-size:13px;opacity:.8}
.rv-job-pill{position:relative;display:inline-flex;align-items:center;gap:6px;padding:4px 10px 6px 4px;border-radius:999px;background:var(--theme-card,#f7eed4);border:1px solid var(--theme-border,#d6c49a);overflow:hidden;font-size:12.5px}
.rv-job-pill .rv-chip{width:24px;height:24px}
.rv-job-pill em{font-style:normal;font-weight:800;min-width:22px;text-align:center;padding:1px 6px;border-radius:999px;background:var(--theme-accent,#4f7a2a);color:#fff}
.rv-job-pill i{position:absolute;left:0;bottom:0;height:3px;width:var(--p);background:var(--theme-accent,#4f7a2a);opacity:.7}
.rv-job-more{margin-top:10px}
.rv-job-more>summary{cursor:pointer;font-weight:700;padding:6px 2px}
/* ===== Activités plus lisibles (12/10/2026) : fenêtre large sur ordinateur, métiers et lieux sur deux colonnes, vignettes de ressources nettes ===== */
#adventure-ui .rv-resources li>span:not(.rv-chip){display:flex;flex-direction:column;flex:1;min-width:0}
#adventure-ui .rv-resources li>.rv-chip{display:inline-grid;flex:none;width:38px;height:38px;border-radius:8px;background:radial-gradient(circle at 50% 40%,#fffaf0,#e4d6ae);border-color:#c9b27a}
#adventure-ui .rv-resources li>.rv-chip img{width:32px;height:32px}
#adventure-ui .rv-resources li{min-height:48px}
#adventure-ui .rv-resources li b{font-size:12.5px;line-height:1.2}
#adventure-ui .rv-resources li.is-ok{background:#f2f7e4;border-color:#a9c27a}
#adventure-ui .rv-resources li.is-locked{opacity:.78}
#adventure-ui .rv-resources li.is-locked>.rv-chip img{filter:saturate(.55)}
@media (min-width:900px){
 html body #adventure-panel:not([data-context="merchant"]){width:min(900px,calc(100vw - 48px))!important;max-height:min(780px,calc(100dvh - 60px))!important}
 #adventure-panel:not([data-context="merchant"]) .rv-jobs{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
 #adventure-panel:not([data-context="merchant"]) .rv-resources{grid-template-columns:repeat(2,minmax(0,1fr))}
 #adventure-panel:not([data-context="merchant"]) .adventure-places{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #adventure-panel:not([data-context="merchant"]) .adventure-place{padding:8px 10px}
}
/* Lieux utiles : grille sur ordinateur (plus de longue colonne à faire défiler) */
@media (min-width:760px){#adventure-ui .rv-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}#adventure-ui .rv-list .rv-row{margin:0!important;min-height:0!important;padding:6px 8px!important}}
@media (min-width:1100px){#adventure-ui .rv-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Banque : glisser-déposer (15/10/2026) */
#adventure-panel .rv-bank-side.is-drop{outline:3px dashed #d08a2a;outline-offset:-3px;background:#f7e7b9}
#adventure-panel .rv-bank-cell.is-dragging{opacity:.45}
#adventure-panel .rv-bank-cell[draggable=true]{cursor:grab}
/* Banque (16/10/2026) : lignes de taille fixe (les cases carrées débordaient sur la ligne suivante et cachaient les quantités) */
html[data-theme] body #adventure-panel .rv-bank-grid{grid-template-columns:repeat(auto-fill,58px)!important;grid-auto-rows:58px!important;justify-content:start;gap:5px!important}
html[data-theme] body #adventure-panel .rv-bank-cell{width:58px!important;height:58px!important;min-height:0!important;min-width:0!important;aspect-ratio:auto!important;padding:3px!important;margin:0!important;box-sizing:border-box!important}
html[data-theme] body #adventure-panel .rv-bank-cell b{z-index:1;color:#fff3cf!important;text-shadow:none!important}

/* Banque : fiche de l'objet cliqué, accolée à la fenêtre (16/10/2026) */
#bank-info{position:fixed;z-index:2147480000;width:270px;box-sizing:border-box;overflow:auto;padding:0 0 8px;border:1px solid #17120b;border-left-width:2px;border-radius:0 10px 10px 0;background:linear-gradient(180deg,#e7e0c3,#d6cda7);color:#2f2a1e;box-shadow:0 10px 28px #0008;font-size:12.5px}:where(html[data-theme="nuit"]) #bank-info{border:1px solid #0c1016}
#bank-info.is-left{border-radius:10px 0 0 10px;border-left-width:1px;border-right-width:2px}
#bank-info header{position:sticky;top:0;display:flex;align-items:center;gap:8px;padding:6px 8px;background:linear-gradient(180deg,#5b5243,#342e24);color:#fff6dc;border-bottom:1px solid #e8780c}:where(html[data-theme="nuit"]) #bank-info header{background:linear-gradient(180deg,#3c4a62,#212937)}
#bank-info header img{width:42px;height:42px;object-fit:contain;padding:2px;border-radius:7px;background:radial-gradient(circle,#fffaf0,#e8dcb5)}
#bank-info header h3{margin:0;font:400 15px/1.2 var(--font-display,'Bree Serif',serif);color:#fff6dc}#bank-info header small{opacity:.8;font-size:11px}
#bank-info header button{margin-left:auto;align-self:flex-start;width:22px;height:22px;border-radius:5px;border:1px solid #0006;background:#0003;color:#fff6dc;cursor:pointer;padding:0;min-height:0}
#bank-info dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:8px 10px}#bank-info dt{font-weight:700;opacity:.75}#bank-info dd{margin:0;text-align:right;font-weight:700}
#bank-info .bi-fx{margin:6px 10px;padding:6px 8px;border-radius:7px;background:#fffaf0b3;border:1px solid #0000001a;display:flex;flex-direction:column;gap:2px}
#bank-info p{margin:6px 10px}#bank-info .bi-desc{font-style:italic;color:#4a4232}#bank-info .bi-src{font-size:11.5px;color:#5e5640}#bank-info .bi-hint{font-size:11px;opacity:.7}
@media (max-width:700px){#bank-info{left:0!important;right:0;top:auto!important;bottom:0;width:100%;max-height:45vh!important;border-radius:12px 12px 0 0}}
/* filtres de la banque : libellés entiers */
html[data-theme] #adventure-panel .rv-bank-tools nav button{white-space:nowrap;padding-inline:12px!important;min-width:max-content}

/* filtre par type de chaque colonne de la banque (16/10/2026) */
#adventure-panel .rv-bank-sidefilter{display:flex;gap:3px;padding:4px 6px;background:#e3d9b6;border-bottom:1px solid #cdbf98;flex-wrap:wrap}
html[data-theme] body #adventure-panel .rv-bank-sidefilter button{min-height:22px!important;padding:0 9px!important;border-radius:999px!important;border:1px solid #b9a978!important;background:#fffaf0!important;background-image:none!important;color:#2f2a1e!important;text-shadow:none!important;box-shadow:none!important;font-size:11.5px;font-weight:700;white-space:nowrap;cursor:pointer}
html[data-theme] body #adventure-panel .rv-bank-sidefilter button[aria-pressed=true]{background:#5b5243!important;color:#fff6dc!important;border-color:#5b5243!important}html[data-theme]:where([data-theme="nuit"]) body #adventure-panel .rv-bank-sidefilter button[aria-pressed=true]{background:#3c4a62!important;border-color:#3c4a62!important}

/* fiche banque, mise en forme (16/10/2026) */
#bank-info{width:280px;background:linear-gradient(180deg,#f1ead2,#e0d7b4)}
#bank-info .bi-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:4px;margin:8px 8px 4px}
#bank-info .bi-chips span{display:flex;flex-direction:column;align-items:center;padding:4px 2px;border-radius:7px;background:#fffaf0;border:1px solid #0000001a}
#bank-info .bi-chips small{font-size:10px;opacity:.7;text-transform:uppercase;letter-spacing:.03em}#bank-info .bi-chips b{font-size:13px}
#bank-info .bi-fx{margin:6px 8px;padding:6px 8px 8px;border-radius:8px;background:#fffaf0;border:1px solid #e8780c55;display:flex;flex-direction:column;gap:3px}
#bank-info .bi-fx h4{margin:0 0 3px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8f4600}
#bank-info .bi-fx .item-bonus{display:flex;align-items:center;gap:6px;white-space:normal;font-size:12.5px}
#bank-info .bi-fx .rv-stat-icon{width:16px;height:16px}
#bank-info .bi-fx details{margin-top:4px;font-size:11.5px;opacity:.85}#bank-info .bi-fx summary{cursor:pointer;font-weight:700;font-size:11px;color:#5e5640}
#bank-info .bi-set{padding:4px 8px;border-radius:7px;background:#3f382c;color:#fff6dc;font-size:12px}:where(html[data-theme="nuit"]) #bank-info .bi-set{background:#283243}#bank-info .bi-set b{color:#ffd78a}
#bank-info .bi-desc{padding-left:8px;border-left:3px solid #c9b98a}
html[data-theme] body #adventure-panel .rv-bank-type{min-height:22px!important;height:22px;padding:0 6px!important;border-radius:999px;border:1px solid #b9a978;background:#fffaf0;color:#2f2a1e;font-size:11.5px;font-weight:700;max-width:150px}

/* banque : filtres à largeur naturelle, valeur estimée, nom de la fiche (16/10/2026) */
html[data-theme] body #adventure-panel .rv-bank-sidefilter button{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important}
#adventure-panel .rv-bank-worth{color:#ffd78a;font-weight:700}
#bank-info header h3[data-info-range]{cursor:pointer;user-select:none}

/* fiche banque : recettes (16/10/2026) */
#bank-info .bi-craft{margin:6px 8px;padding:6px 8px;border-radius:8px;background:#fffaf0;border:1px solid #0000001a}
#bank-info .bi-craft h4{margin:0 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#5b5243}
#bank-info .bi-craft ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
#bank-info .bi-craft li{display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:5px;cursor:pointer}
#bank-info .bi-craft li:hover{background:#f3d79a}
#bank-info .bi-craft li img{width:22px;height:22px;object-fit:contain}#bank-info .bi-craft li span{flex:1;font-size:12px;font-weight:600}#bank-info .bi-craft li small{font-size:11px;opacity:.75;white-space:nowrap}
#bank-info .bi-more{display:block;margin-top:3px;font-size:11px;opacity:.7}

/* fiche banque, refonte (16/10/2026) : en-tête lisible (nom sur plusieurs lignes sans casser), étiquettes, blocs aérés */
html body #bank-info{width:300px;padding:0 0 10px;border:1px solid #2b2216;border-radius:0 12px 12px 0;background:#efe7cf;box-shadow:0 14px 34px #0009,inset 0 0 0 1px #fff6;font:13px/1.35 var(--font-body,system-ui,sans-serif);scrollbar-width:thin}html:where([data-theme="nuit"]) body #bank-info{border:1px solid #171e2a}
html body #bank-info.is-left{border-radius:12px 0 0 12px}
html body #bank-info header{z-index:1;display:grid;grid-template-columns:56px 1fr 24px;align-items:start;gap:10px;padding:10px 10px 10px 10px;background:linear-gradient(160deg,#4a4132,#2b251b);border-bottom:2px solid #e8780c}html:where([data-theme="nuit"]) body #bank-info header{background:linear-gradient(160deg,#2f3a4d,#1a212c)}
html body #bank-info header img{width:56px;height:56px;padding:4px;box-sizing:border-box;border-radius:10px;background:radial-gradient(circle at 50% 40%,#fffaf0,#d9cba0);box-shadow:inset 0 0 0 1px #0003,0 2px 6px #0006}
html body #bank-info header>div{min-width:0}
html body #bank-info header h3{margin:2px 0 5px;font:400 16px/1.2 var(--font-display,'Bree Serif',serif);color:#fff6dc;overflow-wrap:anywhere;hyphens:auto;text-wrap:balance}
html body #bank-info .bi-tags{display:flex;flex-wrap:wrap;gap:4px;margin:0}
html body #bank-info .bi-tags i{font-style:normal;font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:999px;background:#ffffff1f;color:#f3e6c4;white-space:nowrap}
html body #bank-info .bi-tags i.is-lvl{background:#e8780c;color:#fff}
html body #bank-info header button{width:24px;height:24px;margin:0;border-radius:6px;font-size:16px;line-height:1;background:#ffffff14;border:1px solid #ffffff2a}
html body #bank-info header button:hover{background:#c0392b}
html body #bank-info .bi-chips{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:5px;margin:10px 10px 6px}
html body #bank-info .bi-chips span{padding:5px 2px;border-radius:8px;background:#fffdf6;border:1px solid #d8cba5}
html body #bank-info .bi-chips small{font-size:9.5px;font-weight:700;color:#7a6d52}
html body #bank-info .bi-chips b{font-size:13.5px;color:#2f2a1e;white-space:nowrap}
html body #bank-info .bi-fx,html body #bank-info .bi-craft{margin:8px 10px;padding:8px 10px;border-radius:9px;background:#fffdf6;border:1px solid #d8cba5;box-shadow:0 1px 0 #fff inset}
html body #bank-info .bi-fx h4,html body #bank-info .bi-craft h4{margin:0 0 6px;padding-bottom:4px;border-bottom:1px solid #eadfc2;font-size:10.5px;font-weight:800;letter-spacing:.05em;color:#8f4600}
html body #bank-info .bi-fx .item-bonus{font-size:13px;padding:1px 0}
html body #bank-info .bi-set{margin:8px 10px;padding:6px 10px;border-radius:9px}
html body #bank-info .bi-desc{margin:8px 12px;font-size:12px;line-height:1.45}
html body #bank-info .bi-src{margin:6px 12px;font-size:11.5px}
html body #bank-info .bi-hint{margin:8px 12px 0;padding-top:6px;border-top:1px dashed #c9b98a;font-size:10.5px}
@media (max-width:700px){html body #bank-info{width:100%;border-radius:12px 12px 0 0}}

/* messages du haut sous la pile de bandeaux (16/10/2026) */
html body #adventure-toast{top:max(calc(68px + env(safe-area-inset-top,0px)),calc(var(--rv-top-stack,0px) + 8px))!important}

/* fenêtre de donjon compacte (16/10/2026) : frise des salles, chrono et records */
.rv-dg-premium .rv-dg-hero{padding:10px 12px!important;gap:10px!important}
.rv-dg-premium .rv-dg-boss{width:64px!important;height:64px!important}
.rv-dg-premium .rv-dg-title h3{font-size:19px!important;margin:2px 0!important}
.rv-dg-premium .rv-dg-key{margin:8px 0!important;padding:6px 10px!important}
.rv-dg-stats{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.rv-dg-stats span{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;background:#fffaf0;border:1px solid #d8cba5;font:600 12px/1.2 var(--font-ui,sans-serif);color:#5e5640}
.rv-dg-stats b{color:#2f2a1e;font-variant-numeric:tabular-nums}.rv-dg-stats small{opacity:.7}
.rv-dg-stats .is-live{background:#2f3a2a;border-color:#2f3a2a;color:#d8f0c0}.rv-dg-stats .is-live b{color:#fff}
.rv-dg-steps{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:6px;counter-reset:none}
.rv-dg-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px 6px;border-radius:10px;background:#fffaf0;border:1px solid #d8cba5;text-align:center;min-width:0}
.rv-dg-steps li b{font:700 11px/1.15 var(--font-ui,sans-serif);color:#2f2a1e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rv-dg-steps li small{font-size:10px;color:#7a6d52}
.rv-dg-steps .rv-dg-n{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#d8cba5;color:#fff;font:800 12px/1 var(--font-ui,sans-serif)}
.rv-dg-steps .is-done .rv-dg-n{background:#4f8a2c}.rv-dg-steps .is-current{border-color:#e8780c;box-shadow:0 0 0 2px #e8780c55}.rv-dg-steps .is-current .rv-dg-n{background:#e8780c}
.rv-dg-steps .is-boss .rv-dg-n{background:#8e1b3a}.rv-dg-steps .is-boss.is-done .rv-dg-n{background:#4f8a2c}
.rv-dg-steps .rv-dg-faces{display:flex;justify-content:center;height:26px}.rv-dg-steps .rv-dg-faces img{height:26px;width:auto;margin:0 -4px}
.rv-dg-steps li:not(:last-child)::after{content:"";position:absolute;right:-6px;top:20px;width:6px;height:2px;background:#d8cba5}

/* donjon : pas de coche, salle vaincue atténuée ; frise sur une ligne ; textes lisibles (16/10/2026) */
.rv-dg-steps{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important}
.rv-dg-steps .rv-dg-n,.rv-dg-steps .is-done .rv-dg-n,.rv-dg-steps .is-boss.is-done .rv-dg-n{background:#8a7a58!important}:where(html[data-theme="nuit"]) .rv-dg-steps .rv-dg-n,:where(html[data-theme="nuit"]) .rv-dg-steps .is-done .rv-dg-n,:where(html[data-theme="nuit"]) .rv-dg-steps .is-boss.is-done .rv-dg-n{background:#54698e!important}
.rv-dg-steps .is-boss .rv-dg-n{background:#8e1b3a!important}
.rv-dg-steps .is-current .rv-dg-n{background:#e8780c!important}
.rv-dg-steps li.is-done{opacity:.6;background:#f3ecd8!important}
.rv-dg-steps li.is-boss{background:#fbeee6!important;border-color:#c99a8a!important}
.rv-dg-premium .rv-dg-boss-line{color:#efe2c0!important}.rv-dg-premium .rv-dg-boss-line b{color:#ffd78a!important}
.rv-dg-premium .rv-dg-title small{color:#f2c46b!important}
.rv-dg-steps li b{font-size:10.5px!important}
.rv-dg-steps li.is-done{opacity:1!important;background:#fffaf0!important}

/* dernière salle : le boss mis en avant (16/10/2026) */
.rv-dg-steps li.is-boss{grid-column:span 2;background:linear-gradient(160deg,#4a1420,#2b0c12)!important;border-color:#d9a400!important;box-shadow:0 0 0 1px #d9a40066,0 6px 16px #0005}
.rv-dg-steps li.is-boss b{color:#ffd78a!important;font:400 14px/1.15 var(--font-display,"Bree Serif",serif)!important}
.rv-dg-steps li.is-boss small,.rv-dg-steps li.is-boss .rv-dg-room{color:#e9cfa8!important;font-style:normal;font-size:10px}
.rv-dg-steps li.is-boss .rv-dg-n{background:#d9a400!important;color:#2b0c12!important}
.rv-dg-steps .rv-dg-faces.is-boss{height:58px!important}.rv-dg-steps .rv-dg-faces.is-boss img{height:58px!important;margin:0!important;filter:drop-shadow(0 0 8px #ffd78a88)}
/* boss de la dernière salle : dans la frise, mis en valeur sans casser la ligne (16/10/2026) */
.rv-dg-steps li.is-boss{grid-column:auto!important;background:linear-gradient(180deg,#fff4d8,#f3d595)!important;border:2px solid #d9a400!important;box-shadow:0 0 0 1px #fff8 inset,0 4px 12px #b8860b55!important}
.rv-dg-steps li.is-boss b{color:#7a1020!important;font:800 11px/1.15 var(--font-ui,sans-serif)!important}
.rv-dg-steps li.is-boss small,.rv-dg-steps li.is-boss .rv-dg-room{display:none!important}
.rv-dg-steps li.is-boss .rv-dg-n{background:linear-gradient(#ffd75e,#d9a400)!important;color:#5a1010!important;box-shadow:0 1px 3px #0004}
.rv-dg-steps .rv-dg-faces.is-boss{height:30px!important;overflow:visible}
.rv-dg-steps .rv-dg-faces.is-boss img{height:30px!important;transform:scale(1.7);transform-origin:center 80%;filter:drop-shadow(0 2px 3px #0005)!important}
/* gardien du temple (16/10/2026) : point d'exclamation au-dessus tant que les provisions n'ont pas été prises */
.adventure-point .npc-quest-mark{position:absolute;left:50%;top:-30px;transform:translateX(-50%);display:grid;place-items:center;width:22px;height:26px;border-radius:7px;background:linear-gradient(180deg,#ffd94a,#f0a300);border:2px solid #7a4a00;color:#4a2a00;font:900 17px/1 'Arial Black',sans-serif;font-style:normal;box-shadow:0 2px 6px #0007;animation:npc-bob 1.4s ease-in-out infinite;pointer-events:none}
@keyframes npc-bob{50%{transform:translate(-50%,-4px)}}
body.starter-claimed .adventure-point .npc-quest-mark{display:none}
.rv-starter{display:flex;gap:10px;margin:10px 0}
.rv-starter>div{flex:1;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#fffaf0;border:1px solid #d8cba5}
.rv-starter img{width:34px;height:34px;object-fit:contain}.rv-starter b{font:900 16px/1 var(--font-ui,sans-serif);color:#8f4600}
.rv-starter-done{color:#2f7a14;font-weight:800}

/* salle du choix du Donjon des Blops (16/10/2026) */
.rv-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.rv-choice-btn{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 8px!important;border-radius:12px!important;border:1px solid #d6c8a2!important;background:linear-gradient(180deg,#fffaf0,#f1e6c6)!important;cursor:pointer}
.rv-choice-btn:hover{border-color:#e8780c!important;box-shadow:0 4px 12px #0002}
.rv-choice-btn img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 3px 4px #0005)}
.rv-choice-btn b{font-size:13px;color:#2f2416}.rv-choice-btn small{font-size:11px;color:#7a6a45}
/* ===== Fenêtre de donjon (17/10/2026) : portraits contenus dans leur carte, boss mis en avant, clef moins alarmante ===== */
.rv-dg-premium .rv-dg-steps{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;gap:8px!important}
.rv-dg-premium .rv-dg-steps li{overflow:hidden!important;padding:10px 6px 8px!important;gap:4px!important;box-shadow:0 1px 0 #fff8 inset,0 2px 6px #3a2a0814}:where(html[data-theme="nuit"]) .rv-dg-premium .rv-dg-steps li{box-shadow:0 1px 0 #fff8 inset,0 2px 6px #141e2e14}
.rv-dg-premium .rv-dg-steps .rv-dg-faces{display:flex!important;justify-content:center;align-items:flex-end;height:40px;max-width:100%;overflow:hidden;padding-left:8px}
.rv-dg-premium .rv-dg-steps .rv-dg-faces img{width:34px!important;height:34px!important;max-width:34px!important;object-fit:contain!important;margin-left:-10px!important;flex:none}
.rv-dg-premium .rv-dg-steps li.is-boss{grid-column:span 2;background:linear-gradient(180deg,#fff3cf,#f6dc93)!important;border-color:#d4a12c!important}
.rv-dg-premium .rv-dg-steps li.is-boss .rv-dg-faces{height:52px}
.rv-dg-premium .rv-dg-steps li.is-boss .rv-dg-faces img{width:46px!important;height:46px!important;max-width:46px!important}
.rv-dg-premium .rv-dg-steps li b{-webkit-line-clamp:2;font-size:11.5px!important;min-height:2.3em}
.rv-dg-premium .rv-dg-key.is-missing{background:#fff4e0!important;border-color:#e2b067!important}
.rv-dg-premium .rv-dg-key.is-missing em{background:#c47a1c!important;color:#fff!important}:where(html[data-theme="nuit"]) .rv-dg-premium .rv-dg-key.is-missing em{background:#45649b!important}
.rv-dg-premium .rv-dg-key small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* ===== Fenêtre de donjon, correctifs (18/10/2026) : les règles !important du 16/10 écrasaient la refonte du 17/10 ===== */
/* boss : une colonne, portrait entier (fini le scale(1.7) rogné dans 30 px) ; plusieurs boss au choix (Royaux des Blops) en carré 2×2 */
.rv-dg-premium .rv-dg-steps li.is-boss{grid-column:auto!important}
.rv-dg-premium .rv-dg-steps .rv-dg-faces.is-boss{height:52px!important;padding:0!important;overflow:visible!important;align-items:center}
.rv-dg-premium .rv-dg-steps .rv-dg-faces.is-boss img{flex:none!important;transform:none!important;width:48px!important;height:48px!important;max-width:48px!important;margin:0!important}
.rv-dg-premium .rv-dg-steps .rv-dg-faces.is-boss:has(img+img){display:grid!important;grid-template-columns:repeat(2,26px);grid-auto-rows:26px;justify-content:center;align-content:center;gap:0 8px}
.rv-dg-premium .rv-dg-steps .rv-dg-faces.is-boss:has(img+img) img{width:26px!important;height:26px!important;max-width:26px!important}
/* salles à 4 monstres : les portraits se resserrent dans la carte au lieu d'en sortir */
.rv-dg-premium .rv-dg-steps .rv-dg-faces{padding-left:0!important}
.rv-dg-premium .rv-dg-steps .rv-dg-faces img{flex:0 1 34px!important;min-width:0!important;width:auto!important;margin-left:-8px!important}
.rv-dg-premium .rv-dg-steps .rv-dg-faces img:first-child{margin-left:0!important}
/* salle du choix (sans portrait) : couronne lisible */
.rv-dg-premium .rv-dg-steps .rv-dg-faces:not(:has(img)){align-items:center;font-size:28px;line-height:1}
/* ordinateur : fenêtre ancrée sous le bandeau du haut, elle s'arrête au-dessus de la barre de sorts (qui la recouvrait) */
@media (min-width:1001px),(min-width:601px) and (min-height:501px){
html[data-theme] #adventure-ui #adventure-panel[data-context=dungeon]{top:56px!important;transform:translateX(-50%)!important;max-height:calc(100dvh - 172px)!important}
}
/* téléphone couché : bannière compacte pour laisser voir les salles */
@media (max-width:1000px) and (max-height:500px){
#adventure-panel .rv-dg-premium .rv-dg-hero{min-height:0!important;padding:8px 12px!important}
#adventure-panel .rv-dg-premium .rv-dg-boss{width:52px!important;height:52px!important}
html[data-theme] #adventure-panel .rv-dg-premium .rv-dg-hero h3{font-size:18px!important;margin:0 0 2px!important}
#adventure-panel .rv-dg-premium .rv-dg-boss-line{margin:0 0 4px}
}
