@import "https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&display=swap";.identity-setup{z-index:80;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#14283bf2;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.identity-setup-card{color:#fff;background:linear-gradient(150deg,#4a6f8a,#2d4a62);border:4px solid #fff4bc;border-radius:22px;gap:12px;width:min(380px,100%);padding:22px 20px 20px;display:grid;box-shadow:0 8px #1e3548,0 18px 32px #0008}.identity-setup-card>p{color:#ffe99b;letter-spacing:1.4px;margin:0;font:800 11px Arial}.identity-setup-card h2{color:#fff8d8;margin:0;font-size:24px;line-height:1.15}.identity-setup-card label{letter-spacing:.4px;color:#dcecf5;gap:5px;font:700 11px Arial;display:grid}.identity-setup-card input{color:#2a3340;background:#fffdf6;border:2px solid #fff6cb;border-radius:12px;padding:10px 12px;font:700 15px Arial}.identity-setup-error{color:#ffc9c9;font:700 12px Arial}.identity-setup-card>button.primary{color:#fff;letter-spacing:.8px;cursor:pointer;background:#79b84b;border:0;border-radius:12px;margin-top:4px;padding:12px;font:900 13px Arial;box-shadow:0 4px #4a7a2e}.ruby-anticipation{color:#ffeac5;border-bottom:1px solid #71575b;padding:12px 0}.ruby-anticipation-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.ruby-anticipation-heading b{letter-spacing:1px;font-size:10px}.ruby-anticipation-heading button{color:#ffe2a2;cursor:pointer;background:#342c38;border:1px solid #a48862;border-radius:5px;flex-shrink:0;padding:4px 6px;font:700 9px inherit}.ruby-anticipation-heading button:focus-visible{outline-offset:3px;outline:2px solid #83dbc5}.ruby-march-memory{align-items:center;gap:4px;margin:12px 0;display:flex}.ruby-march-memory i{color:#ffd684;background:#544047;border:1px solid #9a7966;border-radius:4px;place-items:center;width:19px;height:23px;font-style:normal;display:grid}.ruby-march-memory i.reinforce{color:#83dbc5;border-color:#619489}.ruby-march-memory i.empty{opacity:.35}.ruby-march-memory small{letter-spacing:.6px;margin-left:auto;font-size:8px}.ruby-anticipation p{margin:7px 0;font-size:12px;line-height:1.45}.ruby-anticipation>small{color:#cabbac;font-size:9px;line-height:1.5;display:block}.ruby-forecast-branches{border-left:1px solid #8b7464;gap:8px;margin:12px 0;padding-left:12px;display:grid;position:relative}.ruby-forecast-branches>div{color:#bce5da;align-items:center;gap:6px;font-size:10px;display:flex}.ruby-forecast-branches>div:before{content:"";background:#8b7464;width:8px;height:1px;margin-left:-12px}.ruby-forecast-branches .primary{color:#ffd684}.ruby-forecast-branches span{text-overflow:ellipsis;white-space:nowrap;width:83px;overflow:hidden}.ruby-forecast-branches i{background:#ffffff12;border-radius:4px;flex:1;height:4px;overflow:hidden}.ruby-forecast-branches em{background:#83dbc5;height:100%;transition:width .5s;display:block}.ruby-forecast-branches .primary em{background:#ffd684}.ruby-forecast-branches b{text-align:right;width:28px;font-size:10px}.ruby-forecast-verdict{background:#83dbc510;border:1px solid #698d83;border-radius:6px;margin-top:10px;padding:8px}.ruby-forecast-verdict.surprised{background:#ffd68410;border-color:#b48c62}.ruby-forecast-verdict b,.ruby-forecast-verdict span{font-size:9px;line-height:1.6;display:block}.ruby-forecast-verdict span{color:#d7cbbd}.ruby-forecast-response{border-left:2px solid #83dbc5;margin-top:9px;padding-left:8px}.ruby-forecast-response>span{letter-spacing:1px;color:#83dbc5;font-size:9px}@media (prefers-reduced-motion:reduce){.ruby-forecast-branches em{transition:none}}.ruby-forecast-scorecard{border-top:1px dashed #7d6460;margin-top:11px;padding-top:10px}.ruby-scorecard-heading{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.ruby-scorecard-heading span{letter-spacing:1px;color:#cabbac;font-size:9px}.ruby-scorecard-heading b{color:#ffd684;font-size:12px}.ruby-scorecard-marks{flex-wrap:wrap;gap:3px;margin:7px 0;display:flex}.ruby-scorecard-marks i{color:#ffd684;background:#544047;border:1px solid #9a7966;border-radius:3px;place-items:center;width:16px;height:16px;font-size:9px;font-style:normal;display:grid}.ruby-scorecard-marks i.hit{color:#b9f5e5;background:#83dbc51f;border-color:#619489}.ruby-scorecard-marks i.miss{color:#ffc9a1;background:#ffd6841a;border-color:#b48c62}.ruby-forecast-scorecard small{color:#cabbac;font-size:9px;line-height:1.5;display:block}.practice-guide{z-index:20;color:#fff6da;pointer-events:auto;background:#2a1840f2;border:3px solid #fff0a6;border-radius:18px;grid-template-columns:72px minmax(0,1fr);gap:10px;width:min(380px,100vw - 32px);padding:12px;display:grid;position:absolute;bottom:16px;left:16px;box-shadow:0 6px #1a0f28}.practice-guide-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:2px;display:flex}.practice-guide-spotlight{animation:1.35s ease-in-out infinite practice-spotlight}@keyframes practice-spotlight{0%,to{filter:brightness(1.05);box-shadow:0 6px #1a0f28,0 0 #ffe08a00}50%{filter:brightness(1.18);box-shadow:0 6px #1a0f28,0 0 0 8px #ffe08a55,0 0 28px #c9a0ff88}}.practice-guide img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 3px #210b1dcc);width:72px;height:88px}.practice-guide span{color:#ffe59b;letter-spacing:1px;font-size:9px;font-weight:800;display:block}.practice-guide p{color:#fff6da;margin:4px 0 10px;font-size:16px;font-weight:700;line-height:1.35}.practice-guide-hint{background:#1a1028cc;border-radius:10px;padding:8px 10px;color:#ffe59b!important;margin:-4px 0 10px!important;font-size:14px!important;font-weight:700!important}.practice-guide-hint em{color:#fff6da;font-style:normal;font-weight:800}.practice-guide-actions{justify-content:space-between;gap:6px;display:flex}.practice-guide button{color:#57243c;font:800 14px var(--kh-font,Arial, sans-serif);letter-spacing:.6px;cursor:pointer;background:#f0b850;border:0;border-radius:10px;padding:8px 10px;box-shadow:0 3px #aa6d39}.practice-guide button.quiet{background:#fff5d5;box-shadow:0 3px #9b765f}.practice-guide button.practice-guide-skip{box-shadow:none;color:#fff2d0;letter-spacing:.3px;background:#fff2;border-radius:7px;flex-shrink:0;padding:3px 6px;font-size:9px;position:static}.dragon-lab{z-index:60;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#210d1dcc;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.dragon-lab-card{color:#fff5d4;background:linear-gradient(150deg,#8f3348,#521f37);border:4px solid #ffe59b;border-radius:22px;width:min(720px,96vw);max-height:min(860px,94vh);padding:18px 18px 16px;position:relative;overflow:auto;box-shadow:0 8px #371326,0 20px 42px #10040ccc}.dragon-lab-close{color:#6b3041;width:34px;height:34px;font:800 22px/1 var(--kh-font,Arial, sans-serif);cursor:pointer;background:#fff5d5;border:0;border-radius:50%;position:absolute;top:10px;right:12px}.dragon-lab-card>header{align-items:center;gap:12px;margin-bottom:12px;padding-right:36px;display:flex}.dragon-lab-card>header>span{background:#ffd947;border-radius:14px;place-items:center;width:48px;height:48px;font-size:26px;display:grid}.dragon-lab-card h2{color:#fff;letter-spacing:1px;text-shadow:0 3px #57243c;margin:0;font-size:22px}.dragon-lab-card header p{color:#ffe99b;letter-spacing:.4px;margin:2px 0 0;font-size:11px}.dragon-lab-tabs{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.dragon-lab-tabs>button{color:#fff6da;font:800 11px var(--kh-font,Arial, sans-serif);letter-spacing:.4px;cursor:pointer;background:#441b2e;border:2px solid #ffe59b66;border-radius:12px;padding:8px 10px}.dragon-lab-tabs>button.on{background:#c74a55;border-color:#ffe59b}.dragon-lab-tabs>button>i{color:#ffc86a;letter-spacing:.8px;text-transform:uppercase;margin-left:6px;font-size:9px;font-style:normal}.dragon-lab-blurb{color:#ffe9c6;margin:0 0 10px;font-size:13px;line-height:1.4}.dragon-lab-stage{background:#2a1520;border:3px solid #ffe59b88;border-radius:16px;width:100%;height:min(360px,46vh);overflow:hidden}.dragon-lab-stage canvas{display:block;width:100%!important;height:100%!important}.dragon-lab-actions{justify-content:flex-end;margin-top:12px;display:flex}.dragon-lab-actions .primary{color:#57243c;font:800 13px var(--kh-font,Arial, sans-serif);letter-spacing:.6px;cursor:pointer;background:#f0b850;border:0;border-radius:12px;padding:10px 14px;box-shadow:0 4px #aa6d39}.dragon-lab-actions .primary:disabled{opacity:.55;cursor:default}.film-hub{z-index:80;color:#f2e8d8;background:radial-gradient(at 20% 0,#78281e59,#0000 50%),radial-gradient(at 80% 100%,#1e325066,#0000 45%),linear-gradient(160deg,#1a1410 0%,#0d1218 55%,#121018 100%);place-content:start center;padding:clamp(1.5rem,4vw,3rem) 1rem 2rem;font-family:Iowan Old Style,Palatino Linotype,Palatino,Georgia,serif;display:grid;position:fixed;inset:0;overflow:auto}.film-hub header{max-width:42rem;margin:0 auto 1.5rem}.film-hub header span{letter-spacing:.18em;opacity:.7;margin-bottom:.4rem;font-size:.7rem;display:block}.film-hub h1{letter-spacing:-.02em;margin:0 0 .5rem;font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700}.film-hub header p{opacity:.85;max-width:38rem;margin:0;font-size:.95rem;line-height:1.45}.film-hub header code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em}.film-hub ol{gap:.65rem;width:min(42rem,100%);margin:0 auto;padding:0;list-style:none;display:grid}.film-hub li{grid-template-columns:1fr auto;align-items:stretch;gap:.4rem .6rem;display:grid}.film-hub li>button{text-align:left;color:inherit;cursor:pointer;background:#fff8eb0f;border:1px solid #f2e8d82e;border-radius:10px;gap:.3rem;padding:.85rem 1rem;transition:background .15s,border-color .15s;display:grid}.film-hub li>button:hover{background:#fff8eb1f;border-color:#f2e8d866}.film-hub li strong{font-size:1.05rem}.film-hub li span{opacity:.82;font-family:system-ui,sans-serif;font-size:.88rem;line-height:1.35}.film-hub li em{letter-spacing:.04em;text-transform:uppercase;color:#e8b070;font-family:system-ui,sans-serif;font-size:.75rem;font-style:normal}.film-hub-copy{letter-spacing:.08em;text-transform:uppercase;color:#f2e8d88c;align-self:center;padding:.4rem;font-family:system-ui,sans-serif;font-size:.7rem;text-decoration:none}.film-hub-copy:hover{color:#f2e8d8}.film-hub footer{opacity:.65;max-width:42rem;margin:1.4rem auto 0;font-family:system-ui,sans-serif;font-size:.8rem}.film-hub footer code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.film-hub footer .quiet,.film-strip .quiet{color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;padding:0;text-decoration:underline}.film-strip{z-index:90;color:#f2e8d8;background:#0c0e12eb;border:1px solid #f2e8d833;border-radius:12px;width:min(22rem,100vw - 1.5rem);padding:.75rem .85rem;font-family:system-ui,sans-serif;position:fixed;bottom:.75rem;left:.75rem;box-shadow:0 12px 40px #00000073}.film-strip.collapsed{width:auto;box-shadow:none;background:0 0;border:none;padding:0;bottom:.55rem;left:.55rem}.film-strip.collapsed .film-strip-dot{cursor:pointer;width:10px;height:10px;box-shadow:none;background:#000;border:none;border-radius:50%;padding:0;display:block}.film-strip header{justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.35rem;display:flex}.film-strip header b{font-size:.95rem}.film-strip>p{opacity:.88;margin:0 0 .45rem;font-size:.8rem;line-height:1.35}.film-strip-paste{background:#ffffff0f;border:1px solid #f2e8d82e;border-radius:8px;grid-template-columns:1fr auto;align-items:start;gap:.4rem;margin:0 0 .55rem;padding:.45rem .5rem;display:grid}.film-strip-paste code{color:#f4e4c4;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.68rem;line-height:1.35}.film-strip-paste button{color:#fff;letter-spacing:.08em;cursor:pointer;background:#c45c3a;border:1px solid #f2e8d84d;border-radius:6px;padding:.35rem .5rem;font-size:.65rem;font-weight:700}.film-strip ul{color:#e8b070;margin:0 0 .55rem;padding-left:1rem;font-size:.72rem;line-height:1.35}.film-strip nav{grid-template-columns:1fr auto 1fr;gap:.35rem;display:grid}.film-strip nav button{color:inherit;letter-spacing:.06em;cursor:pointer;background:#ffffff0f;border:1px solid #f2e8d840;border-radius:8px;padding:.45rem .5rem;font-size:.72rem;font-weight:700}.film-strip nav button:disabled{opacity:.35;cursor:default}.film-strip nav button.primary{background:#c45c3a;border-color:#c45c3a}.film-strip nav button.hub{padding-inline:.65rem}.pf-overlay{z-index:220;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff6da;font-family:var(--kh-font,"Baloo 2", "Trebuchet MS", sans-serif);background:radial-gradient(at 50% 0,#b4465a59,#0000 55%),#121c28eb;place-items:start center;padding:22px 14px 36px;display:grid;position:fixed;inset:0;overflow:auto}.pf-card{color:#fff6da;background:linear-gradient(145deg,#2b4257,#1a2b3b 55%,#162232);border:5px solid #fff0a6;border-radius:26px;gap:18px;width:min(620px,100%);margin:0 auto;padding:22px 22px 24px;display:grid;box-shadow:0 8px #121e29,0 22px 48px #0a121c8c}.pf-card:before{content:"";position:absolute}.pf-card{position:relative}.pf-card:after{content:"";pointer-events:none;border:2px dashed #8fa8bf88;border-radius:18px;position:absolute;inset:9px}.pf-head,.pf-thanks,.pf-chips,.pf-scale,.pf-text,.pf-foot{z-index:1;position:relative}.pf-head p,.pf-thanks p{color:#ffe59b;font:800 11px/1 var(--kh-font,"Baloo 2", sans-serif);letter-spacing:1.6px;margin:0}.pf-head h1,.pf-thanks h1{color:#fff0b3;font:800 28px/1.1 var(--kh-font,"Baloo 2", sans-serif);letter-spacing:.3px;text-shadow:0 3px #3d2864;margin:6px 0 0}.pf-head span,.pf-thanks span{color:#e4d8ff;font:600 13px/1.4 var(--kh-font,"Baloo 2", sans-serif);margin-top:8px;display:block}.pf-chips,.pf-scale{border:0;margin:0;padding:0}.pf-chips legend,.pf-scale legend,.pf-text span{font:800 13px/1.3 var(--kh-font,"Baloo 2", sans-serif);color:#fff5c1;letter-spacing:.2px;margin-bottom:9px;display:block}.pf-chips div{flex-wrap:wrap;gap:8px;display:flex}.pf-chips button,.pf-scale-ticks button{color:#fff5c1;font:700 12px/1.25 var(--kh-font,"Baloo 2", sans-serif);cursor:pointer;text-align:left;background:#182838;border:3px solid #5a7794;border-radius:12px;padding:9px 11px;transition:transform .12s,filter .12s;box-shadow:0 2px #121e29}.pf-chips button:hover,.pf-scale-ticks button:hover{filter:brightness(1.08);transform:translateY(-2px)}.pf-chips button.on,.pf-scale-ticks button.on{color:#fff5ba;background:linear-gradient(145deg,#c74a55,#8a2f42);border-color:#fff0a6;box-shadow:0 3px #5a1c28}.pf-scale-ends{color:#cbbfe4;font:600 11px/1.2 var(--kh-font,"Baloo 2", sans-serif);justify-content:space-between;gap:12px;margin-bottom:7px;display:flex}.pf-scale-ticks{flex-wrap:wrap;gap:6px;display:flex}.pf-scale-ticks button{text-align:center;min-width:38px;padding:8px 0}.pf-text{gap:8px;display:grid}.pf-text textarea{box-sizing:border-box;resize:vertical;color:#fff6da;width:100%;min-height:72px;font:600 13px/1.4 var(--kh-font,"Baloo 2", sans-serif);background:#121c28;border:3px solid #5a7794;border-radius:14px;padding:10px 12px;box-shadow:inset 0 2px #0a121a}.pf-text textarea::placeholder{color:#8fa8bf}.pf-text textarea:focus{border-color:#f0b850;outline:none}.pf-foot{flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:2px;display:flex}.pf-primary{color:#57243c;font:800 13px/1 var(--kh-font,"Baloo 2", sans-serif);letter-spacing:.8px;cursor:pointer;background:linear-gradient(#ffbe48,#ee7035);border:0;border-radius:14px;padding:12px 18px;box-shadow:0 4px #a8452d}.pf-primary:hover{filter:brightness(1.06);transform:translateY(-2px)}.pf-primary:disabled{opacity:.45;cursor:not-allowed;filter:none;transform:none}.pf-quiet{color:#fff2d0;font:800 12px/1 var(--kh-font,"Baloo 2", sans-serif);letter-spacing:.5px;cursor:pointer;background:#ffffff20;border:0;border-radius:14px;padding:12px 14px}.pf-thanks{text-align:center;place-self:center;gap:12px}.pf-thanks .pf-primary{justify-self:center;margin-top:6px}@media (width<=520px){.pf-overlay{padding:12px 10px 28px}.pf-card{border-width:4px;border-radius:20px;padding:18px 14px 20px}.pf-head h1,.pf-thanks h1{font-size:22px}.pf-scale-ticks button{min-width:32px}}.kingdom-home{--kh-font:"Baloo 2","Trebuchet MS",sans-serif;--ink:#3c2434;width:100%;height:100%;font-family:var(--kh-font);color:var(--ink);isolation:isolate;background:#82a9cc;position:relative;overflow:hidden}.kingdom-home button{font-family:var(--kh-font);cursor:pointer}.kh-map{z-index:-2;position:absolute;inset:0}.clash-village-map,.clash-village-map canvas{width:100%;height:100%;display:block}.kh-map-vignette{pointer-events:none;z-index:-1;background:linear-gradient(90deg,#2837461f,#0000 25% 75%,#2837461f),linear-gradient(#0000 68%,#2d412d2e);position:absolute;inset:0}.kh-top-hud{z-index:4;align-items:center;display:flex;position:absolute;inset:14px 24px auto}.kh-player{color:#fff;text-align:left;background:linear-gradient(#2c455e,#1a2d3e);border:4px solid #fff4b6;border-radius:18px;align-items:center;gap:7px;min-width:182px;padding:7px 13px 7px 8px;display:flex;box-shadow:0 5px #121e2a,0 8px 12px #12243680}.kh-crown{color:#f36c2a;text-shadow:1px 2px #fff5a7;background:#ffd947;border-radius:50%;place-items:center;width:43px;height:43px;font-size:29px;display:grid}.kh-player b{font-size:28px;line-height:20px;display:block}.kh-player em{letter-spacing:.7px;color:#e4edff;font-size:11px;font-style:normal;display:block}.kh-resources{gap:9px;margin-left:auto;margin-right:18px;display:flex}.kh-resource{text-align:left;background:linear-gradient(#fff,#f3f0cf);border:4px solid #fff8cf;border-radius:17px;grid-template-rows:18px 23px;grid-template-columns:38px 1fr;align-items:center;column-gap:7px;min-width:145px;height:62px;padding:5px 32px 5px 7px;display:grid;position:relative;box-shadow:0 5px #b8ab78,0 8px 12px #173f6073}.kh-resource>span{border-radius:50%;grid-row:1/3;place-items:center;width:39px;height:39px;font-size:27px;display:grid}.kh-resource small{color:#886e4d;letter-spacing:.8px;font-size:10px}.kh-resource b{white-space:nowrap;font-size:20px;line-height:20px}.kh-resource strong{color:#fff;background:#4dc95b;border:2px solid #249141;border-radius:50%;place-items:center;width:25px;height:25px;font-size:21px;line-height:1;display:grid;position:absolute;top:16px;right:7px}.kh-gold>span{color:#fff6ae;text-shadow:0 2px #d88e18;background:#ffdc39}.kh-gems>span{color:#e3fbff;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);background:#59c8f5}.kh-stars>span{color:#fff5a5;clip-path:polygon(50% 0,62% 34%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 34%);background:#ff922e}.kh-header-actions{gap:9px;display:flex}.kh-header-actions button{color:#6d5f52;background:linear-gradient(#fff,#ded7b9);border:4px solid #fff4bd;border-radius:50%;place-items:center;width:48px;height:48px;font-size:25px;display:grid;box-shadow:0 4px #9e936f}.kh-quest{z-index:3;background:#fffef0ee;border:4px solid #fff7cd;border-radius:17px;width:236px;padding:13px 15px 12px;position:absolute;top:118px;left:25px;box-shadow:0 5px #b5a978,0 8px 12px #173f6055}.kh-quest p,.kh-kingdom-card p{letter-spacing:1.2px;color:#927a55;margin:0;font-size:11px;font-weight:800}.kh-quest>div{align-items:center;gap:9px;margin:5px 0;display:flex}.kh-quest>div>span{color:#fff;background:#f65740;border:2px solid #c62e31;border-radius:50%;place-items:center;width:28px;height:28px;font-size:19px;display:grid}.kh-quest section b,.kh-quest section small{line-height:16px;display:block}.kh-quest section small{color:#806e62;font-size:11px}.kh-quest footer{background:#dfd5ac;border-radius:8px;height:8px;position:relative}.kh-quest footer i{border-radius:inherit;background:#60c847;width:66%;height:100%;display:block}.kh-quest footer b{color:#5a7853;font-size:11px;position:absolute;bottom:7px;right:0}.kh-kingdom-card{text-align:center;z-index:2;background:linear-gradient(145deg,#fffef7f5,#fffad7ed);border:5px solid #fff8d0;border-radius:27px;width:234px;height:174px;padding:25px 15px 12px;position:absolute;bottom:26px;left:25px;box-shadow:0 7px #bb9e5a,0 17px 30px #173f606b}.kh-kingdom-card:after{content:"";pointer-events:none;border:2px dashed #e5c96d;border-radius:20px;position:absolute;inset:8px}.kh-flag{clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);filter:drop-shadow(0 3px #b52a35);color:#ffeb71;background:#f64d3e;width:31px;height:40px;font-size:21px;line-height:28px;position:absolute;top:-23px;left:50%;transform:translate(-50%)}.kh-kingdom-card h1{letter-spacing:-.5px;color:#ef4937;text-shadow:0 2px #ffa167;margin:0;font-size:23px;line-height:21px;position:relative}.kh-castle{background:#f8ecbd;border:3px solid #e59444;border-radius:10px 10px 5px 5px;width:92px;height:70px;margin:5px auto 2px;position:relative;box-shadow:inset 0 0 0 4px #fff7da}.kh-castle i{background:#ffe7a8;border:3px solid #d9853f;border-bottom:0;width:27px;height:49px;position:absolute;bottom:0}.kh-castle i:before{content:"";clip-path:polygon(50% 0,100% 85%,100% 100%,0 100%,0 85%);filter:drop-shadow(0 2px #bc3334);background:#ed513e;width:33px;height:23px;position:absolute;top:-18px;left:-5px}.kh-castle i:first-child{left:-8px}.kh-castle i:nth-child(2){background:#ffebad;width:34px;height:61px;left:28px}.kh-castle i:nth-child(3){right:-8px}.kh-castle b{background:#744638;border:3px solid #ae6337;border-bottom:0;border-radius:15px 15px 0 0;width:18px;height:29px;position:absolute;bottom:0;left:34px}.kh-kingdom-card footer{color:#4a8c42;background:#ddf4cc;border-radius:20px;align-items:center;gap:5px;padding:3px 8px;font-size:9px;display:inline-flex;position:relative}.kh-kingdom-card footer span{background:#44bf4e;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 2px #a7e29f}.kh-event{color:#fff;z-index:3;background:linear-gradient(#344d66,#213447);border:4px solid #f7d96e;border-radius:18px;align-items:center;gap:10px;width:227px;padding:7px;display:flex;position:absolute;top:132px;right:26px;box-shadow:0 5px #142230,0 9px 12px #12243680}.kh-event>div{color:#fff5b1;text-shadow:0 3px #b53630;background:radial-gradient(circle at 25% 25%,#fff 0 5%,#0000 6%),#e95440;border:3px solid #ffc35a;border-radius:12px;place-items:center;width:60px;height:59px;font-size:43px;line-height:1;display:grid}.kh-event small,.kh-event b,.kh-event em{font-style:normal;line-height:13px;display:block}.kh-event small{color:#fbde8d;letter-spacing:.5px;font-size:9px}.kh-event b{font-size:15px;line-height:14px}.kh-event em{color:#fbdc8b;font-size:11px}.kh-event button{color:#813a40;background:#ffcf39;border:0;border-radius:50%;width:27px;height:27px;margin-left:auto;font-size:29px;line-height:20px}.kh-map-key{color:#5d5147;z-index:3;background:#fffdf0e8;border-radius:14px;width:236px;padding:10px 12px;font-size:10px;line-height:18px;position:absolute;top:226px;right:25px;box-shadow:0 4px #b5a978}.kh-map-key>b{color:#927a55;letter-spacing:1px;font-size:10px;display:block}.kh-map-key div{white-space:nowrap}.kh-map-key span{color:#fff;background:#596e7b;border-radius:50%;place-items:center;width:15px;height:15px;margin:0 3px 0 5px;font-size:9px;font-weight:800;display:inline-grid}.kh-map-key div span:first-child{margin-left:0}.kh-dock{z-index:4;align-items:end;gap:14px;display:flex;position:absolute;bottom:21px;left:50%;transform:translate(-50%)}.kh-dock-item{color:#fff;text-align:center;text-shadow:0 3px #724e31;background:0 0;border:0;width:83px;position:relative}.kh-dock-icon{background:linear-gradient(#ffbe48,#ee7035);border:4px solid #fff5c3;border-radius:17px;place-items:center;width:62px;height:57px;margin:auto;font-size:31px;line-height:1;display:grid;box-shadow:0 5px #a8452d,0 9px 9px #66442373}.kh-dock-item:nth-child(2) .kh-dock-icon{background:linear-gradient(#6fd6f1,#2989d9);box-shadow:0 5px #1664a9,0 9px 9px #66442373}.kh-dock-item:nth-child(4) .kh-dock-icon{background:linear-gradient(#91d95b,#47a942);box-shadow:0 5px #318436,0 9px 9px #66442373}.kh-dock-item:nth-child(5) .kh-dock-icon{background:linear-gradient(#e989c9,#b55aa7);box-shadow:0 5px #7e397e,0 9px 9px #66442373}.kh-dock-item b{letter-spacing:.3px;margin-top:4px;font-size:13px;display:block}.kh-dock-item i{color:#fff;width:22px;height:22px;text-shadow:none;background:#f44b41;border:2px solid #fff6d3;border-radius:50%;font-size:13px;font-style:normal;position:absolute;top:-6px;right:7px}.kh-battle{color:#fff;text-shadow:0 3px #a72f30;background:linear-gradient(#f86b49,#d83435);border:5px solid #fff5c3;border-radius:30px;width:158px;height:99px;position:relative;top:-18px;box-shadow:0 7px #9f2830,0 12px 12px #68452585}.kh-battle span{color:#ffec79;text-shadow:0 3px #b94435;height:39px;font-size:35px;line-height:43px;display:block}.kh-battle b{letter-spacing:.6px;font-size:25px;line-height:21px;display:block}.kh-battle small{color:#ffe5a3;letter-spacing:1px;font-size:10px;display:block}.kh-toast{color:#fff;opacity:0;pointer-events:none;z-index:6;background:#3b245e;border:3px solid #f6d45f;border-radius:15px;padding:10px 17px;transition:all .22s;position:absolute;bottom:155px;left:50%;transform:translate(-50%,15px);box-shadow:0 4px #251542}.kh-toast.visible{opacity:1;transform:translate(-50%)}.kingdom-home button{transition:transform .16s cubic-bezier(.2,.9,.25,1),filter .16s,box-shadow .16s}.kingdom-home button:hover{filter:brightness(1.07);transform:translateY(-4px)scale(1.09)}.kingdom-home .kh-battle:hover{transform:translateY(-21px)scale(1.1)}.kingdom-home button:active{box-shadow:none;transform:translateY(2px)scale(.98)!important}.kingdom-home,.kingdom-home *{cursor:auto!important}.kh-player,.kh-resource,.kh-header-actions button,.kh-dock-icon,.kh-battle{border:0}.home-panel-overlay{z-index:40;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#17304491;place-items:center;animation:.2s ease-out both home-panel-in;display:grid;position:absolute;inset:0}.home-panel-card{color:#fff;background:linear-gradient(145deg,#2b4257,#1a2b3b);border:5px solid #fff0a6;border-radius:26px;width:min(480px,100% - 34px);padding:19px 20px 21px;position:relative;box-shadow:0 8px #121e29,0 20px 36px #12203199}.home-panel-card:before{content:"";pointer-events:none;border:2px dashed #8fa8bf;border-radius:18px;position:absolute;inset:8px}.home-panel-card header{align-items:center;gap:10px;margin-bottom:13px;padding-right:42px;display:flex;position:relative}.home-panel-card header>span{color:#7f3d49;background:#f4bf45;border-radius:50%;place-items:center;width:45px;height:45px;font-size:27px;display:grid;box-shadow:0 3px #b7742f}.home-panel-card h2,.home-panel-card p{margin:0}.home-panel-card h2{color:#fff0a9;text-shadow:0 3px #3d2864;font-size:25px;line-height:24px}.home-panel-card header p{letter-spacing:.8px;color:#e4d8ff;font-size:10px}.home-panel-close{z-index:2;color:#fff;background:#ed5a4b;border:3px solid #fff1bd;border-radius:50%;width:35px;height:35px;font-size:25px;line-height:1;position:absolute;top:12px;right:12px;box-shadow:0 4px #9d3b40}.home-panel-cards{grid-template-columns:repeat(3,1fr);gap:9px;display:grid;position:relative}.home-panel-cards article,.home-panel-roster article{color:#fff;text-align:center;background:#182838;border:3px solid #5a7794;border-radius:15px}.home-panel-cards article{justify-items:center;padding:11px 6px 9px;display:grid}.home-panel-cards i{background:#ffffff16;border-radius:14px;place-items:center;width:48px;height:48px;margin-bottom:5px;font-size:30px;font-style:normal;display:grid}.home-panel-cards b,.home-panel-cards small{display:block}.home-panel-cards b{color:#fff5c1;font-size:11px}.home-panel-cards small{color:#cbbfe4;margin:3px 0 7px;font-size:9px}.home-panel-cards button,.home-panel-friends button{color:#65344b;background:#f1bb4a;border:0;border-radius:9px;padding:5px 9px;font:800 9px inherit;box-shadow:0 2px #b7742f}.home-panel-roster{gap:7px;display:grid;position:relative}.home-panel-roster article{text-align:left;align-items:center;gap:10px;padding:7px 10px;display:flex}.home-panel-roster i{color:#ffe276;background:#ffffff16;border-radius:12px;place-items:center;width:38px;height:38px;font-size:23px;font-style:normal;display:grid}.home-panel-roster span{flex:1}.home-panel-roster b,.home-panel-roster small{display:block}.home-panel-roster b{color:#fff5c1;font-size:12px}.home-panel-roster small{color:#cbbfe4;margin-top:2px;font-size:9px}.home-panel-roster em{color:#65344b;background:#f1bb4a;border-radius:50%;place-items:center;width:30px;height:30px;font-size:14px;font-style:normal;font-weight:800;display:grid}.home-panel-friends article{background:#1d3042}.home-panel-friends button{margin-left:auto}.home-panel-friends em{display:none}@keyframes home-panel-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.kh-gem-spend-layer{z-index:120;pointer-events:none;position:fixed;inset:0;overflow:visible}.kh-gem-spend{object-fit:contain;filter:drop-shadow(0 2px 3px #1a283866);width:28px;height:28px;animation:.78s cubic-bezier(.2,.8,.2,1) forwards kh-gem-spend-fly;animation-delay:var(--delay,0s);opacity:0;will-change:transform,opacity;margin:-14px 0 0 -14px;position:fixed}@keyframes kh-gem-spend-fly{0%{opacity:0;transform:translate(0)scale(.25)rotate(0)}18%{opacity:1;transform:translate(var(--pop-x),var(--pop-y)) scale(1.05) rotate(calc(var(--spin) * .35))}32%{opacity:1;transform:translate(var(--pop-x),calc(var(--pop-y) - 6px)) scale(1.08) rotate(calc(var(--spin) * .5))}to{opacity:0;transform:translate(var(--to-x),var(--to-y)) scale(.15) rotate(var(--spin))}}.kh-currency.gems{overflow:visible}.kh-gem-spend-flash{z-index:2;color:#c74452;font:900 13px/1 var(--kh-font);letter-spacing:.2px;text-shadow:0 1px #fff8;pointer-events:none;animation:.9s forwards kh-gem-spend-flash;position:absolute;bottom:-2px;left:50%}@keyframes kh-gem-spend-flash{0%{opacity:0;transform:translate(-50%,6px)scale(.8)}18%{opacity:1;transform:translate(-50%,-10px)scale(1.05)}to{opacity:0;transform:translate(-50%,-22px)scale(.9)}}@media (prefers-reduced-motion:reduce){.kh-gem-spend,.kh-gem-spend-flash{opacity:0;animation:none}}.potion-warn-overlay{z-index:45;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#173044a6;place-items:center;padding:16px;animation:.2s ease-out both home-panel-in;display:grid;position:absolute;inset:0}.potion-warn-card{color:#fff;background:linear-gradient(155deg,#3a1f2f,#1f1422 55%,#2a1830);border:5px solid #fff0a6;border-radius:26px;width:min(420px,100% - 24px);padding:22px 22px 20px;position:relative;box-shadow:0 8px #1a0f18,0 22px 36px #120c1899}.potion-warn-card:before{content:"";pointer-events:none;border:2px dashed #c9a06a88;border-radius:18px;position:absolute;inset:8px}.potion-warn-close{z-index:2;color:#fff;background:#ed5a4b;border:3px solid #fff1bd;border-radius:50%;width:35px;height:35px;font-size:25px;line-height:1;position:absolute;top:12px;right:12px;box-shadow:0 4px #9d3b40}.potion-warn-card>header{align-items:center;gap:12px;margin-bottom:14px;padding-right:40px;display:flex;position:relative}.potion-warn-card>header>span{background:#f4bf45;border-radius:50%;place-items:center;width:48px;height:48px;font-size:26px;display:grid;box-shadow:0 3px #b7742f}.potion-warn-card>header h2{color:#fff0a9;text-shadow:0 3px #3d2864;margin:0;font-size:24px;line-height:1.05}.potion-warn-card>header p{color:#f0d4a8;letter-spacing:.9px;margin:3px 0 0;font-size:10px;font-weight:800}.potion-warn-body{background:#ffffff0d;border:2px solid #ffe59b55;border-radius:14px;gap:10px;margin:0 0 18px;padding:12px 14px;display:grid;position:relative}.potion-warn-body p{color:#f7efe4;margin:0;font-size:14px;font-weight:700;line-height:1.45}.potion-warn-body p:first-child{color:#ffe99b;font-size:16px;font-weight:800;line-height:1.3}.potion-warn-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid;position:relative}.potion-warn-actions button{min-height:48px;font:800 15px/1.1 var(--kh-font);letter-spacing:.3px;border:0;border-radius:14px;padding:10px 12px}.potion-warn-buy{color:#57243c;background:linear-gradient(#ffe59b,#f0b850);box-shadow:0 4px #aa6d39}.potion-warn-play{color:#fff8e8;text-shadow:0 2px #a72f30;background:linear-gradient(#f86b49,#d83435);box-shadow:0 4px #9f2830}@media (width<=480px){.potion-warn-card{border-radius:22px;padding:18px 16px 16px}.potion-warn-card>header h2{font-size:20px}.potion-warn-body p{font-size:13px}.potion-warn-body p:first-child{font-size:15px}.potion-warn-actions{gap:8px}.potion-warn-actions button{border-radius:12px;min-height:44px;font-size:13px}}.battle-loading{z-index:50;background:linear-gradient(#65cceb 0%,#96dbef 55%,#6bb46b 56%,#4f9862 100%);animation:.52s cubic-bezier(.2,.85,.24,1) both battle-screen-in;position:absolute;inset:0;overflow:hidden}.battle-sky-shine{background:radial-gradient(circle at 50% 32%,#ffffffa8,#0000 26%),linear-gradient(90deg,#4f9cc422,#0000 28% 72%,#4f9cc422);position:absolute;inset:0}.battle-cloud{filter:drop-shadow(0 12px #4c8f9670);background:#f7fcfa;border-radius:50%;width:37vw;max-width:520px;height:150px;animation:.7s cubic-bezier(.2,.9,.25,1) .1s both battle-cloud-in;position:absolute;bottom:-25px}.battle-cloud:before,.battle-cloud:after,.battle-cloud i{content:"";background:inherit;border-radius:50%;position:absolute}.battle-cloud:before{width:55%;height:120%;bottom:0;left:10%}.battle-cloud:after{width:48%;height:100%;bottom:0;right:5%}.battle-cloud i:first-child{width:42%;height:86%;top:-40%;left:32%}.battle-cloud i:nth-child(2){width:31%;height:69%;top:-18%;left:5%}.battle-cloud i:nth-child(3){width:25%;height:55%;top:-10%;right:4%}.battle-cloud-left{transform-origin:0 100%;left:-5%}.battle-cloud-right{transform-origin:100% 100%;animation-delay:.18s;right:-5%}.battle-character{filter:drop-shadow(0 10px 7px #24556a66);grid-template-columns:1fr;justify-items:center;width:145px;height:205px;animation:.58s cubic-bezier(.14,1.35,.3,1) .48s both battle-pop;display:grid;position:absolute;bottom:118px}.battle-helmet{z-index:2;color:#f1d66b;text-shadow:0 2px #76513e;background:#5d88a5;border:5px solid #324f63;border-radius:50% 50% 42% 42%;place-items:center;width:86px;height:72px;font-size:43px;line-height:1;display:grid}.battle-face{background:#e9b079;border:4px solid #9e6345;border-radius:45%;width:57px;height:53px;position:absolute;top:51px}.battle-body{color:#f9edab;text-shadow:0 3px #35526f;background:#5b9ac9;border:5px solid #395e8d;border-radius:44% 44% 19% 19%;place-items:center;width:118px;height:112px;font-size:42px;display:grid;position:absolute;bottom:0}.battle-knight{transform-origin:bottom;left:17%}.battle-scout{animation-delay:.59s;right:17%}.battle-scout .battle-helmet{color:#fff8bc;background:#e0b64b;border-color:#805844}.battle-scout .battle-body{background:#d86b4e;border-color:#853d42}.battle-loading-copy{text-align:center;width:330px;animation:.56s cubic-bezier(.14,1.35,.3,1) .88s both battle-pop;position:absolute;top:43%;left:50%;transform:translate(-50%,-50%)}.battle-loading-copy p{color:#455e72;letter-spacing:2px;margin:0;font-size:13px}.battle-loading-copy h2{color:#e85643;text-shadow:0 3px #ffbd83;background:#fffdf2;border-radius:26px;margin:4px 0;padding:8px 20px;font-size:43px;line-height:1;box-shadow:0 6px #9d8765,0 10px 14px #24556a44}.battle-loading-copy h2 span{letter-spacing:3px;animation:1.2s steps(4,end) infinite battle-dots;display:inline-block}.battle-loading-copy small{color:#fffaf0;letter-spacing:1.6px;text-shadow:0 2px #426d73;font-size:11px}.battle-back{color:#596273;background:#fffdf1;border:0;border-radius:20px;align-items:center;gap:6px;padding:5px 14px;font-size:25px;font-weight:800;display:flex;position:absolute;top:22px;left:24px;box-shadow:0 4px #8d8370}.battle-back span{letter-spacing:.6px;font-size:11px}.battle-loading.closing{animation:.68s ease-in both battle-screen-out}.battle-loading.closing .battle-cloud,.battle-loading.closing .battle-character,.battle-loading.closing .battle-loading-copy{animation-direction:reverse;animation-delay:0s}@keyframes battle-screen-in{0%{opacity:0;transform:scale(1.04)}to{opacity:1;transform:scale(1)}}@keyframes battle-screen-out{to{opacity:0;transform:scale(1.03)}}@keyframes battle-cloud-in{0%{opacity:0;transform:translateY(230px)scale(.7)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes battle-pop{0%{opacity:0;transform:translateY(34px)scale(.35)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes battle-dots{to{width:28px}}@media (width<=700px){.battle-character{bottom:95px;transform:scale(.72)}.battle-knight{left:3%}.battle-scout{right:3%}.battle-loading-copy{top:40%;transform:translate(-50%,-50%)scale(.82)}.battle-cloud{width:53vw}.battle-back{top:12px;left:12px}}@media (width<=820px){.kh-top-hud{inset:10px 12px auto}.kh-player{min-width:118px;padding:5px 8px}.kh-crown{width:34px;height:34px;font-size:22px}.kh-player b{font-size:22px}.kh-player em{font-size:8px}.kh-resources{gap:4px;margin-right:7px}.kh-resource{border-width:3px;grid-template-columns:29px 1fr;min-width:0;height:48px;padding:4px}.kh-resource>span{width:29px;height:29px;font-size:18px}.kh-resource small,.kh-resource strong{display:none}.kh-resource b{font-size:14px}.kh-header-actions{gap:3px}.kh-header-actions button{border-width:3px;width:36px;height:36px;font-size:18px}.kh-quest{transform-origin:0 0;top:92px;left:12px;transform:scale(.83)}.kh-event{transform-origin:100% 0;top:89px;right:10px;transform:scale(.82)}.kh-kingdom-card{transform-origin:0 100%;bottom:90px;left:12px;transform:scale(.82)}.kh-dock{gap:5px;bottom:12px}.kh-dock-item{width:58px}.kh-dock-icon{border-radius:13px;width:48px;height:45px;font-size:25px}.kh-dock-item b{font-size:10px}.kh-battle{border-radius:24px;width:122px;height:81px;top:-12px}.kh-battle span{height:31px;font-size:28px;line-height:34px}.kh-battle b{font-size:20px;line-height:17px}.kh-battle small{font-size:8px}}@media (width<=560px){.kh-resource:nth-child(3){display:none}.kh-player{min-width:96px}.kh-player em{display:none}.kh-quest{transform:scale(.69)}.kh-event{transform:scale(.68)}.kh-kingdom-card{transform-origin:0 100%;bottom:83px;left:6px;transform:scale(.62)}.kh-dock{gap:1px}.kh-dock-item{width:49px}.kh-dock-icon{width:43px;height:41px;font-size:22px}.kh-battle{width:108px;height:76px}.kh-dock-item b{font-size:9px}}.kh-header-actions button.music-awaiting-gesture{color:#9a6210;filter:brightness(1.08);background:linear-gradient(#fff7c9,#e9bf52);border-color:#ffe17a;animation:.9s ease-in-out infinite music-gesture-pulse}@keyframes music-gesture-pulse{0%,to{box-shadow:0 4px #9e936f,0 0 #ffd45100}50%{box-shadow:0 4px #9e936f,0 0 0 10px #ffd45188}}.home-panel-friends button:disabled{opacity:.82;text-align:center;max-width:112px;line-height:1.15;cursor:default!important}.kh-tutorial{z-index:80;pointer-events:none;opacity:0;background:0 0;position:absolute;inset:0}.kh-tutorial.visible{opacity:1;transition:opacity .35s}.kh-tutorial:before{display:none}.kh-tutorial-card{color:#fff6da;pointer-events:auto;text-align:left;background:linear-gradient(145deg,#713b82,#3c285c);border:2px solid #ffe59b;border-radius:12px;width:min(300px,100% - 24px);max-height:none;padding:8px 10px;position:absolute;inset:78px auto auto 50%;overflow:visible;transform:translate(-50%);box-shadow:0 4px #241735,0 8px 16px #140b1c88}.kh-tutorial-card>span{color:#ffe59b;letter-spacing:.6px;font-size:9px;font-weight:800;display:block}.kh-tutorial-card h2{color:#fff0b3;letter-spacing:.2px;margin:1px 0 3px;font-size:14px;line-height:1.1}.kh-tutorial-card p{color:#f8e9dc;margin:0;font-size:12px;line-height:1.3}.kh-tutorial-card>div{justify-content:flex-end;gap:6px;margin-top:6px;display:flex}.kh-tutorial-card button{color:#fff2d0;font:800 11px var(--kh-font);letter-spacing:.4px;background:#ffffff20;border:0;border-radius:8px;padding:5px 9px}.kh-tutorial-card button.primary{color:#57243c;background:#f0b850;box-shadow:0 2px #aa6d39}.kh-tutorial-target{z-index:81!important;outline-offset:5px!important;filter:drop-shadow(0 0 8px #ffd34d)!important;outline:3px solid #ffe59b!important}@media (width<=700px){.kh-tutorial-card{width:min(260px,100% - 20px);inset:64px auto auto 50%;transform:translate(-50%)}.kh-tutorial-card h2{font-size:13px}.kh-tutorial-card p{font-size:11px;line-height:1.25}.kh-tutorial-card>div{margin-top:6px}.kh-tutorial-card button{padding:5px 8px;font-size:11px}}.music-off-icon{line-height:1;display:inline-block;position:relative}.music-off-icon:after{content:"";background:#8a3f48;border-radius:3px;height:3px;position:absolute;top:50%;left:-3px;right:-3px;transform:rotate(-42deg);box-shadow:0 1px #fff1cf}.sfx-mark{color:#6b3041;place-items:center;width:22px;height:22px;display:grid;position:relative}.sfx-mark svg{width:22px;height:22px;display:block}.sfx-mark path{fill:currentColor}.sfx-mark .sfx-waves{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round}.sfx-mark-off{color:#8a3f48}.sfx-mark-off .sfx-waves{display:none}.sfx-mark-off:after{content:"";background:#8a3f48;border-radius:3px;height:3px;position:absolute;top:50%;left:-1px;right:-1px;transform:rotate(-42deg);box-shadow:0 0 0 1px #fff4e4}.kh-header-actions button.sfx-off,.ruby-sfx-toggle.sfx-off{color:#8a3f48;background:linear-gradient(#e6d4d0,#c9b0ac);box-shadow:inset 0 0 0 3px #a85a5a,0 4px #8d7364}.home-panel-card{border:5px solid #fff0a6}.home-panel-card:before{border-color:#cbb2ed;display:block}.battle-loading{isolation:isolate;opacity:1;background:#2b1b2c}.battle-loading:after{z-index:1;content:"";pointer-events:none;background:linear-gradient(#160d1d1c 48%,#160d1dcc 100%);position:absolute;inset:0}.battle-loading-art{z-index:0;object-fit:cover;object-position:center;width:100%;height:100%;position:absolute;inset:0}.battle-loading-copy{z-index:2;color:#fff;text-shadow:0 3px #351c32;width:min(480px,100% - 40px);animation:none;top:auto;bottom:30px;transform:translate(-50%)}.battle-loading-copy h2{box-shadow:none;color:#fff0b3;text-shadow:0 3px #7d3c3c;background:0 0;margin:0;padding:0;font-size:30px;line-height:1}.battle-loading-progress{background:#2b1830cc;border:2px solid #fff0b3;border-radius:9px;width:100%;height:12px;margin-top:13px;position:relative;overflow:hidden;box-shadow:0 3px #391d30}.battle-loading-progress span{border-radius:inherit;background:linear-gradient(90deg,#ef5a56,#ffe082);width:0;height:100%;animation:2.2s linear forwards battle-loading-progress;display:block;box-shadow:inset 0 1px #fff8c5}@keyframes battle-loading-progress{0%{width:0}to{width:100%}}.battle-loading.closing{pointer-events:none;animation:.2s ease-in forwards battle-loading-fade!important}@keyframes battle-loading-fade{0%{opacity:1}to{opacity:0}}.kingdom-home.entering .kh-top-hud,.kingdom-home.entering .kh-quest,.kingdom-home.entering .kh-kingdom-card,.kingdom-home.entering .kh-builder,.kingdom-home.entering .kh-builder-toggle{animation:.6s cubic-bezier(.2,.9,.25,1) both kingdom-ui-enter}@keyframes kingdom-ui-enter{0%{opacity:0;scale:.78}to{opacity:1;scale:1}}@keyframes kingdom-button-pop{0%{opacity:0;scale:0}65%{opacity:1;scale:1.14}82%{scale:.95}to{opacity:1;scale:1}}.kh-builder-list>div.kh-tutorial-target{position:relative}.kh-currencies{align-items:center;gap:5px;margin-left:auto;margin-right:10px;display:flex}.kh-currency{color:#6d5f52;background:#fff9df;border:3px solid #fff4bd;border-radius:13px;grid-template-rows:13px 17px;grid-template-columns:25px auto;align-items:center;column-gap:4px;min-width:76px;padding:4px 7px;display:grid;box-shadow:0 3px #9e936f}.kh-currency i{border-radius:50%;grid-row:1/3;place-items:center;width:23px;height:23px;font-size:15px;font-style:normal;display:grid}.kh-currency small{letter-spacing:.7px;font-size:7px}.kh-currency b{white-space:nowrap;font-size:12px;line-height:12px}.kh-currency.gems i{color:#e9fcff;background:#58c8f5}.kh-currency.stars i{color:#fff6ad;background:#ff9c38}.home-shop-earn{color:#f3e7c8;letter-spacing:.2px;background:#1a2b3b99;border-radius:12px;margin:0 0 10px;padding:8px 10px;font-size:11px;line-height:1.35;position:relative}.home-shop{gap:12px;max-height:64vh;padding-right:2px;display:grid;position:relative;overflow:auto}.home-shop section h3{color:#f5ca67;letter-spacing:1px;text-align:left;margin:0 0 5px;font-size:10px}.home-shop .home-panel-cards{grid-template-columns:repeat(3,1fr)}.home-shop .home-panel-cards article{padding:8px 4px 7px}.home-shop .home-panel-cards i{width:39px;height:39px;font-size:24px}.home-shop .home-panel-cards b{font-size:9px}.home-shop .home-panel-cards small{min-height:18px;font-size:8px}.home-shop .home-panel-cards button{color:#fff4da;white-space:nowrap;background:#a985b8;font-size:8px;box-shadow:0 2px #72547f}@media (width<=820px){.kh-currencies{gap:3px;margin-right:5px}.kh-currency{border-width:2px;grid-template-columns:20px auto;min-width:58px;padding:3px 4px}.kh-currency i{width:19px;height:19px;font-size:12px}.kh-currency small{font-size:6px}.kh-currency b{font-size:10px}}@media (width<=560px){.kh-currencies{gap:2px}.kh-currency{place-items:center;width:34px;min-width:0;padding:3px;display:grid}.kh-currency i{grid-row:auto}.kh-currency small,.kh-currency b{display:none}}.kh-currencies{gap:4px;width:188px;margin-left:auto;margin-right:10px;display:grid}.kh-currency{box-sizing:border-box;color:#fff;text-shadow:0 2px #263126;background:linear-gradient(90deg,#ffffff48,#ffffff18);border:3px solid #fff7d0;border-radius:12px;width:170px;min-width:0;height:35px;padding:3px 37px 3px 10px;display:block;position:relative;box-shadow:0 3px #75614b}.kh-currency i{filter:drop-shadow(0 4px #34251c);border:3px solid #38281a;border-radius:50%;place-items:center;width:47px;height:47px;font-size:27px;font-style:normal;line-height:1;display:grid;position:absolute;top:50%;right:-19px;transform:translateY(-50%)}.kh-currency.coins i{color:#fff5a2;background:radial-gradient(circle at 34% 27%,#fff8a8 0 8%,#ffe35b 28%,#d89519 76%)}.kh-currency.gems i{color:#ffd9ff;background:radial-gradient(circle at 34% 24%,#fff 0 6%,#e86bff 24%,#a90fc8 72%);border-radius:45% 55% 48% 52%}.kh-currency.stars i{color:#f5ffae;background:linear-gradient(145deg,#d9ff68,#70ce16 62%,#347d10);border-radius:35%}.kh-currencies+.kh-header-actions{margin-left:0}@media (width<=820px){.kh-currencies{gap:2px;width:132px;margin-right:5px}.kh-currency{border-width:2px;border-radius:9px;width:118px;height:28px;padding:2px 27px 2px 6px}.kh-currency small{font-size:6px;line-height:7px}.kh-currency b{font-size:12px;line-height:13px}.kh-currency i{border-width:2px;width:34px;height:34px;font-size:19px;right:-14px}}@media (width<=560px){.kh-currencies{width:94px}.kh-currency{width:82px;height:22px;padding-right:18px}.kh-currency small{font-size:5px;line-height:5px}.kh-currency b{font-size:9px;line-height:10px}.kh-currency i{width:26px;height:26px;font-size:14px;right:-10px}}.kh-currencies{align-items:center;gap:5px;width:auto;margin-left:auto;margin-right:10px;display:flex}.kh-currency{box-sizing:border-box;color:#6d5f52;width:auto;min-width:76px;height:auto;text-shadow:none;background:#fff9df;border:3px solid #fff4bd;border-radius:13px;grid-template-rows:13px 17px;grid-template-columns:25px auto;align-items:center;column-gap:4px;padding:4px 7px;display:grid;position:relative;box-shadow:0 3px #9e936f}@media (width<=820px){.kh-currencies{gap:3px;width:auto;margin-right:5px}.kh-currency{border-width:2px;grid-template-rows:10px 13px;grid-template-columns:20px auto;min-width:58px;height:28px;padding:3px 4px}.kh-currency i{width:19px;height:19px;font-size:12px}.kh-currency small{font-size:6px}.kh-currency b{font-size:10px;line-height:10px}}@media (width<=560px){.kh-currencies{gap:2px}.kh-currency{grid-template-rows:9px 11px;grid-template-columns:18px auto;width:auto;min-width:52px;height:26px;padding:2px 3px}.kh-currency i{width:17px;height:17px;font-size:10px}.kh-currency small{font-size:5px}.kh-currency b{font-size:8px;line-height:8px}}.kh-top-hud{position:relative}.kh-currencies{align-items:center;gap:8px;width:auto;margin:0;display:flex;position:absolute;top:62px;right:0}.kh-currency{color:#6d5f52;width:auto;min-width:138px;height:58px;text-shadow:none;background:linear-gradient(#fff,#f3f0cf);border:4px solid #fff4bd;border-radius:16px;grid-template-rows:18px 24px;grid-template-columns:38px auto;align-items:center;column-gap:7px;padding:5px 10px 5px 8px;display:grid;position:relative;box-shadow:0 5px #b8ab78,0 8px 12px #173f6073}.kh-currency i{filter:none;border:0;border-radius:50%;grid-row:1/3;place-items:center;width:38px;height:38px;font-size:25px;font-style:normal;line-height:1;display:grid;position:static;transform:none}.kh-currency small{color:#886e4d;letter-spacing:.8px;font-size:9px;line-height:11px;display:block}.kh-currency b{color:#6d5f52;text-align:left;white-space:nowrap;font-size:19px;line-height:21px;display:block}.kh-currency.coins i{color:#fff6ae;text-shadow:0 2px #d88e18;background:#ffdc39}.kh-currency.gems i{color:#e3fbff;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);background:#59c8f5}.kh-currency.stars i{color:#fff5a5;clip-path:polygon(50% 0,62% 34%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 34%);background:#ff922e}@media (width<=820px){.kh-currencies{gap:4px;top:48px;right:0}.kh-currency{border-width:3px;border-radius:11px;grid-template-rows:12px 17px;grid-template-columns:27px auto;min-width:92px;height:42px;padding:3px 5px}.kh-currency i{width:27px;height:27px;font-size:17px}.kh-currency small{font-size:7px;line-height:8px}.kh-currency b{font-size:13px;line-height:14px}}@media (width<=560px){.kh-currencies{gap:3px;top:42px}.kh-currency{border-width:2px;grid-template-rows:10px 13px;grid-template-columns:22px auto;min-width:72px;height:34px;padding:2px 4px}.kh-currency i{width:22px;height:22px;font-size:14px}.kh-currency small{font-size:6px;line-height:7px}.kh-currency b{font-size:11px;line-height:11px}}.kh-top-hud{align-items:center;display:flex;position:absolute;inset:14px 24px auto}.kh-currencies{flex-direction:column;align-items:stretch;gap:8px;width:150px;margin:0;display:flex;top:62px;right:0}.kh-currency{width:150px;min-width:150px;height:58px}@media (width<=820px){.kh-top-hud{inset:10px 12px auto}.kh-currencies{gap:4px;width:104px;top:48px;right:0}.kh-currency{width:104px;min-width:104px;height:42px}}@media (width<=560px){.kh-currencies{gap:3px;width:84px;top:42px}.kh-currency{width:84px;min-width:84px;height:34px}}.kh-header-actions{z-index:5;position:relative;margin-left:auto!important}.kh-quest>div:nth-of-type(2)>span{background:#a877d8;border-color:#8e56c2}.kh-quest>div:nth-of-type(3)>span{background:#f0ba4e;border-color:#c18d28}.kh-quest footer i{width:33%!important}.home-panel-overlay.shop .home-shop>section:first-child{display:none}.home-troop-catalog{max-height:64vh;padding-right:4px;overflow-y:auto}.home-troop-catalog .home-panel-cards{grid-template-columns:repeat(3,1fr)}.home-army-summary{color:#f5e6c8;letter-spacing:.3px;text-align:left;background:#2a1c18;border:2px solid #6a4a3a;border-radius:10px;margin:0 0 8px;padding:7px 9px;font-size:10px;line-height:1.35}.home-shop-purchasable{max-height:64vh;padding-right:4px;overflow-y:auto}.home-shop-purchasable .home-panel-cards button{color:#65344b;background:#f1bb4a}.home-shop-purchasable .home-panel-cards button:disabled{cursor:default;opacity:.65}.home-shop-purchasable .home-panel-cards article.shop-item-bought{background:#193f3d;border-color:#6ed071}.home-shop-purchasable .home-panel-cards article.shop-item-bought i{color:#efffd5;background:#54b967}.home-shop-purchasable .home-panel-cards article.shop-item-bought button{color:#f2ffe4;background:#62c878;box-shadow:0 2px #37874b}.kh-builder-list>div.locked{filter:grayscale();opacity:.42;cursor:not-allowed}.kh-builder-list>div.locked b{color:#b7b1b1}.kh-builder-list>div.locked small{color:#8b8585;letter-spacing:.5px;font-size:7px;display:block}@media (width<=480px){.kh-top-hud{inset:8px 8px auto}.kh-player{border-width:3px;border-radius:14px;min-width:96px;padding:4px 6px}.kh-crown{width:30px;height:30px;font-size:19px}.kh-player b{font-size:19px;line-height:17px}.kh-player em{font-size:7px}.kh-header-actions{gap:4px}.kh-header-actions button{border-width:3px;width:34px;height:34px;font-size:17px}.kh-currencies{gap:3px;width:82px;top:40px}.kh-currency{border-width:2px;border-radius:9px;grid-template-rows:9px 12px;grid-template-columns:21px auto;width:82px;min-width:82px;height:32px;padding:2px 3px}.kh-currency i{width:20px;height:20px;font-size:13px}.kh-currency small{font-size:5px;line-height:6px}.kh-currency b{font-size:10px;line-height:10px}.kh-quest{border-width:3px;border-radius:13px;width:188px;padding:9px 10px 8px;top:76px;left:8px}.kh-quest p{font-size:9px}.kh-quest>div{gap:6px;margin:4px 0}.kh-quest>div>span{width:22px;height:22px;font-size:14px}.kh-quest section b,.kh-quest section small{line-height:12px}.kh-quest section b{font-size:10px}.kh-quest section small{font-size:8px}.kh-quest footer{height:6px}.kh-event{border-width:3px;border-radius:13px;gap:6px;width:174px;padding:5px;top:75px;right:8px}.kh-event>div{width:43px;height:43px;font-size:29px}.kh-event b{font-size:11px;line-height:11px}.kh-event small,.kh-event em{font-size:8px;line-height:10px}.kh-event button{width:22px;height:22px;font-size:22px}.kh-map-key{display:none}.kh-kingdom-card{bottom:75px;left:7px}.kh-dock{gap:6px;bottom:8px}.kh-dock-item{width:47px}.kh-dock-icon{border-width:3px;border-radius:12px;width:41px;height:39px;font-size:21px}.kh-dock-item b{letter-spacing:0;font-size:8px}.kh-battle{border-width:4px;border-radius:22px;width:101px;height:72px;top:-10px}.kh-battle span{height:28px;font-size:25px;line-height:30px}.kh-battle b{font-size:17px;line-height:15px}.kh-battle small{font-size:7px}.home-panel-card{border-width:4px;border-radius:20px;width:calc(100% - 18px);padding:14px 12px 15px}.home-panel-card h2{font-size:20px}.home-panel-cards{gap:6px}.home-panel-cards article{padding:7px 3px}.home-panel-cards i{width:36px;height:36px;font-size:21px}.home-panel-cards b{font-size:9px}.home-panel-cards small{font-size:7px}.home-panel-cards button{padding:4px 3px;font-size:7px}.home-shop-purchasable,.home-troop-catalog{max-height:62vh}}@media (width<=900px){.kh-tutorial-card{width:min(260px,100% - 20px);max-height:none;inset:68px auto auto 50%;transform:translate(-50%)}.kh-tutorial-card h2{font-size:13px}.kh-tutorial-card p{font-size:11px;line-height:1.25}.kh-tutorial-card button{font-size:11px}}@media (width<=820px){.kh-dock{gap:6px}.kh-dock-item b{letter-spacing:0}}.kh-tutorial-target{position:relative}.kh-orientation-lock{display:none}@media (width<=700px) and (orientation:portrait){.kh-orientation-lock{z-index:2147483647;-webkit-backdrop-filter:blur(11px)saturate(.82);backdrop-filter:blur(11px)saturate(.82);color:#fff0b3;text-align:center;text-shadow:0 3px #241735;pointer-events:auto;background:linear-gradient(145deg,#4b2a70b8,#211b3dcc);place-content:center;gap:18px;padding:32px;display:grid;position:fixed;inset:0}.kh-orientation-lock strong{letter-spacing:1.5px;font-size:24px}.kh-orientation-lock span{color:#f8e9dc;letter-spacing:.8px;max-width:300px;font-size:12px;font-weight:800;line-height:1.4}}@media (width<=900px) and (height<=560px) and (orientation:landscape){.kh-top-hud{inset:max(6px, env(safe-area-inset-top)) 12px auto}.kh-player{min-height:38px}.kh-quest{width:166px;padding:7px 9px;top:72px}.kh-quest p{font-size:8px}.kh-quest>div{gap:5px;margin:2px 0}.kh-quest>div>span{width:19px;height:19px;font-size:12px}.kh-quest section b{font-size:8px;line-height:10px}.kh-quest section small{font-size:6px;line-height:9px}.kh-event{width:174px;top:72px}.kh-kingdom-card{width:190px;height:140px;left:auto;right:10px;bottom:calc(68px + env(safe-area-inset-bottom));transform-origin:100% 100%;transform:scale(.56)}.kh-kingdom-card p{margin-bottom:3px;font-size:9px}.kh-kingdom-card h1{font-size:27px}.kh-castle{transform-origin:top;transform:scale(.72)}.kh-currencies{gap:3px;top:42px}.kh-currency{grid-template-rows:8px 10px;grid-template-columns:17px auto;width:70px;min-width:70px;height:28px;padding:2px 3px}.kh-currency i{width:17px;height:17px;font-size:11px}.kh-currency small{font-size:5px;line-height:6px}.kh-currency b{font-size:8px;line-height:8px}.kh-dock{bottom:env(safe-area-inset-bottom);gap:2px}.kh-dock-item{width:44px;min-width:40px}.kh-dock-icon{width:36px;height:33px;font-size:17px}.kh-dock-item b{margin-top:1px;font-size:7px}.kh-dock-item i{width:17px;height:17px;font-size:10px;top:-4px;right:1px}.kh-battle{border-radius:17px;width:86px;min-width:0;height:58px;top:-6px}.kh-battle-icon{width:24px;height:24px}.kh-battle span{height:20px;font-size:19px;line-height:21px}.kh-battle b{font-size:14px;line-height:12px}.kh-battle small{font-size:6px}.home-panel-overlay,.battle-picker{place-items:center;padding:8px}.home-panel-card,.battle-picker-panel{border-radius:22px;max-height:calc(100dvh - 16px)}.kh-tutorial-card{width:min(240px,100vw - 16px);max-height:none;padding:8px 10px;inset:64px auto auto 50%;overflow:visible;transform:translate(-50%)}.kh-tutorial-card h2{font-size:13px}.kh-tutorial-card p{font-size:11px;line-height:1.25}.kh-tutorial-card>div{margin-top:6px}}@media (width<=1024px) and (orientation:landscape){.kh-tutorial-card{width:min(240px,100vw - 16px);max-height:none;padding:8px 10px;inset:58px auto auto 50%;overflow:visible;transform:translate(-50%)}.kh-tutorial-card h2{margin:2px 0;font-size:13px}.kh-tutorial-card p{font-size:11px;line-height:1.25}.kh-tutorial-card>div{gap:6px;margin-top:6px}.kh-tutorial-card button{padding:5px 8px;font-size:11px}}@media (width<=700px){.kh-quest{width:min(182px,100vw - 20px);padding:8px 10px}.kh-quest p{font-size:8px}.kh-quest>div{gap:6px;margin:3px 0}.kh-quest>div>span{width:21px;height:21px;font-size:13px}.kh-quest section b{font-size:9px;line-height:11px}.kh-quest section small{font-size:7px;line-height:10px}.kh-kingdom-card{width:205px;height:150px;bottom:calc(78px + env(safe-area-inset-bottom));transform:scale(.72)}.kh-kingdom-card p{letter-spacing:1.2px;margin-bottom:4px;font-size:10px}.kh-kingdom-card h1{font-size:29px;line-height:.88}.kh-castle{width:70px;height:53px;margin:3px auto 1px;transform:scale(.8)}.kh-currencies{gap:3px;top:42px}.kh-currency{border-width:2px;border-radius:9px;grid-template-rows:8px 11px;grid-template-columns:19px auto;width:78px;min-width:78px;height:30px;padding:2px 3px}.kh-currency i{width:19px;height:19px;font-size:12px}.kh-currency small{font-size:5px;line-height:6px}.kh-currency b{font-size:9px;line-height:9px}.kh-dock{bottom:max(2px, env(safe-area-inset-bottom));gap:0}.kh-dock-item{min-width:40px}.kh-dock-icon{border-radius:11px;width:clamp(36px,10vw,46px);height:36px;font-size:19px}.kh-dock-item b{margin-top:2px;font-size:7px}.kh-dock-item i{width:18px;height:18px;font-size:10px;top:-4px;right:2px}.kh-battle{border-radius:18px;width:auto;min-width:82px;height:62px}.kh-battle-icon{width:27px;height:27px}.kh-battle span{height:23px;font-size:21px;line-height:24px}.kh-battle b{font-size:15px;line-height:13px}.kh-battle small{font-size:6px}}@media (width<=420px){.kh-quest{width:166px}.kh-kingdom-card{width:190px;height:140px;transform:scale(.64)}.kh-currencies{top:39px}.kh-currency{width:70px;min-width:70px;height:28px}.kh-currency i{width:17px;height:17px;font-size:11px}.kh-currency b{font-size:8px}.kh-dock-item{min-width:36px}.kh-dock-icon{width:34px;height:33px;font-size:17px}.kh-battle{min-width:76px;height:58px}.kh-battle-icon{width:24px;height:24px}.kh-battle span{height:21px;font-size:19px;line-height:21px}.kh-battle b{font-size:14px}}.kh-kingdom-card.kh-tutorial-target,.kh-builder-toggle.kh-tutorial-target{position:absolute!important}@media (width<=1024px) and (orientation:landscape){.home-panel-overlay{place-items:center;padding:12px}.home-panel-card{border-radius:20px;width:min(380px,100vw - 40px);max-height:min(70dvh,300px);padding:14px 16px 15px;overflow:visible}.home-panel-close{width:28px;height:28px;font-size:19px;top:5px;right:5px}.home-panel-card header{gap:7px;margin-bottom:8px}.home-panel-card header>span{width:36px;height:36px;font-size:22px}.home-panel-card h2{font-size:20px;line-height:20px}.home-panel-card header p{font-size:8px}.home-panel-cards{gap:6px}.home-panel-cards article{padding:7px 4px}.home-panel-cards i{width:34px;height:34px;margin-bottom:3px;font-size:21px}.home-panel-roster article{padding:6px 8px}.home-shop,.home-shop-purchasable,.home-troop-catalog{max-height:calc(72dvh - 92px);overflow-y:auto}.home-panel-cards article{border-width:2px;border-radius:11px;padding:5px 3px 6px}.home-panel-cards i{width:28px;height:28px;font-size:17px}.home-panel-cards b{font-size:7px}.home-panel-cards small{min-height:12px;margin:1px 0 3px;font-size:6px}.home-panel-cards button{min-height:24px;padding:3px 4px;font-size:6px}.home-panel-roster{gap:4px}.home-panel-roster article{gap:6px;min-width:0;padding:4px 6px;overflow:hidden}.home-panel-roster i{width:28px;height:28px;font-size:17px}.home-panel-roster span{min-width:0;overflow:hidden}.home-panel-roster span b,.home-panel-roster span small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-panel-roster b{font-size:9px}.home-panel-roster small{font-size:7px}.home-panel-friends button{flex:0 76px;max-width:76px;padding:3px 4px;font-size:6px}}.kh-currencies{justify-content:flex-end;width:auto!important;display:flex!important}.kh-currency.kh-currency-3d{border-radius:999px;align-items:center;gap:8px;width:auto!important;min-width:0!important;height:auto!important;padding:5px 18px 5px 8px!important;display:flex!important}.kh-currency.kh-currency-3d img{filter:drop-shadow(0 3px 3px #1b4f7a88);flex:none}.kh-currency.kh-currency-3d b{color:#3a2f55;letter-spacing:.5px;font-size:30px!important;line-height:1!important;display:block!important;position:static!important}@media (width<=820px){.kh-currency.kh-currency-3d{gap:5px;padding:3px 12px 3px 5px!important}.kh-currency.kh-currency-3d img{width:32px!important;height:32px!important}.kh-currency.kh-currency-3d b{font-size:20px!important}}.home-panel-cards article i img.icon3d{filter:drop-shadow(0 4px 4px #0006)}.home-panel-cards article small img.icon3d,.home-shop-earn img.icon3d{margin:-3px 1px 0}.kh-dock-icon img{object-fit:contain;filter:drop-shadow(0 2px #8a432d);width:38px;max-width:100%;height:38px;display:block}.kh-dock-item:nth-child(5) .kh-dock-icon img{width:46px;height:46px}.kh-battle-icon{object-fit:contain;filter:drop-shadow(0 3px #a52e2f);width:43px;height:43px;margin:1px auto -1px;display:block}.battle-loading{background:#718ba0}.battle-sky-shine{display:none}@property --iris-hole{syntax:"<length>";inherits:false;initial-value:150vmax}.battle-iris{--iris-hole:150vmax;z-index:70;pointer-events:none;-webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 0 var(--iris-hole),#000 calc(var(--iris-hole) + 1px));-webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 0 var(--iris-hole),#000 calc(var(--iris-hole) + 1px));mask-image:radial-gradient(circle at 50% 50%,transparent 0 var(--iris-hole),#000 calc(var(--iris-hole) + 1px));will-change:--iris-hole;background:#718ba0 50%/cover no-repeat;position:absolute;inset:0}.battle-iris.closing{animation:.62s cubic-bezier(.7,0,.35,1) both battle-iris-close}.battle-iris.closed{--iris-hole:0px}.battle-iris.opening{--iris-hole:0px;animation:.72s cubic-bezier(.25,.8,.3,1) both battle-iris-open}@keyframes battle-iris-close{0%{--iris-hole:150vmax}to{--iris-hole:0px}}@keyframes battle-iris-open{0%{--iris-hole:0px}to{--iris-hole:150vmax}}.kh-resource>span img{object-fit:contain;width:34px;height:34px;display:block}.kh-gold>span,.kh-gems>span,.kh-stars>span{clip-path:none!important;color:#0000!important;text-shadow:none!important;background:0 0!important}.kh-resource>span{margin:0;position:absolute;top:calc(50% + 6px);bottom:auto;left:7px;transform:translateY(-50%)}.kh-resource small,.kh-resource b{grid-column:2}.kh-resource b{grid-row:1/3;align-self:center;line-height:1;transform:translateY(2px)}.kh-resource strong{box-sizing:border-box;padding-bottom:2px}.kh-resource{color:#fff;text-shadow:0 2px 2px #2d351d;text-align:right;background:linear-gradient(#9aaa54 0%,#6e7d38 46%,#526126 100%);border:3px solid #3f4525;border-radius:23px;min-width:158px;height:46px;padding:0 51px 0 43px;display:block;box-shadow:inset 0 2px #d8e68c,inset 0 -3px #3d481e,0 3px #29331b99}.kh-resource>span{z-index:1;width:51px;height:51px;top:calc(50% + 4px);left:auto;right:-11px}.kh-resource>span img{width:43px;height:43px}.kh-resource b{white-space:nowrap;grid-row:auto;margin:0;font-size:22px;display:block;position:absolute;top:50%;right:50px;transform:translateY(calc(2px - 50%))}.kh-resource strong{padding-bottom:2px;top:50%;left:7px;right:auto;transform:translateY(-50%)}.kh-header-actions{margin-left:auto}.kh-gems{background:linear-gradient(#d56ce2 0%,#a62bb6 48%,#761a87 100%);border-color:#62236d;box-shadow:inset 0 2px #f4a4fa,inset 0 -3px #61126c,0 3px #3c164099}.kh-stars{background:linear-gradient(#9baa55 0%,#6e7d38 46%,#526126 100%)}.kh-kingdom-card{flex-direction:column;justify-content:center;align-items:center;padding:19px 15px 14px;display:flex}.kh-kingdom-card p{letter-spacing:1.8px;margin:0 0 7px;font-size:13px;position:relative}.kh-kingdom-card h1{letter-spacing:-1.4px;text-shadow:0 3px #ffa167;margin:0;font-size:38px;line-height:.88;position:relative}.kh-quest,.kh-kingdom-card,.kh-event{border:0}.kh-player>span:last-child{transform:translateY(3px)}.kh-toast{border:0}.kh-builder{z-index:3;color:#5a4235;background:linear-gradient(150deg,#fffef4ed,#f4e6bded);border-radius:22px;width:360px;position:absolute;bottom:22px;right:24px;overflow:hidden;box-shadow:0 5px #a98b55,0 12px 20px #173f6066}.kh-builder-toggle{z-index:3;color:#fff;height:54px;font:800 16px var(--kh-font);letter-spacing:1px;text-shadow:0 2px #a72f30;background:linear-gradient(#f86b49,#d83435);border:0;border-radius:17px;padding:0 24px;position:absolute;bottom:22px;right:24px;box-shadow:0 5px #9f2830,0 10px 17px #173f6066}.kh-builder-toggle:hover{transform:translateY(-2px)scale(1.03)}.kh-builder header{color:#fff;text-shadow:0 2px #a72f30;background:linear-gradient(#f86b49,#d83435);justify-content:center;align-items:baseline;gap:7px;padding:11px 9px 10px;display:flex}.kh-builder header b{letter-spacing:1px;font-size:19px;line-height:19px}.kh-builder header small{letter-spacing:1.4px;color:#fff7cf;font-size:10px}.kh-builder-tabs{background:0 0;grid-template-columns:repeat(2,1fr);gap:5px;padding:8px 9px 0;display:grid}.kh-builder-tabs button{color:#715d53;letter-spacing:.8px;height:25px;text-shadow:none;background:#f8f7f2;border:1px solid #d8d4cb;border-radius:8px;font-size:10px;font-weight:800}.kh-builder-tabs button.active{color:#b3423f;background:#fffdfa;border-color:#c98b83;box-shadow:inset 0 -3px #d95952}.kingdom-home .kh-builder-tabs button:hover{filter:none;transform:none}.kh-builder-list{grid-template-columns:repeat(3,1fr);gap:7px;max-height:258px;padding:9px;display:grid;overflow-y:auto}.kh-builder-actions{background:#eadab5;grid-template-columns:1fr 1.2fr;gap:8px;padding:9px;display:grid}.kh-builder-actions button{color:#fff;height:35px;font:800 11px var(--kh-font);letter-spacing:1px;background:#b9a37b;border:0;border-radius:10px;box-shadow:0 3px #826c50}.kh-builder-actions button:last-child{background:#54bd57;box-shadow:0 3px #318436}.kh-builder-list>div{min-height:100px;box-shadow:none;color:#7b563a;text-align:center;background:0 0;border-radius:12px;justify-items:center;gap:4px;padding:7px 3px 5px;display:grid;cursor:grab!important}.kh-builder-list>div,.kh-builder-list>div *{cursor:grab!important}.kh-builder-list>div:active,.kh-builder-list>div:active *,.kh-builder-list>div.dragging,.kh-builder-list>div.dragging *{cursor:grabbing!important}.kh-builder-list b{letter-spacing:.4px;gap:1px;font-size:10px;line-height:11px;display:grid}.kh-builder-list b small{color:#b64a42;letter-spacing:.8px;font-size:10px;line-height:10px}.kh-builder-list>div.at-limit{opacity:.48;cursor:not-allowed!important}.kh-builder-list>div.at-limit,.kh-builder-list>div.at-limit *{cursor:not-allowed!important}.kh-builder-preview{width:98px;height:72px;display:block;position:relative;overflow:visible}.kh-builder-preview-3d{background:radial-gradient(circle at 42% 30%,#f6edd4,#c5d6ae);border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 2px #c4a86a55}.kh-builder-preview-3d img,.kh-builder-preview-3d canvas{object-fit:contain;pointer-events:none;width:100%;height:100%;display:block}.kh-builder-list>div>em.kh-builder-blurb{color:#7a5a42;max-width:96px;font:600 8px/1.2 var(--kh-font);letter-spacing:.1px;margin:0 auto;font-style:normal;display:block}.kh-builder-flair-note{color:#6b4a36;font:700 9px/1.3 var(--kh-font);background:#efe2c4;border-radius:8px;margin:0 8px 6px;padding:6px 8px}@media (width>=821px) and (width<=1700px){.kh-top-hud{transform-origin:0 0;width:calc(119.048% - 47.6191px);inset:12px 20px auto;transform:scale(.84)}.kh-quest{transform-origin:0 0;top:102px;left:20px;transform:scale(.84)}.kh-kingdom-card{transform-origin:0 100%;bottom:20px;left:20px;transform:scale(.84)}.kh-event{transform-origin:100% 0;top:112px;right:20px;transform:scale(.84)}.kh-builder,.kh-builder-toggle{transform-origin:100% 100%;bottom:18px;right:20px;transform:scale(.84)}.kh-dock{transform-origin:bottom;bottom:16px;transform:translate(-50%)scale(.84)}.kh-toast{bottom:128px;transform:translate(-50%,15px)scale(.84)}.kh-toast.visible{transform:translate(-50%)scale(.84)}}@media (width<=820px){.kh-builder,.kh-builder-toggle{transform-origin:100% 100%;bottom:78px;right:8px;transform:scale(.72)}}@media (width<=700px){.kh-builder,.kh-builder-toggle{right:10px;bottom:calc(76px + env(safe-area-inset-bottom));transform:none}.kh-builder{width:min(360px,100vw - 20px);max-height:min(68vh,560px)}.kh-builder-list{overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));max-height:min(48vh,360px)}.kh-builder-toggle{height:48px;padding:0 16px;font-size:13px}.kh-builder-actions button,.kh-builder-tabs button{min-height:44px}}@media (width<=420px){.kh-builder,.kh-builder-toggle{right:8px}.kh-builder{width:calc(100vw - 16px);max-height:70vh}.kh-builder-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:46vh}}@media (width<=900px) and (height<=560px) and (orientation:landscape){.kh-builder,.kh-builder-toggle{right:10px;bottom:calc(60px + env(safe-area-inset-bottom));transform-origin:100% 100%;transform:none}.kh-builder-toggle{height:42px;padding-inline:13px;font-size:12px}.kh-builder{width:min(300px,100vw - 20px);max-height:70vh}}.kh-dock-item{flex-direction:column;justify-content:flex-end;align-items:center;padding:0;display:flex}.kh-dock-icon{margin:0 auto;position:relative}.kh-dock-icon img{margin:auto;position:absolute;inset:0}.kh-battle{flex-direction:column;justify-content:center;align-items:center;padding:0;display:flex}@media (width<=820px){.kh-dock-icon img{width:29px;height:29px}.kh-dock-item:nth-child(5) .kh-dock-icon img{width:35px;height:35px}.kh-battle-icon{width:36px;height:36px}.kh-resource>span img{width:27px;height:27px}.kh-resource>span{left:auto;right:-7px}}@media (width<=560px){.kh-dock-icon img{width:26px;height:26px}.kh-dock-item:nth-child(5) .kh-dock-icon img{width:31px;height:31px}.kh-battle-icon{width:32px;height:32px}}@media (width<=900px) and (height<=560px) and (orientation:landscape){.kh-kingdom-card{left:10px;right:auto;bottom:calc(68px + env(safe-area-inset-bottom));transform-origin:0 100%;transform:scale(.56)}.kh-dock{left:50%;right:auto;bottom:env(safe-area-inset-bottom);gap:2px;transform:translate(-50%)}.kh-dock-item{width:44px;min-width:40px}.kh-dock-icon{width:36px;height:33px}.kh-battle{width:86px;min-width:0;height:58px;top:-6px}.kh-builder,.kh-builder-toggle{right:10px;bottom:calc(60px + env(safe-area-inset-bottom));transform-origin:100% 100%;transform:none}}@media (width<=1024px) and (orientation:landscape){.kh-top-hud{width:auto;inset-inline:12px;transform:none}.kh-quest{left:12px}.kh-kingdom-card{left:12px;right:auto;bottom:env(safe-area-inset-bottom);transform-origin:0 100%;transform:scale(.54)}.kh-currencies{gap:3px;width:104px;right:12px}.kh-currency{width:104px;min-width:104px;height:28px}.kh-dock{left:50%;right:auto;bottom:env(safe-area-inset-bottom);gap:1px;transform:translate(-50%)}.kh-dock-item{width:43px;min-width:38px}.kh-dock-icon{width:35px;height:32px}.kh-battle{width:84px;min-width:0;height:56px;top:0}.kh-builder,.kh-builder-toggle{right:8px;bottom:env(safe-area-inset-bottom);transform-origin:100% 100%;transform:none}.kh-builder-toggle{height:40px;padding-inline:12px;font-size:11px}.kh-builder{width:min(290px,100vw - 16px);max-height:min(250px,68dvh);overflow:hidden}.kh-builder header{padding:7px 8px}.kh-builder header b{font-size:14px;line-height:14px}.kh-builder header small{font-size:8px}.kh-builder-tabs{padding:5px 7px 0}.kh-builder-tabs button{height:30px;min-height:30px}.kh-builder-list{gap:4px;max-height:145px;padding:6px}.kh-builder-list>div{gap:2px;min-height:72px;padding:4px 2px}.kh-builder-preview{width:70px;height:48px}.kh-builder-preview-3d img,.kh-builder-preview-3d canvas{width:100%;height:100%}.kh-builder-list b{font-size:8px;line-height:9px}.kh-builder-actions{gap:5px;padding:6px}.kh-builder-actions button{height:32px;min-height:32px;font-size:9px}.kh-currencies{z-index:6;flex-direction:row;align-items:center;gap:3px;width:auto;top:8px;left:50%;right:auto;transform:translate(-50%)}.kh-currency{grid-template-rows:9px 11px;grid-template-columns:18px auto;width:clamp(58px,11vw,78px);min-width:clamp(58px,11vw,78px);height:28px;padding:2px 3px}.kh-currency i{width:17px;height:17px;font-size:10px}.kh-currency small{font-size:5px;line-height:6px}.kh-currency b{font-size:8px;line-height:8px}.kh-builder{z-index:6;flex-direction:column;width:min(286px,100vw - 16px);max-height:none;display:flex;top:58px;bottom:70px;right:8px}.kh-builder-list{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;max-height:none;overflow-y:auto}.kh-builder-list>div{min-height:78px}.kh-toast{bottom:calc(64px + env(safe-area-inset-bottom));text-align:center;white-space:nowrap;border-radius:10px;width:auto;max-width:min(120px,100vw - 32px);padding:6px 9px;font-size:8px;line-height:10px;transform:translate(-50%,15px)}.kh-toast.visible{transform:translate(-50%)}.kh-kingdom-card h1{letter-spacing:-1.2px;overflow-wrap:anywhere;width:100%;font-size:22px;line-height:19px}}.battle-picker{z-index:60;padding:max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1a3a52f2;place-items:center;animation:.2s ease-out both picker-fade-in;display:grid;position:fixed;inset:0}.battle-picker-panel{z-index:1;color:#fff;text-align:center;background:linear-gradient(145deg,#5f87a4,#3c617f);border:5px solid #fff4bc;border-radius:28px;width:min(680px,100% - 36px);max-height:min(86dvh,720px);padding:20px 22px 24px;position:relative;overflow:auto;box-shadow:0 8px #24465f,0 20px 35px #14283b99}.battle-picker-panel:before{content:"";pointer-events:none;border:2px dashed #bfe8e7;border-radius:20px;position:absolute;inset:9px}.battle-picker-panel h2{color:#fff1a2;text-shadow:0 3px #31506b;margin:0;padding-inline:48px;font-size:31px;line-height:1;position:relative}.battle-picker-panel>p{color:#e4f7ef;letter-spacing:1px;margin:6px 0 17px;font-size:12px;position:relative}.battle-picker-close{z-index:2;color:#fff;background:#e85948;border:3px solid #fff5c9;border-radius:50%;place-items:center;width:36px;height:36px;font-size:25px;line-height:1;display:grid;position:absolute;top:12px;right:12px;box-shadow:0 4px #963b38}.battle-opponents{grid-template-columns:repeat(4,1fr);gap:10px;display:grid;position:relative}.battle-opponent{color:#4f4945;text-align:center;background:linear-gradient(#fffbdf,#eadfb9);border:3px solid #fff6cb;border-radius:17px;min-width:0;padding:7px 5px 9px;box-shadow:0 4px #9a8157}.battle-opponent:nth-child(2){background:linear-gradient(#e5f6ff,#b9dbe8)}.battle-opponent:nth-child(3){background:linear-gradient(#fff0c6,#e2b078)}.battle-opponent:nth-child(4){background:linear-gradient(#ffe1e1,#e6a2ad)}.battle-opponent figure{box-sizing:border-box;background:radial-gradient(circle at 50% 20%,#ffffffa6,#0000 58%),#294b61;border-radius:11px;place-items:end center;height:148px;margin:0 0 3px;padding-bottom:0;display:grid;overflow:hidden}.battle-opponent:nth-child(2) figure{background:radial-gradient(circle at 50% 20%,#fff,#0000 58%),#5084a4}.battle-opponent:nth-child(3) figure{background:radial-gradient(circle at 50% 20%,#fff7cc,#0000 58%),#9d543e}.battle-opponent:nth-child(4) figure{background:radial-gradient(circle at 50% 20%,#fff,#0000 58%),#8e4555}.battle-opponent img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 1px #1e344566)saturate(1.06);width:145px;height:168px;transform:translateY(8px)}.battle-opponent:nth-child(2) img{width:210px;height:168px;transform:translate(-35px,8px)}.battle-opponent:nth-child(3) img{width:168px;height:168px;transform:translate(-25px,8px)}.battle-opponent b,.battle-opponent small{display:block}.battle-opponent b{font-size:13px;line-height:13px}.battle-opponent small{color:#71614e;letter-spacing:.4px;margin-top:2px;font-size:9px}.battle-opponent em{color:#fff5bf;letter-spacing:.7px;text-shadow:0 1px #a53e36;background:#e65a43;border-radius:9px;margin-top:5px;padding:2px 7px;font-size:9px;font-style:normal;display:inline-block}.battle-opponent.locked{cursor:not-allowed;filter:grayscale();opacity:.48}.battle-opponent.locked:hover{filter:grayscale();transform:none}.battle-opponent.locked em{color:#f3f3f3;text-shadow:none;background:#8c8c8c}@keyframes picker-fade-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@media (width<=700px){.battle-picker-panel{padding:17px 12px 18px}.battle-picker-panel h2{font-size:25px}.battle-opponents{grid-template-columns:repeat(2,1fr);gap:8px}.battle-opponent figure{height:100px;padding-bottom:0}.battle-opponent img{width:90px;height:112px;transform:translateY(6px)}.battle-opponent:nth-child(2) img{width:138px;height:112px;transform:translate(-23px,6px)}.battle-opponent:nth-child(3) img{width:112px;height:112px;transform:translate(-17px,6px)}.battle-opponent b{font-size:11px}.battle-picker-panel>p{margin-bottom:10px}}.battle-opponent.ruby{background:linear-gradient(#ffe1e1,#e6a2ad)}.battle-opponent.ruby figure{background:radial-gradient(circle at 50% 20%,#fff,#0000 58%),#8e4555}.battle-opponent:nth-child(2) img{transform:translate(-35px,8px)scale(1.08)}.battle-opponent:nth-child(3) img{transform:translate(-25px,8px)scale(1.22)}.battle-opponent:nth-child(4) img{transform:translateY(8px)scale(1.14)}.battle-practice{color:#fff8d8;letter-spacing:.6px;cursor:pointer;background:linear-gradient(#3d6b52,#2a4d3a);border:3px solid #fff6cb;border-radius:14px;gap:3px;width:100%;margin-top:14px;padding:11px 12px;font:900 13px Arial;display:grid;position:relative;box-shadow:0 4px #1c3328}.battle-practice>small{letter-spacing:.4px;color:#cfe8d8;opacity:.95;font:700 10px Arial}.battle-practice:hover{filter:brightness(1.06)}.battle-opponent figure{position:relative}.battle-opponent figure>em{color:#ffe99b;font:800 8px var(--kh-font);letter-spacing:.9px;white-space:nowrap;background:#1f2f3ce0;border-radius:8px;padding:4px 9px;font-style:normal;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-8deg);box-shadow:0 2px #0006}@media (width<=700px){.battle-opponent figure>em{padding:5px 10px;font-size:9px}}@media (width<=420px){.battle-picker-panel h2{padding-right:28px;font-size:22px}.battle-picker-panel>p{letter-spacing:.6px;font-size:10px}.battle-opponent{min-height:176px;padding-inline:4px}.battle-opponent figure{height:92px}.battle-opponent b{font-size:10px}}@media (width<=1024px) and (orientation:landscape){.battle-picker{padding:10px 14px}.battle-picker-panel{border-radius:21px;width:min(520px,100vw - 28px);max-height:min(88dvh,360px);padding:14px 15px 16px;overflow:auto}.battle-picker-close{width:28px;height:28px;font-size:19px;top:5px;right:5px}.battle-picker-panel h2{font-size:22px}.battle-picker-panel>p{margin:5px 0 9px;font-size:9px}.battle-opponents{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:min(220px,70dvh - 92px);overflow-y:auto}.battle-opponent{border-radius:13px;padding:5px 4px 6px;overflow:hidden}.battle-opponent figure{height:72px}.battle-opponent img{width:64px;height:82px;transform:translateY(5px)}.battle-opponent:nth-child(2) img{width:98px;height:82px;transform:translate(-17px,5px)}.battle-opponent:nth-child(3) img{width:78px;height:82px;transform:translate(-12px,5px)}.battle-opponent:nth-child(4) img{width:72px;height:82px;transform:translateY(5px)}.battle-opponent b{font-size:9px;line-height:10px}.battle-opponent small{font-size:7px}.battle-opponent em{margin-top:3px;font-size:7px}}.ruby-battle-map{z-index:45;background:#4b2033;position:fixed;inset:0;overflow:hidden}.ruby-battle-canvas,.ruby-battle-canvas canvas{width:100%;height:100%;display:block}.ruby-selection-control:hover,.ruby-selection-control:active{filter:none!important;transform:none!important}.ruby-battle-map header{z-index:2;color:#fff;text-align:center;background:linear-gradient(#b64553,#75233c);border:4px solid #ffe59b;border-radius:21px;padding:9px 22px 10px;position:absolute;top:22px;left:50%;transform:translate(-50%);box-shadow:0 5px #4b1a30,0 9px 15px #2715238a}.ruby-battle-map header span,.ruby-battle-map header b{white-space:nowrap;display:block}.ruby-battle-map header span{color:#ffe99b;letter-spacing:1px;font-size:10px}.ruby-battle-map header b{font-size:17px;line-height:18px}.ruby-retreat{z-index:2;color:#6b3041;background:#fff5d5;border:0;border-radius:20px;font-weight:800;position:absolute;top:23px;left:25px;box-shadow:0 4px #9b765f}.ruby-retreat-caret{font-size:30px;font-style:normal;line-height:.55}.ruby-chat{box-sizing:border-box;color:#fff;background:#441b2e;border:4px solid #ffe8aa;border-radius:18px;flex-direction:column;width:310px;display:flex;position:relative;overflow:hidden;box-shadow:0 5px #40182d,0 12px 18px #220e1c70}.ruby-chat-title,.ruby-chat-verbs,.ruby-chat-compose{flex-shrink:0}.ruby-chat.closed{width:190px}.ruby-chat-title{box-sizing:border-box;color:#fff5ba;width:100%;font:800 12px var(--kh-font);letter-spacing:1px;text-align:left;background:#c74a55;border:0;border-radius:0;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.ruby-chat-title:hover{filter:none!important;transform:none!important}.ruby-chat-title span{font-size:19px}.ruby-chat-log{background:#32172791;flex:0 auto;height:164px;min-height:0;padding:9px 12px;overflow:auto}.ruby-chat-log p{background:#ffffff14;border-radius:10px;margin:5px 0;padding:7px 8px;font-size:10px;line-height:14px}.ruby-chat-log b{color:#ffc86a}.ruby-chat-choices{flex-wrap:wrap;gap:6px;margin:0 0 8px;display:flex}.ruby-chat-choices button{color:#fff5ba;font:800 12px var(--kh-font,Arial,sans-serif);cursor:pointer;background:#c74a55;border:2px solid #ffe8aa;border-radius:10px;padding:6px 8px}.ruby-chat-compose{border-radius:0 0 18px 18px;gap:6px;padding:9px 10px 10px;display:flex}.ruby-chat-compose input{color:#fff;min-width:0;font:700 10px var(--kh-font);background:#281220;border:2px solid #a95860;border-radius:9px;outline:none;flex:1;padding:8px 9px}.ruby-chat-compose input::placeholder{color:#d8a9b0}.ruby-chat-compose button{color:#61243b;background:#eab54d;border:0;border-radius:9px;width:34px;font-size:16px}.ruby-chat-quick{gap:6px;padding:8px 10px 0;display:flex}.ruby-chat-quick button{color:#5a243c;font:900 11px/1 var(--kh-font,Arial,sans-serif);letter-spacing:.55px;cursor:pointer;background:linear-gradient(#fff7c8,#f0cc75);border:2px solid #ffdda1;border-radius:10px;padding:7px 8px;box-shadow:0 3px #8a6230}.ruby-chat-quick button:hover{filter:brightness(1.06)}.ruby-chat-quick button:active{transform:translateY(2px);box-shadow:0 1px #8a6230}.ruby-chat-quick button:disabled{opacity:.45;cursor:not-allowed;filter:none;transform:none;box-shadow:0 3px #8a6230}.ruby-pan-tip{z-index:2;color:#ffe7ae;letter-spacing:.8px;pointer-events:none;background:#371727b8;border-radius:12px;padding:5px 12px;font-size:9px;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}@media (width<=700px){.ruby-battle-map header{top:12px;transform:translate(-50%)scale(.78)}.ruby-retreat{top:12px;left:12px}.ruby-chat{max-height:calc(100dvh - 100px);overflow-y:auto}.ruby-pan-tip{font-size:7px;bottom:5px}}.ruby-commands{left:20px;right:auto}section[aria-label="Empress Ruby battle map"] .ruby-commands{display:none}.ruby-chat-stack{z-index:16;position:absolute;bottom:21px;right:20px}.ruby-chat{bottom:auto;left:auto;right:auto}.ruby-battle-map header,.ruby-commands{border-color:#0000}.ruby-ruler-thought{z-index:1;color:#ffe99b;pointer-events:none;transform-origin:100% 100%;flex-direction:column;align-items:center;width:310px;height:145px;display:flex;position:absolute;bottom:calc(100% - 16px);right:0}.ruby-ruler-thought>b{color:#fff;letter-spacing:1.2px;text-shadow:0 2px #67243d,0 4px 7px #250d1bcc;margin:0 0 4px;font-size:14px;line-height:1;display:block}.ruby-ruler-thought figure{place-items:end center;width:118px;height:126px;margin:0;display:grid;overflow:visible}.ruby-ruler-thought img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 4px #210b1dcc);width:119px;height:132px}.ruby-chat{z-index:2;border-color:#0000}@media (width<=700px){.ruby-chat{transform-origin:100% 100%;bottom:8px;left:auto;right:8px}.ruby-ruler-thought{bottom:158px;right:8px;transform:scale(.72)}}.ruby-turn-indicator{z-index:2;color:#ffe99b;letter-spacing:1px;text-shadow:0 3px #67243d,0 6px 10px #250d1bcc;pointer-events:none;font-weight:800;line-height:1;position:absolute}.ruby-battle-map[data-guided] .ruby-side-panel,.ruby-battle-map[data-guided] .ruby-match-clock,.ruby-battle-map[data-guided] .ruby-turn-limit,.ruby-battle-map[data-guided] .ruby-turn-indicator{display:none}.ruby-battle-map[data-guided] .ruby-chat-stack,.ruby-battle-map[data-chat-lesson] .ruby-chat-stack{z-index:9;display:block}.ruby-lesson-dim{z-index:7;pointer-events:none;background:#0a0614d4;animation:.45s ease-out both ruby-lesson-dim-in;position:absolute;inset:0}@keyframes ruby-lesson-dim-in{0%{opacity:0}to{opacity:1}}.ruby-turn-limit{z-index:8;color:#ffe99b;text-align:right;pointer-events:none;font:800 10px var(--kh-font,Arial,sans-serif);background:#2a1840e8;border:3px solid #fff4bc;border-radius:14px;justify-items:end;gap:2px;padding:8px 12px;display:grid;position:absolute;top:18px;right:26px;box-shadow:0 4px #1a0f28}.ruby-turn-limit>b{color:#fff;letter-spacing:1px;font-size:22px;line-height:1}.ruby-turn-limit>span{letter-spacing:1.2px;opacity:.9;font-size:10px;font-weight:800}.ruby-turn-limit.warning>b{color:#ffd16f}.ruby-turn-limit.urgent>b{color:#ff8d8d;animation:.7s ease-in-out infinite alternate ruby-clock-pulse}.ruby-turns-banner{color:#fff;letter-spacing:1.1px;text-shadow:0 2px #57243c;margin-top:4px;font-size:11px;font-weight:900;display:block}.ruby-match-clock{z-index:2;color:#ffe99b;text-align:center;text-shadow:0 2px #67243d,0 4px 8px #250d1bcc;pointer-events:none;justify-items:center;gap:3px;display:grid;position:absolute;top:135px;left:50%;transform:translate(-50%)}.ruby-match-clock>b{color:#fff;letter-spacing:1.5px;font-size:30px;line-height:1}.ruby-match-clock-turns{color:#fff;font:800 16px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1px;text-shadow:0 3px #67243d,0 6px 10px #250d1bcc}.ruby-match-clock.warning>b,.ruby-match-clock.warning .ruby-match-clock-turns{color:#ffd16f}.ruby-match-clock.urgent>b,.ruby-match-clock.urgent .ruby-match-clock-turns{color:#ff8d8d;animation:.7s ease-in-out infinite alternate ruby-clock-pulse}@keyframes ruby-clock-pulse{0%{transform:scale(.94)}to{transform:scale(1.08)}}.ruby-chat-resize{z-index:4;cursor:nwse-resize;touch-action:none;opacity:.95;background:linear-gradient(135deg,#ffe59b 0 2px,#0000 2px 5px,#ffe59b 5px 7px,#0000 7px),linear-gradient(135deg,#0000 10px,#f0b850 10px);border:0;border-radius:10px 0;width:22px;height:22px;position:absolute;top:0;left:0}.ruby-chat-resize:hover{filter:brightness(1.08)}.ruby-chat-log{max-height:none;height:var(--ruby-chat-log-h,164px)!important}.ruby-pan-coach{z-index:3;text-align:center;color:#ffe99b;pointer-events:none;text-shadow:0 3px #67243d,0 6px 10px #250d1bcc;justify-items:center;gap:12px;width:260px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ruby-pan-coach>b{color:#fff;letter-spacing:1.4px;font-size:26px;animation:1.05s ease-in-out infinite alternate ruby-pan-coach-pulse}.ruby-pan-coach>div{width:112px;height:92px;position:relative}.ruby-pan-caret{color:#ffe99b;font-size:30px;font-style:normal;line-height:1;animation:.92s ease-in-out infinite alternate ruby-pan-caret-pulse;position:absolute}.ruby-pan-caret.up{top:0;left:50%;transform:translate(-50%)}.ruby-pan-caret.right{animation-delay:.18s;top:50%;right:0;transform:translateY(-50%)}.ruby-pan-caret.down{animation-delay:.36s;bottom:0;left:50%;transform:translate(-50%)}.ruby-pan-caret.left{animation-delay:.54s;top:50%;left:0;transform:translateY(-50%)}.ruby-pan-mouse{border:3px solid #ffe99b;border-radius:15px;width:27px;height:39px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px #67243d}.ruby-pan-mouse:before{content:"";background:#ffe99b;width:3px;height:13px;position:absolute;top:0;left:50%;transform:translate(-50%)}@keyframes ruby-pan-coach-pulse{0%{opacity:.72;transform:scale(.9)}to{opacity:1;transform:scale(1.08)}}@keyframes ruby-pan-caret-pulse{0%{opacity:.45}to{opacity:1}}@keyframes ruby-pan-hand{0%{transform:translate(-3px,-2px)}to{transform:translate(4px,3px)}}.ruby-chat-compose{background:#441b2e;border-top:1px solid #ffffff12;padding-bottom:10px}.truce-flag-pole,.truce-flag-cloth,.truce-flag-symbol{display:block;position:absolute}.truce-flag-pole{background:linear-gradient(90deg,#4c2a1c,#d8a85c 47%,#64351f);border-radius:5px;width:7px;height:51px;top:0;left:29px;box-shadow:1px 2px #2c180f}.truce-flag-pole:before{content:"";background:#c85057;border:2px solid #ffe7a3;border-radius:50%;width:15px;height:15px;position:absolute;top:-6px;left:-4px}.truce-flag-cloth{transform-origin:0;background:linear-gradient(125deg,#fff,#dce3e9 55%,#fff);border:2px solid #d7dce3;border-radius:2px 15px 15px 2px;width:104px;height:39px;animation:1.7s ease-in-out infinite ruby-truce-cloth;top:6px;left:35px;box-shadow:inset -7px 0 #b9c4cf}.truce-flag-symbol{color:#9a4a55;text-shadow:0 1px #fff;font-size:22px;font-style:normal;top:12px;left:72px}.truce-flag-copy{z-index:2;box-sizing:border-box;color:#653344;font:800 8px/10px var(--kh-font);letter-spacing:.4px;text-shadow:0 1px #fff;white-space:normal;place-items:center;padding:3px 8px;display:grid;position:absolute;inset:0}.ruby-truce-status[data-live=false] .truce-flag-copy{color:#8d4650}.ruby-truce-lab{z-index:6;color:#fff5c8;width:154px;font:800 9px var(--kh-font);pointer-events:auto;background:#421b2de8;border:2px solid #f0c85b;border-radius:12px;padding:9px;position:absolute;bottom:18px;left:18px;box-shadow:0 4px #27111e}.ruby-truce-lab>b,.ruby-truce-lab small{display:block}.ruby-truce-lab>b{color:#ffe99b;letter-spacing:.8px}.ruby-truce-lab small{color:#e5c3cb;margin:3px 0 7px;font-size:7px;line-height:9px}.ruby-truce-lab div{grid-template-columns:repeat(5,1fr);gap:4px;display:grid}.ruby-truce-lab button{color:#fff8d8;height:23px;font:800 9px var(--kh-font);background:#783344;border:1px solid #c78159;border-radius:6px}.ruby-truce-lab button[data-selected]{color:#542139;background:#f0bd54;box-shadow:0 2px #9b6134}@keyframes ruby-truce-cloth{0%,to{transform:skewY(-2deg)scaleX(1)}50%{transform:skewY(3deg)scaleX(.91)}}.truce-flag-v2 .truce-flag-pole{height:36px;top:7px;left:43px}.truce-flag-v2 .truce-flag-cloth{background:repeating-linear-gradient(90deg,#d9c691 0 8px,#fff3c8 8px 17px);border-radius:16px;width:115px;height:29px;top:8px;left:50px;box-shadow:0 3px #8e7044}.truce-flag-v2 .truce-flag-symbol{color:#a53c4d;font-size:19px;top:10px;left:98px}.truce-flag-v3 .truce-flag-pole{height:45px;left:48px}.truce-flag-v3 .truce-flag-cloth{width:50px;box-shadow:none;background:linear-gradient(135deg,#568bb6,#284f80);border-radius:2px 0 0 14px;left:55px}.truce-flag-v3 .truce-flag-cloth:after{content:"";background:linear-gradient(135deg,#cf5b64,#72293e);border:2px solid #f2c7c9;border-left:0;border-radius:0 14px 14px 0;width:50px;height:39px;position:absolute;top:0;left:50px}.truce-flag-v3 .truce-flag-symbol{color:#fff0af;z-index:1;font-size:18px;top:11px;left:91px}.truce-flag-v4 .truce-flag-pole{display:none}.truce-flag-v4 .truce-flag-cloth{background:linear-gradient(#fff4c7,#dfbf7f);border-color:#a46e3e;border-radius:5px;width:120px;height:42px;animation:none;top:2px;left:44px;box-shadow:0 4px #815132}.truce-flag-v4 .truce-flag-symbol{color:#7a4932;font-size:21px;top:10px;left:94px}.truce-flag-v5 .truce-flag-pole{display:none}.truce-flag-v5 .truce-flag-cloth{clip-path:polygon(50% 0,100% 18%,88% 72%,50% 100%,12% 72%,0 18%);background:linear-gradient(#e8eef2,#8ba1b0);border:3px solid #ffe8a1;border-radius:50% 50% 35% 35%;width:50px;height:48px;animation:none;top:0;left:79px}.truce-flag-v5 .truce-flag-symbol{color:#a33f4a;font-size:25px;top:9px;left:91px}.truce-flag-v6 .truce-flag-pole{height:49px;top:2px;left:75px;transform:rotate(-37deg)}.truce-flag-v6 .truce-flag-cloth{width:7px;height:49px;box-shadow:none;background:linear-gradient(90deg,#b9c9d4,#fff,#7f96a7);border-radius:5px;animation:none;top:2px;left:108px;transform:rotate(37deg)}.truce-flag-v6 .truce-flag-symbol{color:#c5535c;background:#fff;border-radius:12px;padding:2px 8px;font-size:17px;top:12px;left:87px}.truce-flag-v7 .truce-flag-pole{left:34px}.truce-flag-v7 .truce-flag-cloth{background:linear-gradient(130deg,#f6fbff,#b8e5ed);border-radius:45% 55% 48% 18%;width:112px;height:43px;box-shadow:inset -8px 0 #8fc7d1}.truce-flag-v7 .truce-flag-symbol{color:#fff;text-shadow:0 2px #5d9aac;font-size:26px;top:9px;left:74px}.truce-flag-v8 .truce-flag-pole{background:repeating-linear-gradient(45deg,#d74d55 0 5px,#fff3dc 5px 10px);left:34px}.truce-flag-v8 .truce-flag-cloth{background:linear-gradient(135deg,#fff7fb,#f2bed6 55%,#fff);border-color:#ffe59b;border-radius:12px 20px 20px 3px}.truce-flag-v8 .truce-flag-symbol{color:#d64f7c;text-shadow:0 1px #fff}.truce-flag-v9 .truce-flag-pole{height:55px;top:0;left:96px}.truce-flag-v9 .truce-flag-cloth{background:linear-gradient(90deg,#f0e6d2,#fff,#e4d7bc);border-radius:0 0 18px 18px;width:82px;height:43px;animation:none;top:6px;left:57px;box-shadow:inset 0 -6px #c6af87}.truce-flag-v9 .truce-flag-symbol{color:#7f3b4d;font-size:19px;top:13px;left:87px}.truce-flag-v10 .truce-flag-pole{background:#50322a;width:9px;height:20px;top:33px;left:98px}.truce-flag-v10 .truce-flag-cloth{clip-path:polygon(50% 0,92% 28%,78% 86%,50% 100%,22% 86%,8% 28%);background:radial-gradient(circle at 35% 25%,#fff,#baf5ff 24%,#4c9cd1 62%,#36518d);border:0;border-radius:50% 50% 45% 45%;width:44px;height:45px;animation:1.5s ease-in-out infinite ruby-crystal-pulse;top:0;left:80px;box-shadow:0 0 16px #8cf2ff}.truce-flag-v10 .truce-flag-symbol{color:#fff;text-shadow:0 0 6px #fff;font-size:20px;top:9px;left:90px}@keyframes ruby-crystal-pulse{50%{filter:brightness(1.3);transform:scale(1.08)}}@media (width<=700px){.ruby-truce-status{transform-origin:top}.ruby-truce-lab{transform-origin:0 100%;bottom:8px;left:8px;transform:scale(.78)}}.ruby-battle-map [data-keep],.ruby-battle-map [data-break]{box-sizing:border-box;vertical-align:middle;white-space:nowrap;width:94px;font-size:10px;padding:9px 2px!important;display:inline-block!important}.ruby-battle-map span[style*="color:#ffe0a3"]{color:#b8bec8!important}.ruby-chat-log .ruby-chat-action{background:#f0b9332b;border-left:3px solid #f0b933}.ruby-chat-log .ruby-chat-action b{color:#fff0af}.ruby-chat-log .ruby-chat-ruby-label{color:#ff6970}.ruby-chat-log .ruby-chat-you-label{color:#ffc86a}.ruby-chat-log .ruby-chat-event{letter-spacing:.4px;background:#d4d7dc26;border-left:3px solid #d4d7dc}.ruby-chat-log .ruby-chat-event-label{color:#fff}.ruby-tribute-terms{color:#fff5c8;background:#f0b93320;border:1px solid #f0c85b;border-radius:10px;gap:4px;font-size:9px;line-height:12px;display:grid}.ruby-tribute-terms>b{color:#ffe99b;letter-spacing:.7px}.ruby-tribute-terms span{color:#f7dfe0}.ruby-tribute-terms div{gap:5px;margin-top:3px;display:flex}.ruby-tribute-terms button{color:#57243c;font:800 8px var(--kh-font);letter-spacing:.35px;background:#efbd51;border:0;border-radius:8px;flex:1;padding:6px 3px}.ruby-tribute-terms button+button{color:#fff3dc;background:#7f3d4d}.ruby-truce-status .truce-flag-symbol{display:none}.ruby-truce-status{z-index:4;color:#ffe99b;text-align:center;pointer-events:none;filter:none;width:auto;height:auto;box-shadow:none;font:800 11px var(--kh-font);letter-spacing:1.3px;white-space:nowrap;text-shadow:0 2px #67243d,0 4px 8px #250d1bcc;background:0 0;border:0;line-height:1.2;animation:none;position:absolute;left:50%;transform:translate(-50%)}.ruby-truce-status:before,.ruby-truce-status:after{display:none}@media (width<=700px){.ruby-truce-status{font-size:8px;transform:translate(-50%)}}.ruby-tribute-terms{margin:7px 10px}.ruby-tribute-terms>b{font-size:12px}.ruby-tribute-terms span{font-size:10px;line-height:14px}.ruby-tribute-terms{padding:11px 8px 5px}.ruby-tribute-terms button{font-size:10px}.ruby-retreat{align-items:center;gap:6px;line-height:1;display:inline-flex}.ruby-retreat span{letter-spacing:.8px}.ruby-retreat{padding:6px 13px;font-size:16px}.ruby-retreat span{font-size:16px}.ruby-battle-map header .ruby-win-hint{color:#ffe9c0;letter-spacing:.2px;white-space:normal;opacity:.95;max-width:280px;margin:4px auto 6px;font-size:9px;line-height:1.35;display:block}.ruby-surrender-offer{z-index:2;color:#fff5d5;font:800 11px var(--kh-font);letter-spacing:.7px;cursor:pointer;background:#8b2e3e;border:0;border-radius:14px;padding:6px 11px;position:absolute;top:62px;left:25px;box-shadow:0 3px #5a1c28}.ruby-surrender-offer:disabled{opacity:.55;cursor:default}.ruby-turn-coach{left:50%;bottom:max(72px,calc(env(safe-area-inset-bottom) + 56px));z-index:3;color:#ffe99b;font:700 12px var(--kh-font);letter-spacing:.3px;pointer-events:none;background:#2a1840ee;border:2px solid #fff4bc;border-radius:14px;padding:8px 14px;position:absolute;transform:translate(-50%);box-shadow:0 4px #1a0f28}.ruby-turn-coach>b{color:#fff;font-weight:900}.ruby-mind-row{grid-template-columns:84px 1fr 36px;align-items:center;gap:5px;min-height:18px;display:grid}.ruby-mind-row>span{color:#f7dfe0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ruby-mind-row>i{background:#251222;border-radius:6px;height:7px;display:block;position:relative;overflow:hidden;box-shadow:inset 0 1px #0008}.ruby-mind-row>i>em{border-radius:inherit;background:linear-gradient(90deg,#f0bd54,#ffe99b);height:100%;display:block}.ruby-mind-row.dynamic>i:after{content:"";background:#fff9d688;width:1px;position:absolute;top:0;bottom:0;left:50%}.ruby-mind-row.dynamic>i>em{background:linear-gradient(90deg,#7b3c55,#ff6970)}.ruby-mind-row>strong{color:#fff;text-align:right;font-size:8px;line-height:1.1;position:relative}.ruby-mind-flash{color:#ffb0a6;font-size:7px;font-style:normal;animation:2.8s forwards ruby-mind-flash;display:block}@keyframes ruby-mind-flash{0%{opacity:1;transform:translateY(0)}70%{opacity:1}to{opacity:0;transform:translateY(-5px)}}.ruby-end-turn-early{z-index:2;color:#63263b;font:800 9px var(--kh-font);letter-spacing:.8px;background:#f0b850;border:0;border-radius:9px;padding:6px 10px;position:absolute;right:26px;box-shadow:0 3px #aa6d39}@media (width<=700px){.ruby-end-turn-early{transform-origin:100% 0;transform:scale(.78)}}.ruby-surrender-terms{background:#8f2e3b88;border-color:#ff8b7c}.ruby-surrender-terms>b{color:#fff0bf}.ruby-deal-row{color:#ffe9c6;background:#ffffff12;border-radius:5px;margin-bottom:4px;padding:4px 6px;font-size:8px;line-height:12px}.ruby-deal-row:last-child{margin-bottom:0}.ruby-deal-entry{border-bottom:1px solid #ffffff14;padding:5px 0}.ruby-deal-entry:last-child{border-bottom:0;padding-bottom:0}.ruby-deal-entry>span{color:#f7dfe0;font-size:8px;line-height:12px;display:block}.ruby-deal-entry>span>i{color:#c79aa8;letter-spacing:.6px;margin-bottom:2px;font-size:7px;font-style:normal;display:block}.ruby-deal-entry>em{color:#ffc86a;margin-top:3px;font-size:7px;font-style:normal;line-height:11px;display:block}.ruby-deal-entry.breach>span{color:#ffb0a6}.ruby-deal-entry.breach>em{color:#ff8b7c}.ruby-progress{width:100%;max-width:300px;margin:7px auto 0}.ruby-progress>i{background:linear-gradient(#8d3546,#5a1a2c);border-radius:8px;height:9px;display:block;overflow:hidden;box-shadow:inset 0 2px #000a}.ruby-progress>i>em{border-radius:inherit;background:linear-gradient(#8ec8f5,#2c5680 58%,#1a3858);height:100%;transition:width .35s;display:block}.ruby-battle-map header .ruby-progress>span{white-space:nowrap;justify-content:center;align-items:center;gap:7px;margin-top:5px;display:flex}.ruby-battle-map header .ruby-progress>span>b{letter-spacing:.8px;font-size:12px;display:inline-block}.ruby-progress>span>i{color:#ffe99b;font-size:13px;font-style:normal}.ruby-progress .yours{color:#a9dcff}.ruby-progress .hers{color:#ffb3ba}.ruby-score-row{background:#3a1424;border:2px solid #ffe59b;border-radius:10px;justify-content:center;align-items:stretch;width:100%;margin:1px auto 6px;display:flex;overflow:hidden;box-shadow:0 3px #2a1020}.ruby-score-row>strong{min-width:0;font:900 24px/1 var(--kh-font,Arial,sans-serif);letter-spacing:0;text-align:center;text-shadow:0 2px #14060c;font-variant-numeric:tabular-nums;flex:1;padding:3px 0 2px}.ruby-score-row>strong.yours{color:#d9f3ff;background:linear-gradient(#2c5680,#1a3858)}.ruby-score-row>strong.hers{color:#ffd6d9;background:linear-gradient(#8d3546,#5a1a2c)}.ruby-score-row>em{color:#ffe99b;width:58px;font:900 13px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1px;background:#4a1830;border-left:2px solid #ffe59b;border-right:2px solid #ffe59b;flex:none;place-items:center;margin:0;font-style:normal;display:grid}.ruby-battle-map header .ruby-sudden-tag{box-sizing:border-box;color:#ffe7a8;letter-spacing:.45px;text-align:center;text-shadow:0 1px #2a0c14;white-space:nowrap;background:linear-gradient(#7a2434,#4c1422);border:2px solid #ffd27a;border-radius:6px;width:100%;margin:7px 0 0;padding:4px 6px 5px;font-size:10px;font-weight:900;line-height:1.2;animation:1.15s ease-in-out infinite alternate ruby-sudden-glow;display:block;box-shadow:0 2px #2a0c14}@keyframes ruby-sudden-glow{0%{text-shadow:0 1px #2a0c14}to{text-shadow:0 1px #2a0c14,0 0 8px #ffd27a}}@media (prefers-reduced-motion:reduce){.ruby-battle-map header .ruby-sudden-tag{animation:none}}.ruby-chat-verbs{background:#321727;flex-wrap:nowrap;gap:6px;padding:8px 10px 2px;display:flex}.ruby-chat-verb{color:#5a243c;min-width:0;min-height:36px;font:900 14px/1 var(--kh-font,Arial,sans-serif);letter-spacing:.55px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;text-shadow:0 1px #fff6da;background:linear-gradient(#fff7c8,#f0cc75);border:2px solid #ffdda1;border-radius:10px;flex:1 1 0;padding:7px 4px;position:relative;overflow:hidden;box-shadow:0 3px #8a6230,0 10px 18px #12081255}.ruby-chat-verb:before{content:"";opacity:.18;mix-blend-mode:overlay;pointer-events:none;background:radial-gradient(circle at 30% 25%,#fff3,#0000 52%),repeating-linear-gradient(135deg,#ffffff14 0 2px,#0000 2px 8px);position:absolute;inset:0}.ruby-chat-verb:hover{filter:brightness(1.06)}.ruby-chat-verb:active{transform:translateY(2px);box-shadow:0 1px #8a6230,0 6px 12px #12081255}.ruby-chat-verb:focus-visible{outline-offset:2px;outline:2px solid #fff4bc}.ruby-chat-verb.verb-pledge{color:#5a243c;background:linear-gradient(#fff7c8,#f0cc75);border-color:#ffdda1;box-shadow:0 3px #aa6d39,0 10px 18px #12081255}.ruby-chat-verb.verb-pledge:active{box-shadow:0 1px #aa6d39,0 6px 12px #12081255}.ruby-chat-verb.verb-threaten{color:#fff6d6;background:linear-gradient(#c74a55,#7b2a3b);border-color:#ffb3ba;box-shadow:0 3px #4a1627,0 10px 18px #12081255}.ruby-chat-verb.verb-threaten:active{box-shadow:0 1px #4a1627,0 6px 12px #12081255}.ruby-chat-verb.verb-threaten{text-shadow:0 1px #2a0c14}.ruby-chat-verb.verb-bribe{color:#5a243c;background:linear-gradient(#ffd27a,#e4a83d);border-color:#ffe0a6;box-shadow:0 3px #aa6d39,0 10px 18px #12081255}.ruby-chat-verb.verb-bribe:active{box-shadow:0 1px #aa6d39,0 6px 12px #12081255}.ruby-field-minimap{width:100%;height:auto;display:block}.ruby-field-minimap-ground{fill:#2a1520;stroke:#f1ca5044;stroke-width:1.5px}.ruby-field-minimap-split{stroke:#ffe99b33;stroke-width:1px;stroke-dasharray:3 4}.ruby-field-minimap-side{fill:#ffb3ba;font:800 8px var(--kh-font,Arial,sans-serif);letter-spacing:.8px}.ruby-field-minimap-side.you{fill:#a9dcff}.ruby-field-minimap-dot{stroke:#fff6da88;stroke-width:.8px}.ruby-field-minimap-dot.yours{fill:#4d80b8}.ruby-field-minimap-dot.hers{fill:#e23b4a}.ruby-field-minimap-dot.neutral{fill:#8a9096}.ruby-field-minimap-keep{stroke:#fff6da;stroke-width:.7px;fill:none}.ruby-field-minimap-hint{color:#ffe9c0;font:700 9px/1.3 var(--kh-font,Arial,sans-serif);letter-spacing:.3px;margin:4px 2px 0}.ruby-field-minimap-names{color:#ffe99b88;margin-top:2px;font-size:8px;display:block}.ruby-manual-open{z-index:2;color:#6b3041;width:34px;height:34px;font:800 16px var(--kh-font);background:#fff5d5;border:0;border-radius:50%;position:absolute;top:23px;left:147px;box-shadow:0 4px #9b765f}.ruby-manual{z-index:13;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#210d1dd1;place-items:center;padding:24px;display:grid;position:absolute;inset:0}.ruby-manual>div{color:#fff5d4;text-align:left;background:linear-gradient(150deg,#8f3348,#521f37);border:4px solid #ffe59b;border-radius:24px;width:min(470px,94vw);max-height:86vh;padding:24px 26px 22px;overflow:auto;box-shadow:0 8px #371326,0 20px 42px #10040ccc}.ruby-manual span{color:#ffe99b;letter-spacing:1.3px;font-size:9px;display:block}.ruby-manual h2{color:#fff;letter-spacing:1px;text-shadow:0 3px #57243c;margin:5px 0 15px;font-size:27px}.ruby-manual section{margin-bottom:13px}.ruby-manual section>b{color:#ffc86a;letter-spacing:.9px;margin-bottom:4px;font-size:9px;display:block}.ruby-manual p{color:#ffe9c6;margin:0;font-size:11px;line-height:17px}.ruby-manual em{color:#fff;font-style:normal;font-weight:800}.ruby-manual button{color:#57243c;width:100%;font:800 11px var(--kh-font);letter-spacing:.8px;background:#f0b850;border:0;border-radius:12px;margin-top:6px;padding:11px;position:sticky;bottom:-22px;box-shadow:0 4px #aa6d39,0 -12px 16px #521f37}@media (width<=700px){.ruby-manual-open{width:28px;height:28px;font-size:13px}}.ruby-music-toggle{font-size:14px;left:187px}@media (width<=700px){.ruby-music-toggle{font-size:12px}}.ruby-music-toggle{z-index:2;color:#6b3041;cursor:pointer;background:#fff5d5;border:0;border-radius:50%;width:34px;height:34px;position:absolute;top:23px;box-shadow:0 4px #9b765f}.ruby-music-toggle.music-off{color:#8a3f48}@media (width<=700px){.ruby-music-toggle{width:28px;height:28px}}.ruby-side-panel{z-index:2;color:#fff5c8;width:252px;height:min(300px,100vh - 160px);max-height:min(300px,100vh - 160px);font:800 9px var(--kh-font);background:#421b2de8;border:2px solid #f0c85b;border-radius:13px;flex-direction:column;display:flex;position:absolute;bottom:20px;left:20px;overflow:hidden;box-shadow:0 4px #27111e}.ruby-side-tabs{border-bottom:1px solid #f0c85b66;flex:none;display:flex}.ruby-side-tabs>button{color:#e0b6c2;font:800 9px var(--kh-font);letter-spacing:.8px;background:0 0;border:0;flex:1;padding:9px 4px;position:relative}.ruby-side-tabs>button.on{color:#ffe99b;background:#ffffff14;box-shadow:inset 0 -2px #f0c85b}.ruby-side-tabs>button>i{color:#fff;background:#ff6970;border-radius:7px;min-width:13px;height:13px;font-size:8px;font-style:normal;line-height:13px;position:absolute;top:3px;right:8px}.ruby-side-collapse{color:#ffc86a!important;flex:0 0 34px!important;font-size:13px!important}.ruby-side-body{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.ruby-side-body>section{padding:8px 10px}.ruby-side-body>section+section{border-top:1px solid #ffffff1f}.ruby-side-body>section>b{color:#ffc86a;letter-spacing:.8px;justify-content:space-between;align-items:baseline;gap:6px;margin-bottom:6px;font-size:8px;display:flex}.ruby-side-body>section>b>em{color:#c79aa8;letter-spacing:.4px;font-size:7px;font-style:normal}.ruby-deal-empty{color:#c79aa8;font-size:8px;font-weight:700;line-height:12px}.ruby-sovereign-brief{background:linear-gradient(135deg,#ffcf7020,#ffffff08)}.ruby-sovereign-brief>b>em{color:#76d8bd!important}.ruby-sovereign-brief.pulse{animation:1.2s ease-out ruby-brief-pulse}.ruby-doctrine,.ruby-intent,.ruby-observation-trace,.ruby-memory-trace{background:#00000018;border-radius:7px;padding:6px 7px}.ruby-doctrine+.ruby-intent,.ruby-intent+.ruby-observation-trace,.ruby-intent+.ruby-memory-trace,.ruby-observation-trace+.ruby-memory-trace{margin-top:5px}.ruby-doctrine>span,.ruby-intent>span,.ruby-observation-trace>span,.ruby-memory-trace>span{color:#c79aa8;letter-spacing:.65px;font-size:7px;display:block}.ruby-doctrine>p,.ruby-intent>p,.ruby-observation-trace>p,.ruby-memory-trace>p{color:#ffe9c6;margin:3px 0 0;font-size:8px;line-height:12px}.ruby-doctrine>p{color:#ffe09a;font-style:italic}.ruby-intent>small{color:#9edcc8;margin-top:4px;font-size:7px;line-height:10px;display:block}.ruby-observation-trace>p{color:#a9dcff}.ruby-observation-trace>p,.ruby-memory-trace>p{border-top:1px solid #ffffff12;padding-top:3px}.ruby-observation-trace>p:first-of-type,.ruby-memory-trace>p:first-of-type{border-top:0}.ruby-cause-effect{background:#120c18d9;border:1px solid #f0c85b55;border-radius:8px;gap:4px;margin:0 0 7px;padding:7px;display:grid}.ruby-cause-effect p{color:#ffe9c6;margin:0;font-size:8px;line-height:11px}.ruby-cause-effect span{color:#c79aa8;letter-spacing:.6px;min-width:46px;margin-right:5px;font-size:7px;display:inline-block}.ruby-cause-effect .because span{color:#a9dcff}.ruby-cause-effect .aim span{color:#76d8bd}.ruby-cause-effect .move span{color:#ffc86a}.ruby-cause-effect .target span{color:#f1bcff}.ruby-sovereign-brief .ruby-thought-speech{margin-top:7px}.ruby-side-body>.ruby-anticipation{border-bottom:1px solid #ffffff1f;margin:0;padding:8px 10px}.ruby-mind-meters{background:#0002;border:1px solid #ffffff14;border-radius:8px;margin:6px 8px 8px;padding:0}.ruby-mind-meters>summary{cursor:pointer;color:#c79aa8;letter-spacing:.7px;padding:7px 8px;font-size:7px;list-style:none}.ruby-mind-meters>summary::-webkit-details-marker{display:none}.ruby-mind-meters[open]>summary{color:#ffe59b;border-bottom:1px solid #ffffff12}.ruby-mind-meters>section{padding:7px 8px}.ruby-brief-hud{z-index:3;color:#fff5c8;width:252px;font:800 9px var(--kh-font);background:#421b2df2;border:2px solid #f0c85b;border-radius:13px;padding:9px 10px;position:absolute;bottom:20px;left:20px;box-shadow:0 4px #27111e}.ruby-brief-hud.pulse{animation:1.2s ease-out ruby-brief-pulse}.ruby-brief-hud>header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.ruby-brief-hud>header span{color:#76d8bd;letter-spacing:1px;font-size:8px}.ruby-brief-hud>header button{color:#ffe59b;font:800 7px var(--kh-font);letter-spacing:.6px;background:#0003;border:1px solid #f0c85b88;border-radius:6px;padding:3px 7px}.ruby-brief-hud p{color:#ffe9c6;margin:0 0 4px;font-size:9px;font-weight:700;line-height:12px}.ruby-brief-hud p:last-child{margin-bottom:0}.ruby-brief-hud b{color:#c79aa8;letter-spacing:.6px;min-width:52px;margin-right:5px;font-size:7px;display:inline-block}.ruby-brief-hud .because b{color:#a9dcff}.ruby-brief-hud .aim b{color:#76d8bd}.ruby-brief-hud .move b{color:#ffc86a}.ruby-brief-hud .target b{color:#f1bcff}@keyframes ruby-brief-pulse{0%{box-shadow:0 0 #ffc86a66,0 4px #27111e}70%{box-shadow:0 0 0 8px #ffc86a00,0 4px #27111e}to{box-shadow:0 4px #27111e}}@media (width<=700px){.ruby-brief-hud{transform-origin:0 100%;width:214px;bottom:8px;left:8px;transform:scale(.86)}}@media (width<=480px){.ruby-brief-hud{width:190px;left:7px;transform:scale(.78)}}.ruby-thoughtfield{isolation:isolate;background:radial-gradient(at 50% 52%,#e8546e25,#0000 44%),linear-gradient(135deg,#130c1fd1,#4e1e38a8);border:1px solid #f0c85b44;border-radius:12px;height:126px;margin:3px -5px 7px;position:relative;overflow:hidden}.ruby-thoughtfield:before{content:"";pointer-events:none;background:repeating-linear-gradient(90deg,#ffffff03 0 1px,#0000 1px 12px),repeating-linear-gradient(0deg,#ffffff02 0 1px,#0000 1px 12px);position:absolute;inset:0}.ruby-thoughtfield:after{content:"";pointer-events:none;border:1px solid #ffe59b1f;border-radius:9px;position:absolute;inset:8px}.ruby-thoughtfield svg{width:100%;height:100%;position:absolute;inset:0;overflow:visible}.ruby-thought-orbit{fill:none;stroke:#ffc86a2b;stroke-width:1px;stroke-dasharray:2 4;animation:9s linear infinite ruby-thought-orbit}.ruby-thought-current{fill:none;stroke:url(#thought-current);stroke-width:1.4px;stroke-linecap:round;stroke-dasharray:3 4;animation:1.8s linear infinite ruby-thought-flow}.ruby-thought-current.east{animation-delay:-.45s}.ruby-thought-current.south{animation-delay:-.9s}.ruby-thought-current.west{animation-delay:-1.35s}.ruby-thoughtfield.shifted .ruby-thought-current{stroke-width:2px;animation-duration:.9s}.ruby-thought-core{z-index:1;color:#fff7d2;text-align:center;background:radial-gradient(circle at 38% 28%,#fff4c7,#c44b61 43%,#5a203d 72%);border:1px solid #ffe59b;border-radius:50%;place-items:center;width:60px;height:60px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 5px #ffc86a12,0 0 19px #ff6c7b66}.ruby-thought-core span,.ruby-thought-core small{letter-spacing:.9px;font-size:6px;line-height:8px;display:block}.ruby-thought-core span{color:#ffe59b}.ruby-thought-core strong{letter-spacing:.4px;text-shadow:0 1px #5c1f35;font-size:10px;line-height:10px}.ruby-thought-core small{color:#baf3df}.ruby-thought-node{z-index:1;color:#e5c3cb;letter-spacing:.45px;text-shadow:0 1px #210b18;grid-template-columns:auto auto;align-items:center;gap:1px;font-size:6px;line-height:7px;display:grid;position:absolute}.ruby-thought-node i{color:#ffc86a;background:#1f1024b8;border:1px solid #ffffff31;border-radius:50%;grid-row:1/3;place-items:center;width:16px;height:16px;font-size:10px;font-style:normal;display:grid}.ruby-thought-node b{color:#fff0b7;font-size:7px;line-height:7px}.ruby-thought-node.doctrine{top:17px;left:10px}.ruby-thought-node.observed{top:17px;right:10px}.ruby-thought-node.remembers{bottom:16px;right:10px}.ruby-thought-node.field-shift{bottom:16px;left:10px}.ruby-thought-node.observed i{color:#a9dcff}.ruby-thought-node.remembers i{color:#f1bcff}.ruby-thought-node.field-shift i{color:#76d8bd}@keyframes ruby-thought-flow{to{stroke-dashoffset:-14px}}@keyframes ruby-thought-orbit{to{stroke-dashoffset:-48px}}.ruby-thought-speech{color:#f6ead2;background:linear-gradient(100deg,#0e2331d9,#45213ddd);border:1px solid #76d8bd65;border-radius:9px;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:5px;min-height:35px;margin:-3px -3px 7px;padding:4px 6px;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff16}.ruby-thought-speech:before{content:"";background:linear-gradient(90deg,#0000,#a9dcff66,#0000);width:18%;animation:2.8s linear infinite ruby-speech-scan;position:absolute;top:0;bottom:0;left:-20%;transform:skew(-22deg)}.ruby-thought-speech.listening{border-color:#ffc86ab0}.ruby-thought-speech.listening:before{animation-duration:.7s}.ruby-thought-wave{z-index:1;justify-content:center;align-items:center;gap:2px;height:23px;display:flex;position:relative}.ruby-thought-wave i{background:#a9dcff;border-radius:3px;width:2px;height:7px;animation:1s ease-in-out infinite ruby-speech-wave;display:block;box-shadow:0 0 5px #a9dcff}.ruby-thought-wave i:nth-child(2){height:13px;animation-delay:-.16s}.ruby-thought-wave i:nth-child(3){height:18px;animation-delay:-.32s}.ruby-thought-wave i:nth-child(4){height:11px;animation-delay:-.48s}.ruby-thought-wave i:nth-child(5){height:6px;animation-delay:-.64s}.ruby-thought-speech.listening .ruby-thought-wave i{background:#ffc86a;animation-duration:.52s;box-shadow:0 0 5px #ffc86a}.ruby-thought-said,.ruby-thought-reading{z-index:1;min-width:0;position:relative}.ruby-thought-said span,.ruby-thought-reading span{color:#a9dcff;letter-spacing:.65px;font-size:6px;line-height:8px;display:block}.ruby-thought-said p{color:#fff1d2;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:7px;line-height:9px;overflow:hidden}.ruby-thought-reading{text-align:right;border-left:1px solid #76d8bd77;padding-left:5px}.ruby-thought-reading b,.ruby-thought-reading small{white-space:nowrap;display:block}.ruby-thought-reading b{color:#76d8bd;letter-spacing:.35px;font-size:7px;line-height:8px}.ruby-thought-reading small{color:#f0d4a3;letter-spacing:.3px;font-size:6px;line-height:8px}@keyframes ruby-speech-scan{to{left:118%}}@keyframes ruby-speech-wave{50%{opacity:.55;transform:scaleY(.36)}}.ruby-thoughtfield.signal-truce{box-shadow:inset 0 0 22px #78d6ed28}.ruby-thoughtfield.signal-tribute{box-shadow:inset 0 0 22px #ffc86a32}.ruby-thoughtfield.signal-territory{box-shadow:inset 0 0 22px #76d8bd2f}.ruby-thoughtfield.signal-pledge{box-shadow:inset 0 0 22px #f1bcff30}.ruby-thoughtfield.signal-surrender,.ruby-thoughtfield.signal-withdraw{box-shadow:inset 0 0 26px #ff697044}.ruby-thought-speech.truce{background:linear-gradient(100deg,#102b42e8,#27234ad9);border-color:#a9dcffb8}.ruby-thought-speech.truce .ruby-thought-wave i{background:#a9dcff;box-shadow:0 0 5px #a9dcff}.ruby-thought-speech.truce .ruby-thought-reading b{color:#a9dcff;text-shadow:0 0 5px #a9dcff}.ruby-thought-speech.tribute{background:linear-gradient(100deg,#3a2816e8,#4b2632d9);border-color:#ffc86aa8}.ruby-thought-speech.tribute .ruby-thought-wave i{background:#ffc86a;box-shadow:0 0 5px #ffc86a}.ruby-thought-speech.tribute .ruby-thought-reading b{color:#ffc86a;text-shadow:0 0 5px #ffc86a}.ruby-thought-speech.territory{background:linear-gradient(100deg,#112f2de8,#253f3bd9);border-color:#76d8bdb8}.ruby-thought-speech.territory .ruby-thought-wave i{background:#76d8bd;box-shadow:0 0 5px #76d8bd}.ruby-thought-speech.territory .ruby-thought-reading b{color:#76d8bd;text-shadow:0 0 5px #76d8bd}.ruby-thought-speech.pledge{background:linear-gradient(100deg,#302147e8,#432b50d9);border-color:#f1bcffb8}.ruby-thought-speech.pledge .ruby-thought-wave i{background:#f1bcff;box-shadow:0 0 5px #f1bcff}.ruby-thought-speech.pledge .ruby-thought-reading b{color:#f1bcff;text-shadow:0 0 5px #f1bcff}.ruby-thought-speech.surrender,.ruby-thought-speech.withdraw{background:linear-gradient(100deg,#48202ae8,#4d1b2dd9);border-color:#ff8b7cae}.ruby-thought-speech.surrender .ruby-thought-wave i,.ruby-thought-speech.withdraw .ruby-thought-wave i{background:#ff8b7c;box-shadow:0 0 5px #ff8b7c}.ruby-thought-speech.surrender .ruby-thought-reading b,.ruby-thought-speech.withdraw .ruby-thought-reading b{color:#ff8b7c;text-shadow:0 0 5px #ff8b7c}.ruby-side-panel.closed{height:auto;max-height:none}@media (width<=700px){.ruby-side-panel{width:214px;left:8px;transform:scale(.86)}.ruby-chat-stack{bottom:8px;right:8px}.ruby-chat{max-width:310px}}.ruby-battle-map header>b{letter-spacing:.35px;font-size:13px}.ruby-turn-indicator{white-space:nowrap;font-size:22px;top:72px;left:auto;right:26px;transform:none}.ruby-end-turn-early{top:104px}.ruby-truce-status{top:181px}.ruby-guard-status{color:#a9dcff;text-shadow:0 2px #1a3350,0 4px 8px #0a1528cc;top:202px}.ruby-tribute-status{color:#ffc86a;text-shadow:0 2px #5a3010,0 4px 8px #2a1508cc;top:223px}.ruby-feud-status{color:#ff9aa8;text-shadow:0 2px #5a1828,0 4px 8px #2a0c14cc;top:244px}.ruby-endgame-status{color:#ffd27a;letter-spacing:2.2px;text-shadow:0 2px #5a3010,0 4px 10px #2a1508cc;top:160px}.ruby-director-toast{z-index:6;color:#ffe99b;pointer-events:none;opacity:0;background:linear-gradient(#8a2f42,#5a1c30);border:3px solid #ffe59b;border-radius:18px;align-items:center;gap:10px;padding:8px 14px 8px 8px;animation:.28s ease-out forwards ruby-director-in;display:flex;position:absolute;top:72px;left:50%;transform:translate(-50%,-12px);box-shadow:0 5px #3a1524,0 10px 18px #1a0a1288}.ruby-director-toast.leaving{animation:.35s ease-in forwards ruby-director-out}.ruby-director-toast img{object-fit:cover;background:#2a121c;border:2px solid #ffd27a;border-radius:12px;width:42px;height:42px}.ruby-director-toast b{font:800 12px var(--kh-font);letter-spacing:1.6px;text-shadow:0 2px #3a1524;white-space:nowrap}@keyframes ruby-director-in{0%{opacity:0;transform:translate(-50%,-18px)}to{opacity:1;transform:translate(-50%)}}@keyframes ruby-director-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,-22px)}}@media (width<=700px){.ruby-director-toast{top:54px}.ruby-director-toast img{width:34px;height:34px}.ruby-director-toast b{letter-spacing:1.2px;font-size:10px}}.ruby-battle-stats{text-align:left;grid-template-columns:max-content max-content;align-items:center;gap:7px 10px;width:max-content;margin:0 auto 19px;display:grid;transform:translate(-25px)}.ruby-battle-stats>div{display:contents}.ruby-battle-stats b{color:#fff;grid-column:2;font-size:15px;font-style:italic;line-height:1;transform:translate(50px)}.ruby-battle-stats span{color:#fff5d4;letter-spacing:.15px;grid-column:1;font-size:11px;font-weight:800}.ruby-battle-story{text-align:left;max-width:330px;margin:0 auto 16px}.ruby-battle-story>span{color:#ffe99b;letter-spacing:1.2px;margin-bottom:6px;font-size:9px;display:block}.ruby-battle-story>p{color:#ffe9c6;margin:0 0 5px;font-size:11px;line-height:15px}.ruby-battle-story>p:last-child{margin-bottom:0}@media (width<=700px){.ruby-turn-limit{z-index:5;border-width:2px;border-radius:11px;padding:6px 9px;top:10px;right:10px}.ruby-turn-limit>b{font-size:16px}.ruby-turn-limit>span{font-size:8px}.ruby-match-clock{transform-origin:top;top:106px;transform:translate(-50%)scale(.78)}.ruby-end-turn-early{top:62px;right:13px}.ruby-endgame-status{top:124px}.ruby-truce-status{top:142px}.ruby-guard-status{top:160px}.ruby-tribute-status{top:178px}.ruby-feud-status{top:196px}}@media (width<=480px){.ruby-battle-map header{border-width:3px;border-radius:14px;max-width:190px;padding:6px 10px;top:8px}.ruby-battle-map header span{font-size:7px}.ruby-battle-map header>b{font-size:11px;line-height:12px}.ruby-retreat{padding:4px 7px;font-size:18px;top:8px;left:8px;box-shadow:0 3px #9b765f}.ruby-retreat-caret{font-size:23px}.ruby-retreat span{font-size:8px}.ruby-manual-open{width:25px;height:25px;font-size:12px}.ruby-music-toggle{width:25px;height:25px;font-size:11px}.ruby-turn-indicator{right:8px}.ruby-match-clock{transform:translate(-50%)scale(.64)}.ruby-match-clock>b{font-size:24px}.ruby-match-clock-turns{font-size:9px}.ruby-end-turn-early{padding:4px 6px;font-size:7px;top:58px;right:8px}.ruby-side-panel{width:190px;left:7px;transform:scale(.78)}.ruby-side-tabs>button{padding:7px 3px;font-size:8px}.ruby-side-body>section{padding:6px 8px}.ruby-mind-row{grid-template-columns:66px 1fr 22px;gap:3px;min-height:15px}.ruby-mind-row>span{font-size:7px}.ruby-chat-stack{bottom:7px;right:7px}.ruby-chat{width:280px;max-width:280px}.ruby-chat.closed{width:172px}.ruby-chat-title span{font-size:15px}.ruby-chat-log{padding:6px 8px}.ruby-chat-log p{margin:3px 0;padding:5px 6px;font-size:8px;line-height:11px}.ruby-chat-compose{gap:4px}.ruby-chat-compose input{padding:6px 7px;font-size:8px}.ruby-chat-compose button{width:28px;font-size:13px}.ruby-chat-quick{gap:3px}.ruby-chat-quick button{padding:4px 1px;font-size:7px}.ruby-ruler-thought{bottom:128px;right:7px;transform:scale(.58)}.ruby-truce-status{font-size:7px;top:119px}.ruby-truce-lab{transform-origin:0 100%;bottom:158px;left:7px;transform:scale(.68)}.ruby-pan-tip{display:none}.ruby-battle-stats{gap:5px 7px;transform:none}.ruby-battle-stats b{font-size:13px;transform:none}.ruby-battle-stats span{font-size:9px}.ruby-side-panel{transform:scale(.64)!important}.ruby-ruler-thought{transform:scale(.46)!important}.ruby-truce-lab{transform:scale(.54)!important}.ruby-chat-title{padding:7px 9px;font-size:8px}.ruby-chat-compose{padding:5px 6px}.ruby-chat-quick{padding:4px 6px 6px}}@media (width<=700px){.ruby-turn-indicator{text-align:center;letter-spacing:.6px;width:100%;font-size:13px;top:132px;left:0;right:auto}.ruby-manual-open{top:44px;left:8px}.ruby-music-toggle{top:80px;left:8px}.ruby-side-panel{transform-origin:0 0;height:min(260px,100dvh - 558px);max-height:min(260px,100dvh - 558px);top:250px;bottom:auto}}@media (width<=480px){.ruby-match-clock{top:88px}.ruby-turn-indicator{font-size:12px;top:112px}.ruby-manual-open{top:40px;left:8px}.ruby-music-toggle{top:72px;left:8px}.ruby-side-panel{top:auto;bottom:calc(10px + env(safe-area-inset-bottom));transform-origin:0 100%;height:min(240px,100dvh - 300px);max-height:min(240px,100dvh - 300px)}}@media (height<=520px){.ruby-battle-map header{border-width:3px;border-radius:15px;padding:5px 12px 6px;top:6px}.ruby-battle-map header span{letter-spacing:.7px;font-size:8px}.ruby-battle-map header b{font-size:12px;line-height:13px}.ruby-progress{width:158px;margin-top:4px}.ruby-progress>i{height:6px}.ruby-progress>span{margin-top:2px}.ruby-progress>span>b{font-size:7px}.ruby-turn-limit{z-index:5;border-width:2px;border-radius:11px;padding:5px 9px;top:6px;right:10px}.ruby-turn-limit>b{font-size:16px}.ruby-turn-limit>span{font-size:8px}.ruby-turn-indicator{text-align:right;width:auto;font-size:14px;top:52px;left:auto;right:10px}.ruby-end-turn-early{padding:4px 8px;top:74px;right:10px}.ruby-match-clock{transform-origin:top;top:92px;bottom:auto;transform:translate(-50%)scale(.8)}.ruby-retreat{padding:4px 11px;font-size:19px;top:8px;left:10px}.ruby-retreat span{font-size:9px}.ruby-manual-open{width:27px;height:27px;font-size:12px;top:8px;left:120px}.ruby-music-toggle{width:27px;height:27px;font-size:11px;top:8px;left:153px}.ruby-chat-stack{bottom:10px;right:10px}.ruby-chat{max-width:290px;max-height:calc(100dvh - 128px);overflow-y:auto}.ruby-chat-log{height:auto;max-height:132px}.ruby-chat-title{z-index:2;position:sticky;top:0}.ruby-chat-compose{z-index:2;background:#441b2e;position:sticky;bottom:0}.ruby-chat-title{padding:6px 10px;font-size:9px}.ruby-tribute-terms{gap:2px;margin:0 8px 5px;padding:6px;font-size:8px;line-height:11px}.ruby-tribute-terms>b{font-size:9px}.ruby-tribute-terms div{margin-top:2px}.ruby-tribute-terms button{padding:5px 3px;font-size:7px}.ruby-ruler-thought{bottom:calc(100% - 12px);right:4px;transform:scale(.5)}.ruby-side-panel{width:228px;height:min(240px,100dvh - 62px);max-height:min(240px,100dvh - 62px);bottom:10px;left:10px}.ruby-pan-coach{transform:translate(-50%,-50%)scale(.66)}.ruby-manual>div{max-height:92dvh;padding:16px 18px 14px}.ruby-manual h2{margin:3px 0 10px;font-size:20px}.ruby-manual section{margin-bottom:9px}}.ruby-read-note{color:#ffe9c6;background:#ffffff10;border-left:2px solid #f0c85b;border-radius:0 6px 6px 0;margin-bottom:5px;padding:5px 7px;font-size:8px;font-weight:700;line-height:12px}.ruby-read-note:last-child{margin-bottom:0}@media (width<=1024px) and (orientation:landscape){.ruby-battle-map header{border-width:3px;border-radius:15px;padding:5px 12px 6px;top:8px}.ruby-battle-map header span{font-size:8px}.ruby-battle-map header b{font-size:12px;line-height:13px}.ruby-progress{width:158px;margin-top:4px}.ruby-progress>i{height:6px}.ruby-progress>span{margin-top:2px}.ruby-progress>span>b{font-size:7px}.ruby-retreat{padding:4px 9px;font-size:17px;top:8px;left:8px}.ruby-retreat span{font-size:9px}.ruby-manual-open,.ruby-music-toggle{width:27px;height:27px;font-size:11px;top:8px}.ruby-manual-open{left:112px}.ruby-music-toggle{left:145px}.ruby-turn-limit{z-index:5;border-width:2px;border-radius:11px;padding:5px 8px;top:6px;right:8px}.ruby-turn-limit>b{font-size:15px}.ruby-turn-limit>span{font-size:7px}.ruby-turn-indicator{font-size:14px;top:50px;right:8px}.ruby-end-turn-early{padding:4px 7px;font-size:7px;top:72px;right:8px}.ruby-match-clock{transform-origin:top;transform:translate(-50%)scale(.72)}.ruby-match-clock>b{font-size:24px}.ruby-commands{width:158px;padding:7px;inset:82px auto auto 8px;transform:none}.ruby-side-panel{top:auto;left:8px;bottom:calc(6px + env(safe-area-inset-bottom));transform:none}.ruby-side-panel.closed{height:auto;max-height:none;top:auto}.ruby-side-panel:not(.closed){z-index:5}.ruby-chat-stack{right:8px;bottom:calc(6px + env(safe-area-inset-bottom))}.ruby-chat,.ruby-chat.closed{overflow:hidden auto;transform:none!important}.ruby-chat-title{z-index:2;position:sticky;top:0}.ruby-chat-compose{z-index:2;background:#441b2e;position:sticky;bottom:0}.ruby-chat-log{max-height:108px}.ruby-chat:has(.ruby-tribute-terms) .ruby-chat-log{max-height:56px}.ruby-tribute-terms button{min-height:30px}.ruby-chat-log{padding:6px 8px}.ruby-chat-compose{gap:4px}.ruby-ruler-thought{transform-origin:100% 100%;width:220px;height:105px;bottom:calc(100% - 12px);right:4px;transform:scale(.62)}.ruby-ruler-thought>b{font-size:10px}.ruby-ruler-thought figure{width:86px;height:90px}.ruby-ruler-thought img{width:86px;height:94px}.ruby-truce-status{font-size:7px;top:130px}.ruby-truce-lab{left:8px;bottom:calc(6px + env(safe-area-inset-bottom));width:132px;padding:7px;font-size:8px}.ruby-truce-lab small{margin:2px 0 5px;font-size:6px;line-height:8px}.ruby-truce-lab button{height:20px;font-size:8px}.ruby-pan-coach{transform:translate(-50%,-50%)scale(.58)}.ruby-manual{padding:12px}.ruby-manual>div{width:min(390px,100vw - 32px);max-height:calc(100dvh - 24px);padding:15px 16px 14px}.ruby-manual h2{margin:3px 0 9px;font-size:20px}.ruby-manual p{font-size:9px;line-height:13px}.ruby-battle-map header{transform-origin:top;transform:translate(-50%)scale(.72)}.ruby-progress{margin-left:auto;margin-right:auto}.ruby-match-clock{top:72px}.ruby-chat,.ruby-chat.closed{width:200px;max-width:200px;max-height:min(215px,100dvh - 66px)}.ruby-chat-log{height:88px}.ruby-chat-title{padding:6px 8px;font-size:8px}.ruby-chat-title span{font-size:13px}.ruby-chat-log p{margin:2px 0;padding:4px 5px;font-size:7px;line-height:9px}.ruby-chat-compose{padding:4px 5px 5px}.ruby-chat-compose input{padding:5px 6px;font-size:7px}.ruby-chat-compose button{width:25px;font-size:11px}.ruby-side-panel{width:174px;height:min(195px,100dvh - 66px);max-height:min(195px,100dvh - 66px)}.ruby-side-tabs>button{padding:6px 2px;font-size:7px}.ruby-side-body>section{padding:5px 6px}.ruby-side-body>section>b{margin-bottom:3px;font-size:6px}.ruby-mind-row{grid-template-columns:56px 1fr 19px;gap:2px;min-height:13px}.ruby-mind-row>span,.ruby-mind-row>strong{font-size:6px}}@media (width<=700px) and (orientation:portrait){.ruby-battle-map header{transform-origin:top;transform:translate(-50%)scale(.68)}.ruby-progress{margin-left:auto;margin-right:auto}.ruby-match-clock{top:76px}.ruby-side-panel{transform:scale(.68)!important}}@media (width<=480px) and (orientation:portrait){.ruby-battle-map header{transform:translate(-50%)scale(.58)}.ruby-progress{margin-left:auto;margin-right:auto}.ruby-match-clock{top:68px}.ruby-side-panel{transform:scale(.56)!important}}.rival-battle-shell{position:contents}.rival-battle-banner{z-index:46;color:#fff;pointer-events:none;background:linear-gradient(#3d5f8a,#243a58);border:3px solid #ffe59b;border-radius:16px;align-items:center;gap:8px;padding:6px 12px;display:flex;position:fixed;top:78px;left:50%;transform:translate(-50%);box-shadow:0 4px #1a2a40}.rival-battle-banner img{object-fit:contain;width:36px;height:36px}.rival-battle-banner span{font:800 12px var(--kh-font);letter-spacing:.6px}.rival-battle-banner small{color:#c9dff7;font:700 8px var(--kh-font);letter-spacing:.5px;display:block}.ruby-battle-result{--end-accent:#e6c784;z-index:100;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:radial-gradient(at 50% 25%,#1c2e43dd,#070d16f2 75%);place-items:center;padding:24px;animation:.3s ease-out both ruby-end-veil;display:grid;position:absolute;inset:0}.ruby-battle-result.result-defeat{--end-accent:#d9a5a0;background:radial-gradient(at 50% 25%,#3a2735dd,#100d18f2 75%)}.ruby-battle-result.result-draw{--end-accent:#b3d9d8}@keyframes ruby-end-veil{0%{opacity:0}to{opacity:1}}@keyframes ruby-end-rise{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}.ruby-battle-result .ruby-end-card{box-sizing:border-box;color:#f5eedc;width:min(900px,100%);max-height:calc(100dvh - 48px);font-family:var(--kh-font,Arial,sans-serif);text-align:left;scrollbar-width:thin;scrollbar-color:#607281 #182532;background:linear-gradient(135deg,#263a4c,#152331 55%,#17232f);border:1px solid #b8aa7c55;border-radius:12px;flex-direction:column;padding:0;animation:.4s ease-out both ruby-end-rise;display:flex;position:relative;overflow:hidden;box-shadow:0 28px 100px #0009,inset 0 1px #ffffff12}.ruby-battle-result.result-defeat .ruby-end-card{background:linear-gradient(135deg,#3b303d,#241f2b 60%,#251e28)}.ruby-end-body{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#607281 #182532;min-height:0;padding:26px 38px 0;overflow:auto}.ruby-end-topline{color:#9aaebb;letter-spacing:2px;border-bottom:1px solid #ffffff15;justify-content:space-between;gap:12px;padding-bottom:16px;font-size:10px;font-weight:800;display:flex}.ruby-end-hero{justify-content:center;align-items:center;gap:30px;padding:20px 0 22px;display:flex}.ruby-end-crest{width:174px;height:174px;color:var(--end-accent);filter:drop-shadow(0 5px 18px #0004);flex:none}.ruby-end-verdict{max-width:500px}.ruby-end-eyebrow{color:var(--end-accent);letter-spacing:2px;font-size:10px;font-weight:800;line-height:1.5;display:block}.ruby-battle-result .ruby-end-card h1{color:#fff3d6;letter-spacing:-2px;text-shadow:0 4px 20px #0005;text-transform:none;margin:3px 0 1px;font:700 clamp(44px,6vw,72px)/1.05 Georgia,serif}.ruby-end-method{color:var(--end-accent);letter-spacing:1.4px;margin:9px 0;font-size:11px;display:block}.ruby-battle-result .ruby-end-blurb{color:#c4cdd0;font:400 14px/1.55 var(--kh-font,Arial,sans-serif);max-width:470px;margin:0}.ruby-end-score{background:#090f1755;border:1px solid #f4e2ae25;border-radius:6px;justify-content:space-between;align-items:center;gap:22px;padding:18px 24px;display:flex}.ruby-end-score-team{color:#8bd0ee;min-width:110px}.ruby-end-score-team.rival{text-align:right;color:#efa3a8}.ruby-end-score-team>span{letter-spacing:1px;white-space:nowrap;font-size:12px;font-weight:800}.ruby-end-score-team>span small{opacity:.6;margin-left:4px;font-size:8px}.ruby-end-score-team>b{color:#f9f0d8;align-items:baseline;gap:6px;font:700 40px/1.2 Georgia,serif;display:flex}.ruby-end-score-team.rival>b{justify-content:flex-end}.ruby-end-score-team>b small{font:400 11px var(--kh-font,Arial,sans-serif);color:#99aab7}.ruby-end-score-center{text-align:center;flex:1;max-width:310px}.ruby-end-score-center>span{color:#ced4cd;letter-spacing:1.6px;font-size:9px;font-weight:800}.ruby-end-score-center>small{color:#91a2af;font-size:10px}.ruby-end-score-track{background:#ca737e;border-radius:2px;height:7px;margin:10px 0 6px;overflow:hidden}.ruby-end-score-track>i{box-sizing:border-box;background:#6bb7d9;border-right:3px solid #152331;height:100%;display:block}.ruby-battle-result .ruby-battle-stats{background:0 0;border:0;border-radius:0;grid-template-columns:repeat(5,1fr);gap:0;width:auto;margin:21px 0;padding:0;display:grid;transform:none}.ruby-battle-result .ruby-battle-stats>div{text-align:center;border-right:1px solid #ffffff15;flex-direction:column;gap:6px;padding:0 14px;display:flex}.ruby-battle-result .ruby-battle-stats>div:first-child{padding-left:0}.ruby-battle-result .ruby-battle-stats>div:last-child{border:0;padding-right:0}.ruby-battle-result .ruby-battle-stats b{color:#f5eedc;text-align:center;font:700 28px/1.1 Georgia,serif;transform:none}.ruby-battle-result .ruby-battle-stats span{color:#b5c3ca;font:400 11px/1.4 var(--kh-font,Arial,sans-serif);letter-spacing:0}.ruby-end-aftermath{border-top:1px solid #ffffff15;gap:28px;padding:17px 0 21px;display:flex}.ruby-end-aftermath:empty{display:none}.ruby-battle-result .ruby-battle-story,.ruby-battle-result .ruby-campaign-delta{text-align:left;background:0 0;border:0;flex:1;min-width:0;max-width:none;margin:0;padding:0;animation:none}.ruby-end-aftermath h2{font:800 9px/1.4 var(--kh-font,Arial,sans-serif);color:var(--end-accent);letter-spacing:1.6px;margin:0 0 8px}.ruby-battle-result .ruby-battle-story>p,.ruby-battle-result .ruby-campaign-delta>p{color:#b7c4c9;font:400 12px/1.55 var(--kh-font,Arial,sans-serif);margin:4px 0}.ruby-battle-result .ruby-campaign-delta>b{color:#e4e6dc;font:700 14px/1.4 var(--kh-font,Arial,sans-serif)}.ruby-end-footer{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#12202df7;border-top:1px solid #f4e2ae25;flex:none;justify-content:space-between;align-items:center;gap:16px;margin:0;padding:18px 38px;display:flex}.result-defeat .ruby-end-footer{background:#241e2bf7}.ruby-end-reward{color:#c0d0d4;align-items:center;gap:12px;display:flex}.ruby-end-reward b{color:#9cddf4;font-size:17px;display:block}.ruby-end-reward small{color:#91a6b4;font-size:10px;display:block}.ruby-end-reward-lines{color:#ffe4b0;font:800 11px/1.3 var(--kh-font,Arial,sans-serif);letter-spacing:.2px;border-top:1px solid #e6c78466;gap:2px;margin-top:6px;padding-top:5px;font-style:normal;display:grid}.ruby-end-reward-lines>span{color:#ffe7a8;align-items:baseline;gap:6px;display:flex}.ruby-end-reward-lines>span:first-child{color:#f3d7a2}.ruby-end-reward-lines>span:before{content:"";background:#f0b850;flex:none;width:6px;height:6px;transform:translateY(-1px);box-shadow:0 1px #8a6230}.ruby-end-reward:has(.ruby-end-reward-lines){align-items:flex-start}.ruby-end-reward:has(.ruby-end-reward-lines) .ruby-end-gem{margin-top:3px}.ruby-end-gem{clip-path:polygon(25% 0,75% 0,100% 35%,50% 100%,0 35%);filter:drop-shadow(0 0 8px #73cafa55);background:linear-gradient(135deg,#c5faff 0 35%,#53bcf2 36% 65%,#3073d3 66%);width:21px;height:21px;display:block}.ruby-end-footer>button{color:#30281c;font:800 11px/1.3 var(--kh-font,Arial,sans-serif);letter-spacing:1px;cursor:pointer;white-space:nowrap;background:linear-gradient(#ebd39e,#cfb071);border:1px solid #fff1c177;border-radius:5px;align-items:center;gap:24px;padding:14px 20px;display:flex;box-shadow:0 3px #8a6f43}.ruby-end-footer>button:hover{filter:brightness(1.09)}.ruby-end-footer>button:focus-visible{outline-offset:4px;outline:2px solid #fff3bd}.ruby-end-footer>button>span{font-size:20px}@media (width<=650px){.ruby-battle-result{padding:12px}.ruby-battle-result .ruby-end-card{max-height:calc(100dvh - 24px)}.ruby-end-body{padding:18px 20px 0}.ruby-end-hero{gap:12px;padding:18px 0}.ruby-end-crest{width:100px;height:100px}.ruby-battle-result .ruby-end-card h1{font-size:46px}.ruby-end-topline{letter-spacing:1px;font-size:8px}.ruby-battle-result .ruby-end-blurb{font-size:12px}.ruby-end-score{gap:10px;padding:14px 12px}.ruby-end-score-team{min-width:75px}.ruby-end-score-team>span{font-size:10px}.ruby-end-score-team>b{flex-wrap:wrap;gap:2px;font-size:30px}.ruby-end-score-team>b small{font-size:9px}.ruby-end-score-center>span{letter-spacing:.6px;font-size:8px}.ruby-battle-result .ruby-battle-stats{grid-template-columns:repeat(3,1fr);row-gap:16px}.ruby-battle-result .ruby-battle-stats>div{border:0;padding:0 8px}.ruby-end-aftermath{flex-direction:column;gap:16px}.ruby-end-footer{flex-wrap:wrap;padding:14px 20px}.ruby-end-reward-lines{gap:1px;margin-top:4px;padding-top:4px;font-size:9px}.ruby-end-footer>button{gap:12px;margin-left:auto;padding:12px;font-size:9px}}@media (height<=540px) and (width>=651px){.ruby-battle-result{padding:12px}.ruby-battle-result .ruby-end-card{max-height:calc(100dvh - 24px)}.ruby-end-body{padding:12px 26px 0}.ruby-end-topline{padding-bottom:6px;font-size:8px}.ruby-end-hero{gap:18px;padding:8px 0}.ruby-end-crest{width:75px;height:75px}.ruby-battle-result .ruby-end-card h1{font-size:37px}.ruby-end-method{margin:4px 0;font-size:9px}.ruby-battle-result .ruby-end-blurb{font-size:11px}.ruby-end-score{padding:8px 18px}.ruby-end-score-team>b{font-size:28px}.ruby-battle-result .ruby-battle-stats{margin:12px 0}.ruby-battle-result .ruby-battle-stats b{font-size:24px}.ruby-end-footer{padding:12px 26px}.ruby-end-reward-lines{gap:1px;margin-top:3px;padding-top:3px;font-size:9px}}@media (prefers-reduced-motion:reduce){.ruby-battle-result,.ruby-battle-result .ruby-end-card{animation:none}}.ruby-battle-map .ruby-top-stack{z-index:3;pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:min(420px,100vw - 340px);display:flex;position:absolute;top:14px;left:50%;transform:translate(-50%)}.ruby-battle-map .ruby-top-stack header{max-width:100%;position:relative;top:auto;left:auto;transform:none}.ruby-battle-map .ruby-top-stack .ruby-match-clock{gap:6px;position:relative;inset:auto;transform:none}.ruby-battle-map .ruby-top-stack .ruby-match-clock>b{line-height:1.05}.ruby-chat-stack .ruby-ruler-thought{text-align:center;align-items:center;width:auto;bottom:calc(100% + 8px);left:0;right:0}.ruby-chat-stack:has(.ruby-chat.closed) .ruby-ruler-thought{width:190px}.ruby-battle-map .ruby-chat-log p{padding:9px 10px;font-size:15px;line-height:20px}.ruby-battle-map .ruby-chat-log .ruby-chat-ruby-label,.ruby-battle-map .ruby-chat-log .ruby-chat-you-label,.ruby-battle-map .ruby-chat-log .ruby-chat-order-label,.ruby-battle-map .ruby-chat-log .ruby-chat-event-label{font-size:15px}.ruby-battle-map .ruby-chat-compose input{font:700 15px/20px var(--kh-font);padding:10px 12px}.ruby-battle-map .ruby-chat-compose button{width:42px;font-size:18px}.ruby-battle-map .ruby-top-right .ruby-turn-limit{box-shadow:none;color:#fff;font:700 30px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1.5px;text-align:right;white-space:nowrap;text-shadow:0 3px #67243d,0 6px 10px #250d1bcc;background:0 0;border:0;border-radius:0;padding:0;display:block}.ruby-battle-map .ruby-top-right .ruby-turn-limit.warning{color:#ffd16f}.ruby-battle-map .ruby-top-right .ruby-turn-limit.sudden{color:#ffe28a;text-shadow:0 3px #5c1828,0 0 12px #ffb03acc,0 6px 10px #250d1bcc;font-variant-numeric:tabular-nums;box-shadow:inset 0 -4px #f0b850}.ruby-battle-map[data-guided] .ruby-turn-limit{display:none}@media (width<=480px){.ruby-battle-map .ruby-top-right .ruby-turn-limit{font-size:24px}}@media (width<=1024px) and (orientation:landscape){.ruby-battle-map .ruby-top-right .ruby-turn-limit{font-size:24px}}.ruby-battle-map .ruby-top-stack .ruby-director-toast{animation:.28s ease-out forwards ruby-director-in-flow;position:relative;top:auto;left:auto;transform:none}@keyframes ruby-director-in-flow{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}.ruby-battle-map .ruby-top-left,.ruby-battle-map .ruby-top-right{z-index:4;pointer-events:none;flex-direction:column;gap:8px;display:flex;position:absolute;top:16px}.ruby-battle-map .ruby-top-left{align-items:flex-start;left:16px}.ruby-field-map{pointer-events:auto;background:#3a1828;border:2px solid #f1ca50;border-radius:12px;width:248px;padding:8px 8px 6px;box-shadow:0 8px 10px #250d1bcc}.ruby-field-map-key{color:#fff6da;font:800 11px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1.2px;text-align:center;justify-content:center;align-items:center;margin:0 2px 4px;display:flex}.ruby-field-map-cols{gap:8px;display:flex}.ruby-field-map ol{flex:1;min-width:0;margin:0;padding:0;list-style:none}.ruby-field-map li{color:#fff6da;white-space:nowrap;align-items:center;gap:4px;min-height:15px;font:700 12px/1.15 Arial,sans-serif;display:flex}.ruby-field-map li.side{color:#ffe99b;letter-spacing:.8px;text-transform:uppercase;margin-bottom:2px;font-size:10px}.ruby-field-map li i{border-radius:2px;flex:none;width:7px;height:7px}.ruby-field-map li[data-kind=outpost] i{border-radius:50%}.ruby-field-map li[data-kind=castle] i{width:9px;height:9px}.ruby-field-map li.yours i{background:#4d80b8}.ruby-field-map li.hers i{background:#e23b4a}.ruby-selection-name{color:#fff;letter-spacing:.3px;text-shadow:0 2px #2a101c;white-space:nowrap;font:800 14px/1.1 Arial,sans-serif}.ruby-tribute-payers{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.ruby-tribute-payers small{color:#5a3144;flex-basis:100%}.ruby-tribute-payers button{color:#3a1828;cursor:pointer;background:#f3e2c8;border:0;border-radius:8px;padding:6px 8px;font:700 13px Arial,sans-serif}.ruby-tribute-payers button.chosen{background:#f1ca50}@media (height<=700px){.ruby-field-map{width:220px}.ruby-field-map li{min-height:13px;font-size:10px}}.ruby-battle-map .ruby-top-right{align-items:flex-end;max-width:320px;right:16px}.ruby-battle-map .ruby-top-left-tools{align-items:center;gap:8px;display:flex}.ruby-battle-map .ruby-top-left .ruby-retreat,.ruby-battle-map .ruby-top-left .ruby-manual-open,.ruby-battle-map .ruby-top-left .ruby-music-toggle,.ruby-battle-map .ruby-top-left .ruby-surrender-offer,.ruby-battle-map .ruby-top-right .ruby-turn-limit,.ruby-battle-map .ruby-top-right .ruby-turn-indicator,.ruby-battle-map .ruby-top-right .ruby-end-turn-early{pointer-events:auto;position:relative;top:auto;left:auto;right:auto;transform:none}.ruby-battle-map .ruby-top-left .ruby-retreat-caret{font-size:18px;line-height:1}.ruby-battle-map .ruby-top-right .ruby-turn-indicator{text-align:right;white-space:normal;width:auto;max-width:160px;font-size:16px}.ruby-battle-map .ruby-endgame-status{top:230px}.ruby-battle-map .ruby-truce-status{top:252px}.ruby-battle-map .ruby-guard-status{top:274px}.ruby-battle-map .ruby-tribute-status{top:296px}.ruby-battle-map .ruby-feud-status{top:318px}@media (width<=900px){.ruby-battle-map .ruby-top-stack{transform-origin:top;max-width:calc(100vw - 500px);transform:translate(-50%)scale(.88)}}@media (height<=520px){.ruby-battle-map .ruby-top-stack{transform-origin:top;gap:4px;top:6px;transform:translate(-50%)scale(.76)}.ruby-battle-map .ruby-top-left,.ruby-battle-map .ruby-top-right{top:6px}.ruby-battle-map .ruby-endgame-status{top:150px}.ruby-battle-map .ruby-truce-status{top:168px}.ruby-battle-map .ruby-guard-status{top:186px}.ruby-battle-map .ruby-tribute-status{top:204px}.ruby-battle-map .ruby-feud-status{top:222px}}.ruby-terms-doc{background:linear-gradient(#fffdf8,#f4e6c8);border:1px solid #e7d3a8;border-radius:6px;align-items:center;gap:10px;margin:8px 10px;padding:8px 8px 8px 10px;display:flex;box-shadow:0 2px #c4a574}.ruby-terms-doc-page{background:#fff;border:1px solid #d9c49a;flex:none;width:28px;height:36px;position:relative;box-shadow:2px 2px #c4a574}.ruby-terms-doc-page:before{content:"";border-top:0 solid #f4e6c8;border-bottom:9px solid #f4e6c8;border-left:0 solid #f4e6c8;border-right:9px solid #c4a574;position:absolute;top:0;right:0}.ruby-terms-doc-page:after{content:"";background:#e4d3b0;height:2px;position:absolute;top:12px;left:5px;right:8px;box-shadow:0 5px #e4d3b0,0 10px #e4d3b0}.ruby-terms-doc>b{color:#3a2416;min-width:0;font:800 14px/1.1 var(--kh-font,Arial,sans-serif);letter-spacing:.6px;flex:1}.ruby-terms-doc>button{color:#57243c;font:800 12px var(--kh-font,Arial,sans-serif);letter-spacing:.4px;cursor:pointer;background:#f0b850;border:0;border-radius:10px;flex:none;padding:8px 10px;box-shadow:0 3px #aa6d39}.ruby-terms-sheet{z-index:40;width:min(370px,100vw - 32px);animation:.38s cubic-bezier(.2,.8,.2,1) both ruby-dispatch-rise;position:absolute;bottom:0;left:16px}@keyframes ruby-dispatch-rise{0%{opacity:.3;transform:translateY(105%)}to{opacity:1;transform:translateY(0)}}.ruby-terms-paper{overscroll-behavior:contain;color:#3a2416;scrollbar-width:thin;scrollbar-color:#b99454 #f5e5bf;background:repeating-linear-gradient(0deg,#d9bd7a08 0 1px,#0000 1px 4px),linear-gradient(105deg,#ebd5a8,#fff7df 14%,#f5e5bf 88%,#d7b977);border:1px solid #d8bb7c;border-bottom:0;border-radius:5px 18px 0 0;max-height:min(62vh,570px);padding:22px 22px 20px;position:relative;overflow:auto;box-shadow:0 -5px 28px #180e1655,inset 5px 0 10px #b2944f20}.ruby-terms-close{color:#3a2416;cursor:pointer;background:#e7d1a8;border:0;border-radius:50%;width:32px;height:32px;font:800 22px/1 Arial,sans-serif;position:absolute;top:9px;right:9px}.ruby-terms-paper .ruby-tribute-terms,.ruby-terms-paper .ruby-surrender-terms{color:#3a2416;background:0 0;border:0;border-radius:0;gap:12px;margin:0;padding:0;font-size:15px;line-height:1.5;display:grid}.ruby-terms-paper .ruby-tribute-terms>b{color:#3a2416;letter-spacing:.3px;padding-right:24px;font-size:20px;line-height:1.2}.ruby-terms-paper .ruby-tribute-terms span,.ruby-terms-paper .ruby-tribute-terms small{color:#4a3020;font-size:15px;line-height:1.5;display:block}.ruby-terms-paper .ruby-tribute-terms small{color:#715430;font-size:15px}.ruby-terms-paper .ruby-tribute-terms div{flex-wrap:wrap;gap:9px;margin-top:4px;display:flex}.ruby-terms-paper .ruby-tribute-terms button{color:#402d12;min-height:44px;font:800 14px/1.3 var(--kh-font,Arial,sans-serif);letter-spacing:.3px;cursor:pointer;background:#efc467;border:1px solid #bd8e37;border-radius:6px;flex:1;padding:9px 10px;box-shadow:0 2px #aa7a39}.ruby-terms-paper .ruby-tribute-terms button+button{color:#533a24;background:#f7ebd0;box-shadow:0 2px #b59c73}.ruby-terms-paper .ruby-tribute-terms button:disabled{opacity:.45;cursor:not-allowed}.ruby-terms-paper .ruby-tribute-terms .ruby-deal-place{min-height:0;box-shadow:none;color:#49320e;font:700 15px/1.6 var(--kh-font,Arial,sans-serif);letter-spacing:0;-webkit-box-decoration-break:clone;box-decoration-break:clone;background:#ffe09c;border:0;border-bottom:2px solid #b9841e;border-radius:3px;margin:0 1px;padding:1px 3px;display:inline}.ruby-terms-paper button:focus-visible{outline-offset:3px;outline:3px solid #927019}.ruby-terms-paper .ruby-tribute-terms .ruby-deal-place:hover,.ruby-terms-paper .ruby-tribute-payers button:hover,.ruby-terms-paper .ruby-tribute-payers button.chosen{color:#362300;background:#ffd45c}.ruby-terms-paper .ruby-tribute-payers small{flex-basis:100%}.ruby-terms-paper .ruby-tribute-payers button{flex:0 auto}.ruby-deal-map-label{color:#ffe7a0;font:800 13px/1.2 var(--kh-font,Arial,sans-serif);pointer-events:none;white-space:nowrap;z-index:8;background:#392c0cf2;border:2px solid #ffd45c;border-radius:6px;padding:5px 9px;position:absolute;transform:translate(-50%,-100%);box-shadow:0 3px 12px #0008}.ruby-deal-map-label[hidden]{display:none}.ruby-terms-tabs{z-index:40;gap:8px;display:flex;position:absolute;bottom:12px;left:16px}.ruby-terms-tabs button{color:#4a3020;cursor:pointer;background:#f7e5bc;border:1px solid #ba985b;border-radius:7px;padding:12px;font-weight:800;box-shadow:0 3px 12px #0005}.ruby-battle-map[data-terms-open] .ruby-potion-station,.ruby-battle-map[data-terms-open] .ruby-guide{visibility:hidden;pointer-events:none}@media (width<=960px){.ruby-battle-map[data-terms-open] .ruby-chat-stack{visibility:hidden;pointer-events:none}}@media (width<=640px){.ruby-terms-sheet{width:min(350px,100vw - 16px);left:8px}.ruby-terms-paper{max-height:48dvh;padding:16px 16px 18px}.ruby-terms-paper .ruby-tribute-terms>b{font-size:18px}.ruby-battle-map[data-terms-open] .ruby-chat-stack{visibility:hidden;pointer-events:none}}@media (height<=520px){.ruby-terms-paper{max-height:70dvh;padding:14px 18px}}@media (prefers-reduced-motion:reduce){.ruby-terms-sheet{animation:none}}.ruby-chat-quick{flex-wrap:wrap}.ruby-sfx-toggle{font:800 8px var(--kh-font,Arial, sans-serif);letter-spacing:0}.ruby-chat-log p:not(.ruby-chat-action):not(.ruby-chat-event){font-style:italic}.ruby-chat-log .ruby-chat-action,.ruby-chat-log .ruby-chat-event{font-style:normal}.ruby-queen-mood{z-index:1;pointer-events:none;will-change:transform;opacity:0;transition:opacity .25s;position:absolute;top:0;left:0}.ruby-queen-mood>b{color:#fff;letter-spacing:1.2px;white-space:nowrap;text-shadow:0 2px #67243d;background:#3a0f22e6;border:2px solid #f0c85b;border-radius:999px;margin-bottom:6px;padding:5px 13px;font-size:13px;line-height:1;display:block;box-shadow:0 0 12px #ff2a5566,0 3px #1d0712}@media (width<=700px){.ruby-queen-mood>b{padding:4px 9px;font-size:10px}}.ruby-battle-map header .ruby-gem-counter{pointer-events:none;white-space:nowrap;background:#12304ae6;border:2px solid #bfeaff;border-radius:999px;align-items:center;gap:5px;margin-right:14px;padding:3px 13px 3px 6px;display:flex;position:absolute;top:50%;right:100%;transform:translateY(-50%);box-shadow:0 3px #0a1c2c,0 0 12px #35d6ff55}.ruby-battle-map header .ruby-gem-counter strong{color:#fff;font:800 18px/1 var(--kh-font,Arial,sans-serif);letter-spacing:.5px}.ruby-battle-map header .ruby-gem-counter img{filter:drop-shadow(0 0 5px #35d6ffaa)}.ruby-battle-map header .ruby-gem-counter em{color:#9be9ff;font:800 18px/1 var(--kh-font,Arial,sans-serif);white-space:nowrap;text-shadow:0 2px #0a1c2c;margin-top:4px;font-style:normal;animation:1.6s ease-out both ruby-gem-gain;position:absolute;top:100%;left:50%}@keyframes ruby-gem-gain{0%{opacity:0;transform:translate(-50%,10px)scale(.7)}15%{opacity:1;transform:translate(-50%)scale(1.15)}70%{opacity:1;transform:translate(-50%)scale(1)}to{opacity:0;transform:translate(-50%,-14px)scale(1)}}@media (width<=900px){.ruby-battle-map header .ruby-gem-counter{margin:6px 0 0;top:100%;left:50%;right:auto;transform:translate(-50%)}.ruby-battle-map header .ruby-gem-counter em{margin:0 0 0 8px;animation-name:ruby-gem-gain-side;top:50%;left:100%}}@keyframes ruby-gem-gain-side{0%{opacity:0;transform:translate(-8px,-50%)}15%,70%{opacity:1;transform:translateY(-50%)}to{opacity:0;transform:translateY(-120%)}}.ruby-battle-map header .ruby-progress{width:300px;max-width:100%;margin-top:8px}.ruby-battle-map header .ruby-progress>i{background:linear-gradient(#8d3546,#5a1a2c);border:2px solid #ffe59b;border-radius:8px;height:16px;box-shadow:inset 0 2px #000a,0 2px #3a1422}.ruby-battle-map .ruby-potion-station{padding:90px 150px 22px 22px;bottom:0!important;left:0!important}.ruby-battle-map .ruby-queen-potion-group{opacity:0;transition:opacity .2s,transform .2s;transform:translateY(8px)}.ruby-battle-map .ruby-potion-station:hover .ruby-queen-potion-group{opacity:1;transform:none}.ruby-battle-map .ruby-queen-potion-group>div:first-child{font-size:15px!important}.ruby-battle-map .ruby-queen-potion-badge>span{font-size:14px!important}@media (hover:none){.ruby-battle-map .ruby-queen-potion-group{opacity:1;transform:none}}.ruby-battle-map[data-onboard] .ruby-top-right,.ruby-battle-map[data-onboard] .ruby-chat-stack,.ruby-battle-map[data-onboard] .ruby-potion-station,.ruby-battle-map[data-onboard] .ruby-side-panel,.ruby-battle-map[data-onboard] .ruby-queen-mood,.ruby-battle-map[data-onboard] .ruby-pan-coach,.ruby-battle-map[data-onboard] .ruby-top-left>:not(.ruby-top-left-tools),.ruby-battle-map[data-onboard] .ruby-top-left-tools>:not(.ruby-retreat),.ruby-battle-map[data-onboard] .ruby-top-stack{display:none!important}.ruby-battle-map[data-onboard=goal] .ruby-top-stack,.ruby-battle-map[data-onboard=move] .ruby-top-stack,.ruby-battle-map[data-onboard=attack] .ruby-top-stack,.ruby-battle-map[data-onboard=bye] .ruby-top-stack,.ruby-battle-map[data-onboard=leaving] .ruby-top-stack{display:flex!important}.ruby-battle-map[data-onboard=goal] .ruby-top-stack{animation:.55s cubic-bezier(.2,1.3,.4,1) both ruby-guide-drop}.ruby-battle-map[data-onboard=goal] .ruby-top-stack .ruby-progress>i,.ruby-battle-map[data-onboard=move] .ruby-top-stack .ruby-progress>i{outline-offset:4px;outline:3px solid #9dff6a;animation:1.1s ease-in-out infinite ruby-guide-glow}@keyframes ruby-guide-drop{0%{opacity:0;transform:translate(-50%,-40px)}to{opacity:1;transform:translate(-50%)}}@keyframes ruby-guide-glow{0%,to{outline-color:#9dff6a;box-shadow:0 0 #9dff6a00,inset 0 1px #0006}50%{outline-color:#eaffb0;box-shadow:0 0 18px 6px #9dff6aaa,inset 0 1px #0006}}.ruby-battle-map[data-hud-reveal] .ruby-top-right,.ruby-battle-map[data-hud-reveal] .ruby-chat-stack,.ruby-battle-map[data-hud-reveal] .ruby-potion-station,.ruby-battle-map[data-hud-reveal] .ruby-top-left>:not(.ruby-top-left-tools),.ruby-battle-map[data-hud-reveal] .ruby-top-left-tools>:not(.ruby-retreat){animation:.9s ease-out both ruby-hud-reveal}@keyframes ruby-hud-reveal{0%{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}.ruby-guide{z-index:11;pointer-events:none;align-items:flex-end;gap:0;animation:.7s cubic-bezier(.2,1.25,.4,1) both ruby-guide-rise;display:flex;position:absolute;bottom:0;left:10px}.ruby-guide.leaving{animation:.95s cubic-bezier(.5,-.4,.8,.4) both ruby-guide-fall}@keyframes ruby-guide-rise{0%{transform:translateY(110%)}to{transform:translateY(0)}}@keyframes ruby-guide-fall{0%{transform:translateY(0)rotate(0)}25%{transform:translateY(-34px)rotate(-4deg)}to{transform:translateY(125%)rotate(10deg)}}.ruby-guide-sprite{filter:drop-shadow(0 10px 10px #0007);flex:none;width:230px;height:270px}.ruby-guide-card{color:#f3ffe6;pointer-events:auto;background:linear-gradient(#22512ef2,#173a22f2);border:3px solid #d9ffb8;border-radius:20px 20px 20px 6px;width:min(400px,100vw - 270px);margin:0 0 54px -14px;padding:13px 17px 12px;animation:.32s ease-out both ruby-guide-card;position:relative;box-shadow:0 5px #0d2414,0 12px 22px #0008}.ruby-guide-card:before{content:"";border:9px solid #0000;border-left:0;border-right-color:#d9ffb8;position:absolute;bottom:22px;left:-15px}@keyframes ruby-guide-card{0%{opacity:0;transform:translateY(10px)scale(.96)}to{opacity:1;transform:none}}.ruby-guide-card .ruby-guide-title{align-items:baseline;gap:10px;margin-bottom:6px;display:flex}.ruby-guide-card .ruby-guide-title b{color:#b7ff8a;font:800 15px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1.5px}.ruby-guide-card .ruby-guide-title span{color:#ffe99b;font:800 10px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1px}.ruby-guide-card p{font:700 15px/1.45 var(--kh-font,Arial,sans-serif);margin:0}.ruby-guide-card p i{visibility:hidden;font-style:normal}.ruby-guide-card .ruby-guide-actions{align-items:center;gap:12px;min-height:30px;margin-top:10px;display:flex}.ruby-guide-card .ruby-guide-actions em{color:#ffe99b;font:700 12px/1.3 var(--kh-font,Arial,sans-serif);flex:1;font-style:normal;animation:1.3s ease-in-out infinite ruby-guide-wait}@keyframes ruby-guide-wait{50%{opacity:.5}}.ruby-guide-next{color:#143318;font:800 13px/1 var(--kh-font,Arial,sans-serif);letter-spacing:1px;cursor:pointer;background:#8ee05a;border:0;border-radius:12px;padding:7px 18px;box-shadow:0 4px #3f8a2c}.ruby-guide-next:hover{filter:brightness(1.08)}.ruby-guide-next:active{transform:translateY(3px);box-shadow:0 1px #3f8a2c}.ruby-guide-skip{color:#b9d9aa;font:700 11px/1 var(--kh-font,Arial,sans-serif);cursor:pointer;background:0 0;border:0;margin-left:auto;padding:4px 2px;text-decoration:underline}@media (width<=700px){.ruby-guide-sprite{width:130px;height:155px}.ruby-guide-card{width:calc(100vw - 150px);margin-bottom:22px;padding:9px 11px}.ruby-guide-card p{font-size:12px}}.ruby-battle-map header .ruby-progress>i>em.yours{background:linear-gradient(#8ec8f5,#2c5680 58%,#1a3858);border-radius:4px 0 0 4px;box-shadow:inset 0 1px #d9f3ffaa,3px 0 #fff6da}.ruby-battle-map header .ruby-progress .hers{color:#ffb3ba}.ruby-battle-map header .ruby-progress.sudden>i{border-color:#ffd27a;box-shadow:inset 0 2px #000a,0 0 0 1px #ffd27a,0 2px #3a1422}.ruby-battle-map[data-onboard][data-onboard-terms] .ruby-chat-stack{display:block!important}.ruby-battle-map[data-onboard=move] .ruby-guide-card,.ruby-battle-map[data-onboard=attack] .ruby-guide-card{pointer-events:none;width:min(330px,100vw - 250px)}.ruby-battle-map[data-onboard=move] .ruby-guide-card button,.ruby-battle-map[data-onboard=attack] .ruby-guide-card button{pointer-events:auto}.ruby-battle-map[data-onboard=move] .ruby-guide-card p,.ruby-battle-map[data-onboard=attack] .ruby-guide-card p{font-size:13px;line-height:1.4}.ruby-battle-map[data-onboard=move] .ruby-guide-sprite,.ruby-battle-map[data-onboard=attack] .ruby-guide-sprite{width:170px;height:200px}.ruby-top-left-actions{align-items:center;gap:8px;display:flex}.ruby-battle-map[data-arranging]>:not(.ruby-battle-canvas):not(.ruby-map-editor),.ruby-battle-map[data-arranging] .ruby-selection-layer{display:none!important}.ruby-battle-map[data-arranging] canvas{touch-action:none}.ruby-map-editor{z-index:50;box-sizing:border-box;color:#fff5d4;width:min(740px,100% - 24px);font:800 13px/1.45 var(--kh-font,Arial,sans-serif);text-shadow:0 1px #2a0c14;background:linear-gradient(150deg,#8f3348,#521f37);border:4px solid #ffe59b;border-radius:18px;max-height:calc(100dvh - 24px);padding:14px 18px;position:absolute;top:12px;left:50%;overflow:auto;transform:translate(-50%);box-shadow:0 8px #371326,0 20px 42px #10040ccc}.ruby-map-editor:before{content:"";pointer-events:none;background:radial-gradient(circle at 20% 15%,#ffffff14,#0000 55%),repeating-linear-gradient(90deg,#ffffff06 0 1px,#0000 1px 13px);position:absolute;inset:0}.ruby-map-editor>*{z-index:1;position:relative}.ruby-map-editor strong{letter-spacing:1.6px;color:#ffe99b;text-shadow:0 2px #1a0710;font-size:15px}.ruby-map-editor p{color:#ffe9c6;font:700 14px/1.55 var(--kh-font,Arial,sans-serif);letter-spacing:.2px;margin:6px 0}.ruby-map-editor p[role=status]{color:#9edcc8;font:800 13px/1.35 var(--kh-font,Arial,sans-serif);margin-bottom:0}.ruby-map-editor-roles{background:linear-gradient(#2a1020dd,#120813dd);border:2px solid #f0c85b88;border-radius:14px;margin:10px 0 4px;padding:10px;box-shadow:inset 0 1px #ffffff12}.ruby-map-editor-roles>b{letter-spacing:1px;color:#ffe99b;text-transform:uppercase;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;font-size:13px;display:flex}.ruby-map-editor-role-grid{flex-wrap:wrap;gap:6px;display:flex}.ruby-map-editor-role-grid>button.active{color:#4f1e33;background:linear-gradient(#f0b850,#ffe99b 60%,#d79d3f);border-color:#ffe59b;box-shadow:0 3px #aa6d39}.ruby-map-editor-actions{flex-wrap:wrap;gap:8px;margin:10px 0 0;display:flex}.ruby-map-editor button{color:#fff8d8;cursor:pointer;min-height:36px;font:900 14px/1 var(--kh-font,Arial,sans-serif);letter-spacing:.6px;text-transform:uppercase;background:#783344;border:2px solid #c78159;border-radius:12px;padding:7px 10px;box-shadow:0 3px #3a1422}.ruby-map-editor button:hover{filter:brightness(1.06)}.ruby-map-editor button:active{transform:translateY(2px);box-shadow:0 1px #3a1422}.ruby-map-editor button:disabled{opacity:.45;cursor:default}.ruby-map-editor button:focus-visible{outline-offset:3px;outline:2px solid #fff4bc}@media (width<=700px){.ruby-map-editor{padding:10px;font-size:13px}.ruby-map-editor button{padding:6px;font-size:13px}}@media (height<=500px){.ruby-map-editor{padding:8px 12px;font-size:13px}.ruby-map-editor strong{font-size:12px}.ruby-map-editor-actions{margin:6px 0}.ruby-map-editor button{padding:5px 8px;font-size:13px}}.ruby-map-editor-actions{border-top:1px solid #ffffff1f;margin-top:10px;padding-top:10px}.ruby-map-editor-actions>button:last-child{margin-left:auto}.ruby-move-destination{z-index:3;white-space:nowrap;pointer-events:auto;color:#d5ffe6;letter-spacing:.3px;cursor:pointer;background:#073522;border:2px solid #72ffad;border-radius:8px;padding:7px 10px;font:900 12px/1.15 system-ui;position:absolute;transform:translate(-50%,-100%);box-shadow:0 3px #031b12,0 0 14px #52ff9b80}.ruby-move-destination:after{content:"";border:5px solid #0000;border-top-color:#72ffad;position:absolute;top:100%;left:calc(50% - 5px)}.ruby-move-destination.hostile{color:#fff1df;background:#512308;border-color:#ffb566;box-shadow:0 3px #281200,0 0 14px #ffa24b80}.ruby-move-destination.hostile:after{border-top-color:#ffb566}.ruby-move-destination.unavailable{z-index:1;color:#c4ccd4;box-shadow:none;pointer-events:none;opacity:.72;background:#1b2530bd;border:1px solid #929aa3;border-radius:5px;padding:1px 5px;font-size:15px}.ruby-move-destination.unavailable:after,.ruby-move-destination[hidden],.ruby-move-status[hidden]{display:none}.ruby-move-destination:hover,.ruby-move-destination:focus-visible{filter:brightness(1.25);outline-offset:2px;outline:2px solid #fff}.ruby-move-status{color:#e6fff1;text-align:center;pointer-events:none;background:#10251ff5;border:1px solid #72ffad;border-radius:7px;width:max-content;max-width:min(440px,85vw);padding:6px 10px;font:700 11px/1.3 system-ui;position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%)}@media (height<=500px){.ruby-move-destination{padding:6px 8px;font-size:11px}.ruby-move-status{max-width:300px;font-size:10px}}.ruby-move-destination-lines{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.ruby-move-destination-lines line{stroke-width:2px;stroke-dasharray:4 4;opacity:.75}@media (width<=900px),(height<=520px){.ruby-battle-map header .ruby-score-row{border-radius:8px;margin-bottom:4px}.ruby-battle-map header .ruby-score-row>strong{padding:2px 0 1px;font-size:18px}.ruby-battle-map header .ruby-score-row>em{letter-spacing:.4px;width:72px;font-size:17px}.ruby-battle-map header .ruby-progress>span>b{font-size:17px}.ruby-battle-map header .ruby-sudden-tag{letter-spacing:.3px;margin-top:4px;padding:3px 4px;font-size:17px}.ruby-battle-map header .ruby-progress>i{border-width:2px;height:11px}}@media (width<=700px){.ruby-chat-verbs{gap:4px;padding:6px 8px 0}.ruby-chat-verb{letter-spacing:.3px;min-height:36px;padding:6px 2px;font-size:13px}}@media (width<=1024px) and (orientation:landscape){.ruby-chat-verbs{gap:4px;padding:4px 6px 0}.ruby-chat-verb{letter-spacing:.15px;min-height:36px;padding:5px 2px;font-size:13px}}.leaderboard{z-index:40;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1630448c;place-items:center;animation:.2s ease-out both leaderboard-in;display:grid;position:absolute;inset:0}.leaderboard-card{color:#fff;background:linear-gradient(145deg,#5b3b86,#35245f);border:5px solid #fff0a6;border-radius:26px;width:min(575px,100% - 34px);padding:18px 20px 20px;position:relative;box-shadow:0 8px #241743,0 20px 36px #12203199}.leaderboard-card:before{content:"";pointer-events:none;border:2px dashed #cbb2ed;border-radius:18px;position:absolute;inset:8px}.leaderboard-card header{align-items:center;gap:10px;margin-bottom:12px;padding-right:42px;display:flex;position:relative}.leaderboard-card header>span{color:#7f3d49;background:#f4bf45;border-radius:50%;place-items:center;width:45px;height:45px;font-size:27px;display:grid;box-shadow:0 3px #b7742f}.leaderboard-card h2,.leaderboard-card p{margin:0}.leaderboard-card h2{color:#fff0a9;text-shadow:0 3px #3d2864;font-size:25px;line-height:24px}.leaderboard-card header p{letter-spacing:.8px;color:#e4d8ff;font-size:10px}.leaderboard-close{z-index:2;color:#fff;background:#ed5a4b;border:3px solid #fff1bd;border-radius:50%;width:35px;height:35px;font-size:25px;line-height:1;position:absolute;top:12px;right:12px;box-shadow:0 4px #9d3b40}.leaderboard-tabs{gap:6px;margin-bottom:9px;display:flex;position:relative}.leaderboard-tabs span{color:#efe8ff;letter-spacing:.5px;background:#ffffff1c;border-radius:10px;padding:4px 10px;font-size:10px}.leaderboard-tabs span:first-child{color:#65344b;background:#f1bb4a;font-weight:800}.leaderboard-list{background:#281b4d;border:3px solid #c7b0e0;border-radius:16px;position:relative;overflow:hidden}.leaderboard-row{border-bottom:1px solid #ffffff1c;grid-template-columns:38px 1fr 75px 72px;align-items:center;gap:8px;min-height:49px;padding:5px 10px;display:grid}.leaderboard-row:last-child{border-bottom:0}.leaderboard-row.you{background:linear-gradient(90deg,#f8c95933,#ffffff10);outline:2px solid #f8ca5c}.leaderboard-rank{color:#fff5c1;background:#443069;border-radius:50%;place-items:center;width:28px;height:28px;font-size:13px;font-weight:800;display:grid}.leaderboard-row:first-child .leaderboard-rank{color:#714040;background:#f2bd42}.leaderboard-row:nth-child(2) .leaderboard-rank{color:#4f5871;background:#b7c6d1}.leaderboard-row:nth-child(3) .leaderboard-rank{color:#673d36;background:#d88b56}.leaderboard-player b,.leaderboard-player small{display:block}.leaderboard-player b{font-size:13px}.leaderboard-player small{color:#cbbfe4;letter-spacing:.5px;font-size:9px}.leaderboard-score{text-align:right}.leaderboard-score b{color:#ffe276;font-size:13px;display:block}.leaderboard-score small{color:#dcd0f0;font-size:9px}.leaderboard-trend{color:#efffe9;text-align:center;background:#53b96d;border-radius:9px;padding:4px 6px;font-size:9px;font-weight:800}.leaderboard-foot{color:#dbd0f0;justify-content:space-between;margin-top:10px;font-size:10px;display:flex;position:relative}.leaderboard-foot b{color:#ffde73}@keyframes leaderboard-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@media (width<=620px){.leaderboard-card{padding:16px 11px}.leaderboard-row{grid-template-columns:31px 1fr 55px 56px;padding:4px 7px}.leaderboard-player b{font-size:11px}.leaderboard-card h2{font-size:21px}.leaderboard-score b{font-size:11px}}.leaderboard-trend{cursor:pointer;border:0;font:800 9px inherit;box-shadow:0 2px #287344}.leaderboard-trend:hover{filter:brightness(1.08);transform:translateY(-1px)}.leaderboard-card{background:linear-gradient(145deg,#e989c9,#b55aa7);border:5px solid #fff0a6;box-shadow:0 8px #7e397e,0 20px 36px #522a5873}.leaderboard-card:before{border-color:#f0c1e5;display:block}.leaderboard-list{background:#632f63;border-color:#b55aa7}.leaderboard-stars{color:#ffe276;text-align:center;letter-spacing:1px;white-space:nowrap;font-size:12px}@media (width<=1024px) and (orientation:landscape){.leaderboard{padding:12px}.leaderboard-card{border-radius:21px;width:min(390px,100vw - 40px);max-height:min(70dvh,300px);padding:13px 14px 15px;overflow:visible}.leaderboard-close{width:28px;height:28px;font-size:19px;top:5px;right:5px}.leaderboard-card header{gap:7px;margin-bottom:7px}.leaderboard-card header>span{width:34px;height:34px;font-size:21px}.leaderboard-card h2{font-size:19px;line-height:19px}.leaderboard-card header p{font-size:8px}.leaderboard-tabs{gap:4px;margin-bottom:6px}.leaderboard-tabs span{padding:3px 7px;font-size:8px}.leaderboard-row{grid-template-columns:25px 1fr 45px 48px;gap:5px;min-height:35px;padding:3px 5px}.leaderboard-list{max-height:205px;overflow-y:auto}.leaderboard-rank{width:22px;height:22px;font-size:10px}.leaderboard-player b{font-size:9px}.leaderboard-player small,.leaderboard-score small{font-size:7px}.leaderboard-score b{font-size:9px}.leaderboard-trend{padding:3px 4px;font-size:7px}.leaderboard-foot{margin-top:6px;font-size:8px}.leaderboard-stars{font-size:9px}}.kingdom-home.entering .kh-quest,.kingdom-home.entering .kh-kingdom-card,.kingdom-home.entering .kh-builder-toggle{animation:.68s cubic-bezier(.2,1.4,.35,1) both kingdom-layer-pop}.kingdom-home.entering .kh-builder{animation:none!important}.kingdom-home.entering .kh-top-hud{animation:none}.kingdom-home.entering .kh-player,.kingdom-home.entering .kh-resources,.kingdom-home.entering .kh-header-actions{animation:.68s cubic-bezier(.2,1.4,.35,1) both kingdom-layer-pop}.kingdom-home.entering .kh-resources{animation-delay:80ms}.kingdom-home.entering .kh-header-actions{animation-delay:.16s}.kingdom-home.entering .kh-dock-item,.kingdom-home.entering .kh-battle{animation:.68s cubic-bezier(.2,1.4,.35,1) both kingdom-layer-pop}.kingdom-home.entering .kh-dock-item:first-child{animation-delay:20ms}.kingdom-home.entering .kh-dock-item:nth-child(2){animation-delay:80ms}.kingdom-home.entering .kh-battle{animation-delay:.14s}.kingdom-home.entering .kh-dock-item:nth-child(4){animation-delay:.2s}.kingdom-home.entering .kh-dock-item:nth-child(5){animation-delay:.26s}@keyframes kingdom-layer-pop{0%{opacity:0;scale:0}65%{opacity:1;scale:1.12}82%{scale:.96}to{opacity:1;scale:1}}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}*{box-sizing:border-box}body{background:#78d6ed}
