/* SAFYRE_FOREST_THEME_V1: scoped presentation only; never changes game or ranking records. */
:root{color-scheme:light;--sf-ink:#293b2c;--sf-muted:#576649;--sf-cream:#fff8e8;--sf-paper:#fffdf4;--sf-green:#356344;--sf-deep:#234f3f;--sf-lime:#b6d77b;--sf-gold:#b07836;--sf-wood:#785032;--sf-line:#d2b88e;--sf-shadow:0 8px 28px #27472f24}
html{scroll-behavior:smooth;background:#e4efcf}body.safyre-forest{--bg:#e8f0d4;--background:#e8f0d4;--panel:#fff9eb;--card:#fff9eb;--line:#d4bf9c;--border:#d4bf9c;--gold:#426b3b;--accent:#477846;--muted:#58674f;--text:#2c3c2d;--foreground:#2c3c2d;margin:0;min-height:100vh;background:#e8f0d4 url('/theme/forest.webp') center top/cover fixed no-repeat!important;color:var(--sf-ink)!important;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.55;isolation:isolate}
.safyre-forest:before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,#f5f4e014 10%,#f1f5e342 60%,#e5eed9bb 100%);pointer-events:none}
.safyre-forest h1,.safyre-forest h2,.safyre-forest h3{color:#36523b;letter-spacing:-.025em;font-family:Georgia,'Times New Roman',serif;text-wrap:balance}.safyre-forest h1{font-size:clamp(32px,4vw,54px);line-height:1.09}.safyre-forest h2{font-size:clamp(24px,2.7vw,35px);line-height:1.16}.safyre-forest h3{font-size:clamp(18px,1.7vw,23px)}.safyre-forest p,.safyre-forest small,.safyre-forest .muted,.safyre-forest .lede,.safyre-forest .footnote{color:var(--sf-muted)}.safyre-forest a{color:#315e3d}.safyre-forest a:hover{color:#764b2d}.safyre-forest :is(button,input,select,textarea,a):focus-visible{outline:3px solid #3b7546!important;outline-offset:3px}.safyre-forest [hidden]{display:none!important}
/* Only the existing page header, not nested card headers. */
.safyre-forest .sf-header{position:relative;z-index:10;color:#fffbea!important;background:linear-gradient(100deg,#234c38f5,#3d6944f5)!important;border:1px solid #d9c499;border-radius:0 0 22px 22px;box-shadow:0 4px 0 #8b623c,0 12px 24px #24432f30;padding:14px max(3vw,16px);margin:0 auto 22px;max-width:1250px;box-sizing:border-box}.safyre-forest .sf-header :is(a,span,strong,h1,h2,p,small){color:#fff8e6}.safyre-forest .sf-header :is(.brand,.logo,.site-brand){font-family:Georgia,serif;font-weight:800;font-size:clamp(22px,2.4vw,32px);text-decoration:none;letter-spacing:-.025em}.safyre-forest .sf-header .brand span{color:#c9e19b}.safyre-forest .sf-header a:hover{text-decoration:underline;text-underline-offset:4px}.safyre-forest .sf-header nav{gap:clamp(6px,1.2vw,16px);align-items:center;flex-wrap:wrap}.safyre-forest .sf-header a[href*="rankings"]{font-weight:750;color:#fff1ba}.safyre-forest .sf-header a[href*="register"]{background:#ffefc8;color:#3b5033!important;border-radius:999px;padding:8px 15px;text-decoration:none;border:1px solid #dbba78}
.safyre-forest.sf-home main{background:transparent!important;max-width:1170px;margin-inline:auto;padding-inline:clamp(12px,2.8vw,28px);box-sizing:border-box}.safyre-forest.sf-home .sf-section{box-sizing:border-box;position:relative;max-width:1120px;margin:24px auto!important;padding:clamp(16px,3.1vw,35px)!important;background:linear-gradient(150deg,#fffdf2f5,#fff4dff2)!important;border:1px solid #d0b489!important;border-radius:24px!important;box-shadow:inset 0 0 0 4px #fffdf25c,var(--sf-shadow)!important;color:var(--sf-ink)!important;scroll-margin-top:20px}.safyre-forest.sf-home .sf-hero{min-height:230px;text-align:center;background:linear-gradient(100deg,#fff9e9f0,#fffdf2e8,#fff9e9f0)!important;padding-block:clamp(24px,4vw,48px)!important}.safyre-forest .sf-hero :is(h1,h2){color:#2c6444}.safyre-forest .sf-hero p{max-width:64ch;margin-inline:auto}.safyre-forest .sf-rank{padding-top:clamp(22px,4vw,45px)!important;border:2px solid #ad865d!important;box-shadow:0 5px 0 #ac835c,0 15px 35px #224d373c,inset 0 0 0 4px #fffaf0!important}.safyre-forest .sf-rank:before,.safyre-forest .sf-rank:after{content:"";position:absolute;top:-11px;width:45px;height:24px;border-radius:100% 0 100% 0;background:linear-gradient(135deg,#8eb64d,#426e38);border:1px solid #547e3d;box-shadow:14px 8px 0 -3px #c0d87c;pointer-events:none}.safyre-forest .sf-rank:before{left:12px;transform:rotate(12deg)}.safyre-forest .sf-rank:after{right:25px;transform:rotate(80deg)}.safyre-forest .sf-rank :is(h1,h2){color:#65442b;text-align:center;margin-top:0}.safyre-forest .sf-rank :is(table,.tablewrap){width:100%;max-width:100%;box-sizing:border-box}.safyre-forest .sf-rank table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;background:#fffaf0;border:1px solid #e2d1b1;border-radius:14px;overflow:hidden}.safyre-forest .sf-rank thead th{background:#eddfc0!important;color:#624b31!important;font-size:12px;letter-spacing:.02em}.safyre-forest .sf-rank :is(td,th){border-color:#e8dbc4!important;padding:10px 12px}.safyre-forest .sf-rank tbody tr:nth-child(even){background:#f4ebd8}.safyre-forest .sf-rank tbody tr:nth-child(1){background:#fff1be}.safyre-forest .sf-rank tbody tr:hover{background:#e8efd7}.safyre-forest .sf-rank :is(td,th) img{image-rendering:pixelated;object-fit:contain;max-width:90px;max-height:90px;vertical-align:middle}.safyre-forest .sf-rank :is(.avatar,.player-avatar,.rank-avatar,.character-avatar){image-rendering:pixelated;object-fit:contain;max-width:100%;background:transparent!important;border-radius:0!important}
/* Progressive podium built from real rendered ranking rows; never mock data. */
.safyre-forest .sf-podium{display:flex;align-items:end;justify-content:center;gap:clamp(6px,1.5vw,16px);margin:18px auto 22px;max-width:610px}.safyre-forest .sf-podium-card{flex:1;max-width:184px;min-width:0;position:relative;display:grid;justify-items:center;gap:2px;text-align:center;padding:10px 8px 13px;background:linear-gradient(#fffdf4,#f2e4c8);border:1px solid #d6bc94;border-radius:22px 22px 13px 13px;box-shadow:0 3px 0 #d5c19c}.safyre-forest .sf-podium-card[data-rank="1"]{order:2;background:linear-gradient(#fffcec,#fce7a6);border:2px solid #d4a44c;box-shadow:0 4px 0 #c99d52;transform:translateY(-4px);padding-top:17px}.safyre-forest .sf-podium-card[data-rank="2"]{order:1}.safyre-forest .sf-podium-card[data-rank="3"]{order:3}.safyre-forest .sf-medal{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e1dfd5;color:#424537;font-weight:800;border:1px solid #bab8a8}.safyre-forest [data-rank="1"] .sf-medal{background:#f7cc6a;border-color:#b58a34;color:#654823}.safyre-forest [data-rank="3"] .sf-medal{background:#e7bf9e;border-color:#be9370;color:#754a31}.safyre-forest .sf-podium-card img{width:96px;height:100px;max-width:100%;object-fit:contain;image-rendering:pixelated}.safyre-forest .sf-podium-card strong{max-width:100%;overflow-wrap:anywhere;color:#4f392a;font-size:15px}.safyre-forest .sf-podium-card small{font-size:12px;color:#5a6649}
/* Existing controls and nested cards retain their functionality. */
.safyre-forest :is(.card,.panel,.feature-card,.stat,.ranking-card,.news-card,.v-inspect,.v-slot,.v-empty,.v-tile,.v-avatar){background:#fffaf0!important;color:var(--sf-ink)!important;border-color:#dbc7a7!important;box-shadow:0 3px 10px #3858370d}.safyre-forest :is(.card,.panel,.feature-card,.stat,.ranking-card,.news-card){border-radius:17px!important}.safyre-forest :is(.stat strong,.eyebrow,.tag,.badge){color:#42683e!important}.safyre-forest :is(input,select,textarea){background:#fffdf6!important;color:#2b402d!important;border:1px solid #b2c09b!important;border-radius:10px}.safyre-forest :is(input,textarea)::placeholder{color:#75806b}.safyre-forest :is(button,.button,.btn,.cta,.primary){color:#fffdf1;background:linear-gradient(#628e50,#3b6945);border:1px solid #4d7442;border-radius:999px;box-shadow:0 2px 0 #31563b25;font-weight:650}.safyre-forest :is(button,.button,.btn,.cta,.primary):not(:disabled):hover{filter:brightness(1.04)}.safyre-forest :is(.secondary,.button-secondary,.btn-secondary,nav button,.tab){background:#f6edd8!important;color:#405b3c!important;border:1px solid #d0be99!important;box-shadow:none}.safyre-forest :is(button,.tab)[aria-selected="true"],.safyre-forest button[aria-pressed="true"],.safyre-forest nav button.active{background:#477647!important;color:#fffaf0!important;border-color:#426b3b!important}.safyre-forest :is(.v-tile,.v-slot,.v-empty){border-radius:12px!important;box-shadow:none}.safyre-forest .v-tile{background:#fffdf6!important;color:#32482f!important}.safyre-forest .v-tile:hover,.safyre-forest .v-tile:focus-visible{background:#eaf1d8!important;border-color:#759653!important}.safyre-forest .v-qty{background:#4c6e43!important;color:white!important}.safyre-forest .v-icon{background-color:#f2ead6;color:#53734d;border-radius:8px}.safyre-forest .v-icon.v-atlas{background-color:transparent}.safyre-forest .v-inspect-head,.safyre-forest .v-stat-list{color:#314a31}.safyre-forest :is(.v-stat-list dd,.v-inspect h3,.v-tile-name){color:#314a31!important}.safyre-forest .v-avatar{background:radial-gradient(ellipse,#fffef5,#e1edce)!important}.safyre-forest .v-avatar img{image-rendering:pixelated}.safyre-forest #notice:not(:empty){background:#fff3d5!important;color:#5f4b28;border-color:#b5894a}.safyre-forest :is(footer,.sf-footer){max-width:1120px;margin:25px auto 0;padding:20px;text-align:center;border-radius:18px 18px 0 0;background:#f9f0dcf5!important;color:#586449!important}.safyre-forest.sf-portal main{background:transparent!important;max-width:1150px;margin:auto}.safyre-forest.sf-portal main>h1,.safyre-forest.sf-portal main>.eyebrow,.safyre-forest.sf-portal main>.lede{display:table;background:#fff8e9e8;padding:5px 12px;border-radius:10px}.safyre-forest.sf-portal .panel{background:#fffaf3f8!important;box-shadow:var(--sf-shadow)!important}.safyre-forest.sf-portal #dashboard>.bar{background:#fff9ebf2;padding:14px 18px;border:1px solid #d2b88e;border-radius:15px}.safyre-forest.sf-portal #tabs{padding:9px;background:#fff8e8ed;border:1px solid #d2b88e;border-radius:15px}.safyre-forest.sf-portal table th{color:#43653c}.safyre-forest.sf-portal .footnote{background:#fff9ebed;padding:10px;border-radius:10px}
@media(max-width:720px){body.safyre-forest{background-size:auto 100vh!important;background-attachment:scroll!important;background-position:center top!important}.safyre-forest .sf-header{margin:0 8px 18px;padding:12px;flex-wrap:wrap}.safyre-forest.sf-home .sf-section{margin:18px 8px!important;border-radius:18px!important;padding:16px!important}.safyre-forest.sf-home main{padding-inline:0}.safyre-forest .sf-rank table{font-size:12px}.safyre-forest .sf-rank :is(td,th){padding:6px}.safyre-forest .sf-podium-card img{height:75px;width:75px}.safyre-forest .sf-podium-card{padding:7px 4px}.safyre-forest .sf-podium-card strong{font-size:13px}.safyre-forest .sf-podium-card[data-rank="1"]{padding-top:12px}.safyre-forest .sf-rank{overflow-x:auto}.safyre-forest .sf-rank:before,.safyre-forest .sf-rank:after{display:none}.safyre-forest.sf-home .sf-hero{min-height:200px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.safyre-forest *{transition:none!important;animation:none!important}}
