@charset "UTF-8";
/* Boutique game UI — a cozy sewing-boutique game skin over the base layout (css/game.css).
   Materials of the world: linen and felt panels with a pink running stitch, satin ribbons for titles,
   clothing tags for labels and toasts, a thread spool for the level, a tape measure for XP,
   candy buttons that sink when pressed, drawn icons for every resource and tool.
   Same element ids/classes as the base, so the game logic is untouched. */
:root{
  --linen:#fff8f3; --felt:#fde9ef; --cream:#fffdf9;
  --ink:#3a2340; --ink-soft:#6e5571;
  --rose:#d94f86; --rose-deep:#b23a6c; --blush:#f7c6d6;
  --mint:#7cc79a; --mint-deep:#3c9561; --lilac:#8a63d2; --lilac-deep:#6a46b3;
  --gold:#f2c14e; --gold-deep:#c98e2a; --tape:#f6d36b;
  --stitch:rgba(217,79,134,.55);
  --press:0 4px 0 var(--ink);
  --ui:'Fredoka','Quicksand','Trebuchet MS',system-ui,sans-serif;
  --display:'Shrikhand',Georgia,serif;
  --body:var(--ui);
}
body{font-family:var(--ui);font-weight:500;background:
  radial-gradient(circle at 1px 1px,rgba(217,79,134,.08) 1px,transparent 1.6px) 0 0/14px 14px,
  linear-gradient(#fbf1ec,#fbf1ec)}

/* ---------- HUD ---------- */
.hud{padding-block:10px 6px}
.brand{font-size:24px;letter-spacing:.01em;text-shadow:2px 2px 0 var(--ink),3px 3px 0 var(--gold)}
/* level = a big clothing button that fills up (bottom → top) as the XP of the level grows */
@property --lvp{syntax:'<percentage>';inherits:false;initial-value:0%}
.lvl-badge{width:54px;height:54px;border-radius:50%;border:3px solid var(--ink);position:relative;display:grid;place-items:end center;padding-bottom:6px;box-sizing:border-box;
  font:700 15px/1 var(--ui);color:#fff;text-shadow:-1.5px 0 var(--ink),1.5px 0 var(--ink),0 -1.5px var(--ink),0 2px var(--ink);
  background:linear-gradient(to top,var(--rose) var(--lvp),var(--blush) var(--lvp),#fff1f5 calc(var(--lvp) + 1%));
  box-shadow:inset 0 0 0 4px rgba(255,255,255,.55),inset 0 0 0 5.5px rgba(58,35,64,.22),0 3px 0 var(--ink);transition:--lvp .7s cubic-bezier(.23,1,.32,1)}
/* the four holes with a pink thread cross */
.lvl-badge::before{content:"";position:absolute;left:50%;top:9px;width:18px;height:18px;transform:translateX(-50%);
  background:radial-gradient(circle at 3.5px 3.5px,var(--ink) 2.4px,transparent 2.9px),radial-gradient(circle at 14.5px 3.5px,var(--ink) 2.4px,transparent 2.9px),radial-gradient(circle at 3.5px 14.5px,var(--ink) 2.4px,transparent 2.9px),radial-gradient(circle at 14.5px 14.5px,var(--ink) 2.4px,transparent 2.9px),
    linear-gradient(45deg,transparent 46%,#c0415f 46%,#c0415f 56%,transparent 56%),linear-gradient(-45deg,transparent 46%,#c0415f 46%,#c0415f 56%,transparent 56%)}
.lvl-badge.full{animation:fgShine 1.2s ease-in-out infinite}
@keyframes fgShine{0%,100%{filter:none}50%{filter:brightness(1.12) drop-shadow(0 0 6px rgba(242,193,78,.9))}}
/* XP = tape measure */
.xp small{font:600 11px/1 var(--ui);letter-spacing:.04em;color:var(--ink-soft)}
.xpbar{width:150px;height:16px;border-radius:5px;border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink);
  background:repeating-linear-gradient(90deg,transparent 0 9px,rgba(58,35,64,.45) 9px 10px),repeating-linear-gradient(90deg,transparent 0 4px,rgba(58,35,64,.22) 4px 5px) 0 9px/100% 7px no-repeat,var(--tape)}
.xpbar b{background:linear-gradient(180deg,#f59bbd,var(--rose));box-shadow:inset 0 2px 0 rgba(255,255,255,.4);border-right:2px solid var(--ink)}
/* resources = pills with a drawn coin/gem on the left */
.chips{gap:8px}
.chip{height:32px;padding:0 12px 0 6px;border:2.5px solid var(--ink);border-radius:999px;background:var(--cream);box-shadow:0 3px 0 var(--ink);font:700 15px/1 var(--ui);gap:6px}
.chip i{width:28px;height:28px;margin-left:-14px;border-radius:50%;background:var(--cream) center/22px no-repeat!important;border:2.5px solid var(--ink);font-size:0;box-shadow:0 2px 0 var(--ink)}
.chip span{font:600 10px/1 var(--ui);letter-spacing:.06em}
.chip:nth-child(1) i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='8' width='26' height='16' rx='3' fill='%237cc79a' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='%23e8f6ec' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M7 12v8M25 12v8' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")!important}
.chip:nth-child(2) i{background:#8a63d2 center/100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12.4' fill='%239d79e3' stroke='%236a46b3' stroke-width='1.6'/%3E%3Cpath d='M7.2 11.4a10 10 0 0 1 6.4-4.6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' opacity='.75'/%3E%3Cg fill='none' stroke='%233a2340' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round' opacity='.35' transform='translate(0 .8)'%3E%3Cpath d='M9.2 21.6V10.6h5.2M9.2 16h4'/%3E%3Cpath d='M23.6 12a5.3 5.3 0 1 0 0 8.2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 21.6V10.6h5.2M9.2 16h4'/%3E%3Cpath d='M23.6 12a5.3 5.3 0 1 0 0 8.2'/%3E%3C/g%3E%3C/svg%3E")!important}
#luxChip i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3l3.6 8.2 8.9.8-6.8 5.9 2 8.7L16 22l-7.7 4.6 2-8.7L3.5 12l8.9-.8z' fill='%23f2c14e' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='12.5' cy='12' r='1.6' fill='%23fff'/%3E%3C/svg%3E")!important}
#popChip i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 27S4 19.5 4 11.5A6 6 0 0 1 16 9a6 6 0 0 1 12 2.5C28 19.5 16 27 16 27z' fill='%23ef7fa3' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M9 10.5a3 3 0 0 1 3-2' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")!important}
#guardChip i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3l10 4v8c0 7-5 11-10 14C11 26 6 22 6 15V7z' fill='%239b8aa8' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M11 15l3.5 3.5L21 12' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
#alarmChip i{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4a8 8 0 0 0-8 8v7l-3 4h22l-3-4v-7a8 8 0 0 0-8-8z' fill='%23f2c14e' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='26' r='2.6' fill='%233a2340'/%3E%3C/svg%3E")!important}
.chips{padding-left:14px}

/* ---------- stage overlays ---------- */
/* open/closed sign = hanging shop tag */
.shopsign{border-radius:6px 16px 16px 6px;border-width:2.5px;box-shadow:0 4px 0 var(--ink);padding:6px 14px 6px 26px;background:var(--cream);font-family:var(--ui)}
.shopsign::before{content:"";position:absolute;left:9px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;border:2px solid var(--ink);background:#fbf1ec}
.shopsign .dot{display:none}
.shopsign b{font:700 14px/1 var(--ui);letter-spacing:.06em;color:var(--mint-deep)}
.shopsign.closed b{color:var(--rose-deep)}
.shopsign small{font:500 11px/1.2 var(--ui)}
.clock{font:600 12px/1 var(--ui);background:rgba(255,253,249,.85);border:1.5px solid rgba(58,35,64,.2);border-radius:999px;padding:4px 10px;top:62px}
/* round tools = sewing buttons (four holes) */
.iconbtn{border-radius:50%;border-width:2.5px;box-shadow:0 4px 0 var(--ink);background:var(--cream)}
.iconbtn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.camctl .iconbtn{font:700 22px/1 var(--ui);color:var(--ink)}
/* toast = clothing tag */
.toast{font:600 14px/1.3 var(--ui);background:var(--ink);border-radius:6px 14px 14px 6px;padding:9px 16px 9px 28px;clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%);box-shadow:none}
.toast::before{content:"";position:absolute;left:14px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:#fbf1ec}
/* level up = satin ribbon */
.levelup{border:3px solid var(--ink);border-radius:20px;box-shadow:0 6px 0 var(--ink);background:var(--linen);outline:2px dashed var(--stitch);outline-offset:-9px;padding:16px 22px}
.lu-title{font-size:34px;text-shadow:2px 2px 0 var(--ink),4px 4px 0 var(--gold)}
.lu-sub{font:700 12px/1 var(--ui);letter-spacing:.1em;color:#fff;background:var(--lilac);padding:5px 14px;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%)}

/* ---------- buttons = candy buttons that sink ---------- */
.btn{font:600 15px/1.1 var(--ui);letter-spacing:.01em;border:2.5px solid var(--ink);border-radius:16px;padding:10px 18px;min-height:46px;
  box-shadow:var(--press),inset 0 -4px 0 rgba(58,35,64,.16),inset 0 3px 0 rgba(255,255,255,.35);transition:transform .1s cubic-bezier(.23,1,.32,1),box-shadow .1s}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink),inset 0 -2px 0 rgba(58,35,64,.16),inset 0 3px 0 rgba(255,255,255,.35)}
.btn.ghost{background:var(--cream)}
.btn.green{background:var(--mint-deep)} .btn.violet{background:var(--lilac)} .btn.danger{background:#c0415f}
.btn[disabled]{opacity:.55;transform:none;box-shadow:0 4px 0 rgba(58,35,64,.5);filter:saturate(.5)}
.badge{font:700 12px/1 var(--ui);min-width:22px;height:22px;background:var(--rose);color:#fff;border:2.5px solid var(--ink);top:-10px;right:-10px;box-shadow:0 2px 0 var(--ink);animation:fgBadge 1.6s ease-in-out infinite}
@keyframes fgBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}

/* ---------- bottom dock: tools with drawn icons ---------- */
.foot{padding-block:8px 14px}
.toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:stretch;max-width:640px;margin-inline:auto;
  background:var(--felt);border:2.5px solid var(--ink);border-radius:24px;padding:10px 12px 12px;box-shadow:0 5px 0 var(--ink);outline:2px dashed var(--stitch);outline-offset:-7px}
.toolbar .hint{display:none}
.toolbar .btn{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;align-self:stretch;min-height:74px;padding:8px 6px 8px;border-radius:18px;font:600 12.5px/1.1 var(--ui);text-align:center;white-space:normal}
.toolbar .btn::before{content:"";width:36px;height:36px;background:center/contain no-repeat;flex:none;filter:drop-shadow(0 2px 0 rgba(58,35,64,.2))}
#bDecor{background:var(--rose);color:#fff}
#bDecor::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 14a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v3H7z' fill='%23ef7fa3' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Crect x='4' y='15' width='24' height='7' rx='3' fill='%23f7b6cb' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8 22v4M24 22v4' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='14.5' r='1' fill='%233a2340'/%3E%3Ccircle cx='20' cy='14.5' r='1' fill='%233a2340'/%3E%3C/svg%3E")}
#bStaff::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='11' cy='11' r='4.5' fill='%23f2c9a8' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M3 26c0-5 3.6-8 8-8s8 3 8 8z' fill='%238a63d2' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='12' r='4' fill='%23d9a07a' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M17 19.5c1.4-.9 3-1.5 5-1.5 4 0 7 2.8 7 8h-9' fill='%2358b48a' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M6.5 9.5c1-3 7-3.5 9 0' fill='none' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E")}
#bProgress::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 5h12v6a6 6 0 0 1-12 0z' fill='%23f2c14e' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M10 8H6a4 4 0 0 0 4 5M22 8h4a4 4 0 0 1-4 5' fill='none' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M16 17v4M11 27h10l-1-6h-8z' fill='%23e0a43a' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M13 8v3' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
#bTasks::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='6' y='5' width='20' height='23' rx='3' fill='%23fff7ef' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Crect x='11' y='3' width='10' height='5' rx='2' fill='%23c98e2a' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M10 14l2 2 4-4M10 21l2 2 4-4M19 14h4M19 21h4' fill='none' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E")}
#bShow::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3v3M13 6.5a3 3 0 0 1 6 0l-1 1.5' fill='none' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M12 9h8l-1 5 6 13H7l6-13z' fill='%23d94f86' stroke='%233a2340' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M13 14h6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='22' r='1.3' fill='%23fff'/%3E%3Ccircle cx='18' cy='20' r='1.3' fill='%23fff'/%3E%3Ccircle cx='20' cy='24' r='1.3' fill='%23fff'/%3E%3C/svg%3E")}
#bShow.ready{background:var(--lilac);color:#fff;animation:fgGlow 1.8s ease-in-out infinite}
@keyframes fgGlow{0%,100%{box-shadow:var(--press),0 0 0 0 rgba(138,99,210,.0)}50%{box-shadow:var(--press),0 0 0 6px rgba(138,99,210,.25)}}

/* ---------- Tia Celeste = speech card stitched on felt ---------- */
.dialog{background:var(--linen);border:2.5px solid var(--ink);border-radius:22px;box-shadow:0 5px 0 var(--ink);outline:2px dashed var(--stitch);outline-offset:-8px;padding:14px 16px}
.dialog svg{width:64px;height:64px;filter:drop-shadow(0 3px 0 rgba(58,35,64,.25))}
.dname{font:400 14px/1 var(--display);color:#fff;background:var(--rose);padding:5px 14px 6px;text-shadow:1px 1px 0 var(--ink);clip-path:polygon(0 0,100% 0,95% 50%,100% 100%,0 100%,5% 50%)}
.dtext{font:500 15.5px/1.45 var(--ui)}
.dstep{font:600 11px/1 var(--ui)}

/* ---------- windows = linen panels with a running stitch ---------- */
.back{background:rgba(58,35,64,.5);backdrop-filter:blur(2px)}
.modal{background:var(--linen);border:3px solid var(--ink);border-radius:26px;box-shadow:0 8px 0 var(--ink);outline:2px dashed var(--stitch);outline-offset:-10px;padding:22px 22px 24px;gap:14px;animation:fgPop .28s cubic-bezier(.23,1,.32,1)}
@keyframes fgPop{from{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}
.modal h2{align-self:flex-start;font:400 22px/1.15 var(--display);color:#fff;background:var(--rose);padding:8px 26px 10px;text-shadow:2px 2px 0 var(--ink);clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%);margin-left:-4px}
.modal>.tag,.modal .binder .tag{align-self:flex-start;display:inline-flex;align-items:center;font:600 11px/1 var(--ui);letter-spacing:.08em;color:var(--ink);background:var(--cream);border:2px solid var(--ink);border-radius:4px 10px 10px 4px;padding:4px 10px 4px 20px;position:relative}
.modal>.tag::before,.modal .binder .tag::before{content:"";position:absolute;left:6px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;border:1.5px solid var(--ink)}
.modal p{font:500 15px/1.5 var(--ui)}
.card,.task{background:var(--cream);border:2px solid rgba(58,35,64,.22);border-radius:18px;box-shadow:0 3px 0 rgba(58,35,64,.14)}
.card strong,.task b{font-weight:600}
.card .tag{font:600 10px/1 var(--ui);letter-spacing:.08em}
.thumb,.card .ic{background:radial-gradient(circle at 1px 1px,rgba(217,79,134,.12) 1px,transparent 1.6px) 0 0/10px 10px,var(--felt);border-radius:14px}
.price{font:700 16px/1 var(--ui)}
.meta{font:500 12.5px/1.35 var(--ui)}
.pill{font:600 12px/1 var(--ui);border-width:2px;padding:6px 12px}
.bar{height:12px;border:2px solid var(--ink);background:var(--felt)}
.bar b{background:linear-gradient(180deg,#f59bbd,var(--rose))}
.tab{font:600 13px/1 var(--ui);border:2px solid rgba(58,35,64,.25);border-radius:999px}
.tab.on{background:var(--ink);border-color:var(--ink);box-shadow:0 2px 0 var(--rose)}
.task.upgrade{background:#fff6dc;border-color:var(--gold-deep)}
.task.chest{background:#f3edfd;border-color:var(--lilac)}
.task.payroll{background:#effaf3;border-color:var(--mint-deep)}

/* decoration bar */
.decorbar{background:var(--felt);border:2.5px solid var(--ink);border-radius:24px;box-shadow:0 5px 0 var(--ink);outline:2px dashed var(--stitch);outline-offset:-7px;padding:14px 16px}

@media (max-width:560px){
  .brand{font-size:19px}
  .chip{height:28px;font-size:13px;padding:0 9px 0 4px} .chip i{width:24px;height:24px;background-size:19px!important;margin-left:-12px}
  .xpbar{width:100px}
  .toolbar{gap:6px;padding:8px 8px 10px;border-radius:20px}
  .toolbar .btn{min-height:64px;font-size:10.5px;padding:6px 2px;border-radius:14px}
  .toolbar .btn::before{width:30px;height:30px}
  .modal{padding:18px 16px 20px}
  .modal h2{font-size:19px}
}
@media (prefers-reduced-motion:reduce){.badge,#bShow.ready,.lvl-badge.full{animation:none}.modal{animation:none}.lvl-badge{transition:none}}
/* infinite levels: 3+ digit numbers shrink to fit the button badge */
.lvl-badge[data-digits="3"]{font-size:13px}
.lvl-badge[data-digits="4"],.lvl-badge[data-digits="5"]{font-size:10.5px;letter-spacing:-.3px}

/* Celular: um toque longo no jogo não seleciona a tela (o navegador pintava tudo de azul, a cor da seleção),
   não abre o menu de "copiar/salvar imagem" e não pisca o realce azul do toque. Campos de texto continuam selecionáveis. */
html,body{-webkit-tap-highlight-color:transparent;margin:0}
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* ---------- Celular deitado (tela baixa): HUD numa linha só, botões do jogo numa coluna fina na lateral
   direita (só ícones) e a fala da Tia Celeste / barras de decoração flutuando sobre a parte de baixo da loja,
   para a loja ocupar quase toda a altura. ---------- */
@media (orientation:landscape) and (max-height:540px){
  .app{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);grid-template-areas:"hud hud" "stage rail";
    max-width:none;padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right));padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .hud{grid-area:hud;flex-wrap:nowrap;padding-block:6px 4px;gap:10px}
  .left{flex-wrap:nowrap;gap:10px}
  .brand{font-size:16px;white-space:nowrap}
  .lvl-badge{width:40px;height:40px;font-size:12px;padding-bottom:4px}
  .lvl-badge::before{top:6px;width:14px;height:14px;transform:translateX(-50%) scale(.78);transform-origin:top center}
  .xpbar{width:110px;height:12px}
  .chips{flex-wrap:nowrap;gap:6px;padding-left:12px}
  .chip{height:26px;font-size:13px;padding:0 9px 0 4px;box-shadow:0 2px 0 var(--ink)}
  .chip i{width:22px;height:22px;background-size:17px!important;margin-left:-11px}
  .stage{grid-area:stage}
  .foot{display:contents}
  /* Tia Celeste, decoração e loja de decoração por cima da parte de baixo da loja */
  .dialog,.decorbar,.shopbar{grid-area:stage;align-self:end;z-index:6;margin:0 6px 6px}
  .dialog{padding:8px 12px;gap:10px}
  .dialog svg{width:46px;height:46px}
  .dtext{font-size:13.5px;line-height:1.35}
  .dialog .btn{min-height:38px;padding:6px 14px;font-size:14px}
  .decorbar{padding:8px 12px}
  .decorbar .btn{min-height:38px;padding:6px 12px;font-size:13.5px}
  .decor-idle .meta{display:none}
  .shopbar{max-width:none;width:calc(100% - 12px)}
  .sb-tab{min-width:58px;font-size:9.5px;padding:2px 5px 2px}
  .sb-tab.on{padding-top:5px}
  .sb-ticon{width:22px;height:22px}
  .sb-roll{padding:4px 8px 6px 20px}
  .sb-head{padding:0 4px 2px}
  .sb-title{font-size:14px}
  .sb-card{flex-basis:124px;padding:6px;gap:3px}
  .sb-thumb{height:40px}
  .sb-card{flex-basis:112px}
  .sb-meta{font-size:10.5px}
  .sb-name{font-size:12px;min-height:0}
  .sb-price,.sb-place{padding:6px 4px;font-size:12px}
  /* botões do jogo: coluna fina à direita, só os ícones */
  .toolbar{grid-area:rail;align-self:center;display:flex;flex-direction:column;gap:6px;margin:0 0 0 8px;padding:7px 6px;border-radius:18px;border-width:2px;box-shadow:0 3px 0 var(--ink);outline-offset:-5px;max-width:none}
  .toolbar .btn{width:46px;height:46px;min-height:46px;padding:0;justify-content:center;border-radius:13px;border-width:2px;font-size:0;gap:0;box-shadow:0 3px 0 var(--ink),inset 0 -3px 0 rgba(58,35,64,.16)}
  .toolbar .btn::before{width:28px;height:28px}
  .toolbar .badge{top:-7px;right:-7px}
  .mebtn{width:50px;height:50px;left:8px;bottom:8px}
  .camctl{top:52px}
  .camctl .iconbtn{width:36px;height:36px;font-size:19px}
}
@media (orientation:landscape) and (max-height:360px){
  .brand img{height:32px}
  .toolbar{gap:5px;padding:6px 6px}
  .toolbar .btn{width:44px;height:44px;min-height:44px}
  .toolbar .btn::before{width:26px;height:26px}
}

/* ---------- Logo (img/logo.png) no lugar do nome escrito ---------- */
.brand{margin:0;padding:0;line-height:0;text-shadow:none;flex:none}
.brand img{display:block;height:64px;width:auto;filter:drop-shadow(0 2px 0 rgba(58,35,64,.25));-webkit-user-drag:none;user-select:none}
@media (max-width:560px){.brand img{height:50px}}
@media (orientation:landscape) and (max-height:540px){.brand img{height:40px}}
@media (orientation:landscape) and (max-height:360px){.brand img{height:32px}}

/* ---------- Tela de boas-vindas / login (primeiro acesso) ---------- */
.welcome{position:fixed;inset:0;z-index:30;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));box-sizing:border-box;
  background:radial-gradient(circle at 1px 1px,rgba(217,79,134,.12) 1px,transparent 1.6px) 0 0/14px 14px,radial-gradient(ellipse at 50% 0%,#fde9ef 0%,#fbf1ec 60%)}
.wl-in{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(440px,100%);margin:auto}
.wl-logo{width:min(300px,72vw);height:auto;filter:drop-shadow(0 6px 0 rgba(58,35,64,.18));animation:wlPop .6s cubic-bezier(.23,1,.32,1) both;-webkit-user-drag:none}
@keyframes wlPop{from{transform:scale(.85) translateY(10px);opacity:0}to{transform:none;opacity:1}}
.wl-card{width:100%;max-height:none;overflow:visible}
.wl-card h2{margin-top:0}
body.welcome-on .app{visibility:hidden}
@media (orientation:landscape) and (max-height:540px){
  .wl-in{flex-direction:row;align-items:flex-start;width:min(820px,100%);gap:18px}
  .wl-logo{width:min(280px,36vw);position:sticky;top:0;align-self:flex-start;margin-top:12px}
  .wl-card>p:first-of-type{display:none}
  .wl-card{flex:1;padding:14px 16px}
}
@media (prefers-reduced-motion:reduce){.wl-logo{animation:none}}

/* ---------- X costurado no topo das caixinhas (fecha a janela) ---------- */
.modal{position:relative}
.mclose{position:sticky;top:-8px;align-self:flex-end;order:-1;margin:-10px -10px -46px 0;z-index:3;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;flex:none;
  filter:drop-shadow(0 3px 0 rgba(58,35,64,.9));transition:transform .12s cubic-bezier(.23,1,.32,1)}
.mclose svg{display:block;width:44px;height:44px}
.mclose:hover{transform:rotate(-8deg) scale(1.06)}
.mclose:active{transform:translateY(2px) scale(.96);filter:drop-shadow(0 1px 0 rgba(58,35,64,.9))}
.mclose:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.modal h2{margin-right:46px}

/* ---------- Revista de moldes (catálogo de roupas do balcão de costura) ---------- */
.modal.mag-modal{width:min(920px,100%);gap:10px}
.mag-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 30px 0;margin-bottom:-12px;position:relative;z-index:1}
.mag-tabs::-webkit-scrollbar{display:none}
.mag-tab{flex:none;display:flex;align-items:center;gap:6px;font:600 13px/1 var(--ui);color:var(--ink);background:#f7d9e3;border:2.5px solid var(--ink);border-bottom:0;border-radius:12px 12px 0 0;padding:7px 12px 16px;cursor:pointer;position:relative;top:4px;transition:top .15s}
.mag-tab:nth-child(2){background:#d7ecf7}.mag-tab:nth-child(3){background:#ebdff9}.mag-tab:nth-child(4){background:#d9efe2}.mag-tab:nth-child(5){background:#fbecc4}
.mag-tab small{font:700 11px/1 var(--ui);background:rgba(255,255,255,.75);border:1.5px solid rgba(58,35,64,.3);border-radius:99px;padding:2px 6px}
.mag-tab.on{top:0;padding-bottom:20px;box-shadow:inset 0 -6px 0 rgba(255,255,255,.35)}
.mag-tab:focus-visible{outline:3px solid var(--gold);outline-offset:1px}
.mag{position:relative;display:flex;align-items:center}
.mag-book{flex:1;min-width:0;display:flex;align-items:stretch;background:#fffdf8;border:3px solid var(--ink);border-radius:10px 18px 18px 10px;box-shadow:0 6px 0 var(--ink),inset 0 0 0 5px #fff;position:relative;perspective:1200px}
.mag[data-per="4"] .mag-book{border-radius:16px}
.mag-page{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px;padding:12px 16px 26px;position:relative;
  background:radial-gradient(circle at 1px 1px,rgba(217,79,134,.07) 1px,transparent 1.6px) 0 0/12px 12px}
.mag-page.mag-l{background-color:#fffaf4;box-shadow:inset -18px 0 22px -18px rgba(58,35,64,.35);border-radius:13px 0 0 13px}
.mag-page.mag-r{background-color:#fffdf8;box-shadow:inset 18px 0 22px -18px rgba(58,35,64,.35);border-radius:0 13px 13px 0}
.mag-page.mag-r::after,.mag-page.mag-1::after{content:"";position:absolute;right:-1px;bottom:-1px;width:26px;height:26px;border-radius:0 0 13px 0;
  background:linear-gradient(135deg,transparent 48%,#e9dccf 50%,#fbf1ec 70%);box-shadow:-2px -2px 3px rgba(58,35,64,.12)}
.mag-spine{width:4px;flex:none;background:linear-gradient(90deg,rgba(58,35,64,.35),rgba(58,35,64,.1),rgba(58,35,64,.35));position:relative}
.mag-spine::before{content:"";position:absolute;inset:8px -1px;background:repeating-linear-gradient(transparent 0 7px,#d94f86 7px 12px);width:2px;left:1px;opacity:.7}
.mag-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid rgba(58,35,64,.15);padding-bottom:5px;font:600 10.5px/1 var(--ui);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft)}
.mag-head span:first-child{font:400 15px/1 var(--display);letter-spacing:0;text-transform:none;color:var(--rose)}
.mag-num{position:absolute;bottom:7px;left:0;right:0;text-align:center;font:600 11px/1 var(--ui);color:var(--ink-soft)}
.mag-empty{margin:auto;text-align:center}
.mag-ad{display:grid;grid-template-columns:118px 1fr;gap:12px;align-items:stretch;background:#fff;border:2px solid rgba(58,35,64,.18);border-radius:14px;padding:8px;box-shadow:0 3px 0 rgba(58,35,64,.12)}
.mag-ad+.mag-ad{margin-top:2px}
.mag-photo{position:relative;border-radius:10px;border:2px solid var(--ink);overflow:hidden;min-height:118px;
  background:radial-gradient(circle at 2px 2px,rgba(255,255,255,.7) 1.4px,transparent 2px) 0 0/10px 10px,linear-gradient(160deg,#fde9ef,#f7c6d6)}
.mag-photo.t-seg{background-color:#e3f4ea;background-image:radial-gradient(circle at 2px 2px,rgba(255,255,255,.75) 1.4px,transparent 2px),linear-gradient(160deg,#eaf8ef,#c9ead5)}
.mag-photo.t-min{background-image:radial-gradient(circle at 2px 2px,rgba(255,255,255,.75) 1.4px,transparent 2px),linear-gradient(160deg,#fff4dc,#f8dfa6)}
.mag-photo.t-h{background-image:radial-gradient(circle at 2px 2px,rgba(255,255,255,.75) 1.4px,transparent 2px),linear-gradient(160deg,#f3eafd,#d9c6f4)}
.mag-photo{background-size:10px 10px,100% 100%}
.mag-photo canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.mag-sticker,.mag-lock,.mag-lux{position:absolute;font:700 10px/1 var(--ui);letter-spacing:.04em;padding:4px 7px;border:2px solid var(--ink);border-radius:99px;box-shadow:0 2px 0 var(--ink)}
.mag-sticker{top:5px;left:5px;background:var(--rose);color:#fff;transform:rotate(-8deg)}
.mag-lux{top:5px;right:5px;background:var(--gold);color:var(--ink)}
.mag-lock{bottom:6px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;white-space:nowrap}
.mag-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.mag-cat{font:600 10px/1 var(--ui);letter-spacing:.12em;color:var(--ink-soft)}
.mag-name{font:400 17px/1.1 var(--display);color:var(--ink)}
.mag-stats{list-style:none;margin:2px 0 4px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}
.mag-stats li{display:flex;align-items:center;gap:4px;font:600 13px/1 var(--ui);white-space:nowrap;min-width:0}
.mag-stats li svg{flex:none}
.mag-stats small{font:600 11px/1 var(--ui);color:var(--ink-soft)}
.mag-go{margin-top:auto;min-height:38px;padding:7px 12px;font-size:14px}
.mag-ad.locked .mag-photo canvas{filter:grayscale(1) opacity(.45)}
.mag-ad.locked .mag-name,.mag-ad.locked .mag-stats{opacity:.55}
.mag-arrow{flex:none;width:42px;height:42px;border-radius:50%;border:2.5px solid var(--ink);background:var(--rose);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 0 var(--ink);z-index:2;padding:0}
.mag-arrow.prev{margin-right:-14px}.mag-arrow.next{margin-left:-14px}
.mag-arrow:disabled{background:#eee;color:#b9adbd;box-shadow:0 2px 0 rgba(58,35,64,.4);cursor:default}
.mag-arrow:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.mag-foot{justify-content:space-between;align-items:center}
.flip-next .mag-page{animation:magNext .38s cubic-bezier(.23,1,.32,1)}
.flip-prev .mag-page{animation:magPrev .38s cubic-bezier(.23,1,.32,1)}
.flip-next .mag-page.mag-l,.flip-prev .mag-page.mag-r{animation-delay:.06s;animation-fill-mode:backwards}
@keyframes magNext{from{transform:rotateY(-28deg) translateX(30px);transform-origin:left center;opacity:.2}to{transform:none;opacity:1}}
@keyframes magPrev{from{transform:rotateY(28deg) translateX(-30px);transform-origin:right center;opacity:.2}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.flip-next .mag-page,.flip-prev .mag-page{animation:none}}
@media (max-width:560px){
  .mag-tabs{padding:2px 4px 0;gap:4px}
  .mag-tab{padding:6px 8px 14px;font-size:11.5px;gap:4px}
  .mag-tab span{display:none}
  .mag-tab.on span{display:inline}
  .mag-page{padding:10px 10px 24px}
  .mag-ad{grid-template-columns:86px minmax(0,1fr);gap:8px;padding:7px}
  .mag-photo{min-height:96px}
  .mag-name{font-size:15px}
  .mag-stats{display:flex;flex-wrap:wrap;gap:4px 9px}
  .mag-stats li{font-size:11.5px;gap:3px}
  .mag-go{white-space:nowrap}
  .mag-stats li svg{width:15px;height:15px}
  .mag-go{font-size:13px;min-height:34px;padding:5px 10px}
  .mag-arrow{width:34px;height:34px}
  .mag-arrow.prev{margin-right:-12px}.mag-arrow.next{margin-left:-12px}
}
@media (orientation:landscape) and (max-height:540px){
  .modal.mag-modal{max-height:94vh;padding:10px 14px 12px;gap:6px}
  .mag-modal h2{font-size:17px;padding:5px 20px 7px}
  .mag-modal>.tag{display:none}
  .mag-page{padding:8px 12px 22px;gap:7px}
  .mag-head{display:none}
  .mag-tab{padding:5px 10px 12px;font-size:12px}
  .mag-tab.on{padding-bottom:15px}
  .mag-tabs{margin-bottom:-10px}
  .mag-ad{grid-template-columns:66px minmax(0,1fr);gap:8px;padding:5px;align-items:center}
  .mag-photo{min-height:66px;height:66px}
  .mag-txt{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;align-items:center}
  .mag-cat{display:none}
  .mag-name,.mag-stats{grid-column:1}
  .mag-name{font-size:14px}
  .mag-stats{gap:2px 8px;margin:0;grid-template-columns:auto auto;justify-content:start}
  .mag-stats li{font-size:11px;gap:3px}
  .mag-stats li svg{width:14px;height:14px}
  .mag-go{grid-column:2;grid-row:1 / span 2;margin:0;min-height:32px;padding:4px 10px;font-size:12.5px}
  .mag-sticker,.mag-lux{font-size:8.5px;padding:2px 5px}
  .mag-lock{font-size:9px;padding:3px 5px}
  .mag-foot{margin-top:-2px}
  .mag-foot .btn{min-height:34px;padding:5px 12px;font-size:13px}
}

/* ---------- Equipe: crachás divididos por função ---------- */
.modal.crew-modal{width:min(860px,100%)}
.crew-pay{display:flex;align-items:center;gap:10px;background:#effaf3;border:2px solid var(--mint-deep);border-radius:16px;padding:10px 12px}
.crew-pay-ic{width:36px;height:36px;border-radius:50%;background:#fff;border:2px solid var(--ink);display:grid;place-items:center;flex:none}
.crew-pay-ic svg{width:22px;height:22px}
.crew-pay b{display:block;font-weight:600}
.crew-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 2px 6px}
.crew-tabs::-webkit-scrollbar{display:none}
.crew-tab{flex:none;position:relative;display:flex;align-items:center;gap:6px;font:600 13px/1 var(--ui);color:var(--ink);background:var(--cream);border:2.5px solid rgba(58,35,64,.25);border-radius:999px;padding:7px 12px 7px 8px;cursor:pointer}
.crew-tab small{font:700 11px/1 var(--ui);color:var(--ink-soft);background:rgba(58,35,64,.07);border-radius:99px;padding:3px 6px}
.crew-tab.on{background:var(--rc);border-color:var(--ink);color:#fff;box-shadow:0 3px 0 var(--ink)}
.crew-tab.on small{background:rgba(255,255,255,.25);color:#fff}
.crew-tab.on svg{filter:drop-shadow(0 0 0 #fff)}
.crew-tab:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.crew-dot{position:absolute;top:-3px;right:-3px;width:12px;height:12px;border-radius:50%;background:var(--mint);border:2px solid var(--ink)}
.crew-dot.warn{background:#e05a6a}
.crew-desc{margin:-4px 2px 0}
.crew-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px 12px;padding-top:8px}
.crew-card{position:relative;display:flex;flex-direction:column;gap:8px;background:#fff;border:2.5px solid var(--ink);border-radius:18px;padding:16px 12px 12px;box-shadow:0 4px 0 var(--ink);
  background-image:linear-gradient(var(--rc),var(--rc));background-size:100% 8px;background-repeat:no-repeat}
.crew-clip{position:absolute;top:-9px;left:50%;width:34px;height:14px;margin-left:-17px;border-radius:5px;background:#d8d2cc;border:2px solid var(--ink)}
.crew-clip::after{content:"";position:absolute;left:50%;top:3px;width:14px;height:4px;margin-left:-7px;border-radius:3px;background:var(--ink);opacity:.6}
.crew-top{display:flex;align-items:center;gap:10px}
.crew-pic{width:74px;height:74px;flex:none;border-radius:50%;border:2.5px solid var(--ink);overflow:hidden;background:radial-gradient(circle at 50% 35%,#fff 0,color-mix(in srgb,var(--rc) 22%,#fff) 70%)}
.crew-pic canvas{width:100%;height:100%;display:block}
.crew-id{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.crew-id b{font:400 18px/1.1 var(--display);color:var(--ink)}
.crew-role{font:600 11px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--rc)}
.crew-st{font:700 11px/1 var(--ui);padding:4px 8px;border-radius:99px;border:1.5px solid rgba(58,35,64,.3);background:#f4eff6;color:var(--ink-soft)}
.crew-st.on{background:#e3f4ea;border-color:var(--mint-deep);color:var(--mint-deep)}
.crew-st.free{background:#fff6dc;border-color:var(--gold-deep);color:#8a5a12}
.crew-st.warn{background:#fde2e6;border-color:#c0415f;color:#c0415f}
.crew-st.lock{background:var(--ink);border-color:var(--ink);color:#fff}
.crew-eff{margin:0;font:500 13px/1.4 var(--ui);color:var(--ink-soft)}
.crew-now{margin:0;font:500 12.5px/1.3 var(--ui);background:#f6f2f8;border-radius:10px;padding:5px 8px}
.crew-now b{font-weight:600}
.crew-stats{display:flex;flex-wrap:wrap;gap:6px 12px;font:500 12.5px/1 var(--ui);color:var(--ink-soft)}
.crew-stats span{display:inline-flex;align-items:center;gap:4px}
.crew-stats b{color:var(--ink);font-weight:700}
.crew-stars{gap:2px!important}
.crew-star{width:13px;height:13px;display:inline-block;background:#e6dfe9;clip-path:polygon(50% 0,62% 35%,100% 38%,70% 60%,80% 100%,50% 78%,20% 100%,30% 60%,0 38%,38% 35%)}
.crew-star.on{background:var(--gold)}
.crew-act{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.crew-act .btn{width:100%;min-height:40px;padding:8px 10px;font-size:14px}
.crew-card.locked{background-color:#faf7fb}
.crew-card.locked .crew-pic canvas{filter:grayscale(1) opacity(.55)}
.crew-card.late{border-color:#c0415f;box-shadow:0 4px 0 #c0415f}
.crew-extra{display:flex;flex-direction:column;gap:8px;margin-top:6px}
@media (max-width:560px){
  .crew-tab span{display:none}
  .crew-tab.on span{display:inline}
  .crew-grid{grid-template-columns:1fr}
  .crew-pic{width:62px;height:62px}
  .crew-pay{padding:7px 10px}
  .crew-pay .meta{display:none}
}
@media (orientation:landscape) and (max-height:540px){
  .modal.crew-modal{max-height:94vh}
  .crew-pay{padding:6px 10px}
  .crew-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
  .crew-pic{width:56px;height:56px}
  .crew-eff{font-size:12px}
}

/* ---------- "Ganhe agora": bolha do vídeo premiado (lado esquerdo da loja) ---------- */
.adoffer{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:3;display:flex;align-items:center;gap:0;padding:0;border:0;background:none;cursor:pointer;
  animation:aoIn .5s cubic-bezier(.23,1,.32,1) both, aoBob 2.6s ease-in-out .5s infinite}
.ao-ring{width:58px;height:58px;border-radius:50%;flex:none;display:grid;place-items:center;position:relative;z-index:1;
  background:conic-gradient(var(--rose) var(--p,100%),rgba(58,35,64,.15) 0);box-shadow:0 4px 0 var(--ink);border:2.5px solid var(--ink)}
.adoffer.fc .ao-ring{background:conic-gradient(var(--lilac) var(--p,100%),rgba(58,35,64,.15) 0)}
.ao-tv{width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#fff,#fde9ef);display:grid;place-items:center;border:2px solid var(--ink)}
.adoffer.fc .ao-tv{background:radial-gradient(circle at 50% 35%,#fff,#ece3fb)}
.ao-txt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-left:-14px;padding:6px 12px 6px 20px;background:var(--cream);border:2.5px solid var(--ink);border-left:0;border-radius:0 16px 16px 0;box-shadow:0 4px 0 var(--ink);text-align:left}
.ao-txt b{font:700 15px/1 var(--ui);color:var(--mint-deep);white-space:nowrap}
.adoffer.fc .ao-txt b{color:var(--lilac-deep)}
.ao-txt small{font:600 10.5px/1 var(--ui);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);white-space:nowrap}
.adoffer:hover .ao-ring{filter:brightness(1.05)}
.adoffer:active{transform:translateY(calc(-50% + 3px))}
.adoffer:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:30px}
@keyframes aoIn{from{opacity:0;transform:translate(-30px,-50%) scale(.8)}to{opacity:1;transform:translateY(-50%)}}
@keyframes aoBob{0%,100%{transform:translateY(-50%)}50%{transform:translateY(calc(-50% - 4px))}}
body.decor-on .adoffer,body.shopbar-on .adoffer{display:none}
@media (max-width:560px){.ao-ring{width:50px;height:50px}.ao-tv{width:40px;height:40px}.ao-tv svg{width:25px;height:25px}.ao-txt b{font-size:13.5px}.ao-txt small{font-size:9.5px}}
@media (orientation:landscape) and (max-height:540px){.adoffer{top:auto;bottom:66px;transform:none;animation:aoIn2 .5s both}.adoffer:active{transform:translateY(3px)}.ao-ring{width:46px;height:46px}.ao-tv{width:36px;height:36px}.ao-tv svg{width:23px;height:23px}}
@keyframes aoIn2{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.adoffer{animation:none}}

/* ---------- Ranking (Progresso → Ranking) ---------- */
.rk{display:flex;flex-direction:column;gap:12px}
.rk-wait{text-align:center;padding:20px 0}
.rk-podium{display:flex;justify-content:center;align-items:flex-end;gap:10px;padding:8px 0 0}
.rk-pod{flex:1;max-width:190px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:2.5px solid var(--ink);border-radius:18px 18px 8px 8px;padding:14px 8px 10px;box-shadow:0 4px 0 var(--ink);position:relative;min-width:0}
.rk-pod b{font:400 16px/1.1 var(--display);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rk-ouro{background:linear-gradient(#fff6d6,#ffe9a8);padding-top:24px;padding-bottom:20px}
.rk-prata{background:linear-gradient(#f6f4f8,#e3dfe8)}
.rk-bronze{background:linear-gradient(#fbeee2,#f0d3b8)}
.rk-medal{position:absolute;top:-14px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 14px/1 var(--ui);color:#fff;border:2.5px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
.rk-ouro .rk-medal{background:#e0a43a}.rk-prata .rk-medal{background:#9b98a8}.rk-bronze .rk-medal{background:#c07a4a}
.rk-av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2.5px solid var(--ink);font:700 20px/1 var(--ui);color:var(--rose)}
.rk-ouro .rk-av{width:56px;height:56px;font-size:24px}
.rk-lv{font:700 13px/1 var(--ui);background:var(--ink);color:#fff;border-radius:99px;padding:4px 10px}
.rk-mini{display:inline-flex;align-items:center;gap:3px;font:600 12px/1 var(--ui);color:var(--ink-soft)}
.rk-mini{gap:8px}.rk-mini i{font-style:normal;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.rk-pod.me{outline:3px solid var(--rose);outline-offset:3px}
.rk-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rk-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto 64px 64px;align-items:center;gap:8px;background:var(--cream);border:2px solid rgba(58,35,64,.18);border-radius:14px;padding:8px 10px;font:500 14px/1.2 var(--ui)}
.rk-row.me{background:#fde9ef;border-color:var(--rose)}
.rk-pos{font:700 14px/1 var(--ui);color:var(--ink-soft);text-align:center}
.rk-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rk-name small{font-weight:500;color:var(--rose)}
.rk-lvl{font-size:13px;color:var(--ink-soft)}
.rk-lvl b{color:var(--ink);font-size:15px}
.rk-stat{display:inline-flex;align-items:center;gap:4px;font:600 13px/1 var(--ui);justify-content:flex-end}
.rk-mine{margin-top:-4px}
.rk-join{display:flex;align-items:center;gap:10px;background:#f3edfd;border:2px solid var(--lilac);border-radius:16px;padding:10px 12px}
.rk-join b{display:block}
.rk-note{font-size:12px}
@media (max-width:560px){
  .rk-podium{gap:6px}
  .rk-pod{padding:12px 4px 8px}.rk-ouro{padding-top:20px;padding-bottom:14px}
  .rk-pod b{font-size:14px}
  .rk-mini{flex-wrap:wrap;justify-content:center;font-size:11px;row-gap:2px}
  .rk-lv{font-size:12px;padding:3px 8px}
  .rk-row{grid-template-columns:28px minmax(0,1fr) auto;row-gap:4px;font-size:13px}
  .rk-row .rk-stat{grid-row:2;justify-content:flex-start}
  .rk-row .rk-stat:nth-of-type(4){grid-column:2}.rk-row .rk-stat:nth-of-type(5){grid-column:3}
}

/* ---------- Nome da loja e boas-vindas da personagem ---------- */
.sn-sign{align-self:center;max-width:100%;padding:10px 26px;background:#d94f86;border:2.5px solid var(--ink);box-shadow:0 4px 0 var(--ink);clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%);text-align:center}
.sn-sign span{font:700 18px/1.1 var(--ui);letter-spacing:.08em;color:#fff;text-shadow:0 2px 0 rgba(58,35,64,.45);word-break:break-word}
.av-hello{margin:0 48px 6px 0;padding:8px 12px;background:#e3f4ea;border:2px solid var(--mint-deep);border-radius:14px;font:500 14px/1.35 var(--ui)}
.rk-shop{display:block;font:600 11px/1.2 var(--ui);color:var(--lilac-deep);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.rk-name .rk-shop{margin-top:2px}

/* ---------- Coleção Fashion Coin (v51) ---------- */
.fcg{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#b89aef 0,#8a63d2 60%,#6a46b0 100%);border:1.5px solid var(--plum);color:#fff;font:800 7.5px/1 var(--ui,inherit);font-style:normal;letter-spacing:-.2px;vertical-align:-4px;margin-right:4px;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35)}
.sb-price.fc{background:linear-gradient(180deg,#c9b2f2,#a585e3);color:#fff;text-shadow:0 1px 0 var(--plum);display:inline-flex;align-items:center;justify-content:center}
.sb-price.fc.poor,.sb-price.fc:disabled{background:#eee;color:#8a7b8e;text-shadow:none}
.sb-card.fc{position:relative;border:2px solid #a585e3;background:linear-gradient(180deg,#f6f0ff 0,#fffdf9 60%);box-shadow:0 0 0 3px rgba(165,133,227,.18)}
.sb-card.fc .sb-thumb{background:radial-gradient(circle at 50% 40%,#fff 0,#e9dcff 78%)}
.sb-fcflag{position:absolute;top:-9px;left:10px;z-index:1;background:var(--fc);color:#fff;font:700 9.5px/1 var(--ui,inherit);padding:3px 7px;border-radius:99px;border:1.5px solid var(--plum);letter-spacing:.3px}
.sb-perk{font-size:11px;font-weight:700;color:#6a46b0;background:#efe6ff;border-radius:8px;padding:3px 6px;text-align:center}
.sb-tab.fctab{background:#e3d6fb!important}
.sb-tab.fctab.on{background:#f3ecff!important}
.sb-tab.fctab .sb-ticon{display:grid;place-items:center}
.sb-tab.fctab .fcg{width:26px;height:26px;font-size:10px;margin:0}
.sb-fcmoney{color:#6a46b0;margin-left:6px;display:inline-flex;align-items:center}
.sb-fcmoney .fcg{width:15px;height:15px;font-size:6px;margin-right:3px;vertical-align:0}
.sb-fcintro{flex:0 0 170px;margin:0;padding:10px;border-radius:18px;background:#efe6ff;border:2px dashed #a585e3;font-size:12px;line-height:1.35;color:var(--plum)}
.sb-fcintro b{display:block;color:#6a46b0;margin-bottom:4px;font-size:13px}
.tag.fctag{background:var(--fc);color:#fff}
.fcnote{color:#6a46b0}
@media (max-width:700px){
  .sb-fcintro{flex:0 0 118px;font-size:10.5px;padding:7px;line-height:1.3}
  .sb-fcintro b{font-size:11.5px}
  .sb-perk{font-size:10px;padding:2px 4px}
}
