/* ShadowFlare • Lobby do jogo */
.sf-game{
  --gold:#e6b975;
  --edge:rgba(231,187,120,.19);
  background:#080b0d;
  color:#eee7dc;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  min-height:80vh;
  isolation:isolate;
  overflow:hidden;
}
.sf-game *, .sf-game *::before, .sf-game *::after,
.sf-overlay *, .sf-overlay *::before, .sf-overlay *::after{box-sizing:border-box}
.sf-game button,.sf-game input,.sf-overlay button,.sf-overlay input{font:inherit}
.sf-game button,.sf-overlay button{cursor:pointer}
.sf-game button:focus-visible,.sf-game input:focus-visible,.sf-overlay button:focus-visible,.sf-overlay input:focus-visible{outline:2px solid #e7bd77;outline-offset:3px}
.sf-game [hidden],.sf-overlay [hidden]{display:none!important}
.sf-pulse{display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#8ff0a8;box-shadow:0 0 0 3px rgba(88,188,126,.13),0 0 12px rgba(112,224,151,.4)}
.sf-overline,.sf-chapter-index{display:block;color:#d6ae73;letter-spacing:.18em;font-size:10px;font-weight:800}
.sf-overline{display:flex;align-items:center;gap:11px}
.sf-overline .sf-rune{font-size:19px;color:#ffe1a4}
.sf-overline .sf-rule{width:35px;height:1px;background:#aa8656}
.sf-error{position:relative;margin:0;padding:13px clamp(18px,2vw,42px);font-size:12px;background:#522c28;color:#ffe0d6;border-bottom:1px solid #b9766c;z-index:3}

.sf-scene{position:relative;overflow:hidden;isolation:isolate;border-bottom:1px solid rgba(245,197,125,.25);background:#10100e}
.sf-scene-art{position:absolute;inset:0;z-index:-2;pointer-events:none;
  background-image:linear-gradient(90deg,rgba(5,8,9,.82) 0%,rgba(8,10,10,.34) 44%,rgba(5,7,8,.54) 100%),linear-gradient(0deg,rgba(7,10,10,.97) 0%,rgba(7,10,10,.42) 45%,rgba(5,7,9,.16) 100%),url('/assets/images/bg-download.webp');
  background-size:cover,cover,cover;background-position:center,center,center 42%;background-repeat:no-repeat;transform:scale(1.01)
}
.sf-scene:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 50% 55% at 88% 22%,rgba(155,96,34,.12),transparent),linear-gradient(90deg,rgba(223,173,102,.022) 1px,transparent 1px);background-size:auto,120px}
.sf-scene-top,.sf-scene-lower,.sf-hall,.sf-foot{padding-left:clamp(20px,2vw,36px);padding-right:clamp(20px,2vw,36px)}
.sf-scene-top{min-height:350px;padding-top:52px;padding-bottom:24px;display:flex;justify-content:space-between;align-items:flex-start;gap:28px}
.sf-scene-intro{max-width:540px;padding-top:26px}
.sf-scene-intro h1{color:#fff4e2;font:400 clamp(36px,4.2vw,60px)/1.02 Georgia,"Times New Roman",serif;letter-spacing:-.03em;margin:15px 0 10px;text-shadow:0 4px 24px #090b0d}
.sf-world-state{display:flex;align-items:center;gap:11px;color:#d0d9cf;font-size:12px;letter-spacing:.02em;margin-top:18px;text-shadow:0 1px 6px #070809}

.sf-scene-side{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:16px;min-width:610px}
.sf-online-totem{width:195px;min-height:170px;padding:18px 16px 14px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,rgba(35,34,28,.74),rgba(9,17,16,.88));box-shadow:0 14px 38px rgba(0,0,0,.30);border:1px solid rgba(242,192,108,.48);clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px)}
.sf-totem-emblem{position:absolute;top:8px;left:13px;color:#d8b982;font:19px Georgia,serif}
.sf-totem-body{display:grid;gap:3px;align-content:center}
.sf-online-totem strong{display:block;font:400 66px/1 Georgia,serif;color:#fff0d4;text-shadow:0 2px 18px rgba(230,190,111,.24)}
.sf-online-totem .sf-totem-body>span{font-size:10px;letter-spacing:.14em;line-height:1.55;color:#ddc49f;font-weight:800}
.sf-totem-foot{width:100%;margin-top:16px;padding-top:10px;border-top:1px solid var(--edge);font-size:9px;letter-spacing:.12em;color:#a7dfad;display:flex;justify-content:center;align-items:center;gap:8px}
.sf-totem-foot .sf-pulse{width:5px;height:5px}

.sf-scene-lower{padding-top:0;padding-bottom:28px}
.sf-world-stats{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.sf-world-stat{min-width:190px;padding:0 0 6px;border-bottom:1px solid rgba(227,187,120,.28);background:transparent}
.sf-world-stat small{display:block;font-size:10px;letter-spacing:.14em;color:#d9bb88;line-height:1.35;margin-bottom:6px}
.sf-world-stat strong{display:block;font:400 30px/1 Georgia,serif;color:#fff0d8;font-variant-numeric:tabular-nums;text-shadow:0 2px 14px rgba(0,0,0,.25)}

.sf-spell-dock{width:min(100%,690px);display:grid;gap:10px;justify-items:end}
.sf-spell-dock-head{width:100%;display:flex;justify-content:space-between;align-items:end;gap:16px}
.sf-spell-dock-head h2{font:400 22px/1.1 Georgia,serif;margin:4px 0 0;color:#f7dfb7}
.sf-gold-button{padding:9px 14px;background:linear-gradient(#eac58c,#cfa367);border:1px solid #f3d29f;color:#171917;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.sf-gold-button:hover{filter:brightness(1.12)}
.sf-gold-button span{margin-left:10px}
.sf-spell-preview{width:auto;display:grid;grid-template-columns:repeat(11,52px);gap:8px 8px;justify-content:end;align-content:start}
.sf-preview-spell{width:52px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;transition:transform .18s,filter .18s}
.sf-preview-spell:hover{transform:translateY(-2px);filter:brightness(1.08)}
.sf-preview-spell .sf-spell-icon{width:42px;height:42px;border-color:rgba(246,198,121,.24);background:linear-gradient(135deg,rgba(81,64,45,.96),rgba(23,26,27,.96));box-shadow:0 8px 18px rgba(0,0,0,.28)}
.sf-preview-spell .sf-spell-icon img{max-width:34px;max-height:34px;image-rendering:auto}
.sf-preview-spell strong{font-size:10px;line-height:1.2;color:#f1ddb5;font-variant-numeric:tabular-nums;font-weight:700;text-shadow:0 1px 6px #08090b}
.sf-spell-icon{display:grid;place-items:center;position:relative;flex-shrink:0;overflow:hidden;border:1px solid rgba(225,181,113,.28);border-radius:3px}
.sf-spell-icon img{z-index:1;position:relative;display:block;width:auto;height:auto;object-fit:contain}
.sf-spell-icon i{position:absolute;display:none;color:#e2bd81;font:26px Georgia,serif}
.sf-icon-missing i{display:block}

.sf-hall{max-width:none;margin:0 auto;padding-top:35px;padding-bottom:48px}
.sf-hall-head,.sf-history-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.sf-hall h2{font:400 clamp(26px,2.4vw,36px)/1.16 Georgia,serif;color:#f2e4d0;margin:8px 0 0}
.sf-count-bubble{font:700 12px Inter,"Segoe UI",Arial,sans-serif;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;margin-left:6px;border-radius:20px;background:rgba(110,191,136,.1);border:1px solid rgba(115,192,145,.26);color:#a3d8ac}
.sf-search{height:39px;padding:0 12px;display:flex;align-items:center;gap:10px;min-width:240px;width:min(340px,100%);background:#11191c;border:1px solid rgba(223,186,125,.24);color:#bf985f}
.sf-search>span{font-size:23px}.sf-search input{width:100%;min-width:0;color:#eae3d6;background:transparent;border:0;outline:0;font-size:12px}.sf-search input::placeholder{color:#89908b}.sf-search:focus-within{border-color:rgba(239,193,110,.7)}
.sf-online-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:19px}
.sf-player{display:flex;flex-direction:column;width:100%;position:relative;color:inherit;text-align:left;min-width:0;min-height:250px;padding:20px 19px 13px;background:radial-gradient(ellipse 240px 115px at 90% 0%,rgba(97,128,98,.11),transparent),linear-gradient(125deg,#1c2628,#10171b 80%);border:1px solid rgba(139,180,138,.34);transition:transform .18s,border-color .18s,box-shadow .18s;overflow:hidden}
.sf-player:hover{transform:translateY(-3px);border-color:rgba(228,189,119,.75);box-shadow:0 15px 30px rgba(0,0,0,.3)}
.sf-player .sf-corner{position:absolute;width:24px;height:24px;border:solid rgba(227,187,117,.64);pointer-events:none}.sf-corner--tl{top:7px;left:7px;border-width:1px 0 0 1px}.sf-corner--br{bottom:7px;right:7px;border-width:0 1px 1px 0}
.sf-player-top{display:flex;align-items:center;gap:12px;min-width:0}.sf-avatar{position:relative;display:grid;place-items:center;width:60px;height:60px;flex-shrink:0;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);border:1px solid rgba(221,188,136,.25);background:linear-gradient(150deg,#574b35,#26322b 78%);color:#f4d5a0;font:24px Georgia,serif}.sf-avatar i{position:absolute;right:4px;bottom:3px;width:8px;height:8px;border:1px solid #1b2521;background:#83d7a0;border-radius:50%}
.sf-player-title{min-width:0;display:grid;gap:5px;flex:1}.sf-player-title strong{font-size:14px;color:#f1eee5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.sf-player-title small{font-size:11px;color:#c1a06c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sf-level{display:grid;gap:5px;text-align:right;min-width:46px}.sf-level small{font-size:9px;color:#79807a;letter-spacing:.1em}.sf-level b{font:400 17px Georgia,serif;color:#f1d6a1}
.sf-player-zone{margin-top:18px;padding:13px 0 18px;border-bottom:1px solid rgba(218,191,143,.1);font-size:12px;color:#afbab5;display:flex;gap:8px;align-items:center}
.sf-player-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding-top:14px}.sf-player-bottom>span{min-width:0;display:grid;gap:4px}.sf-player-bottom>span+span{border-left:1px solid rgba(220,193,135,.11);padding-left:13px}.sf-player-bottom small{font-size:9px;color:#8b9994;letter-spacing:.1em}.sf-player-bottom b{font-size:15px;color:#e8e1d4;font-weight:650;overflow:hidden;text-overflow:ellipsis}
.sf-player-foot{display:flex;align-items:center;gap:9px;padding-top:14px;color:#9bd3ab;font-size:9px;font-weight:700;letter-spacing:.085em}.sf-player-foot .sf-pulse{width:5px;height:5px}.sf-player-more{margin-left:auto;color:#c6a16d;font-size:9px}
.sf-empty{min-height:130px;display:flex;justify-content:center;align-items:center;gap:14px;text-align:center;color:#a0a29b;font-size:13px;padding:20px;border:1px dashed rgba(202,178,139,.22);background:rgba(20,27,28,.55)}
.sf-empty--online{grid-column:1/-1}.sf-empty>span{color:#b99561;font-size:25px}
.sf-history-head{margin-top:30px;padding-bottom:13px;border-bottom:1px solid var(--edge)}
.sf-history-head h3{font:400 19px/1.3 Georgia,serif;color:#e0d7c6;margin:8px 0 0}.sf-history-head .sf-count-bubble{background:rgba(190,170,125,.1);border-color:rgba(190,170,125,.2);color:#d7c49d}
.sf-history-toggle{border:1px solid rgba(206,175,127,.28);padding:10px 14px;background:rgba(211,170,111,.04);color:#d6b586;font-size:11px;white-space:nowrap}.sf-history-toggle:hover{background:rgba(211,170,111,.12)}.sf-history-toggle span{margin-left:9px;font-size:17px}
.sf-history-list{display:grid;gap:1px;background:rgba(213,184,143,.08)}
.sf-history-row{color:#c6c4bc;text-align:left;display:flex;align-items:center;gap:14px;width:100%;padding:12px 15px;min-width:0;border:1px solid transparent;background:#14191d;transition:background .15s,border-color .15s}.sf-history-row:hover{background:#202523;border-color:rgba(229,189,119,.33)}
.sf-history-avatar{display:grid;place-items:center;flex-shrink:0;width:37px;height:37px;border:1px solid rgba(204,169,115,.3);color:#bda477;font:15px Georgia,serif;background:#262720}
.sf-history-identity{display:grid;gap:4px;min-width:115px;flex:1}.sf-history-identity strong{font-size:12px;color:#e3ded2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.sf-history-identity small{font-size:10px;color:#a39478;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sf-history-zone{flex:1.3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#a4a8a5}.sf-history-level{min-width:50px;text-align:right;white-space:nowrap;font-size:11px;color:#d8b889}.sf-history-date{min-width:130px;text-align:right;color:#848b89;font-size:10px;white-space:nowrap}.sf-history-arrow{color:#d1ab79;font-size:21px;margin-left:6px}
.sf-history-none{padding:16px;color:#868d8b;font-size:12px;background:#14191d}
.sf-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 auto;padding-top:17px;padding-bottom:28px;border-top:1px solid var(--edge);color:#818582;font-size:11px}.sf-foot span:first-child{color:#c4a06b;letter-spacing:.13em}
body.sf-modal-open{overflow:hidden}
.sf-overlay{position:fixed;inset:0;z-index:99999;padding:22px;display:flex;align-items:center;justify-content:center;background:rgba(2,5,7,.87);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s}.sf-overlay.show{opacity:1;visibility:visible;pointer-events:auto}
.sf-dialog{width:min(780px,100%);position:relative;overflow:auto;max-height:min(92vh,920px);padding:30px;border:1px solid rgba(230,189,120,.43);background:radial-gradient(ellipse 360px 160px at 100% 0,rgba(127,91,46,.16),transparent),linear-gradient(145deg,#1b2225,#0d1216);color:#eae3d7;box-shadow:0 25px 85px rgba(0,0,0,.65);font-family:Inter,"Segoe UI",Arial,sans-serif}.sf-dialog:before,.sf-dialog:after{content:"";position:absolute;width:22px;height:22px;pointer-events:none;border-color:#c7a26d;border-style:solid}.sf-dialog:before{top:7px;left:7px;border-width:1px 0 0 1px}.sf-dialog:after{bottom:7px;right:7px;border-width:0 1px 1px 0}
.sf-close{position:absolute;z-index:3;right:15px;top:15px;width:33px;height:33px;color:#e9cea8;background:#2b2b28;border:1px solid rgba(218,189,135,.28);font-size:25px;display:grid;place-items:center;line-height:1}.sf-close:hover{background:#484034}
.sf-sheet-header{padding-right:35px}.sf-sheet-header h2,.sf-grimoire-dialog-title h2{font:400 clamp(28px,4vw,41px)/1.15 Georgia,serif;margin:13px 0 10px;color:#f1e4d0;overflow-wrap:anywhere}
.sf-sheet-sub{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#c8bba4;font-size:13px}.sf-sheet-status{font-size:10px;border:1px solid rgba(199,195,187,.22);padding:7px 10px;white-space:nowrap;color:#acb1ae}.sf-sheet-status.is-online{color:#9bd6ad;border-color:rgba(124,201,152,.36)}
.sf-sheet-location{font-size:12px;color:#aeb3ac;margin:18px 0 22px;padding-bottom:17px;border-bottom:1px solid rgba(223,186,125,.16)}
.sf-sheet-kills{display:flex;align-items:center;gap:13px;padding:13px 16px;margin-bottom:17px;background:rgba(201,158,91,.08);border:1px solid rgba(224,186,116,.24)}.sf-sheet-kills>span{font-size:23px;color:#e2bd81}.sf-sheet-kills div{display:grid;gap:4px}.sf-sheet-kills small{font-size:9px;letter-spacing:.15em;color:#b8a487}.sf-sheet-kills strong{font:26px Georgia,serif;color:#f0e1c5}
.sf-sheet-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sf-sheet-sections section{min-width:0;padding:16px;border:1px solid rgba(214,187,143,.16);background:rgba(5,10,12,.24)}.sf-sheet-sections h3{font-size:13px;font-weight:650;color:#e4be82;margin:0 0 12px}.sf-sheet-sections ul{padding:0;margin:0;list-style:none}.sf-sheet-sections li{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid rgba(218,193,143,.06);font-size:12px}.sf-sheet-sections li:last-child{border:0}.sf-sheet-sections li span{color:#a3ada8}.sf-sheet-sections li strong{color:#ebebdf;font-weight:650;font-variant-numeric:tabular-nums}
.sf-sheet-activity{font-size:11px;color:#9e9f99;margin-top:16px}
.sf-dialog--grimoire{width:min(850px,100%)}.sf-grimoire-dialog-title{padding-right:36px}.sf-grimoire-dialog-title p{font-size:12px;color:#9faba6;margin:0 0 19px}.sf-grimoire-tools{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.sf-sort{padding:9px 13px;border:1px solid rgba(202,176,131,.26);background:#1c2325;color:#c2b09a;font-size:11px}.sf-sort:hover,.sf-sort.active{border-color:#dcb473;color:#ebca98}
.sf-spell-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sf-spell-row{display:grid;grid-template-columns:38px minmax(0,1fr) 60px auto;align-items:center;gap:11px;min-width:0;min-height:56px;padding:8px;background:rgba(12,18,20,.68);border:1px solid rgba(219,185,125,.13)}.sf-spell-row .sf-spell-icon{width:36px;height:36px}.sf-spell-row .sf-spell-icon img{max-width:32px;max-height:32px}.sf-spell-name{font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e3d5be;font-weight:600}.sf-spell-bar{height:3px;background:rgba(189,168,131,.16);overflow:hidden}.sf-spell-bar i{height:100%;display:block;background:linear-gradient(90deg,#a57943,#f5d194)}.sf-spell-value{min-width:38px;text-align:right;color:#c3bcaa;font-size:11px;font-variant-numeric:tabular-nums}.sf-dialog .sf-empty{min-height:85px}

@media(max-width:1180px){
  .sf-scene-top{gap:20px}
  .sf-scene-side{min-width:unset;width:min(100%,630px)}
  .sf-online-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:940px){
  .sf-scene-top{flex-direction:column;align-items:stretch}
  .sf-scene-intro{max-width:none;padding-top:0}
  .sf-scene-side{margin-left:0;align-items:stretch;width:100%}
  .sf-online-totem{align-self:flex-end}
  .sf-spell-dock{width:100%;justify-items:start}
  .sf-spell-dock-head{align-items:center}
  .sf-spell-preview{grid-template-columns:repeat(11,minmax(42px,1fr));justify-content:start}
}
@media(max-width:720px){
  .sf-scene-top{min-height:auto;padding-top:38px;padding-bottom:22px}
  .sf-online-grid{grid-template-columns:1fr}
  .sf-player{min-height:225px}
  .sf-world-stats{gap:10px}
  .sf-world-stat{min-width:150px}
  .sf-spell-grid{grid-template-columns:1fr}
  .sf-history-date,.sf-history-zone{display:none}
  .sf-dialog{padding:24px 18px}
}
@media(max-width:540px){
  .sf-game{width:100%;margin-left:0;margin-right:0}
  .sf-scene-top,.sf-scene-lower,.sf-hall,.sf-foot{padding-left:16px;padding-right:16px}
  .sf-scene-intro h1{font-size:36px}
  .sf-online-totem{width:100%;min-height:86px;display:flex;flex-direction:row;align-items:center;justify-content:space-around;gap:10px}
  .sf-totem-emblem{display:none}
  .sf-totem-body{display:flex;align-items:center;gap:12px}
  .sf-online-totem strong{font-size:49px}
  .sf-totem-body>span{text-align:left}
  .sf-totem-foot{margin-top:0;padding-top:0;width:auto;border:0;font-size:8px}
  .sf-world-stat{min-width:calc(50% - 5px)}
  .sf-spell-dock-head{flex-direction:column;align-items:flex-start}
  .sf-spell-preview{grid-template-columns:repeat(6,minmax(42px,1fr));justify-content:start}
  .sf-hall-head{align-items:stretch;flex-direction:column;gap:14px}
  .sf-search{width:100%;max-width:none}
  .sf-history-head h3{font-size:17px}
  .sf-history-level{font-size:10px}
  .sf-history-identity{min-width:0}
  .sf-sheet-sections{grid-template-columns:1fr}
  .sf-sheet-sub{flex-wrap:wrap}
  .sf-overlay{padding:9px}
}
@media(prefers-reduced-motion:reduce){.sf-game *, .sf-overlay *{animation:none!important;transition:none!important}}

/* v6 - Cabeçalho alto; estatísticas e feitiços na base do cenário.
   Sem painel grande atrás das magias. A moldura dos BMPs é bem discreta. */
.sf-scene-top{
  min-height:230px;
  padding-top:24px;
  padding-bottom:30px;
  align-items:flex-start;
}
.sf-scene-intro{padding-top:0;max-width:720px}
.sf-scene-intro h1{margin-top:12px}
.sf-online-totem{margin-left:auto;flex:0 0 195px}
.sf-scene-lower{
  display:grid;
  grid-template-columns:minmax(300px,1fr) minmax(0,690px);
  align-items:end;
  gap:clamp(20px,2.8vw,48px);
  padding-bottom:30px;
}
.sf-world-stats{width:100%;align-self:end;flex-wrap:nowrap;gap:clamp(10px,1.2vw,22px)}
.sf-world-stat{min-width:0;flex:1}
.sf-spell-dock{margin-left:auto;width:min(100%,690px);background:none;border:0;box-shadow:none}
.sf-spell-preview{
  width:max-content;
  max-width:100%;
  grid-template-columns:repeat(11,52px);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:rgba(217,173,107,.46) transparent;
  padding:3px 1px 7px;
}
.sf-preview-spell .sf-spell-icon{
  border:0;
  background:transparent;
  box-shadow:none;
}
.sf-preview-spell .sf-spell-icon img{
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.58));
}
@media(max-width:1280px){
  .sf-scene-lower{display:flex;flex-direction:column;align-items:stretch;gap:28px}
  .sf-spell-dock{align-self:flex-end}
}
@media(max-width:940px){
  .sf-scene-top{flex-direction:row;align-items:flex-start;min-height:210px;gap:15px}
  .sf-scene-intro{min-width:0;max-width:calc(100% - 170px)}
  .sf-online-totem{align-self:flex-start;width:155px;flex:0 0 155px;min-height:154px}
  .sf-online-totem strong{font-size:53px}
  .sf-spell-dock{width:min(100%,690px);justify-items:end}
  .sf-spell-preview{grid-template-columns:repeat(11,52px);justify-content:end}
}
@media(max-width:720px){
  .sf-scene-top{padding-top:23px;padding-bottom:25px;min-height:auto}
  .sf-scene-intro h1{font-size:clamp(28px,5.2vw,40px)}
  .sf-scene-lower{gap:25px}
  .sf-world-stats{flex-wrap:wrap}
  .sf-world-stat{flex:1 1 130px}
  .sf-spell-preview{justify-content:start}
}
@media(max-width:540px){
  .sf-scene-top{display:flex;flex-direction:column;gap:16px}
  .sf-scene-intro{max-width:100%}
  .sf-scene-intro h1{font-size:34px}
  .sf-online-totem{align-self:stretch;width:100%;flex:auto;min-height:85px}
  .sf-spell-dock{align-self:stretch;width:100%;justify-items:stretch}
  .sf-spell-preview{grid-template-columns:repeat(11,48px);width:100%;justify-content:start}
  .sf-preview-spell{width:48px}
  .sf-spell-dock-head{flex-direction:row;align-items:center}
}

/* Contribuicoes globais: componentes independentes do quadro de jogadores. */
.sf-stat-icon{width:26px;height:26px;object-fit:contain;vertical-align:middle;margin:0 8px 0 0}
.sf-community{padding:28px clamp(16px,4vw,64px);border-top:1px solid var(--edge)}
.sf-community h2{margin:0 0 8px;color:var(--gold)}
.sf-community p{color:#bcb4a5;font-size:13px}
.sf-community-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.sf-community-card{padding:18px;background:linear-gradient(145deg,#171a1c,#0d1012);border:1px solid var(--edge);border-radius:8px;min-width:0}
.sf-community-card small{display:block;color:#bcb4a5;font-size:10px;letter-spacing:.08em;min-height:28px;margin-top:10px}
.sf-community-card strong{display:block;color:var(--gold);font-size:clamp(17px,2vw,25px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sf-community-icon{height:30px;display:flex;align-items:center;gap:8px;color:var(--gold)}
.sf-community-icon img{height:28px;width:28px;object-fit:contain}
@media(max-width:700px){.sf-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v8 - estatísticas da comunidade integradas ao bloco principal */
.sf-scene-lower{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(360px,.92fr);
  align-items:start;
  gap:clamp(22px,2.4vw,42px);
  padding-top:4px;
  padding-bottom:32px;
}
.sf-world-panel{min-width:0}
.sf-world-panel-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
.sf-world-panel-state,.sf-world-note{margin:0;color:#bcb4a5;font-size:12px;line-height:1.5}
.sf-world-stats{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.sf-world-stat{
  min-width:0;
  padding:14px 14px 12px;
  border:1px solid rgba(231,187,120,.18);
  background:linear-gradient(145deg,rgba(21,25,28,.86),rgba(11,14,16,.9));
  box-shadow:0 10px 24px rgba(0,0,0,.16);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}
.sf-world-stat.is-primary{border-color:rgba(231,187,120,.26);background:linear-gradient(145deg,rgba(29,35,37,.88),rgba(11,14,16,.94));}
.sf-world-stat-top{display:flex;align-items:center;gap:10px;min-width:0}
.sf-world-stat small{display:block;font-size:10px;letter-spacing:.12em;color:#d9bb88;line-height:1.35;min-width:0}
.sf-world-stat strong{display:block;font:400 23px/1 Georgia,"Times New Roman",serif;color:#fff0d8;font-variant-numeric:tabular-nums;text-shadow:0 2px 14px rgba(0,0,0,.25);overflow-wrap:anywhere}
.sf-world-stat.is-primary strong{font-size:30px}
.sf-stat-icon,.sf-stat-glyph{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;color:var(--gold)}
.sf-stat-icon{object-fit:contain}
.sf-stat-glyph{font-size:18px;line-height:1}
.sf-stat-icon-group{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.sf-stat-icon-group .sf-stat-icon{width:21px;height:21px}
.sf-world-note{margin-top:12px}

.sf-community{display:none}

@media(max-width:1500px){
  .sf-world-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1280px){
  .sf-scene-lower{grid-template-columns:1fr;gap:26px}
  .sf-spell-dock{align-self:flex-start;margin-left:0;width:100%}
}
@media(max-width:860px){
  .sf-world-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .sf-world-stats{grid-template-columns:1fr}
  .sf-world-stat.is-primary strong{font-size:26px}
}


/* v9 - estatísticas minimalistas, sem quadrados, com tooltip nativo */
.sf-world-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px 18px;
}
.sf-world-stat{
  min-width:0;
  padding:6px 4px 10px;
  border:0;
  border-bottom:1px solid rgba(231,187,120,.24);
  background:transparent;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  transition:transform .16s ease,border-color .16s ease,filter .16s ease;
}
.sf-world-stat:hover{
  transform:translateY(-1px);
  border-bottom-color:rgba(231,187,120,.5);
  filter:brightness(1.05);
}
.sf-world-stat.is-primary{background:transparent;border-color:rgba(231,187,120,.30)}
.sf-world-stat-top{display:flex;align-items:center;gap:8px;min-width:0}
.sf-world-stat strong{display:block;font:400 30px/1 Georgia,"Times New Roman",serif;color:#fff0d8;font-variant-numeric:tabular-nums;text-shadow:0 2px 14px rgba(0,0,0,.25);overflow-wrap:anywhere}
.sf-world-stat:not(.is-primary) strong{font-size:24px}
.sf-stat-icon,.sf-stat-glyph{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;color:var(--gold)}
.sf-stat-icon{object-fit:contain;filter:drop-shadow(0 3px 7px rgba(0,0,0,.42))}
.sf-stat-glyph{font-size:24px;line-height:1;text-shadow:0 3px 8px rgba(0,0,0,.42)}
.sf-stat-icon-group{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.sf-stat-icon-group .sf-stat-icon{width:28px;height:28px;flex-basis:28px}
.sf-stat-label{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
@media(max-width:1500px){
  .sf-world-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .sf-world-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .sf-world-stats{grid-template-columns:1fr}
  .sf-world-stat strong{font-size:26px}
  .sf-world-stat:not(.is-primary) strong{font-size:22px}
}


/* v10 — números e ícones centralizados, linhas compactas, grimório ao pé da cena. */
.sf-scene-lower{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(610px,730px);
  gap:clamp(14px,1.7vw,30px);
  align-items:end;
  padding-top:2px;
  padding-bottom:16px;
}
.sf-world-panel-head{margin-bottom:6px}
.sf-world-panel-head .sf-chapter-index{font-size:9px}
.sf-world-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px 10px;
  align-items:stretch;
}
.sf-world-stat,
.sf-world-stat.is-primary{
  min-width:0;
  min-height:76px;
  padding:5px 3px 7px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:5px;
  background:transparent;
  box-shadow:none;
  border:0;
  border-bottom:1px solid rgba(231,187,120,.27);
}
.sf-world-stat:hover,
.sf-world-stat.is-primary:hover{border-bottom-color:rgba(231,187,120,.58)}
.sf-world-stat-top{width:100%;min-width:0;display:flex;justify-content:center;align-items:center;min-height:35px;gap:4px}
.sf-world-stat strong,
.sf-world-stat:not(.is-primary) strong,
.sf-world-stat.is-primary strong{
  display:block;
  max-width:100%;
  font:500 clamp(15px,1.22vw,20px)/1.15 Georgia,"Times New Roman",serif;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.025em;
  white-space:nowrap;
  overflow-wrap:normal;
  color:#fff0d8;
  text-shadow:0 2px 12px rgba(0,0,0,.4);
}
.sf-stat-icon{width:36px;height:36px;flex-basis:36px;margin:0}
.sf-stat-glyph{width:36px;height:36px;flex-basis:36px;font-size:25px}
.sf-stat-icon-group{gap:4px}
.sf-stat-icon-group .sf-stat-icon{width:26px;height:26px;flex-basis:26px}
.sf-spell-dock{
  width:min(100%,730px);
  min-width:0;
  margin:0 0 1px auto;
  justify-self:end;
  align-self:end;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.sf-spell-dock-head{margin:0;width:100%;display:flex;justify-content:flex-end;align-items:center;min-height:36px}
.sf-spell-preview{
  display:grid;
  grid-template-columns:repeat(11,60px);
  gap:6px 6px;
  align-content:end;
  justify-content:end;
  width:max-content;
  max-width:100%;
  padding:0 0 3px;
  overflow-x:auto;
  overflow-y:hidden;
}
.sf-preview-spell{width:60px;gap:3px;padding:0}
.sf-preview-spell strong{
  display:block;
  width:100%;
  white-space:nowrap;
  font:600 9px/1.2 Consolas,"Lucida Console",monospace;
  letter-spacing:-.35px;
  text-align:center;
  color:#f4dfb8;
}
@media(max-width:1260px){
  .sf-scene-lower{display:flex;flex-direction:column;align-items:stretch;gap:22px}
  .sf-world-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sf-spell-dock{width:min(100%,730px);margin-left:auto;align-self:flex-end}
}
@media(max-width:760px){
  .sf-world-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px}
  .sf-spell-preview{justify-content:start}
}
@media(max-width:540px){
  .sf-scene-lower{gap:17px}
  .sf-world-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
  .sf-world-stat strong,.sf-world-stat:not(.is-primary) strong,.sf-world-stat.is-primary strong{font-size:18px}
  .sf-spell-dock{width:100%;align-self:stretch;align-items:flex-start}
  .sf-spell-dock-head{justify-content:flex-end;flex-direction:row}
  .sf-spell-preview{max-width:100%;justify-content:start}
}


/* v11 — 11 marcas em duas linhas (6 + 5) e numeros do grimorio mais legiveis. */
.sf-world-panel{padding-left:clamp(7px,1vw,17px)}
.sf-world-panel-head{margin-bottom:3px}
.sf-world-stats{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:3px 8px;
}
.sf-world-stat,.sf-world-stat.is-primary{
  min-height:62px;
  padding:2px 2px 5px;
  gap:2px;
}
.sf-world-stat-top{min-height:30px;height:30px}
.sf-stat-icon{width:30px;height:30px;flex-basis:30px}
.sf-stat-glyph{width:30px;height:30px;flex-basis:30px;font-size:22px}
.sf-stat-icon-group .sf-stat-icon{width:24px;height:24px;flex-basis:24px}
.sf-world-stat strong,
.sf-world-stat:not(.is-primary) strong,
.sf-world-stat.is-primary strong{
  font-size:clamp(16px,1.06vw,19px);
  line-height:1.12;
  letter-spacing:-.025em;
}
/* Onze valores como 999.999.999 continuam cabendo sob cada icone. */
.sf-preview-spell strong{
  font-family:"Arial Narrow","Liberation Sans Narrow",Arial,sans-serif;
  font-size:10.5px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-.36px;
  font-variant-numeric:tabular-nums;
}
@media(max-width:1259px){
  .sf-world-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:900px){
  .sf-world-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:540px){
  .sf-world-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sf-world-panel{padding-left:0}
}


/* v12 - Banner restaurado, marcas sem linhas, realce suave no hover.
   Grimorio fica no mesmo lugar; apenas os numerais crescem. */
@media (min-width:1281px){
  .sf-scene-top{min-height:296px}
}
.sf-world-stat,
.sf-world-stat.is-primary{
  border:0;
  border-bottom:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  transition:background .2s ease,box-shadow .2s ease,filter .2s ease,transform .2s ease;
}
.sf-world-stat:hover,
.sf-world-stat.is-primary:hover{
  border:0;
  border-bottom:0;
  background:radial-gradient(ellipse at center,rgba(238,191,106,.14) 0%,rgba(238,191,106,.04) 46%,transparent 80%);
  box-shadow:0 0 24px rgba(237,187,104,.08);
  filter:brightness(1.16);
  transform:translateY(-2px);
}
.sf-preview-spell strong{
  font-family:"Arial Narrow","Liberation Sans Narrow",Arial,sans-serif;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:-.16px;
  text-shadow:0 1px 7px #070809;
  font-variant-numeric:tabular-nums;
}
@media(prefers-reduced-motion:reduce){
  .sf-world-stat,.sf-world-stat.is-primary{transition:none}
}


/* v13 — marcas em duas linhas de cinco, total de magias perto do grimorio.
   Sem brilho, elevacao ou efeitos de hover nos contadores. */
.sf-scene-lower{
  display:grid;
  grid-template-columns:minmax(0,1fr) 124px minmax(0,730px);
  column-gap:clamp(10px,1vw,18px);
  align-items:end;
}
.sf-world-panel{padding-left:0;position:relative;left:-5px}
.sf-world-stats{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px 9px;
}
.sf-world-stat,.sf-world-stat.is-primary{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:none;
  transform:none;
  transition:none;
  padding:3px 1px 5px;
}
.sf-world-stat:hover,.sf-world-stat.is-primary:hover{
  background:transparent;
  border:0;
  box-shadow:none;
  filter:none;
  transform:none;
}
.sf-world-stat strong,.sf-world-stat.is-primary strong,.sf-world-stat:not(.is-primary) strong{
  font-size:clamp(14px,1vw,18px);
  letter-spacing:-.02em;
}
.sf-spells-total{
  min-width:0;
  min-height:100px;
  align-self:end;
  margin-bottom:9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  color:#f1d5a0;
  text-align:center;
  text-shadow:0 1px 7px #070809;
}
.sf-spells-total-icon{
  display:block;
  width:40px;
  height:40px;
  object-fit:contain;
  filter:drop-shadow(0 3px 7px rgba(0,0,0,.45));
}
.sf-spells-total strong{
  display:block;
  width:100%;
  font:600 clamp(14px,1.05vw,18px)/1.15 Georgia,"Times New Roman",serif;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.sf-spells-total small{
  font-size:9px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.095em;
  color:#e3bf82;
  white-space:nowrap;
}
/* O grimorio continua encostado no canto direito e nao muda de tamanho. */
.sf-spell-dock{grid-column:3;justify-self:end;align-self:end}
@media(max-width:1499px){
  .sf-scene-lower{
    display:grid;
    grid-template-columns:minmax(0,1fr) 120px;
    row-gap:13px;
  }
  .sf-world-panel{grid-column:1}
  .sf-spells-total{grid-column:2;grid-row:1;margin-bottom:6px}
  .sf-spell-dock{grid-column:1 / -1;grid-row:2;margin-left:auto;justify-self:end}
  .sf-world-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:760px){
  .sf-world-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:540px){
  .sf-scene-lower{grid-template-columns:minmax(0,1fr);row-gap:11px}
  .sf-world-panel{grid-column:1;left:0}
  .sf-world-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sf-spells-total{grid-column:1;grid-row:2;justify-self:end;min-height:auto;flex-direction:row;align-items:center;gap:9px;margin-bottom:0}
  .sf-spells-total-icon{width:28px;height:28px}
  .sf-spell-dock{grid-column:1;grid-row:3;justify-self:stretch;width:100%}
}

/* v14 - Total mágico ancorado ao grimório e legenda integrada ao cenário. */
@media(min-width:1541px){
  .sf-scene-lower{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,824px);
    gap:clamp(10px,1vw,22px);
    align-items:end;
  }
}
.sf-world-panel{grid-column:1;grid-row:1;align-self:end}
.sf-magic-group{
  grid-column:2;
  grid-row:1;
  min-width:0;
  width:100%;
  display:grid;
  grid-template-columns:94px minmax(0,730px);
  align-items:end;
  justify-content:end;
  gap:6px;
  justify-self:end;
}
.sf-spells-total{
  grid-column:1;
  grid-row:1;
  height:118px;
  min-height:0;
  margin:0 0 4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:94px;
  align-self:end;
  padding:0;
  text-align:center;
}
.sf-spells-total-icon{width:40px;height:40px}
.sf-spells-total strong{font-size:17px}
.sf-spells-total small{font-size:8px;letter-spacing:.05em}
.sf-spell-dock{
  grid-column:2;
  grid-row:1;
  width:100%;
  max-width:730px;
  min-width:0;
  justify-self:end;
  align-self:end;
  margin:0;
}
.sf-spell-preview{max-width:100%}
/* Ficha contextual fixa na composição do banner: só o texto muda. */
.sf-context-display{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:11px;
  width:min(440px,100%);
  min-height:55px;
  padding:9px 12px;
  border-left:2px solid rgba(235,190,118,.65);
  background:linear-gradient(90deg,rgba(12,17,18,.84),rgba(12,17,18,.35) 68%,transparent);
  box-shadow:inset 16px 0 35px rgba(0,0,0,.10);
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.sf-context-display.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.sf-context-rune{font:22px Georgia,serif;color:#e5be7b;flex:0 0 auto}
.sf-context-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.sf-context-copy strong{font-size:11px;font-weight:750;line-height:1.15;color:#ffdfaa;letter-spacing:.07em}
.sf-context-copy small{font-size:11px;line-height:1.32;color:#d4cfbf}
.sf-world-stat:focus-visible,.sf-spells-total:focus-visible,.sf-preview-spell:focus-visible{outline:1px solid #e3b671;outline-offset:3px}
@media(max-width:1540px){
  .sf-scene-lower{display:grid;grid-template-columns:minmax(0,1fr);row-gap:22px}
  .sf-world-panel{grid-column:1;grid-row:1;max-width:900px}
  .sf-magic-group{grid-column:1;grid-row:2;width:min(100%,824px)}
}
@media(max-width:900px){
  .sf-magic-group{grid-template-columns:minmax(66px,96px) minmax(0,1fr);gap:9px}
  .sf-spells-total{width:100%}
  .sf-spell-dock{width:100%;max-width:100%}
  .sf-spell-preview{overflow-x:auto;justify-content:start;width:100%}
}
@media(max-width:540px){
  .sf-context-display{min-height:59px;margin-top:9px}
  .sf-magic-group{grid-template-columns:68px minmax(0,1fr);align-items:end;gap:4px}
  .sf-spells-total{grid-column:1;grid-row:1;flex-direction:column;height:118px;margin:0}
  .sf-spells-total-icon{width:32px;height:32px}
  .sf-spells-total strong{font-size:14px}
  .sf-spells-total small{font-size:7px;white-space:normal}
  .sf-spell-dock{grid-column:2;grid-row:1;width:100%;align-items:flex-end}
  .sf-spell-preview{width:100%;max-width:100%;overflow-x:auto;justify-content:start}
}
@media(prefers-reduced-motion:reduce){.sf-context-display{transition:none;transform:none}}

/* Mantém, no desktop largo, a mesma altura compacta da cena anterior. */
@media(min-width:1541px){
  .sf-scene-top{min-height:230px}
  .sf-context-display{
    position:absolute;
    left:clamp(20px,2vw,36px);
    top:155px;
    margin-top:0;
    z-index:1;
  }
}


/* v16: textos posicionados sem participar do layout. Icones e valores
   recuperam os mesmos centros e a mesma altura da versao 14. */
.sf-overline{display:none!important}
.sf-scene-intro h1{margin-top:0}
.sf-world-panel-head .sf-chapter-index{
  font-size:12px;
  letter-spacing:.16em;
  color:#ddb16d;
}
.sf-world-stat,.sf-world-stat.is-primary{
  position:relative;
  gap:2px;
}
.sf-world-stat-top{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:30px;
  min-height:30px;
  gap:0;
}
.sf-world-stat strong,
.sf-world-stat.is-primary strong,
.sf-world-stat:not(.is-primary) strong{
  margin-left:0;
  margin-right:0;
  text-align:center;
  align-self:center;
}
/* Rotulo flutuante: nao move o icone nem o numero. */
.sf-stat-short{
  position:absolute;
  z-index:1;
  left:calc(50% + 18px);
  top:50%;
  transform:translateY(-50%);
  width:clamp(74px,6.6vw,116px);
  max-width:none;
  margin:0;
  color:#e3c48d;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:clamp(8px,.61vw,10px);
  line-height:1.2;
  letter-spacing:.045em;
  font-weight:750;
  text-transform:uppercase;
  text-align:left;
  white-space:normal;
  overflow-wrap:normal;
  text-shadow:0 1px 6px rgba(0,0,0,.55);
  pointer-events:none;
}
/* O contador de cajado/soco usa dois SVGs: o texto inicia após ambos. */
.sf-stat-icon-group + .sf-stat-short{
  left:calc(50% + 31px);
  width:clamp(70px,5.5vw,96px);
}
.sf-spells-total{min-width:0;width:94px}
.sf-spells-total-top{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:40px;
  gap:0;
}
.sf-spells-total strong{margin:0;text-align:center;align-self:center}
.sf-spells-total .sf-stat-short{
  left:calc(50% + 22px);
  width:57px;
  font-size:9px;
  line-height:1.1;
  letter-spacing:.025em;
}
.sf-spells-total small{display:none}
@media(max-width:940px){
  .sf-stat-short{width:clamp(70px,11vw,110px);font-size:9px;letter-spacing:.02em}
}
@media(max-width:540px){
  .sf-stat-short{left:calc(50% + 17px);width:clamp(68px,19vw,100px);font-size:8.5px}
  .sf-spells-total .sf-stat-short{left:calc(50% + 18px);width:52px;font-size:8px}
  .sf-spells-total-top{height:32px}
}


/* v17: desloca o conjunto de estatisticas para a margem esquerda do titulo,
   mantendo a grade, os centros dos icones e os numeros intactos. */
.sf-world-stats{
  position:relative;
  left:-56px;
}
@media(max-width:540px){
  .sf-world-stats{left:-58px}
}


/* v19 — Total de magias integrado à primeira coluna do grimório.
   O ícone fica à direita da sua faixa; a legenda fica à esquerda, sem
   reservar largura adicional. O número fica ancorado no centro do pote,
   expandindo para a esquerda quando receber mais dígitos. */
.sf-magic-group{
  width:min(100%,793px);
  grid-template-columns:60px minmax(0,730px);
  gap:3px;
}
.sf-spells-total{
  width:60px;
  min-width:0;
  align-items:flex-end;
  text-align:right;
}
.sf-spells-total-top{
  align-self:flex-end;
  width:40px;
  min-width:40px;
  height:40px;
  flex:0 0 40px;
  justify-content:flex-end;
}
.sf-spells-total .sf-stat-short{
  left:auto;
  right:calc(100% + 8px);
  width:84px;
  text-align:right;
  margin:0;
  font-size:9px;
}
.sf-spells-total strong{
  width:max-content;
  max-width:none;
  align-self:flex-end;
  margin:0 15px 0 0;
  padding:0;
  text-align:right;
  white-space:nowrap;
}
@media(max-width:900px){
  .sf-magic-group{
    width:min(100%,793px);
    grid-template-columns:60px minmax(0,1fr);
    gap:3px;
  }
  .sf-spells-total{width:60px}
}
@media(max-width:540px){
  .sf-magic-group{grid-template-columns:55px minmax(0,1fr);gap:3px}
  .sf-spells-total{width:55px}
  .sf-spells-total-top{width:32px;min-width:32px;height:32px;flex-basis:32px}
  .sf-spells-total strong{margin-right:11px;font-size:11px}
  /* Em telas muito estreitas, evita deixar a legenda fora da tela. */
  .sf-spells-total .sf-stat-short{
    left:auto;
    right:0;
    top:-8px;
    transform:translateY(-100%);
    width:67px;
    text-align:right;
    font-size:8px;
  }
}


/* v20 — Reordena as estatisticas no HTML mantendo o grid original.
   Nome da primeira estatistica numa linha; rotulo do total magico
   mais proximo dos icones, com o contador crescendo para a esquerda. */
@media (min-width:761px){
  .sf-world-stat[data-sf-info-title="Inimigos derrotados"] .sf-stat-short{
    white-space:nowrap;
    width:max-content;
  }
}
@media (min-width:901px){
  .sf-spells-total{
    position:relative;
    left:14px;
  }
}
@media (min-width:541px) and (max-width:900px){
  .sf-spells-total{
    position:relative;
    left:8px;
  }
}
/* A ancora direita do numero continua fixa: mais digitos ocupam a esquerda. */
.sf-spells-total strong{
  width:max-content;
  text-align:right;
  white-space:nowrap;
}
/* Rótulo completo em uma linha, sem tocar no icone do segundo contador. */
@media (min-width:761px){
  .sf-world-stat[data-sf-info-title="Inimigos derrotados"] .sf-stat-short{
    left:calc(50% + 14px);
    font-size:clamp(8px,.56vw,9px);
    letter-spacing:0;
  }
}


/* v22 — atualização sutil do número, sem mover ícone, texto ou grade.
   A classe só é aplicada pelo JavaScript quando o valor aumenta. */
.sf-world-stat strong.sf-stat-increased,
.sf-spells-total strong.sf-stat-increased,
.sf-preview-spell strong.sf-stat-increased {
  animation: sf-count-glow 1150ms ease-out 1;
}
@keyframes sf-count-glow {
  0% { filter: brightness(1); }
  27% {
    color: #ffe4a0;
    filter: brightness(1.22);
    text-shadow: 0 0 7px rgba(255,217,135,.80), 0 0 18px rgba(232,163,61,.48);
  }
  100% { filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sf-world-stat strong.sf-stat-increased,
  .sf-spells-total strong.sf-stat-increased,
  .sf-preview-spell strong.sf-stat-increased { animation: none !important; }
}


/* v24 - mesmo brilho dos contadores globais no total de jogadores online.
   Mantém o tamanho original, sem janela de rolagem ou mudança de layout. */
.sf-online-totem #sfOnlineHero.sf-stat-increased {
  animation: sf-count-glow 1150ms ease-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .sf-online-totem #sfOnlineHero.sf-stat-increased { animation: none !important; }
}


/* v25 — Grimorio compacto: icone a esquerda, usos a direita.
   Seis colunas por quatro linhas no desktop, mantendo os mesmos SVG/BMPs,
   a atualizacao no proprio elemento e os efeitos de crescimento do total. */
.sf-magic-group{
  width:min(100%,697px);
  grid-template-columns:60px minmax(0,634px);
  gap:3px;
}
.sf-spell-dock{
  width:100%;
  max-width:634px;
}
.sf-spell-preview{
  display:grid;
  grid-template-columns:repeat(6,99px);
  grid-auto-flow:row;
  gap:5px 8px;
  width:max-content;
  max-width:100%;
  padding:2px 0 3px;
  justify-content:end;
  align-content:end;
  overflow-x:visible;
  overflow-y:visible;
}
.sf-preview-spell{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  width:99px;
  min-width:0;
  height:30px;
  min-height:30px;
  padding:0;
  text-align:left;
}
.sf-preview-spell .sf-spell-icon{
  flex:0 0 28px;
  width:28px;
  height:28px;
  min-width:28px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.sf-preview-spell .sf-spell-icon img{
  max-width:26px;
  max-height:26px;
  object-fit:contain;
}
.sf-preview-spell strong{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  font-family:"Arial Narrow","Liberation Sans Narrow",Arial,sans-serif;
  font-size:16px;
  line-height:1;
  letter-spacing:-.12px;
  font-weight:750;
  color:#f4dfb8;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:left;
}
/* Pote segue integrado ao lado dos feitiços, na altura do centro da nova grade. */
.sf-spells-total{
  height:140px;
  margin-bottom:3px;
  justify-content:center;
}
@media (max-width:1540px){
  .sf-magic-group{width:min(100%,697px)}
}
@media (max-width:900px){
  .sf-magic-group{grid-template-columns:60px minmax(0,1fr)}
  .sf-spell-dock{width:100%;max-width:634px}
  .sf-spell-preview{width:max-content;max-width:100%;justify-content:start}
}
@media (max-width:720px){
  .sf-spell-preview{grid-template-columns:repeat(4,99px)}
  .sf-magic-group{width:min(100%,463px)}
  .sf-spells-total{height:205px}
}
@media (max-width:500px){
  .sf-spell-preview{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px 5px}
  .sf-preview-spell{width:100%;gap:4px;min-width:0}
  .sf-preview-spell .sf-spell-icon{flex-basis:24px;width:24px;min-width:24px;height:24px}
  .sf-preview-spell .sf-spell-icon img{max-width:23px;max-height:23px}
  .sf-preview-spell strong{font-size:11px;letter-spacing:-.25px}
  .sf-spells-total{height:254px}
}
@media (max-width:380px){
  .sf-preview-spell strong{font-size:10px}
}
@media (max-width:340px){
  .sf-preview-spell strong{font-size:9px;letter-spacing:-.4px}
}

/* v26 — refinamento do grimório compacto (sem alterar lógica de dados).
   Separa visualmente o pote da primeira magia e aproxima as seis colunas,
   mantendo os valores à direita dos ícones e o bloco alinhado à direita. */
.sf-magic-group{
  width:min(100%,643px);
  grid-template-columns:60px minmax(0,565px);
  gap:18px;
}
.sf-spells-total{
  left:0;
}
.sf-spell-dock{
  width:100%;
  max-width:565px;
}
.sf-spell-preview{
  grid-template-columns:repeat(6,90px);
  column-gap:5px;
  row-gap:6px;
}
.sf-preview-spell{
  width:90px;
  gap:3px;
}
@media(max-width:900px){
  .sf-magic-group{
    width:min(100%,643px);
    grid-template-columns:60px minmax(0,1fr);
    gap:14px;
  }
  .sf-spells-total{left:0}
  .sf-spell-dock{max-width:565px}
}
@media(max-width:720px){
  .sf-magic-group{width:min(100%,440px)}
  .sf-spell-preview{grid-template-columns:repeat(4,90px)}
}
@media(max-width:500px){
  .sf-magic-group{
    width:100%;
    grid-template-columns:55px minmax(0,1fr);
    gap:10px;
  }
  .sf-spell-preview{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;column-gap:5px}
  .sf-preview-spell{width:100%}
}


/* v27 — 22 magias mais compactas: até 99.999 usos legíveis lado a lado.
   Só altera dimensões do grimório; mantém números reais sem truncar dados. */
.sf-magic-group{
  width:min(100%,548px);
  grid-template-columns:60px minmax(0,470px);
  gap:18px;
}
.sf-spell-dock{max-width:470px}
.sf-spell-preview{
  grid-template-columns:repeat(6,75px);
  column-gap:4px;
}
.sf-preview-spell{width:75px}
@media(max-width:900px){
  .sf-magic-group{
    width:min(100%,548px);
    grid-template-columns:60px minmax(0,1fr);
    gap:14px;
  }
  .sf-spell-dock{max-width:470px}
}
@media(max-width:720px){
  .sf-magic-group{width:min(100%,390px)}
  .sf-spell-preview{grid-template-columns:repeat(4,75px)}
}
@media(max-width:500px){
  .sf-magic-group{width:100%;grid-template-columns:55px minmax(0,1fr);gap:10px}
  .sf-spell-preview{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;column-gap:5px}
  .sf-preview-spell{width:100%}
}


/* v28 — moldura dourada sutil para as estatísticas e magias.
   Desenhada como camada decorativa: não altera a grade nem as posições. */
.sf-scene-lower {
  position:relative;
  isolation:isolate;
}
.sf-scene-lower::before {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  top:-13px;
  right:10px;
  bottom:7px;
  left:10px;
  border:1px solid rgba(220,176,104,.30);
  border-radius:7px;
  background:linear-gradient(180deg,rgba(8,12,12,.09),rgba(6,10,11,.20));
  box-shadow:inset 0 1px 0 rgba(247,213,155,.045),0 4px 18px rgba(0,0,0,.085);
}
@media (max-width:540px) {
  .sf-scene-lower::before {
    left:7px;
    right:7px;
    top:-10px;
    bottom:6px;
    border-color:rgba(220,176,104,.25);
  }
}


/* v29 — Ações independentes, fora da moldura, e conteúdo mais compacto.
   A grade, os números e o ranking continuam com os mesmos dados. */
.sf-scene-lower{position:relative}
.sf-scene-actions{
  position:absolute;
  z-index:5;
  top:-56px;
  right:clamp(20px,2vw,36px);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.sf-scene-actions .sf-gold-button,
.sf-lobby-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:9px 14px;
  border-radius:2px;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  transition:filter .16s ease,border-color .16s ease,background .16s ease;
}
.sf-lobby-download{
  color:#e4c38a;
  background:rgba(12,17,17,.75);
  border:1px solid rgba(230,185,112,.55);
  box-shadow:0 5px 18px rgba(0,0,0,.16);
}
.sf-lobby-download:hover{
  background:rgba(55,46,32,.8);
  border-color:rgba(249,206,133,.9);
}
.sf-lobby-download:focus-visible{outline:2px solid #e7bd77;outline-offset:3px}
.sf-lobby-download span{margin-left:10px}
/* A folga criada pelo antigo botão no grimório foi removida. */
.sf-spell-dock{gap:0}
.sf-spell-preview{align-content:end}
/* Em telas largas: aproxima a borda dos dados e libera espaço para os botões fora dela. */
@media(min-width:1541px){
  .sf-scene-top{min-height:270px}
}
/* Cantos dourados muito discretos, sem interferir com os ícones. */
.sf-scene-lower::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  top:-13px;
  bottom:7px;
  left:10px;
  right:10px;
  border-radius:7px;
  background:
    linear-gradient(#d8b478,#d8b478) left 8px top 0 / 15px 1px no-repeat,
    linear-gradient(#d8b478,#d8b478) left 0 top 8px / 1px 15px no-repeat,
    linear-gradient(#d8b478,#d8b478) right 8px top 0 / 15px 1px no-repeat,
    linear-gradient(#d8b478,#d8b478) right 0 top 8px / 1px 15px no-repeat,
    linear-gradient(#d8b478,#d8b478) left 8px bottom 0 / 15px 1px no-repeat,
    linear-gradient(#d8b478,#d8b478) left 0 bottom 8px / 1px 15px no-repeat,
    linear-gradient(#d8b478,#d8b478) right 8px bottom 0 / 15px 1px no-repeat,
    linear-gradient(#d8b478,#d8b478) right 0 bottom 8px / 1px 15px no-repeat;
  opacity:.65;
}
/* Até 1540px, os botões passam para uma linha própria antes da moldura
   para nunca se sobreporem ao painel de jogadores ou à arte do cabeçalho. */
@media(max-width:1540px){
  .sf-scene-actions{
    position:relative;
    top:auto;
    right:auto;
    grid-column:1/-1;
    grid-row:1;
    margin-bottom:12px;
    width:100%;
  }
  .sf-world-panel{grid-row:2}
  .sf-magic-group{grid-row:3}
  .sf-scene-lower::before,
  .sf-scene-lower::after{top:49px}
}
@media(max-width:540px){
  .sf-scene-actions{gap:7px;margin-bottom:12px}
  .sf-scene-actions .sf-gold-button,.sf-lobby-download{padding:9px 10px;font-size:10px}
  .sf-scene-lower::before,.sf-scene-lower::after{left:7px;right:7px;top:49px}
}
@media(prefers-reduced-motion:reduce){
  .sf-lobby-download,.sf-scene-actions .sf-gold-button{transition:none}
}


/* v31 — opcao 5 refinada: ganho flutuante (2s), sem alterar o layout.
   As estatisticas mantem o brilho dourado da v22 e os valores reais.
   O texto +N usa ::after e nao ocupa espaco no grid. */
.sf-world-stat strong,
.sf-spells-total strong,
.sf-preview-spell strong {
  position:relative;
}
.sf-world-stat strong.sf-gain-active::after,
.sf-spells-total strong.sf-gain-active::after,
.sf-preview-spell strong.sf-gain-active::after {
  content:attr(data-sf-gain);
  position:absolute;
  z-index:8;
  left:var(--sf-gain-x,100%);
  top:3px;
  display:block;
  width:max-content;
  max-width:none;
  pointer-events:none;
  white-space:nowrap;
  font:700 12px/1.1 Arial,sans-serif;
  color:#a3efad;
  text-shadow:0 0 10px rgba(104,244,132,.38),0 1px 5px #07110a;
  opacity:0;
  transform-origin:left center;
  animation:
    sf-gain-rise 2000ms linear both,
    sf-gain-opacity 2000ms linear both,
    sf-gain-pop 360ms ease-out both;
}
/* O ranking compacto recebe a mesma subida, mas com o +N menor. */
.sf-preview-spell strong.sf-gain-active::after {
  top:0;
  font-size:9px;
  text-shadow:0 0 7px rgba(104,244,132,.35),0 1px 3px #07110a;
}
.sf-spells-total strong.sf-gain-active::after {font-size:11px}
@keyframes sf-gain-rise {
  0% {transform:translateY(9px)}
  100% {transform:translateY(-29px)}
}
@keyframes sf-gain-opacity {
  0% {opacity:0}
  12% {opacity:1}
  60% {opacity:1}
  100% {opacity:0}
}
@keyframes sf-gain-pop {
  0% {scale:.82}
  65% {scale:1.09}
  100% {scale:1}
}
@media (prefers-reduced-motion:reduce) {
  .sf-world-stat strong.sf-gain-active::after,
  .sf-spells-total strong.sf-gain-active::after,
  .sf-preview-spell strong.sf-gain-active::after {
    animation:none!important;
    content:none;
  }
}


/* ===============================================================
   v32 · Ficha de aventureiro redesenhada (experimental)
   Não altera o painel superior, cards, histórico, nem a API.
   Equipamentos e magias são páginas informativas "Em breve".
   =============================================================== */
#sfModal .sf-dialog--player{
  width:min(1080px,100%);
  max-height:min(93vh,980px);
  padding:0;
  border:1px solid rgba(224,177,107,.55);
  background:linear-gradient(140deg,#141e23 0%,#0c1419 75%);
  box-shadow:0 30px 95px rgba(0,0,0,.78), inset 0 0 0 1px rgba(246,211,148,.07);
  scrollbar-width:thin;
  scrollbar-color:rgba(205,157,90,.6) #111b1c;
}
#sfModal .sf-dialog--player::before,
#sfModal .sf-dialog--player::after{z-index:3;width:30px;height:30px;border-color:#d0a363}
#sfModal .sf-close{top:16px;right:17px;width:35px;height:35px;background:rgba(43,40,35,.86);border-color:rgba(205,166,102,.55)}
#sfModal .sf-close:hover{background:#594329}
#sfModalBody{min-width:0}
.sf-profile-v32{color:#eee2d0;font-family:Inter,"Segoe UI",Arial,sans-serif}
.sf-profile-header{
  position:relative;
  padding:24px 70px 21px 29px;
  border-bottom:1px solid rgba(210,173,109,.27);
  background:radial-gradient(ellipse 55% 110% at 20% 10%,rgba(140,107,61,.22),transparent),linear-gradient(110deg,#1c2830,#111b20);
}
.sf-profile-header>.sf-chapter-index{letter-spacing:.2em;font-size:10px}
.sf-profile-identity{display:flex;align-items:center;gap:18px;margin-top:16px;min-width:0}
.sf-profile-crest{
  flex:0 0 77px;width:77px;height:77px;display:grid;place-items:center;position:relative;
  border:1px solid rgba(235,193,120,.62);
  color:#f1ce95;
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  background:linear-gradient(125deg,#55432b,#26312e);
  box-shadow:inset 0 0 20px rgba(0,0,0,.32);
}
.sf-profile-class-icon{display:block;width:47px;height:47px;filter:drop-shadow(0 1px 5px rgba(220,171,101,.22))}
.sf-profile-crest i{position:absolute;right:8px;bottom:8px;width:9px;height:9px;border-radius:50%;background:#797c76;border:1px solid #27352c}
.sf-profile-crest i.is-online{background:#7ade9e;box-shadow:0 0 9px rgba(113,215,145,.8)}
.sf-profile-title{flex:1;min-width:0}
.sf-profile-title h2{margin:0;font:400 clamp(29px,3vw,43px)/1.1 Georgia,"Times New Roman",serif;color:#f7ead6;overflow-wrap:anywhere}
.sf-profile-class{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px;color:#c5bbad;font-size:14px}
.sf-profile-class strong{font-size:14px;font-weight:650;color:#f2cc8c}
.sf-profile-dot{color:#b59059;font-size:11px}
.sf-profile-availability{padding:9px 13px;border:1px solid rgba(189,180,163,.32);color:#bfc0b9;font-size:10px;font-weight:800;letter-spacing:.09em;white-space:nowrap;background:rgba(9,16,17,.45)}
.sf-profile-availability.is-online{color:#91e2ab;border-color:rgba(96,180,129,.49);background:rgba(21,59,38,.33)}
.sf-profile-location{display:flex;gap:9px;align-items:center;margin:14px 0 0 95px;font-size:12px;color:#b5c5bf}
.sf-profile-location span{color:#d5af7a;font-size:16px}
.sf-profile-last-seen{margin:8px 0 0 95px;color:#a8afa8;font-size:11px}
.sf-profile-tabs{display:flex;align-items:stretch;gap:0;padding:0 27px;border-bottom:1px solid rgba(210,173,109,.22);background:#101a1e}
.sf-profile-tab{display:flex;align-items:center;gap:9px;min-height:50px;padding:12px 18px;border:0;border-bottom:2px solid transparent;color:#a9b5ae;background:transparent;font-size:11px;font-weight:750;letter-spacing:.02em;text-align:left}
.sf-profile-tab>span{font-size:16px;color:#c3a16b}
.sf-profile-tab small{margin-left:5px;color:#a39071;font-size:8px;font-weight:750;letter-spacing:.04em;white-space:nowrap}
.sf-profile-tab.is-active{color:#ffe4bb;border-color:#ddb374;background:linear-gradient(0deg,rgba(124,88,39,.23),transparent)}
.sf-profile-tab:hover{color:#f2d9b4;background:rgba(128,99,55,.13)}
.sf-profile-panel{padding:21px 26px 27px}
.sf-profile-main-content{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(235px,.8fr);gap:16px;align-items:stretch}
.sf-profile-status{min-width:0;padding:20px 21px;border:1px solid rgba(221,183,121,.25);background:linear-gradient(150deg,rgba(13,23,28,.95),rgba(9,18,22,.88))}
.sf-profile-panel-caption{display:flex;align-items:end;justify-content:space-between;gap:13px;flex-wrap:wrap;border-bottom:1px solid rgba(216,179,113,.24);padding-bottom:15px}
.sf-profile-panel-caption .sf-chapter-index{font-size:9px;letter-spacing:.15em}
.sf-profile-panel-caption h3{font:400 25px/1.15 Georgia,serif;color:#f1dfc1;margin:6px 0 0}
.sf-profile-panel-caption>small{font-size:9px;color:#899f9a;letter-spacing:.1em;white-space:nowrap}
.sf-profile-vitals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0 18px}
.sf-profile-vital{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid rgba(177,138,79,.30);background:rgba(24,36,39,.76);min-width:0}
.sf-profile-vital-icon{flex:0 0 43px;width:43px;height:43px;display:grid;place-items:center;font:28px Georgia,serif;border:1px solid rgba(218,183,127,.25);color:#e9777c;background:#2a1c21;text-shadow:0 0 10px rgba(195,59,69,.24)}
.sf-profile-vital.is-mp .sf-profile-vital-icon{background:#192c3b;color:#89bfe8;text-shadow:0 0 10px rgba(54,151,218,.25)}
.sf-profile-vital-info{display:grid;gap:6px;min-width:0;flex:1}
.sf-profile-vital-info>span{font-size:12px;font-weight:700;color:#e5d8c4}
.sf-profile-vital-info small{font-weight:450;color:#91a59d}
.sf-profile-vital-info strong{font:400 clamp(21px,2vw,27px)/1 Georgia,serif;color:#fff0d7;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sf-profile-attributes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.sf-profile-attr-group{min-width:0}
.sf-profile-group-heading{font-size:10px;font-weight:800;letter-spacing:.11em;color:#deb780;padding:0 0 9px;border-bottom:1px solid rgba(210,175,108,.28)}
.sf-profile-attribute{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 2px;border-bottom:1px solid rgba(181,171,148,.12)}
.sf-profile-attr-group>.sf-profile-attribute:last-child{border-bottom:0}
.sf-profile-attr-icon{display:inline-grid;place-items:center;width:23px;flex:0 0 23px;color:#ccae7e;font:18px Georgia,serif}
.sf-profile-attr-label{color:#afbcb4;font-size:11px;line-height:1.25;min-width:0;flex:1}
.sf-profile-attribute strong{color:#e9dfd1;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.sf-profile-movement{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;border-top:1px solid rgba(220,178,109,.24);margin-top:11px}
.sf-profile-movement-heading{grid-column:1/-1;color:#d4ad74;font-size:10px;font-weight:800;letter-spacing:.11em;padding-top:15px}
.sf-profile-disclaimer{margin-top:16px;color:#85978f;font-size:10px;line-height:1.6}
.sf-profile-side{min-width:0;display:flex;flex-direction:column;gap:10px}
.sf-profile-kills{padding:19px;border:1px solid rgba(213,177,108,.43);background:radial-gradient(ellipse at 100% 0%,rgba(168,114,47,.18),transparent),#1d2422}
.sf-profile-kills-heading{display:flex;align-items:center;gap:11px;font-size:10px;font-weight:800;letter-spacing:.1em;color:#d8bb8c}
.sf-profile-kills-heading img{width:27px;height:27px;object-fit:contain;filter:sepia(.7) saturate(.9)}
.sf-profile-kills strong{display:block;font:400 42px/1.1 Georgia,serif;color:#fae0b7;margin-top:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sf-profile-kills>small{display:block;margin-top:7px;color:#acb2a8;font-size:10px}
.sf-profile-next-label{font-size:9px;font-weight:800;letter-spacing:.14em;color:#ab916c;margin:11px 0 2px}
.sf-profile-coming{display:flex;align-items:center;gap:10px;width:100%;min-height:79px;padding:12px;color:#d5c7b0;text-align:left;border:1px solid rgba(201,163,105,.28);background:linear-gradient(120deg,#1b2829,#131c20);opacity:.88}
.sf-profile-coming:hover{opacity:1;border-color:rgba(233,187,115,.65);background:#263130}
.sf-profile-coming-symbol{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;font:22px Georgia,serif;background:#2b2a23;border:1px solid #816a49;color:#d9ad75}
.sf-profile-coming-text{display:grid;gap:5px;min-width:0;flex:1}
.sf-profile-coming-text strong{color:#e9d9c1;font-size:12px;font-weight:750}
.sf-profile-coming-text small{color:#99a7a0;font-size:9px;line-height:1.4}
.sf-profile-coming-lock{font-size:9px;font-weight:800;color:#c4a072;white-space:nowrap}
.sf-profile-side-tip{margin-top:auto;padding:11px 0;font-size:10px;color:#87968d;line-height:1.6}
.sf-profile-pending{min-height:395px;border:1px solid rgba(215,175,110,.25);background:radial-gradient(ellipse at center,rgba(122,97,58,.12),transparent 55%),#0c171b;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 20px}
.sf-profile-pending-icon{display:grid;place-items:center;width:72px;height:72px;font:40px Georgia,serif;color:#dcb477;border:1px solid rgba(222,184,118,.44);background:rgba(59,53,40,.56);margin-bottom:20px}
.sf-profile-pending h3{font:400 32px Georgia,serif;color:#f2dfc4;margin:12px 0 8px}
.sf-profile-pending p{max-width:460px;color:#aab8af;font-size:12px;line-height:1.7}
.sf-profile-pending-label{display:inline-block;color:#d9b780;border:1px solid rgba(220,181,111,.44);font-weight:750;font-size:10px;letter-spacing:.12em;padding:8px 12px;margin-top:14px}
.sf-profile-back{color:#d8bd93;border:0;background:transparent;padding:10px 12px;margin-top:15px;font-size:11px;font-weight:700}
.sf-profile-back:hover{text-decoration:underline}
@media(max-width:860px){
  .sf-profile-main-content{grid-template-columns:1fr}
  .sf-profile-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sf-profile-kills{grid-column:1/-1}
  .sf-profile-kills strong{font-size:32px;margin-top:6px}
  .sf-profile-next-label{grid-column:1/-1;margin:3px 0 0}
  .sf-profile-side-tip{grid-column:1/-1;margin:0}
}
@media(max-width:620px){
  #sfModal .sf-dialog--player{max-height:93dvh}
  .sf-profile-header{padding:22px 50px 19px 17px}
  .sf-profile-crest{width:57px;height:57px;flex-basis:57px}
  .sf-profile-class-icon{width:36px;height:36px}
  .sf-profile-identity{gap:11px;flex-wrap:wrap}
  .sf-profile-title h2{font-size:clamp(25px,6vw,35px)}
  .sf-profile-availability{font-size:9px;padding:7px 9px}
  .sf-profile-location,.sf-profile-last-seen{margin-left:0}
  .sf-profile-tabs{padding:0 8px}
  .sf-profile-tab{padding:12px 10px;min-height:48px;font-size:10px;gap:5px;flex:1;justify-content:center;flex-wrap:wrap}
  .sf-profile-tab small{font-size:8px}
  .sf-profile-panel{padding:12px}
  .sf-profile-status{padding:14px}
  .sf-profile-panel-caption h3{font-size:23px}
  .sf-profile-vitals{gap:8px}
  .sf-profile-vital{padding:9px;gap:7px}
  .sf-profile-vital-icon{width:32px;height:36px;flex-basis:32px;font-size:21px}
  .sf-profile-vital-info strong{font-size:22px}
  .sf-profile-attributes{gap:12px}
  .sf-profile-attr-label{font-size:10px}
  .sf-profile-attribute strong{font-size:12px}
  .sf-profile-attr-icon{width:16px;flex-basis:16px;font-size:15px}
  .sf-profile-movement{gap:0 12px}
  .sf-profile-side{grid-template-columns:1fr}
  .sf-profile-kills{grid-column:auto}
  .sf-profile-next-label,.sf-profile-side-tip{grid-column:auto}
  .sf-profile-coming{min-height:66px}
  .sf-profile-pending{min-height:320px}
}
@media(max-width:385px){
  .sf-profile-attributes{grid-template-columns:1fr}
  .sf-profile-vital-info strong{font-size:19px}
  .sf-profile-crest{width:49px;height:49px;flex-basis:49px}
  .sf-profile-class-icon{width:31px;height:31px}
}
@media(prefers-reduced-motion:reduce){
 .sf-profile-coming{transition:none}
}


/* ===============================================================
   v33 · Expedições e últimos aventureiros (experimental)
   Escopo: somente a área .sf-hall. A ficha v32 é mantida intacta.
   =============================================================== */
.sf-hall{padding-top:38px;padding-bottom:54px;background:linear-gradient(180deg,rgba(10,15,17,.28),transparent 130px)}
.sf-hall-head{padding-bottom:20px;border-bottom:1px solid rgba(226,180,108,.19);gap:20px;align-items:center}
.sf-hall .sf-hall-head h2{font:400 clamp(28px,2.9vw,40px)/1.12 Georgia,"Times New Roman",serif;margin:8px 0 0;color:#f4e7d3}
.sf-hall-lede{font-size:12px;line-height:1.6;color:#9aa9a3;margin:9px 0 0}
.sf-hall .sf-search{background:rgba(16,25,29,.88);border-color:rgba(217,174,106,.32)}
.sf-hall .sf-search:focus-within{border-color:#e6bd81}
.sf-exp-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:27px}
.sf-exp-section-head h3,.sf-hall .sf-history-head h3{font:400 clamp(20px,1.75vw,26px)/1.15 Georgia,"Times New Roman",serif;color:#f0e1cc;margin:8px 0 0}
.sf-exp-head-note{display:flex;align-items:center;gap:8px;font-size:10px;color:#97cda8;letter-spacing:.045em;padding-bottom:4px}
.sf-exp-head-note .sf-pulse{height:6px;width:6px}
.sf-online-grid.sf-expedition-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin-top:15px}
.sf-history-head{margin-top:31px;padding-bottom:13px;border-bottom:0}
.sf-history-list.sf-expedition-history{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;background:transparent}
.sf-history-toggle{border-color:rgba(208,169,110,.37);background:rgba(33,35,28,.68)}
.sf-expedition-row{position:relative;display:grid;align-items:center;text-align:left;width:100%;min-width:0;color:#ece1d0;transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.sf-expedition-row:focus-visible{outline:2px solid #e7bd77;outline-offset:2px}
.sf-expedition-row--online{grid-template-columns:minmax(225px,1.45fr) minmax(190px,1.05fr) minmax(74px,.4fr) minmax(165px,.77fr) auto;gap:clamp(10px,2vw,26px);min-height:105px;padding:16px clamp(16px,1.5vw,25px);background:radial-gradient(ellipse at 0% 25%,rgba(97,140,96,.13),transparent 50%),linear-gradient(110deg,#1b292c,#10191c);border:1px solid rgba(126,170,134,.38);border-left:3px solid #6fb489}
.sf-expedition-row--online:hover{background:linear-gradient(110deg,#263536,#151e20);border-color:rgba(230,187,112,.68);border-left-color:#8de0a5;transform:translateY(-1px);box-shadow:0 11px 20px rgba(0,0,0,.15)}
.sf-expedition-row--history{grid-template-columns:minmax(220px,1.38fr) minmax(175px,1fr) minmax(60px,.35fr) minmax(155px,.8fr) minmax(143px,.72fr) 17px;gap:clamp(10px,1.5vw,23px);min-height:75px;padding:12px clamp(14px,1.3vw,22px);background:linear-gradient(115deg,#172023,#121a1d);border:1px solid rgba(133,139,119,.16);border-left:2px solid rgba(187,150,90,.45)}
.sf-expedition-row--history:hover{border-color:rgba(219,176,109,.52);border-left-color:#dcb475;background:linear-gradient(115deg,#222a29,#171f20)}
.sf-exp-identity{display:flex;align-items:center;gap:13px;min-width:0}
.sf-exp-avatar{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;position:relative;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);border:1px solid rgba(208,166,104,.55);background:linear-gradient(137deg,#55432d,#24312e);color:#eac795}
.sf-exp-avatar .sf-profile-class-icon{width:30px;height:30px;filter:drop-shadow(0 1px 4px rgba(225,174,96,.28))}
.sf-exp-avatar>i{position:absolute;bottom:4px;right:5px;width:8px;height:8px;background:#777e79;border:1px solid #202b29;border-radius:50%}
.sf-exp-avatar.is-online>i{background:#7ee6a3;box-shadow:0 0 8px rgba(112,226,156,.65)}
.sf-expedition-row--history .sf-exp-avatar{flex-basis:42px;width:42px;height:42px;clip-path:none;background:linear-gradient(135deg,#38392d,#232b29);color:#c7b18a;border-color:rgba(195,159,107,.33)}
.sf-expedition-row--history .sf-exp-avatar .sf-profile-class-icon{width:24px;height:24px}
.sf-expedition-row--history .sf-exp-avatar>i{display:none}
.sf-exp-person{min-width:0;display:flex;flex-direction:column;gap:4px}
.sf-exp-person>strong{font:400 clamp(17px,1.7vw,23px)/1.14 Georgia,"Times New Roman",serif;color:#f7e8d4;white-space:normal;overflow-wrap:anywhere}
.sf-exp-person>small{font-size:11px;color:#d4ab74}
.sf-exp-online-label{display:flex;align-items:center;gap:7px;color:#98dbad;font-size:9px;font-weight:750;letter-spacing:.06em;margin-top:2px}
.sf-exp-online-label .sf-pulse{width:5px;height:5px}
.sf-expedition-row--history .sf-exp-person>strong{font:650 13px/1.2 Inter,"Segoe UI",Arial,sans-serif;color:#e7e0d5}
.sf-expedition-row--history .sf-exp-person>small{font-size:10px;color:#baa27e}
.sf-exp-location,.sf-exp-level,.sf-exp-when,.sf-exp-kills-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;min-width:0}
.sf-exp-location>small,.sf-exp-level>small,.sf-exp-when>small,.sf-exp-kills-text>small{font-size:9px;font-weight:750;letter-spacing:.09em;color:#82978f}
.sf-exp-location>strong{font-size:12px;font-weight:500;line-height:1.45;color:#d2d5c8;overflow-wrap:anywhere}
.sf-exp-location>strong>i{font-style:normal;color:#d1a46b;margin-right:5px}
.sf-exp-level>strong{font:400 25px/1 Georgia,serif;color:#f4d4a0;font-variant-numeric:tabular-nums}
.sf-exp-kills{display:flex;align-items:center;gap:10px;min-width:0}
.sf-exp-kills-symbol{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;color:#d4af77;font:23px/1 Georgia,serif}
.sf-exp-kills-symbol img{display:block;width:25px;height:25px;object-fit:contain;opacity:.78;filter:sepia(.55) saturate(.85)}
.sf-exp-kills-symbol>span{line-height:1}
.sf-exp-kills-text>small{line-height:1.3}
.sf-exp-kills-text>strong{font:400 19px/1 Georgia,serif;color:#ead7b7;font-variant-numeric:tabular-nums;white-space:nowrap}
.sf-exp-action{display:flex;gap:8px;align-items:center;justify-content:flex-end;color:#d5af78;white-space:nowrap;font-size:10px;font-weight:750;letter-spacing:.035em}
.sf-exp-action>span{font:23px/1 Georgia,serif;transition:transform .15s ease}
.sf-expedition-row:hover .sf-exp-action>span{transform:translateX(3px)}
.sf-exp-when>strong{font-size:11px;color:#a9b4aa;font-weight:500;line-height:1.4;white-space:nowrap}
.sf-expedition-row--history .sf-exp-level>strong{font-size:18px}
.sf-expedition-row--history .sf-exp-kills-symbol{width:19px;height:19px;flex-basis:19px;font-size:19px}
.sf-expedition-row--history .sf-exp-kills-symbol img{width:19px;height:19px}
.sf-expedition-row--history .sf-exp-kills-text>strong{font:600 13px Inter,"Segoe UI",Arial,sans-serif}
.sf-expedition-row--history .sf-exp-action{font:26px/1 Georgia,serif}
@media(max-width:1060px){
 .sf-expedition-row--online,.sf-expedition-row--history{grid-template-columns:minmax(190px,1.1fr) minmax(155px,1fr) 72px;gap:9px 15px}
 .sf-expedition-row--online .sf-exp-identity,.sf-expedition-row--history .sf-exp-identity{grid-column:1;grid-row:1}
 .sf-expedition-row--online .sf-exp-location,.sf-expedition-row--history .sf-exp-location{grid-column:2;grid-row:1}
 .sf-expedition-row--online .sf-exp-level,.sf-expedition-row--history .sf-exp-level{grid-column:3;grid-row:1;text-align:right;align-items:flex-end}
 .sf-expedition-row--online .sf-exp-kills,.sf-expedition-row--history .sf-exp-kills{grid-column:2;grid-row:2}
 .sf-expedition-row--online .sf-exp-action,.sf-expedition-row--history .sf-exp-action{grid-column:3;grid-row:2}
 .sf-expedition-row--history .sf-exp-when{grid-column:1;grid-row:2;padding-left:55px}
}
@media(max-width:640px){
 .sf-hall{padding-top:26px;padding-bottom:34px}
 .sf-hall-head{flex-direction:column;align-items:stretch;gap:14px}
 .sf-hall .sf-search{width:100%;max-width:none}
 .sf-hall .sf-hall-head h2{font-size:29px}
 .sf-exp-section-head{margin-top:23px}
 .sf-exp-section-head h3,.sf-hall .sf-history-head h3{font-size:21px}
 .sf-expedition-row--online,.sf-expedition-row--history{grid-template-columns:minmax(0,1fr) auto;padding:14px 12px;gap:9px 7px}
 .sf-expedition-row--online .sf-exp-identity,.sf-expedition-row--history .sf-exp-identity{grid-column:1;grid-row:1}
 .sf-expedition-row--online .sf-exp-level,.sf-expedition-row--history .sf-exp-level{grid-column:2;grid-row:1}
 .sf-expedition-row--online .sf-exp-location,.sf-expedition-row--history .sf-exp-location{grid-column:1/-1;grid-row:2;padding-left:60px}
 .sf-expedition-row--online .sf-exp-kills{grid-column:1;grid-row:3;padding-left:60px}
 .sf-expedition-row--online .sf-exp-action{grid-column:2;grid-row:3}
 .sf-expedition-row--history .sf-exp-when{grid-column:1/-1;grid-row:3;padding-left:55px}
 .sf-expedition-row--history .sf-exp-kills{grid-column:1;grid-row:4;padding-left:55px}
 .sf-expedition-row--history .sf-exp-action{grid-column:2;grid-row:4}
 .sf-exp-when>small,.sf-exp-location>small{display:none}
 .sf-exp-when>strong{white-space:normal}
 .sf-exp-location>strong{font-size:11px}
 .sf-exp-person>strong{font-size:19px}
 .sf-expedition-row--history .sf-exp-person>strong{font-size:13px}
 .sf-exp-level>strong{font-size:22px}
 .sf-exp-kills-text>small{font-size:8px}
 .sf-exp-action{font-size:9px}
 .sf-expedition-row--online{min-height:145px}
 .sf-expedition-row--history{min-height:116px}
}
@media(prefers-reduced-motion:reduce){.sf-expedition-row{transition:none}.sf-exp-action>span{transition:none}}

/* v35 · Partículas mágicas automáticas, sem painel de configurações público. */
.sf-magic-group{position:relative;isolation:isolate}
.sf-magic-fx-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible}


/* v36 — Centralização do frasco e do total geral de magias.
   Reservamos espaço para 999.999 sem deslocar o número em direção aos BMPs.
   O grupo continua ancorado à direita; o canvas acompanha a nova posição do frasco. */
.sf-magic-group{
  width:min(100%,572px);
  grid-template-columns:90px minmax(0,470px);
  gap:12px;
}
.sf-spells-total{
  position:relative;
  left:0;
  width:90px;
  min-width:0;
  height:100%;
  min-height:140px;
  margin:0;
  padding:0;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  text-align:center;
}
.sf-spells-total-top{
  align-self:center;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-width:0;
  height:44px;
  flex:0 0 44px;
}
.sf-spells-total-icon{width:40px;height:40px}
.sf-spells-total strong{
  box-sizing:border-box;
  display:block;
  align-self:stretch;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  font:600 16px/1.2 Georgia,"Times New Roman",serif;
  letter-spacing:-.35px;
  font-variant-numeric:tabular-nums;
  text-align:center;
  white-space:nowrap;
}
@media(max-width:900px){
  .sf-magic-group{width:min(100%,572px);grid-template-columns:90px minmax(0,1fr);gap:12px}
}
@media(max-width:720px){
  .sf-magic-group{width:min(100%,414px)}
}
@media(max-width:500px){
  .sf-magic-group{width:100%;grid-template-columns:78px minmax(0,1fr);gap:8px}
  .sf-spells-total{width:78px;min-height:0}
  .sf-spells-total-top{height:38px;flex-basis:38px}
  .sf-spells-total-icon{width:36px;height:36px}
  .sf-spells-total strong{font-size:clamp(12px,3.4vw,14px);letter-spacing:-.4px}
}

/* v37 — O frasco absorve a cor das partículas recebidas.
   O halo é desenhado atrás do SVG, sem mudar posição ou largura do total.
   Cor, escala e opacidade são atualizadas conjuntamente pelas chegadas de cada frame.
   Com magias simultâneas, as cores se misturam pelo peso de cada brilho. */
.sf-spells-total-top{position:relative;isolation:isolate;overflow:visible}
.sf-spells-total-top::before{
  content:"";
  position:absolute;
  z-index:0;
  left:50%;top:50%;
  width:72px;height:72px;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle,
    rgba(var(--sf-pot-rgb,95,214,255),.70) 0%,
    rgba(var(--sf-pot-rgb,95,214,255),.28) 38%,
    rgba(var(--sf-pot-rgb,95,214,255),0) 75%);
  filter:blur(6px);
  opacity:var(--sf-pot-power,0);
  transform:translate(-50%,-50%) scale(var(--sf-pot-scale,1));
  transition:opacity 130ms ease-out, transform 130ms ease-out;
}
.sf-spells-total-top .sf-spells-total-icon{
  position:relative;
  z-index:1;
  filter:drop-shadow(0 0 8px rgba(var(--sf-pot-rgb,95,214,255),var(--sf-pot-alpha,0)))
         drop-shadow(0 0 16px rgba(var(--sf-pot-rgb,95,214,255),var(--sf-pot-alpha2,0)));
  transform:scale(var(--sf-pot-scale,1));
  transition:filter 130ms ease-out,transform 130ms ease-out;
  will-change:filter,transform;
}
@media(max-width:500px){.sf-spells-total-top::before{width:62px;height:62px}}
@media(prefers-reduced-motion:reduce){
  .sf-spells-total-top::before{display:none!important}
  .sf-spells-total-top .sf-spells-total-icon{filter:none!important;transform:none!important;transition:none!important}
}


/* v38 — Efeitos personalizados nas 10 estatísticas globais.
   Camada totalmente visual: não altera grid, tamanho das marcas ou +N.
   Partículas desenhadas apenas durante aumentos dos valores reais. */
.sf-world-stats{position:relative;isolation:isolate}
.sf-global-fx-canvas{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:3;display:block;overflow:visible;
}
@media(prefers-reduced-motion:reduce){.sf-global-fx-canvas{display:none!important}}


/* v39 — Correção dos cortes no topo das estatísticas e do grimório.
   O bitmap do canvas agora é maior que a área das marcas.
   Ajustes de CSS sem deslocar ícones/números, com origem calculada pelo
   getBoundingClientRect() do canvas no JS. A sangria não participa do layout. */
.sf-global-fx-canvas{
  inset:-76px -34px -40px -34px;
  width:calc(100% + 68px);
  height:calc(100% + 116px);
}
.sf-magic-fx-canvas{
  inset:-76px -32px -42px -32px;
  width:calc(100% + 64px);
  height:calc(100% + 118px);
}
@media(max-width:640px){
  .sf-global-fx-canvas{
    inset:-68px -14px -32px -14px;
    width:calc(100% + 28px);height:calc(100% + 100px);
  }
  .sf-magic-fx-canvas{
    inset:-68px -14px -32px -14px;
    width:calc(100% + 28px);height:calc(100% + 100px);
  }
}


/* v40 — Totem "Jogadores Online": moldura vetorial inspirada na arte aprovada.
   A contagem continua no mesmo #sfOnlineHero e preserva o brilho de crescimento.
   Sem subtitulo redundante "Em aventura". Somente o componente foi redesenhado. */
.sf-online-totem.sf-online-totem--ornate{
  isolation:isolate;
  position:relative;
  width:210px;
  flex:0 0 210px;
  min-height:186px;
  height:186px;
  padding:25px 18px 22px;
  border:0;
  border-radius:0;
  clip-path:none;
  overflow:visible;
  background:none;
  box-shadow:none;
  align-self:flex-start;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.sf-online-totem--ornate::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:7px 3px;
  background:radial-gradient(ellipse 95% 70% at 50% 34%,rgba(88,73,41,.17),transparent 77%),
             linear-gradient(155deg,rgba(26,34,29,.96),rgba(7,12,12,.97));
  clip-path:polygon(8% 0,92% 0,100% 13%,100% 87%,92% 100%,8% 100%,0 87%,0 13%);
  box-shadow:inset 0 0 23px rgba(0,0,0,.75);
  pointer-events:none;
}
.sf-online-totem--ornate .sf-totem-frame{
  position:absolute;
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:visible;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.73));
}
.sf-online-totem--ornate .sf-totem-outline-shadow{fill:none;stroke:#382817;stroke-width:6;stroke-linejoin:round;opacity:.95}
.sf-online-totem--ornate .sf-totem-outline{fill:none;stroke:url(#sfTotemGoldV40);stroke-width:2.4;stroke-linejoin:round}
.sf-online-totem--ornate .sf-totem-outline-inner{fill:none;stroke:#d9a65e;stroke-width:.65;stroke-linejoin:round;opacity:.56}
.sf-online-totem--ornate .sf-totem-corner{fill:none;stroke:#efbd78;stroke-width:1.3;opacity:.6}
.sf-online-totem--ornate .sf-totem-diamond-outline{fill:#4d3014;stroke:#e4ad57;stroke-width:1.7}
.sf-online-totem--ornate .sf-totem-diamond-core{fill:url(#sfTotemDiamondV40);stroke:#fff2c5;stroke-width:.6}
.sf-online-totem--ornate .sf-totem-watermark{
  position:absolute;z-index:0;
  font:142px/1 Georgia,serif;
  color:rgba(196,146,70,.065);
  left:50%;top:49%;transform:translate(-50%,-50%);
  pointer-events:none;
}
.sf-online-totem--ornate .sf-totem-emblem{
  z-index:2;
  position:absolute;
  top:26px;left:21px;
  color:#f3c779;
  font:22px/1 Georgia,serif;
  text-shadow:0 0 11px rgba(241,185,84,.36);
}
.sf-online-totem--ornate .sf-totem-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  height:auto;
  position:relative;
  z-index:2;
  padding:17px 0 0;
  min-width:0;
}
.sf-online-totem--ornate #sfOnlineHero{
  display:block;
  color:#fff0d5;
  font:400 66px/.92 Georgia,"Times New Roman",serif;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
  text-shadow:0 0 16px rgba(231,180,89,.23),0 2px 2px rgba(0,0,0,.8);
  width:100%;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  text-align:center;
  margin:0;
}
.sf-online-totem--ornate .sf-totem-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  width:92%;
  height:9px;
  flex:0 0 9px;
}
.sf-online-totem--ornate .sf-totem-divider::before{
  content:"";
  display:block;
  height:1px;
  width:100%;
  background:linear-gradient(90deg,transparent,#86643c 18%,#e5b776 48%,#86643c 82%,transparent);
}
.sf-online-totem--ornate .sf-totem-divider i{
  position:absolute;
  width:7px;height:7px;
  border:1px solid #e7b870;
  background:#3d2c1a;
  transform:rotate(45deg);
  box-shadow:0 0 6px rgba(237,186,101,.25);
}
.sf-online-totem--ornate .sf-totem-label{
  display:block;
  max-width:100%;
  font:800 10px/1.3 Inter,"Segoe UI",Arial,sans-serif;
  letter-spacing:.13em;
  white-space:nowrap;
  color:#e7c491;
  text-shadow:0 1px 4px rgba(0,0,0,.9);
}
/* O ícone/vínculo de estado foi retirado somente deste cartão. */
.sf-online-totem--ornate .sf-totem-foot{display:none}
@media(max-width:940px){
  .sf-online-totem.sf-online-totem--ornate{width:175px;flex:0 0 175px;min-height:160px;height:160px;padding:23px 13px 16px}
  .sf-online-totem--ornate .sf-totem-body{gap:7px;padding-top:14px}
  .sf-online-totem--ornate #sfOnlineHero{font-size:55px}
  .sf-online-totem--ornate .sf-totem-label{font-size:8.6px;letter-spacing:.11em}
  .sf-online-totem--ornate .sf-totem-emblem{top:23px;left:17px;font-size:18px}
}
@media(max-width:540px){
  .sf-online-totem.sf-online-totem--ornate{
    align-self:flex-end;
    width:min(100%,225px);
    flex:0 0 auto;
    min-height:174px;
    height:174px;
    margin-left:auto;
    margin-right:0;
    padding:22px 15px 18px;
  }
  .sf-online-totem--ornate .sf-totem-body{display:flex;flex-direction:column;gap:8px;padding-top:14px}
  .sf-online-totem--ornate #sfOnlineHero{font-size:62px}
  .sf-online-totem--ornate .sf-totem-label{font-size:9.5px;letter-spacing:.12em;text-align:center}
}


/* v41 — Flor-de-lis e luzes persistentes por aventureiro online.
   Uma luz por registro, sem reiniciar nas consultas de 5 segundos. */
.sf-online-totem--ornate .sf-totem-emblem{
  top:22px;
  left:21px;
  display:grid;
  place-items:center;
  width:24px;
  height:30px;
  z-index:5;
}
.sf-online-totem--ornate .sf-totem-emblem svg{
  display:block;
  width:24px;
  height:29px;
  fill:#e6b76f;
  color:#ffe2a1;
  filter:drop-shadow(0 0 5px rgba(231,177,79,.38));
}
.sf-online-totem--ornate .sf-totem-watermark{
  font-size:110px;
  color:rgba(196,146,70,.045);
}
.sf-online-totem--ornate .sf-totem-orbs{
  position:absolute;
  z-index:2;
  left:11px;
  right:11px;
  top:17px;
  bottom:17px;
  width:calc(100% - 22px);
  height:calc(100% - 34px);
  pointer-events:none;
  opacity:.92;
}
.sf-online-totem--ornate .sf-totem-frame{z-index:4}
.sf-online-totem--ornate .sf-totem-body{z-index:3}
@media(max-width:940px){
  .sf-online-totem--ornate .sf-totem-emblem{top:20px;left:17px;width:21px;height:26px}
  .sf-online-totem--ornate .sf-totem-emblem svg{width:21px;height:25px}
}
@media(prefers-reduced-motion:reduce){
  .sf-online-totem--ornate .sf-totem-orbs{opacity:.7}
}

/* v42 — O simbolo no canto foi retirado do HTML; somente a flor-de-lis
   em marca-d'agua permanece, atras do contador. */

/* v43 — Movimentos de vaga-lumes com passeio, repouso e arrancadas aleatorias.
   A fisica das particulas mudou no JS; layout do cartao preservado. */
