/* SAFYRE_MULTIPAGE_V1: one visible destination at a time; original assets unchanged. */
.safyre-forest [data-safyre-inactive]{display:none!important}
.safyre-forest .smp-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px 15px;font-size:13px}
.safyre-forest .sf-header a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;color:#fff0b9!important}
.safyre-forest.sf-home .smp-mini{max-width:min(1100px,100%);margin:18px auto 12px!important;padding:14px 22px 12px!important;border-radius:22px!important;border:2px solid #ab885d!important;box-shadow:0 5px 0 #a58156,0 12px 24px #254a3333,inset 0 0 0 4px #fffaf0!important;background:linear-gradient(125deg,#fffdf4f9,#f9ebcffa)!important;overflow:visible}
.smp-mini .smp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.safyre-forest .smp-mini h2{margin:0;font-size:26px;color:#65432a;text-align:left}.smp-mini .smp-tabs{display:flex;flex-wrap:wrap;gap:6px}.smp-mini .smp-tabs button{font-size:12px;padding:5px 11px;background:#f2e6c9;color:#34533a;border-color:#cdb78d}.smp-mini .smp-tabs button[aria-pressed=true]{background:#4c8047;color:#fffaf0}.smp-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);align-items:center;gap:20px}.smp-short .smp-content{grid-template-columns:minmax(0,1fr)}.smp-podium{display:flex;align-items:end;justify-content:center;gap:10px;min-height:100px;padding:6px 2px}.smp-podium-card{display:grid;justify-items:center;gap:3px;text-align:center;min-width:0;width:31%;max-width:135px;border:1px solid #d5bc94;border-radius:18px 18px 11px 11px;padding:8px 4px 9px;background:linear-gradient(#fffdf5,#efe2c7);box-shadow:0 3px 0 #d1b98f}.smp-podium-card[data-place="1"]{order:2;transform:translateY(-4px);border:2px solid #d5aa52;background:linear-gradient(#fffdf0,#fce5a6);padding-top:13px}.smp-podium-card[data-place="2"]{order:1}.smp-podium-card[data-place="3"]{order:3}.smp-medal{border-radius:50%;display:grid;place-items:center;width:25px;height:25px;border:1px solid #bcb4a0;background:#e5e4dd;font-size:12px;font-weight:800;color:#494434}.smp-podium-card[data-place="1"] .smp-medal{background:#f9cc63;border-color:#b89043;color:#5e431c}.smp-podium-card[data-place="3"] .smp-medal{background:#e8bf9c;color:#67452f}.smp-podium-card strong{font-size:14px;max-width:100%;overflow-wrap:anywhere}.smp-podium-card small{font-size:12px}.smp-sprite{display:grid;place-items:center;flex:none}.smp-podium .smp-sprite{width:100%;height:90px}.smp-sprite img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.smp-no-art{color:#8a886b;font-size:24px}.smp-mini .smp-rest{min-width:0;overflow-x:auto}.smp-mini .smp-rest[hidden]{display:none!important}.smp-mini table{width:100%;border-collapse:separate;border-spacing:0;border-radius:12px;overflow:hidden;background:#fffaf0;border:1px solid #ddcaa6;font-size:12px;font-variant-numeric:tabular-nums}.smp-mini th,.smp-mini td{padding:2px 7px!important;text-align:left;vertical-align:middle;white-space:nowrap;border-color:#e2d3b8!important}.smp-mini th{background:#ecdfc1;color:#59452d;font-size:11px}.smp-mini tr:nth-child(even){background:#f4ead6}.smp-mini .smp-player{display:flex;align-items:center;gap:7px}.smp-mini .smp-player .smp-sprite{width:34px;height:30px}.smp-mini .smp-player span{overflow:hidden;text-overflow:ellipsis;max-width:145px}.smp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:9px}.smp-foot p{margin:0;font-size:11px;color:#647052}.smp-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-weight:700;font-size:13px;color:#fffdf0!important;background:linear-gradient(#63934e,#3f7046);border:1px solid #3d633d;border-radius:999px;padding:8px 14px;box-shadow:0 2px 0 #33543633}.smp-link:hover{filter:brightness(1.07)}
.safyre-forest.sf-home .smp-welcome{position:relative;text-align:center;max-width:740px;margin:17px auto 12px!important;padding:10px 18px 14px!important;background:transparent!important;border:none!important;box-shadow:none!important}.smp-welcome h1{font-family:Georgia,serif;color:#23583c!important;font-size:clamp(34px,4vw,48px)!important;line-height:1.04;margin:2px 0 9px!important;text-shadow:0 2px 0 #fffbe9,0 0 12px #fffbe9,0 0 25px #fffbe9}.smp-welcome .smp-kicker{font-family:Georgia,serif;font-size:20px;font-weight:700;color:#65432a;text-shadow:0 1px 1px #fffbe9,0 0 12px white;margin:0}.smp-welcome .smp-intro{font-size:15px;font-weight:600;line-height:1.4;color:#293c28!important;max-width:430px;margin:0 auto 12px!important;padding:6px 14px;background:#fff9e7d9;border-radius:12px}.smp-welcome .smp-link{padding:9px 20px;font-size:14px}.smp-quicklinks{max-width:1100px;margin:12px auto 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.smp-quicklinks a{display:flex;align-items:center;gap:13px;text-decoration:none!important;padding:12px 16px;color:#385338!important;background:linear-gradient(#fffdf1fa,#f6e9cefa);border:2px solid #c6ad80;border-radius:16px;box-shadow:0 4px 0 #b29a6f66}.smp-quicklinks strong{display:block;color:#65432a;font-family:Georgia,serif;font-size:20px}.smp-quicklinks small{display:block;font-size:12px;color:#465840}.smp-quicklinks .smp-symbol{display:grid;place-items:center;flex:none;width:45px;height:45px;border-radius:12px;background:#e5edcc;color:#38603b;font-size:23px}.smp-quicklinks .smp-arrow{margin-left:auto;font-size:20px;font-weight:bold;color:#4b7948}.smp-directory{max-width:1100px;margin:12px auto 18px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px;background:#fff9e9e8;border:1px solid #d0b58a;border-radius:14px}.smp-directory a{font-size:12px;font-weight:650;color:#345e3e;padding:4px 9px;text-decoration:none;border-radius:8px}.smp-directory a:hover{background:#e1edcd;text-decoration:underline}
@media(min-width:1000px){.safyre-forest.sf-home .smp-mini{max-width:1100px}.safyre-forest.sf-home .smp-welcome{padding:12px 18px!important}.smp-mini .smp-heading{margin-bottom:6px}.smp-mini .smp-podium .smp-sprite{height:87px}.smp-mini .smp-podium-card{min-height:0}.smp-mini .smp-foot{margin-top:7px}}
@media(max-width:740px){.safyre-forest.sf-home .smp-mini{margin:14px 8px!important;padding:13px!important}.smp-content{grid-template-columns:1fr;gap:8px}.smp-mini .smp-heading{justify-content:center}.smp-mini .smp-heading h2{width:100%;text-align:center;font-size:23px}.smp-podium-card{max-width:105px}.smp-podium .smp-sprite{height:75px}.smp-quicklinks{margin-inline:8px;grid-template-columns:1fr;gap:9px}.smp-directory{margin-inline:8px}.smp-welcome h1{font-size:36px!important}.smp-quicklinks a{padding:9px 12px}.smp-foot{justify-content:center}.smp-mini .smp-player span{max-width:110px}}

.smp-title-link{color:inherit!important;text-decoration:none!important}.smp-title-link:hover{text-decoration:underline!important;text-underline-offset:4px}


/* SAFYRE_MULTIPAGE_V2: readable character names and balanced wide-screen spacing. */
body.safyre-forest {
  --smp-ui-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-family: var(--smp-ui-font) !important;
  line-height: 1.5;
}
.safyre-forest :is(button, input, select, textarea, table, .smp-directory, .smp-quicklinks, .sp-char) {
  font-family: var(--smp-ui-font) !important;
}
.safyre-forest :is(.sf-section, .smp-mini, .sf-portal, #dashboard, #sp-dialog) :is(h1,h2,h3,h4),
.safyre-forest .smp-quicklinks strong {
  font-family: var(--smp-ui-font) !important;
  letter-spacing: -.018em;
  font-weight: 700;
}
.safyre-forest .smp-mini :is(h2, th, td), .safyre-forest .sf-rank :is(th,td) {color:#394632;}
/* Each portrait and name remain separate; no clipping of long names. */
.safyre-forest .smp-mini .smp-podium-card,
.safyre-forest .sf-podium-card {
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:5px; box-sizing:border-box; text-align:center; min-width:0;
}
.safyre-forest .smp-mini .smp-podium-card .smp-medal,
.safyre-forest .sf-podium-card .sf-medal {order:0; flex-shrink:0;}
.safyre-forest .smp-mini .smp-podium-card .smp-sprite,
.safyre-forest .sf-podium-card > img {order:1; flex-shrink:0;}
.safyre-forest .smp-mini .smp-podium-card .smp-sprite {
  display:grid; place-items:center; width:100%; height:94px; min-height:94px;
}
.safyre-forest .smp-mini .smp-podium-card .smp-sprite img {
  width:100%;height:100%;max-width:112px;max-height:94px;object-fit:contain;image-rendering:pixelated;
}
.safyre-forest .smp-mini .smp-podium-card > strong,
.safyre-forest .sf-podium-card > strong {
  order:2; display:block; width:100%; max-width:100%; box-sizing:border-box;
  padding:5px 3px; border:1px solid #d7c29a; border-radius:8px;
  background:#fffaf0; color:#30432b !important; font-family:var(--smp-ui-font)!important;
  font-size:15px !important; font-weight:750; letter-spacing:0; line-height:1.25;
  white-space:normal; overflow-wrap:anywhere; text-overflow:clip; text-shadow:none;
}
.safyre-forest .smp-mini .smp-podium-card[data-place="1"] > strong,
.safyre-forest .sf-podium-card[data-rank="1"] > strong {background:#fff0ba;border-color:#d1a957;}
.safyre-forest .smp-mini .smp-podium-card > small,
.safyre-forest .sf-podium-card > small {order:3; font-size:13px; color:#526143 !important; font-weight:600;}
.safyre-forest .smp-mini .smp-podium-card {flex:1 1 0; width:auto; max-width:160px; padding:9px 7px;}
.safyre-forest .smp-mini .smp-podium-card[data-place="1"] {padding-top:13px;}
/* Mini table: real character image directly above its name, even in the compact list. */
.safyre-forest .smp-mini .smp-player {display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;}
.safyre-forest .smp-mini .smp-player > .smp-sprite {width:40px;height:30px;min-height:30px;flex:0 0 30px;}
.safyre-forest .smp-mini .smp-player > span:not(.smp-sprite) {
  font-size:13px; font-weight:650; color:#30432b; max-width:100%; white-space:normal;
  overflow-wrap:anywhere; overflow:visible; text-overflow:clip; line-height:1.2;
}
.safyre-forest .smp-mini table :is(th,td) {text-align:center;padding:3px 9px!important;white-space:normal;}
.safyre-forest .smp-mini table th {font-size:12px;}
.safyre-forest .smp-mini table td {font-size:13px;}
/* Full rankings: character portrait above name, job and guild information. */
.safyre-forest .sf-rank .sp-char {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;}
.safyre-forest .sf-rank .sp-char > .sp-art {width:60px;height:56px;flex:0 0 56px;min-width:0;min-height:0;display:grid;place-items:center;}
.safyre-forest .sf-rank .sp-char > .sp-art img {width:100%;height:100%;max-width:60px;max-height:56px;object-fit:contain;image-rendering:pixelated;}
.safyre-forest .sf-rank .sp-char > div:not(.sp-art) {min-width:0;max-width:100%;}
.safyre-forest .sf-rank .sp-char strong {display:block;font-size:15px!important;font-weight:750;color:#30432b!important;line-height:1.25;white-space:normal;overflow-wrap:anywhere;}
.safyre-forest .sf-rank .sp-char small {display:block;font-size:12px!important;line-height:1.3;color:#526143!important;white-space:normal;}
.safyre-forest .sf-rank td {vertical-align:middle;}
.safyre-forest .sf-rank #sp-dialog .sp-profile-head h4 {font-size:18px;color:#30432b;}
.safyre-forest .smp-welcome h1 {font-family:Georgia,serif!important;letter-spacing:-.025em;}
.safyre-forest .smp-quicklinks strong {font-size:18px;}
.safyre-forest .smp-quicklinks small {font-size:13px;line-height:1.4;}
@media (min-width:1000px) {
  body.safyre-forest {--smp-wide:min(1460px, 87vw);font-size:15px;background-size:contain!important;background-position:center top!important;}
  .safyre-forest .sf-header {width:var(--smp-wide);max-width:none;margin:0 auto 18px;padding:12px 22px;}
  .safyre-forest .sf-header nav {gap:8px 17px;}
  .safyre-forest .sf-header nav a {font-size:14px;}
  .safyre-forest.sf-home main,.safyre-forest.sf-portal main {width:var(--smp-wide);max-width:none;padding-inline:0;margin-inline:auto;}
  .safyre-forest.sf-home .sf-section {max-width:none;width:100%;padding:22px 26px!important;}
  .safyre-forest.sf-home > .sf-section {width:var(--smp-wide);}
  .safyre-forest.sf-home .smp-mini {width:100%;max-width:none;padding:16px 24px 14px!important;margin:14px auto 12px!important;}
  .safyre-forest.sf-home > .smp-mini {width:var(--smp-wide);}
  .safyre-forest .smp-mini .smp-content {grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:25px;align-items:center;}
  .safyre-forest .smp-mini.smp-short .smp-content {grid-template-columns:minmax(0,1fr);}
  .safyre-forest .smp-mini .smp-podium {gap:14px;padding:10px 0;}
  .safyre-forest .smp-mini h2 {font-size:27px!important;}
  .safyre-forest .smp-mini .smp-tabs button {font-size:13px;}
  .safyre-forest .smp-mini .smp-foot p {font-size:12px;}
  .safyre-forest.sf-home .smp-welcome {max-width:730px;margin:12px auto 10px!important;}
  .safyre-forest .smp-welcome h1 {font-size:43px!important;}
  .safyre-forest .smp-quicklinks,.safyre-forest .smp-directory {max-width:none;width:100%;box-sizing:border-box;}
  .safyre-forest.sf-home > :is(.smp-quicklinks,.smp-directory) {width:var(--smp-wide);}
  .safyre-forest :is(footer,.sf-footer) {width:var(--smp-wide);max-width:none;box-sizing:border-box;}
  .safyre-forest .sf-rank table {font-size:14px;}
  .safyre-forest .sf-rank :is(td,th) {padding:5px 12px;}
  .safyre-forest .sf-rank thead th {font-size:13px;}
  .safyre-forest .sf-rank .sp-char strong {font-size:15px!important;}
  .safyre-forest.sf-portal .v-tile-name {font-size:12px;line-height:1.3;}
  .safyre-forest.sf-portal .v-paper {grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (min-width:1600px) {
  body.safyre-forest {--smp-wide:min(1500px, 82vw);}
  .safyre-forest .smp-mini .smp-podium-card {max-width:170px;}
  .safyre-forest .smp-mini .smp-podium-card .smp-sprite {height:106px;min-height:106px;}
  .safyre-forest .smp-mini .smp-podium-card .smp-sprite img {max-height:106px;max-width:130px;}
}
@media (max-width:740px) {
  .safyre-forest .smp-mini .smp-podium-card {padding-inline:4px;max-width:112px;}
  .safyre-forest .smp-mini .smp-podium-card .smp-sprite {height:72px;min-height:72px;}
  .safyre-forest .smp-mini .smp-podium-card .smp-sprite img {max-height:72px;}
  .safyre-forest .smp-mini .smp-podium-card > strong,.safyre-forest .sf-podium-card > strong {font-size:13px!important;}
  .safyre-forest .smp-mini table :is(th,td) {padding-inline:5px!important;}
}

.safyre-forest .v-avatar .smp-avatar-name {display:block;max-width:100%;color:#30432b!important;font-size:15px;font-weight:750;line-height:1.25;overflow-wrap:anywhere;margin:5px 0 2px;text-align:center;}
.safyre-forest .sf-podium-card > img {max-width:100%;object-fit:contain;image-rendering:pixelated;}
.safyre-forest .smp-mini .smp-player > span {overflow:visible;text-overflow:clip;}
.safyre-forest .smp-mini .smp-player > .smp-sprite {overflow:hidden;}
.safyre-forest .smp-mini .smp-content {min-width:0;}
@media(min-width:1000px){
 .safyre-forest .sf-header,.safyre-forest.sf-home main,.safyre-forest.sf-portal main{box-sizing:border-box;}
 .safyre-forest .smp-mini .smp-podium-card[data-place="1"]{transform:translateY(-4px);}
 .safyre-forest .sf-podium-card{max-width:174px;}
 .safyre-forest .sf-podium-card img{width:100px;height:94px;}
 .safyre-forest .smp-mini table td{line-height:1.25;}
 .safyre-forest .smp-mini table .smp-player{gap:1px;}
 .safyre-forest .smp-mini table td{padding-block:2px!important;}
 .safyre-forest .smp-mini .smp-player > .smp-sprite {height:25px;min-height:25px;flex-basis:25px;}
 .safyre-forest .smp-mini .smp-player > span:not(.smp-sprite){font-size:12px;}
 .safyre-forest.sf-portal .v-layout{grid-template-columns:minmax(0,1fr) minmax(235px,300px);}
 .safyre-forest.sf-portal #login{max-width:460px;margin-inline:auto;}
 .safyre-forest.sf-portal .v-tile-name{white-space:normal;}
}
@media(min-width:1000px) and (max-width:1279px){.safyre-forest.sf-portal .v-paper{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:740px){.safyre-forest .v-avatar .smp-avatar-name{font-size:13px;}.safyre-forest .sf-rank .sp-char strong{font-size:13px!important;}}

/* SAFYRE_MINI_SPRITE_FIT_BEGIN */
/* The image box is independent of the PNG's intrinsic dimensions.
   Preserve the complete sprite and the name beneath it. */
.safyre-forest .smp-mini .smp-rest .smp-player {
  display:flex!important; flex-direction:column!important;
  align-items:center; justify-content:center; gap:2px!important;
  min-width:0; line-height:1.2;
}
.safyre-forest .smp-mini .smp-rest .smp-player > .smp-sprite {
  position:relative!important; display:block!important;
  box-sizing:border-box!important; width:66px!important; height:44px!important;
  min-width:66px!important; max-width:66px!important;
  min-height:44px!important; max-height:44px!important;
  flex:0 0 44px!important; margin:0 auto!important; padding:0!important;
  overflow:visible!important; border-radius:0!important;
}
.safyre-forest .smp-mini .smp-rest .smp-player > .smp-sprite > img {
  position:absolute!important; inset:0!important; display:block!important;
  box-sizing:border-box!important; width:100%!important; height:100%!important;
  min-width:0!important; min-height:0!important; max-width:100%!important; max-height:100%!important;
  margin:0!important; padding:0!important; border:0!important; border-radius:0!important;
  object-fit:contain!important; object-position:center center!important;
  transform:none!important; clip-path:none!important; image-rendering:pixelated!important;
}
.safyre-forest .smp-mini .smp-rest .smp-player > .smp-sprite > .smp-no-art {
  display:grid; place-items:center; height:100%; width:100%;
}
.safyre-forest .smp-mini .smp-rest .smp-player > span:not(.smp-sprite) {
  font-family:"Segoe UI",system-ui,sans-serif!important;
  font-size:13px!important; font-weight:650; line-height:1.2;
  color:#30432b!important; max-width:100%; overflow-wrap:anywhere; white-space:normal;
}
.safyre-forest .smp-mini .smp-rest tbody td {
  padding:3px 7px!important; vertical-align:middle!important;
}
@media (min-width:1440px) {
  .safyre-forest .smp-mini .smp-rest .smp-player > .smp-sprite {
    width:74px!important; min-width:74px!important; max-width:74px!important;
    height:48px!important; min-height:48px!important; max-height:48px!important;
    flex-basis:48px!important;
  }
}
@media (max-width:740px) {
  .safyre-forest .smp-mini .smp-rest .smp-player > .smp-sprite {
    width:58px!important; min-width:58px!important; max-width:58px!important;
    height:40px!important; min-height:40px!important; max-height:40px!important;
    flex-basis:40px!important;
  }
  .safyre-forest .smp-mini .smp-rest .smp-player > span:not(.smp-sprite) {font-size:12px!important;}
  .safyre-forest .smp-mini .smp-rest tbody td {padding:3px 4px!important;}
}
/* SAFYRE_MINI_SPRITE_FIT_END */
