/* Mandala Road — percorso a livelli */
html.mr-lock{overflow:hidden}
.mr-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:0 0 .6rem}
.mr-top .mr-lv{margin:0;font:600 .9rem/1.3 Poppins,system-ui,sans-serif;color:#1c1c1c}
.mr-top .mr-lv span{color:#8c6b2c}
.mr-help{flex:none;width:30px;height:30px;border-radius:50%;border:1.5px solid #1c1c1c;background:#fff;font:600 .9rem Poppins,system-ui,sans-serif;cursor:pointer;color:#1c1c1c}
.mr-prog{height:5px;background:#ece7dc;border-radius:5px;margin:.7rem 0 0;overflow:hidden}
.mr-prog b{display:block;height:100%;width:0;background:#e2bb6c;border-radius:5px;transition:width .4s ease}
.mr-challenge{margin:.6rem 0 0;font:400 .85rem/1.4 Poppins,system-ui,sans-serif;color:#4a4a4a}
.mc-fixed-palette .mc-palette-bar{display:none}
.mr-finish{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:95;border:0;border-radius:40px;background:#e2bb6c;color:#1c1c1c;font:600 1.05rem Poppins,system-ui,sans-serif;padding:.95rem 2rem;box-shadow:0 10px 26px #0004;cursor:pointer;animation:mr-pop .35s ease}
.mr-finish[hidden]{display:none}
@keyframes mr-pop{from{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

.mr-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto;background:#1c1c1ccc;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.mr-card{width:min(100%,420px);margin:auto;background:#fafaf8;border-radius:22px;padding:26px 24px 20px;text-align:center;box-shadow:0 20px 50px #0005;font-family:Poppins,system-ui,sans-serif;color:#1c1c1c}
.mr-mark{display:block;margin:0 auto 8px;width:54px;height:54px}
.mr-card h2,.mr-card h3{font-family:Marcellus,Georgia,serif;font-weight:400;margin:0}
.mr-card h2{font-size:2rem}.mr-card h3{font-size:1.75rem;margin:.2rem 0}
.mr-sub,.mr-calm,.mr-ok,.mr-vol{font-family:Lora,Georgia,serif;font-style:italic}
.mr-sub{color:#8c6b2c;font-size:1.05rem;margin:.1rem 0 0}
.mr-rules{list-style:none;counter-reset:r;padding:0;margin:1.3rem 0 0;text-align:left;display:grid;gap:.9rem}
.mr-rules li{counter-increment:r;position:relative;padding-left:2.5rem;font-size:.9rem;line-height:1.5}
.mr-rules li::before{content:counter(r);position:absolute;left:0;top:0;width:1.8rem;height:1.8rem;border-radius:50%;background:#1c1c1c;color:#e2bb6c;display:grid;place-items:center;font-weight:600;font-size:.85rem}
.mr-calm{color:#555;font-size:.9rem;margin:1.2rem 0 1.1rem}
.mr-btn{display:block;width:100%;border-radius:12px;padding:.85rem 1rem;font:600 .98rem Poppins,system-ui,sans-serif;text-align:center;text-decoration:none;cursor:pointer;margin:0 0 .6rem;border:1.5px solid #1c1c1c;box-sizing:border-box}
.mr-primary{background:#1c1c1c;color:#fff}
.mr-gold{background:#e2bb6c;border-color:#e2bb6c;color:#1c1c1c}
.mr-line{background:transparent;color:#1c1c1c}
.mr-link{border:0;background:none;color:#555;font:400 .85rem Poppins,system-ui,sans-serif;text-decoration:underline;cursor:pointer;padding:.3rem}

.mr-splash{background:#1c1c1c;flex-direction:column;justify-content:safe center;text-align:center;color:#fff;cursor:pointer;font-family:Poppins,system-ui,sans-serif}
.mr-splash .mr-k,.mr-done .mr-k{letter-spacing:.3em;text-transform:uppercase;font-size:.78rem;margin:0}
.mr-splash .mr-k{color:#e2bb6c}
.mr-big{font-family:Marcellus,Georgia,serif;font-size:clamp(3.2rem,15vw,4.6rem);line-height:1.05;margin:.4rem 0 .3rem}
.mr-vol{color:#f7db99;font-size:1.1rem;margin:0}
.mr-thumb{flex:none;width:min(48vw,36vh,300px);height:min(48vw,36vh,300px);border-radius:50%;background:#fff;padding:10px;margin:1.6rem auto 1.3rem;box-sizing:border-box;overflow:hidden}
.mr-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.mr-skip{color:#aaa;font-size:.8rem;margin:1.3rem 0 0}
.mr-dots{display:flex;gap:6px;justify-content:center}
.mr-dots i{width:9px;height:9px;border-radius:50%;background:#555}
.mr-dots i.fatto{background:#f7db99}.mr-dots i.ora{background:#e2bb6c;box-shadow:0 0 0 3px #e2bb6c55}
.mr-done .mr-k{color:#8c6b2c;font-weight:600}
.mr-ok{color:#555;font-size:.95rem;margin:0}
.mr-art{margin:1rem auto 0;width:min(70%,240px);background:#fff;border-radius:14px;padding:8px;box-shadow:0 6px 18px #0001}
.mr-art img{width:100%;display:block}
.mr-book{display:flex;gap:.8rem;align-items:center;text-align:left;margin:1rem 0;background:#f3eee4;border-radius:12px;padding:.7rem;color:#1c1c1c;text-decoration:none;font-size:.82rem;line-height:1.4}
.mr-book img{width:54px;height:auto;border-radius:4px;box-shadow:0 2px 6px #0003;flex:none}
.mr-book b{display:block;font-size:.9rem}
@media (prefers-reduced-motion:reduce){.mr-finish{animation:none}.mr-prog b{transition:none}}
.mr-invite{display:block;margin:.8rem 0 0;padding:.7rem .9rem;border-radius:12px;background:#f3eee4;color:#1c1c1c;text-decoration:none;font:400 .85rem/1.45 Poppins,system-ui,sans-serif}
.mr-invite b{display:block;font-family:Marcellus,Georgia,serif;font-weight:400;font-size:1.05rem}
.mr-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:1rem 0}
.mr-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#fff;box-shadow:0 2px 6px #0002}
body:has(.bf-mbar.open) .mr-finish{bottom:calc(96px + env(safe-area-inset-bottom))}
/* pulsanti attivi: stesso nero del sito, simbolo oro */
.mc-home-game .prova-act [data-a=ring].attivo,
.mc-home-game .prova-act .mc-auto-zoom[aria-pressed="true"]{background:#1C1C1C!important;color:#fff!important;border-color:#1C1C1C!important}
.mc-home-game .prova-act [data-a=ring].attivo::before{color:#E2BB6C}
/* Salva e condividi: oro del sito al posto del blu */
a.mc-play-share,.mc-home-game .mc-play-share,.mc-play-share-mobile{background:#E2BB6C!important;color:#1C1C1C!important;border-color:#E2BB6C!important}
.mr-pick{font:400 .85rem/1.4 Poppins,system-ui,sans-serif;color:#555;margin:.8rem 0 .4rem}
.mr-story{display:block;width:min(100%,300px);height:auto;aspect-ratio:9/16;margin:0 auto .9rem;border-radius:12px;cursor:pointer;box-shadow:0 8px 22px #0003}
.mr-sign{display:block;text-align:left;font:600 .85rem Poppins,system-ui,sans-serif;margin:0 0 .8rem}
.mr-sign input{display:block;width:100%;box-sizing:border-box;margin-top:.35rem;border:1.5px solid #c9c2b7;border-radius:10px;padding:.7rem .8rem;font:400 1rem Poppins,system-ui,sans-serif;background:#fff;color:#1c1c1c}
.mr-tag{font:400 .8rem/1.4 Poppins,system-ui,sans-serif;color:#8c6b2c;margin:-.2rem 0 .8rem}
.mr-ed{display:block;font-weight:400;font-size:.75rem;opacity:.8}
.mr-end .mr-link{display:inline-block;margin-top:.2rem}
/* home con il menu del sito: il logo è già nell'intestazione */
.mc-game-home header.top ~ main .mc-game-brand{display:none}
@media (min-width:851px){.mc-game-home .mc-home-game .prova-stage{max-width:min(680px,calc(100vh - 250px))}}
.mc-home-game .prova-stage.mc-art-zoomed{overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mc-home-game .prova-stage.mc-art-zoomed canvas{cursor:grab}
/* riga titolo: ? accanto a condividi */
.mc-game-intro .mr-help{margin-left:.35rem;align-self:center}
.mr-top{justify-content:flex-start;margin-bottom:.45rem}
.mr-bookstrip{display:none}
@media (max-width:850px){
  html.mr-on .mc-game-section>.wrap{padding-left:20px!important;padding-right:20px!important;box-sizing:border-box}
  html.mr-on .mc-game-intro{padding-left:0!important;padding-right:0!important}
  .mr-bookstrip{display:flex;align-items:center;gap:.7rem;margin:.7rem 0 0;padding:.55rem .7rem;border:1px solid #e3ddd1;border-radius:12px;background:#fff;color:#1c1c1c;text-decoration:none;font:400 .82rem/1.35 Poppins,system-ui,sans-serif}
  .mr-bookstrip img{width:44px;height:44px;border-radius:4px;object-fit:cover;flex:none}
  .mr-bookstrip span{flex:1;min-width:0}
  .mr-bookstrip b{display:block;font-weight:600}
  .mr-bookstrip em{font-style:normal;font-weight:600;color:#8c6b2c;white-space:nowrap}
}
.mc-share-game{display:flex;align-items:center}
/* titolo Mandala Road */
.mr-titlerow{display:flex;align-items:center;justify-content:center;gap:.8rem;grid-column:1/-1;width:100%}
.mc-game-section .mc-game-intro h1.mr-title{font-family:Marcellus,Georgia,serif;font-weight:400;font-size:clamp(2rem,5vw,3.2rem);line-height:1.05;margin:4px 0 2px;letter-spacing:.01em}
h1.mr-title small{display:block;font-family:Lora,Georgia,serif;font-style:italic;font-size:.42em;color:#8c6b2c;letter-spacing:0;margin-top:.2rem}
.mr-titlerow .mr-help{flex:none;width:32px;height:32px;border-radius:50%;border:1.5px solid #1c1c1c;background:#fff;color:#1c1c1c;font:600 .95rem Poppins,system-ui,sans-serif;display:grid;place-items:center;padding:0;cursor:pointer}
.mr-top{align-items:center}
.mr-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.mr-actions .mc-share-game{position:relative;margin:0}
.mr-actions .mc-play-share-mobile{margin:0!important;padding:.55rem .8rem!important;border-radius:10px;font-size:.85rem;white-space:nowrap!important}
html.mr-on .mc-game-intro{display:block!important}
@media (max-width:850px){
  .mr-titlerow{justify-content:space-between}
  .mc-game-section .mc-game-intro h1.mr-title{font-size:2.1rem;text-align:left}
  .mr-top .mr-lv{font-size:.85rem}
}
.mr-lv i{font-style:normal}.mr-lv .mr-short{display:none}
.mr-top .mr-lv{white-space:nowrap}
@media (max-width:430px){.mr-lv .mr-full{display:none}.mr-lv .mr-short{display:inline}
  .mr-actions{gap:.3rem}.mr-actions .mc-play-share-mobile{padding:.5rem .65rem!important;font-size:.8rem!important}}
@media (max-width:850px){
  .mc-game-section .mc-game-intro h1.mr-title{font-size:1.75rem;margin:0}
  h1.mr-title small{display:inline;margin:0 0 0 .5rem;font-size:.5em}
  .mr-titlerow .mr-help{width:28px;height:28px}
  .mr-top{margin-bottom:.35rem}
  .mr-prog{margin-top:.45rem}
  .mr-bookstrip{margin:.6rem 0 .2rem}
}
@media (max-width:850px){
  .mc-game-section .mc-game-intro h1.mr-title{white-space:nowrap;font-size:1.65rem}
  h1.mr-title small{font-size:.48em}
}
@media (max-width:380px){ h1.mr-title small{display:none} }
/* telefono: niente titolo, si guadagna spazio (h1 resta per i motori di ricerca) */
@media (max-width:850px){
  html.mr-on .mr-titlerow{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html.mr-on .mc-game-intro{margin:0!important;padding-top:8px!important}
  .mr-actions .mr-help{flex:none;width:30px;height:30px;border-radius:50%;border:1.5px solid #1c1c1c;background:#fff;color:#1c1c1c;font:600 .9rem Poppins,system-ui,sans-serif;display:grid;place-items:center;padding:0}
}
@media (max-width:390px){
  .mr-top .mr-lv{font-size:.78rem}
  .mr-actions{gap:.25rem}
  .mr-actions .mc-play-share-mobile{padding:.45rem .5rem!important;font-size:.74rem!important}
  .mr-actions .mr-help{width:28px;height:28px}
}
/* niente selezione di testo/immagini, menu copia o trascinamenti nella finestra del gioco */
html.mr-on .mc-game-section,html.mr-on .mc-game-section *,.mr-overlay,.mr-overlay *,.mr-finish,.mc-precision-lens{
  -webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent}
html.mr-on .mc-game-section img,.mr-overlay img{-webkit-user-drag:none;user-drag:none;pointer-events:auto}
html.mr-on .mc-game-section button,html.mr-on .mc-game-section a,.mr-overlay button,.mr-overlay a,.mr-finish{touch-action:manipulation}
.mr-overlay input,html.mr-on .mc-game-section input,html.mr-on .mc-game-section textarea{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
