@font-face{font-family:Montserrat;src:url('/assets/montserrat-semibold.ttf') format('truetype');font-weight:400 600;font-display:swap}
@font-face{font-family:Montserrat;src:url('/assets/montserrat-extrabold.ttf') format('truetype');font-weight:700 900;font-display:swap}
:root{color-scheme:dark;--orange:#ff421b;--gold:#d2a54e;--text:#f2f2f7;--muted:#bdc1cd;--line:#ffffff1f;--cursor:url('/assets/kunai-cursor.svg') 1 1,auto}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#07101c;color:var(--text);font-family:Montserrat,Arial,sans-serif;font-size:14px;cursor:var(--cursor)}a,button{cursor:url('/assets/kunai-cursor.svg') 1 1,pointer}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible{outline:2px solid #ffd687;outline-offset:5px}button:disabled{opacity:.5}img{max-width:100%}[hidden]{display:none!important}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:10px;background:#000;padding:12px;z-index:100}
.topbar{min-height:88px;padding:12px clamp(20px,3.8vw,74px);display:flex;align-items:center;gap:26px;background:#060d18ed;border-bottom:1px solid var(--line);position:relative;z-index:20}.small-logo{width:110px;flex-shrink:0;display:block}.small-logo img{display:block;width:110px;height:auto}.top-players{display:flex;gap:13px;align-items:center;min-width:0}.top-label{font-size:9px;line-height:1.6;letter-spacing:1.5px;color:#d9aa54;white-space:nowrap}.top-label span{display:block;color:#969ca9}.top-players ol{display:flex;gap:16px;list-style:none;margin:0;padding:0}.player-chip{display:flex;align-items:center;gap:8px;min-width:0}.medal{height:29px;width:25px;display:grid;place-items:center;font-size:11px;color:#f5d68a;background:linear-gradient(150deg,#916b2b,#312518);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);flex-shrink:0}.silver{color:#d9e0ec;background:linear-gradient(150deg,#8a92a2,#343844)}.bronze{color:#e4bb91;background:linear-gradient(150deg,#89623f,#362416)}.player-chip strong{font-size:10px;display:block;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-chip small{font-size:9px;color:#d5a55a;display:block;margin-top:4px}.topbar nav{display:flex;gap:22px;margin-left:auto;align-items:center;white-space:nowrap}.topbar nav a{font-size:12px;padding:14px 0;border-bottom:2px solid transparent}.topbar nav a:hover,.topbar nav a.active{color:#ff571f;border-bottom-color:#ff481f}.nav-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:#8e939f;vertical-align:super;margin-left:2px}.download{border:1px solid #bc5934;color:#ff5e29;background:transparent;border-radius:3px;padding:11px 18px;white-space:nowrap;font-weight:800;font-size:12px}.download span{font-size:22px;margin-right:8px}.download:hover{background:#ab221323}.mobile-toggle{display:none;background:transparent;font-size:24px}
.hero{position:relative;min-height:calc(100svh - 88px);height:850px;max-height:1100px;overflow:hidden;background:#0a1830 url('/assets/background.png') center center/cover no-repeat;isolation:isolate}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#030b1875 0%,#030b1820 48%,transparent 78%),linear-gradient(0deg,#060d18ba,transparent 22%);z-index:0}.hero-content{position:relative;z-index:5;width:47%;max-width:720px;padding:clamp(65px,9vh,110px) 0 170px clamp(28px,5.5vw,100px)}.hero-logo{display:block;width:100%;max-width:555px;height:auto;margin:0 0 20px -8px}.hero h1{font-size:clamp(32px,3.55vw,64px);line-height:1.09;letter-spacing:-1.4px;font-weight:800;margin:0 0 22px;white-space:nowrap}.hero h1 span{color:#ff421d}.hero-content>p{font-size:clamp(12px,1.25vw,21px);line-height:1.65;color:#c3c7d3;margin:0 0 27px}.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.play{height:64px;min-width:258px;border:1px solid #fa6131;background:linear-gradient(180deg,#b82725,#841a20);box-shadow:0 0 0 2px #ff431a25,inset 0 0 16px #e1411f35,0 0 15px #ff411a25;display:flex;align-items:center;justify-content:center;gap:16px;padding:0 22px;border-radius:3px;letter-spacing:.2px;font-weight:800;font-size:17px;transition:background .2s,box-shadow .2s,transform .2s}.play svg{width:24px;height:24px;color:#fff0c8}.play>span{font-size:29px;font-weight:400}.play:hover{background:linear-gradient(#cf3028,#9a1e20);box-shadow:0 0 24px #ff431a50;transform:translateY(-2px)}.gameplay{display:flex;align-items:center;gap:10px;background:transparent;padding:8px 0;font-size:13px;color:#e4e5ec}.play-circle{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e6e8ef;border-radius:50%;font-size:24px;padding-left:3px}.gameplay:hover{color:#ff734b}
.characters{position:absolute;z-index:2;right:-2%;top:6%;bottom:0;width:62%;pointer-events:none}.character{position:absolute;height:104%;width:auto;max-width:none;object-fit:contain;object-position:bottom;filter:drop-shadow(0 8px 12px #0005);animation:float 7s ease-in-out infinite;will-change:transform}.minato{left:-9%;top:11%;height:100%;z-index:1;animation-delay:-2.5s}.madara{left:23%;top:0;z-index:3}.tobirama{left:61%;top:12%;height:99%;z-index:2;animation-delay:-4.7s}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}
.guild-panel{position:absolute;z-index:7;right:3.7%;bottom:6%;width:clamp(390px,36vw,600px);border:1px solid #ba923ce0;border-radius:8px;background:linear-gradient(125deg,#0b111bf5,#050b16f2);box-shadow:0 8px 32px #0005;padding:20px 24px}.guild-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;gap:16px}.guild-heading h2{font-size:15px;font-weight:600;margin:0}.guild-heading h2 span{color:#edc367;font-size:23px;margin-right:8px}.guild-heading>a{font-size:10px;color:#b8bdca;white-space:nowrap}.guild-heading>a span{font-size:20px;color:#e9ba64;margin-left:8px}.guild-panel ol{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(3,1fr)}.guild{padding:0 10px;text-align:center;min-width:0;border-right:1px solid var(--line)}.guild:last-child{border:0}.guild-crest{margin:auto auto 9px;width:43px;height:49px;display:grid;place-items:center;font-size:25px;color:#f3d799;background:linear-gradient(160deg,#772521,#31141c);border:1px solid #cbb064;border-radius:10px 10px 19px 19px}.guild:nth-child(2) .guild-crest{background:linear-gradient(160deg,#314461,#16253b);color:#b9d4ff}.guild:nth-child(3) .guild-crest{background:linear-gradient(160deg,#45314d,#21182f);color:#d5bcf3}.guild-name{font-size:11px;line-height:1.4;display:block;overflow-wrap:anywhere}.guild-stat{font-size:10px;color:#aeb5c5;display:block;margin-top:7px}.guild-rank{color:#d8ab5e;margin-right:5px;font-size:11px}.loading{color:#9aa4b8;font-size:11px;list-style:none}
footer{padding:18px 4%;display:flex;justify-content:space-between;gap:12px;color:#727e93;font-size:10px;background:#060d18;border-top:1px solid #ffffff0c}.footer-dot{color:#aa412a;margin:0 6px}.page{min-height:calc(100svh - 145px);padding:58px max(24px,6vw) 70px;background:linear-gradient(#060e1dea,#060e1df5),url('/assets/background.png') center/cover fixed}.page-intro{max-width:1250px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2px;color:#dc9a5a}.page h1{font-size:clamp(30px,4vw,52px);margin:16px 0;letter-spacing:-1px}.page h1 span{color:#ff502b}.page-intro>p:last-child{color:#aeb8cb}.ranking-tabs{display:flex;gap:8px;max-width:1250px;margin:38px auto 20px;border-bottom:1px solid var(--line)}.ranking-tabs button{padding:14px 25px;background:transparent;color:#aeb8cb;border-bottom:2px solid transparent}.ranking-tabs button[aria-selected=true]{color:#ff6a38;border-bottom-color:#ff512c}.table-panel{max-width:1250px;margin:auto;background:#0c1629b0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{color:#bdc5d3;background:#0b1425;padding:18px 22px;font-size:10px;letter-spacing:.7px;text-transform:uppercase}td{padding:17px 22px;border-top:1px solid #ffffff0a}tbody tr:nth-child(-n+3) td:first-child{color:#e6bd73;font-weight:800}tbody tr:hover{background:#ffffff04}.ranking-note{font-size:11px;color:#aab3c5;padding:16px 22px;margin:0}.updated{max-width:1250px;margin:20px auto;color:#758198;font-size:10px}.development{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}.development-seal{font-size:55px;color:#d78c47}.development>p:not(.eyebrow){max-width:500px;line-height:1.8;color:#b8c1d1}.back-home{padding:13px 20px;margin-top:18px;border:1px solid #a94427;border-radius:4px;background:#85261d2b;color:#ffd1b7;font-size:12px}.back-home:hover{background:#85261d55}dialog{background:#0b1424;color:#f6f4f0;border:1px solid #a87940;border-radius:10px;padding:34px;max-width:440px;width:calc(100% - 40px);box-shadow:0 25px 80px #000b}dialog::backdrop{background:#020610b8;backdrop-filter:blur(5px)}dialog h2{font-size:23px}dialog p:not(.eyebrow){font-size:13px;line-height:1.8;color:#bdc6d8}.dialog-close{position:absolute;right:12px;top:8px;font-size:27px;background:none;color:#b7c0d0}.data-status{position:fixed;bottom:14px;left:14px;padding:10px 15px;border:1px solid #79573a;background:#101929;max-width:350px;font-size:11px;color:#ddd0be;z-index:30}
@media(min-width:1800px){.hero-content{padding-top:100px}.characters{width:58%}.hero{height:calc(100svh - 88px)}}
@media(max-width:1280px){.topbar{gap:16px;padding-inline:25px}.small-logo{width:85px}.small-logo img{width:85px}.top-players ol{gap:9px}.player-chip strong{max-width:74px;font-size:9px}.topbar nav{gap:15px}.topbar nav a{font-size:11px}.top-label{display:none}.hero{height:760px}.hero-content{width:47%;padding-top:75px}.hero h1{font-size:3.6vw}.characters{right:-4%;width:65%}.guild-panel{right:3%;width:41%;padding:17px}.play{min-width:210px;height:57px;font-size:14px}.actions{gap:16px}.gameplay{font-size:11px}}
@media(max-width:1000px){.top-players{display:none}.topbar{min-height:75px}.small-logo{width:95px}.small-logo img{width:95px}.hero{min-height:790px;height:calc(100svh - 75px)}.hero-content{width:50%;padding-left:30px;padding-top:70px}.hero h1{font-size:4vw}.hero-content>p{font-size:13px}.characters{top:15%;right:-7%;width:68%}.guild-panel{bottom:35px;width:49%}.guild-heading h2{font-size:13px}.guild-name{font-size:10px}.guild-stat{font-size:9px}.actions{gap:15px}.play{min-width:205px}}
@media(max-width:700px){.topbar{padding:9px 18px;gap:16px;min-height:72px}.small-logo{width:85px}.small-logo img{width:85px}.mobile-toggle{display:block;margin-left:auto}.download{padding:8px 12px;font-size:10px}.download span{font-size:18px;margin-right:3px}.topbar nav{display:none;position:absolute;top:71px;left:0;right:0;background:#07101ff7;padding:15px 24px;flex-wrap:wrap;gap:25px;border-bottom:1px solid var(--line)}.topbar nav.open{display:flex}.hero{height:auto;min-height:1100px;background-position:62% top;background-size:auto 1100px}.hero-shade{background:linear-gradient(180deg,#02081720,#030b1860 35%,#030b1800 55%,#030b18ef 100%)}.hero-content{width:100%;padding:34px 25px 0;max-width:540px;margin:auto}.hero-logo{width:85%;max-width:360px;margin:0 0 18px -5px}.hero h1{font-size:clamp(28px,7.5vw,43px);margin-bottom:17px}.hero-content>p{font-size:12px;margin-bottom:22px}.actions{gap:17px}.play{font-size:13px;height:52px;min-width:195px;padding:0 13px;gap:10px}.play svg{width:20px}.gameplay{font-size:10px;gap:7px}.play-circle{width:26px;height:26px;font-size:19px}.characters{top:420px;left:-5%;right:auto;width:110%;height:510px;bottom:auto}.character{height:105%}.minato{left:-3%;top:7%;height:100%}.madara{left:29%;top:0;height:104%}.tobirama{left:62%;top:11%;height:94%}.guild-panel{left:20px;right:20px;bottom:22px;width:auto;padding:17px 13px}.guild-panel ol{margin-top:17px}.guild-heading h2{font-size:12px}.guild-heading a{font-size:9px}.guild-name{font-size:9px}.guild-crest{width:36px;height:40px;font-size:21px}.guild-stat{font-size:8px}footer{font-size:8px;padding:14px 20px}.page{padding:35px 20px 55px}.ranking-tabs{margin-top:25px}.ranking-tabs button{padding:12px 17px;font-size:12px}table{font-size:10px}th,td{padding:14px 15px}.page h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.character{animation:none;will-change:auto}.play{transition:none}}

/* Keep all three portraits visible, including the narrow mobile composition. */
.minato{left:-15%}.madara{left:16%}.tobirama{left:43%}
.topbar .small-logo,.topbar .small-logo img{width:56px;height:56px}.topbar .small-logo img{object-fit:contain}
.home-view{background:#07101c url('/assets/background.png') center top/cover fixed no-repeat}
.home-view .hero{background:transparent}
.topbar{background:#07101c66;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom-color:#ffffff24}
.topbar .small-logo,.topbar .small-logo img{width:96px;height:48px}
.characters{right:0;top:14%;bottom:auto;width:60%;height:76%}
.character{height:auto;width:54%;object-position:top;filter:drop-shadow(0 8px 16px #0005);mask-image:linear-gradient(to bottom,#000 0%,#000 76%,transparent 100%)}
.tsunade{left:-8%;top:8%;z-index:1;animation-delay:-2.5s}
.kushina{left:27%;top:0;z-index:3}
.mei{left:55%;top:8%;z-index:2;animation-delay:-4.7s}
@media(max-width:1280px){.characters{width:63%;top:16%;height:77%}}
@media(max-width:1000px){.characters{width:65%;top:21%;height:73%}}
@media(max-width:700px){.hero{min-height:980px}.home-view{background-position:62% top;background-size:auto 1150px;background-attachment:scroll}.characters{top:420px;left:-5%;right:auto;width:110%;height:390px}.character{width:54%;height:auto}.tsunade{left:-12%;top:7%}.kushina{left:24%;top:0}.mei{left:58%;top:7%}}
@media(max-width:700px){.topbar{flex-wrap:wrap;row-gap:7px}.top-players{display:flex;order:4;width:100%}.top-players ol{width:100%;justify-content:space-between;gap:6px}.top-label{display:none}.player-chip{gap:5px}.player-chip strong{max-width:60px;font-size:8px}.player-chip small{font-size:8px}.medal{width:22px;height:25px}.topbar nav{top:100%}.minato{left:-15%}.madara{left:16%}.tobirama{left:43%}}

/* Dark shinobi scrolls: lightweight native UI, live ranking retained. */
.play{position:relative;border:1px solid #ba914b;border-radius:2px;background:linear-gradient(90deg,#1a1513,#30201b 50%,#1a1513);box-shadow:inset 0 0 0 3px #090a0b,inset 0 0 0 4px #81643d,0 8px 22px #0005;color:#f8dca2;margin-inline:9px}
.play::before,.play::after{content:"";position:absolute;top:-7px;bottom:-7px;width:15px;border:1px solid #b49358;border-radius:5px;background:linear-gradient(90deg,#090b0e,#675039 45%,#241b16 80%,#090b0e);box-shadow:0 3px 8px #0007}
.play::before{left:-9px}.play::after{right:-9px}
.play:hover{background:linear-gradient(90deg,#261a16,#4a2d20,#261a16);box-shadow:inset 0 0 0 3px #090a0b,inset 0 0 0 4px #bd9555,0 8px 26px #0007}
.ranking-menu{position:relative;display:flex;align-items:center;align-self:stretch}
.ranking-scroll{position:absolute;left:50%;right:auto;top:calc(100% - 1px);bottom:auto;width:350px;max-width:calc(100vw - 40px);padding:25px 22px;border:1px solid #997743;border-radius:3px;background:linear-gradient(110deg,#161519fa,#0b0e14fa);box-shadow:inset 0 0 0 4px #070a0e,inset 0 0 0 5px #4f3d26,0 18px 40px #0009;opacity:0;visibility:hidden;transform:translate(-50%,-8px) scaleY(.96);transform-origin:top;transition:opacity .18s,transform .22s,visibility .22s;white-space:normal;z-index:30}
.ranking-scroll::before,.ranking-scroll::after{content:"";position:absolute;left:-9px;right:-9px;height:13px;border:1px solid #ac874c;border-radius:5px;background:linear-gradient(180deg,#100e0d,#695039 45%,#201813);box-shadow:0 3px 7px #0005}
.ranking-scroll::before{top:-7px}.ranking-scroll::after{bottom:-7px}
.ranking-menu:hover .ranking-scroll,.ranking-menu:focus-within .ranking-scroll{opacity:1;visibility:visible;transform:translate(-50%,0) scaleY(1)}
.ranking-scroll .guild-heading{padding-bottom:12px}.ranking-scroll .guild-heading h2{font-size:14px;color:#e6c58a}
.topbar nav .ranking-scroll a{border:0;padding:0;color:inherit;font-size:10px}.topbar nav .ranking-scroll a:hover{color:#f2cd85}
.ranking-scroll ol{display:flex;flex-direction:column;gap:13px;margin-top:16px}
.ranking-scroll .guild{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid #ffffff12;padding:0 0 11px;text-align:left}.ranking-scroll .guild:last-child{border:0;padding-bottom:0}
.ranking-scroll .guild>a{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.ranking-scroll .guild-crest{width:30px;height:34px;flex-shrink:0;margin:0;font-size:17px}.ranking-scroll .guild-name{font-size:11px}.ranking-scroll .guild-stat{white-space:nowrap;margin:0;font-size:9px}
@media(max-width:700px){.hero{min-height:830px}.ranking-scroll{left:0;transform:translate(0,-8px) scaleY(.96);width:min(350px,calc(100vw - 48px))}.ranking-menu:hover .ranking-scroll,.ranking-menu:focus-within .ranking-scroll{transform:translate(0,0) scaleY(1)}.ranking-scroll .guild-heading>a{font-size:9px}.ranking-scroll .guild-name{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ranking-scroll{transition:none}}

/* Transform the composited portrait layer; keep the PNG mask static inside it. */
.portrait{position:absolute;width:54%;animation:portrait-float 8s ease-in-out infinite;will-change:transform;backface-visibility:hidden;isolation:isolate}
.portrait .character{position:relative;display:block;width:100%;height:auto;animation:none;will-change:auto;filter:none;object-fit:contain;mask-image:linear-gradient(to bottom,#000 0%,#000 76%,transparent 100%)}
.portrait.tsunade{animation-duration:8.4s;animation-delay:-2.5s}.portrait.mei{animation-duration:9.2s;animation-delay:-4.7s}.portrait.kushina,.portrait.kushina{animation-duration:8s}
@keyframes portrait-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-14px,0)}}
@media(prefers-reduced-motion:reduce){.portrait{animation:none;will-change:auto}}
