
/* ========= app.css (original load order) ========= */
:root{--bg:#080c12;--bg2:#101722;--panel:#111a26;--panel2:#171d29;--ink:#f6ecdc;--muted:#a7adbb;--sub:#7c8898;--gold:#dab477;--gold2:#f5d9a5;--border:rgba(205,169,114,.24);--blue:#4aa7e8;--red:#e16964;--green:#77c7a2;--display:Georgia,"Times New Roman",serif;--body:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;--ease:cubic-bezier(.23,1,.32,1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:14px/1.6 var(--body);background:var(--bg);min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}img{max-width:100%}strong{font-weight:700}small{font-size:11px}::selection{background:rgba(214,166,98,.35)}::-webkit-scrollbar{width:8px;height:7px}::-webkit-scrollbar-thumb{background:#625139;border-radius:9px}::-webkit-scrollbar-track{background:transparent}.app-shell{min-height:100vh;display:flex;background:radial-gradient(ellipse at 85% 12%,rgba(49,72,91,.12),transparent 42%),#090e17}.sidebar{width:239px;position:sticky;top:0;height:100vh;flex:none;background:linear-gradient(160deg,#141b25,#0b1018 72%);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:22;box-shadow:9px 0 35px #0004}.brand{height:93px;display:flex;align-items:center;padding:22px 15px 18px;gap:11px;border-bottom:1px solid var(--border)}.brand-seal{font-size:24px;color:var(--gold2);width:45px;height:45px;display:grid;place-items:center;border:2px solid var(--gold);border-radius:50%;box-shadow:inset 0 0 0 3px #1a1b20,0 0 24px #b9944b25;position:relative;font-family:serif}.brand-seal:after{content:"";position:absolute;inset:-6px;border:1px dotted #b08b54;border-radius:50%}.brand-type{font:small-caps 17px/1.15 var(--display);white-space:nowrap;letter-spacing:-.8px;color:#f5d6a4}.brand-type span,.mobile-brand span{color:#987a53}.brand-type small{display:block;color:#aeb4bd;font:10px/1.5 var(--body);letter-spacing:1px;margin-top:5px}.sidebar-caption{font:10px var(--display);letter-spacing:3px;margin:24px 20px 9px;color:#a58a66}.main-nav{display:grid;gap:4px;padding:0 10px}.nav-btn{border:1px solid transparent;background:none;color:#9faabb;display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;text-align:left;border-radius:3px;transition:.2s}.nav-btn .nav-icon{width:22px;text-align:center;font-size:18px;color:#b9a27c}.nav-btn:hover{background:rgba(227,184,121,.07);color:white}.nav-btn.active{background:linear-gradient(90deg,rgba(223,175,109,.16),rgba(223,175,109,.015));color:#f8dfb6;border-color:rgba(217,174,101,.25);border-left:2px solid #d9ad6a}.nav-btn .tag{font-size:9px;background:#543d28;border:1px solid #8c6943;border-radius:3px;padding:1px 4px;margin-left:auto}.sidebar-bottom{padding:18px 20px 24px;margin-top:auto;color:#7d8998}.sidebar-rule{height:1px;background:linear-gradient(90deg,transparent,#7f6846,transparent);margin-bottom:20px}.sidebar-motto{font:12px var(--display);color:#baa079;letter-spacing:2px}.sidebar-bottom p{font-size:11px}.build-tag{display:inline-block;color:#8d91a0;border:1px solid #393d43;padding:3px 8px;font-size:9px;letter-spacing:1px;margin-top:5px}.main-shell{min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,42px);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--border);background:rgba(11,15,23,.95);backdrop-filter:blur(18px)}.top-left,.top-right{display:flex;align-items:center;gap:14px}.crumb{font-size:12px;color:#9eabbe;letter-spacing:.6px}.mobile-brand{display:none;font:20px var(--display);color:#ebca96}.top-player{display:flex;align-items:center;gap:9px;color:#f3debe;font-size:11px}.top-player small{display:block;color:#7c8796;font-size:9px}.player-orb{height:34px;width:34px;border:1px solid #aa7f45;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#46311c,#101925);color:#e4c68e}.currency{display:flex;align-items:center;justify-content:center;gap:7px;min-width:83px;padding:6px 11px;background:#060910;border:1px solid #28313d;border-radius:30px;font-size:12px;font-variant-numeric:tabular-nums}.currency.gold>span{color:#ffcc4f}.currency.gems>span{color:#38bcff}.icon-button{border:1px solid var(--border);color:#d8c19b;background:#111823;border-radius:4px;width:33px;height:33px}.icon-button:hover{background:#2a2c31}.view{width:100%;max-width:1480px;margin:0 auto;flex:1;padding:clamp(17px,2.25vw,34px)}.bottom-nav{display:none}.eyebrow{text-transform:uppercase;font:11px var(--display);letter-spacing:3px;color:#c4a26f}.eyebrow:before{content:"✧";margin-right:9px;font-size:14px}.section-title{margin:3px 0 6px;font:bold clamp(23px,2.3vw,34px)/1.22 var(--display);color:#f3ddbd;letter-spacing:.2px}.section-title em{font:normal 15px var(--body);color:#a2afbd}.section-sub{margin:0;color:#a7aebb;font-size:12px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:0 0 22px}.btn{border:1px solid #a98351;border-radius:3px;color:#ffe6bc;background:linear-gradient(180deg,#53391f,#231911);box-shadow:inset 0 1px 0 #e1b77844,0 7px 20px #0005;padding:10px 19px;font-weight:700;letter-spacing:.2px;transition:transform .2s,filter .2s,box-shadow .2s}.btn:hover:not(:disabled){filter:brightness(1.2);transform:translateY(-1px);box-shadow:inset 0 1px 0 #e1b77866,0 9px 28px #0006}.btn.primary{background:linear-gradient(165deg,#f2d19a,#b58849 51%,#72502d);color:#24180d;border:1px solid #f8d7a0;text-shadow:0 1px 0 #ffe1b744}.btn.blue{background:linear-gradient(#163c50,#0e1e2a);border-color:#5180a4;color:#b9e1ff}.btn.red{background:linear-gradient(#612e28,#301817);border-color:#bf7465;color:#ffd0c6}.btn.ghost{background:rgba(12,17,26,.7);border-color:#766144;color:#d7c9b5;box-shadow:none}.btn.small{padding:7px 12px;font-size:11px}.btn.tiny{padding:5px 10px;font-size:10px}.btn.full{width:100%}.muted{color:var(--muted)}.gold-text{color:var(--gold2)}.divider{height:1px;background:linear-gradient(90deg,transparent,#766049,transparent);margin:17px 0}.panel{background:linear-gradient(145deg,rgba(27,36,48,.94),rgba(11,16,24,.96));border:1px solid var(--border);box-shadow:inset 0 1px #c79c5030,0 10px 35px #0003;position:relative;overflow:hidden}.panel:before{content:"";pointer-events:none;position:absolute;left:9px;top:9px;width:12px;height:12px;border-top:1px solid #a78559;border-left:1px solid #a78559;opacity:.5}.panel:after{content:"";pointer-events:none;position:absolute;right:9px;bottom:9px;width:12px;height:12px;border-bottom:1px solid #a78559;border-right:1px solid #a78559;opacity:.5}.progress-track{height:7px;background:#060d18;border:1px solid #334258;overflow:hidden;border-radius:20px}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stage-card{position:relative;overflow:hidden;border:1px solid #6a5740;background:#141c26;color:#f3ead9;min-height:234px;text-align:left;padding:0;display:flex;flex-direction:column}.stage-card:hover:not(:disabled){border-color:#e2b572;filter:brightness(1.06)}.stage-card.locked{filter:grayscale(.8) brightness(.6);cursor:not-allowed}.stage-card.cleared{border-color:#58765f}.tab{background:#0d121b;border:1px solid #3c4551;color:#aeb5bc;padding:8px 13px;font-size:12px}.tab.active{border-color:#c9a06b;color:#f4d7aa;background:#33271b}.tab:hover{color:#fff}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:14px}.game-card{--rarity:#8f9ba6;position:relative;display:flex;flex-direction:column;aspect-ratio:0.7;border:2px solid var(--rarity);border-radius:8px;overflow:hidden;color:#f8e8d0;text-align:left;background:linear-gradient(170deg,#272c36,#0b0e15);padding:0;box-shadow:0 7px 16px #0009,inset 0 0 18px #000;transition:transform .16s,border-color .16s;isolation:isolate;min-width:0}.game-card:hover:not(:disabled){transform:translateY(-4px);filter:brightness(1.1)}.game-card.selected{box-shadow:0 0 0 2px #ffde86,0 0 25px #e2ae5170}.game-card.common{--rarity:#738795}.game-card.rare{--rarity:#56a7c6}.game-card.epic{--rarity:#a279d2}.game-card.legendary{--rarity:#eeae53;box-shadow:0 0 19px #d7922f31,inset 0 0 18px #000}.game-card.unowned{filter:grayscale(1) brightness(.44)}.game-card.unowned:hover{filter:grayscale(1) brightness(.6)}.card-art{height:64%;background-size:cover;background-position:center;position:relative}.card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#13151a 1%,transparent 66%),linear-gradient(90deg,#08090b24,#08090b00)}.card-art-icon{position:absolute;z-index:1;right:10px;bottom:12px;font-size:24px;color:#ffdfae;text-shadow:0 1px 9px #000}.card-cost{position:absolute;z-index:4;left:6px;top:5px;border-radius:50%;height:27px;width:27px;display:grid;place-items:center;background:radial-gradient(circle at 32% 23%,#54c9ff,#17578c 60%,#061a36);border:2px solid #91c9e9;box-shadow:0 2px 9px #000;color:white;font:bold 15px var(--display)}.card-rarity{position:absolute;z-index:2;right:7px;top:8px;font:9px var(--body);letter-spacing:.5px;text-shadow:0 2px 7px black;color:#f9ecdc;background:#090c13b8;padding:2px 5px;border:1px solid var(--rarity)}.card-info{position:relative;z-index:2;display:flex;flex:1;flex-direction:column;align-items:center;padding:2px 6px 7px;background:linear-gradient(180deg,#232326,#0f131a);text-align:center;border-top:1px solid var(--rarity)}.card-name{font:bold clamp(10px,1.1vw,13px) var(--body);white-space:nowrap;max-width:100%;text-overflow:ellipsis;overflow:hidden}.card-type{color:#a4a9b2;font-size:9px;margin:1px 0 5px}.card-stats{margin-top:auto;width:100%;display:flex;justify-content:space-between;font:bold 12px var(--display)}.card-stats .atk{color:#ffbd8e}.card-stats .hp{color:#9cdef5}.card-level{position:absolute;z-index:4;bottom:7px;left:50%;transform:translateX(-50%);font:10px var(--display);color:#e1c59d}.owned-count{position:absolute;left:4px;bottom:2px;font-size:9px;color:#8bafce;z-index:5}.game-card.compact{width:100%;max-width:120px;aspect-ratio:.76}.game-card.compact .card-art{height:66%}.game-card.compact .card-art-icon{font-size:15px}.game-card.compact .card-info{padding:1px 3px 4px}.game-card.compact .card-name{font-size:11px}.game-card.compact .card-type{display:none}.game-card.compact .card-stats{font-size:11px}.game-card.compact .card-cost{width:24px;height:24px;font-size:13px}.game-card.compact .card-rarity{display:none}.game-card.compact .card-level{bottom:4px;font-size:9px}.card-detail{display:grid;grid-template-columns:minmax(145px,220px) 1fr;gap:24px;align-items:start}.card-detail .game-card{width:100%}.rarity-label{font:11px var(--display);letter-spacing:2px}.rarity-label.legendary{color:#f6bf60}.rarity-label.epic{color:#c5a0e9}.rarity-label.rare{color:#8ecae9}.rarity-label.common{color:#a5afb6}.deck-slot{background:#090d14;border:1px dashed #6f5b43;aspect-ratio:.78;border-radius:5px;display:flex;align-items:center;justify-content:center;color:#665b4a;font-size:25px;padding:4px;min-width:0}.deck-slot .game-card{max-width:100%;width:100%}.deck-slot button{cursor:pointer}.summon-copy{padding:31px;display:flex;flex-direction:column;justify-content:center}.summon-copy h2{font:38px var(--display);color:#f1d09b;margin:11px 0}.summon-copy p{font-size:12px;color:#aab5bb;line-height:2}.summon-pack{padding:21px;border:1px solid #725b3a;background:linear-gradient(145deg,#202329,#0e131b);text-align:center;position:relative}.summon-pack.special{background:linear-gradient(150deg,#2c223b,#121423);border-color:#8567a7}.summon-pack h3{font:21px var(--display);color:#f5ddbb;margin:4px 0}.summon-pack p{font-size:11px;color:#a4afbd;min-height:43px}.summon-pack .btn{margin-top:8px}.hp-track{height:13px;background:#070a11;position:relative;border:1px solid #745953;overflow:hidden}.battle-arena{border:1px solid #756044;padding:13px;background:radial-gradient(ellipse at 50% 35%,rgba(56,88,107,.26),transparent 70%),linear-gradient(#101a27,#111923);position:relative}.battle-arena:before{content:"";position:absolute;inset:0;background:url("../assets/battle_table.jpg") center/cover;opacity:.11;pointer-events:none}.battle-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lane{min-height:122px;background:linear-gradient(165deg,#182635aa,#0b111da9);border:1px solid #425467;display:flex;flex-direction:column;align-items:center;padding:6px;gap:5px;position:relative}.lane-name{color:#97a2af;font-size:10px;letter-spacing:1px}.unit{width:64px;max-width:32%;background:linear-gradient(160deg,#293341,#0e131c);border:1px solid #b18b56;border-radius:3px;position:relative;text-align:center;padding:3px;box-shadow:0 4px 10px #0009;overflow:hidden;flex:1;min-width:42px;max-width:70px}.unit.enemy-unit{border-color:#a8514c;background:#241c21}.unit-stats{display:flex;justify-content:space-between;font:bold 11px var(--display);color:#d9e3e9}.unit-stats span:first-child{color:#f0ac80}.unit-stats span:last-child{color:#9cdbf3}.hand-cards{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;padding:11px 10px 16px;flex:1;scrollbar-width:thin}.hand-cards .game-card{width:122px;min-width:105px;flex:none}.hand-cards .game-card.selected{transform:translateY(-5px)}.history-row{display:flex;align-items:center;gap:14px;padding:12px;border-bottom:1px solid #2c323b;font-size:12px}.history-row .result{min-width:44px;text-align:center}.result.win{color:#93d9bc}.result.loss{color:#e0a4a0}.history-row .date{margin-left:auto;color:#7f8995;font-size:10px}.overlay-root{position:fixed;inset:0;pointer-events:none;z-index:50}.overlay-root:not(:empty){pointer-events:auto}.overlay-shade{position:absolute;inset:0;background:#03060dd9;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}.modal{width:min(100%,570px);max-height:calc(100dvh - 34px);overflow-y:auto;background:linear-gradient(140deg,#1b2530,#0b0f16 77%);border:1px solid #b28a54;box-shadow:0 24px 90px #000b;position:relative;padding:24px}.modal:before{content:"";position:absolute;inset:8px;border:1px solid #9b794132;pointer-events:none}.modal.large{width:min(920px,100%)}.modal-title{font:30px var(--display);color:#eed1a0;margin:5px 0 8px;text-align:center}.modal-sub{color:#aeb6c1;font-size:12px;text-align:center}.modal-close{position:absolute;right:9px;top:9px;z-index:5;border:1px solid #665944;background:#161c27;color:#e2c395;width:29px;height:29px;font-size:19px}.modal-buttons{display:flex;gap:9px;justify-content:center;margin-top:20px;flex-wrap:wrap}.modal .stat-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.stat-list>div{border:1px solid #544b42;padding:12px;text-align:center;background:#090e16}.stat-list strong{display:block;font:22px var(--display);color:#e9c48c}.stat-list span{color:#9aa8b8;font-size:10px}.toast-container{position:fixed;right:18px;bottom:20px;z-index:100;pointer-events:none;display:grid;gap:8px}.toast{background:#161d27;border:1px solid #ac8857;border-left:3px solid #e1bc7a;padding:11px 15px;color:#efddc6;font-size:12px;max-width:320px;box-shadow:0 6px 24px #0008;animation:appear .25s ease-out}@keyframes appear{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes summon-glow{0%,100%{filter:drop-shadow(0 0 8px #af8d52)}50%{filter:drop-shadow(0 0 27px #fbd18d)}}@media (max-width:1150px){.sidebar{width:204px}.brand-type{font-size:14px}.brand-seal{width:40px;height:40px;font-size:21px}.sidebar .nav-btn{padding:10px 9px}.view{padding:23px}.game-card.compact .card-name{font-size:10px}}@media (max-width:900px){.sidebar{display:none}.topbar{height:56px}.mobile-brand{display:inline-block}.main-shell{padding-bottom:68px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:35;height:calc(62px + env(safe-area-inset-bottom));padding:4px 2px env(safe-area-inset-bottom);background:#0b1019f2;border-top:1px solid #94754d;backdrop-filter:blur(16px);justify-content:space-around;align-items:stretch}.bottom-tab{width:16.666%;border:0;background:none;color:#8f9bab;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px;font-size:10px}.bottom-tab span{font-size:20px;color:#a38b64}.bottom-tab.active,.bottom-tab.active span{color:#f2c887}.view{padding:19px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}}@media (max-width:610px){.view{padding:12px 11px 23px}.topbar{padding:0 12px}.top-left,.top-right{gap:7px}.top-player{display:none}.currency{min-width:62px;padding:5px 7px;gap:4px;font-size:11px}.crumb{font-size:11px}.section-title{font-size:24px}.page-head{align-items:start;flex-direction:column;gap:8px;margin-bottom:14px}.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stage-card{min-height:195px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game-card .card-name{font-size:11px}.game-card .card-type{font-size:8px}.game-card .card-cost{width:23px;height:23px;font-size:12px}.game-card .card-rarity{display:none}.card-grid .card-stats{font-size:11px}.summon-copy{padding:18px}.summon-copy h2{font-size:29px;margin:4px 0}.summon-pack{display:grid;grid-template-columns:68px 1fr;gap:0 12px;align-items:center;text-align:left;padding:12px}.summon-pack h3{margin:2px 0;font-size:20px}.summon-pack p{margin:0;min-height:0}.summon-pack .btn{grid-column:2;margin:7px 0 0}.hp-track{height:10px}.battle-arena{padding:7px}.battle-lanes{gap:4px}.lane{padding:3px;min-height:105px}.lane-name{font-size:9px}.unit{padding:2px;min-width:0}.unit-stats{font-size:9px}.hand-cards{width:100%;gap:7px;padding:8px 4px 16px}.hand-cards .game-card{width:101px;min-width:101px}.card-detail{grid-template-columns:minmax(108px,150px) 1fr;gap:12px}.modal{padding:22px 15px}.toast-container{left:10px;right:10px;bottom:80px}.toast{max-width:100%}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media (max-width:610px){.hand-cards{width:100%;max-width:100%;min-width:0;overflow-x:auto;flex:none}}:root{--gold:#dfba78;--gold2:#ffe1a6;--border:rgba(220,177,103,.34)}.app-shell{background:radial-gradient(ellipse at 50% -10%,rgba(165,109,44,.12),transparent 45%),#080c13}.sidebar{background:linear-gradient(180deg,rgba(11,14,20,.93),rgba(7,11,17,.98)),url("../assets/steppe_panorama.webp") center/auto 100%}.topbar{background:linear-gradient(95deg,rgba(12,18,29,.97),rgba(12,18,26,.83)),url("../assets/lobby_panorama.webp") center 35%/cover;border-bottom-color:#98774b66}.stage-card{border-color:#c09a6555;box-shadow:0 12px 24px #0007}.summon-copy{background:radial-gradient(ellipse at 50% 20%,#6b4d262b,transparent 75%),linear-gradient(120deg,#0b101c,#151b28)}.summon-pack{border-color:#c5a16e77;background:linear-gradient(147deg,#2b2926,#0a1018)}.summon-pack:hover{border-color:#e7bc7f;box-shadow:0 10px 25px #0008}.game-card{border-width:1.5px;background:#080d15;box-shadow:0 5px 18px #000b,0 0 0 1px #000}.game-card .card-art{height:67%;background-position:center 31%;border-bottom:1px solid #c8aa7370}.game-card .card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#090e18a8 0%,transparent 34%)}.game-card .card-info{background:linear-gradient(180deg,#242529,#090e16);border-color:var(--rarity)}.game-card.legendary{box-shadow:0 0 17px #efba4e52,0 10px 20px #0009}.game-card.epic{box-shadow:0 0 11px #ab77e638,0 8px 18px #0008}.game-card .card-art-icon{display:none}.card-cost{box-shadow:0 1px 9px #000b}.battle-arena{background:linear-gradient(180deg,#081221c4,#111623db),url("../assets/battle_mast.webp") center/cover;border-color:#af8c5a99;box-shadow:inset 0 0 60px #000a}.lane{background-color:#08101edc;border-color:#a48c665e;transition:background .2s,border-color .2s}.unit{background:linear-gradient(180deg,#222936,#080e18);border-color:#8e7a62}@keyframes castPulse{50%{box-shadow:0 0 22px #eba75e82}}@media (max-width:610px){.summon-copy{padding:16px}}:root{--cinema-amber:#f1c47e;--cinema-midnight:#080d17}html,body{overflow-x:hidden}.view{overflow-x:clip}.topbar{min-width:0;gap:12px}.top-right{min-width:0;flex-wrap:nowrap}.currency{white-space:nowrap;flex-shrink:0}.top-left{min-width:0}.crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-card{transition:transform .4s cubic-bezier(.18,.8,.2,1),filter .35s,box-shadow .4s;transform-style:preserve-3d}.game-card:hover:not(:disabled){transform:translateY(-7px) rotateX(2deg);filter:brightness(1.13)}.btn{position:relative;overflow:hidden;isolation:isolate;transition:transform .28s,filter .28s,box-shadow .3s}.btn:before{content:"";position:absolute;z-index:1;top:-120%;bottom:-120%;width:28%;left:-45%;transform:rotate(25deg);background:linear-gradient(90deg,transparent,#fff8df86,transparent);pointer-events:none;transition:left .65s}.btn:hover:before{left:140%}@keyframes lightScan{0%{background-position:190% 0}100%{background-position:-130% 0}}@keyframes sceneBreath{from{transform:scale(1.025) translate3d(-1.1%,.6%,0)}to{transform:scale(1.14) translate3d(1.2%,-1.6%,0)}}@keyframes hazeDrift{from{transform:translate3d(-2%,0,0);opacity:.55}to{transform:translate3d(2%,0,0);opacity:1}}@keyframes contentFlow{from{opacity:0;transform:translateY(19px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}.summon-copy{z-index:1;position:relative;min-width:0}@keyframes emberPulse{to{opacity:.35;filter:brightness(1.45)}}.cin-motes{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}.cin-mote{position:absolute;left:var(--x);bottom:-8%;width:var(--size);height:var(--size);border-radius:50%;background:#ffdc96;box-shadow:0 0 9px 2px #ffc56899;opacity:0;animation:moteRise var(--duration) linear var(--delay) infinite}@keyframes moteRise{0%{transform:translate3d(0,0,0) scale(.5);opacity:0}12%{opacity:.8}74%{opacity:.44}100%{transform:translate3d(var(--drift),-117vh,0) scale(.15);opacity:0}}@keyframes curtainIn{from{opacity:0}to{opacity:1}}@keyframes curtainOut{from{opacity:1}to{opacity:0}}@keyframes curtainTravel{from{transform:scale(1.07) translateY(2%)}to{transform:scale(1.22) translateY(-2%)}}@keyframes curtainBlade{0%{opacity:0;transform:scaleY(.05)}55%{opacity:1;transform:scaleY(1)}100%{opacity:.24;transform:scaleY(1.4)}}@keyframes captionArrive{from{opacity:0;transform:translateY(24px) scale(.95);filter:blur(7px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes lightBreathe{0%,100%{opacity:.2;filter:blur(11px)}50%{opacity:.6;filter:blur(5px)}}.ritual-shade{position:fixed;inset:0;z-index:51;background:#02050d;overflow:auto;overscroll-behavior:contain}.ritual-scene{min-height:100dvh;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate;padding:clamp(24px,3vw,42px) 16px;background:#060b14;overflow:hidden}.ritual-back{position:absolute;z-index:-2;inset:-8%;background:linear-gradient(90deg,#02040aec,#080b1880,#02040ae0),url("../assets/summon_core.webp") center/cover;filter:brightness(.62) saturate(1.04);animation:introCamera 21s ease-in-out infinite alternate}.ritual-scene:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 57%,#f3ae5140,transparent 37%),linear-gradient(0deg,#060914 1%,transparent 48%);pointer-events:none}.ritual-center{position:relative;height:clamp(230px,40vh,390px);width:min(560px,96%);flex:none;perspective:900px;display:grid;place-items:center;transition:height .8s cubic-bezier(.2,.8,.18,1),opacity .6s;isolation:isolate}.ritual-scene.revealing .ritual-center,.ritual-scene.finished .ritual-center{height:0;opacity:0;overflow:hidden}.ritual-ring{position:absolute;top:50%;left:50%;width:clamp(190px,28vw,310px);aspect-ratio:1;border:1px solid #edb45b95;border-radius:50%;background:repeating-conic-gradient(from 25deg,transparent 0deg 10deg,#dcb27229 11deg 12deg,transparent 13deg 20deg);box-shadow:0 0 40px #daa15b77,inset 0 0 25px #edc27434;animation:ritualTurn 14s linear infinite}.ritual-ring.outer{width:clamp(235px,35vw,380px);border-style:dashed;border-color:#ebc37f55;animation-direction:reverse;animation-duration:18s}@keyframes ritualTurn{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.ritual-beam{position:absolute;top:-18%;left:50%;width:4px;height:145%;transform:translateX(-50%);opacity:.9;background:linear-gradient(transparent,#fffcdb,#ffc46a,transparent);box-shadow:0 0 38px 16px #f3aa5366,0 0 90px 40px #ed96462b;animation:lightBreathe 2.6s infinite}.ritual-book{position:relative;width:clamp(130px,16vw,195px);aspect-ratio:.70;z-index:2;border:2px solid #f4ce87;border-radius:8px;box-shadow:0 0 38px #ffd0888f,0 30px 48px #000c;overflow:hidden;background:#16101a;transform:rotateY(-18deg) rotateZ(3deg);animation:bookAscend 2.5s cubic-bezier(.24,.8,.18,1) infinite alternate}.ritual-book img{width:100%;height:100%;object-fit:cover;object-position:36% center}.ritual-book:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 25%,#fff3b350 47%,transparent 64%);background-size:250% 100%;animation:lightScan 2.7s linear infinite}@keyframes bookAscend{from{transform:translateY(12px) rotateY(-23deg) rotateZ(3deg) scale(.94)}to{transform:translateY(-15px) rotateY(20deg) rotateZ(-3deg) scale(1.055)}}.ritual-scene.surge .ritual-book{animation:bookBurst .85s cubic-bezier(.24,.7,.2,1) forwards}@keyframes bookBurst{60%{transform:scale(1.14) rotateY(90deg);filter:brightness(2)}100%{transform:scale(.1) rotateY(180deg);opacity:0;filter:brightness(4)}}.ritual-stage-text{color:#e5bd7e;font:12px var(--body);letter-spacing:.26em;text-align:center;margin:6px auto 16px;z-index:4;min-height:20px;text-shadow:0 0 12px #df9f53}.ritual-rewards{position:relative;z-index:4;display:grid;grid-template-columns:repeat(5,minmax(0,125px));gap:clamp(8px,1vw,16px);width:min(740px,100%);justify-content:center;perspective:1000px;margin:0 auto}.ritual-rewards.single{grid-template-columns:minmax(0,180px);width:min(230px,100%)}.ritual-reward{position:relative;aspect-ratio:.7;min-width:0;opacity:0;transform:rotateY(95deg) translateY(35px) scale(.8);filter:blur(10px);transform-style:preserve-3d;transition:transform .82s cubic-bezier(.13,.9,.2,1),opacity .5s,filter .6s}.ritual-reward.revealed{opacity:1;transform:rotateY(0) translateY(0) scale(1);filter:blur(0)}.ritual-reward .game-card{height:100%;width:100%;font-size:11px}.ritual-reward .card-art{height:68%}.ritual-reward .card-info{flex:1}.ritual-reward .card-name{font-size:11px}.ritual-reward.legendary.revealed{animation:legendSpark 2.5s ease-in-out infinite alternate;z-index:2}@keyframes legendSpark{to{filter:drop-shadow(0 0 24px #ffcf6a);transform:translateY(-5px) scale(1.035)}}.ritual-action-row{position:relative;z-index:5;margin:19px auto 3px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.ritual-action-row .btn{min-width:155px}.ritual-hint{color:#9aa4af;font-size:11px;text-align:center;margin:10px auto;z-index:4}.ritual-flare{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 50%,#ffefbd,transparent 55%)}.ritual-scene.surge .ritual-flare{animation:flareMoment .88s .16s both}@keyframes flareMoment{0%,100%{opacity:0}48%{opacity:.86}}.battle-arena:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse at 50% 20%,#ad733b16,transparent 50%);animation:ambientShift 8s ease-in-out infinite alternate}.battle-arena>*{position:relative;z-index:1}@keyframes ambientShift{from{transform:translateX(-10%);opacity:.35}to{transform:translateX(10%);opacity:.75}}.unit{animation:unitDrop .6s cubic-bezier(.18,1.3,.3,1) both}@keyframes unitDrop{from{opacity:.2;transform:translateY(-11px) scale(.87);filter:brightness(2)}to{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}}@keyframes victoryGlory{to{filter:brightness(1.13) saturate(1.1);object-position:center 55%}}@media (max-width:1450px){.view{padding:clamp(14px,2vw,26px)}}@media (min-width:901px) and (max-width:1190px){.sidebar{width:184px}.brand{padding:12px 8px}.brand-type{font-size:12px}.brand-seal{width:34px;height:34px;font-size:18px}.nav-btn{padding:8px}}@media (max-width:900px){.top-right{gap:6px}}@media (max-width:610px){.topbar{gap:7px}.currency{min-width:0;padding:5px}.crumb{max-width:145px}.ritual-center{height:250px}.ritual-ring.outer{width:270px}.ritual-ring{width:220px}.ritual-rewards{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.ritual-reward .card-info{padding:3px}.ritual-reward .card-name{font-size:9px}.ritual-reward .card-type,.ritual-reward .card-stats{display:none}.ritual-reward .card-cost{width:18px;height:18px;font-size:9px}.ritual-reward .card-level{display:none}.ritual-reward .card-art{height:74%}.ritual-reward .game-card{border-width:1px}.ritual-action-row .btn{min-width:115px}.ritual-scene{padding:20px 9px 85px}.ritual-rewards.single{grid-template-columns:minmax(0,175px)}.ritual-rewards.single .card-stats,.ritual-rewards.single .card-type{display:block}.ritual-rewards.single .card-name{font-size:13px}}@media (max-height:660px) and (min-width:901px){.ritual-center{height:180px}.ritual-ring.outer{width:200px}.ritual-ring{width:170px}.ritual-book{width:102px}}@media (prefers-reduced-motion:reduce){.ritual-reward{transition:none!important}}.ritual-scene:not(.revealing) .ritual-rewards{position:absolute;opacity:0;pointer-events:none;width:0;height:0;overflow:hidden}.ritual-scene.revealing .ritual-rewards{position:relative;opacity:1;animation:contentFlow .5s both}.ritual-scene:not(.revealing) .ritual-action-row{margin-top:12px}.cinematic-curtain .cin-motes,.ritual-scene .cin-motes{z-index:3}@media (max-width:610px){.ritual-scene.finished .ritual-rewards{max-width:100%}}:root{--bg:#070d16;--bg2:#101c2a;--panel:#111d2c;--panel2:#192737;--ink:#fff4e4;--muted:#bfcbda;--sub:#9caec2;--gold:#edc98c;--gold2:#ffe7b9;--border:rgba(216,178,116,.36);--blue:#76c6ef;--green:#84d9b1;--premium-shadow:0 16px 45px rgba(0,0,0,.40)
}html{scrollbar-color:#675538 #090f19}body{background:#070d16;color:var(--ink);font-size:14px}.app-shell{background:radial-gradient(ellipse at 55% 0%,rgba(32,55,75,.29),transparent 54%),linear-gradient(180deg,#0b1420,#070c14 85%)}.view{max-width:1560px;padding:clamp(17px,2.1vw,32px)}.sidebar{width:232px;background:linear-gradient(170deg,#121d2bfa,#090f18fa 68%),url("../assets/dual_legends_keyart.webp") 35% center / auto 110% no-repeat;box-shadow:12px 0 48px #0008;border-right:1px solid #b991544b}.brand{height:86px;padding:14px 16px;border-bottom:1px solid #a9804c47}.brand-type{font-size:16px;letter-spacing:-.65px}.brand-type small{letter-spacing:.3px;color:#b4c1d0}.brand-seal{background:radial-gradient(circle at 37% 22%,#5e431e,#181d25 63%);box-shadow:inset 0 0 0 3px #111823,0 0 26px #f2c47a32}.sidebar-caption{margin-top:28px;font-size:10px;color:#d2ab78}.nav-btn{font-size:13px;color:#b5c0ce;padding:12px 13px;border-radius:4px;border:1px solid transparent}.nav-btn .nav-icon{font-size:17px;color:#d2b27e}.nav-btn.active{background:linear-gradient(90deg,#c9996033,#95734d12);border-color:#d6af785a;border-left:3px solid #e4b778;color:#ffe8c5;box-shadow:inset 0 0 18px #f2c37b0c}.nav-btn:hover:not(.active){background:#dcc18d0e;color:#fff1dd}.sidebar-bottom{color:#9aa9bd}.sidebar-bottom p{color:#aeb8c5}.topbar{height:67px;padding-inline:clamp(15px,2.6vw,40px);background:linear-gradient(90deg,#0b121df2,#0d1926eb),url("../assets/dual_legends_keyart.webp") center 46%/cover;border-bottom:1px solid #b58e605a;box-shadow:0 9px 28px #0006}.top-player{font-size:12px}.top-player small{color:#a8b8c9}.crumb{color:#bdcbdc;font-size:12px}.currency{background:linear-gradient(155deg,#0a1221,#111e2b);border-color:#b090653f;padding:7px 12px;min-width:86px;box-shadow:inset 0 1px #fff1bd0b}.currency strong{font-weight:700;color:#fff2de}.icon-button{border-color:#a78c6059;background:#121e2d;color:#f2d1a5}.icon-button:hover{border-color:#ebc992;background:#243145}.section-title{font-size:clamp(27px,2.5vw,37px);color:#ffe6be;letter-spacing:-.3px}.section-sub{color:#b8c6d3;font-size:13px}.page-head{margin-bottom:20px}.eyebrow{color:#efc489}.panel{background:linear-gradient(156deg,#182536f5,#101b2af8 55%,#0b1421f8);border:1px solid #ba956453;box-shadow:var(--premium-shadow),inset 0 1px #ffdb9f14}.btn{border-radius:4px;min-height:40px;padding:10px 19px}.btn.primary{color:#261809;background:linear-gradient(160deg,#ffe7b4,#d9ab67 43%,#977044);border-color:#ffe4ae;box-shadow:inset 0 1px #fff7e0a6,0 7px 24px #03081075}.btn.ghost{border-color:#a18a6b;color:#f7e3c1;background:#111b29dd}.btn.blue{border-color:#6fb1d3;color:#d7f3ff}.btn:disabled{filter:saturate(.5);opacity:.55}.progress-track{background:#101926;border-color:#45505e}.stage-grid{gap:14px}.stage-card{min-height:240px;border-color:#ad8e604f;background:linear-gradient(#162335,#0e1726);border-radius:3px;box-shadow:0 10px 20px #0004;transition:transform .25s,border-color .25s,filter .25s}.stage-card:hover:not(:disabled){transform:translateY(-4px);border-color:#ffd69d;filter:brightness(1.12)}.stage-card.locked{filter:grayscale(.68) brightness(.8);opacity:.82;cursor:not-allowed}.card-grid{gap:13px}.game-card{border-width:1.5px;border-radius:5px;box-shadow:0 7px 17px #0009;transition:transform .2s,box-shadow .2s,border-color .2s}.game-card:hover:not(:disabled){transform:translateY(-4px);filter:brightness(1.10)}.game-card .card-art{background-position:center 23%}.game-card .card-info{background:linear-gradient(180deg,#222a34,#0b1320)}.game-card .card-name{color:#fff1da}.tab{padding:9px 14px;border-radius:3px;border-color:#6b75815c;color:#c6d1df;background:#0d1825;min-height:38px}.tab.active{border-color:#d6a76e;background:#3e3124;color:#ffe1ae}.tab:hover:not(.active){color:white;border-color:#b08a59}.deck-slot{background:#0b1624;border-color:#8d775f81}.summon-copy{background:radial-gradient(ellipse at 50% 15%,#83613221,transparent 65%),linear-gradient(140deg,#101d2b,#121a29)}.summon-copy h2{color:#ffe2ae}.summon-copy p{color:#c4d1df;font-size:13px;line-height:1.9}.summon-pack{border-radius:3px;border-color:#c09d695f;background:linear-gradient(155deg,#1c2a39,#101924);padding:22px}.summon-pack h3{color:#ffe0ad}.summon-pack p{color:#bbcad9}.battle-arena{border-color:#bd976173}.lane{border-color:#aa9c7c72;background-color:#0a1828df}.unit{box-shadow:0 4px 14px #0006}.modal{background:linear-gradient(160deg,#192638,#0b1523);border:1px solid #d8ac72;box-shadow:0 34px 100px #000b}.modal-sub{color:#c8d3df}.overlay-shade{background:#040a13de}.toast{border-color:#d2aa78;background:#152232;color:#f9e4c2}@media (min-width:901px) and (max-width:1269px){.sidebar{width:205px}}@media (max-width:900px){.topbar{height:58px}.view{padding:15px 15px 24px}.sidebar{display:none}.bottom-nav{background:linear-gradient(180deg,#142133f5,#09111ff8);border-top-color:#cba56b56;box-shadow:0 -8px 30px #0008}.bottom-tab{color:#b5c4d5}.bottom-tab.active{color:#ffdfab}
}@media (max-width:610px){.view{padding:12px 11px 20px}.topbar{padding:0 11px}.currency{min-width:0;padding:5px 8px}.crumb{max-width:120px}.section-title{font-size:26px}.section-sub{font-size:12px}.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stage-card{min-height:205px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.summon-pack{padding:14px}.summon-copy{padding:20px}.summon-copy h2{font-size:30px}.tab{padding:8px 10px;min-height:35px;font-size:11px}.modal{padding:22px 15px}
}@media (max-width:380px){.currency{font-size:10px}.card-grid{gap:6px}
}.stage-card.locked{filter:grayscale(.47) brightness(.88);opacity:.9}:root{--ink:#fff5e7;--muted:#bbc9d5;--gold:#e9c68e;--gold2:#ffe9bc;--border:rgba(222,180,116,.32);--collector-line:rgba(222,180,116,.24);--collector-ease:cubic-bezier(.2,.8,.17,1)}html{scroll-behavior:smooth;scrollbar-color:#67573f #0a101a}body{background:#070c14;letter-spacing:.005em}::selection{color:#161a21;background:#ebc187}.app-shell{background:radial-gradient(ellipse at 65% -10%,#233b5130,transparent 48%),radial-gradient(ellipse at 96% 86%,#6c412c15,transparent 45%),linear-gradient(#0a1421,#080d15)}.view{max-width:1550px}.sidebar{border-right:1px solid #bd956161;backdrop-filter:blur(12px)}.sidebar:after{content:"";position:absolute;bottom:0;left:0;right:0;height:250px;pointer-events:none;background:linear-gradient(0deg,#0a111a,transparent)}.sidebar-bottom{z-index:1}.brand-seal{border:1px solid #fad69b91;box-shadow:0 0 0 5px #8f6b2d18,inset 0 1px 15px #cf9c4236,0 6px 18px #0006}.nav-btn{transition:background .22s,border-color .22s,transform .22s,color .22s}.nav-btn:hover:not(.active){transform:translateX(3px)}.topbar{box-shadow:0 7px 33px #0008}.currency{border-radius:30px;box-shadow:inset 0 1px 0 #ffebc51b,0 4px 14px #0004}.currency.gold>span{color:#f7ce81}.currency.gems>span{color:#a8daf8}.icon-button{transition:transform .22s,border-color .22s,background .22s}.icon-button:hover{transform:translateY(-2px)}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:600}.eyebrow:before{color:#e6b56c}.section-title{font-size:clamp(27px,2.55vw,40px);line-height:1.2;letter-spacing:-.045em;text-shadow:0 2px 13px #0005}.section-sub{line-height:1.8;max-width:650px}.page-head{padding-bottom:17px;border-bottom:1px solid #c6a07039;align-items:center;gap:20px}.panel{border-radius:7px;overflow:hidden}.panel:before,.panel:after{opacity:.7}.btn{border-radius:5px;position:relative;overflow:hidden;transition:transform .24s var(--collector-ease),filter .24s,box-shadow .24s,border-color .24s}.btn:not(:disabled):after{content:"";position:absolute;inset:-30%;pointer-events:none;transform:translateX(-150%) rotate(17deg);background:linear-gradient(90deg,transparent,#fff4d41e,transparent);transition:transform .7s var(--collector-ease)}.btn:not(:disabled):hover:after{transform:translateX(150%) rotate(17deg)}.btn.primary{background:linear-gradient(142deg,#ffe7b5,#dbb076 45%,#af7841 100%);border-color:#f1d3a1;box-shadow:0 6px 22px #0006,inset 0 1px #fffbd1b8}.btn.ghost{background:linear-gradient(150deg,#15263a,#0d1724);border-color:#b49a76a1;color:#f3dbb7}.btn.blue{background:linear-gradient(140deg,#213c5a,#121f38);border-color:#9bb5f199}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn:active:not(:disabled){transform:translateY(0) scale(.99)}.tab{border-radius:30px;transition:border-color .2s,background .2s,color .2s}.tab.active{background:linear-gradient(145deg,#795735,#3d2e23);box-shadow:inset 0 1px #ffe6ab3a}.stage-card:hover:not(:disabled){box-shadow:0 16px 30px #0007,0 0 0 1px #e9bd7478}.game-card{border-radius:7px;box-shadow:0 12px 24px #0009,inset 0 0 0 1px #fff2ce16;transition:transform .26s var(--collector-ease),filter .26s,box-shadow .26s}.game-card:hover:not(:disabled){transform:translateY(-6px);box-shadow:0 18px 32px #000c,0 0 0 1px var(--rarity)}.game-card .card-art{filter:saturate(1.05);transition:filter .3s,transform .4s}.game-card:hover .card-art{filter:saturate(1.12) contrast(1.04)}.game-card .card-info{background:linear-gradient(180deg,#212632,#111923 78%,#0c111d);border-top-color:var(--rarity)}.game-card .card-name{letter-spacing:-.03em}.game-card.legendary{box-shadow:0 9px 27px #9c671c40,0 13px 29px #0008}.card-cost{box-shadow:0 3px 9px #000b,inset 0 1px #d8efff9c}.deck-slot{border-radius:5px}.modal{border-radius:8px;box-shadow:0 38px 120px #000e,0 0 55px #d19d5133}.modal-close{transition:background .2s,color .2s}.toast{border-radius:7px;box-shadow:0 14px 35px #000b}.summon-copy{padding:clamp(26px,3vw,50px);background:radial-gradient(ellipse at 30% 8%,#9b682331,transparent 62%),linear-gradient(140deg,#142438,#0b1724 75%)}.summon-copy h2{font-size:clamp(32px,3.3vw,48px);letter-spacing:-.045em;line-height:1.16;text-shadow:0 6px 22px #0009}.summon-copy p{font-size:13px;line-height:2;color:#cfdae5}.summon-pack{display:flex;flex-direction:column;align-items:center;min-height:249px;padding:25px 20px 20px;border-radius:7px;overflow:hidden;isolation:isolate;transition:transform .28s var(--collector-ease),border-color .25s,box-shadow .25s}.summon-pack:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 8%,#ffc37625,transparent 53%),linear-gradient(170deg,transparent 52%,#070e186a);pointer-events:none}.summon-pack.special:before{background:radial-gradient(ellipse at 50% 8%,#b1a6fb29,transparent 53%),linear-gradient(170deg,transparent 52%,#070e186a)}.summon-pack:hover{transform:translateY(-5px);border-color:#f5d395ad;box-shadow:0 18px 38px #0009,0 0 32px #d4a05e13}.summon-pack h3{font-size:22px;margin:6px 0 4px}.summon-pack p{font-size:12px;line-height:1.8;min-height:45px;max-width:260px;margin:8px auto 15px}.summon-pack .btn{margin-top:auto;font-size:13px;min-height:45px}.collection-grid{grid-template-columns:repeat(auto-fill,minmax(137px,1fr));gap:16px}.collection-grid>.game-card{animation:collectedRise .42s var(--collector-ease) both}@keyframes collectedRise{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.ritual-shade{background:#030813}.ritual-scene{background:linear-gradient(160deg,#101925,#050914 80%);padding:clamp(20px,2.5vw,30px) 16px 28px;cursor:default}.ritual-scene:not(.finished){cursor:pointer}.ritual-scene:after{background:radial-gradient(ellipse at 50% 38%,#b989343b,transparent 40%),linear-gradient(0deg,#070c16,transparent 55%)}.ritual-back{filter:brightness(.52) saturate(1.14)}.ritual-stage-text{font-size:12px;letter-spacing:.12em;color:#f6d294;margin:13px auto 15px}.ritual-ring{border-color:#f0cd81ae}.ritual-rewards{grid-template-columns:repeat(5,minmax(0,131px));gap:clamp(10px,1.4vw,19px);width:min(770px,100%)}.ritual-rewards.single{grid-template-columns:minmax(0,205px);width:205px}.ritual-reward{transform-origin:center;transition:transform .63s var(--collector-ease),opacity .55s,filter .55s}.ritual-reward.revealed{transform:rotateY(0) translateY(0) scale(1)}.ritual-reward .game-card{cursor:default;pointer-events:none;box-shadow:0 9px 25px #000a}.ritual-reward .game-card:hover{transform:none}.ritual-reward.legendary.revealed{animation:none;z-index:1}.ritual-reward.ritual-featured{z-index:9!important;animation:featuredCardLift 1.72s var(--collector-ease) 1 both!important;isolation:isolate}.ritual-reward.ritual-featured:before{content:"";position:absolute;z-index:-1;inset:-17px;border-radius:19px;pointer-events:none;background:conic-gradient(from 0deg,transparent 0deg,#ffeec3 38deg,transparent 75deg,#d49e4c 150deg,transparent 220deg,#fff0bc 300deg,transparent 360deg);opacity:0;filter:blur(14px);animation:featuredAura 1.75s ease-out 1 both}.ritual-reward.ritual-featured:after{content:"";position:absolute;z-index:7;inset:-8px;border:2px solid #ffe0a1;border-radius:10px;pointer-events:none;box-shadow:0 0 16px #ffcb71,0 0 36px #e4b15c99,inset 0 0 18px #ffe29e55;animation:featuredBorder 1.75s ease-out 1 both}@keyframes featuredCardLift{0%,100%{transform:translateY(0) scale(1)}27%{transform:translateY(-9px) scale(1.075)}48%{transform:translateY(-11px) scale(1.09)}80%{transform:translateY(-2px) scale(1.025)}}@keyframes featuredAura{0%,100%{opacity:0;transform:scale(.75) rotate(-20deg)}20%{opacity:.92}60%{opacity:.8;transform:scale(1.35) rotate(45deg)}}@keyframes featuredBorder{0%,100%{opacity:0;transform:scale(.94)}25%,68%{opacity:1;transform:scale(1.02)}}@keyframes featuredName{0%,20%,95%,100%{opacity:0;transform:translate(-50%,-40%) scale(.88)}34%,72%{opacity:1;transform:translate(-50%,-50%) scale(1)}}.ritual-action-row{gap:10px;margin:22px auto 5px;max-width:640px}.ritual-action-row .btn{min-width:0}.ritual-action-row .ritual-redraw{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:225px;padding:11px 23px;line-height:1.5}.ritual-redraw small{color:#553d25;opacity:.82;font-size:10px;font-weight:600}.ritual-action-row .ritual-return{min-height:52px;padding:12px 21px}.ritual-shortage{flex-basis:100%;color:#e6aaa1;font-size:11px;text-align:center}.ritual-hint{font-size:11px;color:#b5c0cb;letter-spacing:.005em;line-height:1.6}.ritual-scene:not(.finished) .ritual-hint{color:#f6dab0;animation:ritualHintPulse 2s ease-in-out infinite alternate}@keyframes ritualHintPulse{to{opacity:.58}}.ritual-scene.finished .ritual-rewards{animation:contentFlow .45s both}.ritual-scene.finished .ritual-center{height:0!important}@media (min-width:901px){.ritual-scene.finished .ritual-stage-text{margin:14px auto 22px}}@media (max-width:900px){.summon-pack{min-height:236px}.ritual-action-row{margin-top:19px}}@media (max-width:610px){.page-head{flex-wrap:wrap;align-items:flex-start;gap:10px;padding-bottom:13px}.page-head>.btn,.page-head>div:nth-child(2){max-width:100%}.summon-copy{padding:21px}.summon-copy h2{font-size:32px}.summon-copy p{font-size:12px}.summon-pack{display:grid;grid-template-columns:56px 1fr;align-items:center;text-align:left;gap:0 13px;min-height:115px;padding:14px 17px}.summon-pack h3{grid-row:1;grid-column:2;font-size:19px;margin:0}.summon-pack p{grid-row:2;grid-column:2;min-height:0;max-width:none;margin:3px 0 12px;font-size:11px;line-height:1.45}.summon-pack .btn{grid-column:1/3;width:100%;min-height:40px;margin-top:0}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ritual-scene{justify-content:center;padding:21px 10px 35px}.ritual-center{height:clamp(195px,34vh,300px)}.ritual-stage-text{font-size:10px;letter-spacing:.05em;margin:9px auto 13px}.ritual-rewards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 8px;width:min(390px,100%)}.ritual-rewards.single{grid-template-columns:minmax(0,190px);width:190px}.ritual-reward .card-name{font-size:10px}.ritual-reward .card-rarity{display:block;font-size:7px;padding:1px 2px}.ritual-reward .card-stats,.ritual-reward .card-type{display:none}.ritual-reward .card-cost{width:20px;height:20px;font-size:10px}.ritual-rewards.single .card-stats,.ritual-rewards.single .card-type{display:flex}.ritual-rewards.single .card-name{font-size:13px}.ritual-action-row{margin:18px auto 3px;gap:8px;width:100%}.ritual-action-row .ritual-redraw{min-width:0;flex:1;min-height:53px;padding:7px 12px;font-size:11px}.ritual-action-row .ritual-return{min-width:0;max-width:40%;min-height:53px;padding:8px;font-size:10px}.ritual-hint{font-size:10px;margin:10px auto}
}@media (max-width:370px){.ritual-rewards{gap:7px 5px}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ritual-reward.ritual-featured:after{opacity:1}.btn:not(:disabled):after{display:none}}:root{--battle-gold:#f4c986;--battle-bronze:#8c6134;--battle-ink:#e9edf6}.build-tag{letter-spacing:.16em}@keyframes battleCurtainDrift{from{transform:scale(1.14) translateY(3%)}to{transform:scale(1.04) translateY(-1.5%)}}@keyframes battleWrapEnter{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}.battle-arena{perspective:1200px}.battle-lanes{align-items:stretch}.lane{border-radius:14px;padding:10px 8px 9px;background:linear-gradient(180deg,#0e1728f0,#07101bf2);border:1px solid #92724f70;box-shadow:inset 0 1px 0 #ffffff14,0 10px 24px #0005;transform:translateZ(0)}.lane-name{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#9fb3c7}.lane.deploy-ready{box-shadow:inset 0 0 0 1px #e6bb72aa,0 0 0 1px #f3cf9a1a,0 18px 34px #0008}.unit{position:relative;border-radius:10px;padding:4px;background:linear-gradient(180deg,#313949,#0b111a);border:1px solid #a98c63;width:68px;max-width:32%;min-width:44px;transform-style:preserve-3d;transform-origin:center bottom;box-shadow:0 14px 22px #0008, inset 0 1px 0 #ffffff14;overflow:hidden}.unit:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#ffffff12,transparent 25%,transparent 70%,#00000024);pointer-events:none}.unit.enemy-unit{background:linear-gradient(180deg,#392129,#140c12);border-color:#b36969}.unit-stats{margin-top:4px;padding-top:4px;border-top:1px solid #ffffff14;font-size:11px}.unit.summoned{animation:unitSummon3d .95s cubic-bezier(.18,.96,.26,1.06) both, unitSummonGlow 1.2s ease-out}.unit.summoned:after{content:"";position:absolute;inset:-25%;background:radial-gradient(circle,#ffe2a94f,transparent 55%);animation:unitHalo .9s ease-out both;pointer-events:none}.unit.enemy-unit.summoned:after{background:radial-gradient(circle,#ffb0b04d,transparent 55%)}@keyframes unitSummon3d{0%{opacity:0;transform:translateY(22px) rotateX(-74deg) scale(.75)}45%{opacity:1;transform:translateY(-4px) rotateX(16deg) scale(1.05)}72%{transform:translateY(0) rotateX(-8deg) scale(.98)}100%{opacity:1;transform:translateY(0) rotateX(0) scale(1)}}@keyframes unitSummonGlow{0%{filter:brightness(2.1) saturate(1.4)}100%{filter:brightness(1) saturate(1)}}@keyframes unitHalo{from{opacity:0;transform:scale(.45)}30%{opacity:1}to{opacity:0;transform:scale(1.15)}}.ritual-honors{position:relative;z-index:5;width:min(920px,100%);max-height:0;opacity:0;overflow:hidden;transition:max-height .45s ease,opacity .35s ease,margin .35s ease;margin:0 auto}.ritual-honors.show{max-height:220px;opacity:1;margin:10px auto 18px}.ritual-honor{min-width:180px;max-width:220px;padding:11px 14px;border:1px solid #b78b597a;background:linear-gradient(180deg,#131a28f4,#0c1119f2);box-shadow:0 12px 28px #0007;text-align:center;position:relative;overflow:hidden}.ritual-honor:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent,#ffffff0d,transparent);pointer-events:none}.ritual-honor.legendary{border-color:#f1cb8c;background:linear-gradient(180deg,#2f2311f6,#120f0af2)}.ritual-honor.epic{border-color:#d5a77f;background:linear-gradient(180deg,#251723f2,#110c16f2)}.ritual-honor strong{display:block;font:16px Georgia,serif;color:#fff2d7}.ritual-honor small{display:block;margin-top:5px;color:#b8b8c3;font-size:10px}.ritual-reward{will-change:transform,opacity}.ritual-featured{z-index:7;animation:ritualCardFeature 1.75s cubic-bezier(.18,.88,.22,1) both}.ritual-featured .game-card{box-shadow:0 0 0 1px #f6d49c80,0 0 24px #ecb46466,0 20px 30px #0009}@keyframes ritualCardFeature{0%{transform:translateY(0) scale(1)}18%{transform:translateY(-14px) scale(1.08)}38%{transform:translateY(-10px) scale(1.04)}100%{transform:translateY(0) scale(1)}}@media (max-width:900px){.topbar{position:sticky;top:0;z-index:30;backdrop-filter:blur(14px);background:#0a1019e0;border-bottom:1px solid #8d6a4428}.hand-cards{scroll-snap-type:x proximity;padding-bottom:18px}.hand-cards .game-card{scroll-snap-align:start}
}@media (max-width:700px){.battle-arena{padding:10px 8px;border-radius:16px}.battle-lanes{gap:7px}.lane{min-height:124px;padding:7px 5px 6px;border-radius:12px}.lane-name{font-size:8px;letter-spacing:.12em}.unit{width:70px;min-width:0;max-width:31%;padding:3px}.ritual-honor{min-width:140px;max-width:100%;padding:9px 10px}.ritual-honor strong{font-size:14px}
}@media (max-width:520px){.view{padding:11px 10px 22px}.crumb{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.currency{min-width:58px}.battle-lanes{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.lane{min-height:116px}.unit{width:auto;max-width:31%;border-radius:8px}.unit-stats{font-size:9px}.hand-cards{gap:8px;padding:8px 2px 16px}.hand-cards .game-card{width:112px;min-width:112px}.ritual-honors.show{margin:8px auto 14px}.ritual-rewards{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.ritual-reward .game-card{height:100%}
}:root{--hd-shadow:0 25px 65px rgba(0,0,0,.48);--hd-gilt:#f0cc95;--hd-midnight:#070d17;--hd-ice:#cbdbea}html{scrollbar-gutter:stable;scroll-behavior:smooth}body{background-color:#070b13}button{touch-action:manipulation}button:focus-visible,input:focus-visible{outline:2px solid #f5d9ac;outline-offset:3px}button:disabled{cursor:not-allowed}.app-shell{background:radial-gradient(ellipse at 78% 0%,#263e5936,transparent 44%),radial-gradient(ellipse at 6% 80%,#68422012,transparent 50%),linear-gradient(180deg,#0b1220,#070c15)}.sidebar{background:radial-gradient(circle at 44% 0%,#202c3c9a,transparent 35%),linear-gradient(#0d1624,#080d16)}.nav-btn.active{box-shadow:inset 3px 0 0 #f3cd90,0 8px 28px #0003}.topbar{border-bottom:1px solid #a7804c52;background:linear-gradient(100deg,#101b2bf4,#0a111cf5)}.view{contain:layout}.page-head{position:relative;overflow:visible}.page-head:after{content:"";position:absolute;bottom:-1px;left:0;width:120px;height:1px;background:linear-gradient(90deg,#ffe0ab,transparent)}.section-title{font-weight:600}.btn.primary{color:#18140f;text-shadow:0 1px 0 #fff5b450;box-shadow:0 8px 20px #0009,inset 0 1px 0 #fff8dd}.btn:active:not(:disabled){transform:scale(.97)}.game-card:hover:not(:disabled){filter:brightness(1.08)}.game-card.selected{box-shadow:0 0 0 2px #f3d5a0,0 0 28px #d6a05577,0 18px 34px #000b}.game-card.legendary .card-rarity{color:#ffe1a6;letter-spacing:.1em}.game-card.epic .card-rarity{color:#e2b6ff;letter-spacing:.08em}.summon-pack.special{box-shadow:var(--hd-shadow),inset 0 0 35px #51427b26}.unit{animation:none;transform:translateZ(0);backface-visibility:hidden}.unit.summoned{animation:unitSummon3d .95s cubic-bezier(.18,.96,.26,1.06) both,unitSummonGlow 1.2s ease-out}.unit:hover{filter:brightness(1.12)}.lane{transition:border-color .2s,background .2s,box-shadow .2s}.lane.deploy-ready{animation:laneReadyGlow 2.1s ease-in-out infinite alternate}@keyframes laneReadyGlow{from{box-shadow:inset 0 0 0 1px #f0c58144,0 12px 25px #0006}to{box-shadow:inset 0 0 18px #d59b4c40,0 0 0 1px #edc38465,0 15px 25px #0007}}.unit.enemy-unit{filter:saturate(.9)}.battle-arena{border-radius:15px;box-shadow:inset 0 0 55px #0007,0 26px 45px #0007}@keyframes arenaImpulse{0%{opacity:0;transform:scale(.89)}18%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.04)}}.ritual-scene.finished{justify-content:flex-start;min-height:100dvh;overflow-y:auto;padding-top:clamp(25px,5vh,62px)}.ritual-scene.finished .ritual-center{flex-basis:0}.ritual-honors.show{width:min(880px,100%);max-height:none;overflow:visible;margin:14px auto 20px}.ritual-honor{flex:0 0 172px;scroll-snap-align:center;max-width:none;min-width:0;border-radius:8px}.ritual-honor.legendary{box-shadow:inset 0 0 25px #bd8d3932,0 10px 22px #0008}.ritual-honor.epic{box-shadow:inset 0 0 22px #9165a938,0 10px 22px #0008}.ritual-reward{transform-style:preserve-3d}.ritual-rewards{gap:clamp(8px,1.4vw,16px)}.ritual-scene.finished .ritual-rewards{animation:resultAscend .65s cubic-bezier(.2,.8,.2,1) both}@keyframes resultAscend{from{opacity:.3;transform:translateY(16px)}to{opacity:1;transform:none}}.ritual-featured{animation:ritualCardFeature 1.75s cubic-bezier(.18,.88,.22,1) both}.ritual-hint{line-height:1.6}.ritual-action-row .btn{min-height:46px}@media (max-width:900px){html{scrollbar-gutter:auto}.bottom-nav{border-top:1px solid #be945c70;box-shadow:0 -14px 35px #000b;background:#0a1320f2}.bottom-tab{min-height:52px;font-size:10px}.bottom-tab.active{background:radial-gradient(ellipse at 50% 100%,#aa783825,transparent 69%)}.bottom-tab.active span{text-shadow:0 0 13px #d8a05688}.topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
}@media (max-width:700px){.hand-cards{padding:12px 3px 17px}.hand-cards .game-card{width:116px;min-width:116px}.hand-cards .game-card.selected{transform:translateY(-7px)}.ritual-scene.finished{padding:24px 14px calc(95px + env(safe-area-inset-bottom));justify-content:flex-start}.ritual-scene.finished .ritual-rewards:not(.single){grid-template-columns:repeat(3,minmax(0,1fr));width:min(410px,100%);gap:9px}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward{aspect-ratio:.71}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-art{height:62%}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-type,.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-stats{display:flex;justify-content:space-around;font-size:9px}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-name{font-size:11px}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-info{padding:5px 3px}.ritual-honors.show{max-height:none;margin:12px auto 14px}.ritual-honor{flex-basis:145px}.ritual-action-row{width:min(430px,100%)}.ritual-action-row .btn{width:100%;min-height:48px}.page-head{padding-bottom:15px}
}@media (max-width:420px){.ritual-scene.finished .ritual-rewards:not(.single){gap:7px}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-name{font-size:10px}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward .card-type{font-size:8px}
}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.unit.summoned,.arena-impact,.lane.deploy-ready,.ritual-featured,.ritual-scene.finished .ritual-rewards{animation:none!important}
}:root{--bg:#080e16;--bg2:#0b1320;--panel:#101c2a;--ink:#eee9dd;--muted:#a8b4c1;--gold:#d8b27b;--gold2:#f4d6aa;--border:rgba(210,175,120,.18);--body:system-ui,-apple-system,"Malgun Gothic","Apple SD Gothic Neo",sans-serif;--display:Georgia,"Noto Serif CJK KR","Times New Roman",serif;--ease:cubic-bezier(.16,1,.3,1)}html,body{background:#070d16;color:#eee8db;font-size:13px}body{background-image:radial-gradient(ellipse at 68% 0%,#1e304347,transparent 50%),linear-gradient(#08101b,#080d14)}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid #f4d6a1;outline-offset:4px}.app-shell{background:transparent}.sidebar{width:218px;background:radial-gradient(ellipse at 40% -4%,#23334465,transparent 47%),linear-gradient(180deg,#0c1724,#0a1019);border-right:1px solid #ae916343;box-shadow:13px 0 48px #0005}.brand{height:100px;padding:19px 14px;gap:12px;border-bottom:1px solid #c7a27024}.brand-seal{width:41px;height:41px;font-size:20px;flex:none;background:#d6b17712;border:1px solid #b18a57;box-shadow:none}.brand-type{font:small-caps 15px/1.15 Georgia,serif;letter-spacing:.02em;color:#f3e4ca}.brand-type small{font:9px/1.4 var(--body);color:#8d9cad;letter-spacing:.15em;margin-top:8px}.sidebar-caption{margin:23px 19px 11px;font:10px Georgia,serif;letter-spacing:.22em;color:#917e65}.main-nav{padding:0 10px;gap:6px}.nav-btn{padding:11px 13px;min-height:43px;gap:12px;border-radius:7px;color:#a9b7c3;font-size:12px;letter-spacing:.018em}.nav-btn .nav-icon{font-size:17px;width:22px;color:#aa9577}.nav-btn:hover{background:#c7a8730b;color:#fff0da}.nav-btn.active{border:1px solid #b7945b66;border-left:2px solid #f5d29a;color:#f6d9ac;background:linear-gradient(90deg,#c69a5550,#956d2f08);box-shadow:inset 0 1px #ffe2b31a,0 5px 15px #0004}.nav-btn.active .nav-icon{color:#f5d4a3}.nav-btn .tag{font-size:8px;color:#d8b78c;border:1px solid #9f754747;background:#a06d3514}.sidebar-bottom{padding:15px 18px 25px}.sidebar-bottom p{color:#93a0ac}.build-tag{font-size:8px;letter-spacing:.13em;border:1px solid #a68b5e3c;color:#d9b88c}.main-shell{background:linear-gradient(90deg,#070e1724,#0f172121)}.topbar{height:65px;border-bottom:1px solid #d7ab7028;background:#0b131fcf;backdrop-filter:blur(18px);padding:0 clamp(17px,2.5vw,36px)}.top-left,.top-right{gap:10px}.crumb{font-size:11px;color:#b3b9bd;letter-spacing:.045em}.top-player{font-size:11px;color:#e6cfaa}.player-orb{background:#b28d4f1f;border:1px solid #ae8b58aa}.currency{background:#07111b;border:1px solid #a5865540;border-radius:8px;min-height:35px;font-weight:700}.currency.gold>span{color:#f2c66f}.currency.gems>span{color:#6abff2}.icon-button{width:35px;height:35px;border-radius:7px;background:#101a26;border-color:#927b593e}.view{max-width:1690px;padding:clamp(14px,2.3vw,32px);min-width:0}.eyebrow{font:10px Georgia,serif;letter-spacing:.28em;color:#d0a773}.eyebrow:before{content:"";margin:0}.section-title{font:600 clamp(26px,2.9vw,38px)/1.25 var(--display);color:#fae7c8;margin:6px 0 7px;letter-spacing:-.04em}.section-sub{font-size:12px;color:#9aa9b9;line-height:1.8}.page-head{margin-bottom:23px;padding-bottom:17px;border-bottom:1px solid #c6a47420;align-items:center}.page-head:after{width:90px;bottom:-1px;background:linear-gradient(90deg,#e3bb78,transparent)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:41px;border-radius:8px;padding:10px 18px;background:#121c29;color:#ead0a7;border:1px solid #b293645e;box-shadow:inset 0 1px #faf0dc10,0 7px 17px #0005;font-size:12px;font-weight:700;transition:filter .23s,transform .23s,box-shadow .23s}.btn.primary{color:#21190f;background:linear-gradient(145deg,#f8deb1,#d6ae71 52%,#b6884a);border-color:#f4d5a1;box-shadow:inset 0 1px 1px #fff7ed90,0 9px 22px #0007;text-shadow:none}.btn.ghost{border-color:#b0956a64;background:#0b1522ac;color:#e5d1b2}.btn.blue{border-color:#6499b884;background:linear-gradient(160deg,#234967,#112439);color:#d5efff}.btn:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-2px)}.btn:active:not(:disabled){transform:translateY(0) scale(.98)}.btn.small{min-height:33px;font-size:11px;padding:7px 13px}.panel{background:linear-gradient(145deg,#152333f0,#0b1421f8);border:1px solid #c4a4772e;border-radius:12px;box-shadow:0 13px 34px #0003,inset 0 1px #fff4e013}.panel:before,.panel:after{display:none}.tab{background:#0b1522;border:1px solid #8793a629;border-radius:7px;color:#adbbc9;padding:8px 12px;font-size:11px;transition:.2s}.tab:hover{border-color:#c9a46c7a}.tab.active{background:linear-gradient(140deg,#e1b67438,#8a632324);color:#f2d2a5;border:1px solid #d7af77a3;box-shadow:inset 0 1px #f0cda327}.progress-track{height:6px;background:#07111b;border:1px solid #3d4650;border-radius:8px}@keyframes atlasPulse{to{box-shadow:0 0 0 9px #e8b7660b,0 0 32px #f4bc73}}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b4aca0}.dot.live{background:#e0b274}.dot.done{background:#70c0a1}.dot.lock{background:#657382}.stage-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.stage-card{min-width:0;min-height:0;border:1px solid #b39c7740;border-radius:11px;overflow:hidden;background:#111d2b;box-shadow:0 9px 22px #0004;transition:transform .18s,border-color .18s}.stage-card:hover:not(:disabled){transform:translateY(-3px);border-color:#d5b17b}.stage-card.locked{filter:grayscale(.8) brightness(.77);opacity:.8}.stage-card.cleared{border-color:#597c68}.summon-aura{position:absolute;inset:16%;border-radius:50%;z-index:1;background:radial-gradient(circle,#f9c66a3b,transparent 62%);filter:blur(30px)}@keyframes theatreFloat{to{transform:translateY(-12px) rotate(2deg)}}.summon-pity{margin-top:30px;border:1px solid #baa07537;background:#091522a3;padding:13px 15px;border-radius:10px;display:grid;grid-template-columns:1fr auto;gap:8px}.summon-pity>span{letter-spacing:.21em;color:#a9b6c2;font:10px Georgia,serif}.summon-pity>strong{font:18px Georgia,serif;color:#e8c38c}.summon-pity>strong small{color:#a5a7a6;font:12px Georgia,serif}.summon-pity .progress-track{grid-column:1/-1}.summon-pity>small{grid-column:1/-1;color:#798e9d;font-size:10px}.summon-pack{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:201px;border:1px solid #b89a6c45;border-radius:13px;background:linear-gradient(150deg,#182637,#0c1522);padding:19px;box-shadow:0 10px 28px #0004}.summon-pack.special{background:linear-gradient(140deg,#1a233e,#0a1527)}.summon-pack h3{margin:9px 0 5px;font:600 20px var(--display);color:#f4dfbf}.summon-pack p{font-size:11px;min-height:0;margin:0;color:#91a5b7}.summon-pack .btn{margin-top:auto;justify-content:space-between;min-height:46px}.summon-pack .btn span{font-weight:700;font-size:12px}.collection-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px}.game-card{border-radius:9px;overflow:hidden;border:1px solid #aa926e7a;background:linear-gradient(160deg,#1d2938,#0d1420);box-shadow:0 9px 20px #0008;transition:transform .2s,filter .2s,border-color .2s;min-width:0}.game-card:hover:not(:disabled){transform:translateY(-5px);filter:brightness(1.12)}.game-card.legendary{border-color:#efc37b;box-shadow:0 7px 20px #000a,0 0 15px #db9d4430}.game-card.epic{border-color:#bc8ad9;box-shadow:0 7px 20px #000a,0 0 12px #9866cf23}.card-art{filter:saturate(1.04)}.game-card .card-rarity{letter-spacing:.12em}.card-name{line-height:1.3}.deck-slot{border-radius:8px}.battle-arena{background:radial-gradient(ellipse at 50% 55%,#3750643a,transparent 70%),linear-gradient(135deg,#0c1928,#111c29 50%,#0b1520);border-color:#af926677;box-shadow:inset 0 0 60px #030a1370,0 12px 34px #0006}.battle-arena:before{opacity:.07;background:url("../assets/battle_table.jpg") center/cover}.lane.deploy-ready{border-color:#f0ca8eaa}.hand-cards{scrollbar-color:#b79b73 #141d28}.ritual-scene{background:#050c16}.ritual-back{filter:saturate(.82)}.ritual-reward{border-radius:8px}.ritual-action-row .btn{border-radius:9px}.modal{border-radius:13px}.overlay-shade{backdrop-filter:blur(8px)}.modal-buttons .btn{min-height:42px}@media (max-width:1420px){.stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:1120px){.sidebar{width:190px}.brand-type{font-size:13px}.brand-seal{width:36px;height:36px}.sidebar .nav-btn{padding:9px 10px}.stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:900px){.sidebar{display:none}.topbar{height:58px}.view{padding:17px}.main-shell{padding-bottom:75px}.bottom-nav{border-top:1px solid #bd965f71;background:#08121dea;box-shadow:0 -16px 40px #0007;backdrop-filter:blur(22px)}.bottom-tab.active{color:#f0d2a5}.bottom-tab span{color:#b4a188}.stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:700px){.view{padding:13px}.page-head{gap:10px}.section-title{font-size:27px}.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.summon-pity{margin-top:16px}.summon-pack{min-height:0;display:grid;grid-template-columns:1fr auto;gap:6px;padding:14px 15px}.summon-pack .btn{grid-column:1/-1;min-height:43px;margin-top:4px}.summon-pack h3{font-size:19px;margin:3px 0}.summon-pack p{font-size:10px}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}@media (max-width:420px){.view{padding:10px}.topbar{padding:0 8px;gap:6px}.top-right{gap:5px}.currency{min-width:51px;padding:4px 5px;font-size:10px}.crumb{max-width:102px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-button{width:31px}.section-title{font-size:24px}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.game-card .card-name{font-size:10px}}.section-sub{max-width:720px}.deck-slot{min-height:164px;border-radius:16px;border:1px dashed #8f6c44;background:linear-gradient(180deg,#111929,#0a1019);display:flex;align-items:center;justify-content:center;color:#d0b07a;font:600 26px/1 var(--body);padding:0}.deck-picker-grid{grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:10px;margin-top:14px}@media (max-width:700px){.deck-slot{min-height:142px}.battle-lanes{gap:6px}.lane{min-height:108px}.unit{max-width:32%;min-width:0}
}@media (max-width:520px){.deck-slot{min-height:154px}
}:root{--panel-radius:18px;--soft-border:rgba(214,176,113,.28)}.view{max-width:1540px;padding:20px 28px 28px}.sidebar{width:222px;background:linear-gradient(180deg,#0f1723,#09111b 72%)}.brand{height:88px;padding:18px 14px 16px}.nav-btn{border-radius:10px;padding:12px 14px;gap:11px}.nav-btn.active{border-left:1px solid #d9ad6a;box-shadow:inset 0 0 0 1px rgba(217,173,106,.26),0 10px 30px rgba(0,0,0,.18)}.topbar{height:68px}.page-head{margin-bottom:18px}.section-title{font-size:clamp(26px,2.35vw,36px)}.section-sub{font-size:12px;line-height:1.6}.btn{border-radius:10px;padding:11px 18px}.btn.small{padding:8px 13px}.summon-pack{padding:16px;border:1px solid var(--soft-border);background:linear-gradient(180deg,#101927,#0a1019)}.summon-pack h3{font-size:30px;margin:6px 0 4px}.summon-pack p{font-size:12px;color:#bfc6d0}.summon-pack .btn{margin-top:14px}.game-card{border-radius:14px;overflow:hidden}@media (max-width:920px){.view{padding:16px 18px 22px}.sidebar{width:192px}
}@media (max-width:700px){.sidebar{width:100%}.view{padding:14px 14px 18px}.summon-pack h3{font-size:26px}
}.tutorial-skip{border:1px solid #8c795b61;border-radius:20px;background:#0b131e9c;color:#c7cbd3;font-size:11px;padding:8px 12px;cursor:pointer;white-space:nowrap}.tutorial-skip:hover{border-color:#bd925c;color:#fff1d5}.guided-tour-target{position:relative!important;z-index:1203!important;box-shadow:0 0 0 2px rgba(242,214,164,.88),0 0 0 8px rgba(242,214,164,.14),0 16px 34px rgba(0,0,0,.34)!important;animation:guidePulseFrame 1.35s ease-in-out infinite;border-radius:14px}@keyframes guidePulseFrame{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}@keyframes guidePulseDot{0%{box-shadow:0 0 0 0 rgba(239,200,120,.45)}70%{box-shadow:0 0 0 11px rgba(239,200,120,0)}100%{box-shadow:0 0 0 0 rgba(239,200,120,0)}}#guided-tour-root{position:fixed;inset:0;z-index:10000;pointer-events:none;isolation:isolate}#guided-tour-root:empty{display:none}#guided-tour-root .guided-tour-target{z-index:auto!important;transform:none!important;animation:none!important;outline:2px solid #f4d7a1;outline-offset:3px;box-shadow:0 0 0 4px #e8bb7140!important}.guided-tour-target{animation:none!important;transform:none!important;transition:none!important}.view{max-width:1540px;padding:14px 20px 18px;height:calc(100vh - 68px);overflow:hidden}@media (max-width:700px){.view{height:auto;min-height:calc(100vh - 118px);overflow:visible;padding:12px 12px 18px}}.page-head{display:none!important}.hand-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hand-cards .game-card{transform:scale(.92);transform-origin:top center;margin-bottom:-14px}@media (max-width:700px){.hand-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.hand-cards .game-card{transform:scale(.98);margin-bottom:-8px}
}:root{--bg:#060c13;--bg2:#0d1722;--panel:#101c29;--panel2:#172434;--ink:#f5eee3;--muted:#afbdcb;--gold:#d6b783;--gold2:#f4dba9;--border:rgba(196,163,105,.22);--display:Georgia,"Noto Serif KR",serif;--body:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}html{scroll-behavior:smooth;background:#060b12}body{background:#060b12;color:#eee9df;letter-spacing:-.01em}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid #eaca93;outline-offset:3px}::selection{background:#a9864d75}.app-shell{background:radial-gradient(ellipse at 64% -8%,#24405a27,transparent 45%),#060c13}.sidebar{width:210px!important;background:linear-gradient(160deg,#101d2a,#070e16 84%)!important;box-shadow:none;border-color:#b69b6820}.brand{height:83px!important;border-color:#e8cf9524;padding:15px 14px!important}.brand-seal{height:39px;width:39px;min-width:39px;font-size:18px;border-width:1px;box-shadow:inset 0 0 0 3px #1a1d22,0 0 19px #97743a14}.brand-type{font-size:15px;line-height:1.2;white-space:normal;letter-spacing:-.04em}.brand-type small{font-size:9px;letter-spacing:.11em;color:#a5b2bf}.sidebar-caption{margin:24px 22px 12px!important;letter-spacing:.23em;font-size:9px;color:#bd9b6c}.main-nav{gap:5px;padding:0 12px}.nav-btn{padding:12px 12px!important;border-radius:10px!important;font-weight:560;letter-spacing:.01em;font-size:12px;color:#aeb8c3;transition:background .2s ease,color .2s ease}.nav-btn .nav-icon{font-size:17px;width:25px;flex:0 0 25px;color:#b9a17e}.nav-btn.active{background:linear-gradient(100deg,#c7a0691f,#19283d1b)!important;border:1px solid #d6b37a76!important;border-left:2px solid #e5c28a!important;box-shadow:none!important;color:#ffe5b6}.nav-btn:hover{color:#f7e6ce;background:#d1a96614}.nav-btn .tag{display:none}.sidebar-bottom{padding:15px 18px 22px}.sidebar-motto{font-size:10px;letter-spacing:.16em}.sidebar-bottom p{font-size:10px}.build-tag{font-size:8px;color:#af9368;border-color:#6d574030}.topbar{height:62px!important;min-height:62px;position:sticky;background:#09131de8!important;border-color:#b49c6d29;padding:0 24px;box-shadow:0 5px 26px #0003}.top-left,.top-right{gap:11px}.crumb{font-size:11px;color:#b2becc;letter-spacing:0}.player-orb{height:31px;width:31px}.top-player{font-size:11px}.currency{border-radius:9px!important;background:#101b288f!important;border-color:#e3c18926;min-width:74px;min-height:34px;font-size:11px}.icon-button{width:33px;height:33px;border-radius:9px!important;background:#111b28;border-color:#bd9f703f}.main-shell{min-width:0}.view{width:100%;max-width:1530px!important;height:auto!important;min-height:calc(100dvh - 101px)!important;overflow:visible!important;padding:clamp(14px,2vw,27px)!important;display:block}.panel:before,.panel:after{display:none!important}.btn{min-height:39px;border-radius:10px!important;letter-spacing:0;box-shadow:none!important;transition:transform .18s ease,background .2s,border-color .2s!important}.btn.primary{border:1px solid #e8cca0;color:#24180c;background:linear-gradient(145deg,#f3dfbb,#d9b57b 55%,#c2985b)!important}.btn.ghost{border-color:#aa906c6b;color:#e8d2ae;background:linear-gradient(180deg,#172335c9,#0c1421eb)!important}.btn.blue{background:#244459;border-color:#7195a9;color:#dbf1fc}.btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.07)}.btn:disabled{opacity:.45}.btn.small{min-height:34px;padding:7px 13px}.eyebrow,.dc-kicker{font-family:var(--body);font-size:10px;font-weight:700;letter-spacing:.23em;color:#caa976;text-transform:uppercase}.eyebrow:before{display:none}.section-title{color:#f7e1bd}.dc-section-marker{display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 10px var(--body);letter-spacing:.2em;color:#b69b77;margin:3px 0 14px;text-transform:uppercase}.dc-section-marker span:first-child{display:flex;align-items:center;gap:12px;flex:1}.dc-section-marker span:first-child:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#b18a5a51,transparent)}.dc-section-marker span:last-child{font-size:9px;color:#66788e}.dc-quests-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.dc-quests-head h3{font:700 20px var(--display);color:#f5dab0;margin:3px 0}.dc-record-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dc-record-stats>div{background:linear-gradient(160deg,#18293a,#0b1521);border:1px solid #bca07238;border-radius:14px;padding:17px 21px;display:flex;justify-content:space-between;align-items:center}.dc-record-stats span{font-size:12px;color:#b6c0cc}.dc-record-stats strong{font:700 28px var(--display);color:#f0d3a8}.dc-record-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr);gap:14px}.dc-record-list .history-row{border-bottom:1px solid #a78b6133;padding:11px 0;display:flex;gap:10px;align-items:center}.dc-record-list .history-row .date{margin-left:auto}.dc-empty{padding:70px 10px;text-align:center;color:#9faebf;font-size:13px}.dc-rank{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.dc-rank-symbol{display:grid;place-items:center;height:100px;width:100px;border:1px solid #c9a56a50;border-radius:50%;filter:blur(1px);font:700 64px var(--display);color:#d6b67f}.dc-rank h3{font:700 20px var(--display);color:#f3d2a0;margin:4px 0 0}.dc-rank p{font-size:12px;color:#aeb9c4;margin:0 0 13px}.overlay-root{z-index:600!important}.modal{border-radius:18px!important;max-height:min(90vh,780px);overflow-y:auto!important}#guided-tour-root{position:relative;z-index:800!important}.guided-tour-target{animation:none!important;transform:none!important}.ritual-scene{max-height:100dvh;overflow:auto!important}@media (max-width:1200px){.sidebar{width:186px!important}.topbar{padding:0 15px}
}@media (max-width:800px){.sidebar{display:none!important}.main-shell{width:100%;min-height:100dvh;padding-bottom:58px}.topbar{height:54px!important;min-height:54px;padding:0 12px!important;z-index:22}.topbar .top-player{display:none}.currency{min-width:66px;min-height:30px;padding:4px 8px;font-size:10px}.top-right{gap:6px}.icon-button{width:31px;height:31px}.mobile-brand{display:inline-block}.bottom-nav{display:flex!important;position:fixed;bottom:0;left:0;right:0;height:57px;background:#0d1722ef!important;backdrop-filter:blur(16px);z-index:50;border-top:1px solid #c2a67531;justify-content:space-around}.bottom-tab{min-width:0!important;flex:1;font-size:9px}.view{padding:12px!important;min-height:calc(100dvh - 115px)!important}
}@media (max-width:600px){.dc-section-marker{margin-bottom:9px;font-size:9px}.dc-record-stats{gap:6px}.dc-record-stats>div{padding:12px;flex-direction:column;align-items:start;gap:3px}.dc-record-stats strong{font-size:22px}
}@media (max-width:359px){.currency{min-width:58px;padding:3px 5px}.top-left{gap:6px}.crumb{font-size:10px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}#guided-tour-root{position:fixed;inset:0;z-index:10000;pointer-events:none;isolation:isolate}#guided-tour-root:empty{display:none}#guided-tour-root .tour-stage{position:fixed;inset:0;pointer-events:none}#guided-tour-root .tour-halo{position:fixed;z-index:0;border:2px solid #f5d49d;border-radius:14px;box-shadow:0 0 0 9999px #02060dbd,0 0 0 5px #f1cb8e30,0 0 32px #e0b5726b;pointer-events:none}#guided-tour-root .tour-pointer{position:fixed;z-index:1;padding:7px 11px;border:1px solid #f2d7a4;border-radius:100px;background:linear-gradient(180deg,#f4dfbd,#cda26b);color:#241a0c;font-size:11px;font-weight:800;letter-spacing:.01em;white-space:nowrap;pointer-events:none;box-shadow:0 10px 24px #0009;animation:tourNudge 1.8s ease-in-out infinite}#guided-tour-root .tour-panel{position:fixed;z-index:2;padding:17px 19px 16px;border:1px solid #bfa07898;border-radius:18px;background:linear-gradient(155deg,#162233fa,#080e18fa);box-shadow:0 22px 54px #000b;color:#e6edf6;pointer-events:none;max-height:calc(100dvh - 20px);overflow:visible}#guided-tour-root .tour-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px}#guided-tour-root .tour-panel-top span{font-size:10px;letter-spacing:.23em;color:#e6bd82;font-weight:700}#guided-tour-root .tour-panel-top button{pointer-events:auto;background:#ffffff10;border:1px solid #ffffff30;color:#dce5ef;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:11px}#guided-tour-root .tour-progress{display:flex;align-items:center;gap:7px;margin:10px 0}#guided-tour-root .tour-progress strong{color:#f3d4a6;font:700 21px Georgia,serif}#guided-tour-root .tour-progress small{color:#95a4b4}#guided-tour-root .tour-progress-track{flex:1;display:flex;gap:4px;margin-left:7px}#guided-tour-root .tour-progress-track i{height:3px;flex:1;border-radius:3px;background:#425269}#guided-tour-root .tour-progress-track i.on{background:#e2bd82}#guided-tour-root .tour-panel h3{margin:0 0 6px;font-size:21px;font-weight:750;letter-spacing:-.025em;color:#f9e7c9}#guided-tour-root .tour-panel p{margin:0;font-size:12px;line-height:1.65;color:#d2dbe7}#guided-tour-root .tour-panel-foot{margin-top:9px;padding-top:9px;border-top:1px solid #ffffff1a;color:#dbb886;font-size:11px}#guided-tour-root .guided-tour-target{outline:2px solid #f4d4a5!important;outline-offset:3px;animation:none!important;transform:none!important;transition:none!important}#guided-tour-root .tour-battle-ribbon{position:fixed;top:76px;right:18px;display:flex;align-items:center;gap:10px;max-width:min(680px,calc(100vw - 36px));padding:10px 13px;border:1px solid #b89b6b82;border-radius:12px;background:#0d1724f5;box-shadow:0 18px 35px #0009;color:#cfd9e5;font-size:12px;pointer-events:none}#guided-tour-root .tour-battle-label{color:#f1cf9d;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.1em}#guided-tour-root .tour-battle-ribbon button,#guided-tour-root .tour-wait button{pointer-events:auto;background:#ffffff10;border:1px solid #ffffff32;color:#e6edf7;padding:5px 9px;border-radius:7px;cursor:pointer;white-space:nowrap}#guided-tour-root .tour-wait{position:fixed;right:16px;bottom:16px;display:flex;align-items:center;gap:14px;background:#101c29f2;border:1px solid #ac895bb3;border-radius:12px;padding:9px 12px;font-size:12px;color:#d9c9ad;box-shadow:0 14px 28px #0008;pointer-events:none}@keyframes tourNudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}@media (max-width:700px){#guided-tour-root .tour-panel{padding:12px 14px;max-height:214px;overflow:auto}#guided-tour-root .tour-panel h3{font-size:19px}#guided-tour-root .tour-panel p{font-size:11px;line-height:1.55}#guided-tour-root .tour-panel-foot{font-size:10px}#guided-tour-root .tour-panel-top span{font-size:9px}#guided-tour-root .tour-pointer{font-size:10px;padding:5px 8px}#guided-tour-root .tour-battle-ribbon{left:10px;right:10px;top:64px;bottom:auto;padding:8px 10px;font-size:10px;max-width:none}#guided-tour-root .tour-battle-label{font-size:9px}
}@media (prefers-reduced-motion:reduce){#guided-tour-root .tour-pointer{animation:none}}:root{--ca-gold:#e9ca94;--ca-gold-edge:rgba(233,202,148,.36);--ca-panel:#0b1420}#hd-opening-root:empty{display:none}#hd-opening-root{position:fixed;inset:0;z-index:30000;isolation:isolate}.hd-opening{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#050a10;color:#f4e7d0;font-family:inherit}@keyframes caBladeA{0%{opacity:0;transform:translate(-10%,-30px) rotate(-16deg)}30%{opacity:.5}100%{opacity:.15;transform:translate(9%,5px) rotate(-16deg)}}@keyframes caBladeB{0%{opacity:0;transform:translate(10%,30px) rotate(18deg)}40%{opacity:.45}100%{opacity:.12;transform:translate(-6%,-2px) rotate(18deg)}}@keyframes caHalo{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes caLight{0%{opacity:0;transform:translateX(-220px) rotate(-15deg)}35%{opacity:.8}100%{opacity:0;transform:translateX(220px) rotate(-15deg)}}@keyframes caOutro{from{opacity:1;filter:blur(0)}to{opacity:0;filter:blur(13px)}}@keyframes caLand{0%{filter:brightness(2.4);transform:translateY(-10px) rotateX(-25deg) scale(1.12)}55%{filter:brightness(1.55);transform:translateY(2px) rotateX(9deg) scale(.94)}100%{filter:brightness(1);transform:translateY(0) rotateX(0) scale(1)}}@keyframes caEnemy{0%{filter:brightness(2.2) saturate(1.6);transform:translateY(-6px)}100%{filter:brightness(1);transform:none}}@keyframes caArena{0%,100%{filter:brightness(1)}30%{filter:brightness(1.23)}70%{filter:brightness(.98)}}@keyframes caFace{from{transform:rotateY(-20deg)}to{transform:rotateY(360deg)}}@keyframes caRing{from{opacity:1;transform:scale(.1)}to{opacity:0;transform:scale(8)}}@media (max-width:700px){
}@media (prefers-reduced-motion:reduce){.hd-opening *, .hd-opening *:before,.hd-opening *:after{animation:none!important;transition:none!important}
}:root{--battle-glow:#ecd1a2}.hd-terrain-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0}.hd-terrain-guide>div{padding:14px;border-radius:13px;border:1px solid #d6b07855;background:linear-gradient(180deg,#1b2738,#0d1522);color:#e4d7c6}.hd-terrain-guide strong{font-size:13px;color:#ffdfab}.hd-terrain-guide p{font-size:12px;color:#bfc6cd;line-height:1.5;margin:10px 0 0}@keyframes hdHitFloat{0%{opacity:0;transform:translate(-50%,0) scale(.72)}18%{opacity:1;transform:translate(-50%,-22%) scale(1.06)}100%{opacity:0;transform:translate(-50%,-145%) scale(.92)}}@keyframes hdStrikePulse{0%{filter:brightness(1)}30%{filter:brightness(1.5) saturate(1.35)}100%{filter:brightness(1)}}@media (max-width:700px){.hd-terrain-guide{grid-template-columns:1fr;gap:7px;margin:12px 0}.hd-terrain-guide>div{padding:10px 12px}.hd-terrain-guide p{margin:4px 0 0}
}@media (prefers-reduced-motion:reduce){}.hd-legend-award{width:155px;max-width:70%;margin:10px auto 15px}.hd-legend-award .game-card{width:100%}:root{--v90-ivory:#f7e8ce;--v90-gold:#e4bd82;--v90-muted:#adb8c5;--v90-glass:#101925d6;--v90-line:#debc8460}html,body{height:100%;overflow:hidden!important;background:#070a10}body{font-family:"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;letter-spacing:-.016em}.app-shell{height:100dvh;min-height:0!important;max-height:100dvh;overflow:hidden;background:#070c14}.sidebar{width:190px!important;height:100dvh!important;min-height:0;position:relative!important;flex:none;z-index:12;background:linear-gradient(180deg,#0c121beF,#060b12f8),url("../assets/lobby_panorama.webp") left center / auto 100% no-repeat!important;border-right:1px solid #b8915750;box-shadow:9px 0 40px #0007}.sidebar:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#080d14e8,transparent)}.sidebar:after{display:none!important}.sidebar .brand{height:99px;padding:23px 14px 19px;gap:9px;position:relative;z-index:1;border-bottom:1px solid #c6a16a37}.brand-seal{width:35px;height:35px;flex:none;font-size:16px;box-shadow:0 0 19px #d4a65e34}.brand-seal:after{inset:-4px}.brand-type{font-size:12px;letter-spacing:.025em;line-height:1.22}.brand-type small{font-size:8px;letter-spacing:.02em;opacity:.77;margin-top:4px}.sidebar-caption{font:9px/1.2 Georgia,serif;letter-spacing:.27em;color:#af9978;margin:29px 19px 11px;z-index:1;position:relative}.main-nav{padding:0 10px;gap:5px;z-index:1;position:relative}.nav-btn{height:49px;border-radius:4px;padding:8px 11px;color:#c3c6ca;font-weight:600;font-size:12px;letter-spacing:.06em;transition:.24s}.nav-btn .nav-icon{font-family:Georgia,serif;font-size:20px;color:#a99a7d;width:24px}.nav-btn.active{color:#ffe5b7;border:1px solid #d8b17759!important;border-left:2px solid #eaca89!important;background:linear-gradient(90deg,#c397504b,#14213347)!important}.nav-btn:hover{color:#fff1d9}.sidebar-bottom{margin-top:auto;position:relative;z-index:1;padding:18px 17px 30px}.sidebar-bottom .sidebar-motto{font-size:10px;letter-spacing:.13em;color:#a89980}.sidebar-bottom .build-tag{display:block;width:max-content;margin-top:10px;border:0;padding:0;color:#807d77}.main-shell{min-width:0;height:100dvh;min-height:0;flex:1;display:flex;flex-direction:column;background:#09111b}.topbar{height:61px!important;min-height:61px;flex-shrink:0;background:linear-gradient(90deg,#09111bfa,#101a25f7)!important;border-bottom:1px solid #bc99644a;padding:0 clamp(15px,2.1vw,30px)!important;position:relative;z-index:4}.crumb{font-size:12px;font-weight:600;color:#e3cda9;letter-spacing:.035em}.player-orb{border-radius:50%}.top-player{font-size:11px}.currency{background:transparent;border:0;border-left:1px solid #b2915844;border-radius:0;min-height:30px;padding:2px 10px;font-size:12px}.currency.gold>span{color:#eac17f}.currency.gems>span{color:#95cef5}.topbar .settings-button{background:none;border-color:#b69c7152;color:#edd1a7}.mobile-brand{font-family:Georgia,serif;color:#e9c992}.view{padding:0!important;max-width:none!important;width:100%;height:calc(100dvh - 61px);min-height:0;overflow:hidden!important;flex:1;position:relative;contain:layout}.bottom-nav{display:none}.v90-screen{position:relative;isolation:isolate;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;display:flex;flex-direction:column;color:var(--v90-ivory);background:#080f1a}.v90-screen:before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background-image:linear-gradient(90deg,#07101df5,#06111ba5 45%,#06101aae),var(--screen-art);background-size:cover;background-position:center;filter:saturate(.85)}.v90-screen .v90-ambient{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 66% 52%,#dfb26a12,transparent 45%),linear-gradient(0deg,#050911df,transparent 28%),linear-gradient(90deg,#060b138c,transparent 57%)}.v90-screen:after{content:"";position:absolute;inset:12px;z-index:0;border:1px solid #c3a07816;pointer-events:none}.v90-screen button{font-family:inherit}.v90-kicker{display:inline-flex;align-items:center;gap:12px;font:700 10px/1.1 Georgia,serif;letter-spacing:.31em;color:#dfbc86;white-space:nowrap}.v90-kicker i{width:18px;height:1px;background:#d5a96a;opacity:.7}.v90-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-width:146px;height:51px;padding:0 24px;border:1px solid #d7b57f8c;background:#121b28e9;color:#f3dcc0;border-radius:2px;font-weight:700;font-size:13px;white-space:nowrap;letter-spacing:.025em;box-shadow:0 12px 35px #0008;transition:transform .22s,filter .22s,border-color .22s}.v90-button.gold{background:linear-gradient(137deg,#f5dfb6,#c69a5d);border-color:#ffdda9;color:#151515;box-shadow:inset 0 1px #fff9e77b,0 12px 35px #0009}.v90-button.glass{background:#0d1926bc;color:#f3d8b0;border-color:#c3a16e86;backdrop-filter:blur(14px)}.v90-button b{font-size:20px;font-weight:400;line-height:0}.v90-button:hover:not(:disabled){transform:translateY(-3px);filter:brightness(1.1)}.v90-panel-head{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:clamp(16px,3vh,30px) clamp(22px,3.8vw,62px) 11px}.v90-panel-head h1{font-size:clamp(27px,3vw,41px);font-weight:600;letter-spacing:-.065em;margin:9px 0 0;line-height:1.2;color:#f6e2c1}.v90-panel-head h1 small{font-size:12px;vertical-align:middle;color:#c1ab8b;letter-spacing:0;margin-left:7px}.v90-text-link{background:none;border:0;color:#e8c997;font-size:12px}.v90-home:before{background-image:linear-gradient(90deg,#050a12f8 0%,#06101ddc 26%,#07132463 62%,#070d1855),linear-gradient(0deg,#050812 0%,transparent 45%),var(--screen-art);background-position:center center}.v90-campaign:before{background-image:linear-gradient(90deg,#080e19f6,#08111fda 45%,#07101ce2),var(--screen-art);background-position:center 32%}.v90-summon:before{background-image:linear-gradient(90deg,#060b16f8,#0b1320d1 31%,#09121eb7 68%,#070d19e4),var(--screen-art);background-position:center}.v90-library:before{background-image:linear-gradient(0deg,#060d18f3,#0a1420ed),var(--screen-art)}.v90-filterbar{z-index:2;position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px clamp(22px,3.8vw,62px) 16px;flex-wrap:wrap}.v90-filterbar>div{display:flex;gap:6px}.v90-filterbar button{min-width:42px;background:#0a1522;border:1px solid #bba1743e;color:#b5b6b8;border-radius:30px;padding:7px 11px;font-size:11px}.v90-filterbar button.selected{background:#d6b27d;color:#20190f;border-color:#e3c591;font-weight:700}.v90-library-scroll{z-index:2;min-height:0;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:0 clamp(22px,3.8vw,62px) 8px}.v90-library-cards{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-columns:clamp(106px,10vw,160px);align-content:stretch;gap:11px;width:max-content;height:100%}.v90-library-cards .game-card{width:100%;height:100%;min-height:0;max-height:100%;aspect-ratio:auto}.v90-library-foot{position:relative;z-index:2;display:flex;justify-content:space-between;padding:8px clamp(22px,3.8vw,62px) 21px;color:#a4a8ac;font-size:11px}.v90-library-foot span{color:#d1b186}.v90-empty{display:grid;place-items:center;height:100%;color:#c1c5ca}.v90-empty button{background:none;border:0;color:#ecc18a}.v90-deck:before{background-image:linear-gradient(90deg,#060d16f6,#071321ea),var(--screen-art)}.v90-button.compact{min-width:0;height:39px;font-size:11px;padding:0 17px}.v90-deck-cards{height:100%;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:9px}.v90-deck-slot{min-height:0;min-width:0;position:relative}.v90-deck-slot .game-card{width:100%;height:100%;min-width:0;max-width:100%}.v90-slot-empty{border:1px dashed #bca07969;background:#0e1a27b6;color:#c7a875;font-size:38px;display:grid;place-items:center}.v90-screen .game-card{position:relative;padding:0!important;border:1px solid #c5a36a87!important;border-radius:5px!important;overflow:hidden!important;box-shadow:0 5px 18px #0009!important;background:#07111b!important;display:block!important;transition:transform .2s,filter .2s,border-color .2s;min-height:0!important;transform:none!important}.v90-screen .game-card.epic{border-color:#a59ce8a8!important}.v90-screen .game-card.legendary{border-color:#f4c870!important;box-shadow:0 0 16px #f3b76324!important}.v90-screen .game-card:hover{transform:translateY(-2px)!important;filter:brightness(1.08)}.v90-screen .game-card .card-art{height:100%!important;position:absolute!important;inset:0;display:block;background-position:center 23%;background-size:cover;border:0!important}.v90-screen .game-card .card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#050a10 0%,#07101ce8 17%,transparent 62%)}.v90-screen .game-card .card-art-icon{display:none}.v90-screen .game-card .card-info{position:absolute!important;left:0;right:0;bottom:0;display:flex!important;flex-direction:column;align-items:stretch;gap:2px;height:auto!important;min-height:0!important;padding:8px 5px 7px!important;border:0!important;background:none!important;box-shadow:none!important;text-align:center;z-index:2}.v90-screen .game-card .card-name{font-size:clamp(10px,.9vw,13px)!important;font-weight:750;line-height:1.3;color:#fff4df;text-shadow:0 2px 6px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v90-screen .game-card .card-type,.v90-screen .game-card .card-level,.v90-screen .game-card .owned-count,.v90-screen .game-card .card-rarity{display:none!important}.v90-screen .game-card .card-stats{display:flex!important;align-items:center;justify-content:center;gap:10px!important;padding:2px 0 0!important;background:none!important;border:0!important;color:#f5d9ab;font-size:10px!important}.v90-screen .game-card .card-cost{position:absolute;z-index:3;top:4px;left:4px;width:24px!important;height:24px!important;display:grid!important;place-items:center;background:linear-gradient(140deg,#f1d9a2,#b98e51)!important;color:#21180d;border:1px solid #fff0cd8a;border-radius:50%;font:800 12px/1 Georgia,serif!important}.v90-rewards:before{background-image:linear-gradient(90deg,#09121df9,#0b1828f2),var(--screen-art)}.v90-mission{background:#0b1625a8;border:1px solid #aa8f6550;padding:clamp(10px,1.4vw,17px);min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center}.v90-mission-bar{height:3px;background:#313843;margin:10px 0}.v90-mission-bar i{display:block;height:100%;background:linear-gradient(90deg,#a98350,#f5d199)}.v90-battle:before{background-image:linear-gradient(0deg,#050a10e9,#081524a5 45%,#06101ddb),var(--screen-art);background-position:center center}.v90-battle-hero{display:flex;align-items:center;gap:12px;min-width:0}.v90-battle-hero img{width:55px;height:64px;object-fit:cover;object-position:center 24%;border:1px solid #a9816577}.v90-battle-hero>div{width:min(100%,250px);min-width:0;display:flex;flex-direction:column;gap:3px}.v90-battle-hero span{font:9px Georgia,serif;color:#c7ab83;letter-spacing:.22em}.v90-battle-hero strong{font-size:13px;color:#ffe1b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v90-battle-hero small{font-size:10px;color:#c8bdac}.v90-battle-hero.player{flex-direction:row-reverse;text-align:right}.v90-field-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(7px,2vw,20px);align-items:center;max-width:840px;margin-inline:auto;width:100%;flex:1;min-height:0;position:relative;z-index:2}.v90-field-side .v90-field-column{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:3px}.v90-field-side.enemy-side{padding-top:3px}.v90-field-side.ally-side{padding-bottom:2px}.v90-field-card.unit{height:min(100%,160px)!important;width:clamp(39px,5.5vw,89px)!important;min-width:0!important;flex:none;background:#091523!important;border:1px solid #c6a678b0!important;border-radius:5px!important;padding:0!important;display:block!important;position:relative!important;box-shadow:0 8px 15px #0009,0 0 0 1px #f6d8aa16!important;overflow:hidden}.v90-field-card.enemy-unit{border-color:#c98b7db9!important}.v90-field-card .v90-field-art{display:block;position:absolute;inset:0;background-size:cover;background-position:50% 20%}.v90-field-card .v90-field-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#050a12f7,transparent 56%)}.v90-field-card .v90-field-name{position:absolute;bottom:22px;left:0;right:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:#ffead2;font-size:clamp(7px,.7vw,10px);font-weight:700;padding:0 2px}.v90-field-card .v90-field-stats{position:absolute;bottom:3px;left:3px;right:3px;display:flex;justify-content:space-between;gap:2px}.v90-field-card .v90-field-stats b{font-size:11px;color:#fbdbac;text-shadow:0 2px 6px black}.v90-field-card .v90-field-stats b:last-child{color:#c7eccc}.v90-hand-cards{height:100%;min-height:0;width:100%;overflow-x:auto;overflow-y:hidden;display:flex;align-items:stretch;justify-content:center;gap:7px;scrollbar-width:thin;padding:0 2px 2px}.v90-hand-cards .game-card{height:100%;min-height:0!important;width:clamp(84px,9vw,117px)!important;min-width:clamp(84px,9vw,117px)!important;max-height:none!important;flex-shrink:0;aspect-ratio:auto}.v90-hand-cards .game-card.selected{transform:translateY(-5px)!important;border:2px solid #ffdb96!important;box-shadow:0 0 22px #d9aa5c8c!important}.v90-hand-cards .game-card .card-name{font-size:11px!important}.v90-hand-cards .game-card .card-stats{font-size:10px!important}.overlay-shade{z-index:210!important;backdrop-filter:blur(14px)}.modal{border-radius:4px!important;box-shadow:0 28px 88px #000d!important}.v90-settings{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 9px 3px}.v90-settings h2{font:600 31px Georgia,"Noto Serif KR",serif;color:#ffe3b8;margin:11px 0 2px}.v90-settings p{color:#aab6c1;font-size:12px;margin:5px 0 19px}.v90-settings-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;margin-bottom:15px}.v90-settings-options button{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;background:#101d2b;border:1px solid #bba06e6c;color:#f0dbbb;padding:18px 10px;border-radius:3px}.v90-settings-options button>span{font:28px Georgia,serif;color:#e2bd82}.v90-settings-options strong{font-size:12px}.v90-settings-options b{display:none}.v90-settings-danger{border:0;background:none;color:#bb9b96;font-size:11px;padding:10px}.v90-settings>small{font-size:9px;letter-spacing:.16em;color:#817d7d;margin:16px 0 0}.ritual-shade{backdrop-filter:blur(12px)!important}.ritual-stage-text{font-size:12px!important;letter-spacing:.12em}.ritual-rewards .game-card .card-name{white-space:nowrap}.ritual-rewards .ritual-reward{min-width:0}.ritual-action-row .btn{border-radius:3px}#hd-opening-root{position:fixed;inset:0;z-index:9999;pointer-events:none}.v90-opening{position:absolute!important;inset:0!important;pointer-events:auto;display:grid;place-items:center;overflow:hidden;background:#03060b;perspective:1100px}.v90-opening-exit{animation:v90OpeningFade 1.3s linear both}@keyframes v90OpeningFade{0%,65%{opacity:1}100%{opacity:0}}@keyframes v90OpenZoom{from{transform:scale(1.14)}to{transform:scale(1)}}@keyframes v90Turn{to{transform:rotate(360deg)}}@keyframes v90Float{to{transform:translateY(-13px) rotate(-5deg)}}@keyframes v90Target{50%{box-shadow:inset 0 0 45px #e4b57523}}@media (max-height:760px) and (min-width:901px){.v90-battle-hero img{width:42px;height:52px}.v90-field-card.unit{max-height:115px}}@media (max-width:900px){.sidebar{display:none!important}.main-shell{padding-bottom:0!important}.topbar{height:53px!important;min-height:53px;padding:0 13px!important}.view{height:calc(100dvh - 53px - 58px)}.bottom-nav{position:relative!important;z-index:40;display:flex!important;height:58px;min-height:58px;width:100%;flex:none;bottom:auto;border-top:1px solid #c29d684c;background:#091321fa!important;backdrop-filter:blur(18px);padding-bottom:0;box-shadow:0 -12px 30px #0009}.app-shell{display:flex;flex-direction:column}.main-shell{height:calc(100dvh - 58px)}.bottom-tab{height:57px!important;min-height:0!important;padding:5px 0;font-size:10px;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:1;color:#a5a8ae}.bottom-tab span{font-size:19px;line-height:1.1}.bottom-tab.active{color:#f0cc92}.view .v90-screen{height:100%}.top-player{display:none}.v90-panel-head{padding:17px 4vw 8px}.v90-library-scroll,.v90-filterbar{padding-left:4vw;padding-right:4vw}
}@media (max-width:650px){.topbar{height:47px!important;min-height:47px}.view{height:calc(100dvh - 47px - 57px)}.main-shell{height:calc(100dvh - 57px)}.topbar .settings-button{height:31px;width:31px}.top-right{gap:2px}.currency{font-size:11px;padding:0 5px;border:0}.crumb{font-size:10px}.mobile-brand{font-size:16px}.v90-screen:after{inset:6px}.v90-kicker{font-size:8px;letter-spacing:.2em}.v90-home:before{background-image:linear-gradient(90deg,#060d19e9,#071323b3 70%,#07132392),linear-gradient(0deg,#050a13df,transparent 52%),var(--screen-art);background-position:61% center}.v90-button{height:43px;min-width:0;padding:0 15px;font-size:11px;gap:10px}.v90-button b{font-size:16px}.v90-campaign:before{background-image:linear-gradient(0deg,#080e19fa,#07101cdb),var(--screen-art)}.v90-summon:before{background-image:linear-gradient(0deg,#060b13fb,#091220c7 66%,#080d19c9),var(--screen-art)}.v90-panel-head{padding:16px 16px 7px;gap:6px}.v90-panel-head h1{font-size:25px;margin-top:6px}.v90-panel-head h1 small{font-size:10px}.v90-filterbar{flex-wrap:nowrap;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:3px 15px 9px}.v90-filterbar>div{display:flex;gap:4px;max-width:100%}.v90-filterbar button{min-width:0;font-size:10px;padding:5px 9px}.v90-library-scroll{padding:0 15px}.v90-library-cards{grid-auto-columns:clamp(103px,28vw,137px);gap:7px}.v90-library-foot{font-size:9px;padding:8px 15px 15px}.v90-library-foot span{display:none}.v90-button.compact{height:31px;padding:0 9px;font-size:9px;gap:5px}.v90-deck-cards{gap:5px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.v90-screen .game-card .card-name{font-size:10px!important}.v90-screen .game-card .card-stats{font-size:9px!important}.v90-screen .game-card .card-cost{width:20px!important;height:20px!important;font-size:10px!important}.v90-mission{padding:6px 9px}.v90-mission-bar{margin:4px 0}.v90-battle-hero{gap:5px}.v90-battle-hero img{width:29px;height:40px}.v90-battle-hero>div{gap:1px}.v90-battle-hero span{font-size:7px}.v90-battle-hero strong{font-size:10px}.v90-battle-hero small{font-size:8px}.v90-field-side{gap:5px}.v90-field-card.unit{width:clamp(26px,8.7vw,55px)!important;height:100%!important;max-height:100px}.v90-field-name{display:none!important}.v90-field-stats{bottom:2px!important}.v90-field-stats b{font-size:9px!important}.v90-hand-cards{justify-content:flex-start;gap:5px}.v90-hand-cards .game-card{width:clamp(74px,20vw,101px)!important;min-width:clamp(74px,20vw,101px)!important}.v90-hand-cards .game-card .card-name{font-size:9px!important}.v90-settings-options{gap:5px}.v90-settings-options button{padding:11px 3px}.v90-settings-options strong{font-size:10px}
}@media (max-height:675px) and (max-width:650px){.v90-battle-hero img{height:34px}}@media (prefers-reduced-motion:reduce){.v90-opening *,.v90-screen *{animation:none!important;scroll-behavior:auto!important}.v90-opening-exit{opacity:0}}.ritual-shade{overflow:hidden!important}.ritual-scene,.ritual-scene.finished{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;justify-content:center!important;padding:clamp(10px,2vh,20px) 12px!important}.ritual-scene.finished .ritual-stage-text{margin:4px auto 9px!important}.ritual-scene.finished .ritual-action-row{margin:10px auto 3px!important;flex:none}.ritual-scene.finished .ritual-hint{margin:0 auto!important;font-size:9px}@media (max-width:700px){.ritual-scene.finished .ritual-rewards:not(.single){grid-template-columns:repeat(5,minmax(0,1fr))!important;width:min(460px,100%)!important;gap:5px!important;flex:none}.ritual-scene.finished .ritual-rewards:not(.single) .ritual-reward{min-width:0;aspect-ratio:.7!important}.ritual-scene.finished .ritual-rewards:not(.single) .card-info{padding:2px!important}.ritual-scene.finished .ritual-rewards:not(.single) .card-name{font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ritual-scene.finished .ritual-rewards:not(.single) .card-stats,.ritual-scene.finished .ritual-rewards:not(.single) .card-type,.ritual-scene.finished .ritual-rewards:not(.single) .card-rarity{display:none!important}.ritual-scene.finished .ritual-action-row{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;width:100%;max-width:460px}.ritual-scene.finished .ritual-action-row .btn{min-width:0!important;flex:1!important;width:auto!important;min-height:38px!important;padding:5px!important;font-size:10px!important}.ritual-scene.finished .ritual-action-row .ritual-redraw{min-width:0!important}
}:root{--v91-night:#050a11;--v91-navy:#09121b;--v91-panel:rgba(6,13,21,.87);--v91-line:rgba(212,170,101,.39);--v91-gold:#d8aa65;--v91-gold-light:#f7d9a0;--v91-ivory:#f4e9d8;--v91-muted:#aeb9c4}body{font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;background:var(--v91-night)!important;color:var(--v91-ivory)}::selection{background:#a78147;color:#fff}button{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid #f8d58f!important;outline-offset:3px}.app-shell{background:var(--v91-night)!important}.sidebar{width:88px!important;background:#050a11!important;border-right:1px solid rgba(213,177,109,.37)!important;box-shadow:none!important}.sidebar:before{display:none!important}.sidebar .brand{height:86px;display:flex;justify-content:center;align-items:center;padding:15px 10px!important;border-bottom:1px solid #be965533}.sidebar .brand-seal{height:52px;width:52px;border:1px solid #e2bb7a!important;background:linear-gradient(155deg,#182022,#0b1119)!important;border-radius:12px!important;display:grid;place-items:center;color:#f0ce8d;font:25px/1 Georgia,"Noto Serif KR",serif!important;box-shadow:0 4px 17px #000b}.sidebar .brand-seal:after{display:none}.sidebar .brand-type,.sidebar .sidebar-caption,.sidebar .sidebar-motto,.sidebar .sidebar-rule{display:none!important}.sidebar .main-nav{display:flex;flex-direction:column;gap:8px;margin-top:12vh;padding:0 8px!important}.sidebar .nav-btn{height:67px!important;width:72px!important;margin:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 5px!important;border:1px solid transparent!important;background:transparent!important;color:#9ca8b3!important;font-size:12px!important;font-weight:500!important;line-height:1.2;border-radius:9px!important;position:relative}.sidebar .nav-btn .nav-icon{font-size:25px!important;color:#8595a2!important;width:auto;line-height:1.1}.sidebar .nav-btn.active{color:#ffe4b5!important;background:linear-gradient(145deg,#a4783580,#5c452650)!important;border-color:#e2bc7975!important}.sidebar .nav-btn.active:before{content:"";position:absolute;left:-9px;height:28px;top:20px;width:3px;border-radius:4px;background:#f8c679;box-shadow:0 0 13px #ffda77}.sidebar .nav-btn.active .nav-icon{color:#ffe0a6!important}.sidebar .nav-btn:hover:not(.active){border-color:#baa16c5a!important;background:#ffffff09!important;color:#fff!important}.sidebar .sidebar-bottom{padding:0 8px 22px;text-align:center}.sidebar .build-tag{margin:auto!important;font:9px Georgia,serif!important;letter-spacing:.07em;color:#918374!important}.main-shell{background:#060b12!important}.topbar{height:67px!important;min-height:67px!important;padding:0 clamp(18px,3vw,49px)!important;background:rgba(5,10,16,.97)!important;box-shadow:0 2px 14px #0004!important}.crumb{font-size:13px!important;color:#dfb976!important;letter-spacing:.07em!important;font-weight:500!important}.top-right{gap:15px!important}.top-player{border-right:1px solid #a8844c55;padding-right:17px;color:#b7c0c9}.player-orb{border-color:#ad8c5980;background:linear-gradient(145deg,#a37d3b55,#0a141e)!important}.top-player small{color:#d5b177!important}.currency{font-size:15px!important;color:#ead4ad!important;border:0!important;min-width:92px;white-space:nowrap}.currency strong{font-family:Georgia,"Noto Serif KR",serif;font-size:18px!important;font-weight:400!important}.currency.gold>span{color:#e1ae51!important}.currency.gems>span{color:#9bced2!important}.topbar .settings-button{width:39px;height:39px;border-radius:9px!important;border:1px solid #b49a6b5e!important;color:#e2d3bd!important}.view{height:calc(100dvh - 67px)!important;overflow:hidden!important}.v90-screen{color:var(--v91-ivory)!important;background:#07111b!important}.v90-screen:before{filter:saturate(.95) contrast(1.07)}.v90-screen:after{inset:0!important;border-color:#b99b6414!important}.v90-kicker{font-size:12px!important;letter-spacing:.17em!important;color:#e2b979!important;font-family:Georgia,"Noto Serif KR",serif!important}.v90-button{height:54px;border-radius:8px!important;padding:0 23px!important;font-size:14px!important;letter-spacing:.02em!important;box-shadow:0 15px 24px #0006!important;transition:transform .2s,box-shadow .2s,background .2s}.v90-button.gold{background:linear-gradient(125deg,#e4c087,#a57539)!important;border-color:#efd5a3!important;color:#131b22!important}.v90-button.glass{border-color:#cba77075!important;color:#f1e7d7!important;background:#0b1420d9!important}.v90-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 35px #000a!important}.v90-opening{background:#070a10!important}@keyframes v91EnterPulse{0%,100%{box-shadow:0 5px 28px #e9b65838}50%{box-shadow:0 5px 40px #e9b65873}}.v91-home:before{background-image:linear-gradient(90deg,#06101ded 0%,#06101dc9 37%,#06101d45 73%,#06101d7c),linear-gradient(0deg,#030810dc,transparent 36%),var(--screen-art)!important;background-position:center!important}.v91-home .v90-ambient{background:linear-gradient(0deg,#0005,transparent 50%)!important}.v91-home-intro{position:relative;z-index:2;margin:clamp(26px,7vh,65px) clamp(25px,4.2vw,80px) 0}.v91-home-intro h1{font-family:Georgia,"Noto Serif KR","Batang",serif;font-weight:400;font-size:clamp(38px,4vw,65px);line-height:1.1;letter-spacing:-.07em;color:#fff0df;margin:16px 0 8px;text-shadow:0 4px 25px #000d}.v91-home-intro h1 em{color:#f0cd93;font-style:normal}.v91-home-intro p{font-size:clamp(12px,1.16vw,17px);color:#d4d2cf;line-height:1.5;margin:0}.v91-home-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(14px,2.2vw,32px);padding:0 clamp(25px,4.2vw,80px);margin:auto 0;min-height:0}.v91-commander-panel{position:relative;min-height:310px;padding:clamp(18px,2.3vw,34px);border:1px solid #cba76c8a;border-radius:15px;background:linear-gradient(120deg,#07121eea,#0c1820ba);box-shadow:0 15px 60px #0008;backdrop-filter:blur(12px);display:flex;flex-direction:column;justify-content:center}.v91-panel-kicker{font-size:12px;color:#e6be7b;display:flex;gap:15px;align-items:center}.v91-panel-kicker span{font:10px Georgia,serif;letter-spacing:.16em;color:#929d9d}.v91-commander-body{display:flex;align-items:center;gap:20px;margin-top:18px;margin-bottom:23px}.v91-commander-portrait{width:98px;height:117px;flex:none;border:1px solid #d4a96c8b;border-radius:6px;background-size:cover;background-position:center;box-shadow:0 4px 19px #000b}.v91-tiny{font-size:11px;color:#bfc9d0}.v91-commander-body h2{font-family:Georgia,"Noto Serif KR","Batang",serif;font-size:clamp(24px,2.9vw,46px);font-weight:500;color:#f9ead3;margin:7px 0 4px;letter-spacing:-.07em}.v91-commander-body p{font-size:13px;color:#adb8c0;line-height:1.7;margin:0}.v91-commander-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v91-commander-buttons .v90-button{min-width:0;width:100%;height:51px;gap:6px}.v91-home-right{display:flex;flex-direction:column;gap:15px;min-width:0}.v91-next-stage{display:grid;grid-template-columns:45% 1fr;min-height:200px;flex:1;min-width:0;gap:0;padding:12px;background:#07131eee;border:1px solid #c9a5718b;border-radius:15px;color:#fff1dd;text-align:left;overflow:hidden;box-shadow:0 15px 40px #0007;transition:transform .2s,border-color .2s}.v91-next-stage:hover{transform:translateY(-2px);border-color:#f9d39e}.v91-next-image{min-width:0;display:block;background-size:cover;background-position:center;border-radius:9px;box-shadow:inset 0 0 18px #0005}.v91-next-copy{display:flex;flex-direction:column;justify-content:center;padding:10px clamp(10px,2vw,28px);min-width:0;gap:10px}.v91-next-copy small{color:#e4b979;font-size:11px;letter-spacing:.03em}.v91-next-copy small b{margin-left:7px;font-weight:400}.v91-next-copy strong{font-family:Georgia,"Noto Serif KR","Batang",serif;font-size:clamp(21px,2.25vw,35px);font-weight:500;letter-spacing:-.05em;line-height:1.2}.v91-next-copy>span{font-size:12px;color:#e8cb92;white-space:nowrap}.v91-next-copy em{font-style:normal;font-size:12px;color:#c0c8cd;margin-top:6px}.v91-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:126px}.v91-shortcuts button{display:flex;align-items:center;gap:12px;padding:16px 18px;text-align:left;color:#f6e7d0;background:#08131edd;border:1px solid #bda16f69;border-radius:13px;backdrop-filter:blur(10px);transition:.2s}.v91-shortcuts button:hover{border-color:#e8be81;transform:translateY(-2px);background:#132434ee}.v91-shortcut-icon{font-family:Georgia,serif;font-size:29px;color:#e4b678;line-height:1}.v91-shortcuts button>span:nth-child(2){display:flex;flex-direction:column;gap:8px;min-width:0}.v91-shortcuts strong{font-family:Georgia,"Noto Serif KR",serif;font-size:19px;font-weight:500;white-space:nowrap}.v91-shortcuts small{color:#b7a990;font-size:11px}.v91-shortcuts b{margin-left:auto;color:#d4ae78;font-weight:400;align-self:flex-start}.v91-home-foot{position:relative;z-index:2;padding:0 clamp(25px,4.2vw,80px) 18px;display:flex;justify-content:space-between;font:10px Georgia,serif;color:#d3c2a582;letter-spacing:.2em}.v90-campaign:before{background-image:linear-gradient(90deg,#050b15f5,#07101db0 39%,#06101d9e),var(--screen-art)!important}.v90-summon:before{background-image:linear-gradient(90deg,#070c15f8 0%,#0b101ca8 37%,#080e1abb),var(--screen-art)!important}.v90-panel-head h1{font-family:Georgia,"Noto Serif KR","Batang",serif;font-weight:500!important;font-size:clamp(28px,3vw,49px)!important;letter-spacing:-.065em!important}.v90-library:before{background-image:linear-gradient(90deg,#050b16f9,#08131ced),var(--screen-art)!important}.v91-collection-actions{display:flex;align-items:center;gap:12px}.v91-toggle-missing{border:1px solid #a68f6b75;background:#0b1420bd;border-radius:7px;padding:10px 13px;color:#e2c69f;font-size:12px;white-space:nowrap;cursor:pointer}.v91-toggle-missing.active{border-color:#d7b978;background:#3c3126eb}.v90-filterbar button{border-radius:6px!important}.v90-library-scroll{scrollbar-color:#9d7947 #0a1621}.v90-library-cards .game-card{transition:transform .18s,border-color .18s,box-shadow .18s!important}.v90-library-cards .game-card:hover:not(:disabled){transform:translateY(-5px) scale(1.02)!important;z-index:5!important}.game-card{border-radius:9px!important;background:#101d28!important;box-shadow:0 4px 12px #000b!important;overflow:hidden}.game-card .card-art{background-size:cover;background-position:center 25%!important}.game-card .card-rarity{font-weight:500;letter-spacing:.025em}.game-card .card-name{color:#fff2dd!important}.game-card .card-cost{border:1px solid #d6bb82!important;box-shadow:0 2px 12px #0007}.game-card.legendary{border-color:#f5d094!important;box-shadow:0 0 13px #e0ab5370!important}.game-card.epic{border-color:#b9a1eb!important}.game-card.rare{border-color:#7ebde3!important}.game-card.unowned{filter:grayscale(.95) brightness(.42)!important}.game-card.unowned:after{content:"미획득";position:absolute;left:15%;right:15%;top:36%;text-align:center;padding:6px 0;border:1px solid #c2b5a3bb;border-radius:4px;background:#080c15d9;color:#fff9e9;font-size:10px;z-index:7}.v90-deck:before{background-image:linear-gradient(90deg,#060c17f8,#07121eeb),var(--screen-art)!important}.v90-deck-slot{border-radius:9px!important}.v90-deck-slot .game-card{width:100%!important;height:100%!important}.v90-slot-empty{border-style:dashed!important;border-color:#bba1707a!important}.v90-battle:before{background-image:linear-gradient(90deg,#050913f0,#07111cc5 50%,#050913e2),var(--screen-art)!important}.v90-field-card.unit{border-radius:7px!important;overflow:hidden!important;backdrop-filter:none!important}.v90-field-art{background-position:center 24%!important;background-size:cover!important}.v90-field-column{border:0!important;box-shadow:none!important;background:transparent!important}.v90-rewards:before{background-image:linear-gradient(90deg,#050b15fb,#06121af1),var(--screen-art)!important}.v90-mission{border-bottom-color:#bb93603b!important}.v90-mission-bar i{background:linear-gradient(90deg,#805d35,#e2b673)!important}.overlay-shade,.ritual-shade{backdrop-filter:blur(7px)!important}.modal{border-color:#bca06e98!important;border-radius:16px!important;background:linear-gradient(150deg,#0c1722,#08111b)!important;box-shadow:0 30px 100px #000e!important}.modal-title{font-family:Georgia,"Noto Serif KR",serif!important;color:#f6e5cc!important}.v90-settings{color:#efe1c9}.v90-settings-options button{border-radius:8px!important;border-color:#bba27761!important}.ritual-scene{background:#06101aeF}.ritual-reward{border-radius:8px!important}@media (min-width:701px) and (max-width:1180px){.sidebar{width:75px!important}.sidebar .nav-btn{width:60px!important;font-size:11px!important}.sidebar .main-nav{padding:0 7px!important;margin-top:7vh}.v91-home-intro{margin-top:25px}.v91-home-grid{gap:13px;padding:0 22px}.v91-commander-panel{padding:17px;min-height:250px}.v91-home-grid .v90-button{padding:0 10px!important;font-size:12px!important;gap:5px}.v91-commander-body{gap:11px;margin:10px 0}.v91-commander-portrait{width:69px;height:94px}.v91-home-right{gap:10px}.v91-next-stage{min-height:160px}.v91-shortcuts{min-height:95px;gap:8px}.v91-shortcuts button{padding:9px;gap:5px}.v91-shortcuts strong{font-size:15px}.v91-shortcuts small{font-size:10px}.v91-shortcut-icon{font-size:19px}
}@media (max-width:700px){html,body,.app-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}.sidebar{display:none!important}.topbar{min-height:51px!important;height:51px!important;padding:0 11px!important}.topbar .crumb{font-size:10px!important}.top-right{gap:4px!important}.top-player{padding-right:5px!important}.top-player #player-label{font-size:10px}.top-player .player-orb{width:25px;height:25px;font-size:14px}.currency{padding:3px 4px!important;min-width:auto!important;font-size:10px!important}.currency strong{font-size:12px!important}.currency span{font-size:10px!important}.topbar .settings-button{width:29px;height:29px;border-radius:6px!important;font-size:15px}.bottom-nav{display:grid!important;grid-template-columns:repeat(6,1fr);height:calc(59px + env(safe-area-inset-bottom));min-height:calc(59px + env(safe-area-inset-bottom));background:#050a12f5!important;border-top:1px solid #a988555c!important;padding:3px 2px env(safe-area-inset-bottom)!important;gap:1px!important;z-index:20}.bottom-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;color:#abb5bf!important;background:transparent!important;font-size:10px!important;min-width:0;border-radius:6px!important;padding:3px 0!important}.bottom-tab span{font-size:20px!important;line-height:1.1!important;color:#99a9b5}.bottom-tab.active{color:#ffdd9c!important;background:#a27a352e!important}.bottom-tab.active span{color:#f8cf8a!important}.view{height:calc(100dvh - 110px - env(safe-area-inset-bottom))!important;min-height:0}.v90-screen:after{display:none}.v90-kicker{font-size:10px!important;letter-spacing:.12em!important}.v90-panel-head h1{font-size:clamp(23px,7vw,31px)!important}.v91-home:before{background-image:linear-gradient(0deg,#04101ae7,#06121cad 65%,#06101bd1),var(--screen-art)!important;background-position:50% center!important}.v91-home-intro{margin:clamp(14px,3vh,25px) 17px 6px}.v91-home-intro h1{font-size:clamp(26px,8vw,39px);margin:8px 0 3px}.v91-home-intro p{font-size:11px}.v91-home-grid{display:flex;flex-direction:column;gap:8px;padding:0 13px;margin:auto 0;max-height:calc(100% - 115px)}.v91-commander-panel{min-height:0;padding:11px 15px;border-radius:10px;flex:none}.v91-panel-kicker{font-size:10px}.v91-panel-kicker span{font-size:8px}.v91-commander-body{gap:13px;margin:8px 0 9px}.v91-commander-portrait{width:56px;height:65px}.v91-commander-body h2{font-size:22px;margin:3px 0}.v91-tiny{font-size:9px}.v91-commander-body p{font-size:10px;line-height:1.4}.v91-commander-body p br{display:none}.v91-commander-buttons{gap:7px}.v91-commander-buttons .v90-button{height:37px!important;padding:0 7px!important;font-size:11px!important}.v91-commander-buttons .v90-button b{font-size:15px}.v91-home-right{gap:8px}.v91-next-stage{min-height:109px;max-height:140px;grid-template-columns:41% 1fr;padding:6px;border-radius:10px}.v91-next-copy{gap:4px;padding:5px 10px}.v91-next-copy small{font-size:9px}.v91-next-copy strong{font-size:clamp(17px,5vw,25px)}.v91-next-copy>span{font-size:10px}.v91-next-copy em{font-size:9px;margin-top:0}.v91-shortcuts{gap:7px;min-height:67px}.v91-shortcuts button{padding:8px;border-radius:9px;gap:6px}.v91-shortcut-icon{font-size:17px}.v91-shortcuts strong{font-size:13px}.v91-shortcuts small{font-size:9px}.v91-shortcuts b{font-size:11px}.v91-home-foot{padding:0 14px 8px;font-size:7px}.v91-collection-actions{gap:4px}.v91-toggle-missing{padding:6px 7px;font-size:9px}.v91-collection-actions .v90-text-link{font-size:9px!important}.v90-library .v90-panel-head{padding-left:13px;padding-right:13px}.v90-field-card.unit{border-radius:3px!important}.v90-settings h2{font-size:26px}
}@media (max-width:370px){.v91-commander-panel{padding:9px 10px}.v91-home-grid{gap:5px}.v91-home-intro{margin-top:9px}.v91-home-intro h1{font-size:27px}.v91-commander-body{margin:5px 0}.v91-commander-portrait{width:49px;height:57px}.v91-home-right{gap:5px}.v91-next-stage{min-height:94px}.v91-next-copy{gap:2px}.v91-shortcuts{min-height:57px}.v91-shortcuts button{padding:5px}.v91-shortcuts small{font-size:8px}.v91-home-foot{display:none}}@media (max-width:700px) and (max-height:700px){.v91-home-intro{margin:8px 14px 2px}.v91-home-intro h1{font-size:27px}.v91-home-grid{gap:5px}.v91-commander-panel{padding:8px 10px}.v91-commander-portrait{height:50px;width:43px}.v91-commander-body{margin:5px 0}.v91-commander-buttons .v90-button{height:31px!important}.v91-next-stage{min-height:75px}.v91-shortcuts{min-height:49px}.v91-shortcuts button{padding:5px}.v91-shortcuts small{display:none}.v91-home-foot{display:none}}@media (prefers-reduced-motion:reduce){.v91-home-grid *, .v91-home-intro *, .game-card{animation:none!important;transition:none!important}}@media (min-width:901px){.v90-hand-cards{gap:11px!important}.v90-hand-cards .game-card{width:clamp(103px,9.3vw,144px)!important;min-width:clamp(103px,9.3vw,144px)!important}.v90-hand-cards .game-card .card-name{font-size:13px!important}.v90-hand-cards .game-card .card-stats{font-size:11px!important}.v90-field-card.unit{width:clamp(58px,6.2vw,105px)!important;height:min(100%,145px)!important}
}@media (max-width:700px){.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;justify-items:stretch!important}.bottom-nav .bottom-tab{width:100%!important;min-width:0!important;max-width:none!important;writing-mode:horizontal-tb!important;white-space:nowrap!important;word-break:keep-all!important;padding:4px 0!important}.bottom-nav .bottom-tab span{display:block!important;width:auto!important}
}:root{--hd-gold:#e4bf80;--hd-gold-soft:#cfaa72;--hd-ink:#050911;--hd-ivory:#f6ead6}#hd-opening-root{z-index:30000!important}@keyframes hdRoyalApproach{from{transform:scale(1.085)}to{transform:scale(1)}}body,.app-shell,.main-shell{background-color:#040910!important}.topbar{border-bottom:1px solid #c69f6040!important;background:linear-gradient(90deg,#060b14,#0c1420 58%,#060b13)!important;box-shadow:0 10px 30px #01030785!important}.sidebar{background:linear-gradient(180deg,#0b1420 0%,#050a11 48%,#05080d 100%)!important}.sidebar .brand-seal{background:radial-gradient(circle at 30% 18%,#3d3124,#111821 77%)!important;border-radius:10px!important;box-shadow:inset 0 0 0 1px #f7d69a27,0 10px 25px #000a!important}.sidebar .nav-btn{transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease!important}.sidebar .nav-btn:hover:not(.active){transform:translateX(2px)}.sidebar .nav-btn.active{background:linear-gradient(135deg,#a781464d,#2b30382e)!important;box-shadow:inset 0 0 0 1px #f2c87c1b}.topbar .settings-button{transition:border-color .2s,transform .2s,background .2s}.topbar .settings-button:hover{border-color:#e3be80!important;transform:rotate(15deg);background:#d6a65918!important}.topbar .currency{font-variant-numeric:tabular-nums}.v90-screen{isolation:isolate}.v90-screen:after{pointer-events:none}.v90-kicker{font-weight:650!important;letter-spacing:.19em!important}.v90-button.gold{background:linear-gradient(116deg,#f0d19a 0%,#e1b975 40%,#9d7037 100%)!important;color:#1a1714!important;border:1px solid #f6dfab!important;box-shadow:0 10px 30px #0009,inset 0 1px #fff7da9e!important}.v90-button.glass{background:linear-gradient(135deg,#263038e6,#0d1925e8)!important;border-color:#bf9b687d!important}.v90-button.glass:hover{border-color:#edc78a!important;background:#273748ef!important}.v91-home:before{background-image:linear-gradient(90deg,#060c17f0 0%,#081120d0 38%,#08111b48 78%,#060d17aa),linear-gradient(0deg,#040911d6,transparent 33%),var(--screen-art)!important;filter:saturate(.9) contrast(1.07)}.v91-home-intro h1{font-weight:550;letter-spacing:-.06em!important;text-shadow:0 6px 22px #010408c7}.v91-home-intro .v90-kicker{display:inline-flex;align-items:center;gap:9px}.v91-commander-panel{border-color:#e0b67374!important;background:linear-gradient(138deg,#0a1623ef 0%,#0f1b2ce2 60%,#131719cb)!important;box-shadow:0 18px 54px #0009,inset 0 1px #fff5d00d!important}.v91-commander-panel:before{content:"";pointer-events:none;position:absolute;inset:8px;border:1px solid #e5c99712;border-radius:10px}.v91-commander-portrait{border-color:#e2bc7a!important;box-shadow:0 12px 35px #000b,0 0 0 4px #d6a66412!important}.v91-panel-kicker{font-weight:650;letter-spacing:.05em}.v91-next-stage{border-color:#cfad727c!important;background:linear-gradient(130deg,#0c1726ef,#121e2ce9)!important;box-shadow:0 18px 43px #0009!important}.v91-next-stage:hover{border-color:#f5d7a1!important;box-shadow:0 22px 50px #000a,0 0 22px #f3c37b1b!important}.v91-next-image{position:relative;overflow:hidden}.v91-next-image:after{content:"";position:absolute;inset:0;border:1px solid #f4dfbd1b;box-shadow:inset 0 0 24px #000b;border-radius:inherit}.v91-shortcuts button{border-color:#bda06c66!important;background:linear-gradient(135deg,#102131e5,#0a131ef1)!important}.v91-shortcuts button:hover{border-color:#dfbb83!important;box-shadow:0 14px 35px #0008}.v91-shortcut-icon{color:#eac58e!important}.v91-home-foot{color:#cfb68c89!important}.v90-campaign:before{filter:saturate(.94) contrast(1.05)}.v90-filterbar button{transition:background .18s,border-color .18s,color .18s!important}.v90-filterbar button:hover{color:#ffebc9!important;border-color:#e3b976!important}.game-card{box-shadow:0 9px 19px #000a!important;border-color:#ae926854;transition:transform .2s,box-shadow .2s,border-color .2s!important}.game-card:hover:not(:disabled){border-color:#e4be81!important;box-shadow:0 15px 30px #000c,0 0 17px #e7bd7a17!important}.game-card .card-name{letter-spacing:-.025em}.v90-deck-slot{transition:border-color .2s,box-shadow .2s}.v90-slot-empty:hover{border-color:#e6bc7e!important;box-shadow:inset 0 0 18px #c39b5019}.v90-mission{transition:background .2s}.v90-mission:hover{background:#c5a0630e}.modal{background:linear-gradient(145deg,#172232,#0a111b 80%)!important;border:1px solid #c8a5748b!important;box-shadow:0 35px 120px #000f,0 0 60px #d2a06312!important}.modal-close:hover{border-color:#e3be82!important;color:#fff6e5!important}.v90-settings-options button{background:linear-gradient(140deg,#142436,#0b1824)!important;border-color:#aa8c607c!important;transition:transform .2s,border-color .2s}.v90-settings-options button:hover{transform:translateY(-2px);border-color:#e7c58a!important}:focus-visible{outline-color:#f1ca8d!important}::selection{background:#b3894b;color:#0b111a}@media (max-width:700px){.v91-home-intro h1{font-weight:600}.v91-commander-panel{box-shadow:0 10px 28px #0008!important}.v91-commander-panel:before{inset:5px}.topbar .currency{min-width:0}.bottom-nav{background:linear-gradient(0deg,#050912,#0c1521)!important;box-shadow:0 -7px 23px #0008}.bottom-tab.active{color:#ffdda8!important}.v90-screen button:focus-visible,.bottom-tab:focus-visible{outline-offset:0!important}
}.bottom-tab{width:20%!important}.v92-exp-hero{grid-template-columns:minmax(0,1.2fr) 260px;border:1px solid #d0ae7568;border-radius:24px;padding:30px;background-size:cover;background-position:center;box-shadow:0 28px 70px #0008}.v92-exp-side{display:grid;gap:12px;align-content:start}.v92-exp-side-card strong,.v92-daily-stat strong{display:block;margin-top:8px;font:600 30px/1 Georgia,serif;color:#ffdeaa}.v92-stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:18px}.v92-stage-card{position:relative;min-height:180px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;text-align:left;border:1px solid #c7a16b64;border-radius:18px;padding:18px;background-size:cover;background-position:center;box-shadow:0 12px 34px #0008;overflow:hidden;transition:transform .22s,border-color .22s,box-shadow .22s}.v92-stage-card:hover:not(:disabled){transform:translateY(-4px);border-color:#f0c98e;box-shadow:0 22px 42px #000b}.v92-stage-card .num{font-size:11px;letter-spacing:.2em;color:#edca91}.v92-stage-card strong{font-size:20px;color:#fff1d0}.v92-stage-card small{color:#d3cab9;margin-top:5px}.v92-stage-card em{font-style:normal;margin-top:12px;color:#f3d29e;font-size:12px}.v92-stage-card.locked{filter:grayscale(.55) brightness(.64)}.v92-stage-card.current{outline:2px solid #f1cf96}.v92-deck-shell{gap:16px}.v92-deck-head{justify-content:space-between;align-items:end}.v92-deck-overview{display:grid;gap:16px}.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.v92-collection-shell{padding:18px}.v92-collection-top{justify-content:space-between;align-items:center}.v92-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;margin-top:14px}.v92-reward-head{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:18px}.v92-reward-grid{grid-template-columns:minmax(340px,.95fr) minmax(320px,1fr)}.v92-daily-foot{align-items:center;justify-content:space-between;margin-top:16px}.v92-daily-actions{display:flex;gap:10px;flex-wrap:wrap}.v92-missions-board{padding:18px}.v92-missions-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.v92-missions-list{display:grid;gap:12px}.v92-mission-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;align-items:center;padding:15px 16px;border:1px solid #c1996645;border-radius:16px;background:linear-gradient(145deg,#131d29,#0b121a)}.v92-mission-card.ready{box-shadow:0 0 0 1px #ecc37e28,inset 0 0 20px #ecc37e12}.v92-mission-card.claimed{opacity:.74}.v92-mission-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:radial-gradient(circle at 35% 30%,#f0c67d,#5e4026);font-size:24px;color:#1a1309}.v92-mission-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.v92-mission-top strong{font-size:18px;color:#fff1d4}.v92-mission-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px}.v92-mission-bottom span{color:#ecc98f}.v92-mission-bottom button{border:1px solid #d1ac7570;border-radius:12px;padding:8px 12px;background:linear-gradient(135deg,#1a2838,#111921);color:#f7e0b4}.v92-mission-bottom button:disabled{opacity:.55}.ritual-scene.legendary-omen{background:radial-gradient(circle at 50% 20%,#ffdc8a18,transparent 26%),linear-gradient(160deg,#1c1320,#070c14 82%)!important}.ritual-scene.legendary-omen:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 40%,#f5c56e20,transparent 28%),conic-gradient(from 0deg,transparent,#e7b55d18,transparent 48%,#e6b76119,transparent);animation:spin 12s linear infinite}.ritual-scene.legendary-omen .ritual-stage-text{color:#ffe5ba!important}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1100px){.v92-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v92-exp-hero{grid-template-columns:1fr}.v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:700px){.bottom-tab{width:20%!important}.v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v92-stage-card{min-height:146px;padding:14px}.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v92-reward-head,.v92-daily-foot,.v92-mission-top,.v92-mission-bottom{flex-direction:column;align-items:flex-start}.v92-mission-card{grid-template-columns:46px minmax(0,1fr);padding:13px}.v92-mission-icon{width:46px;height:46px;border-radius:14px;font-size:20px}}.v92-deck{overflow:visible}.v92-deck .v92-deck-shell{gap:20px}.v92-deck .v92-deck-head{align-items:flex-end}.v92-deck .v92-deck-head h1{font:600 clamp(30px,4.2vw,48px)/1.04 Georgia,"Noto Serif KR",serif;color:#f7deb4;margin:8px 0}.v92-deck .v92-deck-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}.v92-deck .v92-deck-cards .v90-deck-slot{min-height:0;background:linear-gradient(180deg,#0f1824,#08111b);border-radius:18px;padding:6px;border:1px solid #cb9f6766;box-shadow:0 10px 24px #0008}.v92-deck .v92-deck-cards .game-card{width:100%!important;min-width:0!important;transform:none!important}.v92-deck .v92-deck-cards .card-art{height:64%!important;background-position:center 22%!important}.v92-deck .v92-collection-shell{padding:20px;border-radius:22px}.v92-deck .v92-collection-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}.v92-deck .v92-collection-grid .game-card{width:100%;min-width:0;transform:none!important}.v92-deck .v92-collection-grid .card-art{background-position:center 24%!important}.v92-deck .v90-filterbar{gap:10px}.v92-deck .v90-filterbar>div{display:flex;flex-wrap:wrap;gap:8px}@media (max-width:1200px){.v92-deck .v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
}@media (max-width:760px){.v92-deck .v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v92-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v92-deck .v92-deck-cards .v90-deck-slot{padding:4px;border-radius:14px}
}.v93-rewards .v92-reward-grid{grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr)!important;align-items:start}.v93-daily-board{padding:20px!important;border-radius:24px!important}.v93-day-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}.v93-day-card{position:relative;min-height:158px;border-radius:18px;overflow:hidden;border:1px solid #d1ab7161;background:linear-gradient(180deg,#0c1219,#081018);box-shadow:0 14px 30px #0008;isolation:isolate;transition:transform .2s,box-shadow .2s,border-color .2s}.v93-day-card:hover{transform:translateY(-3px);box-shadow:0 22px 42px #000b;border-color:#efca8e85}.v93-day-art,.v93-day-overlay{position:absolute;inset:0}.v93-day-art{background-size:cover;background-position:center center;transform:scale(1.03)}.v93-day-overlay{background:linear-gradient(180deg,transparent 0%,#07101855 38%,#08111af2 100%)}.v93-day-badge,.v93-day-copy,.v93-day-state{position:relative;z-index:2}.v93-day-badge{display:inline-flex;margin:12px 0 0 12px;padding:5px 9px;border-radius:999px;background:#09111cd4;border:1px solid #d8b57c71;color:#f5ddb0;font-size:11px;letter-spacing:.12em}.v93-day-state{position:absolute;right:12px;bottom:14px;padding:5px 8px;border-radius:10px;background:#09111ccf;border:1px solid #caa46d4e;color:#e7d6b3;font-size:10px}.v93-day-card.claimed{border-color:#e6c27f9a;box-shadow:0 0 0 1px #e6c27f25,inset 0 0 38px #e1b55d14,0 16px 32px #0008}.v93-day-card.claimed .v93-day-state{background:linear-gradient(135deg,#8d6738,#47301f);color:#fff0d1}.v93-day-card.current{outline:2px solid #f1cd8f;transform:translateY(-2px)}.v93-day-card.legend{grid-column:span 2;min-height:170px}.v93-rewards .v92-daily-foot{margin-top:18px}@media (max-width:1200px){.v93-rewards .v92-reward-grid{grid-template-columns:1fr!important}.v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}@media (max-width:760px){.v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v93-day-card{min-height:148px}.v93-day-card.legend{grid-column:span 2}
}.v92-deck .v92-deck-head h1{font-size:clamp(34px,4vw,50px)}.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(118px,148px))!important;justify-content:space-between;gap:10px!important}.v92-deck .v90-deck-slot{min-height:196px!important;padding:0!important;border-radius:16px!important;overflow:hidden}.v92-deck .v90-deck-slot .game-card{aspect-ratio:.72!important;height:100%!important}.v92-deck .v90-deck-slot .card-art{height:60%!important;background-position:center 24%!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(auto-fill,minmax(116px,1fr))!important;gap:10px!important}.v92-deck .v92-collection-grid .game-card{width:100%!important;min-width:0!important;aspect-ratio:.72!important}.v92-deck .v92-collection-grid .card-art{height:60%!important;background-position:center 24%!important}.v92-deck .v90-filterbar button{padding:7px 10px!important;font-size:12px!important}.v93-rewards .v92-reward-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.84fr)!important}.v93-day-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}.v93-day-card{min-height:132px!important;border-radius:16px!important}.v93-day-badge{margin:10px 0 0 10px!important;padding:4px 8px!important;font-size:10px!important}.v93-day-state{right:10px!important;bottom:10px!important;padding:4px 7px!important;font-size:9px!important}.v93-day-card.legend{grid-column:span 2;min-height:144px!important}.v92-missions-list{gap:12px!important}.v92-mission-card{padding:16px!important}.v92-mission-top strong{font-size:22px!important}.v93-summon-refined .v93-summon-topbar{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);gap:18px}.v93-summon-refined .v93-summon-copy,.v93-summon-refined .v93-summon-visual{border:1px solid #c79f6668;border-radius:22px;background:linear-gradient(145deg,#0f1a28f5,#09111af0);box-shadow:0 16px 42px #0009;padding:18px}.v93-summon-refined h1{font:600 clamp(34px,4.2vw,56px)/1.04 Georgia,"Noto Serif KR",serif;color:#f6deb4;margin:8px 0 10px}.v93-summon-refined p{color:#d5d0c6;line-height:1.8;margin:0}.v93-summon-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.v93-summon-stats div{border:1px solid #c79c6170;background:linear-gradient(145deg,#111b28f2,#0a111af2);padding:10px 12px;border-radius:14px;color:#e7d4b1;min-width:110px;display:grid;gap:4px}.v93-summon-stats strong{font:600 27px/1 Georgia,serif;color:#ffe0ab}.v93-summon-note{margin-top:12px;padding:14px 16px;border-radius:16px;border:1px solid #c79c6170;background:linear-gradient(145deg,#111b28f2,#0a111af2);display:grid;gap:6px;color:#edd6a9}.v93-summon-note span{color:#cabda6}.v93-summon-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.v93-pack{min-height:122px;border-radius:18px;border:1px solid #c79f666c;background:linear-gradient(145deg,#09182cf0,#0b121cf5);padding:16px;display:grid;place-items:center;text-align:center;gap:6px;color:#fff1d1}.v93-pack .mark{font-size:24px;color:#f0cc8d}.v93-pack strong{font-size:18px}.v93-pack small{font-size:12px;color:#d7c8af}.v93-pack em{font-style:normal;color:#f1ca87}.v93-pack.featured{background:linear-gradient(145deg,#3a2814f0,#101b28f3)}.v93-pack.premium{background:linear-gradient(145deg,#2d1c47f0,#10131ef5)}.v93-summon-visual{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;align-items:start}.v93-summon-altar{min-height:308px;border:1px solid #c79f666c;border-radius:24px;background:radial-gradient(circle at 50% 36%,#f1c46f1e,transparent 24%),linear-gradient(145deg,#081220,#0a1320);position:relative;overflow:hidden;display:grid;place-items:center}.v93-summon-altar img{width:min(47%,220px);position:relative;z-index:3;filter:drop-shadow(0 0 18px #f7cb6d77)}.v93-summon-core{position:absolute;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,#f1c56f44 0%,#df9f2d10 42%,transparent 66%)}.v93-summon-aura{position:absolute;width:320px;height:320px;border-radius:50%;border:1px solid #f4c56b28;box-shadow:0 0 0 22px #f4c56b08,0 0 120px #eeb24b18 inset}.v93-summon-pity{position:absolute;right:14px;bottom:14px;padding:8px 12px;border-radius:999px;border:1px solid #c79c6170;background:#09111ccf;color:#f2dab2;z-index:4}.v93-summon-preview{display:grid;gap:10px;align-content:start}.v93-legend-row{display:grid;gap:10px}.v93-legend-card .game-card{width:100%!important;min-width:0!important;aspect-ratio:.72!important}@media (max-width:1200px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(4,minmax(118px,148px))!important;justify-content:start!important}.v93-rewards .v92-reward-grid{grid-template-columns:1fr!important}.v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-summon-refined .v93-summon-topbar{grid-template-columns:1fr!important}
}@media (max-width:760px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v92-deck .v90-deck-slot{min-height:176px!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v93-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v93-day-card{min-height:124px!important}.v93-summon-packs{grid-template-columns:1fr!important}.v93-summon-visual{grid-template-columns:1fr!important}
}:root{--r93-gap:clamp(10px,1.25vw,18px);--r93-pad:clamp(12px,1.8vw,26px)}html,body{width:100%;height:100%;overflow:hidden!important}*,*::before,*::after{box-sizing:border-box}.app-shell,.main-shell{min-width:0}.view{height:auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;contain:none!important;scrollbar-width:thin;scrollbar-color:#705d40 #0b1520}.view>.v90-screen{height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important;flex:none!important;padding-bottom:clamp(18px,3vh,36px)}.v90-screen>*{min-width:0}.v90-screen .v90-ambient{pointer-events:none}.v90-screen:after{inset:8px;opacity:.48}.v90-screen .game-card{isolation:isolate}.v92-exp-hero{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(185px,230px);gap:clamp(12px,1.5vw,24px);padding:clamp(18px,2.5vw,32px);min-height:clamp(220px,28vh,330px);background-position:center;background-size:cover}.v92-exp-copy{min-width:0;align-self:center}.v92-exp-copy h1{font-size:clamp(30px,4vw,56px);overflow-wrap:break-word}.v92-exp-copy p{max-width:600px}.v92-exp-badges,.v92-exp-actions{margin-top:clamp(10px,1.4vw,20px)}.v92-exp-badges>span{max-width:100%;overflow-wrap:anywhere}.v92-exp-side{align-self:stretch;grid-template-columns:1fr;align-content:center}.v92-exp-side-card{padding:clamp(12px,1.5vw,20px)}.v92-stage-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:minmax(152px,1fr);gap:var(--r93-gap);margin:0!important;flex:1 0 auto;align-content:stretch}.v92-stage-card{min-height:160px;height:100%;width:100%;padding:clamp(10px,1.25vw,18px);border-radius:14px;overflow:hidden}.v92-stage-card strong,.v92-stage-card small,.v92-stage-card em{max-width:100%;overflow-wrap:anywhere}.v92-deck-shell{width:100%;display:flex!important;flex-direction:column;gap:var(--r93-gap)!important;min-width:0}.v92-deck-head{width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.v92-deck-head>div:first-child{min-width:0}.v92-deck-head h1{font-size:clamp(28px,3.6vw,45px)!important;overflow-wrap:anywhere}.v92-deck-head p{font-size:clamp(11px,1.04vw,14px);max-width:600px}.v92-deck-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.v92-deck-overview{display:flex!important;flex-direction:column;gap:var(--r93-gap);min-width:0}.v92-deck .v92-deck-cards{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-template-rows:auto!important;grid-auto-rows:auto!important;gap:clamp(6px,.9vw,12px)!important;height:auto!important;min-height:0!important;align-items:start;width:100%}.v92-deck .v92-deck-cards .v90-deck-slot{width:100%;height:auto!important;aspect-ratio:3/4;overflow:hidden;min-height:0!important;padding:4px!important;border-radius:12px}.v92-deck .v92-deck-cards .game-card{width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;aspect-ratio:auto!important;display:block!important}.v92-deck .v92-deck-cards .card-art{inset:0!important;height:100%!important;background-position:center 25%!important}.v92-deck .v92-collection-shell{width:100%;min-width:0;padding:clamp(12px,1.5vw,20px)!important;display:flex;flex-direction:column;gap:12px}.v92-deck .v92-collection-top{gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.v92-deck .v90-filterbar{display:flex;flex-wrap:wrap;gap:10px}.v92-deck .v90-filterbar>div{display:flex!important;flex-wrap:wrap;gap:6px;min-width:0}.v92-deck .v90-filterbar button{max-width:100%;white-space:nowrap}.v92-deck .v92-collection-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(125px,100%),1fr))!important;gap:10px!important;min-width:0;max-width:100%}.v92-deck .v92-collection-grid>.game-card{aspect-ratio:3/4!important;width:100%!important;min-width:0!important;height:auto!important}.v92-deck .v92-collection-grid .card-art{inset:0!important;height:100%!important}.v93-rewards .v92-reward-head{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0}.v93-rewards .v92-reward-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--r93-gap)!important;width:100%;min-width:0;align-items:start}.v93-rewards .v93-daily-board{width:100%;min-width:0;padding:clamp(12px,1.7vw,22px)!important}.v93-rewards .v93-day-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(6px,.9vw,11px);margin:14px 0 0}.v93-rewards .v93-day-card{min-width:0;min-height:clamp(128px,11.4vw,168px);height:auto;border-radius:13px;overflow:hidden;transform:none}.v93-rewards .v93-day-card.legend{grid-column:span 2}.v93-rewards .v93-day-state{right:7px;top:9px;bottom:auto;font-size:9px;padding:3px 6px}.v93-rewards .v92-daily-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.v93-rewards .v92-daily-actions{display:flex;gap:8px;flex-wrap:wrap}.v93-rewards .v92-daily-actions .v90-button{height:43px;min-width:130px;padding:0 15px}.v93-rewards .v92-missions-board{width:100%;min-width:0;padding:clamp(12px,1.7vw,22px)}.v93-rewards .v92-missions-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v93-rewards .v92-mission-card{min-width:0}.ritual-scene{max-width:100vw;overflow-y:auto!important}@media (max-width:1350px){.v92-deck .v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}@media (max-width:1070px){.v92-exp-hero{grid-template-columns:minmax(0,1fr) minmax(170px,200px)}.v92-deck .v92-deck-cards{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}@media (max-width:900px){.view{height:auto!important;min-height:0!important}.v92-exp-hero{grid-template-columns:minmax(0,1fr);gap:10px}.v92-exp-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v92-deck .v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}@media (max-width:620px){:root{--r93-pad:11px;--r93-gap:10px}.v90-screen .v90-kicker{font-size:9px;letter-spacing:.10em!important;white-space:normal}.v92-exp-hero{padding:17px;min-height:0!important}.v92-exp-copy h1{font-size:clamp(27px,8.7vw,40px)}.v92-exp-badges{gap:6px}.v92-exp-badges span{padding:7px 9px;font-size:10px}.v92-exp-actions{display:flex;flex-wrap:wrap;gap:8px}.v92-exp-actions .v90-button{min-width:120px;height:42px;padding:0 12px;font-size:11px}.v92-exp-side-card{padding:9px 10px}.v92-exp-side-card strong{font-size:20px}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto}.v92-stage-card{min-height:145px;padding:11px}.v92-stage-card strong{font-size:16px}.v92-deck-head{align-items:flex-start}.v92-deck-head h1{font-size:clamp(27px,8vw,36px)!important;margin:5px 0}.v92-deck-head h1 small{font-size:12px}.v92-deck .v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v92-deck .v92-deck-cards .v90-deck-slot{padding:3px!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v93-rewards .v92-reward-head{align-items:flex-start}.v93-rewards .v93-day-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.v93-rewards .v93-day-card{min-height:150px}.v93-rewards .v92-daily-foot{align-items:flex-start}.v93-rewards .v92-daily-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.v93-rewards .v92-daily-actions .v90-button{width:100%;min-width:0;font-size:10px;padding:0 7px}.v93-rewards .v92-missions-list{grid-template-columns:1fr}
}@media (max-width:380px){.v93-rewards .v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v92-deck .v92-deck-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}:root{--hd-serif:"Noto Serif KR","Noto Serif CJK KR",Georgia,"Batang",serif;--hd-latin:"Cinzel","Noto Serif KR",Georgia,serif
}@keyframes hdPulse{0%,100%{box-shadow:0 0 0 1px #f0c67e3a,inset 0 0 24px #d7a85118}50%{box-shadow:0 0 0 2px #f0c67e80,inset 0 0 30px #d7a85130}}.v90-screen{padding-left:clamp(14px,2.2vw,32px)!important;padding-right:clamp(14px,2.2vw,32px)!important}.v91-home{display:flex!important;flex-direction:column;justify-content:center;min-height:calc(100vh - 70px)}.v91-home-intro{margin-bottom:clamp(18px,3vh,36px)!important}.v91-home-intro h1{font-size:clamp(34px,4.2vw,56px)!important;line-height:1.1!important;margin:6px 0 8px!important}.v91-home-intro p{font-size:clamp(13px,1.1vw,16px)!important}.v91-home-grid{gap:clamp(12px,1.4vw,20px)!important;align-items:stretch!important}.v91-home-right{gap:clamp(12px,1.4vw,20px)!important}.v91-commander-portrait{width:clamp(84px,7vw,110px)!important;height:clamp(104px,8.6vw,136px)!important;object-fit:cover}.v91-commander-body h2{font-size:clamp(28px,2.6vw,38px)!important}.v91-commander-buttons{gap:10px!important}.v92-stage-card{aspect-ratio:3/2;min-height:0!important}.v92-stage-grid{gap:clamp(10px,1.2vw,16px)!important}.v93-summon-topbar{align-items:stretch!important}.v93-summon-altar img{max-height:min(34vh,300px)!important;width:auto!important}.v92-collection-grid,.v92-deck-cards{gap:clamp(8px,1vw,14px)!important}.v93-day-card{aspect-ratio:4/3;min-height:0!important}.modal{max-width:min(92vw,560px)!important;padding:clamp(18px,2.4vw,30px)!important;border-radius:16px!important}.modal.large{max-width:min(94vw,880px)!important}.modal-close{width:32px!important;height:32px!important;top:12px!important;right:12px!important}.sidebar .nav-btn{padding:10px 6px!important;gap:5px!important}.topbar{min-height:64px!important}.v90-button{min-height:44px!important;border-radius:10px!important;letter-spacing:.14em!important}.v90-button.gold{box-shadow:0 10px 26px -12px #d8aa65aa!important}.toast-container{left:50%!important;transform:translateX(-50%)!important;bottom:84px!important;right:auto!important}@media (max-width:760px){.v90-screen{padding-left:12px!important;padding-right:12px!important;padding-bottom:84px!important}.v91-home{min-height:0;justify-content:flex-start}.v91-home-intro h1{font-size:30px!important}.v91-commander-body{gap:12px!important}.v91-commander-buttons{display:grid!important;grid-template-columns:1fr 1fr!important}.v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v93-summon-packs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.v93-pack{padding:10px 6px!important}.v93-pack strong{font-size:11.5px!important;letter-spacing:0!important;word-break:keep-all}.v93-pack small{font-size:9.5px!important}.v92-collection-grid,.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.modal{max-width:94vw!important;padding:18px 16px!important;border-radius:14px!important}.bottom-nav{height:62px!important;padding-bottom:env(safe-area-inset-bottom)}.toast-container{bottom:76px!important}
}html[data-hd-theme="ink"]{--ink:#0c0a08;--ink-2:#14110d;--ink-3:#1c1813;--paper:#efe6d3;--paper-dim:#b9ad98;--paper-mute:#7f7563;--seal:#b4322a;--seal-deep:#8d241e;--hair:rgba(201,168,106,.42);--hair-strong:rgba(201,168,106,.75);--gold:#c9a86a;--serif:"Noto Serif KR","Noto Serif CJK KR","Cormorant Garamond",Georgia,serif
}html[data-hd-theme="ink"] body, html[data-hd-theme="ink"] body .app-shell, html[data-hd-theme="ink"] body .main-shell{background:var(--ink)!important;color:var(--paper)!important;font-family:var(--serif)!important}html[data-hd-theme="ink"] body .main-shell{background:var(--ink)!important}html[data-hd-theme="ink"] body .view{background:var(--ink)!important}html[data-hd-theme="ink"] body .v90-screen{background:transparent!important;border-radius:0!important}html[data-hd-theme="ink"] body .v90-screen:before{opacity:.22!important;filter:grayscale(.75) contrast(1.05) brightness(.55)!important;mix-blend-mode:luminosity}html[data-hd-theme="ink"] body .v90-screen:after{background:linear-gradient(180deg,rgba(12,10,8,.2) 0%,rgba(12,10,8,.85) 55%,#0c0a08 100%)!important}html[data-hd-theme="ink"] body .v90-ambient{opacity:0!important}html[data-hd-theme="ink"] body .sidebar{background:var(--ink-2)!important;border-right:1px solid var(--hair)!important;box-shadow:none!important;width:96px!important}html[data-hd-theme="ink"] body .sidebar:before{display:none!important}html[data-hd-theme="ink"] body .sidebar .brand-seal{background:var(--seal)!important;color:var(--paper)!important;border:0!important;border-radius:2px!important;box-shadow:0 0 0 1px var(--ink),0 0 0 2px var(--seal-deep)!important;font-family:var(--serif)!important;font-weight:700!important}html[data-hd-theme="ink"] body .sidebar .brand-seal:after{display:none!important}html[data-hd-theme="ink"] body .sidebar .sidebar-caption{color:var(--paper-mute)!important;letter-spacing:.34em!important;font-size:9px!important}html[data-hd-theme="ink"] body .sidebar .nav-btn{color:var(--paper-dim)!important;background:transparent!important;border:0!important;border-radius:0!important;letter-spacing:.14em!important;font-family:var(--serif)!important;font-size:12px!important}html[data-hd-theme="ink"] body .sidebar .nav-btn .nav-icon{background:transparent!important;border:1px solid transparent!important;color:var(--paper-mute)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .sidebar .nav-btn.active{color:var(--paper)!important;background:transparent!important;box-shadow:none!important}html[data-hd-theme="ink"] body .sidebar .nav-btn.active .nav-icon{border-color:var(--hair-strong)!important;color:var(--gold)!important;background:transparent!important}html[data-hd-theme="ink"] body .sidebar .nav-btn.active:before{background:var(--seal)!important;width:3px!important;box-shadow:none!important;border-radius:0!important}html[data-hd-theme="ink"] body .sidebar .sidebar-rule{background:var(--hair)!important}html[data-hd-theme="ink"] body .sidebar .sidebar-motto,html[data-hd-theme="ink"] body .sidebar .build-tag{color:var(--paper-mute)!important;letter-spacing:.3em!important}html[data-hd-theme="ink"] body .topbar{background:rgba(12,10,8,.82)!important;border-bottom:1px solid var(--hair)!important;backdrop-filter:blur(8px)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .crumb{color:var(--paper-dim)!important;letter-spacing:.18em!important;font-size:12px!important}html[data-hd-theme="ink"] body .currency{background:transparent!important;border:1px solid var(--hair)!important;border-radius:2px!important;box-shadow:none!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .currency strong{color:var(--paper)!important;font-family:var(--serif)!important}html[data-hd-theme="ink"] body .currency.gold>span{color:var(--gold)!important}html[data-hd-theme="ink"] body .topbar .settings-button,html[data-hd-theme="ink"] body .icon-button{background:transparent!important;border:1px solid var(--hair)!important;border-radius:2px!important;color:var(--paper-dim)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .player-orb{background:transparent!important;border:1px solid var(--hair-strong)!important;color:var(--gold)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .v90-kicker{color:var(--seal)!important;background:transparent!important;border:0!important;padding:0!important;letter-spacing:.42em!important;font-size:10.5px!important;font-weight:600!important}html[data-hd-theme="ink"] body .v91-home-intro h1 em,html[data-hd-theme="ink"] body .v90-screen h1 em{color:var(--paper)!important;font-style:normal!important;-webkit-text-fill-color:var(--paper)!important;background:none!important;border-bottom:1px solid var(--seal)!important;padding-bottom:.02em}html[data-hd-theme="ink"] body .v91-panel-kicker{color:var(--paper-mute)!important;letter-spacing:.3em!important;font-size:10px!important}html[data-hd-theme="ink"] body .v91-panel-kicker span{color:var(--paper-mute)!important}html[data-hd-theme="ink"] body .v91-tiny{color:var(--seal)!important;letter-spacing:.2em!important}html[data-hd-theme="ink"] body .v91-commander-body h2{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important;letter-spacing:.02em!important;font-size:40px!important}html[data-hd-theme="ink"] body .v91-commander-body p{color:var(--paper-dim)!important;font-weight:300!important}html[data-hd-theme="ink"] body .v91-commander-portrait{border-radius:1px!important;border:1px solid var(--hair-strong)!important;box-shadow:0 0 0 4px var(--ink-2),0 0 0 5px var(--hair)!important;filter:saturate(.8) contrast(1.05)}html[data-hd-theme="ink"] body .v91-next-image{border-radius:1px!important;filter:saturate(.75)!important;border:1px solid var(--hair)!important}html[data-hd-theme="ink"] body .v91-next-copy small{color:var(--paper-mute)!important;letter-spacing:.26em!important}html[data-hd-theme="ink"] body .v91-next-copy small b{color:var(--gold)!important}html[data-hd-theme="ink"] body .v91-next-copy strong{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v91-next-copy span{color:var(--paper-dim)!important}html[data-hd-theme="ink"] body .v91-next-copy em{color:var(--seal)!important;font-style:normal!important;letter-spacing:.14em!important}html[data-hd-theme="ink"] body .v91-shortcuts button strong{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v91-shortcuts button small{color:var(--paper-mute)!important}html[data-hd-theme="ink"] body .v91-shortcut-icon{background:transparent!important;border:1px solid var(--hair)!important;color:var(--gold)!important;border-radius:1px!important;box-shadow:none!important}html[data-hd-theme="ink"] body .v91-shortcuts button b{color:var(--seal)!important}html[data-hd-theme="ink"] body .v91-home-foot span{color:var(--paper-mute)!important;letter-spacing:.36em!important;font-size:9.5px!important}html[data-hd-theme="ink"] body .v90-button{border-radius:1px!important;font-family:var(--serif)!important;letter-spacing:.2em!important;font-weight:600!important;font-size:13px!important;box-shadow:none!important;text-shadow:none!important;transition:background .18s,color .18s!important}html[data-hd-theme="ink"] body .v90-button.gold{background:var(--seal)!important;color:var(--paper)!important;border:1px solid var(--seal-deep)!important}html[data-hd-theme="ink"] body .v90-button.gold:hover:not(:disabled){background:var(--seal-deep)!important;transform:none!important}html[data-hd-theme="ink"] body .v90-button.glass{background:transparent!important;color:var(--paper)!important;border:1px solid var(--hair-strong)!important}html[data-hd-theme="ink"] body .v90-button.glass:hover:not(:disabled){background:rgba(201,168,106,.08)!important;transform:none!important}html[data-hd-theme="ink"] body .v90-button b{color:inherit!important}html[data-hd-theme="ink"] body .v93-summon-stats>div small{color:var(--paper-mute)!important;letter-spacing:.2em!important}html[data-hd-theme="ink"] body .v93-summon-stats>div strong{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v93-summon-note b{color:var(--paper)!important;font-weight:500!important}html[data-hd-theme="ink"] body .v93-summon-note span{color:var(--paper-mute)!important}html[data-hd-theme="ink"] body .v93-pack{background:transparent!important;border:1px solid var(--hair)!important;border-radius:1px!important;box-shadow:none!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v93-pack .mark{color:var(--gold)!important;background:transparent!important;border:0!important}html[data-hd-theme="ink"] body .v93-pack strong{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v93-pack small{color:var(--paper-mute)!important}html[data-hd-theme="ink"] body .v93-pack em{color:var(--gold)!important;font-style:normal!important}html[data-hd-theme="ink"] body .v93-pack.featured{border-color:var(--seal)!important;background:rgba(180,50,42,.08)!important}html[data-hd-theme="ink"] body .v93-pack.featured .mark{color:var(--seal)!important}html[data-hd-theme="ink"] body .v93-pack.premium{border-color:var(--hair-strong)!important;background:rgba(201,168,106,.06)!important}html[data-hd-theme="ink"] body .v93-summon-core,html[data-hd-theme="ink"] body .v93-summon-aura{opacity:.35!important;filter:grayscale(.4) sepia(.3)!important}html[data-hd-theme="ink"] body .v93-summon-altar img{filter:saturate(.8)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .v93-summon-pity{background:transparent!important;border:1px solid var(--hair)!important;color:var(--paper-dim)!important;border-radius:1px!important;letter-spacing:.2em!important}html[data-hd-theme="ink"] body .game-card{border-radius:2px!important;border:1px solid var(--hair)!important;box-shadow:0 0 0 3px var(--ink-2),0 0 0 4px rgba(201,168,106,.18)!important;background:var(--ink-3)!important}html[data-hd-theme="ink"] body .game-card.legendary{border-color:var(--gold)!important;box-shadow:0 0 0 3px var(--ink-2),0 0 0 4px var(--gold)!important}html[data-hd-theme="ink"] body .game-card .card-name{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important;text-shadow:none!important}html[data-hd-theme="ink"] body .game-card .card-rarity{background:var(--seal)!important;color:var(--paper)!important;border-radius:0!important;letter-spacing:.14em!important;border:0!important}html[data-hd-theme="ink"] body .game-card .card-cost{background:var(--ink)!important;border:1px solid var(--gold)!important;color:var(--gold)!important;border-radius:0!important;box-shadow:none!important}html[data-hd-theme="ink"] body .game-card .card-art{filter:saturate(.85)!important}html[data-hd-theme="ink"] body .bottom-nav{background:rgba(12,10,8,.94)!important;border-top:1px solid var(--hair)!important;box-shadow:none!important;backdrop-filter:blur(10px)!important}html[data-hd-theme="ink"] body .bottom-nav .bottom-tab{color:var(--paper-mute)!important;background:transparent!important;border:0!important;border-radius:0!important;font-family:var(--serif)!important;letter-spacing:.12em!important}html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.active{color:var(--paper)!important;background:transparent!important;box-shadow:inset 0 2px 0 var(--seal)!important}html[data-hd-theme="ink"] body .bottom-nav .bottom-tab span{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}html[data-hd-theme="ink"] body .mobile-brand{color:var(--paper)!important;font-family:var(--serif)!important;letter-spacing:.2em!important}html[data-hd-theme="ink"] body .mobile-brand span{color:var(--seal)!important}html[data-hd-theme="ink"] body .v92-stage-card.current,html[data-hd-theme="ink"] body .v93-day-card.current{border-color:var(--seal)!important;box-shadow:inset 0 0 0 1px rgba(180,50,42,.4)!important}html[data-hd-theme="ink"] body .v92-exp-badges span,html[data-hd-theme="ink"] body .v90-filterbar button{background:transparent!important;border:1px solid var(--hair)!important;border-radius:1px!important;color:var(--paper-dim)!important;box-shadow:none!important}html[data-hd-theme="ink"] body .gold-text{color:var(--gold)!important;background:none!important;-webkit-text-fill-color:var(--gold)!important}html[data-hd-theme="ink"] body .v92-stage-card,html[data-hd-theme="ink"] body .v93-day-card{background-color:rgba(20,17,13,.88)!important;border:1px solid var(--line,var(--hair))!important;border-radius:3px!important;box-shadow:none!important}html[data-hd-theme="ink"] body .modal{background:var(--ink-2)!important;border:1px solid var(--hair-strong)!important;border-radius:2px!important;box-shadow:0 40px 80px -30px #000!important}html[data-hd-theme="ink"] body .modal-close{background:transparent!important;border:1px solid var(--hair)!important;color:var(--paper-dim)!important;border-radius:1px!important}html[data-hd-theme="ink"] body .v90-settings h2,html[data-hd-theme="ink"] body .modal-title{font-family:var(--serif)!important;font-weight:500!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v90-settings p,html[data-hd-theme="ink"] body .v90-settings small{color:var(--paper-mute)!important}html[data-hd-theme="ink"] body .v90-settings-options button{background:transparent!important;border:1px solid var(--hair)!important;border-radius:1px!important;color:var(--paper)!important}html[data-hd-theme="ink"] body .v90-settings-options button>span{color:var(--gold)!important;font-family:var(--serif)!important}html[data-hd-theme="ink"] body .v90-settings-danger{background:transparent!important;background-image:none!important;border:1px solid rgba(180,50,42,.6)!important;color:var(--seal)!important;border-radius:1px!important}html[data-hd-theme="ink"] body .overlay-shade{background:rgba(12,10,8,.78)!important}html[data-hd-theme="gilt"]{--night:#05080f;--night-2:#0a0f1a;--night-3:#111827;--champ:#e9d6ab;--champ-2:#d4bb84;--champ-dim:#9f8f6b;--ivory:#f3ecdc;--mist:#9aa4b3;--mist-dim:#5f6775;--line:rgba(233,214,171,.28);--line-strong:rgba(233,214,171,.6);--satin:linear-gradient(135deg,#f1e2bc 0%,#d9bf86 45%,#b99a5c 100%);--serif:"Noto Serif KR","Noto Serif CJK KR","Cinzel",Georgia,serif
}html[data-hd-theme="gilt"] body, html[data-hd-theme="gilt"] body .app-shell, html[data-hd-theme="gilt"] body .main-shell, html[data-hd-theme="gilt"] body .view{background:var(--night)!important;color:var(--ivory)!important;font-family:var(--serif)!important}html[data-hd-theme="gilt"] body .v90-screen{background:transparent!important;border-radius:0!important}html[data-hd-theme="gilt"] body .v90-screen:before{opacity:.5!important;filter:saturate(.7) brightness(.7) contrast(1.05)!important}html[data-hd-theme="gilt"] body .v90-screen:after{background:radial-gradient(120% 90% at 70% 10%,rgba(5,8,15,.1) 0%,rgba(5,8,15,.78) 60%,#05080f 100%)!important}html[data-hd-theme="gilt"] body .v90-ambient{opacity:.35!important}html[data-hd-theme="gilt"] body .sidebar{background:linear-gradient(180deg,#0a0f1a 0%,#05080f 100%)!important;border-right:1px solid var(--line)!important;box-shadow:none!important;width:96px!important}html[data-hd-theme="gilt"] body .sidebar:before{display:none!important}html[data-hd-theme="gilt"] body .sidebar .brand-seal{background:transparent!important;color:var(--champ)!important;border:1px solid var(--line-strong)!important;border-radius:50%!important;box-shadow:0 0 0 3px var(--night),0 0 0 4px var(--line)!important;font-family:var(--serif)!important;font-weight:600!important}html[data-hd-theme="gilt"] body .sidebar .brand-seal:after{display:none!important}html[data-hd-theme="gilt"] body .sidebar .sidebar-caption{color:var(--champ-dim)!important;letter-spacing:.34em!important;font-size:9px!important}html[data-hd-theme="gilt"] body .sidebar .nav-btn{color:var(--mist)!important;background:transparent!important;border:0!important;border-radius:0!important;letter-spacing:.16em!important;font-family:var(--serif)!important;font-size:12px!important}html[data-hd-theme="gilt"] body .sidebar .nav-btn .nav-icon{background:transparent!important;border:1px solid transparent!important;color:var(--mist-dim)!important;box-shadow:none!important;border-radius:50%!important}html[data-hd-theme="gilt"] body .sidebar .nav-btn.active{color:var(--champ)!important;background:transparent!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .sidebar .nav-btn.active .nav-icon{border-color:var(--line-strong)!important;color:var(--champ)!important;background:radial-gradient(circle,rgba(233,214,171,.14),transparent 70%)!important}html[data-hd-theme="gilt"] body .sidebar .nav-btn.active:before{background:var(--satin)!important;width:2px!important;box-shadow:none!important;border-radius:0!important}html[data-hd-theme="gilt"] body .sidebar .sidebar-rule{background:linear-gradient(90deg,transparent,var(--line-strong),transparent)!important}html[data-hd-theme="gilt"] body .sidebar .sidebar-motto,html[data-hd-theme="gilt"] body .sidebar .build-tag{color:var(--champ-dim)!important;letter-spacing:.3em!important}html[data-hd-theme="gilt"] body .topbar{background:rgba(5,8,15,.72)!important;border-bottom:1px solid var(--line)!important;backdrop-filter:blur(12px)!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .crumb{color:var(--mist)!important;letter-spacing:.2em!important;font-size:12px!important}html[data-hd-theme="gilt"] body .currency{background:rgba(10,15,26,.6)!important;border:1px solid var(--line)!important;border-radius:999px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .currency strong{color:var(--ivory)!important;font-family:var(--serif)!important}html[data-hd-theme="gilt"] body .currency.gold>span{color:var(--champ)!important}html[data-hd-theme="gilt"] body .topbar .settings-button,html[data-hd-theme="gilt"] body .icon-button{background:transparent!important;border:1px solid var(--line)!important;border-radius:50%!important;color:var(--champ-2)!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .player-orb{background:radial-gradient(circle at 35% 30%,#1a2335,#0a0f1a)!important;border:1px solid var(--line-strong)!important;color:var(--champ)!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .v90-kicker{color:var(--champ-2)!important;background:transparent!important;border:0!important;padding:0!important;letter-spacing:.44em!important;font-size:10.5px!important;font-weight:500!important}html[data-hd-theme="gilt"] body .v90-kicker:before{content:"";display:inline-block;width:28px;height:1px;background:var(--line-strong);margin-right:12px;vertical-align:middle}html[data-hd-theme="gilt"] body .v91-home-intro h1 em,html[data-hd-theme="gilt"] body .v90-screen h1 em{font-style:normal!important;background:var(--satin)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:var(--champ)!important}html[data-hd-theme="gilt"] body .v91-panel-kicker{color:var(--champ-dim)!important;letter-spacing:.3em!important;font-size:10px!important}html[data-hd-theme="gilt"] body .v91-panel-kicker span{color:var(--mist-dim)!important}html[data-hd-theme="gilt"] body .v91-tiny{color:var(--champ-2)!important;letter-spacing:.22em!important}html[data-hd-theme="gilt"] body .v91-commander-body h2{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important;letter-spacing:.03em!important;font-size:40px!important}html[data-hd-theme="gilt"] body .v91-commander-body p{color:var(--mist)!important;font-weight:300!important}html[data-hd-theme="gilt"] body .v91-commander-portrait{border-radius:2px!important;border:1px solid var(--line-strong)!important;box-shadow:0 0 0 5px var(--night-2),0 0 0 6px var(--line)!important}html[data-hd-theme="gilt"] body .v91-next-image{border-radius:2px!important;border:1px solid var(--line)!important;filter:saturate(.85)!important}html[data-hd-theme="gilt"] body .v91-next-copy small{color:var(--champ-dim)!important;letter-spacing:.28em!important}html[data-hd-theme="gilt"] body .v91-next-copy small b{color:var(--champ)!important}html[data-hd-theme="gilt"] body .v91-next-copy strong{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v91-next-copy span{color:var(--mist)!important}html[data-hd-theme="gilt"] body .v91-next-copy em{color:var(--champ)!important;font-style:normal!important;letter-spacing:.16em!important}html[data-hd-theme="gilt"] body .v91-shortcuts button strong{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v91-shortcuts button small{color:var(--mist-dim)!important}html[data-hd-theme="gilt"] body .v91-shortcut-icon{background:transparent!important;border:1px solid var(--line)!important;color:var(--champ)!important;border-radius:50%!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .v91-shortcuts button b{color:var(--champ-2)!important}html[data-hd-theme="gilt"] body .v91-home-foot span{color:var(--champ-dim)!important;letter-spacing:.4em!important;font-size:9.5px!important;opacity:.7}html[data-hd-theme="gilt"] body .v90-button{border-radius:2px!important;font-family:var(--serif)!important;letter-spacing:.22em!important;font-weight:600!important;font-size:12.5px!important;text-shadow:none!important;transition:transform .18s,box-shadow .18s!important}html[data-hd-theme="gilt"] body .v90-button.gold{background:var(--satin)!important;color:#1a1408!important;border:0!important;box-shadow:0 0 0 1px rgba(233,214,171,.35),0 12px 30px -14px rgba(233,214,171,.55)!important}html[data-hd-theme="gilt"] body .v90-button.gold:hover:not(:disabled){transform:translateY(-1px)!important;box-shadow:0 0 0 1px rgba(233,214,171,.6),0 16px 34px -14px rgba(233,214,171,.7)!important}html[data-hd-theme="gilt"] body .v90-button.glass{background:rgba(233,214,171,.04)!important;color:var(--champ)!important;border:1px solid var(--line-strong)!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .v90-button.glass:hover:not(:disabled){background:rgba(233,214,171,.1)!important;transform:none!important}html[data-hd-theme="gilt"] body .v90-button b{color:inherit!important}html[data-hd-theme="gilt"] body .v93-summon-stats>div small{color:var(--champ-dim)!important;letter-spacing:.22em!important}html[data-hd-theme="gilt"] body .v93-summon-stats>div strong{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v93-summon-note b{color:var(--ivory)!important;font-weight:500!important}html[data-hd-theme="gilt"] body .v93-summon-note span{color:var(--mist)!important}html[data-hd-theme="gilt"] body .v93-pack{background:rgba(10,15,26,.6)!important;border:1px solid var(--line)!important;border-radius:3px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v93-pack .mark{color:var(--champ)!important;background:transparent!important;border:1px solid var(--line)!important;border-radius:50%!important}html[data-hd-theme="gilt"] body .v93-pack strong{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v93-pack small{color:var(--mist-dim)!important}html[data-hd-theme="gilt"] body .v93-pack em{color:var(--champ)!important;font-style:normal!important}html[data-hd-theme="gilt"] body .v93-pack.featured{border-color:var(--line-strong)!important;background:linear-gradient(180deg,rgba(233,214,171,.12),rgba(233,214,171,.03))!important}html[data-hd-theme="gilt"] body .v93-pack.featured .mark{background:var(--satin)!important;color:#1a1408!important;border:0!important}html[data-hd-theme="gilt"] body .v93-pack.premium{border-color:rgba(190,170,230,.4)!important;background:linear-gradient(180deg,rgba(120,100,180,.14),rgba(10,15,26,.6))!important}html[data-hd-theme="gilt"] body .v93-pack.premium .mark{color:#d9cdf5!important;border-color:rgba(190,170,230,.5)!important}html[data-hd-theme="gilt"] body .v93-summon-core,html[data-hd-theme="gilt"] body .v93-summon-aura{opacity:.6!important;filter:saturate(.7)!important}html[data-hd-theme="gilt"] body .v93-summon-pity{background:rgba(5,8,15,.7)!important;border:1px solid var(--line)!important;color:var(--champ-2)!important;border-radius:999px!important;letter-spacing:.22em!important}html[data-hd-theme="gilt"] body .game-card{border-radius:4px!important;border:1px solid var(--line)!important;box-shadow:0 0 0 2px var(--night),0 0 0 3px rgba(233,214,171,.18),0 20px 30px -20px #000!important}html[data-hd-theme="gilt"] body .game-card.legendary{border-color:var(--champ)!important;box-shadow:0 0 0 2px var(--night),0 0 0 3px var(--champ-2),0 0 28px -6px rgba(233,214,171,.35)!important}html[data-hd-theme="gilt"] body .game-card .card-name{font-family:var(--serif)!important;font-weight:500!important;color:var(--ivory)!important;text-shadow:0 1px 2px #000!important}html[data-hd-theme="gilt"] body .game-card .card-rarity{background:var(--satin)!important;color:#1a1408!important;border-radius:2px!important;letter-spacing:.14em!important;border:0!important}html[data-hd-theme="gilt"] body .game-card .card-cost{background:var(--night)!important;border:1px solid var(--champ)!important;color:var(--champ)!important;border-radius:50%!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .bottom-nav{background:rgba(5,8,15,.9)!important;border-top:1px solid var(--line)!important;box-shadow:none!important;backdrop-filter:blur(14px)!important}html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab{color:var(--mist-dim)!important;background:transparent!important;border:0!important;border-radius:0!important;font-family:var(--serif)!important;letter-spacing:.12em!important}html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.active{color:var(--champ)!important;background:transparent!important;box-shadow:inset 0 1px 0 var(--champ)!important}html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab span{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}html[data-hd-theme="gilt"] body .mobile-brand{color:var(--ivory)!important;font-family:var(--serif)!important;letter-spacing:.2em!important}html[data-hd-theme="gilt"] body .mobile-brand span{color:var(--champ)!important}html[data-hd-theme="gilt"] body .v92-stage-card.current,html[data-hd-theme="gilt"] body .v93-day-card.current{border-color:var(--champ-2)!important;box-shadow:0 0 0 1px rgba(233,214,171,.25),0 0 36px -10px rgba(233,214,171,.35)!important}html[data-hd-theme="gilt"] body .v92-exp-badges span,html[data-hd-theme="gilt"] body .v90-filterbar button{background:rgba(10,15,26,.6)!important;border:1px solid var(--line)!important;border-radius:999px!important;color:var(--mist)!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .gold-text{background:var(--satin)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}html[data-hd-theme="gilt"] body .v92-stage-card,html[data-hd-theme="gilt"] body .v93-day-card{background-color:rgba(10,15,26,.85)!important;border:1px solid var(--line,var(--hair))!important;border-radius:3px!important;box-shadow:none!important}html[data-hd-theme="gilt"] body .modal{background:linear-gradient(180deg,#111827,#0a0f1a)!important;border:1px solid var(--line-strong)!important;border-radius:6px!important;box-shadow:0 40px 90px -30px #000,inset 0 1px 0 rgba(255,255,255,.05)!important}html[data-hd-theme="gilt"] body .modal-close{background:transparent!important;border:1px solid var(--line)!important;color:var(--champ-2)!important;border-radius:50%!important}html[data-hd-theme="gilt"] body .v90-settings h2,html[data-hd-theme="gilt"] body .modal-title{font-family:var(--serif)!important;font-weight:400!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v90-settings p,html[data-hd-theme="gilt"] body .v90-settings small{color:var(--mist-dim)!important}html[data-hd-theme="gilt"] body .v90-settings-options button{background:rgba(10,15,26,.6)!important;border:1px solid var(--line)!important;border-radius:4px!important;color:var(--ivory)!important}html[data-hd-theme="gilt"] body .v90-settings-options button>span{color:var(--champ)!important;font-family:var(--serif)!important}html[data-hd-theme="gilt"] body .v90-settings-danger{background:transparent!important;background-image:none!important;border:1px solid rgba(233,214,171,.3)!important;color:var(--champ-dim)!important;border-radius:4px!important}html[data-hd-theme="gilt"] body .overlay-shade{background:rgba(5,8,15,.78)!important}.hd-theme-pick{width:100%;margin:4px 0 16px;text-align:left}.hd-theme-pick>small{display:block;margin-bottom:8px;font-size:10px;letter-spacing:.3em;color:#bba06e;text-transform:uppercase}.hd-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hd-theme-btn{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 12px 11px;border-radius:3px;border:1px solid #bba06e6c;background:#101d2b;color:#f0dbbb;cursor:pointer;text-align:left;font:inherit;transition:border-color .15s,box-shadow .15s}.hd-theme-btn:hover{border-color:#e2bd82}.hd-theme-btn.is-on{border-color:#e9d6ab;box-shadow:0 0 0 1px #e9d6ab inset}.hd-theme-swatch{display:flex;gap:3px;width:100%;height:14px;border-radius:2px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}.hd-theme-swatch i{flex:1}.hd-theme-btn strong{font-size:12px;font-weight:600;letter-spacing:.04em}.hd-theme-btn span{font-size:10.5px;opacity:.7;line-height:1.4}.hd-theme-btn.is-on strong:after{content:" ✓";color:#e9d6ab}@media (max-width:640px){.hd-theme-grid{grid-template-columns:1fr}}html[data-hd-theme="ink"] .hd-theme-pick>small{color:#7f7563}html[data-hd-theme="ink"] .hd-theme-btn{background:transparent;border-color:rgba(201,168,106,.42);color:#efe6d3;border-radius:1px}html[data-hd-theme="ink"] .hd-theme-btn.is-on{border-color:#b4322a;box-shadow:0 0 0 1px #b4322a inset}html[data-hd-theme="ink"] .hd-theme-btn.is-on strong:after{color:#b4322a}html[data-hd-theme="gilt"] .hd-theme-btn{background:rgba(10,15,26,.6);border-color:rgba(233,214,171,.28);color:#f3ecdc;border-radius:4px}:root{--hd95-gap:clamp(10px,1.05vw,17px);--hd95-inset:clamp(12px,1.9vw,28px);--hd95-line:rgba(216,180,122,.34);--hd95-round:clamp(12px,1.2vw,18px)
}html{min-width:0;max-width:100%}body,#app,.main-shell,#view{max-width:100%;min-width:0}#view{scrollbar-gutter:stable;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}#view>.v90-screen{box-sizing:border-box;max-width:100%;min-width:0;overflow-x:clip!important;overflow-y:visible!important;padding:var(--hd95-inset)!important;padding-bottom:clamp(30px,5vh,64px)!important}#view>.v90-screen>*,#view>.v90-screen section{min-width:0}.v90-screen h1,.v90-screen h2,.v90-screen h3{max-width:100%;text-wrap:balance;overflow-wrap:break-word}.v90-button,.v93-pack,.v92-stage-card,.v92-collection-grid .game-card{touch-action:manipulation}.v90-screen .v90-button{white-space:normal;text-align:center;line-height:1.28}.v91-home{height:auto!important;min-height:calc(100dvh - 70px)!important;gap:clamp(12px,2vh,24px);justify-content:center!important}.v91-home-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important}.v91-commander-panel,.v91-next-stage,.v91-shortcuts button{min-width:0}.v91-commander-body{min-width:0}.v91-commander-body>div:last-child{min-width:0}.v91-next-copy strong{max-width:100%;overflow-wrap:break-word}.v91-shortcuts{min-width:0}.v92-expedition{gap:var(--hd95-gap)!important}.v92-exp-hero{min-height:clamp(215px,27dvh,290px)!important;max-height:none;padding:clamp(14px,2.1vw,28px)!important;border-radius:var(--hd95-round)!important}.v92-exp-copy h1{font-size:clamp(27px,3.5vw,47px)!important;line-height:1.18!important}.v92-exp-badges{display:flex;flex-wrap:wrap;min-width:0}.v92-exp-actions{display:flex;flex-wrap:wrap}.v92-exp-actions>.v90-button{min-width:min(130px,100%);flex:0 1 auto}.v92-exp-side{min-width:0}.v92-stage-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:var(--hd95-gap)!important;grid-auto-rows:auto!important;align-items:stretch}.v92-stage-card{position:relative;min-width:0;min-height:0!important;height:auto!important;aspect-ratio:1.56!important;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:5px;border-radius:var(--hd95-round)!important;padding:clamp(11px,1.3vw,18px)!important;background-size:cover!important;background-position:center!important}.v92-stage-card strong{font-size:clamp(13px,1.35vw,18px)!important;line-height:1.3}.v92-stage-card small,.v92-stage-card em{font-size:clamp(9px,.9vw,12px)!important;line-height:1.4}.v92-stage-card .num{margin-bottom:auto}.v93-summon-refined{min-height:calc(100dvh - 70px)!important;justify-content:center!important}.v93-summon-refined .v93-summon-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:var(--hd95-gap)!important;align-items:stretch!important;width:100%}.v93-summon-refined .v93-summon-copy,.v93-summon-refined .v93-summon-visual{min-width:0;padding:clamp(13px,1.45vw,21px)!important;border-radius:var(--hd95-round)!important}.v93-summon-copy h1{font-size:clamp(29px,3.6vw,51px)!important;line-height:1.17!important}.v93-summon-copy p{font-size:clamp(11px,1vw,14px)!important;line-height:1.65}.v93-summon-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v93-summon-stats>div{min-width:0!important;padding:clamp(8px,.85vw,14px)!important}.v93-summon-stats strong{font-size:clamp(18px,1.8vw,25px)!important}.v93-summon-refined .v93-summon-visual{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(104px,150px)!important;align-items:stretch!important;gap:clamp(9px,1.1vw,14px)!important}.v93-summon-refined .v93-summon-altar{height:100%!important;min-height:clamp(300px,42vh,460px)!important;max-height:none!important;display:grid!important;place-items:center!important}.v93-summon-refined .v93-summon-altar img{display:block;max-width:80%!important;max-height:83%!important;width:auto!important;height:auto!important;object-fit:contain!important}.v93-summon-refined .v93-summon-preview{min-width:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px}.v93-summon-preview .v90-kicker{font-size:10px!important;white-space:normal;text-align:center}.v93-summon-refined .v93-legend-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:min(100%,130px)}.v93-summon-refined .v93-legend-card{min-width:0;max-width:100%}.v93-summon-refined .v93-legend-card .game-card{display:block!important;width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:3/4!important}.v93-summon-refined .v93-summon-packs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(7px,.8vw,12px)!important}.v93-summon-refined .v93-pack{min-width:0!important;min-height:clamp(94px,12vh,132px)!important;padding:clamp(9px,1vw,14px)!important;gap:3px!important;border-radius:14px!important}.v93-pack .mark{font-size:clamp(17px,1.6vw,22px)!important}.v93-pack strong{font-size:clamp(12px,1.25vw,17px)!important;line-height:1.35;overflow-wrap:anywhere}.v93-pack small{font-size:clamp(9px,.81vw,11px)!important}.v92-deck{gap:var(--hd95-gap)!important}.v92-deck .v92-deck-shell,.v92-deck .v92-deck-overview{gap:var(--hd95-gap)!important}.v92-deck-head{gap:10px!important}.v92-deck-head p{max-width:640px}.v92-deck .v92-deck-cards{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-template-rows:auto!important;grid-auto-rows:auto!important;gap:clamp(5px,.75vw,10px)!important;place-items:stretch!important}.v92-deck .v92-deck-cards .v90-deck-slot{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:0!important;height:auto!important;aspect-ratio:3/4!important;padding:3px!important;overflow:hidden!important;border-radius:10px!important}.v92-deck .v92-deck-cards .v90-deck-slot .game-card{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;margin:0!important;transform:none!important;aspect-ratio:auto!important}.v92-deck .v92-deck-cards .v90-slot-empty{display:grid!important;place-items:center!important;font-size:26px}.v92-deck .v92-collection-shell{gap:12px!important;padding:clamp(12px,1.35vw,20px)!important;border-radius:var(--hd95-round)!important}.v92-deck .v92-collection-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(122px,1fr))!important;gap:clamp(6px,.75vw,11px)!important}.v92-deck .v92-collection-grid>.game-card{min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:3/4!important;margin:0!important;transform:none!important}.v92-deck .v92-collection-grid .card-art,.v92-deck .v92-deck-cards .card-art{max-width:100%;background-size:cover!important;background-repeat:no-repeat!important;background-position:center 24%!important}.v92-deck .v90-filterbar{width:100%;min-width:0;flex-wrap:wrap!important}.v92-deck .v90-filterbar>div{max-width:100%;gap:5px!important}.v92-deck .v90-filterbar button{padding:7px clamp(7px,.75vw,12px)!important;white-space:normal!important}.v92-deck .v92-collection-top{flex-wrap:wrap;gap:10px}.v93-rewards{gap:var(--hd95-gap)!important}.v93-rewards .v92-reward-head{gap:10px!important}.v93-rewards .v92-reward-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.v93-rewards .v93-daily-board{min-width:0!important;padding:clamp(11px,1.6vw,22px)!important;border-radius:var(--hd95-round)!important}.v93-rewards .v93-day-grid{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-auto-flow:row dense;gap:clamp(6px,.75vw,10px)!important;width:100%;margin:12px 0 0!important}.v93-rewards .v93-day-card{min-width:0!important;min-height:0!important;height:auto!important;aspect-ratio:1.13!important;border-radius:11px!important;overflow:hidden!important;transform:none!important}.v93-rewards .v93-day-card.legend{grid-column:span 2!important;aspect-ratio:auto!important;min-height:125px!important}.v93-rewards .v93-day-art{background-position:center 30%!important;transform:scale(1.02)!important}.v93-rewards .v93-day-overlay{background:linear-gradient(180deg,rgba(5,11,18,.08) 0%,rgba(4,11,17,.23) 30%,rgba(5,11,18,.94) 100%)}.v93-rewards .v93-day-badge{margin:7px 0 0 7px!important;padding:3px 5px!important;letter-spacing:.045em!important;font-size:clamp(8px,.72vw,10px)!important;line-height:1.2!important}.v93-rewards .v93-day-state{top:7px!important;bottom:auto!important;right:6px!important;left:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-width:calc(100% - 54px)!important;display:inline-block!important;writing-mode:horizontal-tb!important;white-space:nowrap!important;padding:3px 5px!important;font-size:9px!important;line-height:1.2!important;border-radius:6px!important}.v93-rewards .v92-daily-foot{margin-top:13px!important;gap:8px!important;align-items:center!important}.v93-rewards .v92-daily-actions{min-width:0;gap:7px}.v93-rewards .v92-daily-actions .v90-button{min-height:42px!important}.v93-rewards .v92-missions-board{padding:clamp(12px,1.4vw,22px)!important;border-radius:var(--hd95-round)!important}.v93-rewards .v92-missions-list{gap:10px!important}@media (max-width:1350px){.v92-deck .v92-deck-cards{grid-template-columns:repeat(7,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}.v92-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}@media (max-width:1080px){.v92-deck .v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v93-summon-refined .v93-summon-topbar{grid-template-columns:minmax(0,1fr)!important}.v93-summon-refined{justify-content:flex-start!important;min-height:0!important}.v93-summon-refined .v93-summon-visual{grid-template-columns:minmax(0,1fr) minmax(120px,180px)!important}.v93-summon-refined .v93-summon-altar{min-height:240px!important;max-height:340px!important}.v93-summon-refined .v93-legend-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:170px}
}@media (max-width:900px){.v91-home{min-height:0!important;justify-content:flex-start!important}.v91-home-grid{grid-template-columns:minmax(0,1fr)!important}.v92-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v92-deck .v92-deck-cards{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important}
}@media (max-width:760px){:root{--hd95-gap:10px;--hd95-inset:12px}#view{scrollbar-gutter:auto!important}#view>.v90-screen{padding:12px 12px calc(22px + env(safe-area-inset-bottom))!important;gap:10px!important}.topbar{min-width:0;padding-inline:10px!important}.top-left{min-width:0;gap:7px}.top-right{flex-shrink:0;gap:5px!important}.topbar .currency{min-width:0!important;gap:3px!important;padding:5px 6px!important}.topbar .crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.v90-screen h1{font-size:clamp(25px,7vw,34px)!important;line-height:1.19!important}.v91-home-grid{gap:10px!important}.v91-commander-panel,.v91-next-stage{width:100%}.v91-commander-body{gap:10px!important}.v91-commander-portrait{width:clamp(74px,23vw,102px)!important;height:auto!important;aspect-ratio:4/5}.v91-commander-body h2{font-size:clamp(24px,7vw,34px)!important}.v91-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.v91-shortcuts button{min-width:0;padding:10px!important}.v92-exp-hero{display:flex!important;flex-direction:column;min-height:0!important;gap:11px!important}.v92-exp-copy h1{font-size:clamp(26px,7.6vw,38px)!important}.v92-exp-side{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v92-exp-side-card{min-width:0;padding:10px!important}.v92-exp-side-card strong{font-size:clamp(17px,5vw,22px)!important}.v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v92-stage-card{aspect-ratio:1.46!important;padding:10px!important}.v92-stage-card strong{font-size:clamp(12px,3.55vw,15px)!important}.v92-stage-card small,.v92-stage-card em{font-size:9px!important}.v93-summon-refined .v93-summon-topbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;align-content:start!important}.v93-summon-refined .v93-summon-copy{display:contents!important}.v93-summon-refined .v93-summon-topbar{background:linear-gradient(135deg,#0b1625e8,#0b111be7);border:1px solid var(--hd95-line);border-radius:16px;padding:13px!important}.v93-summon-refined .v93-summon-copy>.v90-kicker{order:1}.v93-summon-refined .v93-summon-copy>h1{order:2;font-size:clamp(27px,7.6vw,35px)!important;margin:0!important}.v93-summon-refined .v93-summon-copy>p{order:3;margin:0!important;font-size:11.5px!important}.v93-summon-refined .v93-summon-stats{order:4;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:2px 0!important}.v93-summon-refined .v93-summon-stats>div{min-width:0;padding:8px!important}.v93-summon-refined .v93-summon-stats strong{font-size:20px!important}.v93-summon-refined .v93-summon-note{order:5;margin:0!important;padding:10px 12px!important;min-width:0}.v93-summon-refined .v93-summon-note b{font-size:11px!important}.v93-summon-refined .v93-summon-note span{font-size:10px!important}.v93-summon-refined .v93-summon-visual{order:6;display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:8px!important;gap:8px!important;border-radius:13px!important}.v93-summon-refined .v93-summon-altar{height:clamp(205px,32dvh,275px)!important;min-height:0!important;max-height:none!important;border-radius:12px!important}.v93-summon-refined .v93-summon-altar img{max-height:88%!important;max-width:68%!important;width:auto!important;object-fit:contain!important}.v93-summon-refined .v93-summon-core{width:190px!important;height:190px!important}.v93-summon-refined .v93-summon-aura{width:235px!important;height:235px!important}.v93-summon-refined .v93-summon-preview{display:none!important}.v93-summon-refined .v93-summon-packs{order:7;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0!important}.v93-summon-refined .v93-pack{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:88px!important;height:auto!important;padding:8px 5px!important;text-align:center}.v93-summon-refined .v93-pack strong{font-size:clamp(10px,2.9vw,12px)!important;letter-spacing:0!important;word-break:keep-all}.v93-summon-refined .v93-pack small{font-size:9px!important;line-height:1.25}.v93-summon-refined .v93-pack em{font-size:10px!important}.v92-deck .v92-deck-shell{gap:10px!important}.v92-deck-head h1{font-size:clamp(27px,7.5vw,34px)!important}.v92-deck .v92-deck-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important;gap:7px!important}.v92-deck .v92-deck-head-actions>.v90-button{width:100%;min-width:0!important;min-height:40px!important;padding:8px 5px!important}.v92-deck .v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v92-deck .v92-collection-shell{padding:10px!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v92-deck .v92-collection-grid .game-card .card-name,.v92-deck .v92-deck-cards .game-card .card-name{font-size:clamp(9px,2.6vw,11px)!important}.v92-deck .v90-filterbar>div{gap:3px!important}.v92-deck .v90-filterbar button{padding:6px 8px!important;font-size:10px!important}.v93-rewards .v92-reward-head{gap:7px!important}.v93-rewards .v92-reward-meta{gap:5px!important;flex-wrap:wrap}.v93-rewards .v93-daily-board{padding:9px!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-top:9px!important}.v93-rewards .v93-day-card{min-height:0!important;aspect-ratio:.90!important;border-radius:10px!important}.v93-rewards .v93-day-card.legend{grid-column:span 1!important;aspect-ratio:.90!important;min-height:0!important}.v93-rewards .v93-day-badge{margin:5px 0 0 5px!important;padding:3px 4px!important;font-size:8px!important}.v93-rewards .v93-day-state{right:4px!important;top:5px!important;padding:2px 3px!important;font-size:8px!important;max-width:calc(100% - 44px)!important}.v93-rewards .v92-daily-foot{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v93-rewards .v92-daily-actions{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}.v93-rewards .v92-daily-actions>.v90-button{min-width:0!important;width:100%!important;padding:5px!important;font-size:10px!important}.v93-rewards .v92-missions-list{grid-template-columns:1fr!important}.overlay-shade{padding:10px!important;align-items:center!important;max-width:100vw}.modal{width:100%!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;padding:18px 13px!important}
}@media (max-width:339px){.v93-rewards .v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v93-rewards .v93-day-card{aspect-ratio:1.15!important}.v93-rewards .v93-day-card.legend{grid-column:span 2!important;aspect-ratio:2.3!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v92-deck .v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v93-summon-refined .v93-summon-altar{height:205px!important}
}@media (prefers-reduced-motion:reduce){.v93-day-card,.game-card,.v92-stage-card{transition:none!important;animation:none!important}
}@media (min-width:1351px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(8,minmax(0,1fr))!important;justify-content:stretch!important;gap:clamp(6px,.75vw,10px)!important}
}@media (min-width:1081px) and (max-width:1350px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(7,minmax(0,1fr))!important;justify-content:stretch!important;gap:8px!important}
}@media (min-width:901px) and (max-width:1080px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important;justify-content:stretch!important;gap:8px!important}
}@media (min-width:761px) and (max-width:900px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-content:stretch!important;gap:8px!important}
}@media (max-width:760px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;justify-content:stretch!important;gap:7px!important}
}@media (max-width:760px){html[data-hd-theme="ink"] .v93-summon-refined .v93-summon-topbar{background:rgba(20,17,13,.92)!important;border-color:rgba(201,168,106,.42)!important;border-radius:3px!important
 }html[data-hd-theme="gilt"] .v93-summon-refined .v93-summon-topbar{background:linear-gradient(180deg,#111827eb,#0a0f1af2)!important;border-color:rgba(233,214,171,.4)!important;border-radius:6px!important
 }
}@media (min-width:480px) and (max-width:760px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-rewards .v93-day-card,.v93-rewards .v93-day-card.legend{aspect-ratio:1.06!important}.v92-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}@media (min-width:640px) and (max-width:760px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v92-deck .v92-collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}@media (min-width:1650px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px!important;justify-content:stretch!important}
}@media (min-width:2300px){.v92-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(12,minmax(0,172px))!important;justify-content:space-between!important}.v93-rewards .v93-day-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important}
}html,body,#hd-opening-root{max-width:100%}.v96-tabbar{display:none;gap:7px;padding:4px;background:#07101cd9;border:1px solid #bd985b4a;border-radius:12px}.v96-tabbar button{flex:1;min-width:0;border:1px solid transparent;border-radius:9px;background:none;color:#c8b69b;padding:10px;font:600 12px/1.2 inherit;cursor:pointer}.v96-tabbar button.active{background:linear-gradient(120deg,#513e26,#8b6332);color:#fff5da;border-color:#bb9760}.v96-deck,.v96-rewards{gap:9px!important;min-height:0!important}.v96-deck .v92-deck-shell{display:flex!important;flex-direction:column;gap:10px!important}.v96-deck .v92-deck-head{display:flex!important;gap:10px!important;align-items:center!important;min-height:0!important;padding:7px 1px!important}.v96-deck .v92-deck-head h1,.v96-rewards .v92-reward-head h1{font-size:clamp(23px,2.3vw,32px)!important;margin:1px 0 3px!important}.v96-deck .v92-deck-head p,.v96-rewards .v92-reward-head p{font-size:clamp(10px,.85vw,12px)!important;margin:0!important;line-height:1.4}.v96-deck .v92-deck-head-actions{gap:7px!important}.v96-deck .v92-deck-head-actions .v90-button{min-height:36px!important;max-height:40px!important;white-space:nowrap!important;padding:8px 13px!important}.v96-deck .v92-deck-overview{display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important;min-height:0!important;background:none!important}.v96-deck-caption{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:7px 11px;background:linear-gradient(90deg,#122131c9,#0b1520d3);border:1px solid #cba46b40;border-radius:9px;font-size:11px;letter-spacing:.035em;color:#f1d8aa}.v96-deck-caption small{margin-left:auto;font-size:10px;color:#b8aa91}.v96-deck-caption button{background:none;border:none;color:#d9c091;font:inherit;font-size:11px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.v96-deck .v90-deck-cards.v92-deck-cards{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:clamp(4px,.5vw,8px)!important;justify-content:stretch!important;grid-template-rows:auto!important}.v96-deck .v90-deck-cards .v90-deck-slot{aspect-ratio:3/4!important;padding:2px!important;height:auto!important;min-height:0!important}.v96-deck .v90-deck-cards .game-card{min-width:0!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!important}.v96-deck .v90-deck-cards .card-info{padding:2px 1px!important}.v96-deck .v90-deck-cards .card-name{font-size:clamp(7px,.85vw,10px)!important;line-height:1.17!important}.v96-deck .v92-collection-shell{display:flex!important;flex-direction:column!important;gap:8px!important;padding:10px!important;min-height:0!important}.v96-deck .v92-collection-top{display:flex!important;align-items:center!important;gap:9px!important}.v96-deck .v92-collection-top h3{margin:2px 0!important;font-size:17px!important}.v96-deck .v90-filterbar{display:flex!important;flex-wrap:wrap!important;gap:5px!important}.v96-deck .v90-filterbar button{min-height:27px!important;padding:4px 8px!important;font-size:10px!important}.v96-collection-scroll{max-height:clamp(270px,44dvh,475px);overflow:auto;scrollbar-width:thin;scrollbar-color:#8a724b #0a1420;overscroll-behavior:contain}.v96-deck .v92-collection-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(93px,1fr))!important;gap:7px!important;align-items:start!important}.v96-deck .v92-collection-grid>.game-card{max-width:135px!important;min-width:0!important;width:100%!important;height:auto!important;aspect-ratio:3/4!important;min-height:0!important}.v96-deck .v92-collection-grid .card-name{font-size:11px!important}.v96-rewards .v92-reward-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;padding:4px 0 5px!important;min-height:0!important}.v96-rewards .v92-reward-meta{gap:5px!important}.v96-rewards .v92-reward-meta span{font-size:10px!important;padding:6px 9px!important}.v96-rewards .v92-reward-grid{display:grid!important;grid-template-columns:minmax(0,1.95fr) minmax(265px,1fr)!important;gap:11px!important;align-items:start!important}.v96-rewards .v92-daily-board,.v96-rewards .v92-missions-board{min-width:0!important;padding:11px!important;min-height:0!important;max-height:none!important;border-radius:12px!important}.v96-board-title{display:flex;align-items:center;gap:10px;margin-bottom:7px;color:#f2d5a0}.v96-board-title h2{font-size:17px!important;margin:0!important}.v96-board-title small{margin-left:auto;color:#cdb68c;font-size:10px}.v96-rewards .v93-day-grid{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important;margin:3px 0 0!important;grid-auto-flow:row!important}.v96-rewards .v93-day-card,.v96-rewards .v93-day-card.legend{grid-column:span 1!important;min-width:0!important;min-height:0!important;aspect-ratio:1 / 1!important;border-radius:7px!important;box-shadow:none!important}.v96-rewards .v93-day-card .v93-day-badge{margin:3px!important;padding:2px 4px!important;border:0!important;font:600 9px/1.2 Arial,sans-serif!important;letter-spacing:0!important}.v96-rewards .v93-day-state{font-size:8px!important;padding:1px 3px!important;top:3px!important;right:3px!important;bottom:auto!important;border-radius:4px!important}.v96-rewards .v92-daily-foot{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin-top:9px!important}.v96-rewards .v92-daily-stat{padding:0!important;margin-right:auto!important}.v96-rewards .v92-daily-stat strong{font-size:13px!important}.v96-rewards .v92-daily-actions{display:flex!important;flex:1 1 auto!important;justify-content:flex-end!important;gap:7px!important}.v96-rewards .v92-daily-actions .v90-button{min-height:34px!important;min-width:0!important;font-size:10px!important;padding:6px 8px!important}.v96-rewards .v92-missions-head{margin-bottom:8px!important}.v96-rewards .v92-missions-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;max-height:clamp(350px,69dvh,690px);overflow:auto;scrollbar-width:thin}.v96-rewards .v92-mission-card{padding:6px 8px!important;min-height:0!important;gap:6px!important}.v96-rewards .v92-mission-icon{height:30px!important;width:30px!important;min-width:30px!important;font-size:17px!important}.v96-rewards .v92-mission-top{font-size:11px!important}.v96-rewards .v92-mission-bottom{margin-top:5px!important;gap:4px!important}.v96-rewards .v92-mission-bottom button{min-height:25px!important;padding:3px 6px!important;font-size:10px!important}.ritual-rewards{z-index:10!important}.hd-language-pick{margin:13px 0;padding:13px;border:1px solid #bc955a65;border-radius:13px;background:#081320d9}.hd-language-pick>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.hd-language-pick strong{color:#f3d6a3;font-size:13px}.hd-language-pick small{color:#bfb29c;font-size:11px}.hd-language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hd-language-btn{min-width:0;min-height:39px;background:#111e2c;color:#e5d7bc;border:1px solid #ba95565e;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.hd-language-btn.is-on{border-color:#f0d19a;background:#59452c;color:#fff0cf}.hd-language-btn:focus-visible{outline:2px solid #ffe4ab;outline-offset:2px}@media (max-width:1199px){.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v96-rewards .v92-reward-grid{grid-template-columns:minmax(0,1.7fr) minmax(235px,1fr)!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}@media (max-width:760px){.v96-tabbar{display:flex}.v96-deck .v92-deck-head{align-items:flex-start!important;flex-wrap:wrap!important;padding:2px 0!important}.v96-deck .v92-deck-head p,.v96-rewards .v92-reward-head p{display:none!important}.v96-deck .v92-deck-head-actions{width:100%!important;display:flex!important;grid-template-columns:none!important}.v96-deck .v92-deck-head-actions .v90-button{flex:1}.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}.v96-deck .v90-deck-cards .v90-deck-slot{aspect-ratio:3/4!important}.v96-deck .v90-deck-cards .game-card .card-type{display:none!important}.v96-deck .v90-deck-cards .card-name{font-size:9px!important}.v96-deck .v92-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v96-collection-scroll{max-height:calc(100dvh - 315px);min-height:215px}.v96-deck[data-deck-view="deck"] .v96-owned-collection{display:none!important}.v96-deck[data-deck-view="collection"] .v96-owned-deck{display:none!important}.v96-rewards .v92-reward-head{gap:3px!important}.v96-rewards .v92-reward-head h1{font-size:clamp(23px,6vw,29px)!important}.v96-rewards .v92-reward-meta{display:none!important}.v96-rewards .v92-reward-grid{display:block!important;grid-template-columns:minmax(0,1fr)!important}.v96-rewards[data-rewards-view="daily"] .v96-missions{display:none!important}.v96-rewards[data-rewards-view="missions"] .v96-daily{display:none!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}.v96-rewards .v93-day-card,.v96-rewards .v93-day-card.legend{aspect-ratio:1 / 1!important}.v96-rewards .v92-daily-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.v96-rewards .v92-missions-list{max-height:calc(100dvh - 235px)}.hd-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}@media (max-width:380px){.v96-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}@media (prefers-reduced-motion:reduce){.hd-language-btn{transition:none}}.hd-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}@media (max-width:640px){.hd-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hd-theme-btn{min-width:0;padding:9px 4px!important}.hd-theme-btn span,.hd-theme-btn strong{overflow-wrap:anywhere}}@media (max-width:700px), (max-aspect-ratio:4/5){
}#hd-commander-root{position:fixed;inset:0;z-index:520;overflow:auto;overscroll-behavior:contain;background:#060b12;color:#f8e6c9;touch-action:pan-y
}#hd-commander-root *,#hd-commander-root *::before,#hd-commander-root *::after{box-sizing:border-box}#hd-commander-root .hd99-entry{min-height:100%;min-height:100dvh;display:flex;align-items:center;justify-content:center;isolation:isolate;position:relative;padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));overflow:hidden;background:radial-gradient(ellipse at 50% 25%,#223042 0%,#0a1019 40%,#04070c 100%)
}#hd-commander-root .hd99-entry-atmosphere{position:absolute;inset:-5%;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#03070dee 0%,#050a12b0 40%,#050a12b0 60%,#03070dee 100%),
            linear-gradient(180deg,#03060ccc,#07101b33 45%,#02040ae6 100%),
            url("../assets/lobby_panorama.webp") center / cover no-repeat;opacity:.72;filter:saturate(.76)
}#hd-commander-root .hd99-entry-shell{width:min(1040px,100%);display:flex;flex-direction:column;gap:clamp(14px,2dvh,25px);position:relative}#hd-commander-root .hd99-entry-heading{text-align:center;display:flex;align-items:center;flex-direction:column;gap:6px;margin:0}#hd-commander-root .hd99-eyebrow{font:500 clamp(9px,1.3vw,11px)/1.5 "Cinzel",Georgia,serif;letter-spacing:.21em;color:#d1ae7e;display:flex;gap:12px;align-items:center}#hd-commander-root .hd99-eyebrow i{display:inline-block;width:3px;height:3px;background:#dcbb86;transform:rotate(45deg)}#hd-commander-root .hd99-entry-heading h1{margin:7px 0 2px;font:600 clamp(27px,3.5vw,43px)/1.3 "Noto Serif KR",serif;letter-spacing:.04em;color:#ffeed2;text-shadow:0 5px 25px #000a}#hd-commander-root .hd99-entry-heading p{margin:0;font:400 clamp(11px,1.3vw,13px)/1.6 "Noto Serif KR",serif;letter-spacing:.05em;color:#cec2ae}#hd-commander-root .hd99-entry-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}#hd-commander-root .hd99-choice{position:relative;display:block;width:100%;min-width:0;height:clamp(295px,46dvh,465px);border:1px solid #bda07175;border-radius:13px;overflow:hidden;cursor:pointer;background:#09121d;box-shadow:0 26px 65px #0009,inset 0 1px #fce8c528;color:#f9e8ca;text-align:left;padding:0;isolation:isolate;transition:border-color .22s ease,transform .25s ease,box-shadow .25s ease
}#hd-commander-root .hd99-choice img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;opacity:.9;filter:saturate(.84) contrast(1.07);transition:transform .55s ease,filter .35s ease;pointer-events:none}#hd-commander-root .hd99-choice-wash{position:absolute;inset:0;background:linear-gradient(0deg,#040810 0%,#07101bea 19%,#06101885 46%,#040b1333 72%,#0409117a 100%),linear-gradient(90deg,#04060c29,transparent 70%);pointer-events:none}#hd-commander-root .hd99-choice::after{content:"";position:absolute;inset:8px;border:1px solid #e7c38930;border-radius:8px;pointer-events:none}#hd-commander-root .hd99-choice-contents{position:absolute;left:clamp(18px,2.5vw,28px);right:clamp(18px,2.5vw,28px);bottom:clamp(18px,2.7vw,29px);display:flex;flex-direction:column;align-items:flex-start;gap:6px}#hd-commander-root .hd99-choice-kicker{width:100%;display:flex;align-items:center;justify-content:space-between;font:600 10px/1.4 "Cinzel",Georgia,serif;letter-spacing:.16em;color:#e8c793}#hd-commander-root .hd99-choice-kicker>span{color:#f4d7ad90}#hd-commander-root .hd99-choice-contents strong{font:600 clamp(27px,3vw,40px)/1.22 "Noto Serif KR",serif;letter-spacing:.03em;color:#fff2d7;text-shadow:0 4px 20px #000}#hd-commander-root .hd99-choice-contents small{font:400 12px/1.5 "Noto Serif KR",serif;color:#ddd0b9;letter-spacing:.01em}#hd-commander-root .hd99-choice-button{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;min-width:185px;padding:10px 14px;border:1px solid #e7bd7d99;border-radius:5px;background:linear-gradient(115deg,#d9b778,#f0d6aa);color:#21180c;font:600 12px/1.25 "Noto Serif KR",serif;box-shadow:0 7px 17px #0008}#hd-commander-root .hd99-choice-button b{font:600 17px/1 Georgia,serif}#hd-commander-root .hd99-choice:hover,#hd-commander-root .hd99-choice:focus-visible{border-color:#f8dcaa;transform:translateY(-3px);box-shadow:0 30px 72px #000b,0 0 32px #bb915d30}#hd-commander-root .hd99-choice:hover img,#hd-commander-root .hd99-choice:focus-visible img{transform:scale(1.06);filter:saturate(1) contrast(1.08)}#hd-commander-root .hd99-choice:focus-visible{outline:2px solid #ffdda4;outline-offset:4px}#hd-commander-root .hd99-entry-footer{display:flex;align-items:center;justify-content:center;gap:11px;text-align:center;font:400 clamp(10px,1.1vw,12px)/1.7 "Noto Serif KR",serif;color:#bfae95;letter-spacing:.025em}#hd-commander-root .hd99-entry-footer>span{color:#caa46b;font-size:11px}@media (max-width:700px){#hd-commander-root .hd99-entry{padding:clamp(17px,3dvh,27px) 14px max(18px,env(safe-area-inset-bottom));align-items:center}#hd-commander-root .hd99-entry-shell{width:min(520px,100%);gap:clamp(12px,2dvh,20px)}#hd-commander-root .hd99-entry-heading{gap:2px}#hd-commander-root .hd99-entry-heading h1{font-size:clamp(25px,6.8vw,33px);margin:5px 0 0}#hd-commander-root .hd99-entry-heading p{font-size:11px;line-height:1.6}#hd-commander-root .hd99-entry-choices{grid-template-columns:1fr;gap:10px}#hd-commander-root .hd99-choice{height:clamp(190px,30dvh,268px);border-radius:9px}#hd-commander-root .hd99-choice img{object-position:center 26%}#hd-commander-root .hd99-choice-wash{background:linear-gradient(90deg,#050b14f7 0%,#07101bca 35%,#06121c30 76%,#040a1166 100%),linear-gradient(0deg,#040810bf,#04111b12 74%)}#hd-commander-root .hd99-choice-contents{left:20px;right:16px;bottom:18px;gap:4px}#hd-commander-root .hd99-choice-kicker{justify-content:flex-start;gap:9px;font-size:9px}#hd-commander-root .hd99-choice-kicker>span{display:none}#hd-commander-root .hd99-choice-contents strong{font-size:clamp(25px,6.6vw,34px)}#hd-commander-root .hd99-choice-contents small{font-size:11px}#hd-commander-root .hd99-choice-button{min-width:min(181px,80vw);margin-top:6px;padding:8px 11px;font-size:11px}#hd-commander-root .hd99-entry-footer{font-size:10px;line-height:1.6}#hd-commander-root .hd99-entry-footer>span{display:none}
}@media (max-width:380px), (max-height:690px) and (max-width:700px){#hd-commander-root .hd99-entry{padding:10px 12px 12px;align-items:flex-start}#hd-commander-root .hd99-entry-shell{gap:9px;margin:auto 0}#hd-commander-root .hd99-entry-heading h1{font-size:24px}#hd-commander-root .hd99-choice{height:clamp(165px,28dvh,206px)}#hd-commander-root .hd99-choice-contents{left:15px;bottom:10px}#hd-commander-root .hd99-choice-contents strong{font-size:25px}#hd-commander-root .hd99-choice-button{padding:7px 11px;margin-top:4px}
}@media (max-width:700px) and (orientation:landscape){#hd-commander-root .hd99-entry{overflow:auto}#hd-commander-root .hd99-entry-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#hd-commander-root .hd99-choice{height:230px}
}@media (prefers-reduced-motion:reduce){#hd-commander-root .hd99-choice,#hd-commander-root .hd99-choice img{transition:none!important}}#hd-opening-root{position:fixed!important;inset:0!important;z-index:30000!important;pointer-events:auto!important;transition:opacity .65s ease!important}#hd-opening-root.kingdom-gate-dismissing{opacity:0!important;pointer-events:none!important}#hd-opening-root .kingdom-entrance{position:absolute!important;inset:0!important;background:#060609!important;display:block!important;overflow:hidden!important;color:#f1dbb2!important;font-family:"Noto Serif KR",Georgia,serif!important}.kingdom-entrance *{box-sizing:border-box}#kingdom-video-root{position:fixed;inset:0;z-index:50000;background:#030306;color:#f6e0b6;opacity:0;transition:opacity .5s ease;pointer-events:auto}#kingdom-video-root.kingdom-film-visible{opacity:1}#kingdom-video-root.kingdom-film-exit{opacity:0;pointer-events:none}#kingdom-video-root .kingdom-video-veil{position:absolute;inset:0;display:grid;place-items:center;background:#000;overflow:hidden}#kingdom-video-root .kingdom-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}#kingdom-video-root .kingdom-film-wait{position:absolute;inset:0;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at center,#59402b42,transparent 55%),#06070a;transition:opacity .8s ease}#kingdom-video-root.kingdom-film-playing .kingdom-film-wait{opacity:0}.kingdom-film-wait span{font:600 clamp(30px,5vw,58px) "Noto Serif KR",serif;letter-spacing:.18em;text-shadow:0 3px 30px #b68b4c66}.kingdom-film-wait small{font:11px Georgia,serif;letter-spacing:.18em;color:#c8a774}#kingdom-video-root .kingdom-skip,#kingdom-video-root .kingdom-retry{z-index:5;position:absolute;bottom:max(22px,env(safe-area-inset-bottom));right:24px;border:1px solid #c2a1758c;border-radius:3px;background:#0d111bcc;color:#efdaae;padding:10px 16px;font:12px "Noto Serif KR",sans-serif;cursor:pointer;backdrop-filter:blur(6px)}#kingdom-video-root .kingdom-retry{right:auto;left:50%;transform:translateX(-50%);bottom:20%}#kingdom-video-root .kingdom-retry[hidden]{display:none}#kingdom-video-root.kingdom-film-error .kingdom-film-wait:after{content:"영상을 열 수 없어 다음 화면으로 넘어갑니다.";font:12px "Noto Serif KR",sans-serif;margin-top:20px;color:#d9bea0}#hd-opening-root .kingdom-first-v103 *{box-sizing:border-box}#hd-opening-root .kingdom-first-v103{position:relative;width:100%;min-height:100svh;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden}#hd-opening-root .kingdom-first-v103 .scene{position:absolute;inset:-2.5%;z-index:-3;background:#030407 url("../assets/kingdom_first_bg.webp") center 51% / cover no-repeat;animation:kingdom103-breathing 20s ease-in-out infinite alternate;transform-origin:center 51%}@keyframes kingdom103-breathing{from{transform:scale(1.32)}to{transform:scale(1.38)}}#hd-opening-root .kingdom-first-v103 .scene-shade{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#050507 0%,#050507 16%,rgba(5,5,8,.99) 20%,rgba(5,5,8,.13) 33%,rgba(5,5,8,.13) 58%,rgba(4,5,8,.86) 73%,#050608 80%,#050608 100%),linear-gradient(90deg,rgba(3,4,6,.51),transparent 20%,transparent 80%,rgba(3,4,6,.51))}#hd-opening-root .kingdom-first-v103 .vignette{position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:inset 0 0 16vw 4vw #020308c2}#hd-opening-root .kingdom-first-v103 .embers{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;opacity:.48}#hd-opening-root .kingdom-first-v103 .spark{position:absolute;left:var(--x);bottom:-15px;background:#ffc477;box-shadow:0 0 11px 2px #dd7c27;border-radius:100%;width:2px;height:2px;animation:kingdom103-float var(--duration) ease-in infinite;animation-delay:var(--delay)}@keyframes kingdom103-float{0%{opacity:0;transform:translate3d(0,0,0)}20%{opacity:.9}75%{opacity:.45}100%{opacity:0;transform:translate3d(var(--dx),-72vh,0)}}#hd-opening-root .kingdom-first-v103 .brand{position:relative;width:min(94%,900px);padding-top:clamp(22px,3.4vh,46px);display:flex;flex-direction:column;align-items:center;text-align:center;flex:0 0 auto}#hd-opening-root .kingdom-first-v103 .strap{font:600 clamp(9px,.72vw,11px) / 1.4 Georgia,serif;letter-spacing:.46em;color:#c5a170;margin:0 0 9px;text-shadow:0 1px 7px #000}#hd-opening-root .kingdom-first-v103 .name{margin:0;padding:0;font-size:clamp(47px,5.7vw,83px);letter-spacing:.17em;padding-left:.17em;line-height:1.27;font-weight:700;white-space:nowrap;background:linear-gradient(#fbedc8 7%,#dcaf65 52%,#fff0c1 62%,#af7e45 98%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 0 #23130a) drop-shadow(0 3px 17px #030204)}#hd-opening-root .kingdom-first-v103 .name.mn{font-size:clamp(24px,3.25vw,47px);letter-spacing:.025em;padding-left:0;white-space:normal;max-width:95%}#hd-opening-root .kingdom-first-v103 .ornament{display:flex;align-items:center;gap:13px;width:min(340px,70vw);margin:10px 0 9px;color:#dcad69;font-size:12px}#hd-opening-root .kingdom-first-v103 .ornament:before,#hd-opening-root .kingdom-first-v103 .ornament:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,#d8a568a6)}#hd-opening-root .kingdom-first-v103 .ornament:after{transform:scaleX(-1)}#hd-opening-root .kingdom-first-v103 .motto{font-size:clamp(10px,.87vw,13px);letter-spacing:.25em;color:#ddc3a0;margin:0;opacity:.85;text-shadow:0 2px 14px black}#hd-opening-root .kingdom-first-v103 .middle{width:100%;flex:1;min-height:6vh;display:flex;align-items:center;justify-content:center;pointer-events:none}#hd-opening-root .kingdom-first-v103 .gate-glow{width:min(19vw,230px);height:22vh;opacity:.4;filter:blur(30px);background:radial-gradient(ellipse at center,#f2b76c8a,transparent 67%);animation:kingdom103-glimmer 5s ease-in-out infinite alternate}@keyframes kingdom103-glimmer{to{opacity:.68;transform:scaleX(1.3)}}#hd-opening-root .kingdom-first-v103 .controls{flex:0 0 auto;width:min(440px,calc(100% - 34px));margin:0 auto max(38px,env(safe-area-inset-bottom));padding:0 0 clamp(4px,2vh,25px);display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;z-index:2}#hd-opening-root .kingdom-first-v103 .language-label{display:flex;align-items:center;gap:11px;width:100%;justify-content:center;color:#edd0a0;font-size:clamp(11px,1vw,13px);font-weight:600;letter-spacing:.16em;text-shadow:0 3px 8px #050506;margin-bottom:13px}#hd-opening-root .kingdom-first-v103 .language-label::before,#hd-opening-root .kingdom-first-v103 .language-label::after{content:"✦";font-size:9px;color:#c59751;opacity:.8}#hd-opening-root .kingdom-first-v103 .language-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}#hd-opening-root .kingdom-first-v103 button{font-family:inherit;cursor:pointer;touch-action:manipulation}#hd-opening-root .kingdom-first-v103 .lang-btn{position:relative;height:clamp(47px,5.5vh,55px);border:1px solid #856c4c9c;border-radius:3px;background:linear-gradient(160deg,rgba(16,20,27,.91),rgba(7,11,18,.96));color:#ebd6b3;font-size:clamp(14px,1.1vw,17px);letter-spacing:.05em;font-weight:600;transition:transform .25s,box-shadow .38s,color .3s,border-color .38s,background .38s;overflow:hidden}#hd-opening-root .kingdom-first-v103 .lang-btn::before{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid rgba(234,189,120,.10)}#hd-opening-root .kingdom-first-v103 .lang-btn:hover{transform:translateY(-2px);border-color:#d9ad68;color:#fff3da;box-shadow:0 9px 28px #01010195}#hd-opening-root .kingdom-first-v103 .lang-btn:focus-visible,#hd-opening-root .kingdom-first-v103 .start:focus-visible,#hd-opening-root .kingdom-first-v103 .restart:focus-visible{outline:2px solid #ffdc9e;outline-offset:4px}#hd-opening-root .kingdom-first-v103 .lang-btn.selected{background:linear-gradient(126deg,#53361f,#94704c 48%,#56371e);border-color:#f4cf92;box-shadow:0 0 0 1px #bd904e69,inset 0 0 21px #ffd17b28,0 0 33px #d9a1594a;color:#fff2d3}#hd-opening-root .kingdom-first-v103 .lang-btn.selected::after{content:"◆";position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#ffdda5;font-size:8px;text-shadow:0 0 7px #ffd994}#hd-opening-root .kingdom-first-v103 .selection{width:100%;max-height:0;visibility:hidden;opacity:0;transform:translateY(-11px);transition:max-height .72s cubic-bezier(.22,.82,.3,1), opacity .5s ease, transform .65s ease, visibility 0s .72s;overflow:hidden}#hd-opening-root .kingdom-first-v103 .selection.visible{max-height:204px;visibility:visible;opacity:1;transform:translateY(0);transition:max-height .8s cubic-bezier(.22,.82,.3,1),opacity .65s ease .1s,transform .7s ease,visibility 0s 0s}#hd-opening-root .kingdom-first-v103 .start{position:relative;isolation:isolate;display:flex;width:100%;margin-top:14px;height:clamp(54px,6vh,65px);align-items:center;justify-content:center;gap:20px;border-radius:3px;border:1px solid #ffe6af;color:#170e08;background:linear-gradient(112deg,#b88745 0%,#efd19c 25%,#d3a35d 54%,#efc78b 75%,#ad7a3b);font-weight:800;letter-spacing:.22em;font-size:clamp(17px,1.45vw,21px);box-shadow:inset 0 1px 0 #fff4d8,0 4px 0 #4c2d0f,0 14px 36px #000c,0 0 35px #c78e4c5c;overflow:hidden;transition:filter .25s, transform .25s}#hd-opening-root .kingdom-first-v103 .start::after{content:"";position:absolute;top:-90%;left:-50%;width:29%;height:280%;background:linear-gradient(90deg,transparent,#ffffff99,transparent);transform:rotate(21deg);animation:kingdom103-sheen 4.4s ease-in-out 1.3s infinite;pointer-events:none}@keyframes kingdom103-sheen{0%,25%{left:-55%}56%,100%{left:130%}}#hd-opening-root .kingdom-first-v103 .start:hover{transform:translateY(-2px);filter:brightness(1.12)}#hd-opening-root .kingdom-first-v103 .start .arrow{font:24px Georgia,serif;letter-spacing:0;font-weight:400}#hd-opening-root .kingdom-first-v103 .footnote{color:#917953;font:10px Georgia,serif;letter-spacing:.28em;text-align:center;margin-top:17px;opacity:.86}#hd-opening-root .kingdom-first-v103 .restart{margin-top:15px;border:1px solid #b58d55a8;background:#16120f;color:#edd0a0;padding:13px 34px;border-radius:3px;font-size:14px}@media (max-width:680px){#hd-opening-root .kingdom-first-v103 .brand{padding-top:clamp(36px,7vh,80px)}#hd-opening-root .kingdom-first-v103 .strap{font-size:10px;letter-spacing:.30em;margin-bottom:17px}#hd-opening-root .kingdom-first-v103 .name{font-size:clamp(43px,10vw,66px);letter-spacing:.12em;padding-left:.12em}#hd-opening-root .kingdom-first-v103 .name.mn{font-size:clamp(27px,5.8vw,38px);max-width:100%}#hd-opening-root .kingdom-first-v103 .ornament{margin:15px 0 13px}#hd-opening-root .kingdom-first-v103 .motto{font-size:11px;letter-spacing:.12em}#hd-opening-root .kingdom-first-v103 .scene{inset:-4%;background-position:center 52%}#hd-opening-root .kingdom-first-v103 .scene-shade{background:linear-gradient(180deg,#050507 0%,#050507 16%,rgba(5,5,7,.98) 20%,rgba(5,5,7,.17) 33%,rgba(5,5,7,.2) 57%,rgba(5,5,7,.90) 74%,#050507 81%,#050507 100%)}#hd-opening-root .kingdom-first-v103 .controls{width:min(390px,calc(100% - 32px));margin-bottom:max(35px,env(safe-area-inset-bottom));padding-bottom:10px}#hd-opening-root .kingdom-first-v103 .language-label{font-size:12px}#hd-opening-root .kingdom-first-v103 .lang-btn{height:51px;font-size:16px}#hd-opening-root .kingdom-first-v103 .start{height:58px}}@media (max-height:650px){#hd-opening-root .kingdom-first-v103 .brand{padding-top:15px}#hd-opening-root .kingdom-first-v103 .name{font-size:clamp(31px,7vh,55px)}#hd-opening-root .kingdom-first-v103 .strap{margin-bottom:4px}#hd-opening-root .kingdom-first-v103 .ornament{margin:6px 0}#hd-opening-root .kingdom-first-v103 .controls{margin-bottom:8px;padding-bottom:4px}#hd-opening-root .kingdom-first-v103 .selection.visible{max-height:155px}#hd-opening-root .kingdom-first-v103 .start{height:46px;margin-top:9px}#hd-opening-root .kingdom-first-v103 .lang-btn{height:39px}#hd-opening-root .kingdom-first-v103 .footnote{margin-top:7px}}@media (prefers-reduced-motion:reduce){#hd-opening-root .kingdom-first-v103 *,#hd-opening-root .kingdom-first-v103 *:before,#hd-opening-root .kingdom-first-v103 *:after{animation:none!important;transition-duration:.01ms!important}}#hd-opening-root .kingdom-first-v103{position:fixed!important;inset:0!important;display:flex!important;width:100%!important;height:100dvh!important;min-height:100svh!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;overflow:hidden!important;background:#030408!important;isolation:isolate!important;padding:0!important;max-width:none!important;border:0!important;opacity:1!important;color:#f5e3c4!important}#hd-opening-root .kingdom-first-v103 .scene{background-image:url("../assets/kingdom_first_bg.webp")!important}#hd-opening-root .kingdom-first-v103 .brand{position:relative!important;left:auto!important;top:auto!important;transform:none!important;display:flex!important;visibility:visible!important}#hd-opening-root .kingdom-first-v103 .controls{display:flex!important;max-width:none!important}#hd-opening-root .kingdom-first-v103 .selection:not(.visible){pointer-events:none!important}#hd-opening-root .kingdom-first-v103 .selection.visible{pointer-events:auto!important}#hd-opening-root .kingdom-first-v103 .start{width:100%!important}#hd-opening-root .kingdom-first-v103 .lang-btn.is-on{background:linear-gradient(126deg,#53361f,#94704c 48%,#56371e);border-color:#f4cf92;box-shadow:0 0 0 1px #bd904e69,inset 0 0 21px #ffd17b28,0 0 33px #d9a1594a;color:#fff2d3}@media (max-width:680px){#hd-opening-root .kingdom-first-v103 .brand{padding-top:clamp(36px,7vh,80px)!important}}#hd-opening-root .kingdom-first-v103 .scene-shade{background:linear-gradient(180deg,#050507 0%,#050507 16%,rgba(5,5,8,.99) 20%,rgba(5,5,8,.13) 33%,rgba(5,5,8,.13) 53%,rgba(4,5,8,.87) 64%,#050608 70%,#050608 100%),linear-gradient(90deg,rgba(3,4,6,.51),transparent 20%,transparent 80%,rgba(3,4,6,.51))!important
}#hd-opening-root .kingdom-first-v103 .lang-btn.is-on:not(.selected){background:linear-gradient(160deg,rgba(16,20,27,.91),rgba(7,11,18,.96))!important;border-color:#856c4c9c!important;box-shadow:none!important;color:#ebd6b3!important}#hd-opening-root .kingdom-first-v103 .lang-btn.is-on:not(.selected)::after{content:none!important}#hd-opening-root .kingdom-first-v103{background:#0c0b0c!important;min-height:100dvh!important;overflow:hidden!important
}#hd-opening-root .kingdom-first-v103 .scene{background-image:url("../assets/gate-closed.webp")!important;background-size:cover!important;background-position:center center!important;inset:0!important;animation:none!important;transform:scale(1.012)!important
}#hd-opening-root .kingdom-first-v103 .scene-shade{background:linear-gradient(180deg,rgba(5,7,12,.66) 0%,rgba(3,6,10,.46) 22%,rgba(1,4,8,.10) 41%,rgba(0,3,7,.14) 53%,rgba(1,4,9,.53) 73%,rgba(0,3,8,.91) 100%),
 linear-gradient(90deg,rgba(0,3,6,.34),transparent 20%,transparent 80%,rgba(0,3,6,.34))!important
}#hd-opening-root .kingdom-first-v103 .vignette{box-shadow:inset 0 0 8vw 1vw rgba(0,0,0,.48)!important
}#hd-opening-root .kingdom-first-v103 .gate-glow{display:none!important}#hd-opening-root .kingdom-first-v103 .brand{padding-top:clamp(23px,3vh,42px)!important;background:radial-gradient(ellipse at 50% 30%,rgba(0,0,0,.24),transparent 71%);filter:drop-shadow(0 2px 16px rgba(0,0,0,.7))
}#hd-opening-root .kingdom-first-v103 .strap{color:#f5d5a0!important;text-shadow:0 2px 9px #000!important}#hd-opening-root .kingdom-first-v103 .name{font-size:clamp(49px,6.2vw,92px)!important;background:linear-gradient(180deg,#fff0cc 0%,#f6d79e 45%,#e1b96e 75%,#ffebbd 100%)!important;background-clip:text!important;-webkit-background-clip:text!important;text-shadow:none!important;color:transparent!important;filter:drop-shadow(0 3px 3px rgba(0,0,0,.93)) drop-shadow(0 0 22px rgba(12,8,3,.86))!important
}#hd-opening-root .kingdom-first-v103 .name.mn{font-size:clamp(28px,3.6vw,53px)!important;line-height:1.32!important}#hd-opening-root .kingdom-first-v103 .ornament{color:#ffe3a9!important;margin:5px 0!important}#hd-opening-root .kingdom-first-v103 .motto{color:#fff2d2!important;font-size:clamp(11px,1vw,15px)!important;letter-spacing:.16em!important;opacity:1!important;text-shadow:0 2px 16px #000,0 0 4px #000!important}#hd-opening-root .kingdom-first-v103 .controls{width:min(500px,calc(100% - 32px))!important;margin-bottom:max(22px,env(safe-area-inset-bottom))!important;padding:18px 20px 12px!important;background:linear-gradient(145deg,rgba(8,8,12,.55),rgba(7,9,15,.76));border:1px solid rgba(224,183,118,.35);border-radius:10px;box-shadow:0 22px 65px #0008,inset 0 1px rgba(255,239,196,.12);backdrop-filter:blur(5px)
}#hd-opening-root .kingdom-first-v103 .language-label{margin-bottom:10px!important;color:#ffdfb3!important}#hd-opening-root .kingdom-first-v103 .lang-btn{height:clamp(49px,5vh,58px)!important;box-shadow:0 5px 20px #0008!important}#hd-opening-root .kingdom-first-v103 .lang-btn::before{border-color:rgba(248,221,173,.12)!important}#hd-opening-root .kingdom-first-v103 .start{box-shadow:inset 0 1px 0 #fff3cf,0 3px 0 #67421a,0 12px 37px #000a,0 0 24px rgba(227,169,73,.3)!important}#hd-opening-root .kingdom-first-v103 .footnote{margin-top:10px!important;color:#bba078!important}#kingdom-video-root .kingdom-video{object-fit:cover!important;background:#0a0a0a!important}#kingdom-video-root .kingdom-film-wait{background:linear-gradient(180deg,rgba(1,2,5,.12),rgba(1,2,5,.35)),
 url("../assets/gate-closed.webp") center/cover no-repeat!important
}#kingdom-video-root .kingdom-film-wait span,#kingdom-video-root .kingdom-film-wait small{display:none!important}#kingdom-throne-root{position:fixed;inset:0;z-index:55000;display:grid;place-items:center;background:#030304;opacity:0;transition:opacity .55s ease;overflow:hidden}#kingdom-throne-root.is-playing{opacity:1}#kingdom-throne-root.is-ending{opacity:0;pointer-events:none}#kingdom-throne-root video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;background:#030304}#kingdom-throne-root .kingdom-throne-skip,#kingdom-throne-root .kingdom-throne-replay{position:absolute;bottom:max(25px,env(safe-area-inset-bottom));right:24px;cursor:pointer;border:1px solid #d3b37d96;color:#fae9ce;background:#080c13d4;border-radius:5px;padding:11px 17px;font:600 12px "Noto Serif KR",Georgia,serif;box-shadow:0 8px 24px #0009;z-index:3;backdrop-filter:blur(8px)
}#kingdom-throne-root .kingdom-throne-replay{left:50%;right:auto;transform:translateX(-50%);bottom:17%}#kingdom-throne-root [hidden]{display:none!important}#hd-commander-root .hd99-choice{box-shadow:0 27px 70px #000b,0 0 0 1px #a98a5640!important}#hd-commander-root .hd99-choice img{filter:saturate(1.04) contrast(1.07)!important;opacity:.96!important}@media (max-width:680px){#hd-opening-root .kingdom-first-v103 .scene{background-position:center center!important}#hd-opening-root .kingdom-first-v103 .brand{padding-top:clamp(30px,7vh,74px)!important}#hd-opening-root .kingdom-first-v103 .name{font-size:clamp(40px,10vw,61px)!important}#hd-opening-root .kingdom-first-v103 .name.mn{font-size:clamp(27px,5.4vw,39px)!important}#hd-opening-root .kingdom-first-v103 .controls{width:calc(100% - 30px)!important;padding:14px 12px 12px!important;margin-bottom:max(18px,env(safe-area-inset-bottom))!important}#hd-opening-root .kingdom-first-v103 .lang-btn{height:47px!important;font-size:15px!important}#hd-opening-root .kingdom-first-v103 .motto{font-size:11px!important}
}@media (max-height:650px){#hd-opening-root .kingdom-first-v103 .brand{padding-top:12px!important}#hd-opening-root .kingdom-first-v103 .name{font-size:clamp(30px,7vh,54px)!important}#hd-opening-root .kingdom-first-v103 .controls{padding:8px 12px!important;margin-bottom:4px!important}#hd-opening-root .kingdom-first-v103 .selection.visible{max-height:142px!important}#hd-opening-root .kingdom-first-v103 .start{height:42px!important;margin-top:8px!important}#hd-opening-root .kingdom-first-v103 .lang-btn{height:39px!important}#hd-opening-root .kingdom-first-v103 .footnote{margin-top:5px!important}
}#kingdom-throne-root{background:#05080d;will-change:opacity}#kingdom-throne-root.is-playing{transition:opacity .38s ease}#kingdom-throne-root.is-ending{transition:opacity .65s cubic-bezier(.22,.61,.36,1)}#kingdom-throne-root video{object-fit:cover;object-position:center}#view>.mk-battle{--mk-gold:#e8c48b;--mk-ivory:#fff0d6;--mk-ice:#9ccbf0;--mk-red:#e98773;--mk-border:rgba(216,173,109,.37);box-sizing:border-box;position:relative;isolation:isolate;display:block!important;width:100%;max-width:100%;height:100%;min-height:0;max-height:100%;overflow-x:hidden;overflow-y:auto!important;background:#060b12;color:var(--mk-ivory);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6e5637 #08101c}#view>.mk-battle::before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(3,8,15,.50),rgba(4,8,13,.90)),var(--screen-art) center/cover no-repeat;filter:saturate(.76)}#view>.mk-battle::after{content:"";position:absolute;z-index:0;inset:10px;border:1px solid rgba(227,174,101,.14);pointer-events:none}.mk-battle *, .mk-battle *::before,.mk-battle *::after{box-sizing:border-box}.mk-battle .mk-atmosphere{position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 45% 21%,rgba(212,147,77,.17),transparent 40%),radial-gradient(ellipse at 78% 70%,rgba(57,103,140,.12),transparent 48%)}.mk-battle .mk-commanders{position:relative;z-index:2;display:grid!important;grid-template-columns:minmax(0,1fr) 124px minmax(0,1fr) 34px;gap:12px;align-items:center;padding:11px clamp(12px,2vw,28px);min-height:111px;background:linear-gradient(90deg,#0b1422ed,#152135db 49%,#0b1421ef);border-bottom:1px solid var(--mk-border);box-shadow:0 16px 35px #0008}.mk-battle .mk-commander{display:flex;flex-direction:row;align-items:center;gap:13px;min-width:0;background:transparent!important;border:0!important;margin:0!important;padding:0!important;box-shadow:none!important}.mk-battle .mk-commander.foe{justify-content:flex-end;text-align:right}.mk-battle .mk-commander img{display:block!important;flex:none;width:75px!important;height:83px!important;border:1px solid #ddbd82a8!important;border-radius:10px!important;object-fit:cover;object-position:center 25%;box-shadow:0 12px 26px #0009,0 0 0 2px #b9924a20}.mk-battle .mk-commander-copy{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;width:min(240px,100%)}.mk-battle .mk-commander-copy>small{color:#d0ae76;font:600 10px/1.4 Georgia,serif;letter-spacing:.16em}.mk-battle .mk-commander-copy>strong{color:#fff1d5;font:700 clamp(16px,1.9vw,26px)/1.25 Georgia,"Noto Serif KR",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 12px #000}.mk-battle .mk-hp-label{display:flex;justify-content:space-between;gap:8px;font:600 11px Georgia,serif;color:#d1d6e0}.mk-battle .mk-hp-track{width:100%;height:7px;overflow:hidden;border:1px solid #ffffff29;border-radius:100px;background:#08101b;box-shadow:inset 0 2px 3px #0009}.mk-battle .mk-hp-track i{display:block;height:100%;transition:width .32s ease;background:linear-gradient(90deg,#17668a,#91d4f7);box-shadow:0 0 12px #5bb9fc88}.mk-battle .mk-hp-track.foe i{background:linear-gradient(90deg,#833a3e,#e89680);box-shadow:0 0 12px #ed7e6788}.mk-battle .mk-central-crest{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:87px;background:radial-gradient(ellipse at center,#b38d4b2c,transparent 75%);position:relative}.mk-battle .mk-central-crest:before,.mk-battle .mk-central-crest:after{content:"◆";position:absolute;top:50%;transform:translateY(-50%);font-size:9px;color:#ddc08e6b}.mk-battle .mk-central-crest:before{left:0}.mk-battle .mk-central-crest:after{right:0}.mk-battle .mk-central-crest span{color:#e0ba7a;font:600 10px Georgia,serif;letter-spacing:.17em}.mk-battle .mk-central-crest b{font:700 35px/1.05 Georgia,serif;color:#fff0d2;text-shadow:0 0 24px #daa96160}.mk-battle .mk-central-crest small{color:#bda980;font-size:10px;letter-spacing:.18em}.mk-battle .mk-retreat{display:grid;place-items:center;align-self:start;width:32px;height:32px;background:#0a1422;border:1px solid #8d775b8c;border-radius:50%;color:#e8c997;font-size:16px;cursor:pointer}.mk-battle .mk-content{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(185px,21vw,270px);gap:13px;min-width:0;padding:13px clamp(12px,1.8vw,24px) 6px;align-items:stretch}.mk-battle .mk-battlefield{position:relative;display:grid;grid-template-rows:repeat(3,minmax(136px,1fr));gap:3px;min-height:475px;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,rgba(7,13,22,.66),rgba(6,10,18,.88)),var(--mk-field-art) center /cover no-repeat;border:1px solid #b993598c;border-radius:12px;box-shadow:0 18px 42px #0008,inset 0 0 0 1px #22160a,inset 0 0 40px #000b}.mk-battle .mk-battlefield:before{content:"";position:absolute;inset:0;border:6px solid #0d141ddd;z-index:0;box-shadow:inset 0 0 0 1px #d4a36371;pointer-events:none}.mk-battle .mk-lane{position:relative;z-index:1;display:grid;grid-template-columns:minmax(105px,1fr) 40px minmax(0,1.1fr) 40px minmax(105px,1fr);grid-template-rows:1fr;align-items:stretch;min-height:140px;margin:0 6px;overflow:hidden;background-image:linear-gradient(90deg,#07101bdc,#101a23a1 38%,#11151db0 68%,#150e12df),var(--mk-lane-image);background-size:cover;background-position:center 50%;border-top:1px solid #d6af756a;border-bottom:1px solid #060709}.mk-battle .mk-lane:nth-child(1){border-top:0}.mk-battle .mk-lane:nth-child(3){border-bottom:0}.mk-battle .mk-lane:after{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background:linear-gradient(0deg,#080e17a6,transparent 58%),linear-gradient(90deg,#0613217a,transparent 55%,#170e1191)}.mk-battle .mk-lane-glaze{position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,transparent 47%,#f8c98920 50%,transparent 53%)}.mk-battle .mk-lane-name{grid-column:1;grid-row:1;z-index:2;display:flex;align-items:center;gap:10px;padding:12px;min-width:0;background:linear-gradient(90deg,#08111ee9,transparent)}.mk-battle .mk-lane-icon{display:grid;place-items:center;width:29px;height:29px;border:1px solid #c6a3716e;border-radius:50%;background:#0c1823d9;color:#f4d7a4;font-size:14px;flex:none}.mk-battle .mk-lane-name strong{display:block;color:#ffe8bd;font:650 15px/1.25 Georgia,"Noto Serif KR",serif;letter-spacing:.03em}.mk-battle .mk-lane-name small{display:block;color:#b4bcce;font-size:10px;letter-spacing:.05em;margin-top:3px}.mk-battle .mk-lane-side{grid-row:1;position:relative;z-index:2;min-width:0;padding:9px 7px;display:flex;justify-content:center;align-items:center}.mk-battle .mk-lane-side.ally-side{grid-column:3;flex-direction:column;justify-content:space-between;gap:3px}.mk-battle .mk-lane-side.enemy-side{grid-column:5}.mk-battle .mk-line-units{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:75px;flex:1;min-width:0}.mk-battle .mk-front-divider{display:flex;align-items:center;justify-content:center;grid-row:1;grid-column:4;z-index:2;font:600 10px Georgia,serif;letter-spacing:.1em;color:#f6d29ba8;position:relative}.mk-battle .mk-front-divider:before{content:"";position:absolute;width:1px;height:72%;background:linear-gradient(transparent,#e6c68a8c,transparent);z-index:-1}.mk-battle .mk-front-divider span{padding:7px 4px;background:#10131fe5;border-radius:4px}.mk-battle .mk-unit.unit.v90-field-card{position:relative!important;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-end;flex:0 1 74px;min-width:32px!important;width:min(24%,74px)!important;height:106px!important;min-height:0!important;padding:0!important;border-radius:9px!important;overflow:hidden!important;background:#111826!important;border:1px solid #85bbdc9e!important;box-shadow:0 7px 16px #0009,0 0 0 1px #d9e7ec18!important;transition:filter .25s,transform .25s}.mk-battle .mk-unit.enemy-unit{border-color:#d38179b0!important}.mk-battle .mk-unit .mk-unit-image{position:absolute;inset:0;background-size:cover;background-position:center 22%;z-index:0;filter:saturate(.85)}.mk-battle .mk-unit:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,#030710d9 74%,#05080dea);pointer-events:none}.mk-battle .mk-unit-stats{position:relative;z-index:1;display:flex;justify-content:space-evenly;gap:3px;font:700 10px Georgia,serif;color:#d8ecfa;background:#050910ee;padding:5px 2px}.mk-battle .enemy-unit .mk-unit-stats{color:#f6c2aa}.mk-battle .mk-unit.summoned{animation:mk-materialize .64s cubic-bezier(.16,.76,.27,1) both!important}@keyframes mk-materialize{0%{opacity:0;transform:translateY(27px) scale(.64);filter:brightness(3)}55%{opacity:1;transform:translateY(-9px) scale(1.06);filter:brightness(1.9)}100%{transform:none;filter:none}}.mk-battle .mk-targetable .mk-line-units{filter:drop-shadow(0 0 5px #f0d89a35)}@keyframes mk-ready{50%{box-shadow:0 0 35px #e0bc6299,inset 0 0 14px #6cace347}}.mk-battle .mk-battle-footer{position:relative;z-index:2;margin:8px clamp(12px,1.8vw,24px) 18px;min-width:0;padding:11px 13px 13px;border-radius:12px;border:1px solid #b18d5ca1;background:linear-gradient(180deg,#091320f5,#06101afc);box-shadow:0 22px 36px #0008,inset 0 1px #ffe9c317}.mk-battle .mk-hand-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;color:#adbccc;font-size:11px;letter-spacing:.03em}.mk-battle .mk-hand-heading b{color:#e2bb87;font-weight:700;font-size:12px;letter-spacing:.13em}.mk-battle .mk-hand-heading i{font-style:normal;color:#b7becd;font-family:Georgia,serif}.mk-battle .mk-hand-cards{position:relative!important;display:flex!important;justify-content:center;align-items:stretch;gap:clamp(5px,1vw,10px);width:100%;max-width:100%;height:145px!important;min-height:0!important;margin:7px auto!important;padding:0 4px!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:thin;scrollbar-color:#c6a67670 transparent}.mk-battle .mk-hand-cards .game-card{position:relative!important;flex:0 0 clamp(77px,10.3%,115px)!important;width:clamp(77px,10.3%,115px)!important;height:137px!important;min-height:0!important;max-height:none!important;box-shadow:0 8px 16px #000a!important;border:1px solid #bca06d9a!important;border-radius:7px!important;overflow:hidden!important;transform:none!important}.mk-battle .mk-hand-cards .game-card .card-info{padding:7px 3px!important}.mk-battle .mk-hand-cards .game-card .card-name{font-size:clamp(9px,.95vw,11px)!important;white-space:nowrap}.mk-battle .mk-hand-cards .game-card.selected{transform:translateY(-3px)!important;border:2px solid #ffe4a2!important;box-shadow:0 0 0 2px #e2ae51ba,0 0 22px #fae2a977!important}.mk-battle .mk-actions{display:flex;align-items:stretch;justify-content:space-between;gap:8px;min-width:0;margin-top:10px;padding-top:10px;border-top:1px solid #d0b07c37}.mk-battle .mk-command-meter{display:flex;align-items:center;gap:10px;padding:0 13px;background:#091728;border:1px solid #c29b6670;border-radius:9px;color:#d3bb98;min-width:170px}.mk-battle .mk-command-meter span{font-size:11px}.mk-battle .mk-command-meter strong{font:700 26px Georgia,serif;color:#c2e4ff}.mk-battle .mk-command-meter strong small{font-size:12px;color:#6e96bd}.mk-battle .mk-command-meter em{font-size:10px;font-style:normal;color:#adbcd1;white-space:nowrap}.mk-battle button.mk-action,.mk-battle button.mk-turn{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c6a16c82;border-radius:9px;min-height:50px;padding:7px 12px;cursor:pointer;color:#ecd8b5;background:linear-gradient(180deg,#192d41,#0b1828);font-size:13px;font-weight:700;letter-spacing:.03em;min-width:0}.mk-battle button.mk-action span{color:#f5d396;font-size:16px}.mk-battle button.mk-action small{font-size:10px;color:#b5d6ed}.mk-battle button.mk-action:disabled{opacity:.47;cursor:not-allowed;filter:saturate(.6)}.mk-battle button.mk-turn{min-width:140px;background:linear-gradient(155deg,#f5d6a1,#b5844c);color:#24160b;border-color:#e5bb82;box-shadow:0 0 18px #e4b76e24}.mk-battle button.mk-turn strong{font-size:17px}@media (max-width:1200px){.mk-battle .mk-content{grid-template-columns:minmax(0,1fr) 200px}.mk-battle .mk-lane{grid-template-columns:minmax(100px,.8fr) 20px minmax(140px,1.1fr) 22px minmax(125px,1fr)}.mk-battle .mk-lane-name{padding:8px}.mk-battle .mk-command-meter{min-width:140px}.mk-battle .mk-command-meter em{display:none}}@media (max-width:1000px){.mk-battle .mk-content{grid-template-columns:minmax(0,1fr)}.mk-battle .mk-battlefield{min-height:450px}.mk-battle .mk-commanders{grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr) 30px}}@media (max-width:640px){.mk-battle .mk-commanders{padding:6px 8px;gap:5px;min-height:77px;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) 22px}.mk-battle .mk-commander{gap:5px}.mk-battle .mk-commander img{width:41px!important;height:58px!important;border-radius:5px!important}.mk-battle .mk-commander-copy{gap:2px}.mk-battle .mk-commander-copy>small{font-size:8px!important;letter-spacing:0}.mk-battle .mk-commander-copy>strong{font-size:11px!important;line-height:1.25}.mk-battle .mk-hp-label{font-size:8px}.mk-battle .mk-hp-track{height:5px}.mk-battle .mk-central-crest{min-height:52px}.mk-battle .mk-central-crest b{font-size:21px}.mk-battle .mk-central-crest span,.mk-battle .mk-central-crest small{font-size:7px}.mk-battle .mk-retreat{width:22px;height:22px;font-size:13px}.mk-battle .mk-content{padding:7px 6px 2px}.mk-battle .mk-battlefield{min-height:399px;grid-template-rows:repeat(3,minmax(128px,1fr));border-radius:6px}.mk-battle .mk-battlefield:before{border-width:3px}.mk-battle .mk-lane{margin:0 3px;grid-template-columns:minmax(62px,.72fr) minmax(82px,1fr) 14px minmax(72px,1fr);min-height:128px}.mk-battle .mk-lane-name{grid-column:1;gap:3px;flex-direction:column;align-items:center;text-align:center;padding:8px 2px}.mk-battle .mk-lane-icon{width:22px;height:22px;font-size:11px}.mk-battle .mk-lane-name strong{font-size:10px}.mk-battle .mk-lane-name small{font-size:8px}.mk-battle .mk-lane-side.ally-side{grid-column:2;padding:5px 3px}.mk-battle .mk-front-divider{grid-column:3;font-size:8px}.mk-battle .mk-lane-side.enemy-side{grid-column:4;padding:5px 3px}.mk-battle .mk-unit.unit.v90-field-card{height:79px!important;width:32%!important;min-width:22px!important;flex:0 1 48px!important;border-radius:5px!important}.mk-battle .mk-unit-stats{font-size:8px;gap:1px}.mk-battle .mk-line-units{gap:3px;min-height:75px}.mk-battle .mk-battle-footer{margin:5px 6px 11px;padding:9px 7px 10px}.mk-battle .mk-hand-heading{font-size:9px}.mk-battle .mk-hand-heading b{font-size:10px}.mk-battle .mk-hand-cards{justify-content:flex-start;height:131px!important;gap:5px;overflow-x:auto!important;padding:0 2px!important}.mk-battle .mk-hand-cards .game-card{height:120px!important;width:77px!important;flex:0 0 77px!important}.mk-battle .mk-hand-cards .game-card .card-name{font-size:9px!important}.mk-battle .mk-actions{gap:5px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.mk-battle .mk-command-meter{grid-column:1/-1;min-height:35px;justify-content:center;gap:13px}.mk-battle .mk-command-meter strong{font-size:21px}.mk-battle .mk-command-meter em{display:inline;font-size:9px}.mk-battle button.mk-action,.mk-battle button.mk-turn{min-height:43px;font-size:10px;gap:4px;padding:5px 6px}.mk-battle button.mk-turn{min-width:89px}
}@media (prefers-reduced-motion:reduce){.mk-battle *, .mk-battle *:before,.mk-battle *:after{animation:none!important;transition:none!important}}@media (min-width:1001px) and (min-height:740px){.mk-battle .mk-battlefield{min-height:402px;grid-template-rows:repeat(3,minmax(129px,1fr))}.mk-battle .mk-lane{min-height:129px}.mk-battle .mk-unit.unit.v90-field-card{height:91px!important}.mk-battle .mk-hand-cards{height:128px!important}.mk-battle .mk-hand-cards .game-card{height:119px!important}.mk-battle .mk-actions{margin-top:7px;padding-top:8px}.mk-battle button.mk-action,.mk-battle button.mk-turn{min-height:45px}
}@media (max-width:640px){#view>.mk-battle{display:flex!important;flex-direction:column;align-items:stretch}.mk-battle .mk-commanders{flex:0 0 auto;order:0}.mk-battle .mk-content{display:contents!important}.mk-battle .mk-battle-footer{order:2;margin:5px 6px 11px}.mk-battle .mk-battlefield{min-height:342px;grid-template-rows:repeat(3,minmax(112px,1fr))}.mk-battle .mk-lane{min-height:112px}.mk-battle .mk-unit.unit.v90-field-card{height:73px!important}.mk-battle .mk-hand-cards{height:117px!important}.mk-battle .mk-hand-cards .game-card{height:109px!important}
}.mk-battle .mk-lane{background-image:linear-gradient(90deg,#07101bba,#101a2380 38%,#11151d7c 68%,#150e12bf),var(--mk-lane-image)}.mk-battle .mk-lane:after{background:linear-gradient(0deg,#080e1799,transparent 57%),linear-gradient(90deg,#06132168,transparent 55%,#170e1180)}#view>.mk-battle{min-height:0!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}@media (min-width:1001px) and (min-height:740px){.mk-battle .mk-battlefield{min-height:366px!important;grid-template-rows:repeat(3,minmax(117px,1fr))!important}.mk-battle .mk-lane{min-height:117px!important}.mk-battle .mk-unit.unit.v90-field-card{height:83px!important}.mk-battle .mk-hand-cards{height:114px!important}.mk-battle .mk-hand-cards .game-card{height:107px!important}.mk-battle .mk-battle-footer{padding-bottom:9px}
}#hd-opening-root .kingdom-first-v103 .brand{width:min(96%,790px)!important;padding-top:clamp(12px,2.5dvh,26px)!important;background:none!important;filter:none!important
}#hd-opening-root .kingdom-first-v103 .brand>.strap,
#hd-opening-root .kingdom-first-v103 .brand>.ornament,
#hd-opening-root .kingdom-first-v103 .brand>.motto{display:none!important}#hd-opening-root .kingdom-first-v103 .name.kingdom-logo{width:min(100%,720px)!important;max-width:100%!important;min-width:0!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0 auto!important;padding:0!important;line-height:1!important;font-size:0!important;letter-spacing:0!important;white-space:normal!important;color:transparent!important;background:none!important;filter:drop-shadow(0 9px 20px rgba(0,0,0,.9))!important
}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{display:block;width:100%;max-width:100%;height:auto;max-height:min(39dvh,340px);object-fit:contain;object-position:center;pointer-events:none;user-select:none
}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image.mn{display:none}#hd-opening-root .kingdom-first-v103[data-title-lang="mn"] .kingdom-logo-image.ko{display:none}#hd-opening-root .kingdom-first-v103[data-title-lang="mn"] .kingdom-logo-image.mn{display:block}#hd-opening-root .kingdom-first-v103 .kingdom-logo-fallback{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap
}#hd-opening-root .kingdom-first-v103 .controls{box-sizing:border-box;max-width:min(470px,calc(100% - 26px))!important;padding:clamp(10px,1.6dvh,16px) 14px!important
}#hd-opening-root .kingdom-first-v103 .language-label{font-size:clamp(10px,1.3vw,12px)!important}#hd-opening-root .kingdom-first-v103 .lang-btn{font-size:clamp(12px,1.6vw,15px)!important}#hd-opening-root .kingdom-first-v103 .start{font-size:clamp(13px,1.7vw,16px)!important}@media (max-width:680px){html{-webkit-text-size-adjust:100%;text-size-adjust:100% }body{overflow-x:hidden}.app-shell,.main-shell,.view,#view{min-width:0;max-width:100%}.view{overflow-x:hidden}#hd-opening-root .kingdom-first-v103 .brand{width:calc(100% - 16px)!important;padding-top:clamp(8px,1.5dvh,15px)!important}#hd-opening-root .kingdom-first-v103 .name.kingdom-logo{width:min(94vw,430px)!important;font-size:0!important}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{max-height:min(34dvh,265px)}#hd-opening-root .kingdom-first-v103 .controls{width:calc(100% - 26px)!important;padding:11px 12px!important;margin-bottom:max(11px,env(safe-area-inset-bottom))!important}#hd-opening-root .kingdom-first-v103 .lang-btn{height:40px!important;min-height:40px!important;font-size:12px!important}#hd-opening-root .kingdom-first-v103 .start{height:43px!important;min-height:43px!important;margin-top:8px!important;font-size:13px!important}#hd-opening-root .kingdom-first-v103 .language-label{margin-bottom:7px!important;font-size:10px!important}#hd-opening-root .kingdom-first-v103 .footnote{font-size:8px!important;letter-spacing:.1em!important;margin-top:7px!important}.mobile-brand{font-size:12px!important;letter-spacing:.08em!important}.crumb,#top-crumb{font-size:10px!important;line-height:1.35!important;letter-spacing:.02em!important}#player-label,.top-player{font-size:10px!important}.topbar .currency{font-size:10px!important}.bottom-nav{font-size:10px!important}.v90-screen:not(.mk-battle) h1{font-size:clamp(22px,6vw,30px)!important;line-height:1.26!important}.v90-screen:not(.mk-battle) h2{font-size:clamp(18px,5vw,25px)!important;line-height:1.32!important}.v90-screen:not(.mk-battle) h3{font-size:clamp(15px,4.2vw,19px)!important;line-height:1.35!important}.v90-screen:not(.mk-battle) p,.v90-screen:not(.mk-battle) .muted{font-size:clamp(11px,3vw,13px);line-height:1.55}.v90-screen:not(.mk-battle) .v90-kicker,.v90-screen:not(.mk-battle) .dc-kicker,
 .v90-screen:not(.mk-battle) .dc-section-marker{font-size:10px!important;letter-spacing:.1em!important}.v90-screen:not(.mk-battle) .btn,.v90-screen:not(.mk-battle) button{font-size:clamp(11px,3.2vw,13px)}#hd-commander-root .hd99-choice strong{font-size:clamp(13px,3.6vw,17px)!important}#hd-commander-root .hd99-choice p,#hd-commander-root .hd99-choice small{font-size:clamp(10px,2.7vw,12px)!important}#hd-commander-root .hd99-choice img{max-height:min(32dvh,250px)}#guided-tour-root .tour-panel h3{font-size:clamp(14px,4vw,17px)!important;line-height:1.35!important}#guided-tour-root .tour-panel p,#guided-tour-root .tour-panel-foot{font-size:clamp(10px,2.9vw,12px)!important;line-height:1.5!important}#guided-tour-root .tour-panel-top{font-size:10px!important}.mk-battle .mk-commander-copy>strong{font-size:clamp(10px,3vw,12px)!important}.mk-battle .mk-lane-name strong{font-size:clamp(9px,2.8vw,11px)!important}.mk-battle .mk-lane-name small{font-size:clamp(7.5px,2.3vw,9px)!important}.mk-battle .mk-hand-heading{font-size:10px!important}.mk-battle button.mk-action,.mk-battle button.mk-turn{font-size:clamp(10px,3vw,12px)!important}
}@media (max-width:385px){#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{max-height:30dvh}.mk-battle .mk-lane-name{padding:4px 2px!important}.mk-battle .mk-lane-name small{display:none}.mk-battle .mk-commander img{width:36px!important;height:48px!important}.mk-battle .mk-central-crest b{font-size:18px!important}
}@media (max-height:640px){#hd-opening-root .kingdom-first-v103 .brand{padding-top:3px!important}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{max-height:min(28dvh,190px)!important}#hd-opening-root .kingdom-first-v103 .controls{padding:7px 11px!important;margin-bottom:3px!important}#hd-opening-root .kingdom-first-v103 .lang-btn{height:34px!important;min-height:34px!important}#hd-opening-root .kingdom-first-v103 .start{height:38px!important;min-height:38px!important}
}@media (prefers-reduced-motion:reduce){#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{animation:none!important}
}#hd-opening-root .kingdom-first-v103 .selection.visible{max-height:116px!important;padding-top:12px!important;overflow:visible!important
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;align-items:center!important;justify-items:center!important;height:56px!important;min-height:56px!important;max-width:380px!important;margin:0 auto!important;padding:0 18px!important;gap:4px!important;border-radius:12px!important;border:1px solid rgba(247,219,166,.72)!important;color:#f7e7c7!important;font:650 15px/1.2 Georgia,"Noto Serif KR",serif!important;letter-spacing:.24em!important;background:linear-gradient(115deg,#0b1117 0%,#19232b 38%,#182126 60%,#0a111b 100%)!important;box-shadow:inset 0 1px 0 rgba(255,239,205,.13),inset 0 -1px 0 rgba(11,15,19,.95),0 0 0 3px rgba(141,105,54,.11),0 12px 30px #000b!important;text-shadow:0 1px 8px #000c!important;filter:none!important;overflow:hidden!important;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease!important
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start:before{content:"";position:absolute;pointer-events:none;inset:5px;border-radius:8px;border:1px solid rgba(222,181,112,.16);background:linear-gradient(90deg,transparent 0%,rgba(222,187,123,.05) 50%,transparent 100%)
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start:after{content:none!important;animation:none!important
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start .mk-royal-glyph{color:#d6ab69;font-size:17px;font-weight:400;letter-spacing:0;text-shadow:0 0 12px rgba(245,199,119,.25)
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start .mk-royal-label{position:relative;white-space:nowrap;text-align:center;font-size:inherit;letter-spacing:inherit;font-weight:inherit
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start .arrow{font-size:21px!important;line-height:1;color:#d2b07a;font-family:Georgia,serif
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start:is(:hover,:focus-visible){transform:translateY(-2px)!important;border-color:#fff0c4!important;box-shadow:inset 0 1px 0 #fff6dc42,0 0 0 3px #cc9b6440,0 12px 32px #000b,0 0 30px #d8ae6b28!important
}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start:active{transform:translateY(0)!important}#view>.mk-battle.mk-battle-minimal{background:#060b12;scrollbar-gutter:stable}.mk-battle-minimal .mk-commanders{min-height:89px!important;padding:8px clamp(10px,2vw,24px)!important;gap:9px!important}.mk-battle-minimal .mk-commander img{width:60px!important;height:69px!important;border-radius:8px!important}.mk-battle-minimal .mk-commander-copy>strong{font-size:clamp(13px,1.55vw,21px)!important}.mk-battle-minimal .mk-central-crest{min-height:67px!important}.mk-battle-minimal .mk-central-crest b{font-size:30px!important}.mk-battle-minimal .mk-content-minimal{display:block!important;min-width:0;max-width:1250px;margin-inline:auto!important;padding:10px clamp(8px,1.8vw,20px) 0!important
}.mk-battle-minimal .mk-battlefield{position:relative;display:grid!important;grid-template-rows:repeat(3,minmax(118px,1fr))!important;min-height:380px!important;max-height:none!important;overflow:hidden!important;border-radius:13px!important;border:1px solid #b9955c73!important;box-shadow:0 16px 36px #000a,inset 0 0 0 1px #fff3d419!important
}.mk-battle-minimal .mk-lane{position:relative;display:grid!important;grid-template-columns:108px minmax(0,1fr) 24px minmax(0,1fr)!important;grid-template-rows:1fr!important;margin:0!important;min-height:118px!important;border-top:1px solid rgba(212,181,132,.28)!important;border-bottom:0!important;gap:0!important
}.mk-battle-minimal .mk-lane:first-child{border-top:0!important}.mk-battle-minimal .mk-lane-name{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;padding:9px!important;gap:6px!important;background:linear-gradient(90deg,#070d17e8,#111722ba)!important;text-align:left!important
}.mk-battle-minimal .mk-lane-name strong{font:600 13px/1.2 Georgia,"Noto Serif KR",serif!important;white-space:nowrap}.mk-battle-minimal .mk-lane-icon{width:25px!important;height:25px!important;font-size:13px!important}.mk-battle-minimal .mk-lane-side{grid-row:1!important;display:flex!important;min-width:0;min-height:0!important;padding:7px 6px!important;align-items:center!important;justify-content:center!important
}.mk-battle-minimal .mk-lane-side.ally-side{grid-column:2!important;flex-direction:column!important}.mk-battle-minimal .mk-lane-side.enemy-side{grid-column:4!important}.mk-battle-minimal .mk-front-divider{grid-column:3!important;grid-row:1!important}.mk-battle-minimal .mk-line-units{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important;min-width:0!important;min-height:0!important;align-content:center!important;justify-content:stretch!important
}.mk-battle-minimal .mk-unit.unit.v90-field-card{position:relative!important;display:grid!important;grid-template-columns:42% minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;align-items:stretch!important;justify-content:stretch!important;flex:none!important;min-width:0!important;max-width:none!important;width:100%!important;height:76px!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:7px!important;border:1px solid #bfcbdd7f!important;overflow:hidden!important;box-shadow:0 6px 16px #0008!important
}.mk-battle-minimal .mk-unit.unit.v90-field-card.enemy-unit{border-color:#d5977d91!important}.mk-battle-minimal .mk-unit .mk-unit-image{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1 / 3!important;width:100%;height:100%;min-height:0;background-size:cover!important;background-position:center 24%!important;filter:saturate(.88)
}.mk-battle-minimal .mk-unit:after{content:none!important}.mk-battle-minimal .mk-unit-stats{grid-column:2!important;grid-row:2!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;min-width:0!important;width:100%!important;padding:4px 2px!important;background:#060c16e6!important;color:#bfe0f4!important;font:700 10px/1.2 Georgia,serif!important
}.mk-battle-minimal .enemy-unit .mk-unit-stats{color:#f3c0a8!important}.mk-battle-minimal .mk-unit-stats b{white-space:nowrap}.mk-battle-minimal .mk-battle-footer{width:calc(100% - 2*clamp(8px,1.8vw,20px));max-width:1250px;margin:10px auto 16px!important;padding:12px clamp(8px,1.5vw,17px) 14px!important;border-radius:12px!important;border:1px solid #b9955c4f!important;box-shadow:0 18px 30px #0008!important
}.mk-battle-minimal .mk-hand-heading{font-size:11px!important;margin-bottom:5px!important}.mk-battle-minimal .mk-hand-heading b{font-size:12px!important;letter-spacing:.08em}.mk-battle-minimal .mk-hand-cards{justify-content:center!important;gap:clamp(5px,1vw,12px)!important}.mk-battle-minimal .mk-hand-cards .game-card{height:113px!important}.mk-battle-minimal .mk-actions{margin-top:8px!important;padding-top:8px!important}.mk-battle-minimal button.mk-action,.mk-battle-minimal button.mk-turn{min-height:45px!important}@media (min-width:1001px) and (max-height:820px){.mk-battle-minimal .mk-battlefield{min-height:345px!important;grid-template-rows:repeat(3,minmax(113px,1fr))!important}.mk-battle-minimal .mk-lane{min-height:113px!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{height:69px!important}.mk-battle-minimal .mk-hand-cards .game-card{height:103px!important}
}@media (max-width:820px){.mk-battle-minimal .mk-content-minimal{padding:8px 6px 0!important}.mk-battle-minimal .mk-battlefield{min-height:0!important;grid-template-rows:none!important;display:flex!important;flex-direction:column!important}.mk-battle-minimal .mk-lane{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px auto auto!important;grid-template-areas:"lane-name" "opponent" "ally"!important;min-height:0!important;margin:0!important
 }.mk-battle-minimal .mk-lane-name{grid-area:lane-name!important;grid-column:1!important;grid-row:1!important;justify-content:center!important;padding:3px 8px!important;gap:8px!important}.mk-battle-minimal .mk-lane-name strong{font-size:11px!important}.mk-battle-minimal .mk-lane-icon{width:20px!important;height:20px!important;font-size:11px!important}.mk-battle-minimal .mk-lane-side.enemy-side{grid-area:opponent!important;grid-column:1!important;grid-row:2!important;min-height:64px!important;background:linear-gradient(90deg,#361a1a1c,transparent,#4b15182b)!important}.mk-battle-minimal .mk-lane-side.ally-side{grid-area:ally!important;grid-column:1!important;grid-row:3!important;min-height:68px!important;background:linear-gradient(90deg,#0b253422,transparent,#0b253422)!important}.mk-battle-minimal .mk-lane-side{padding:4px 10px!important;gap:0!important}.mk-battle-minimal .mk-front-divider{display:none!important}.mk-battle-minimal .mk-line-units{gap:5px!important;min-height:0!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{height:63px!important;min-width:0!important;width:100%!important;flex:none!important;border-radius:6px!important}.mk-battle-minimal .mk-unit-stats{font-size:9px!important;gap:3px!important;padding:3px 1px!important}.mk-battle-minimal .mk-battle-footer{width:calc(100% - 12px);margin:7px auto 10px!important;padding:9px 7px!important}.mk-battle-minimal .mk-hand-heading{font-size:10px!important}.mk-battle-minimal .mk-hand-cards{justify-content:flex-start!important;overflow-x:auto!important;height:114px!important}.mk-battle-minimal .mk-hand-cards .game-card{width:76px!important;flex:0 0 76px!important;height:104px!important}.mk-battle-minimal .mk-actions{gap:5px!important}.mk-battle-minimal .mk-command-meter{min-width:0!important}.mk-battle-minimal button.mk-action,.mk-battle-minimal button.mk-turn{min-height:41px!important;font-size:10px!important}
}@media (max-width:380px){.mk-battle-minimal .mk-unit.unit.v90-field-card{grid-template-columns:38% minmax(0,1fr)!important;height:59px!important}.mk-battle-minimal .mk-unit-stats{gap:1px!important;font-size:8px!important}.mk-battle-minimal .mk-lane-side{padding-inline:6px!important}
}@media (max-width:680px){#hd-opening-root .kingdom-first-v103 .selection.visible{max-height:95px!important;padding-top:9px!important}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start{height:47px!important;min-height:47px!important;font-size:13px!important;letter-spacing:.14em!important;padding-inline:11px!important}#hd-opening-root .kingdom-first-v103 .start.mk-royal-start .arrow{font-size:17px!important}
}@media (prefers-reduced-motion:reduce){#hd-opening-root .kingdom-first-v103 .start.mk-royal-start{transition:none!important}}.mk-battle.mk-battle-minimal .mk-commanders{position:relative;gap:clamp(6px,1.4vw,16px);padding-top:12px!important;padding-bottom:12px!important}.mk-battle.mk-battle-minimal .mk-commander{position:relative;isolation:isolate;overflow:hidden;min-width:0;border-radius:15px!important}.mk-battle.mk-battle-minimal .mk-commander.ally{background:linear-gradient(110deg,rgba(7,27,44,.97),rgba(13,46,66,.82))!important;border:1px solid rgba(104,199,239,.52)!important;box-shadow:inset 0 0 24px rgba(34,144,205,.16),0 8px 24px rgba(0,0,0,.32)!important}.mk-battle.mk-battle-minimal .mk-commander.foe{background:linear-gradient(245deg,rgba(48,15,18,.96),rgba(74,26,29,.76))!important;border:1px solid rgba(230,126,120,.52)!important;box-shadow:inset 0 0 24px rgba(213,89,77,.13),0 8px 24px rgba(0,0,0,.32)!important}.mk-battle .mk-commander .mk-team-mark{position:absolute;top:4px;z-index:3;font:700 clamp(8px,.85vw,10px)/1.2 "Noto Sans",Arial,sans-serif;letter-spacing:.08em;padding:3px 8px;border-radius:3px}.mk-battle .mk-commander .ally-mark{right:6px;color:#bde6fa;background:rgba(32,126,174,.3)}.mk-battle .mk-commander .foe-mark{left:6px;color:#ffc7c0;background:rgba(170,70,60,.32)}.mk-battle .mk-teams-legend{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-bottom:6px;font:700 clamp(10px,1vw,12px)/1.4 Arial,sans-serif;letter-spacing:.12em;text-align:center}.mk-battle .mk-legend-ally{color:#c8efff;background:linear-gradient(90deg,rgba(25,100,141,.45),rgba(25,100,141,.05));border-bottom:2px solid #459bd3;border-radius:5px 0 0 0;padding:6px}.mk-battle .mk-legend-enemy{color:#ffd1c9;background:linear-gradient(270deg,rgba(150,45,45,.44),rgba(150,45,45,.05));border-bottom:2px solid #cf746a;border-radius:0 5px 0 0;padding:6px}.mk-battle.mk-battle-minimal .mk-lane-side.ally-side{background:linear-gradient(90deg,rgba(4,40,68,.36),rgba(18,53,78,.10));border-left:1px solid rgba(57,164,218,.24)}.mk-battle.mk-battle-minimal .mk-lane-side.enemy-side{background:linear-gradient(270deg,rgba(78,15,23,.37),rgba(78,25,32,.10));border-right:1px solid rgba(237,116,106,.25)}.mk-battle.mk-battle-minimal .mk-unit.unit.v90-field-card:not(.enemy-unit){border:1px solid #56bce7ab!important;box-shadow:0 4px 14px #020a18bb,inset 0 -1px 0 #85daff66!important}.mk-battle.mk-battle-minimal .mk-unit.unit.v90-field-card.enemy-unit{border:1px solid #e28d82aa!important;box-shadow:0 4px 14px #180306bb,inset 0 -1px 0 #ffc0a366!important}.mk-battle.mk-battle-minimal .mk-unit:not(.enemy-unit) .mk-unit-stats{background:#08263dbb!important}.mk-battle.mk-battle-minimal .mk-unit.enemy-unit .mk-unit-stats{background:#38141dbb!important}@media (max-width:640px){.mk-battle .mk-commander .mk-team-mark{font-size:8px;top:2px;padding:2px 3px;letter-spacing:0}.mk-battle .mk-commander .ally-mark{right:3px}.mk-battle .mk-commander .foe-mark{left:3px}.mk-battle .mk-teams-legend{font-size:9px;margin-bottom:4px;letter-spacing:.03em}.mk-battle .mk-teams-legend>span{padding:4px 2px}
}.overlay-root:has(.mk-result) .overlay-shade{background:rgba(1,4,10,.89)!important;backdrop-filter:blur(13px)}.overlay-root:has(.mk-result) .modal{padding:0!important;overflow:hidden!important;width:min(740px,calc(100vw - 24px))!important;max-width:740px!important;border-radius:20px!important;border:1px solid rgba(221,184,112,.42)!important;background:#070e17!important;box-shadow:0 28px 100px #000e,0 0 70px #a77f4d20!important}.overlay-root:has(.mk-result) .modal-close{position:absolute!important;right:12px;top:9px;z-index:5;color:#f3dcc3!important}.mk-result{color:#f5e4c6;font-family:Georgia,"Noto Serif KR",serif;text-align:center;position:relative;overflow:hidden}@media (max-width:640px){.mk-battle.mk-battle-minimal .mk-commanders{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 22px!important;gap:3px!important;min-height:94px!important;padding:5px 6px!important}.mk-battle.mk-battle-minimal .mk-commander{padding:16px 5px 5px!important;align-self:stretch;gap:4px!important}.mk-battle .mk-commander .mk-team-mark{left:4px!important;right:auto!important;top:3px!important;max-width:calc(100% - 8px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px!important}.mk-battle .mk-commander .mk-commander-copy>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px!important;line-height:1.19!important;white-space:normal!important;overflow-wrap:anywhere}.mk-battle .mk-commander .mk-hp-label{white-space:nowrap;gap:2px;font-size:8px!important}.mk-battle .mk-commander img{width:34px!important;height:51px!important;object-fit:cover!important}.mk-battle .mk-central-crest{padding:0!important}.mk-battle .mk-central-crest b{font-size:24px!important}
}.mk-battle-minimal .mk-side-caption{display:flex!important;align-items:center;gap:6px;max-width:100%;color:#bdeaff;font:800 10px/1.1 system-ui,"Noto Sans KR",sans-serif;letter-spacing:.06em;white-space:nowrap
}.mk-battle-minimal .mk-side-caption small{margin-left:auto;font:600 10px/1.1 Georgia,serif;opacity:.68}.mk-battle-minimal .mk-side-caption i{font-size:8px;font-style:normal;filter:drop-shadow(0 0 6px currentColor)}.mk-battle-minimal .mk-lane-side.enemy-side .mk-side-caption{color:#ffd1c1}.mk-battle-minimal .mk-lane-side.enemy-side .mk-side-caption i{color:#e18a7c}.mk-battle-minimal .mk-lane-side.ally-side .mk-side-caption i{color:#72caff}.mk-battle-minimal .mk-lane-side{flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:7px!important}.mk-battle-minimal .mk-lane-side .mk-line-units{width:100%!important;flex:0 0 auto!important}@media (min-width:821px){.mk-battle-minimal .mk-lane-side.ally-side,.mk-battle-minimal .mk-lane-side.enemy-side{padding:8px 7px!important}.mk-battle-minimal .mk-side-caption{margin:0 0 3px 2px;font-size:10px}.mk-battle-minimal .mk-line-units{min-height:80px!important}
}@media (max-width:820px){.mk-battle-minimal .mk-content.mk-content-minimal{padding:10px 8px 6px!important}.mk-battle-minimal .mk-battlefield{display:flex!important;flex-direction:column!important;gap:11px!important;padding:10px!important;min-height:0!important;overflow:visible!important;border:1px solid rgba(212,178,118,.35)!important;background:linear-gradient(180deg,#0a101b,#0d1521)!important
 }.mk-battle-minimal .mk-lane{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:29px minmax(76px,auto) 25px minmax(80px,auto)!important;grid-template-areas:"lane-name" "opponent" "divider" "ally"!important;gap:4px!important;min-height:0!important;margin:0!important;padding:7px 8px 10px!important;border:1px solid rgba(212,177,115,.30)!important;border-radius:13px!important;box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 1px 0 rgba(245,213,164,.08)!important;background-image:linear-gradient(180deg,rgba(8,14,22,.84),rgba(10,16,24,.94)),var(--mk-lane-image)!important;background-size:cover!important;background-position:center!important
 }.mk-battle-minimal .mk-lane-name{grid-area:lane-name!important;grid-row:1!important;grid-column:1!important;justify-content:center!important;padding:2px!important;border:0!important;background:linear-gradient(90deg,transparent,rgba(218,185,128,.12),transparent)!important
 }.mk-battle-minimal .mk-lane-name strong{font-size:11px!important;letter-spacing:.13em!important}.mk-battle-minimal .mk-lane-side.enemy-side{grid-area:opponent!important;grid-row:2!important;grid-column:1!important;border:1px solid rgba(229,126,115,.48)!important;border-radius:8px!important;border-left:3px solid #db716d!important;background:linear-gradient(90deg,rgba(82,19,30,.78),rgba(45,15,22,.87))!important;box-shadow:inset 0 0 18px rgba(202,70,71,.12)!important
 }.mk-battle-minimal .mk-lane-side.ally-side{grid-area:ally!important;grid-row:4!important;grid-column:1!important;border:1px solid rgba(103,186,231,.51)!important;border-radius:8px!important;border-left:3px solid #5abbe6!important;background:linear-gradient(90deg,rgba(7,44,70,.88),rgba(10,27,49,.87))!important;box-shadow:inset 0 0 18px rgba(69,163,216,.14)!important
 }.mk-battle-minimal .mk-lane-side{display:flex!important;align-items:stretch!important;justify-content:center!important;flex-direction:column!important;gap:6px!important;min-height:76px!important;padding:8px 9px!important;overflow:visible!important
 }.mk-battle-minimal .mk-lane-side .mk-line-units{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-height:62px!important;align-items:center!important
 }.mk-battle-minimal .mk-side-caption{font-size:10px!important;margin:0!important}.mk-battle-minimal .mk-side-caption small{font-size:9px!important}.mk-battle-minimal .mk-front-divider{grid-area:divider!important;grid-row:3!important;grid-column:1!important;display:flex!important;align-items:center!important;justify-content:center!important;height:25px!important;min-height:25px!important;width:100%!important;position:relative!important;margin:0!important;visibility:visible!important;opacity:1!important
 }.mk-battle-minimal .mk-front-divider:before{content:""!important;position:absolute!important;z-index:0!important;width:100%!important;height:1px!important;top:50%!important;left:0!important;background:linear-gradient(90deg,transparent,rgba(231,191,133,.55),transparent)!important
 }.mk-battle-minimal .mk-front-divider span{position:relative!important;z-index:1!important;display:block!important;border:1px solid rgba(224,184,116,.54)!important;border-radius:999px!important;background:#141b27!important;color:#f5d5a1!important;letter-spacing:.16em!important;font:800 9px/1 system-ui, sans-serif!important;padding:5px 13px!important;box-shadow:0 0 14px rgba(230,188,118,.14)!important
 }.mk-battle-minimal .mk-unit.unit.v90-field-card{height:60px!important;min-height:60px!important}.mk-battle-minimal .mk-teams-legend{margin-bottom:9px!important}.mk-battle-minimal .mk-battle-footer{margin-top:12px!important}
}@media (max-width:370px){.mk-battle-minimal .mk-battlefield{padding:6px!important}.mk-battle-minimal .mk-lane{padding:6px!important}.mk-battle-minimal .mk-lane-side{padding:6px!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{height:58px!important;min-height:58px!important}
}.overlay-shade:has(.mk-result-v113){display:flex!important;justify-content:center!important;align-items:center!important;background:rgba(2,4,10,.88)!important;backdrop-filter:blur(18px)!important;padding:10px!important
}.overlay-shade:has(.mk-result-v113) .modal{width:min(760px,100%)!important;max-width:760px!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important;padding:0!important;border-radius:18px!important;background:#0a111d!important;border:1px solid rgba(236,195,121,.62)!important;box-shadow:0 22px 100px rgba(0,0,0,.95),0 0 54px rgba(174,125,58,.22),inset 0 1px rgba(255,255,255,.06)!important;scrollbar-width:thin
}.overlay-shade:has(.mk-result-v113) .modal-close{z-index:15!important;color:#f4d6a4!important;border-radius:50%;background:rgba(8,12,19,.48)!important}.overlay-shade:has(.mk-result-tutorial) .modal-close{display:none!important}.mk-result-v113{position:relative;isolation:isolate;overflow:hidden;color:#f9e9cc;background:#08101a;font-family:Georgia,"Noto Serif KR",serif}.mk-result-v113.mk-defeat{--mk-royal:#d79c92;--mk-royal2:#784143}.mk-result-v113.mk-victory{--mk-royal:#f6d9a0;--mk-royal2:#ac7540}.mk-result-cinematic{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;height:clamp(228px,36vh,328px)!important;padding:28px 20px 18px!important;overflow:hidden;background-image:linear-gradient(180deg,rgba(0,0,0,.2),rgba(5,10,17,.38) 46%,#08101a 100%),var(--result-image)!important;background-position:center,center 36%!important;background-size:cover!important
}.mk-result-cinematic:before{content:"";position:absolute;z-index:0;inset:-25%;pointer-events:none;background:radial-gradient(ellipse at center,rgba(249,214,140,.19),transparent 48%);animation:mk113Aura 4s ease-in-out infinite alternate
}.mk-result-cinematic:after{content:"";position:absolute;inset:0;border-bottom:1px solid rgba(236,187,106,.38);box-shadow:inset 0 0 65px rgba(2,6,12,.72);pointer-events:none}.mk-result-cinematic-shade{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 28%,rgba(3,6,12,.55) 92%)}.mk-result-royal-sigil{position:relative;z-index:2;color:var(--mk-royal);font-size:clamp(34px,6vw,58px);text-shadow:0 0 25px var(--mk-royal2);line-height:1;margin-bottom:5px}.mk-result-royal-small{position:relative;z-index:2;font:700 clamp(9px,1.5vw,12px)/1.3 Georgia,serif!important;letter-spacing:.35em;color:#f3d2a1;text-shadow:0 2px 9px #000}.mk-result-royal-title{position:relative;z-index:2;margin:6px 0 1px!important;padding:0!important;font:800 clamp(48px,9vw,82px)/1.05 Georgia,"Noto Serif KR",serif!important;color:var(--mk-royal)!important;letter-spacing:.16em;text-indent:.16em!important;text-shadow:0 4px 5px #070b14,0 0 32px var(--mk-royal2)}.mk-result-royal-sub{position:relative;z-index:2;margin:8px auto 0!important;max-width:550px;color:#f9e8d0!important;font-size:clamp(11px,1.65vw,15px)!important;line-height:1.45;text-shadow:0 2px 7px #000;text-align:center}.mk-result-royal-body{padding:13px clamp(15px,3.4vw,40px) 28px;position:relative;background:radial-gradient(ellipse at 50% 0%,rgba(182,131,67,.09),transparent 60%),#08101a}.mk-result-royal-body:before{content:"";position:absolute;left:20px;right:20px;top:0;height:1px;background:linear-gradient(90deg,transparent,#e5c18475,transparent)}.mk-result-royal-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;color:#b7a58b;font:600 10px/1.3 system-ui, sans-serif;letter-spacing:.08em}.mk-result-royal-meta strong{font:700 clamp(14px,2.3vw,20px)/1.4 Georgia,"Noto Serif KR",serif;color:#f7e9d4;text-align:center;letter-spacing:.05em}.mk-result-royal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 17px}.mk-result-royal-stats>div{display:flex;min-height:87px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;background:linear-gradient(180deg,rgba(29,41,55,.92),rgba(9,18,29,.95));border:1px solid rgba(217,175,107,.31);border-radius:10px;box-shadow:inset 0 1px rgba(255,255,255,.05)}.mk-result-royal-stats span{font:600 11px/1.2 system-ui,sans-serif;color:#c4b5a0;white-space:nowrap}.mk-result-royal-stats strong{font:700 clamp(17px,3vw,26px)/1.1 Georgia,serif;color:var(--mk-royal);white-space:nowrap;font-variant-numeric:tabular-nums}.mk-result-royal-reward{display:grid;grid-template-columns:78px 1fr;align-items:center;gap:16px;padding:12px 16px;margin:0 0 14px;background:linear-gradient(100deg,rgba(130,84,37,.21),rgba(16,24,35,.90));border:1px solid rgba(226,192,130,.35);border-radius:11px;text-align:left}.mk-result-royal-card{height:102px;width:78px;overflow:hidden}.mk-result-royal-card .game-card{transform:scale(.60);transform-origin:top left;pointer-events:none!important}.mk-result-royal-reward-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.mk-result-royal-reward-copy span{font:700 10px/1.3 system-ui,sans-serif;color:#e0b981;letter-spacing:.12em}.mk-result-royal-reward-copy strong{font-size:clamp(15px,2vw,22px);color:#fff0d8;overflow-wrap:anywhere}.mk-result-royal-reward-copy small{font-size:11px;color:#c9d2dd}.mk-result-royal-final{text-align:center;color:#f1c891;font-size:12px}.mk-result-royal-actions{display:flex;gap:10px;justify-content:center;margin-top:16px;flex-wrap:wrap}.mk-result-royal-primary,.mk-result-royal-secondary{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:54px;min-width:min(100%,260px);padding:10px 22px;border-radius:9px;cursor:pointer;font:700 14px/1.35 "Noto Sans KR",system-ui,sans-serif;transition:transform .2s,filter .2s}.mk-result-royal-primary{background:linear-gradient(145deg,#f8e4bd 0%,#daab66 56%,#9d6d39 100%);color:#221509;border:1px solid #ffe8bc;box-shadow:0 10px 30px rgba(218,160,81,.22),inset 0 1px #fff7db}.mk-result-royal-primary b{font-size:21px;font-weight:400}.mk-result-royal-secondary{background:rgba(20,28,40,.8);border:1px solid rgba(219,179,114,.43);color:#ecdbbb;min-width:130px}.mk-result-royal-actions button:hover{filter:brightness(1.1);transform:translateY(-2px)}@keyframes mk113Aura{from{transform:translateY(12px);opacity:.62}to{transform:translateY(-12px);opacity:1}}@media (max-width:600px){.mk-result-v113 .mk-result-cinematic{height:206px!important;padding:20px 14px 9px!important}.mk-result-royal-sigil{font-size:31px}.mk-result-royal-title{font-size:49px!important;letter-spacing:.09em}.mk-result-royal-small{font-size:9px!important;letter-spacing:.19em}.mk-result-royal-sub{font-size:11px!important;margin-top:4px!important}.mk-result-royal-body{padding:11px 12px 15px!important}.mk-result-royal-meta{margin-bottom:11px;font-size:9px}.mk-result-royal-meta strong{font-size:13px}.mk-result-royal-stats{gap:6px;margin-bottom:12px}.mk-result-royal-stats>div{min-height:70px!important;padding:5px 2px;gap:6px}.mk-result-royal-stats span{font-size:9px}.mk-result-royal-stats strong{font-size:17px}.mk-result-royal-reward{grid-template-columns:55px 1fr;gap:8px;padding:7px;margin-bottom:9px}.mk-result-royal-card{height:77px;width:55px}.mk-result-royal-card .game-card{transform:scale(.43)}.mk-result-royal-reward-copy strong{font-size:14px}.mk-result-royal-reward-copy span,.mk-result-royal-reward-copy small{font-size:10px}.mk-result-royal-actions{margin-top:10px;gap:6px}.mk-result-royal-primary,.mk-result-royal-secondary{min-height:45px;font-size:12px;min-width:min(100%,220px)}
}@media (prefers-reduced-motion:reduce){.mk-result-cinematic:before{animation:none}.mk-result-royal-actions button{transition:none}}@media (max-width:820px){.mk-battle-minimal .mk-lane-side .mk-line-units{flex:0 0 auto!important}.mk-battle-minimal .mk-lane-side .mk-side-caption{flex:0 0 auto!important}
}#kingdom-video-root, #kingdom-throne-root{background:transparent!important;contain:layout paint style;transform:translateZ(0)}#kingdom-video-root .kingdom-video-veil{background-image:var(--kingdom-poster)!important;background-position:center;background-size:cover;background-repeat:no-repeat}#kingdom-video-root .kingdom-film-wait{z-index:2;background-image:var(--kingdom-poster)!important;background-position:center;background-size:cover;background-repeat:no-repeat;opacity:1;transition:opacity .4s ease!important}#kingdom-video-root .kingdom-video{z-index:1;opacity:0;transition:opacity .35s ease!important;pointer-events:none!important;object-fit:cover!important;background:transparent!important}#kingdom-video-root.kingdom-film-playing .kingdom-video{opacity:1!important}#kingdom-video-root.kingdom-film-playing .kingdom-film-wait{opacity:0!important}#kingdom-video-root .kingdom-skip, #kingdom-video-root .kingdom-retry{z-index:4}#kingdom-throne-root .kingdom-throne-still{position:absolute;inset:0;z-index:0;background:var(--kingdom-poster) center/cover no-repeat;pointer-events:none}#kingdom-throne-root .kingdom-throne-video{z-index:1;opacity:0;transition:opacity .35s ease;pointer-events:none!important;background:transparent!important;object-fit:cover!important}#kingdom-throne-root.has-frame .kingdom-throne-video{opacity:1}#kingdom-throne-root .kingdom-throne-skip,#kingdom-throne-root .kingdom-throne-replay{z-index:3}#kingdom-video-root video::-webkit-media-controls, #kingdom-throne-root video::-webkit-media-controls{display:none!important}#kingdom-video-root video::-webkit-media-controls-enclosure, #kingdom-throne-root video::-webkit-media-controls-enclosure{display:none!important}@media (max-width:700px){#kingdom-video-root .kingdom-skip,#kingdom-throne-root .kingdom-throne-skip{font-size:11px;opacity:.72;padding:8px 12px}}:root{--v115-gold:#edca91;--v115-gold-strong:#ffdfaa;--v115-line:rgba(224,188,126,.28);--v115-text:#f5ead5;--v115-muted:#c7b9a3;--v115-panel:rgba(11,20,33,.94)
}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0;overscroll-behavior-x:none}*,*::before,*::after{box-sizing:border-box}button,a,[role="button"]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #f5d4a1!important;outline-offset:3px!important
}button:disabled{cursor:not-allowed!important;filter:saturate(.65)}button:not(:disabled){transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease,transform .18s ease}@media (hover:hover){.v91-next-stage:hover,.v92-stage-card:not(:disabled):hover,.v93-pack:hover,
  .v91-shortcuts button:hover,.v90-button:not(:disabled):hover{filter:brightness(1.09);transform:translateY(-2px);box-shadow:0 16px 36px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.11)
  }
}.v90-screen{isolation:isolate;min-width:0;max-width:100%}.v90-screen .v90-kicker{color:#e4c28b;letter-spacing:.13em}.v90-screen h1,.v90-screen h2,.v90-screen h3{overflow-wrap:break-word;text-wrap:balance}.v90-screen p{overflow-wrap:break-word}.v91-commander-panel,.v91-next-stage,.v92-exp-hero,.v92-stage-card,
.v93-summon-altar,.v93-summon-preview,.v93-pack,.v92-deck-overview,
.v92-collection-shell,.v92-daily-board,.v92-missions,
.v96-deck .v92-deck-overview,.v96-rewards .v92-reward-grid > *,
.mk-battle-minimal .mk-battlefield,.mk-battle-minimal .mk-battle-footer{border-color:var(--v115-line)!important;box-shadow:inset 0 1px rgba(255,255,255,.065),0 12px 32px rgba(0,0,0,.24)
}.v91-home-grid>* , .v91-home-right>*,.v92-exp-hero>*,.v93-summon-topbar>*,
.v93-summon-visual>*,.v92-deck-shell>*,.v92-reward-grid>*{min-width:0}.v91-home-intro h1{line-height:1.16!important;letter-spacing:-.035em!important}.v91-commander-body,.v91-next-copy,.v91-shortcuts button{min-width:0}.v91-next-copy strong,.v92-stage-card strong,.v93-pack strong{overflow-wrap:anywhere}.v91-commander-buttons .v90-button,.v92-exp-actions .v90-button,
.v92-daily-actions .v90-button{min-width:0}.v91-shortcuts button,.v91-next-stage{position:relative;overflow:hidden}.v91-shortcuts button::after,.v91-next-stage::after{content:"";position:absolute;inset:0;border:1px solid rgba(249,213,154,.11);border-radius:inherit;pointer-events:none
}.v92-stage-grid{grid-auto-rows:auto!important;align-items:stretch!important}.v92-stage-card{min-width:0;min-height:150px!important;overflow:hidden;text-align:left}.v92-stage-card small,.v92-stage-card em{white-space:normal!important;line-height:1.4!important}.v92-exp-hero{overflow:hidden}.v92-exp-copy{min-width:0}.v92-exp-badges{flex-wrap:wrap!important;gap:6px!important}.v93-summon-refined .v93-summon-packs{align-items:stretch!important}.v93-summon-refined .v93-pack{min-width:0!important;min-height:112px!important;padding:clamp(10px,1.3vw,17px)!important;gap:5px!important}.v93-summon-refined .v93-pack strong{font-size:clamp(12px,1.3vw,17px)!important;line-height:1.35!important}.v93-summon-refined .v93-pack small,.v93-summon-refined .v93-pack em{font-size:clamp(10px,1vw,13px)!important}.v93-summon-refined .v93-summon-copy{min-width:0}.v93-summon-refined .v93-summon-stats{max-width:100%}.v96-deck .v90-deck-cards.v92-deck-cards{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:clamp(7px,.75vw,12px)!important;grid-auto-rows:auto!important;align-content:start!important
}.v96-deck .v90-deck-cards .v90-deck-slot{aspect-ratio:3/4!important;min-width:0!important;height:auto!important}.v96-deck .v90-deck-cards .game-card{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}.v96-deck .v90-deck-cards .card-name{font-size:clamp(9px,.95vw,12px)!important;line-height:1.25!important;white-space:normal!important}.v96-deck .v92-collection-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;gap:10px!important}.v96-deck .v92-collection-grid>.game-card{width:100%!important;min-width:0!important;max-width:none!important}.v96-deck .v92-deck-head-actions{flex-wrap:wrap}.v96-deck .v92-collection-top{min-width:0;flex-wrap:wrap!important}.v96-deck .v90-filterbar{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.v96-deck .v90-filterbar>div{min-width:max-content}.v96-deck .v96-deck-caption{min-width:0}.v96-rewards .v93-day-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(7px,.9vw,12px)!important}.v96-rewards .v93-day-card{min-width:0!important;min-height:110px!important;overflow:hidden}.v96-rewards .v93-day-card strong{overflow-wrap:anywhere}.v96-rewards .v92-daily-actions{flex-wrap:wrap!important}.v96-rewards .v92-daily-actions button{min-width:0}#overlays,.overlay-root{max-width:100vw}.overlay-root .overlay-shade{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}.overlay-root .modal{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto;overscroll-behavior:contain}.overlay-root .modal .modal-buttons{flex-wrap:wrap!important}.overlay-root .modal .modal-buttons .btn{min-width:0!important}#guided-tour-root .tour-panel{max-width:calc(100vw - 24px)!important;overflow-wrap:anywhere}#hd-opening-root,.kingdom-entrance,#hd-commander-root,#kingdom-video-root,#kingdom-throne-root{max-width:100vw}#hd-opening-root .kingdom-first-v103 .brand{max-width:100%!important}#hd-opening-root .kingdom-first-v103 .controls{max-width:calc(100vw - 20px)!important}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{object-fit:contain!important}#kingdom-video-root .kingdom-skip,#kingdom-throne-root .kingdom-throne-skip{min-height:38px;min-width:84px;right:max(12px,env(safe-area-inset-right))!important;top:max(12px,env(safe-area-inset-top))!important
}#kingdom-video-root .kingdom-retry,#kingdom-throne-root .kingdom-throne-replay{min-height:38px}.mk-battle-minimal .mk-battlefield{min-width:0}.mk-battle-minimal .mk-lane-name,.mk-battle-minimal .mk-lane-side{min-width:0!important}.mk-battle-minimal .mk-lane-side .mk-line-units{min-width:0!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{min-width:0!important}.mk-battle-minimal .mk-hand-cards{min-width:0;scrollbar-width:thin;scrollbar-color:#957a51 #0d1724}.mk-battle-minimal .mk-hand-cards .game-card{flex-shrink:0}.mk-battle-minimal button.mk-action,.mk-battle-minimal button.mk-turn{white-space:normal!important;line-height:1.3!important}.view,#view{scrollbar-width:thin;scrollbar-color:#86704f #08121d}@media (min-width:1025px) and (max-width:1420px){.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}@media (max-width:1024px){.v91-home-grid{grid-template-columns:1fr!important}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.v93-summon-refined .v93-summon-packs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}@media (max-width:700px){html,body{width:100%;max-width:100%}.app-shell,.main-shell,.view,#view{min-width:0!important;max-width:100%!important}.main-shell{padding-bottom:calc(60px + env(safe-area-inset-bottom))!important}.view{width:100%!important;max-width:100%!important;padding:clamp(9px,2.6vw,15px)!important;overflow-x:clip!important;overflow-y:auto!important}.bottom-nav{height:calc(58px + env(safe-area-inset-bottom))!important;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav .bottom-tab{min-width:0!important;min-height:48px!important;line-height:1.2}.topbar{max-width:100vw!important;gap:5px!important}.topbar .top-left,.topbar .top-right{min-width:0}.topbar .crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .currency{min-width:0!important;padding-inline:5px!important}.topbar .currency strong{font-variant-numeric:tabular-nums}.v91-home-intro h1{font-size:clamp(24px,7vw,34px)!important}.v91-commander-panel{min-width:0}.v91-commander-body{min-width:0}.v91-commander-body p{overflow-wrap:anywhere}.v91-commander-buttons{gap:7px!important}.v91-commander-buttons .v90-button{flex:1;min-width:0;font-size:clamp(10px,3vw,12px)!important;padding:8px 5px!important}.v91-next-stage{min-width:0}.v91-next-copy strong{font-size:clamp(15px,4.5vw,20px)!important}.v91-shortcuts{gap:8px!important}.v91-shortcuts button{min-width:0;padding-inline:9px!important}.v91-shortcuts button small{font-size:10px!important;line-height:1.3;white-space:normal!important}.v92-expedition .v92-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v92-stage-card{min-height:135px!important;padding:11px!important}.v92-stage-card strong{font-size:clamp(12px,3.7vw,16px)!important}.v92-exp-hero{min-height:0!important}.v92-exp-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}.v92-exp-actions button{flex:1!important;min-width:105px!important}.v93-summon-refined .v93-summon-packs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.v93-summon-refined .v93-pack{min-height:106px!important;border-radius:11px!important;padding:10px 5px!important}.v93-summon-refined .v93-pack .mark{font-size:19px!important}.v93-summon-refined .v93-pack strong{font-size:clamp(10px,2.9vw,13px)!important}.v93-summon-refined .v93-pack small,.v93-summon-refined .v93-pack em{font-size:clamp(9px,2.6vw,11px)!important}.v93-summon-refined .v93-summon-preview{min-width:0}.v93-summon-refined .v93-legend-row{justify-content:center}.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v96-deck .v90-deck-cards .v90-deck-slot{min-width:0!important;aspect-ratio:3/4!important}.v96-deck .v90-deck-cards .card-name{font-size:clamp(10px,2.8vw,12px)!important}.v96-deck .v92-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v96-deck .v92-collection-grid>.game-card{min-width:0!important}.v96-deck .v92-deck-head-actions .v90-button{min-width:0;flex:1}.v96-deck .v96-deck-caption{padding:9px;gap:5px}.v96-rewards .v93-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.v96-rewards .v93-day-card{min-height:112px!important}.v96-rewards .v92-daily-actions{gap:7px!important}.v96-rewards .v92-daily-actions .v90-button{flex:1;min-height:40px!important;padding-inline:6px!important}.mk-battle-minimal .mk-content-minimal{padding-inline:5px!important}.mk-battle-minimal .mk-battlefield{width:100%!important}.mk-battle-minimal .mk-lane-side{min-width:0!important;padding:4px 7px!important}.mk-battle-minimal .mk-lane-side .mk-line-units{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{height:clamp(60px,9.5vh,78px)!important}.mk-battle-minimal .mk-battle-footer{max-width:100%!important}.mk-battle-minimal .mk-hand-cards{overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity}.mk-battle-minimal .mk-hand-cards .game-card{scroll-snap-align:start}.overlay-root:has(.mk-result) .modal{width:calc(100vw - 18px)!important}#guided-tour-root .tour-panel{max-height:min(45dvh,310px)!important;overflow-y:auto}#hd-opening-root .kingdom-first-v103 .kingdom-logo-image{max-height:min(31dvh,250px)!important}#hd-commander-root .hd99-entry{min-height:100dvh}
}@media (max-width:380px){.v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.v96-deck .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v96-rewards .v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v93-summon-refined .v93-pack strong{font-size:10px!important}.v91-shortcuts button strong{font-size:12px!important}.mk-battle-minimal .mk-unit.unit.v90-field-card{grid-template-columns:37% minmax(0,1fr)!important;height:60px!important}.mk-battle-minimal .mk-unit-stats{font-size:8px!important}.topbar .currency{font-size:9px!important}
}@media (max-height:670px) and (min-width:701px){.view{height:auto!important;min-height:calc(100dvh - 65px)!important;overflow-y:auto!important}.v91-home-grid,.v92-stage-grid,.v93-summon-topbar{height:auto!important}
}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,a,.v90-screen *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}html[data-hd-theme="ink"]{--v115-gold:#dfbc91;--v115-gold-strong:#f0d6ae;--v115-line:rgba(191,151,105,.35);--v115-panel:rgba(23,20,17,.94)
}#kingdom-video-root button.kingdom-skip,
#kingdom-throne-root button.kingdom-throne-skip{position:absolute!important;top:max(12px,env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important;bottom:auto!important;left:auto!important;width:auto!important;max-width:max-content!important;height:30px!important;min-height:30px!important;min-width:0!important;padding:0 11px!important;border-radius:7px!important;font-size:10px!important;line-height:28px!important;letter-spacing:0!important;font-weight:500!important;white-space:nowrap!important;opacity:.75;transition:opacity .14s ease,background-color .14s ease!important
}#kingdom-video-root button.kingdom-skip:hover,
#kingdom-video-root button.kingdom-skip:focus-visible,
#kingdom-throne-root button.kingdom-throne-skip:hover,
#kingdom-throne-root button.kingdom-throne-skip:focus-visible{opacity:1}#guided-tour-root .tour-panel-top button[data-action="guide-skip"],
#guided-tour-root .tour-battle-ribbon button[data-action="guide-skip"],
#guided-tour-root .tour-wait button[data-action="guide-skip"]{flex:none!important;width:auto!important;min-width:0!important;min-height:28px!important;height:28px!important;padding:0 9px!important;font-size:10px!important;line-height:26px!important;border-radius:7px!important;white-space:nowrap!important
}#guided-tour-root .tour-panel{transition:none!important}#guided-tour-root .tour-pointer{animation-duration:1.2s}@media (max-width:700px){#guided-tour-root .tour-wait{left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;gap:6px!important;flex-wrap:wrap!important;justify-content:space-between!important}#guided-tour-root .tour-wait>span{flex:1 1 100%;text-align:center;font-size:11px}#guided-tour-root .tour-wait button{flex:1}#guided-tour-root .tour-panel{border-radius:12px!important}
}:root{--royal-metal:#d9b77a;--royal-metal-light:#fff0cc;--royal-sapphire:#77c4e5;--royal-ruby:#ec9385}#view>.royal-battle{--mk-border:#bf9e6b66;position:relative!important;background:radial-gradient(ellipse at 50% 0%,#1c2d3c 0%,#080f19 63%)!important;color:#f6ead8;min-height:100%;max-height:none!important;height:auto!important;overflow:visible!important;padding:0 0 clamp(10px,2vw,25px)!important}#view>.royal-battle:before{background:linear-gradient(180deg,#060e1bcb,#04090fed),var(--screen-art) center/cover no-repeat!important;filter:saturate(.7)}#view>.royal-battle:after{inset:4px!important;border:1px solid #bb916526!important}.royal-battle .mk-atmosphere{background:radial-gradient(ellipse at 50% -10%,#f7c27e1a,transparent 62%),radial-gradient(ellipse at 50% 80%,#30648c13,transparent 58%)!important}.royal-battle .mk-commanders{max-width:1470px;margin:0 auto 10px!important;min-height:94px!important;padding:10px clamp(12px,2.4vw,32px)!important;gap:clamp(8px,1.4vw,21px)!important;border:1px solid #ab8b593d!important;border-radius:0 0 15px 15px!important;background:linear-gradient(92deg,#071626ed,#142532e9 49%,#231722ed)!important;box-shadow:0 12px 36px #01040ca9,inset 0 1px 0 #fff1ce20!important}.royal-battle .mk-commanders:before{content:"";position:absolute;inset:4px;border:1px solid #edcb9330;border-radius:0 0 11px 11px;pointer-events:none}.royal-battle .mk-commander{background:linear-gradient(110deg,#0b2e46dd,#101d2bd9)!important;border:1px solid #78badd78!important;border-radius:12px!important;padding:8px 12px!important;min-height:74px;box-shadow:inset 0 0 25px #225e871c,0 7px 18px #0008!important}.royal-battle .mk-commander.foe{background:linear-gradient(260deg,#4a252adb,#201923e0)!important;border-color:#d87f7478!important;box-shadow:inset 0 0 25px #a74d4a20,0 7px 18px #0008!important}.royal-battle .mk-commander img{border-radius:7px!important;border-color:#b98f566a!important;width:60px!important;height:65px!important;object-fit:cover!important;filter:contrast(1.08) saturate(.88)}.royal-battle .mk-team-mark{font-size:9px!important;letter-spacing:.12em!important}.royal-battle .mk-commander-copy>strong{font-size:clamp(13px,1.6vw,19px)!important;line-height:1.35!important;color:#fbebce!important}.royal-battle .mk-hp-track{height:8px!important;background:#01070d!important;border:1px solid #a1adba50!important;box-shadow:inset 0 1px 3px #0009,0 0 0 2px #101921!important}.royal-battle .mk-hp-track.ally i{background:linear-gradient(90deg,#2e758e,#8dddf9)!important;box-shadow:0 0 13px #41a3e988}.royal-battle .mk-hp-track.foe i{background:linear-gradient(90deg,#8c3435,#ee9d7f)!important;box-shadow:0 0 13px #df665888}.royal-battle .mk-central-crest{min-height:80px!important;background:radial-gradient(circle,#d6ac5940 0%,#5c452228 40%,transparent 78%)!important}.royal-battle .mk-central-crest:before,.royal-battle .mk-central-crest:after{color:#d1a769b7!important}.royal-battle .mk-central-crest span,.royal-battle .mk-central-crest small{color:#c9ae82!important}.royal-battle .mk-central-crest b{font-size:37px!important;color:#ffedcc!important;text-shadow:0 1px 12px #eabb6868!important}.royal-battle .mk-retreat{width:29px!important;height:29px!important;border-radius:8px!important;background:#0f1825!important;border-color:#a38c6e6e!important;color:#e6cba5!important}.royal-battle .mk-content.mk-content-minimal{max-width:1470px!important;padding:4px clamp(9px,2.3vw,32px) 0!important;margin:0 auto!important}.royal-battle .mk-teams-legend{margin:0 2px 9px!important;min-height:25px;display:grid;grid-template-columns:1fr minmax(0,1.3fr) 1fr;align-items:center;color:#eddcc0;font:700 10px/1.35 Georgia,serif;letter-spacing:.12em;gap:5px}.royal-battle .mk-legend-ally{color:#a1ddf5!important;text-shadow:0 0 8px #2b7dba64;text-align:left}.royal-battle .mk-legend-enemy{color:#edb3a7!important;text-align:right;text-shadow:0 0 8px #d76b6064}.royal-battle .mk-field-instruction{font:500 10px/1.4 system-ui,sans-serif;color:#c8b697ad;letter-spacing:.08em;text-align:center;min-width:0}.royal-battle .mk-battlefield{min-height:485px!important;max-width:none!important;display:grid!important;grid-template-rows:repeat(3,minmax(145px,1fr))!important;gap:5px!important;padding:9px!important;border:1px solid #c3a16b8c!important;border-radius:16px!important;overflow:hidden!important;background:linear-gradient(160deg,#0b1624ef,#08121bdc 45%,#111a20f0),var(--mk-field-art) center/cover!important;box-shadow:0 22px 52px #01050acb,inset 0 1px 0 #f5cf8d52,inset 0 0 45px #0008!important}.royal-battle .mk-battlefield:before{inset:4px!important;border:1px solid #f0cb8242!important;box-shadow:inset 0 0 15px #020609c0!important;border-radius:11px}.royal-battle .mk-lane{grid-template-columns:minmax(85px,.44fr) minmax(0,1.35fr) 24px minmax(0,1.35fr)!important;grid-template-rows:minmax(128px,auto)!important;min-height:145px!important;margin:0!important;padding:3px!important;border:1px solid #b99a6652!important;border-radius:11px!important;overflow:hidden!important;gap:2px!important;background-image:linear-gradient(90deg,#061526df,#0e2b3db6 42%,#291b20a7 58%,#230e14df),var(--mk-lane-image)!important;background-position:center!important;background-size:cover!important;box-shadow:inset 0 0 22px #07101cd6,0 5px 16px #0008!important;transition:border-color .18s ease,box-shadow .18s ease,filter .18s ease}.royal-battle .mk-lane:after{background:linear-gradient(90deg,#06111dab,transparent 45%,#18080c99),linear-gradient(0deg,#06111a7a,transparent 50%)!important}.royal-battle .mk-lane-glaze{background:linear-gradient(90deg,transparent 42%,#b0c0a719 49%,#f5c17c23 50%,transparent 57%)!important}.royal-battle .mk-lane-name{grid-column:1!important;grid-row:1!important;flex-direction:column!important;justify-content:center!important;gap:8px!important;padding:8px!important;background:linear-gradient(90deg,#07111df0,#0c1c28a6)!important;border-right:1px solid #c5a56d3d!important;text-align:center}.royal-battle .mk-lane-icon{width:35px!important;height:35px!important;font-size:17px!important;border-color:#c6a16b82!important;background:#101d2be5!important;border-radius:50%!important;box-shadow:0 0 0 3px #c59c5c15,inset 0 0 13px #d0ad5430}.royal-battle .mk-lane-name strong{color:#f6e4c1!important;font:700 clamp(11px,1.05vw,15px)/1.25 Georgia,serif!important;letter-spacing:.12em!important}.royal-battle .mk-lane-side{grid-row:1!important;min-width:0!important;align-items:stretch!important;justify-content:space-between!important;padding:7px!important;gap:6px!important;border-radius:8px!important;overflow:hidden!important}.royal-battle .mk-lane-side.ally-side{grid-column:2!important;background:linear-gradient(90deg,#0b2a3d78,#10435f38)!important;border:1px solid #83c4e13d!important}.royal-battle .mk-lane-side.enemy-side{grid-column:4!important;background:linear-gradient(270deg,#49212c99,#44202b26)!important;border:1px solid #dc8c7836!important}.royal-battle .mk-lane-side .mk-side-caption{font:700 10px/1.1 system-ui,sans-serif!important;letter-spacing:.1em!important;min-height:15px!important;margin:0!important;flex:none!important}.royal-battle .mk-line-units{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:clamp(3px,.8vw,10px)!important;min-height:98px!important;width:100%!important;min-width:0!important;flex:1 1 auto!important}.royal-battle .mk-front-divider{grid-row:1!important;grid-column:3!important;color:#edcea3!important;display:flex!important}.royal-battle .mk-front-divider:before{background:linear-gradient(transparent,#e5bc768c,transparent)!important}.royal-battle .mk-front-divider span{font:700 9px/1 Georgia,serif;color:#e9c78e;letter-spacing:.12em;background:#0e1924ce!important;border:1px solid #b9936157;border-radius:999px!important;padding:7px 2px!important;box-shadow:0 0 15px #c29e5226}.royal-battle .mk-unit.unit.v90-field-card{width:min(30%,86px)!important;min-width:0!important;max-width:86px!important;flex:0 1 86px!important;height:107px!important;min-height:107px!important;border:1px solid #76b8dfac!important;border-radius:8px!important;box-shadow:0 6px 15px #000b,0 0 0 1px #cceafd29!important;isolation:isolate;background:#091623!important;transform-origin:center bottom!important}.royal-battle .mk-unit.enemy-unit{border-color:#dc937ba9!important;box-shadow:0 6px 15px #000b,0 0 0 1px #f5b4a821!important}.royal-battle .mk-unit:after{content:""!important;display:block!important;position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(180deg,transparent 18%,#02061248 52%,#07101eea 94%)}.royal-battle .mk-unit-image{filter:saturate(.95) contrast(1.07);background-position:center 18%!important;transition:transform .45s}.royal-battle .mk-unit:hover .mk-unit-image{transform:scale(1.07)}.royal-battle .mk-unit-stats{z-index:2!important;font:800 11px/1 system-ui,sans-serif!important;background:#071928db!important;border-top:1px solid #85b9d033!important;color:#def4ff!important;padding:5px 3px!important}.royal-battle .enemy-unit .mk-unit-stats{background:#29171dde!important;color:#ffd6c7!important;border-top-color:#d18a7c33!important}.royal-battle .mk-dropzone{position:relative;cursor:default!important;touch-action:manipulation;outline-offset:-3px!important;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}.royal-battle .mk-dropzone.deploy-ready{cursor:pointer!important;border-color:#a5ddf46b!important;box-shadow:inset 0 0 30px #2e9bc424!important}.royal-battle .mk-dropzone.deploy-ready:hover,.royal-battle .mk-dropzone.deploy-ready:focus-visible,.royal-battle .mk-lane.royal-hover .mk-dropzone{background:linear-gradient(90deg,#1774a366,#0c3b5477)!important;border-color:#b4eaffaf!important;box-shadow:inset 0 0 28px #7ac6f34d,0 0 22px #66c4ff35!important}.royal-battle .mk-dropzone.lane-full{opacity:.85}.royal-battle .mk-battle-footer{max-width:1406px!important;margin:11px auto 8px!important;padding:12px clamp(12px,2vw,20px)!important;border:1px solid #bc98687d!important;border-radius:15px!important;background:linear-gradient(155deg,#101b2af7,#060d17fb 70%)!important;box-shadow:0 15px 34px #0009,inset 0 1px #e9c58c26!important}.royal-battle .mk-hand-heading{display:flex!important;justify-content:space-between;color:#d9bea0;font-size:11px!important;letter-spacing:.09em}.royal-battle .mk-hand-heading b{color:#f1d4a5;font-size:13px!important}.royal-battle .mk-hand-cards{height:150px!important;min-height:0!important;max-width:100%!important;margin:5px 0!important;justify-content:center!important;gap:clamp(5px,1.1vw,12px)!important;overflow-x:auto!important;overflow-y:hidden!important;padding:5px 5px 10px!important;scrollbar-color:#90724c transparent!important}.royal-battle .mk-hand-cards .game-card{flex:0 0 104px!important;min-width:104px!important;width:104px!important;height:135px!important;min-height:135px!important;max-height:135px!important;border-radius:9px!important;border:1px solid #d3b37a8a!important;box-shadow:0 7px 18px #000b,inset 0 0 0 1px #fff2d722!important;cursor:grab!important;touch-action:pan-x!important;user-select:none!important;-webkit-user-select:none!important;transition:transform .17s ease,filter .17s ease,border-color .17s ease!important}.royal-battle .mk-hand-cards .game-card:hover{transform:translateY(-6px)!important;border-color:#ffebbe!important;filter:brightness(1.1)}.royal-battle .mk-hand-cards .game-card.selected{transform:translateY(-5px)!important;box-shadow:0 0 0 1px #fae4b4,0 0 18px #eac0727d!important}.royal-battle .mk-hand-cards .game-card.mk-unavailable{opacity:.53;filter:grayscale(.4)}.royal-battle .mk-actions{margin-top:9px!important;padding-top:10px!important;gap:clamp(5px,1vw,12px)!important;border-top:1px solid #cfad7650!important}.royal-battle .mk-command-meter{background:#081521b7!important;border:1px solid #c2a16d4d!important;border-radius:9px!important;padding-inline:14px!important;color:#edd3ad!important}.royal-battle .mk-action{border-radius:9px!important;border-color:#b59d7870!important;background:#1b2d3ee6!important;color:#f1dac0!important;box-shadow:inset 0 1px #cfe2ed13}.royal-battle .mk-action:not(:disabled):hover{background:#284257!important;border-color:#e7c38c!important}.royal-battle .mk-turn{background:linear-gradient(145deg,#f9e5bb,#c59d62 60%,#97703f)!important;border:1px solid #fff4ce!important;color:#201506!important;border-radius:10px!important;box-shadow:0 6px 22px #b08c5342,inset 0 1px #fffce6!important}.royal-battle .mk-turn:hover{filter:brightness(1.12)!important;transform:translateY(-1px)}@keyframes royal-lift{from{opacity:.5;scale:.7}to{opacity:1;scale:1}}@keyframes royal-ring{0%{transform:scale(.12) rotate(-30deg);opacity:1}67%{opacity:.9}100%{transform:scale(1.9) rotate(120deg);opacity:0}}@keyframes royal-sigil{0%{opacity:0;scale:.2;rotate:-70deg}20%{opacity:1;scale:1.1}100%{opacity:0;scale:2;rotate:30deg}}@keyframes royal-beam{0%{opacity:0;transform:scaleY(.2)}30%{opacity:.65}100%{opacity:0;transform:scaleY(1.5)}}@keyframes royal-shards{from{transform:rotate(0) scale(.3);opacity:1}to{transform:rotate(110deg) scale(2.1);opacity:0}}@media (max-width:1080px){.royal-battle .mk-commanders{grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr) 26px!important}.royal-battle .mk-hand-cards{justify-content:flex-start!important}.royal-battle .mk-lane{grid-template-columns:minmax(72px,.36fr) minmax(0,1.35fr) 18px minmax(0,1.35fr)!important}.royal-battle .mk-unit.unit.v90-field-card{height:90px!important;min-height:90px!important}.royal-battle .mk-line-units{min-height:92px!important}}@media (max-width:820px){#view>.royal-battle{padding-bottom:4px!important}.royal-battle .mk-commanders{margin:0 5px 7px!important;grid-template-columns:minmax(0,1fr) 49px minmax(0,1fr) 22px!important;min-height:80px!important;padding:5px!important;gap:3px!important;border-radius:9px!important}.royal-battle .mk-commander{padding:14px 5px 5px!important;gap:4px!important;min-height:72px!important;border-radius:7px!important}.royal-battle .mk-commander img{width:32px!important;height:42px!important}.royal-battle .mk-commander-copy>strong{font-size:10px!important;white-space:normal!important;line-height:1.2!important}.royal-battle .mk-central-crest{min-height:52px!important}.royal-battle .mk-central-crest b{font-size:23px!important}.royal-battle .mk-content.mk-content-minimal{padding:2px 6px!important}.royal-battle .mk-teams-legend{margin:0 1px 6px!important;grid-template-columns:1fr auto 1fr;font-size:8px!important;gap:4px}.royal-battle .mk-field-instruction{font-size:8px;letter-spacing:0}.royal-battle .mk-battlefield{display:flex!important;flex-direction:column!important;gap:7px!important;min-height:0!important;grid-template-rows:none!important;padding:6px!important;overflow:visible!important;border-radius:11px!important}.royal-battle .mk-lane{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:24px minmax(61px,auto) minmax(65px,auto)!important;grid-template-areas:"lane-name" "opponent" "ally"!important;min-height:0!important;padding:5px!important;gap:4px!important;margin:0!important;border-radius:10px!important}.royal-battle .mk-lane-name{grid-area:lane-name!important;grid-column:1!important;grid-row:1!important;flex-direction:row!important;justify-content:center!important;gap:6px!important;padding:0!important;border:0!important;border-radius:5px!important;background:linear-gradient(90deg,transparent,#ad8b5845,transparent)!important}.royal-battle .mk-lane-icon{width:20px!important;height:20px!important;font-size:11px!important}.royal-battle .mk-lane-name strong{font-size:10px!important}.royal-battle .mk-lane-side{grid-column:1!important;gap:2px!important;padding:4px 6px!important;min-height:64px!important;overflow:hidden!important;flex-direction:column!important;justify-content:center!important}.royal-battle .mk-lane-side.enemy-side{grid-area:opponent!important;grid-row:2!important;grid-column:1!important;border-left:3px solid #cc786c!important;background:linear-gradient(90deg,#4b1c29dd,#1c151fdd)!important}.royal-battle .mk-lane-side.ally-side{grid-area:ally!important;grid-row:3!important;grid-column:1!important;border-left:3px solid #69c3e9!important;background:linear-gradient(90deg,#0c3955ee,#0b1d2ddd)!important}.royal-battle .mk-front-divider{display:none!important}.royal-battle .mk-side-caption{font-size:8px!important;min-height:10px!important}.royal-battle .mk-line-units{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;min-height:47px!important;flex:1 0 auto!important;align-items:center!important;justify-items:center!important}.royal-battle .mk-unit.unit.v90-field-card{width:100%!important;max-width:126px!important;min-width:0!important;height:54px!important;min-height:54px!important;border-radius:5px!important;display:grid!important;grid-template-columns:35% minmax(0,1fr)!important;grid-template-rows:1fr auto!important}.royal-battle .mk-unit-image{position:relative!important;grid-column:1!important;grid-row:1/3!important;background-position:48% center!important}.royal-battle .mk-unit-stats{grid-column:2!important;grid-row:2!important;font-size:9px!important;padding:4px 1px!important;gap:1px!important;white-space:nowrap!important}.royal-battle .mk-battle-footer{width:calc(100% - 12px)!important;margin:7px auto 10px!important;padding:7px!important;border-radius:10px!important}.royal-battle .mk-hand-heading{font-size:9px!important}.royal-battle .mk-hand-heading b{font-size:11px!important}.royal-battle .mk-hand-cards{height:121px!important;max-height:121px!important;justify-content:flex-start!important;padding:3px!important;margin:3px 0!important;gap:6px!important}.royal-battle .mk-hand-cards .game-card{flex:0 0 81px!important;min-width:81px!important;width:81px!important;height:110px!important;min-height:110px!important;max-height:110px!important}.royal-battle .mk-actions{margin-top:5px!important;padding-top:7px!important;gap:5px!important;flex-wrap:wrap!important}.royal-battle .mk-command-meter{min-width:0!important;padding:4px!important}.royal-battle .mk-action,.royal-battle .mk-turn{min-height:36px!important;font-size:10px!important;border-radius:7px!important;padding-inline:5px!important}
}@media (max-width:385px){.royal-battle .mk-teams-legend{grid-template-columns:1fr 1fr!important}.royal-battle .mk-field-instruction{display:none}.royal-battle .mk-hand-cards .game-card{flex-basis:75px!important;min-width:75px!important;width:75px!important}.royal-battle .mk-unit-stats{font-size:8px!important}}@media (prefers-reduced-motion:reduce){.royal-battle *, .royal-drag-card,.royal-summon-burst *{animation-duration:.01ms!important;transition-duration:.01ms!important}}#view>.royal-battle{align-items:stretch!important;justify-content:flex-start!important}.royal-battle .mk-content.mk-content-minimal{width:100%!important;flex:0 0 auto!important}.royal-battle .mk-commanders{width:100%!important;flex:0 0 auto!important}.royal-battle .mk-battle-footer{width:calc(100% - clamp(18px,4.6vw,64px))!important;flex:0 0 auto!important}@media (min-width:821px){.royal-battle .mk-commanders{min-height:79px!important;padding-top:6px!important;padding-bottom:6px!important;margin-bottom:6px!important}.royal-battle .mk-commander{min-height:63px!important}.royal-battle .mk-commander img{height:53px!important;width:49px!important}.royal-battle .mk-central-crest{min-height:65px!important}.royal-battle .mk-central-crest b{font-size:31px!important}.royal-battle .mk-teams-legend{margin-bottom:5px!important}.royal-battle .mk-battlefield{min-height:385px!important;grid-template-rows:repeat(3,minmax(124px,1fr))!important;padding:6px!important;gap:4px!important}.royal-battle .mk-lane{min-height:122px!important;grid-template-rows:minmax(122px,auto)!important}.royal-battle .mk-unit.unit.v90-field-card{height:90px!important;min-height:90px!important}.royal-battle .mk-line-units{min-height:87px!important}.royal-battle .mk-battle-footer{margin-top:7px!important;padding:7px 13px!important}.royal-battle .mk-hand-cards{height:130px!important;margin:3px 0!important;padding-top:3px!important;padding-bottom:5px!important}.royal-battle .mk-hand-cards .game-card{height:117px!important;min-height:117px!important;max-height:117px!important;width:94px!important;min-width:94px!important;flex-basis:94px!important}.royal-battle .mk-actions{min-height:50px!important;margin-top:3px!important;padding-top:5px!important}.royal-battle .mk-command-meter{padding-block:3px!important}.royal-battle .mk-action,.royal-battle .mk-turn{min-height:40px!important}
}@media (max-width:820px){.royal-battle .mk-content.mk-content-minimal{width:100%!important;max-width:100%!important;align-self:stretch!important;margin:0!important}.royal-battle .mk-battlefield{width:100%!important;max-width:none!important}.royal-battle .mk-commanders{width:calc(100% - 10px)!important;max-width:none!important;flex-shrink:0!important}.royal-battle .mk-battle-footer{width:calc(100% - 12px)!important;max-width:none!important;flex-shrink:0!important}
}@media (max-width:820px){.royal-battle .mk-battle-footer{position:sticky!important;bottom:0!important;z-index:25!important;box-shadow:0 -12px 38px #01040ded,0 10px 26px #000b,inset 0 1px #e9c58c26!important;backdrop-filter:blur(16px)!important}.main-shell:has(.royal-battle){padding-bottom:0!important}#view:has(.royal-battle){height:calc(100dvh - 124px - env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 124px - env(safe-area-inset-bottom))!important;min-height:0!important;padding-bottom:0!important;overflow-y:auto!important;overscroll-behavior-y:contain!important}.royal-battle .mk-hand-cards{height:109px!important;max-height:109px!important}.royal-battle .mk-hand-cards .game-card{height:103px!important;min-height:103px!important;max-height:103px!important}.royal-battle .mk-actions{min-height:45px!important}
}
/* Royal Original Soundtrack UI */
.topbar .royal-music-button{color:#c7b08b;border:1px solid #806d4a66;background:linear-gradient(155deg,#1c2934,#0c131b);font-size:21px;line-height:1}
.topbar .royal-music-button.is-on{color:#f9d991;border-color:#d5ae67;box-shadow:inset 0 0 15px #b99c3c22,0 0 10px #cba65727}
.royal-opening-music{position:absolute;right:clamp(14px,3vw,40px);bottom:clamp(13px,3vh,31px);z-index:21;background:#081521b9;color:#ebc88e;border:1px solid #d2a66b74;border-radius:24px;padding:7px 14px;font:600 12px/1.2 Georgia,"Noto Sans KR",sans-serif;letter-spacing:.035em;cursor:pointer;backdrop-filter:blur(8px);box-shadow:0 6px 20px #0008}
.royal-opening-music.is-on{background:#1d2931e8;color:#ffe3ad;border-color:#f4c87d}
.royal-sound-panel{background:linear-gradient(140deg,#121f2c,#09131d);padding:15px 18px 16px;margin:15px 0;border:1px solid #9b7e5199;border-radius:12px;box-shadow:inset 0 1px #f5dbaa17}
.royal-sound-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.royal-sound-line>div{display:grid;gap:3px}.royal-sound-line strong{color:#f2d7aa;font-size:16px}.royal-sound-kicker{color:#ad936c;font-size:9px;letter-spacing:1.7px}
.royal-sound-toggle{display:grid;place-items:center;flex:0 0 46px;height:34px;border:1px solid #bfa1758b;border-radius:8px;background:#121c24;color:#cbb38a;font-size:20px;cursor:pointer}
.royal-sound-toggle.is-on{color:#fbe2a4;border-color:#f0ca8c;background:#302a21}
.royal-sound-volume{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 6px;color:#bdc7cb;font-size:12px}
.royal-sound-volume output{color:#f1cf91;font-variant-numeric:tabular-nums;font-weight:650}
.royal-volume-slider{display:block;width:100%;margin:0 0 4px;accent-color:#d4ae6b;cursor:pointer}
.royal-sound-sfx{border-top:1px solid #a58c5f40;padding-top:13px;margin-top:15px}
@media(max-width:610px){.topbar .royal-music-button{width:30px;height:30px;font-size:18px;flex:none}.royal-opening-music{right:11px;bottom:10px;font-size:10px;padding:6px 10px}.royal-sound-panel{padding:12px}.royal-sound-line strong{font-size:14px}}

/* Original soundtrack controls */





@media(max-width:370px){}
/* ── KINGDOM CARD ATELIER · V3 / 2026 ──
   Consistent collectible treatment across decks, codex, battle and summon.
   All rules are additive to preserve campaign, audio and layout features.
*/
.game-card{
 --card-metal:#aeb3bb;
 --card-light:#e9e6df;
 --card-glow:rgba(188,196,207,.22);
 position:relative!important;isolation:isolate;
 border:2px solid var(--card-metal)!important;
 border-radius:12px!important;
 background:#090e17!important;
 box-shadow:0 11px 26px #0009,0 0 0 1px #101720,inset 0 0 0 1px #ffffff20,0 0 15px var(--card-glow)!important;
 overflow:hidden!important;
 -webkit-font-smoothing:antialiased;
 transform-style:preserve-3d;
 transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important;
}
.game-card.common{--card-metal:#a3adb9;--card-light:#e1e9f2;--card-glow:rgba(125,150,181,.12)}
.game-card.rare{--card-metal:#7bc5ef;--card-light:#d9f5ff;--card-glow:rgba(86,171,237,.24)}
.game-card.epic{--card-metal:#c6a4fa;--card-light:#f0deff;--card-glow:rgba(162,107,240,.27)}
.game-card.legendary{--card-metal:#eec277;--card-light:#ffebc2;--card-glow:rgba(246,179,74,.39)}
.game-card::before{
 content:"";position:absolute;inset:4px;z-index:8;pointer-events:none;
 border:1px solid color-mix(in srgb,var(--card-metal) 65%,transparent);
 border-radius:8px;
 box-shadow:inset 0 0 0 1px #05070970,0 0 0 1px #0007;
}
.game-card::after{
 content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
 background:linear-gradient(121deg,transparent 20%,#fff3de10 37%,transparent 57%),
 linear-gradient(180deg,#0a091c25 0%,transparent 23%,transparent 44%,#07081155 62%,#070a12fa 94%);
}
.game-card .card-art,
.v90-screen .game-card .card-art{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 background-size:cover!important;background-position:center 35%!important;
 filter:saturate(1.13) contrast(1.08)!important;
 border:0!important;
}
.game-card .card-art::after,.v90-screen .game-card .card-art::after{
 content:"";position:absolute;inset:0;
 background:linear-gradient(180deg,#0b101a30 0%,transparent 18%,#05091312 45%,#070b15d9 78%,#070a10f5 100%)!important;
}
.game-card .card-cost,
.v90-screen .game-card .card-cost{
 top:10px!important;left:10px!important;z-index:12!important;
 width:29px!important;height:29px!important;
 font-size:15px!important;font-weight:800!important;
 color:#f7f2e9!important;
 background:radial-gradient(circle at 33% 21%,#559dc5 0%,#183e67 45%,#05162e 100%)!important;
 border:1.5px solid #bde5fb!important;box-shadow:inset 0 0 0 2px #ffffff1e,0 2px 0 #03101a,0 3px 11px #000b!important;
}
.game-card .card-crest{
 position:absolute;top:11px;right:10px;z-index:12;
 display:grid;place-items:center;width:27px;height:27px;
 color:var(--card-light);font-size:12px;font-weight:700;
 background:linear-gradient(155deg,#18202edd,#060c16ef);
 border:1px solid var(--card-metal);border-radius:4px;
 box-shadow:0 3px 9px #000a,inset 0 0 0 2px #ffffff0d;
}
.game-card[data-faction="yi"] .card-crest{color:#f4d2a3}
.game-card[data-faction="khan"] .card-crest{color:#ecdad0}
.game-card[data-faction="neutral"] .card-crest{color:#b8dced}
.game-card .card-rarity,.v90-screen .game-card .card-rarity{
 display:inline-flex!important;align-items:center;justify-content:center;
 position:absolute!important;right:7px!important;top:46px!important;z-index:11!important;
 font-size:8px!important;letter-spacing:.06em!important;font-weight:700!important;
 padding:3px 7px!important;border:1px solid var(--card-metal)!important;
 border-radius:2px!important;
 background:#080e19d9!important;color:var(--card-light)!important;
 text-shadow:0 1px 2px #000!important;
 box-shadow:0 2px 7px #0007!important;
}
.game-card .card-info,.v90-screen .game-card .card-info{
 position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:7!important;
 height:auto!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:3px!important;
 background:linear-gradient(180deg,#0b1014b0 0%,#0c1220ec 26%,#090d17fe 100%)!important;
 border:0!important;border-top:1px solid var(--card-metal)!important;
 padding:8px 7px 9px!important;
 text-align:center!important;
 box-shadow:0 -7px 18px #0009!important;
}
.game-card .card-name,.v90-screen .game-card .card-name,
html[data-hd-theme="ink"] body .game-card .card-name,
html[data-hd-theme="gilt"] body .game-card .card-name{
 display:block!important;max-width:100%!important;
 font-family:Georgia,"Noto Serif KR","Nanum Myeongjo",serif!important;
 font-size:clamp(11px,1.04vw,15px)!important;font-weight:700!important;
 letter-spacing:-.04em!important;line-height:1.36!important;
 color:#fff0d6!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 text-shadow:0 2px 7px #000!important;
}
.game-card .card-type,.v90-screen .game-card .card-type{
 display:block!important;font-size:9px!important;line-height:1.25!important;
 letter-spacing:.05em!important;font-weight:550!important;
 color:#c4bbaf!important;white-space:nowrap!important;
}
.game-card .card-stats,.v90-screen .game-card .card-stats{
 display:flex!important;justify-content:space-around!important;gap:5px!important;
 align-items:center!important;
 margin-top:3px!important;padding:4px 4px 0!important;
 border:0!important;border-top:1px solid #e5bf7750!important;
 font-size:11px!important;font-weight:700!important;
 color:#fff2db!important;
}
.game-card .card-stats .atk{color:#f5d2a4!important}
.game-card .card-stats .hp{color:#e8b8b4!important}
.game-card .card-level,.v90-screen .game-card .card-level{display:none!important}
.game-card .owned-count,.v90-screen .game-card .owned-count{
 display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:10!important;
 padding:4px!important;font-size:9px!important;
 color:#f1d9a8!important;text-align:center!important;
 background:#060a12eb!important;border-top:1px solid #d1a86b47!important;
}
.game-card:has(.owned-count) .card-info,.v90-screen .game-card:has(.owned-count) .card-info{bottom:22px!important}
.game-card:hover:not(:disabled){transform:translateY(-5px) scale(1.018)!important;box-shadow:0 15px 32px #000b,0 0 19px var(--card-glow),inset 0 0 0 1px #ffffff34!important}
.game-card:focus-visible{outline:2px solid #f4d39a!important;outline-offset:3px!important}
.game-card.selected{box-shadow:0 0 0 2px #fff4d8,0 0 26px var(--card-glow)!important}
.game-card.unowned{filter:grayscale(.82) brightness(.57)!important}
.game-card.compact .card-rarity{font-size:8px!important}
.game-card.compact .card-name{font-size:clamp(10px,.96vw,13px)!important}
.game-card.compact .card-crest{top:8px;right:8px;width:22px;height:22px;font-size:11px}
.game-card.compact .card-cost{top:8px!important;left:8px!important;width:25px!important;height:25px!important;font-size:12px!important}
.game-card.compact .card-rarity{top:36px!important}
.game-card.compact .card-info{padding:6px 4px 7px!important;gap:2px!important}
.game-card.compact .card-type{font-size:8px!important}
.game-card.compact .card-stats{font-size:10px!important;padding-top:3px!important}
.v90-library-cards,.v92-collection-grid{align-items:start}
.v90-library-cards .game-card,.v92-collection-grid .game-card{aspect-ratio:.72!important}
/* Card rewards clearly show new acquisition versus material conversion. */
.ritual-reward{position:relative;overflow:visible!important}
.ritual-reward .game-card{width:100%!important;max-width:100%!important}
.ritual-reward-status{
 position:absolute;z-index:20;bottom:-11px;left:50%;transform:translateX(-50%);
 display:block;min-width:max-content;text-align:center;white-space:nowrap;
 font-weight:800;font-size:11px;letter-spacing:.015em;
 border-radius:5px;padding:6px 11px;
 box-shadow:0 5px 15px #000c;
}
.ritual-reward-status.new{color:#13231d;border:1px solid #d7f1d6;background:linear-gradient(130deg,#c9f1da,#a5d9c4)}
.ritual-reward-status.duplicate{color:#291a05;border:1px solid #f8dca3;background:linear-gradient(140deg,#ffedc4,#dfa95e)}
.ritual-scene.finished .ritual-hint{font-size:12px;line-height:1.55;color:#e4ceb0}
@media(max-width:680px){
 .game-card{border-radius:9px!important}
 .game-card .card-info,.v90-screen .game-card .card-info{gap:2px!important;padding:6px 3px 5px!important}
 .game-card .card-name,.v90-screen .game-card .card-name{font-size:11px!important}
 .game-card .card-type,.v90-screen .game-card .card-type{font-size:8px!important}
 .game-card .card-stats,.v90-screen .game-card .card-stats{font-size:9px!important}
 .game-card .card-cost,.v90-screen .game-card .card-cost{top:6px!important;left:6px!important;width:23px!important;height:23px!important;font-size:12px!important}
 .game-card .card-crest{top:6px;right:6px;width:21px;height:21px;font-size:10px}
 .game-card .card-rarity,.v90-screen .game-card .card-rarity{top:33px!important;right:5px!important;font-size:7px!important;padding:2px 5px!important}
 .game-card:has(.owned-count) .card-info,.v90-screen .game-card:has(.owned-count) .card-info{bottom:17px!important}
 .game-card .owned-count,.v90-screen .game-card .owned-count{font-size:8px!important;padding:2px!important}
 .ritual-reward-status{font-size:9px;padding:4px 7px;bottom:-8px}
}
@media(prefers-reduced-motion:reduce){.game-card{transition:none!important}}
/* The card flip scales reward cards, so place the final summary BELOW the cards. */
.ritual-scene.finished .ritual-rewards{order:1}
.ritual-scene.finished .ritual-stage-text{
 order:2;position:relative;z-index:25;
 min-height:0;margin:22px auto 10px!important;
 padding:9px 18px;border:1px solid #e2bc7755;border-radius:7px;
 max-width:min(90vw,670px);background:#0a0e1bdc;
 color:#ffe5b7;font-size:13px;font-weight:750;letter-spacing:.035em;
 line-height:1.6;box-shadow:0 6px 18px #0007;
}
.ritual-scene.finished .ritual-honors{order:3}
.ritual-scene.finished .ritual-action-row{order:4}
.ritual-scene.finished .ritual-hint{order:5}
@media(max-width:600px){
 .ritual-scene.finished .ritual-stage-text{font-size:11px;margin-top:16px!important;padding:7px 9px;letter-spacing:0}
}


/* =======================
   KINGDOM PREMIUM CHRONICLE V120
   Cohesive Joseon, Mongol, and Tactics visual system.
   Real text sits over independently cropped high-grade painted artwork.
   ======================= */
.game-card,.v90-screen .game-card{
 --card-metal:#d9ae67;--card-light:#ffe8b4;
 border:2px solid var(--card-metal)!important;
 border-radius:11px!important;
 box-shadow:0 8px 22px #000c,0 0 0 1px #533916,inset 0 0 0 1px #f5e5c338!important;
 background:#090d12!important;
}
.game-card.common{--card-metal:#baa78c;--card-light:#f2dcc0;--card-glow:rgba(213,185,146,.09)}
.game-card.rare{--card-metal:#a2cce1;--card-light:#e5f5ff;--card-glow:rgba(113,181,209,.18)}
.game-card.epic{--card-metal:#cda6ef;--card-light:#f0dbff;--card-glow:rgba(194,137,240,.2)}
.game-card.legendary{--card-metal:#efc47e;--card-light:#fff0bb;--card-glow:rgba(241,185,89,.43)}
.game-card[data-faction="yi"]{--faction-tint:#0f3552;--faction-bright:#91c9f4}
.game-card[data-faction="khan"]{--faction-tint:#521916;--faction-bright:#eeab92}
.game-card[data-faction="neutral"]{--faction-tint:#3c2b15;--faction-bright:#f5d28a}
.game-card .card-art,.v90-screen .game-card .card-art{
 background-position:center 39%!important;background-size:cover!important;
 filter:saturate(1.09) contrast(1.09)!important
}
.game-card .card-art::after,.v90-screen .game-card .card-art::after{
 background:linear-gradient(180deg,#04080d30 0%,transparent 24%,#05091318 53%,#03070eda 88%,#03080cf8 100%)!important
}
.game-card::after{background:linear-gradient(128deg,transparent 19%,#fff5dd12 33%,transparent 58%),linear-gradient(180deg,#11142614 0%,transparent 35%,#080b15b5 99%)!important}
.game-card::before{inset:4px!important;border:1px solid #ebc890aa!important;border-radius:7px!important;box-shadow:inset 0 0 0 1px #05050999,0 0 0 1px #21160b!important}
.game-card .card-cost,.v90-screen .game-card .card-cost{
 display:grid!important;place-items:center!important;
 background:linear-gradient(146deg,#302318,#080e19 68%)!important;
 color:#fff2d0!important;border:1.5px solid #eac887!important;
 transform:rotate(-7deg);border-radius:5px!important;
 box-shadow:0 3px 0 #160f07,0 5px 12px #000a,inset 0 0 0 1px #f9e6af3b!important
}
.game-card .card-crest{background:linear-gradient(135deg,var(--faction-tint),#080d15)!important;border:1px solid #deaf62!important;color:var(--faction-bright)!important}
.game-card .card-info,.v90-screen .game-card .card-info{
 background:linear-gradient(180deg,rgba(5,11,16,.79),rgba(6,9,15,.98) 38%,#070a13 100%)!important;
 border-top:1px solid #eac689af!important;box-shadow:0 -10px 25px #05070cb3,inset 0 1px 0 #ffffff0d!important
}
.game-card .card-name,.v90-screen .game-card .card-name,
html[data-hd-theme="ink"] body .game-card .card-name,html[data-hd-theme="gilt"] body .game-card .card-name{
 color:#ffedc5!important;font-family:"Noto Serif KR","Nanum Myeongjo",Georgia,serif!important;
 white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
 overflow-wrap:keep-all!important;word-break:keep-all!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
 font-size:clamp(11px,.91vw,14px)!important;line-height:1.32!important;letter-spacing:-.055em!important;
 text-shadow:0 1px 4px #000,0 0 15px #d2ab5740!important
}
.game-card[data-name-length="11"] .card-name,.game-card[data-name-length="12"] .card-name,.game-card[data-name-length="13"] .card-name,.game-card[data-name-length="14"] .card-name,.game-card[data-name-length="15"] .card-name{font-size:clamp(10px,.82vw,13px)!important}
.game-card .card-type,.v90-screen .game-card .card-type{color:#d7c5a4!important;letter-spacing:.025em!important}
.game-card .card-stats,.v90-screen .game-card .card-stats{border-top:1px solid #cea16369!important;font-weight:800!important}
.game-card.compact .card-info{padding:5px 4px 6px!important}
.game-card.compact .card-name{font-size:clamp(9px,.8vw,12px)!important;line-height:1.18!important}
.game-card[data-name-length="11"].compact .card-name,.game-card[data-name-length="12"].compact .card-name{font-size:10px!important}
.game-card.legendary{box-shadow:0 12px 30px #000d,0 0 18px rgba(245,193,95,.17),inset 0 0 0 1px #ffe3ac59!important}
.game-card.legendary::before{border-color:#f8dc99dd!important}
@media(max-width:680px){
 .game-card .card-name,.v90-screen .game-card .card-name{font-size:10px!important;line-height:1.16!important}
 .game-card .card-info,.v90-screen .game-card .card-info{padding:5px 4px 6px!important}
 .game-card.compact .card-name{font-size:9px!important}
 .game-card .card-type{font-size:7px!important}
 .game-card .card-stats{font-size:9px!important}
}
/* Battle and campaign finale: ceremonial frame, rich native-HD background and legible labels. */
.overlay-shade:has(.mk-result-v113){background:radial-gradient(circle at center,#281e18aa,#000b 75%)!important;backdrop-filter:blur(22px)!important}
.overlay-shade:has(.mk-result-v113) .modal{border:1.5px solid #e3bd7c!important;border-radius:14px!important;box-shadow:0 30px 120px #000f,0 0 80px #d4a26024,inset 0 1px #fff3c05b!important}
.mk-result-v113 .mk-result-cinematic{height:clamp(245px,37vh,345px)!important;background-position:center,center center!important}
.mk-result-v113 .mk-result-royal-sigil{font-size:35px!important;text-shadow:0 0 22px #fee3a69c!important}
.mk-result-v113 .mk-result-royal-title{font-family:"Noto Serif KR",Georgia,serif!important;letter-spacing:.09em!important;text-indent:.09em!important}
.mk-result-v113 .mk-result-royal-meta strong{font-family:"Noto Serif KR",Georgia,serif!important}
.mk-result-v113 .mk-result-royal-stats>div{border:1px solid #c99b6255!important;border-radius:8px;background:linear-gradient(155deg,#192234,#0a101d)!important}
.mk-result-v113 .mk-result-royal-reward{border:1px solid #dbb37a7d!important;border-radius:9px;background:linear-gradient(125deg,#262016a9,#0a121f)!important}
.mk-result-v113 .mk-result-royal-primary{border-radius:5px!important;letter-spacing:.04em!important}
.mk-result-v113 .mk-result-royal-secondary{border-radius:5px!important}







/* End-of-tutorial: a custom prestige completion certificate, no plain text dialog. */
















.hd-premium-primary,.hd-premium-ghost{border-radius:6px;padding:14px 20px;min-height:51px;font-weight:800;font-size:13px;transition:transform .2s ease,filter .2s ease}
.hd-premium-primary{border:1px solid #f5ddae;background:linear-gradient(145deg,#f7dca4,#c7934c);color:#1e160e;box-shadow:0 6px 26px #d4a45129;min-width:225px}
.hd-premium-ghost{border:1px solid #c99d6088;color:#efd9b5;background:#1c2330;min-width:170px}
.hd-premium-primary:hover,.hd-premium-ghost:hover{filter:brightness(1.1);transform:translateY(-2px)}
@media(max-width:680px){
 
 
 
 
 
}
@media(prefers-reduced-motion:reduce){.hd-premium-primary,.hd-premium-ghost{transition:none!important}}


/* v114 result UI: recurring expedition results, concise and consistently styled. */
.overlay-shade:has(.mk-result-v114){background:rgba(1,5,12,.83)!important;backdrop-filter:blur(14px)!important}
.overlay-shade:has(.mk-result-v114) .modal{width:min(680px,calc(100vw - 24px))!important;max-width:680px!important;border:1px solid rgba(228,191,131,.55)!important;border-radius:12px!important;box-shadow:0 35px 100px #000d!important}
.mk-result-v114 .mk-result-cinematic{height:clamp(185px,30vh,264px)!important;padding:22px 16px!important;justify-content:center!important;background-image:linear-gradient(180deg,rgba(4,9,15,.3),rgba(4,9,15,.30) 40%,#08101b),var(--result-image)!important;background-size:cover!important}
.mk-result-v114 .mk-result-royal-sigil{font-size:24px!important;line-height:1!important;margin-bottom:4px!important;opacity:.85}
.mk-result-v114 .mk-result-royal-small{font:700 10px/1.5 system-ui,sans-serif!important;letter-spacing:.18em!important;color:#d9c29b!important}
.mk-result-v114 .mk-result-royal-title{font-size:clamp(42px,7vw,60px)!important;line-height:1.18!important;margin:5px 0 0!important;letter-spacing:.10em!important;text-indent:.10em!important}
.mk-result-v114 .mk-result-royal-sub{margin-top:5px!important;font-size:13px!important;font-weight:500!important;color:#f4e6d1!important}
.mk-result-v114 .mk-result-royal-body{padding:16px 24px 20px!important}
.mk-result-v114 .mk-result-royal-meta{margin:0 0 12px!important}
.mk-result-v114 .mk-result-royal-stats{gap:8px!important;margin-bottom:10px!important}
.mk-result-v114 .mk-result-royal-stats>div{min-height:73px!important;gap:5px!important}
.mk-result-v114 .mk-result-royal-reward{margin-top:8px!important;margin-bottom:8px!important}
.mk-result-v114 .mk-result-royal-actions{margin-top:12px!important}
.mk-result-v114 .mk-result-royal-primary,.mk-result-v114 .mk-result-royal-secondary{min-height:48px!important}
.mk-result-v114.mk-defeat{--mk-royal:#dbe4ed;--mk-royal2:#8da8c5}
.mk-result-v114.mk-defeat .mk-result-royal-primary{background:linear-gradient(135deg,#e2e8f0,#9caec1)!important;border-color:#d1dee9!important;color:#0c1c2c!important;box-shadow:none!important}
/* Completing the guided tutorial is a concise notification, not a campaign ending. */




@media(max-width:600px){
 .mk-result-v114 .mk-result-cinematic{height:185px!important;padding:20px 12px 10px!important}
 .mk-result-v114 .mk-result-royal-title{font-size:44px!important}
 .mk-result-v114 .mk-result-royal-body{padding:12px 10px 15px!important}
 .mk-result-v114 .mk-result-royal-stats>div{min-height:65px!important}
 .mk-result-v114 .mk-result-royal-primary,.mk-result-v114 .mk-result-royal-secondary{min-height:44px!important}
 
}

/* === PREMIUM COMPACT SOUND & REWARD PASS · 2026-10-27 === */
/* Settings — the same density as the language selector; full sound controls remain accessible. */
.v90-settings .k26-sound.royal-sound-panel{
  width:100%!important;max-width:520px!important;margin:10px 0 9px!important;
  padding:11px 13px 9px!important;text-align:left!important;display:block!important;
  border:1px solid rgba(200,169,120,.33)!important;border-radius:11px!important;
  background:linear-gradient(140deg,rgba(14,25,37,.96),rgba(9,18,29,.94))!important;
  box-shadow:inset 0 1px 0 rgba(255,241,211,.04)!important;
}
.k26-sound-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;gap:8px}
.k26-sound-heading strong{font-size:13px!important;font-weight:650;color:#f1d7af}
.k26-sound-heading small{font-size:9px!important;letter-spacing:1.9px;color:#8d9dab!important}
.k26-sound-row{display:grid;grid-template-columns:minmax(102px,1fr) minmax(65px,1.15fr) 37px 31px;align-items:center;gap:9px;padding:7px 0;min-height:41px}
.k26-sound-row+.k26-sound-row{border-top:1px solid rgba(199,167,115,.12)}
.k26-sound-row label{white-space:nowrap;font-size:12px;line-height:1.2;color:#ded9ce;display:flex;align-items:center;gap:7px;min-width:0}
.k26-sound-icon{width:19px;height:19px;border:1px solid rgba(221,182,115,.35);border-radius:6px;display:inline-grid;place-items:center;color:#e4bb7f;background:rgba(215,180,124,.07);font-size:12px;flex:none}
.k26-sound-row .royal-volume-slider{min-width:0;width:100%;height:4px;margin:0!important;accent-color:#c8a474;cursor:pointer}
.k26-sound-row output{font-size:10px!important;font-variant-numeric:tabular-nums;color:#cdb891;text-align:right}
.k26-sound-row .royal-sound-toggle{width:29px;height:27px;flex:initial;min-width:29px;border-radius:7px;font-size:14px!important;background:rgba(24,34,45,.93);border:1px solid rgba(180,155,112,.38)}
.k26-sound-row .royal-sound-toggle.is-on{background:#423526;border-color:#dcbd8c;color:#ffdc96}
.k26-sound-preview{margin-top:3px;border-top:1px solid rgba(200,171,121,.13);font-size:10px;color:#aeb4bd}
.k26-sound-preview summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:6px 1px 1px;list-style:none;min-height:23px}
.k26-sound-preview summary::-webkit-details-marker{display:none}
.k26-sound-preview[open] summary span{transform:rotate(180deg)}
.k26-preview-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:8px}
.k26-preview-actions button{font-size:11px;color:#ead4b3;border:1px solid rgba(200,170,120,.32);background:#111d2a;border-radius:6px;min-height:31px}
.k26-preview-actions button:hover{background:#263243;border-color:#dfba78}
.v90-settings>p{max-width:520px!important;font-size:11px!important;line-height:1.5!important;margin:3px 0 4px!important}

/* Rewards — softly lit restrained navy and warm champagne gold. */
.v96-rewards{--k26-border:rgba(210,177,126,.28);--k26-tint:#dfbd85}
.v96-rewards .k26-reward-head{padding:5px 4px 14px!important;min-height:0!important;align-items:center!important;justify-content:space-between;gap:10px!important;border-bottom:1px solid rgba(203,173,132,.15)}
.v96-rewards .k26-reward-head .v90-kicker{font-size:10px;letter-spacing:2.3px;color:#c9a779}
.v96-rewards .k26-reward-head h1{font-weight:650!important;font-size:clamp(27px,2.5vw,38px)!important;margin:2px 0 0!important;color:#f8e8cf}
.v96-rewards .k26-reward-head p{display:block!important;margin:0!important;font-size:12px!important;color:#9faebc}
.k26-reward-count{display:flex;gap:9px;align-items:center;white-space:nowrap;border:1px solid var(--k26-border);background:linear-gradient(135deg,#172333,#0c1724);padding:7px 14px;border-radius:9px;color:#b8c5d2}
.k26-reward-count b{font:600 23px/1.2 Georgia,serif;color:#f2cf91;font-variant-numeric:tabular-nums}
.k26-reward-count span{font-size:11px}
.v96-rewards .v92-reward-grid>*{background:linear-gradient(150deg,rgba(20,34,48,.95),rgba(9,19,32,.96))!important;border:1px solid var(--k26-border)!important;border-radius:14px!important;box-shadow:0 15px 38px rgba(0,0,0,.19),inset 0 1px rgba(247,226,196,.055)!important;padding:clamp(12px,1.3vw,18px)!important}
.v96-rewards .v92-reward-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;margin-top:12px!important;align-items:start}
.v96-rewards .k26-board-heading{display:flex!important;justify-content:space-between;gap:12px;align-items:center!important;margin:1px 0 10px!important;padding:0 1px}
.k26-board-heading>div{display:flex;flex-direction:column;gap:2px}
.v96-rewards .k26-board-heading h2{font-size:19px!important;letter-spacing:-.4px;line-height:1.3;margin:0!important;color:#f7e7cb}
.k26-board-heading>strong{font-family:Georgia,serif;font-size:24px;font-weight:500;color:#ecc992;font-variant-numeric:tabular-nums;white-space:nowrap}
.k26-board-heading>strong small{font:11px/1.2 system-ui,sans-serif;color:#9cabb9}
.k26-progress{height:4px;border-radius:10px;overflow:hidden;background:#293646;margin:0 0 14px;box-shadow:inset 0 1px 3px #0004}
.k26-progress span{height:100%;display:block;background:linear-gradient(90deg,#b68b52,#ffe0a4);border-radius:10px}
.v96-rewards .v93-day-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}
.v96-rewards .v93-day-card.k26-day,.v96-rewards .v93-day-card.k26-day.legend{position:relative;aspect-ratio:.92!important;min-height:122px!important;height:auto!important;overflow:hidden!important;isolation:isolate;border:1px solid rgba(194,169,130,.34)!important;border-radius:9px!important;background:#0a1522!important;box-shadow:0 4px 12px #0005!important;transform:none!important}
.v96-rewards .k26-day .v93-day-art{background-size:cover!important;background-position:center 36%!important;transform:none!important;filter:saturate(.80)}
.v96-rewards .k26-day .k26-day-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,11,18,.34),transparent 38%,rgba(5,11,18,.91) 90%);z-index:1}
.v96-rewards .k26-day .v93-day-badge{position:absolute!important;top:8px!important;left:8px!important;right:auto!important;color:#f6dec0!important;font:650 9px/1.2 system-ui,sans-serif!important;letter-spacing:1px!important;background:rgba(6,15,26,.65)!important;border:1px solid rgba(226,189,131,.3)!important;border-radius:4px!important;padding:4px 5px!important;z-index:3}
.v96-rewards .k26-day .k26-day-content{position:absolute;bottom:23px;left:7px;right:7px;z-index:4;display:grid;gap:3px;text-align:left;min-width:0}
.v96-rewards .k26-day .k26-day-content strong{display:block;font-weight:700;font-size:clamp(10px,.9vw,12px)!important;line-height:1.25;color:#fff0d7;text-shadow:0 1px 8px #000}
.v96-rewards .k26-day .k26-day-content span{font-size:clamp(9px,.75vw,11px);font-weight:600;color:#e2c99e;white-space:nowrap}
.v96-rewards .k26-day .k26-day-content i{font-style:normal;color:#758391}

.v96-rewards .k26-day .v93-day-state{position:absolute!important;right:0!important;left:0!important;bottom:0!important;top:auto!important;z-index:4!important;height:21px!important;min-height:21px!important;padding:2px 5px!important;text-align:center!important;display:grid!important;place-items:center!important;border-radius:0!important;font-size:10px!important;font-weight:700!important;color:#9eabb8!important;background:rgba(4,12,21,.95)!important;border-top:1px solid rgba(228,195,146,.16)!important}
.v96-rewards .k26-day.current{border-color:#e3bc78!important;box-shadow:0 0 0 1px #e4bf82,0 8px 21px rgba(207,145,61,.2)!important}
.v96-rewards .k26-day.current .v93-day-state{color:#1c190e!important;background:linear-gradient(90deg,#e2b676,#ffe0ab)!important}
.v96-rewards .k26-day.claimed .v93-day-state{color:#c1e4d1!important}
.v96-rewards .k26-day.claimed .v93-day-art{filter:saturate(.5) brightness(.73)!important}
.v96-rewards .k26-day.legend{border-color:#dbb66a!important}
.v96-rewards .k26-day.legend .v93-day-badge{color:#ffdda1!important}
.v96-rewards .v92-daily-foot{display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important;margin-top:17px!important;padding-top:13px!important;border-top:1px solid rgba(199,168,117,.2)!important}
.v96-rewards .k26-daily-stat{display:flex!important;align-items:center;gap:9px;margin-right:auto!important}
.k26-today-icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border:1px solid #e9c68b73;border-radius:10px;color:#f7d197;background:radial-gradient(circle at 35% 27%,#684a29,#192332 75%);font-size:20px}
.v96-rewards .k26-daily-stat small{color:#a5b3bd;font-size:10px}
.v96-rewards .k26-daily-stat strong{display:block;color:#f4dcac!important;font-size:13px!important;line-height:1.4!important;margin:0!important}
.v96-rewards .k26-daily-stat i{font-style:normal;color:#7f8c96}
.v96-rewards .v92-daily-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.v96-rewards .v92-daily-actions .v90-button{flex:initial!important;min-height:38px!important;padding:7px 12px!important;font-size:12px!important;border-radius:7px!important}
.v96-rewards .v92-missions-head{margin-bottom:12px!important;padding-bottom:10px!important;border-bottom:1px solid rgba(204,175,127,.17)}
.v96-rewards .v92-missions-head h3{font-size:20px!important;color:#f3e2c4}
.v96-rewards .v92-missions-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;max-height:630px!important;padding:0 2px 2px 0!important;overflow-y:auto}
.v96-rewards .v92-mission-card{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:11px!important;min-height:94px!important;align-items:center!important;border:1px solid rgba(201,169,118,.25)!important;border-radius:10px!important;padding:11px!important;background:linear-gradient(120deg,rgba(25,40,55,.75),rgba(11,22,34,.8))!important;box-shadow:none!important}
.v96-rewards .v92-mission-card.ready{border-color:rgba(226,187,107,.72)!important;background:linear-gradient(120deg,rgba(63,49,28,.49),rgba(20,28,39,.93))!important}
.v96-rewards .v92-mission-card.claimed{opacity:.66!important}
.v96-rewards .v92-mission-icon{width:40px!important;min-width:40px!important;height:40px!important;border:1px solid rgba(209,178,130,.42);border-radius:10px!important;display:grid;place-items:center;background:linear-gradient(145deg,#3c352b,#142334)!important;font-size:18px!important;color:#f0c989!important}
.v96-rewards .v92-mission-top strong{font-size:13px!important;color:#f5e8d3!important}
.v96-rewards .v92-mission-top small{font-size:10px!important;color:#b8c1c7!important;white-space:nowrap}
.v96-rewards .v90-mission-bar{height:4px!important;margin:7px 0!important;border-radius:4px;background:#2d3946!important}
.v96-rewards .v90-mission-bar i{border-radius:4px!important;background:linear-gradient(90deg,#a58150,#e5bd7f)!important}
.v96-rewards .v92-mission-bottom{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:7px!important;margin-top:6px!important}
.v96-rewards .k26-mission-loot{display:flex!important;gap:8px!important;font-size:11px!important;color:#e1caa1!important;font-variant-numeric:tabular-nums}
.v96-rewards .k26-mission-loot span:last-child{color:#bda6d9}
.v96-rewards .v92-mission-bottom button{min-height:28px!important;font-size:11px!important;padding:4px 11px!important;border-radius:6px!important;border:1px solid #c9a16f!important;color:#fce1b8!important;background:linear-gradient(115deg,#483828,#2c2521)!important}
.v96-rewards .v92-mission-bottom button:disabled{opacity:.53!important;color:#bbc6cf!important;background:#192637!important;border-color:#516070!important}

/* Confirmed reward amounts presented dynamically instead of painted onto artwork. */
.overlay-root .modal:has(.k26-receipt){width:min(455px,calc(100vw - 24px))!important;max-width:455px!important;padding:0!important;overflow-y:auto!important;border-radius:12px!important;background:#0b1725!important;border:1px solid rgba(228,188,124,.6)!important;box-shadow:0 24px 90px #000d,0 0 35px #d9a65a16!important}
.k26-receipt{padding:30px 25px 25px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:radial-gradient(ellipse at 50% -4%,rgba(221,177,96,.13),transparent 60%)}
.k26-receipt-mark{display:grid;place-items:center;width:47px;height:47px;border:1px solid rgba(231,193,134,.62);border-radius:50%;color:#f9d89e;font-size:26px;box-shadow:0 0 0 5px rgba(221,173,103,.055)}
.k26-receipt-kicker{font:10px Georgia,serif;color:#bea783;letter-spacing:2.1px;margin-top:7px}
.k26-receipt h2{font-size:clamp(24px,4vw,31px);font-weight:600;color:#f9e9cd;letter-spacing:-.7px;line-height:1.35;margin:0}
.k26-receipt p{margin:0 0 8px;color:#aebbc6;font-size:12px}
.k26-receipt-items{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:4px 0 9px}
.k26-receipt-item{padding:15px 8px 13px;display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid rgba(193,165,123,.32);border-radius:9px;background:linear-gradient(155deg,rgba(36,48,61,.83),rgba(12,26,39,.94))}
.k26-receipt-icon{width:44px;height:44px;display:grid;place-items:center;font-size:27px;font-family:Georgia,serif;color:#f7d592;text-shadow:0 2px 20px #b08e4c35;border:1px solid rgba(224,183,111,.34);background:radial-gradient(circle at 45% 35%,#69502c,#1b2734 72%);border-radius:50%}
.k26-gems .k26-receipt-icon{color:#c9b9fc;border-color:#b5a6dd66;background:radial-gradient(circle at 45% 35%,#4b3c72,#20243b 72%)}
.k26-receipt-item small{font-size:11px;color:#b4bdc6}
.k26-receipt-item strong{font:650 24px/1.2 Georgia,serif;font-variant-numeric:tabular-nums;color:#f1d2a2}
.k26-gems strong{color:#d8cafb}
.k26-receipt-confirm{width:100%;min-height:43px;border:1px solid #d4ae75;border-radius:8px;font-weight:700;color:#21180d;background:linear-gradient(125deg,#f9dfa9,#d4a764);cursor:pointer}
.k26-receipt-confirm:hover{filter:brightness(1.09)}
.k26-legend-receipt .hd-legend-award{margin:6px auto!important;max-width:170px}
.k26-legend-receipt .hd-legend-award .game-card{max-width:165px!important}

@media(min-width:1320px){
  .v96-rewards .v92-reward-grid{grid-template-columns:minmax(0,1.68fr) minmax(300px,1fr)!important}
  .v96-rewards .v93-day-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(min-width:701px) and (max-width:1319px){
  .v96-rewards .v93-day-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .k26-sound-row{grid-template-columns:minmax(94px,1fr) minmax(55px,1.2fr) 34px 30px;gap:6px}
  .v96-rewards .k26-reward-head h1{font-size:26px!important}
  .v96-rewards .k26-reward-head p{font-size:11px!important}
  .v96-rewards .v92-reward-grid>*{padding:11px!important}
  .v96-rewards .v93-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .v96-rewards .v93-day-card.k26-day,.v96-rewards .v93-day-card.k26-day.legend{min-height:112px!important;aspect-ratio:.91!important}
  .v96-rewards .k26-day .k26-day-content strong{font-size:10px!important}
  .v96-rewards .k26-day .k26-day-content span{font-size:9px!important}
  .v96-rewards .v92-daily-actions{width:100%}
  .v96-rewards .v92-daily-actions .v90-button{flex:1!important;font-size:11px!important;padding-inline:7px!important}
  .v96-rewards .v92-missions-list{max-height:none!important;overflow:visible!important}
  .v96-rewards .v92-mission-card{min-height:93px!important;padding:10px!important}
  .k26-receipt{padding:25px 18px 20px}
}
@media(max-width:385px){
  .v96-rewards .v93-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v96-rewards .v93-day-card.k26-day,.v96-rewards .v93-day-card.k26-day.legend{min-height:130px!important}
}
/* Final settings balance: the sound group matches the language selector's modest visual weight. */
.v90-settings .k26-sound.royal-sound-panel{max-width:380px!important;padding:9px 12px 6px!important;margin:8px auto 7px!important}
.k26-sound-heading{margin-bottom:3px!important}
.k26-sound-row{min-height:34px!important;padding:4px 0!important;gap:6px}
.k26-sound-preview{margin-top:1px!important}
.k26-sound-preview summary{padding:4px 0 0!important;min-height:19px!important}
/* Claimed reward actions stay above the 30-day gallery for discoverability. */
.v96-rewards .v92-daily-foot{margin:2px 0 11px!important;padding:11px 10px!important;background:linear-gradient(110deg,rgba(58,50,37,.42),rgba(17,30,44,.9))!important;border:1px solid rgba(221,184,127,.27)!important;border-radius:9px!important}
.v96-rewards .k26-record-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px;font-size:12px;font-weight:650;color:#e3d3b7}
.k26-record-title small{font-family:Georgia,serif;letter-spacing:1.3px;font-size:9px;color:#9babb7}
.v96-rewards .k26-day .k26-day-content strong{color:#fff2db!important}
.v96-rewards .k26-day .k26-day-content span{color:#ffe1aa!important}
.v96-rewards .k26-day .k26-day-shade{background:linear-gradient(180deg,rgba(5,11,18,.23),transparent 31%,rgba(5,11,18,.84) 93%)!important}


/* Settings order refresh: language first, quick utilities next, compact sound last. */
.v90-settings .hd-language-pick{margin:10px auto 9px!important;max-width:520px!important;padding:12px!important;background:linear-gradient(140deg,rgba(14,25,37,.96),rgba(9,18,29,.94))!important;border:1px solid rgba(200,169,120,.33)!important;border-radius:11px!important;box-shadow:inset 0 1px 0 rgba(255,241,211,.04)!important}
.v90-settings .v90-settings-options{max-width:520px!important;margin:0 auto 8px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
.v90-settings .v90-settings-options button{min-height:56px!important;padding:10px 8px!important;border-radius:10px!important}
.v90-settings .v90-settings-options strong{font-size:13px!important}
.v90-settings .v90-settings-danger{margin-top:8px!important}

/* Reward screen compact mode for cleaner mobile presentation. */
.k26-record-actions{display:flex;align-items:center;gap:8px}
.k26-inline-toggle{min-height:26px;padding:4px 9px;border-radius:999px;border:1px solid rgba(213,177,117,.38);background:rgba(17,29,42,.9);color:#e7d0a5;font-size:11px;cursor:pointer}
.k26-inline-toggle:hover{background:rgba(40,54,70,.96)}
.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(min-width:761px){.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:760px){.v90-settings .v90-settings-options{grid-template-columns:1fr!important}.v90-settings .v90-settings-options button{min-height:48px!important}.v90-settings .hd-language-pick{margin-bottom:8px!important}.v96-rewards .k26-record-title{align-items:flex-start!important;flex-direction:column!important}.k26-record-actions{width:100%;justify-content:space-between}.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v96-rewards .v93-day-grid.is-compact .v93-day-card.k26-day{min-height:106px!important;aspect-ratio:1.1!important}.v96-rewards .v92-daily-board{padding-bottom:10px!important}.v96-rewards .v92-daily-foot{gap:8px!important}.v96-rewards .v92-daily-actions{grid-template-columns:1fr 1fr!important}.v96-rewards .v92-mission-card{min-height:84px!important}.v96-rewards .v92-missions-list{gap:7px!important}}

/* Guided premium tutorial: one-time ten-card commander draw, then upgrade and attendance. */
.hd-tour-ten-intro,
.hd-tour-hero-link{
 display:flex;align-items:center;gap:15px;margin:14px 0;padding:14px 16px;
 background:linear-gradient(115deg,rgba(45,36,30,.95),rgba(18,31,44,.96));
 border:1px solid rgba(232,190,118,.72);border-radius:11px;
 box-shadow:inset 0 1px 0 rgba(255,237,200,.11),0 8px 24px #02061080;
}
.hd-tour-ten-intro>div:first-child,.hd-tour-hero-link>div:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.hd-tour-ten-intro small,.hd-tour-hero-link small{font-family:Georgia,serif;letter-spacing:1.5px;color:#c59d6b;font-size:10px}
.hd-tour-ten-intro strong,.hd-tour-hero-link strong{font-size:17px;font-weight:700;color:#f9e1b7;line-height:1.35}
.hd-tour-ten-intro span,.hd-tour-hero-link span{font-size:11px;color:#c7bfaf;line-height:1.45}
.hd-tour-ten-intro button,.hd-tour-hero-link button{cursor:pointer;flex:none;padding:11px 16px;min-height:42px;border-radius:8px;background:linear-gradient(125deg,#f0ce90,#b9884e);border:1px solid #ffe1ad;color:#21180b;font-weight:800;font-size:13px}
.hd-tour-ten-intro button:hover,.hd-tour-hero-link button:hover{filter:brightness(1.09)}
.hd-tour-hero-icon{width:66px;height:69px;flex:none;border-radius:6px;background-size:cover;background-position:50% 22%;border:1px solid #cda86d;box-shadow:0 0 12px #b4894628}
.hd-tour-upgrade-next{margin:15px 0;padding:15px 12px;display:grid;gap:9px;text-align:center;border:1px solid rgba(228,191,123,.6);border-radius:10px;background:linear-gradient(115deg,#362b20,#172431)}
.hd-tour-upgrade-next strong{font-size:13px;color:#f9dfad}
.hd-tour-upgrade-next .btn{min-height:41px}
.hd-tour-upgrade-review{display:block;margin-top:9px;background:#314155!important;color:#f5ddb4!important}
@media(max-width:700px){
 .hd-tour-ten-intro,.hd-tour-hero-link{padding:11px 12px;gap:8px;flex-wrap:wrap}
 .hd-tour-ten-intro strong,.hd-tour-hero-link strong{font-size:15px}
 .hd-tour-ten-intro button,.hd-tour-hero-link button{width:100%;min-height:40px;font-size:12px}
 .hd-tour-hero-icon{width:50px;height:56px}
 .v93-summon-packs .v93-pack:disabled{opacity:.42;pointer-events:none}
}

/* 2026-10-27: balanced settings cards and intuitive terrain tutorial */
.v90-settings .hd-language-pick,.v90-settings .k26-sound.royal-sound-panel{
  width:100%!important;max-width:520px!important;box-sizing:border-box!important;
  margin:10px auto!important;padding:12px 14px!important;
  border:1px solid rgba(203,172,123,.34)!important;border-radius:12px!important;
  background:linear-gradient(145deg,rgba(17,29,42,.97),rgba(10,19,31,.97))!important;
  box-shadow:inset 0 1px 0 rgba(255,246,220,.055)!important;
}
.v90-settings .hd-language-pick>div:first-child,.v90-settings .k26-sound-heading{margin-bottom:9px!important;min-height:18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.v90-settings .hd-language-pick strong,.v90-settings .k26-sound-heading strong{font-size:13px!important;line-height:18px!important;font-weight:650!important;color:#f2d6a6!important}
.v90-settings .hd-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v90-settings .hd-language-btn{height:37px!important;min-height:37px!important;font-size:12px!important}
.v90-settings .k26-sound-row{min-height:37px!important;padding:5px 0!important;grid-template-columns:minmax(95px,1fr) minmax(76px,1.15fr) 36px 31px!important}
.v90-settings .k26-sound-preview summary{min-height:24px!important;padding:5px 0 0!important}
.v90-settings .v90-settings-options{width:100%;max-width:520px!important}
.mk-lane-name{gap:5px!important;flex-wrap:wrap}
.mk-terrain-label{color:#e5d7b8;font-size:clamp(9px,.8vw,11px);letter-spacing:0;opacity:.86;white-space:nowrap}
.mk-terrain-picked{color:#151d20;background:linear-gradient(110deg,#f6d590,#c2a46e);border-radius:4px;padding:2px 5px;font-size:10px;font-weight:750;white-space:nowrap}
.mk-lane.mk-terrain-match{box-shadow:inset 0 0 0 2px rgba(238,203,126,.6),0 0 22px rgba(236,177,82,.22)!important}
.mk-teams-legend{gap:8px!important;flex-wrap:wrap!important}
.mk-field-instruction{font-size:clamp(10px,.85vw,12px)!important;color:#e4d3a9!important}
.mk-terrain-help{flex:none;background:rgba(19,32,45,.91);border:1px solid #b89c68a3;border-radius:5px;padding:5px 10px;color:#e8d6b9;font-size:10px;cursor:pointer}
.mk-terrain-help:hover{border-color:#f4d69a;background:#293747}
@media(max-width:700px){
 .v90-settings .hd-language-pick,.v90-settings .k26-sound.royal-sound-panel{width:100%!important;max-width:100%!important;padding:11px 12px!important;margin:8px auto!important}
 .v90-settings .k26-sound-row{grid-template-columns:minmax(87px,1fr) minmax(53px,1fr) 34px 30px!important;gap:5px!important}
 .mk-field-instruction{max-width:calc(100% - 72px)!important;line-height:1.4!important}
 .mk-terrain-label{font-size:9px}
 .mk-terrain-picked{font-size:9px}
 .mk-terrain-help{padding:4px 7px}
}
/* Terrain information remains discoverable on narrow battle screens. */
.royal-battle .mk-teams-legend{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important}
.royal-battle .mk-terrain-help{white-space:nowrap}
.royal-battle .mk-lane-name .mk-terrain-label{display:inline-flex!important;font-size:9px!important;line-height:1.15!important;margin:0!important}
@media(max-width:700px){
 .royal-battle .mk-teams-legend{flex-wrap:nowrap!important}
 .royal-battle .mk-field-instruction{display:none!important}
 .royal-battle .mk-terrain-help{font-size:10px!important;min-height:28px!important}
 .royal-battle .mk-lane-name .mk-terrain-label{font-size:8px!important;white-space:normal!important;text-align:center!important}
 .royal-battle .mk-lane-name{gap:3px!important}
}

/* 2026-10-27 · PVP nav directly beneath Main; six equally sized mobile tabs. */
.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.bottom-nav .bottom-tab{min-width:0!important;width:100%!important;max-width:none!important}
.hd-pvp-page{display:flex!important;align-items:center;justify-content:center;position:relative;min-height:100%;padding:clamp(13px,3vw,34px)!important}
.hd-pvp-shell{position:relative;z-index:2;width:min(100%,820px);margin:auto;display:flex;flex-direction:column;align-items:stretch;gap:clamp(13px,2.6vw,22px)}
.hd-pvp-heading{text-align:center}.hd-pvp-overline{font-size:10px;letter-spacing:.29em;color:#caac7c;font-family:Georgia,serif}.hd-pvp-heading h1{font-size:clamp(32px,5vw,52px)!important;line-height:1.18;letter-spacing:.05em;color:#f6e9d5;margin:5px 0!important;font-family:Georgia,"Noto Serif KR",serif;font-weight:650}.hd-pvp-heading em{font-style:normal;color:#e4bb7b}.hd-pvp-heading p{font-size:12px;color:#abb8c5;margin:0}
.hd-pvp-art{height:clamp(160px,25vh,250px);display:grid;grid-template-columns:1fr 64px 1fr;align-items:stretch;overflow:hidden;border:1px solid rgba(216,181,119,.43);border-radius:15px;box-shadow:0 20px 55px #0009;background:#071019;position:relative}
.hd-pvp-portrait{min-width:0;background-size:cover;background-position:center 30%;filter:saturate(.76) contrast(1.06)}.hd-pvp-yi{mask-image:linear-gradient(90deg,#000 80%,transparent)}.hd-pvp-khan{mask-image:linear-gradient(270deg,#000 80%,transparent)}.hd-pvp-vs{display:grid;place-items:center;color:#f7ddae;font:700 24px Georgia,serif;letter-spacing:.06em;text-shadow:0 2px 12px #000,0 0 19px #d7a65b70;z-index:2;background:radial-gradient(ellipse at center,#312821 0%,#0b141d 83%)}
.hd-pvp-lock{padding:clamp(19px,3vw,31px);border:1px solid rgba(224,188,129,.34);border-radius:15px;background:linear-gradient(160deg,rgba(19,32,46,.97),rgba(8,17,27,.98));box-shadow:0 20px 60px #0007,inset 0 1px 0 #fff2;text-align:center;display:flex;align-items:center;flex-direction:column;gap:7px}
.hd-pvp-lock-icon{display:grid;place-items:center;border:1px solid rgba(223,183,116,.38);border-radius:50%;width:40px;height:40px;color:#e5bc7a;background:rgba(212,166,95,.08);font-size:20px}.hd-pvp-lock>small{font:10px Georgia,serif;letter-spacing:.19em;color:#c9a773}.hd-pvp-lock h2{font-size:clamp(22px,4vw,30px)!important;font-weight:600;color:#fff0d3;line-height:1.32;margin:0!important}.hd-pvp-lock>p{font-size:12px;line-height:1.7;color:#bbc4cb;margin:0 auto 6px;max-width:420px}
.hd-pvp-progress{width:min(100%,425px);text-align:left;margin:4px 0 7px}.hd-pvp-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#b6c2cb;margin-bottom:8px}.hd-pvp-progress strong{font:650 17px Georgia,serif;color:#f1c885}.hd-pvp-progress i{font-size:11px;font-style:normal;font-weight:400;color:#97a5b0}.hd-pvp-track{width:100%;height:5px;border-radius:99px;background:#243543;overflow:hidden}.hd-pvp-track>span{display:block;height:100%;background:linear-gradient(90deg,#8e6a3e,#e9c991);border-radius:99px;transition:width .3s}
.hd-pvp-return{width:min(100%,425px);min-height:42px;border:1px solid #d7b17a;border-radius:8px;color:#161b1d;background:linear-gradient(105deg,#e8c58d,#f8dfb0,#cf9e61);font-weight:700;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}.hd-pvp-return:hover{filter:brightness(1.08)}.hd-pvp-shell>footer{text-align:center;font:9px Georgia,serif;letter-spacing:.2em;color:#9c8c78}
@media(max-width:700px){.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}.bottom-nav .bottom-tab{font-size:clamp(8px,2.45vw,10px)!important;gap:2px!important;padding-inline:0!important}.bottom-nav .bottom-tab span{font-size:clamp(15px,4.9vw,20px)!important}.hd-pvp-page{padding:15px 13px 30px!important;justify-content:flex-start}.hd-pvp-shell{gap:13px}.hd-pvp-art{height:clamp(138px,25vh,220px);grid-template-columns:1fr 45px 1fr}.hd-pvp-vs{font-size:17px}.hd-pvp-lock{padding:17px 14px!important}.hd-pvp-lock>p{font-size:11px}}
@media(max-width:365px){.bottom-nav .bottom-tab{font-size:8px!important;letter-spacing:-.04em}.hd-pvp-art{height:135px}}

/* =====================================================================
   GLOBAL COMMUNITY · Korean ↔ Mongolian translation experience
   Informational demonstration only; no fake live chat or nickname input.
   ===================================================================== */
.main-nav .nav-btn[data-page="community"]{color:#dfcbab;border:1px solid rgba(209,172,117,.17);background:linear-gradient(95deg,rgba(188,142,77,.065),transparent);margin-top:5px}
.main-nav .nav-btn[data-page="community"] .nav-icon{color:#e0b77b}
.main-nav .nav-btn[data-page="community"].active{border-color:rgba(232,195,135,.68);background:linear-gradient(95deg,rgba(111,81,40,.34),rgba(19,30,44,.55))}
.main-nav .nav-btn[data-page="settings"]{border-top:1px solid rgba(207,168,112,.14);margin-top:3px}
.bottom-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important}
.bottom-nav .bottom-tab[data-page="community"]{color:#debe8e!important}
.bottom-nav .bottom-tab[data-page="community"].active{color:#ffe4b3!important}
.hd-community-page{position:relative;min-height:100%;padding:clamp(13px,2vw,28px)!important;background-color:#080f19;isolation:isolate}
.hd-community-page::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,11,19,.80),rgba(6,13,22,.96) 60%),url("../assets/lobby_panorama.webp") center top/cover no-repeat;opacity:.65;z-index:0;pointer-events:none}
.hd-community-page .v90-ambient{opacity:.3!important;pointer-events:none}
.hd-community-shell{width:min(100%,1010px);margin:0 auto;position:relative;z-index:1;display:flex;flex-direction:column;gap:17px}
.hd-community-header{text-align:center;padding:13px 8px 0}
.hd-community-eyebrow{color:#d7b888;font:10px Georgia,serif;letter-spacing:.27em}
.hd-community-eyebrow i{font-style:normal;color:#746751;padding:0 3px}
.hd-community-header h1{color:#f7ead4;font:600 clamp(29px,3.1vw,42px)/1.26 Georgia,"Noto Serif KR",serif!important;letter-spacing:.02em;margin:7px 0 6px!important}
.hd-community-header p{color:#e9d6b8;font:500 clamp(13px,1.35vw,16px)/1.6 "Noto Serif KR",serif;margin:0 0 4px}
.hd-community-header>small{font-size:11px;color:#9faeb9}
.hd-community-stage{border:1px solid rgba(230,193,130,.42);border-radius:14px;overflow:hidden;background:linear-gradient(165deg,rgba(20,33,48,.98),rgba(7,15,25,.99));box-shadow:0 26px 70px #0008,inset 0 1px 0 rgba(255,238,203,.07)}
.hd-community-stage-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 18px;border-bottom:1px solid rgba(212,174,115,.19);font:10px Georgia,serif;letter-spacing:.2em;color:#ccb086}
.hd-community-stage-head em{font-style:normal;color:#8a9ca9}
.hd-community-index{font-size:12px;color:#e8d1a9;white-space:nowrap}
.hd-community-dots{display:flex;gap:5px}.hd-community-dots i{width:5px;height:5px;border-radius:50%;background:#b58c59;opacity:.8}
.hd-community-devices{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:7px;padding:clamp(12px,2vw,23px);align-items:center}
.hd-community-phone{min-width:0;min-height:292px;border:1px solid rgba(194,167,124,.26);border-radius:12px;background:linear-gradient(160deg,#172634,#0a1724);box-shadow:inset 0 1px 0 #ffffff0d;overflow:hidden;display:flex;flex-direction:column;transition:border-color .55s,box-shadow .55s}
.hd-community-phone.is-highlight{border-color:#ddbb81;box-shadow:0 0 0 1px #d5b07855,0 0 31px #b8893930}
.hd-community-phone-top{display:flex;align-items:center;gap:10px;padding:12px 15px;background:rgba(7,14,23,.54);border-bottom:1px solid rgba(221,184,127,.17)}
.hd-community-flag{font-size:26px;line-height:1}.hd-community-phone-top div{display:flex;flex-direction:column;min-width:0}
.hd-community-phone-top strong{font-size:12px;letter-spacing:.13em;color:#eed5ac}
.hd-community-phone-top small{color:#a0aeb7;font-size:10px}
.hd-community-online{font-size:10px;color:#71c9a3;margin-left:auto}
.hd-community-messages{flex:1;display:flex;flex-direction:column;gap:11px;justify-content:center;padding:13px 12px;min-height:191px}
.hd-community-bubble{max-width:94%;width:fit-content;display:flex;flex-direction:column;gap:7px;padding:11px 12px;border-radius:12px;font-size:13px;line-height:1.65;color:#f1e6d5;animation:hdCommunityPop .44s ease both;word-break:keep-all;overflow-wrap:anywhere}
.hd-community-bubble.own{align-self:flex-end;background:linear-gradient(125deg,#5b462c,#433526);border:1px solid rgba(247,218,168,.32);border-bottom-right-radius:3px}
.hd-community-bubble.received{align-self:flex-start;background:#233241;border:1px solid rgba(185,205,223,.19);border-bottom-left-radius:3px}
.hd-community-bubble small{font-size:9px;letter-spacing:0;color:#c2c9ce;line-height:1.4}
.hd-community-bubble.own small{color:#e5cea4}
.hd-community-placeholder{color:#75889a;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px}
.hd-community-placeholder>span{font:35px/1 Georgia,serif;letter-spacing:8px;color:#8d7758}
.hd-community-composer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 10px 10px;padding:8px 11px;border:1px solid rgba(181,164,135,.25);border-radius:20px;background:rgba(4,12,20,.7);color:#8c9dab;font-size:10px}
.hd-community-composer>b{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#56442e;color:#f6ddad;font-size:12px}
.hd-community-bridge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#e9c58e}
.hd-community-bridge-line{height:56px;width:1px;background:linear-gradient(180deg,transparent,#cfaa6b,transparent)}
.hd-community-globe{width:46px;height:46px;border-radius:50%;border:1px solid rgba(235,200,139,.55);display:grid;place-items:center;font:24px Georgia,serif;background:radial-gradient(circle at 38% 30%,#4d3b24,#111b27 75%);box-shadow:0 0 27px rgba(218,176,100,.13)}
.hd-community-bridge small{font:10px Georgia,serif;letter-spacing:.13em;white-space:nowrap}.hd-community-bridge small b{color:#d7b47d;font-size:15px}
.hd-community-narration{margin:0 18px;padding:12px 16px;min-height:61px;border:1px solid rgba(190,156,99,.20);border-radius:8px;background:rgba(4,12,22,.6);display:flex;align-items:center;gap:12px}
.hd-community-narration>span{color:#d2b481;font:600 15px Georgia,serif;padding-right:12px;border-right:1px solid rgba(208,174,118,.28)}
.hd-community-narration p{color:#dce2e3;font-size:12px;margin:0;line-height:1.6}
.hd-community-controls{display:flex;justify-content:space-between;align-items:center;gap:11px;padding:13px 18px 17px;min-height:74px}
.hd-community-secondary,.hd-community-primary,.hd-community-cta{border-radius:7px;min-height:39px;padding:8px 15px;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.hd-community-secondary{border:1px solid rgba(203,171,125,.39);background:rgba(19,30,44,.8);color:#e3ccaa}
.hd-community-primary{border:1px solid #dfc08d;background:linear-gradient(120deg,#f0d4a6,#c69a5e);color:#20190f}
.hd-community-primary:hover,.hd-community-cta:hover{filter:brightness(1.08)}.hd-community-secondary:hover{background:#263648}
.hd-community-timeline{height:4px;flex:1;max-width:260px;border-radius:20px;background:#263545;overflow:hidden}.hd-community-timeline span{display:block;height:100%;background:linear-gradient(90deg,#ac8451,#e7c793);border-radius:20px;transition:width .2s}
.hd-community-explainer{max-width:590px;font-size:12px;line-height:1.65;color:#e9d7bb}
.hd-community-status{border:1px solid rgba(222,185,124,.32);border-radius:12px;background:linear-gradient(130deg,rgba(19,31,45,.97),rgba(9,20,32,.97));padding:18px 20px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:17px}
.hd-community-status-icon{width:42px;height:42px;border:1px solid rgba(217,184,131,.44);border-radius:50%;display:grid;place-items:center;color:#e9c991;font-size:20px}
.hd-community-status-copy>small{font:10px Georgia,serif;letter-spacing:.15em;color:#c1a471}
.hd-community-status h2{font-size:21px!important;font-weight:600;color:#f9e7c7;margin:3px 0!important}
.hd-community-status p{margin:0 0 9px;color:#b7c3ca;font-size:11.5px;line-height:1.65}
.hd-community-progress{max-width:330px}.hd-community-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:#bdc6cd;margin:0 0 6px}
.hd-community-progress strong{color:#e4c48e}
.hd-community-progress-track{height:4px;overflow:hidden;background:#253745;border-radius:10px}
.hd-community-progress-track>span{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#b5894e,#f3d6a0)}
.hd-community-cta{min-width:150px;border:1px solid #debd87;background:linear-gradient(115deg,#ebc990,#d1a76d);color:#211b13}
.hd-community-footnote{max-width:800px;text-align:center;margin:0 auto;padding:0 4px 17px;color:#91a0ab;font-size:10.5px;line-height:1.7}
@keyframes hdCommunityPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:900px){.hd-community-devices{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);gap:4px}.hd-community-bubble{font-size:12px}.hd-community-bridge-line{height:35px}.hd-community-globe{width:36px;height:36px;font-size:19px}.hd-community-status{grid-template-columns:40px minmax(0,1fr)}.hd-community-cta{grid-column:2;justify-self:start}}
@media(max-width:700px){
 .bottom-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important}
 .bottom-nav .bottom-tab{font-size:clamp(8px,2.28vw,10px)!important;padding-inline:0!important;gap:3px!important;letter-spacing:-.01em!important}
 .bottom-nav .bottom-tab span{font-size:clamp(15px,4.5vw,19px)!important}
 .hd-community-page{padding:11px 10px 26px!important}
 .hd-community-shell{gap:12px}
 .hd-community-header{padding:4px 4px 0}
 .hd-community-header h1{font-size:29px!important;margin:4px 0!important}
 .hd-community-header p{font-size:13px}
 .hd-community-header>small{font-size:10px}
 .hd-community-stage-head{padding:10px 12px;font-size:9px;letter-spacing:.1em}
 .hd-community-devices{grid-template-columns:1fr;gap:8px;padding:11px}
 .hd-community-phone{min-height:0;border-radius:10px}
 .hd-community-phone-top{padding:8px 11px}
 .hd-community-flag{font-size:21px}.hd-community-phone-top strong{font-size:11px}.hd-community-phone-top small{font-size:9px}
 .hd-community-messages{padding:11px;min-height:76px;gap:7px}
 .hd-community-bubble{font-size:11.5px;padding:9px 11px;max-width:90%;line-height:1.5}
 .hd-community-bubble small{font-size:9px}
 .hd-community-placeholder{font-size:10px;flex-direction:row;justify-content:center}.hd-community-placeholder>span{font-size:17px;letter-spacing:4px}
 .hd-community-composer{padding:5px 9px;margin:0 9px 8px}.hd-community-composer>b{width:19px;height:19px}
 .hd-community-bridge{flex-direction:row;gap:9px}.hd-community-bridge-line{width:35px;height:1px;background:linear-gradient(90deg,transparent,#cfaa6b,transparent)}
 .hd-community-globe{width:26px;height:26px;font-size:14px}.hd-community-bridge small{font-size:10px}
 .hd-community-narration{min-height:48px;margin:0 11px;padding:9px 10px;gap:8px}.hd-community-narration>span{padding-right:8px;font-size:12px}.hd-community-narration p{font-size:11px}
 .hd-community-controls{padding:10px 11px 12px;gap:8px;flex-wrap:wrap}
 .hd-community-secondary,.hd-community-primary{font-size:10.5px;min-height:36px;padding:7px 11px}
 .hd-community-timeline{min-width:35px}
 .hd-community-explainer{font-size:11px;flex:1 1 100%}
 .hd-community-status{padding:13px 11px;grid-template-columns:29px minmax(0,1fr);gap:8px}
 .hd-community-status-icon{width:29px;height:29px;font-size:14px;align-self:start}
 .hd-community-status h2{font-size:18px!important;margin:2px 0!important}
 .hd-community-status p{font-size:10.5px}
 .hd-community-cta{grid-column:2;justify-self:stretch;min-width:0;min-height:37px;font-size:11px}
 .hd-community-footnote{font-size:10px;padding:0 7px 16px}
}
@media(max-width:365px){.bottom-nav .bottom-tab{font-size:7.6px!important}.hd-community-stage-head{font-size:8px}.hd-community-bubble{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hd-community-bubble{animation:none}.hd-community-phone{transition:none}}

/* 2026-10-27 · Tutorial focus repair + live demonstration signposting */
.overlay-root .modal:has(.hd-tour-focus-action){scrollbar-gutter:stable;scroll-behavior:auto}
.hd-tour-focus-action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:10px 0 16px;padding:13px 15px;border:1px solid rgba(239,203,140,.73);border-radius:12px;background:linear-gradient(105deg,#3d3225,#131f2e 88%);box-shadow:inset 0 1px 0 #fce6b31b,0 8px 30px #0005}
.hd-tour-focus-copy{display:grid;gap:3px;min-width:0}
.hd-tour-focus-copy>small{font-size:9px;letter-spacing:.13em;color:#e6ba78}
.hd-tour-focus-copy>strong{font-size:15px;color:#ffebc9;line-height:1.25}
.hd-tour-focus-copy>span{font-size:11px;color:#c8d0db;line-height:1.5}
.hd-tour-focus-action .hd-tour-focus-btn{min-height:43px;white-space:nowrap;padding:10px 18px;font-size:12px;border-color:#ffe2ab!important;background:linear-gradient(135deg,#f8dba6,#cba36d)!important;color:#241a0f!important}
.hd-tour-focus-action .hd-tour-focus-btn.guided-tour-target{outline:3px solid #ffe2a7!important;outline-offset:4px;box-shadow:0 0 0 7px #eabf6a2d,0 0 32px #f1c77669!important}
.hd-community-experience-cue{margin:13px 15px 0;padding:10px 15px;border:1px solid rgba(224,192,143,.4);border-radius:10px;background:linear-gradient(90deg,rgba(73,54,35,.63),rgba(19,31,46,.9));display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#f5dfbd}
.hd-community-experience-cue strong{font-size:12px;font-weight:700}
.hd-community-experience-cue>span:last-child{font-size:10px;color:#bfc8d3}
.hd-community-play-mark{display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid #eacb95;border-radius:50%;font-size:10px;color:#f9e4c1;animation:hdCuePulse 1.8s ease-in-out infinite}
.hd-community-live-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#edc787;box-shadow:0 0 0 4px #d0a66725,0 0 13px #f1c77e6c;animation:hdCuePulse 1.6s ease-in-out infinite}
@keyframes hdCuePulse{50%{opacity:.58;transform:scale(.92)}}
@media(max-width:700px){.hd-tour-focus-action{grid-template-columns:1fr;gap:10px;padding:12px}.hd-tour-focus-action .hd-tour-focus-btn{width:100%;min-height:44px}.hd-community-experience-cue{margin:9px 11px 0;padding:9px 10px;gap:5px 8px}.hd-community-experience-cue strong{font-size:11px}.hd-community-experience-cue>span:last-child{flex:1 1 100%;font-size:9px;padding-left:33px}}
@media(prefers-reduced-motion:reduce){.hd-community-play-mark,.hd-community-live-dot{animation:none}}

/* Community onboarding: the user starts the first translation experience explicitly. */
.hd-community-start{width:min(100%,760px);margin:8px auto 0;padding:clamp(24px,4vw,45px) clamp(18px,4vw,48px) 26px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;border:1px solid rgba(226,190,130,.44);border-radius:15px;background:radial-gradient(ellipse at 50% 0%,rgba(153,111,58,.16),transparent 64%),linear-gradient(155deg,rgba(21,35,50,.98),rgba(9,18,31,.98));box-shadow:0 22px 60px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,237,194,.08)}
.hd-community-start-kicker{font:10px Georgia,serif;letter-spacing:.23em;color:#c4a779}.hd-community-start-kicker i{font-style:normal}
.hd-community-start-symbol{display:flex;align-items:center;justify-content:center;gap:15px;margin:8px 0 3px;min-height:60px}.hd-community-start-symbol>span:not(.hd-community-start-connection){display:grid;place-items:center;font-size:32px;width:63px;height:63px;border-radius:50%;border:1px solid rgba(214,182,133,.5);background:linear-gradient(150deg,#28394a,#0b1928);box-shadow:0 9px 22px #0006}.hd-community-start-connection{font-size:28px;color:#e7c38e;text-shadow:0 0 24px rgba(255,196,110,.25)}
.hd-community-start h2{font:600 clamp(20px,2.4vw,29px)/1.35 Georgia,"Noto Serif KR",serif!important;color:#f5dfbc!important;margin:1px 0!important;letter-spacing:-.03em}.hd-community-start>p{color:#bac7d0;font-size:13px;line-height:1.85;max-width:530px;margin:0}
.hd-community-start-steps{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;color:#e9d3ac;font-size:11px;padding:9px 12px;border:1px solid rgba(211,176,119,.2);border-radius:20px;background:rgba(6,16,27,.7)}.hd-community-start-steps>b{font-weight:400;color:#a5b3bd}
.hd-community-start-button{width:min(100%,340px);min-height:51px;display:flex;justify-content:center;align-items:center;gap:15px;background:linear-gradient(120deg,#f1d8a9,#cba36a);border:1px solid #f8d9a4;border-radius:9px;color:#1e1a15;font-size:15px;font-weight:750;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.26),inset 0 1px 0 #fff7dc;transition:transform .15s ease,filter .15s ease}.hd-community-start-button:hover{filter:brightness(1.08);transform:translateY(-1px)}.hd-community-start-button:focus-visible,.hd-community-start-skip:focus-visible{outline:2px solid #f8e1b7;outline-offset:4px}.hd-community-start-button>span{font-size:11px}.hd-community-start-button>b{font-size:18px;font-weight:400}
.hd-community-start-skip{color:#b4c0c9;font-size:11px;padding:6px 12px;background:transparent;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.hd-community-start-hint{font-size:11px;color:#aeb8c0;line-height:1.55}
@media(max-width:700px){.hd-community-start{gap:10px;padding:26px 16px 20px;margin-top:2px}.hd-community-start-symbol{gap:9px;margin:4px 0}.hd-community-start-symbol>span:not(.hd-community-start-connection){width:48px;height:48px;font-size:24px}.hd-community-start-connection{font-size:22px}.hd-community-start h2{font-size:20px!important}.hd-community-start>p{font-size:12px}.hd-community-start-steps{font-size:10px;gap:5px}.hd-community-start-button{font-size:13px;min-height:49px}.hd-community-start-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hd-community-start-button{transition:none}}


/* POLISH · Clear navigation availability: gold = ready; neutral = preview only. */
.main-nav .nav-btn.is-live{color:#e9d3a9!important;opacity:1!important}
.main-nav .nav-btn.is-live .nav-icon{color:#e8bd7e!important;border-color:rgba(218,177,108,.38)!important;background:radial-gradient(circle,rgba(216,168,98,.17),transparent 75%)!important}
.main-nav .nav-btn.is-live.active{color:#ffe4b0!important}
.main-nav .nav-btn.is-preview,.main-nav .nav-btn.is-preview.active{color:#7f8c9a!important;background:rgba(46,56,67,.18)!important;border:1px solid rgba(137,151,164,.15)!important;box-shadow:none!important;opacity:.88!important}
.main-nav .nav-btn.is-preview .nav-icon,.main-nav .nav-btn.is-preview.active .nav-icon{color:#7c8997!important;border-color:rgba(131,147,160,.14)!important;background:transparent!important;filter:grayscale(1)!important}
.main-nav .nav-btn.is-preview.active{border-left:2px solid #8291a0!important}
.bottom-nav .bottom-tab.is-live{color:#dfc18f!important;opacity:1!important}
.bottom-nav .bottom-tab.is-live.active{color:#ffe3b2!important}
.bottom-nav .bottom-tab.is-preview,.bottom-nav .bottom-tab.is-preview.active{color:#7d8996!important;opacity:.86!important;background:rgba(60,69,81,.10)!important;box-shadow:none!important}
.bottom-nav .bottom-tab.is-preview.active{border-top:1px solid #7b8b9a!important}

/* POLISH · One-screen community experience, with local-language speaker first. */
.hd-community-page{min-height:0!important;height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:clamp(8px,1.1vw,16px)!important}
.hd-community-shell{max-width:970px;gap:clamp(6px,1vh,11px);min-height:100%;justify-content:center}
.hd-community-header{padding:3px 5px 0!important}
.hd-community-header h1{font-size:clamp(23px,2.5vw,34px)!important;line-height:1.19!important;margin:3px 0!important}
.hd-community-header p{font-size:clamp(11px,1.15vw,14px);margin:0 0 2px}
.hd-community-header>small{font-size:10px}
.hd-community-stage-head{padding:7px 12px!important;min-height:29px}
.hd-community-experience-cue{margin:6px 11px 0!important;padding:6px 10px!important;gap:7px!important}
.hd-community-experience-cue strong{font-size:11px}
.hd-community-devices{padding:10px!important;gap:7px!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)!important}
.hd-community-phone{min-height:236px!important}
.hd-community-phone-top{padding:8px 10px!important;gap:7px!important}
.hd-community-flag{font-size:21px}
.hd-community-messages{min-height:158px!important;padding:9px!important;gap:8px!important}
.hd-community-bubble{padding:8px 10px!important;gap:4px!important;font-size:12px;line-height:1.5!important}
.hd-community-bubble small{font-size:9px;line-height:1.25}
.hd-community-composer{margin:0 8px 7px!important;padding:5px 9px!important}
.hd-community-globe{height:35px;width:35px;font-size:18px}.hd-community-bridge-line{height:26px}
.hd-community-narration{min-height:40px!important;margin:0 10px!important;padding:7px 11px!important;gap:8px}
.hd-community-narration p{font-size:11px;line-height:1.4}
.hd-community-controls{min-height:46px!important;padding:6px 10px 9px!important}
.hd-community-secondary,.hd-community-primary{min-height:32px;padding:5px 11px}
.hd-community-status{padding:9px 12px!important;grid-template-columns:30px minmax(0,1fr) auto;gap:8px!important}
.hd-community-status-icon{width:30px;height:30px;font-size:14px}
.hd-community-status h2{font-size:16px!important;margin:1px 0!important}
.hd-community-status p{font-size:10.5px;line-height:1.35;margin:0 0 5px}
.hd-community-progress{max-width:270px}.hd-community-progress>div:first-child{margin-bottom:3px}
.hd-community-cta{min-width:112px;min-height:32px;font-size:11px;padding:6px 8px}
.hd-community-start{margin:0 auto!important;gap:clamp(7px,1.2vh,13px)!important;padding:clamp(15px,2.5vw,30px)!important}
.hd-community-start-symbol{margin:0!important;min-height:48px!important}
.hd-community-start-symbol>span:not(.hd-community-start-connection){width:50px!important;height:50px!important;font-size:26px!important}
.hd-community-start h2{font-size:clamp(18px,2.1vw,25px)!important}
.hd-community-start-button{min-height:44px!important}

@media(max-width:800px){
 .hd-community-page{padding:7px 6px 8px!important}
 .hd-community-shell{gap:6px!important;justify-content:flex-start!important}
 .hd-community-header{padding:0 2px!important}
 .hd-community-eyebrow{font-size:8px;letter-spacing:.15em}
 .hd-community-header h1{font-size:22px!important;margin:2px 0!important}
 .hd-community-header p{font-size:11px!important;line-height:1.3}
 .hd-community-header>small{font-size:9px}
 .hd-community-stage-head{min-height:28px!important;padding:6px 8px!important;font-size:8px!important;letter-spacing:.04em!important}
 .hd-community-dots{display:none}
 .hd-community-experience-cue{margin:5px 7px 0!important;padding:4px 7px!important;gap:5px!important;min-height:26px;flex-wrap:nowrap!important}
 .hd-community-experience-cue strong{font-size:9.5px!important}
 .hd-community-experience-cue>span:last-child{display:none!important}
 .hd-community-play-mark{width:19px;height:19px;font-size:8px}
 .hd-community-devices{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;gap:4px!important;padding:7px!important;align-items:stretch!important}
 .hd-community-phone{min-height:254px!important;border-radius:9px!important}
 .hd-community-phone-top{padding:7px 6px!important;gap:5px!important}
 .hd-community-flag{font-size:17px!important}
 .hd-community-phone-top strong{font-size:10px!important;letter-spacing:.02em}
 .hd-community-phone-top small{font-size:8px!important;line-height:1.1}
 .hd-community-online{display:none}
 .hd-community-messages{min-height:185px!important;padding:6px!important;gap:6px!important;justify-content:center}
 .hd-community-bubble{max-width:100%!important;width:100%!important;padding:7px!important;font-size:10.5px!important;line-height:1.4!important;gap:5px!important}
 .hd-community-bubble small{font-size:8px!important;line-height:1.25!important}
 .hd-community-placeholder{font-size:9px;text-align:center;line-height:1.4}
 .hd-community-placeholder>span{font-size:18px}
 .hd-community-composer{margin:0 5px 6px!important;padding:3px 5px!important;min-height:22px;font-size:8px!important}
 .hd-community-composer>b{width:16px!important;height:16px!important;font-size:9px}
 .hd-community-bridge{gap:4px!important;flex-direction:column!important}
 .hd-community-globe{width:18px!important;height:18px!important;font-size:11px!important}
 .hd-community-bridge-line{width:1px!important;height:19px!important;background:linear-gradient(180deg,transparent,#cfaa6b,transparent)!important}
 .hd-community-bridge small{font-size:8px!important;writing-mode:vertical-rl;letter-spacing:0}
 .hd-community-bridge small b{font-size:9px!important}
 .hd-community-narration{min-height:39px!important;margin:0 7px!important;padding:6px 8px!important}
 .hd-community-narration>span{font-size:10px;padding-right:6px}
 .hd-community-narration p{font-size:10px!important;line-height:1.4}
 .hd-community-controls{min-height:39px!important;padding:5px 7px!important;gap:7px!important;flex-wrap:nowrap!important}
 .hd-community-secondary,.hd-community-primary{min-height:31px!important;padding:5px 7px!important;font-size:9px!important}
 .hd-community-timeline{min-width:20px;max-width:60px}
 .hd-community-explainer{flex:1 1 auto!important;font-size:9px!important;line-height:1.3}
 .hd-community-status{padding:8px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:7px!important}
 .hd-community-status-icon{width:24px!important;height:24px!important;font-size:12px!important}
 .hd-community-status h2{font-size:14px!important}
 .hd-community-status p{font-size:9px!important;line-height:1.3!important}
 .hd-community-cta{grid-column:2;min-height:29px!important;font-size:10px!important;justify-self:stretch!important}
 .hd-community-start{padding:15px 10px!important;gap:9px!important;max-width:100%;margin:auto!important}
 .hd-community-start h2{font-size:18px!important}
 .hd-community-start>p{font-size:11px!important;line-height:1.5!important}
 .hd-community-start-steps{font-size:9px!important;padding:6px!important;gap:5px!important}
 .hd-community-start-hint{font-size:9px!important}
 .hd-community-start-button{min-height:42px!important;font-size:12px!important}
}
@media(max-width:800px) and (max-height:740px){
 .hd-community-header h1{font-size:19px!important}
 .hd-community-header>small{display:none}
 .hd-community-phone{min-height:212px!important}
 .hd-community-messages{min-height:144px!important}
 .hd-community-bubble{font-size:10px!important;padding:5px!important}
 .hd-community-status p{display:none}
}

/* Final nav status contrast — keep preview-only menus neutral even with theme rules. */
html[data-hd-theme="gilt"] body .main-nav .nav-btn.is-live,html[data-hd-theme="ink"] body .main-nav .nav-btn.is-live{color:#e5c18c!important;opacity:1!important}
html[data-hd-theme="gilt"] body .main-nav .nav-btn.is-live .nav-icon,html[data-hd-theme="ink"] body .main-nav .nav-btn.is-live .nav-icon{color:#eac581!important;border-color:rgba(228,187,118,.4)!important;background:radial-gradient(circle,rgba(209,161,82,.16),transparent 75%)!important}
html[data-hd-theme="gilt"] body .main-nav .nav-btn.is-preview,html[data-hd-theme="ink"] body .main-nav .nav-btn.is-preview{color:#808b98!important;background:rgba(52,62,73,.1)!important;box-shadow:none!important}
html[data-hd-theme="gilt"] body .main-nav .nav-btn.is-preview .nav-icon,html[data-hd-theme="ink"] body .main-nav .nav-btn.is-preview .nav-icon{color:#7a8793!important;border-color:rgba(140,152,167,.15)!important;background:transparent!important;filter:grayscale(1)!important}
html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.is-live,html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.is-live span,html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.is-live,html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.is-live span{color:#d9b984!important;opacity:1!important}
html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.is-preview,html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.is-preview span,html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.is-preview,html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.is-preview span{color:#7d8793!important;filter:grayscale(1)!important;text-shadow:none!important}
html[data-hd-theme="gilt"] body .bottom-nav .bottom-tab.is-preview.active,html[data-hd-theme="ink"] body .bottom-nav .bottom-tab.is-preview.active{background:rgba(54,63,73,.17)!important;box-shadow:inset 0 1px 0 #8392a2!important}
@media(max-width:800px) and (max-height:740px){
 .hd-community-status{grid-template-columns:22px minmax(0,1fr) auto!important;padding:6px!important;min-height:47px!important}
 .hd-community-status p,.hd-community-status .hd-community-progress,.hd-community-status-copy>small{display:none!important}
 .hd-community-status h2{font-size:13px!important;margin:0!important}
 .hd-community-cta{grid-column:3!important;min-width:82px!important;min-height:30px!important;white-space:normal!important;max-width:112px!important;justify-self:end!important}
 .hd-community-status-icon{align-self:center!important}
}

/* COMMUNITY 2026-10-27 · desktop expansive layout and tutorial identity */
.hd-community-identity{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:min(100%,440px);text-align:left;margin:1px auto 0}
.hd-community-identity label{font-size:12px;font-weight:700;letter-spacing:.02em;color:#e9d2aa}
.hd-community-identity-field{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 13px;border:1px solid rgba(226,187,125,.48);border-radius:9px;background:linear-gradient(115deg,#091725,#111f2e);box-shadow:inset 0 1px 0 #ffffff0a}
.hd-community-identity-field>span{font-size:18px;color:#d2b183}
.hd-community-identity input{min-width:0;flex:1;background:none;border:0;outline:0;color:#f7e9cf;font:500 15px/1.4 inherit;letter-spacing:.02em;padding:10px 0;box-shadow:none}
.hd-community-identity input::placeholder{color:#7b8a9b}
.hd-community-identity-field:focus-within{border-color:#f4d69b;box-shadow:0 0 0 2px rgba(226,187,125,.16)}
.hd-community-identity small{font-size:10.5px;color:#a1b0bc;line-height:1.35}
.hd-community-identity .hd-community-alias-error{font-size:11px;color:#ffb0a9;min-height:0}
.hd-community-identity .hd-community-alias-error:empty{display:none}
@media(min-width:1001px){
 .hd-community-page{padding:clamp(16px,2vw,32px)!important}
 .hd-community-shell{max-width:min(100%,1380px)!important;width:100%;gap:clamp(12px,1.8vh,23px)!important}
 .hd-community-header{padding:6px 6px 2px!important}
 .hd-community-header h1{font-size:clamp(34px,3vw,46px)!important}
 .hd-community-header p{font-size:clamp(13px,1.2vw,16px)!important}
 .hd-community-stage{width:100%}
 .hd-community-devices{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)!important;gap:clamp(12px,1.5vw,25px)!important;padding:clamp(16px,2vw,25px)!important}
 .hd-community-phone{min-height:clamp(275px,38vh,365px)!important}
 .hd-community-messages{min-height:clamp(185px,27vh,260px)!important;padding:clamp(13px,1.5vw,20px)!important}
 .hd-community-bubble{font-size:clamp(13px,1.15vw,16px)!important;padding:12px 14px!important}
 .hd-community-phone-top{padding:14px 16px!important}
 .hd-community-phone-top strong{font-size:14px!important}
 .hd-community-composer{margin:0 12px 12px!important;padding:10px 13px!important}
 .hd-community-globe{height:58px;width:58px;font-size:29px}.hd-community-bridge-line{height:55px}
 .hd-community-narration{padding:13px 17px!important;min-height:54px!important}
 .hd-community-narration p{font-size:13px!important}
 .hd-community-controls{min-height:64px!important;padding:12px 18px!important}
 .hd-community-status{padding:18px 22px!important;gap:16px!important}
 .hd-community-status h2{font-size:20px!important}
 .hd-community-start{width:min(100%,990px)!important;padding:clamp(24px,3.2vw,46px)!important;gap:clamp(12px,1.8vh,20px)!important}
 .hd-community-start h2{font-size:clamp(25px,2.2vw,32px)!important}
 .hd-community-start-symbol>span:not(.hd-community-start-connection){width:62px!important;height:62px!important;font-size:31px!important}
}
@media(max-width:800px){
 .hd-community-identity{width:min(100%,370px)}
 .hd-community-identity-field{min-height:41px}
 .hd-community-identity input{font-size:13px;padding:8px 0}
 .hd-community-identity label{font-size:11px}
 .hd-community-identity small{font-size:9px}
 .hd-community-start{gap:7px!important}
}
@media(max-width:800px) and (max-height:740px){.hd-community-identity-field{min-height:37px}.hd-community-start-symbol{min-height:32px!important}.hd-community-start-symbol>span:not(.hd-community-start-connection){width:39px!important;height:39px!important;font-size:20px!important}}


/* 2026.10 · MILLENNIAL KINGDOM unified card evolution and rewards */
.k27-small-stars{display:inline-block;color:#f3cb78!important;font-size:.81em!important;white-space:nowrap;letter-spacing:-.05em;text-shadow:0 0 8px #b97c2866;vertical-align:1px}
.k27-grand-star{display:inline-block;color:#ffe7a0!important;font-size:1.16em!important;vertical-align:-1px;text-shadow:0 0 12px #ffbd5088,0 0 18px #ecb24e44}
.game-card.k27-evolved{border-color:#edc880!important;box-shadow:inset 0 0 0 1px #e6bf7460,0 4px 16px #b27b2440!important}
.game-card.k27-evolved .card-art{filter:saturate(1.14) contrast(1.03)}
.game-card .card-name{white-space:normal!important;overflow-wrap:anywhere;text-wrap:balance}
.game-card .card-level{font-variant-numeric:tabular-nums;font-size:clamp(8px,.8vw,11px)!important}
.k27-star-progress{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 12px;margin:9px 0;color:#c7b8a0;background:#091825;border:1px solid #aa854d66;border-radius:8px;font-size:12px}
.k27-star-progress strong{color:#f0c376;font-weight:750;font-size:13px;white-space:nowrap}
.k27-card-description{color:#d3c6b2;font-size:13px;line-height:1.7}
.k27-growth-note{color:#aeb7bb;line-height:1.5;font-size:11px;margin:8px 0}
.k27-upgrade-button{min-height:38px;min-width:142px}
/* Balanced daily/achievement panels and prevent native white toggle buttons. */
.v96-rewards .v92-reward-grid{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr)!important;align-items:stretch!important;gap:14px!important}
.v96-rewards .v92-daily-board,.v96-rewards .v92-missions-board{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:560px!important}
.v96-rewards .v92-missions-list{max-height:490px!important;min-height:0!important;overflow:auto!important;flex:1 1 auto!important;scrollbar-width:thin}
.v96-rewards .v93-day-grid.is-expanded{max-height:500px!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#b58d58 #10212e;padding:2px 4px 5px 1px!important}
.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.v96-rewards button.k26-inline-toggle,.v96-rewards .v92-missions-head button.k27-mission-toggle{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;min-width:89px!important;min-height:31px!important;padding:6px 11px!important;border-radius:8px!important;border:1px solid rgba(225,187,119,.58)!important;background:linear-gradient(135deg,#2e2b27,#162536)!important;color:#f3d7a5!important;font:600 11px/1.3 system-ui,"Noto Sans KR",sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:inset 0 1px #ffffff12!important;cursor:pointer!important}
.v96-rewards button.k26-inline-toggle:hover{border-color:#ffdb9a!important;background:#403526!important}
.v96-rewards .k26-record-title{min-height:39px!important}
.v96-rewards .k26-day .k26-day-content span{font-size:9px!important;line-height:1.3!important}
.v96-rewards .v93-day-card.k26-day{aspect-ratio:0.88!important;min-height:132px!important}
.v96-rewards .v92-missions-head{min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.v96-rewards .v92-daily-actions .v90-button{white-space:nowrap!important}
@media(max-width:1100px) and (min-width:761px){.v96-rewards .v92-reward-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr)!important}.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.v96-rewards .v92-reward-grid{display:block!important}.v96-rewards .v92-daily-board,.v96-rewards .v92-missions-board{min-height:0!important}.v96-rewards .v92-missions-list{max-height:calc(100dvh - 270px)!important;min-height:0!important}.v96-rewards .v93-day-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v96-rewards .v93-day-card.k26-day{min-height:122px!important}.v96-rewards .k26-record-actions{width:auto!important;gap:7px!important}.v96-rewards .k26-record-title{flex-direction:row!important;align-items:center!important;gap:7px!important}.v96-rewards .k26-record-actions small{display:none!important}.v96-rewards .v92-missions-head{min-height:46px!important}}
@media(max-width:390px){.v96-rewards .v92-daily-actions{display:flex!important;flex-direction:column!important}.v96-rewards .v92-daily-actions .v90-button{width:100%!important}}
/* Reduce uneven spacing across dashboard layouts without changing menu behavior. */
.v91-home-right,.v91-commander-panel,.v91-next-stage{min-width:0!important}
.v91-home-right{gap:12px!important}
.v96-deck .v92-deck-shell{gap:12px!important}
.v96-deck .v96-deck-caption{min-height:37px!important}
.v96-rewards .v92-reward-head p{display:none!important}

/* Final polish: upgrade-ready cues and elegant star growth */
.k27-upgrade-chip{position:absolute;z-index:6;left:8px;bottom:8px;padding:4px 8px;border-radius:999px;border:1px solid rgba(240,198,121,.78);background:linear-gradient(135deg,rgba(54,39,17,.96),rgba(18,30,45,.96));color:#f6d69b;font:700 10px/1.1 var(--body);letter-spacing:.02em;box-shadow:0 4px 12px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)}
.game-card.k27-upgrade-ready{box-shadow:0 14px 30px rgba(0,0,0,.56),0 0 0 1px rgba(245,208,140,.18),0 0 22px rgba(230,180,80,.17)!important}
.game-card.k27-upgrade-ready::after{background:linear-gradient(128deg,transparent 17%,rgba(255,244,222,.18) 36%,transparent 58%),linear-gradient(180deg,rgba(17,20,38,.08) 0%,transparent 35%,rgba(8,11,21,.71) 99%)!important}
.k27-card-stage{display:flex;justify-content:center;align-items:center;min-height:16px;margin-top:1px}
.k27-stage-stars{display:inline-flex;gap:1px;align-items:center;justify-content:center}
.k27-stage-stars i{font-style:normal;color:#f1ca78;text-shadow:0 0 10px rgba(230,172,73,.35);font-size:10px;line-height:1}
.k27-stage-stars i.is-empty{color:rgba(184,164,131,.42);text-shadow:none}
.k27-stage-stars.is-grand i{color:#ffe7a0;text-shadow:0 0 12px rgba(255,193,90,.55)}
.k27-star-progress{align-items:center!important}
.k27-star-progress strong{display:flex;align-items:center;justify-content:flex-end;white-space:normal!important}
.k27-star-progress .k27-stage-stars i{font-size:14px}
.k27-deck-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 4px}
.k27-deck-summary>div{padding:10px 12px;border:1px solid rgba(201,162,103,.26);border-radius:12px;background:linear-gradient(135deg,rgba(13,24,37,.92),rgba(10,15,25,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.k27-deck-summary small{display:block;color:#a99a82;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.k27-deck-summary strong{display:block;margin-top:3px;color:#f5dfba;font:700 18px/1.1 var(--display)}
@media (max-width: 720px){.k27-deck-summary{grid-template-columns:1fr 1fr}.k27-deck-summary>div{padding:9px 10px}.k27-upgrade-chip{left:6px;bottom:6px;padding:3px 7px;font-size:9px}}

/* Performance finish. Effects are decorative and may be safely reduced. */
body[data-fx-quality="low"] .cin-motes,body[data-fx-quality="low"] .embers,body[data-fx-quality="low"] .v90-ambient{display:none!important}
body[data-fx-quality="low"] .game-card,body[data-fx-quality="low"] .game-card:hover{transition:none!important}
body[data-fx-quality="low"] .hd-community-bubble,body[data-fx-quality="low"] .hd-community-play-mark,body[data-fx-quality="low"] .hd-community-live-dot{animation:none!important}
@media(max-width:700px){.v90-screen .v90-ambient{opacity:.3}.game-card{transition:transform .13s ease!important}}

.k27-stage-stars.is-grand i{font-size:16px;filter:drop-shadow(0 0 4px rgba(247,199,109,.65))}.k27-star-progress .k27-stage-stars.is-grand i{font-size:23px}


/* Native browser dialogs replaced with consistent in-game confirmation UI. */
#kingdom-confirm-layer{position:fixed;inset:0;z-index:46000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(3,7,15,.84);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);animation:kingdom-confirm-dim .18s ease both}
.kingdom-confirm-dialog{position:relative;width:min(100%,440px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;border:1px solid rgba(229,192,124,.65);border-radius:15px;background:radial-gradient(ellipse at 50% -16%,rgba(172,130,67,.13),transparent 62%),linear-gradient(168deg,#192434,#0a111e 88%);color:#f6e5c8;box-shadow:0 25px 90px rgba(0,0,0,.78),inset 0 1px 0 rgba(253,222,165,.12);animation:kingdom-confirm-enter .2s cubic-bezier(.22,1,.36,1) both}
.kingdom-confirm-dialog:before{content:"";position:absolute;inset:7px;pointer-events:none;border:1px solid rgba(219,184,118,.19);border-radius:10px}
.kingdom-confirm-inner{position:relative;padding:28px clamp(20px,4.7vw,35px) 27px;text-align:center}
.kingdom-confirm-kicker{display:flex;align-items:center;justify-content:center;gap:11px;color:#bba079;font:600 9px/1.3 Georgia,serif;letter-spacing:.23em;white-space:nowrap}
.kingdom-confirm-kicker i{font-style:normal;color:#dcb677}
.kingdom-confirm-emblem{display:grid;place-items:center;margin:18px auto 11px;width:54px;height:54px;border-radius:50%;border:1px solid rgba(229,182,107,.53);background:radial-gradient(circle at 50% 30%,rgba(194,147,65,.21),rgba(11,20,32,.2));box-shadow:0 0 27px rgba(224,158,67,.1);color:#e4bb7d;font:30px/1 Georgia,serif}
.kingdom-confirm-dialog h2{margin:0 0 11px;font:500 clamp(22px,3.8vw,27px)/1.35 Georgia,"Malgun Gothic","Apple SD Gothic Neo",serif;color:#f7dfb7;letter-spacing:-.035em;overflow-wrap:anywhere}
.kingdom-confirm-dialog p{margin:0 auto;max-width:350px;color:#c2bfbd;font-size:12px;line-height:1.9;word-break:keep-all;overflow-wrap:anywhere}
.kingdom-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}
.kingdom-confirm-actions button{min-width:0;min-height:44px;border-radius:6px;font:700 12px/1.3 "Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;letter-spacing:.025em;transition:border-color .14s,background .14s,transform .14s}
.kingdom-confirm-actions button:focus-visible{outline:2px solid #efcc8c;outline-offset:3px}
.kingdom-confirm-actions button:hover{transform:translateY(-1px)}
.kingdom-confirm-cancel{border:1px solid rgba(204,181,146,.34);background:rgba(23,35,49,.84);color:#e1d5c3}
.kingdom-confirm-cancel:hover{border-color:rgba(217,187,137,.7);background:#243247}
.kingdom-confirm-accept{border:1px solid rgba(232,196,128,.85);background:linear-gradient(160deg,#e8ca94,#b48a4f);color:#241a0f;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 5px 19px rgba(177,119,42,.15)}
.kingdom-confirm-dialog.is-danger .kingdom-confirm-accept{background:linear-gradient(160deg,#9b6654,#643d34);border-color:#c58e72;color:#ffe7d5}
.kingdom-confirm-dialog.is-danger .kingdom-confirm-emblem{border-color:#b98067;color:#deb49b}
@keyframes kingdom-confirm-dim{from{opacity:0}to{opacity:1}}
@keyframes kingdom-confirm-enter{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:480px){#kingdom-confirm-layer{padding:12px}.kingdom-confirm-inner{padding:23px 18px 22px}.kingdom-confirm-actions{gap:8px;margin-top:20px}.kingdom-confirm-actions button{min-height:43px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#kingdom-confirm-layer,.kingdom-confirm-dialog{animation:none!important}.kingdom-confirm-actions button{transition:none!important}}

/* Royal battle hand: portrait and name only. Information lives in an elegant modal. */
.royal-battle .mk-hand-cards{align-items:center!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#9f8056 transparent;gap:8px!important;padding:4px 4px 7px!important}
.royal-battle .mk-hand-cards .mk-hand-tile{position:relative;isolation:isolate;display:block;flex:0 0 90px!important;width:90px!important;min-width:90px!important;height:114px!important;min-height:114px!important;max-height:114px!important;overflow:hidden;cursor:pointer;border:1px solid rgba(205,169,112,.72);border-radius:8px;background:#101a29;padding:0!important;color:#fff1d9;text-align:center;box-shadow:inset 0 0 0 2px #09101b,0 5px 15px rgba(0,0,0,.55);transform:translateZ(0);transition:border-color .15s,transform .15s,box-shadow .15s}
.royal-battle .mk-hand-tile::before{content:"";pointer-events:none;position:absolute;inset:4px;border:1px solid rgba(244,204,142,.32);border-radius:5px;z-index:2}
.royal-battle .mk-hand-tile .mk-hand-tile-art{position:absolute;inset:0;display:block;background-size:cover;background-position:center 26%;filter:saturate(1.03);transition:transform .2s}
.royal-battle .mk-hand-tile::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,8,15,.03) 0%,rgba(4,8,15,.04) 48%,rgba(5,9,15,.65) 70%,rgba(4,8,15,.97) 100%);z-index:1}
.royal-battle .mk-hand-tile .mk-hand-tile-name{position:absolute;bottom:9px;left:6px;right:6px;z-index:3;font:700 11px/1.25 "Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#f6e5c9;text-shadow:0 1px 6px #02050b,0 0 6px #02050b;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.royal-battle .mk-hand-tile.rare{border-color:#75b7d9}.royal-battle .mk-hand-tile.epic{border-color:#bc9ed8}.royal-battle .mk-hand-tile.legendary,.royal-battle .mk-hand-tile.is-evolved{border-color:#f1ca82;box-shadow:0 4px 18px rgba(185,123,35,.23),inset 0 0 0 2px #09101b}
.royal-battle .mk-hand-tile.is-unavailable{opacity:.65;filter:saturate(.7)}
.royal-battle .mk-hand-tile.is-selected{border-color:#ffe4a8!important;box-shadow:0 0 0 2px #ffe0a5,0 0 20px rgba(247,184,77,.28)!important}
.royal-battle .mk-hand-tile:hover{border-color:#ffe4b8;transform:translateY(-2px)}
.royal-battle .mk-hand-tile:hover .mk-hand-tile-art{transform:scale(1.045)}
.royal-battle .mk-hand-tile:focus-visible{outline:2px solid #ffdda0;outline-offset:3px}
/* Battle detail panel in the existing in-game overlay (not browser alert). */

























@media(max-width:820px){.royal-battle .mk-hand-cards .mk-hand-tile{flex-basis:77px!important;width:77px!important;min-width:77px!important;height:98px!important;min-height:98px!important;max-height:98px!important}.royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:10px;bottom:7px;left:4px;right:4px}}
@media(max-width:520px){}
@media(prefers-reduced-motion:reduce){.royal-battle .mk-hand-tile,.royal-battle .mk-hand-tile .mk-hand-tile-art{transition:none!important}}

/* Battle simplification: clean hand cards and full-art deployed cards */
.royal-battle .mk-hand-tile{border-radius:10px!important;box-shadow:inset 0 0 0 1px rgba(12,20,33,.96),0 8px 18px rgba(0,0,0,.46)!important}
.royal-battle .mk-hand-tile::before{inset:3px!important;border-color:rgba(247,220,166,.22)!important}
.royal-battle .mk-hand-tile::after{background:linear-gradient(180deg,rgba(4,8,15,.12) 0%,rgba(4,8,15,.08) 32%,rgba(5,9,15,.38) 60%,rgba(4,8,15,.92) 100%)!important}
.royal-battle .mk-hand-tile .mk-hand-tile-art{background-position:center 20%!important}
.royal-battle .mk-hand-tile .mk-hand-tile-stars{position:absolute;top:7px;left:7px;z-index:3;display:flex;align-items:center;gap:1px;padding:2px 6px 3px;border-radius:999px;background:rgba(7,12,22,.7);border:1px solid rgba(225,190,124,.26)}
.royal-battle .mk-hand-tile .mk-hand-tile-stars .k27-stage-stars i{font-size:9px!important}
.royal-battle .mk-hand-tile .mk-hand-tile-cost{position:absolute;top:7px;right:7px;z-index:3;display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:linear-gradient(180deg,rgba(13,24,39,.92),rgba(8,14,24,.9));border:1px solid rgba(225,191,132,.5);color:#f8e7c3;font:700 12px/1 Georgia,serif;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.royal-battle .mk-hand-tile .mk-hand-tile-name{bottom:8px!important;left:7px!important;right:7px!important;padding-top:18px;font:700 11px/1.22 "Malgun Gothic","Apple SD Gothic Neo",sans-serif!important}
.royal-battle .mk-hand-tile.is-selected{border-color:#f3d293!important;box-shadow:0 0 0 1px rgba(255,222,160,.92),0 0 0 3px rgba(220,181,103,.22),0 10px 20px rgba(0,0,0,.5)!important}
.royal-battle .mk-unit.unit.v90-field-card{justify-content:flex-end!important;border-radius:8px!important;overflow:hidden!important;background:#0b1220!important;border:1px solid rgba(198,165,110,.54)!important;box-shadow:0 8px 18px rgba(0,0,0,.5)!important}
.royal-battle .mk-unit.unit.v90-field-card::after{background:linear-gradient(180deg,rgba(1,3,8,.04) 0%,rgba(3,6,12,.06) 38%,rgba(3,6,12,.26) 58%,rgba(3,6,12,.84) 100%)!important}
.royal-battle .mk-unit .mk-unit-image{background-position:center 20%!important;filter:saturate(.96) contrast(1.02)!important}
.royal-battle .mk-unit .mk-unit-stars{position:absolute;top:5px;left:5px;z-index:2;display:flex;align-items:center;gap:1px;padding:2px 5px 3px;border-radius:999px;background:rgba(6,12,21,.68);border:1px solid rgba(219,184,119,.28)}
.royal-battle .mk-unit .mk-unit-stars .k27-stage-stars i{font-size:8px!important}

.royal-battle .mk-unit-stats{position:relative;z-index:2;display:flex!important;justify-content:center!important;gap:10px!important;padding:4px 2px 5px!important;background:linear-gradient(180deg,rgba(4,8,14,.18),rgba(4,8,14,.9))!important;color:#e6edf8!important;font:700 9px/1.1 Georgia,serif!important;letter-spacing:.02em;border-top:1px solid rgba(255,255,255,.06)}
.royal-battle .enemy-unit .mk-unit-stats{color:#f3d0be!important}
.royal-battle .mk-unit-stats b{font-weight:700;opacity:.96}
@media (max-width:820px){.royal-battle .mk-hand-tile .mk-hand-tile-stars{top:6px;left:6px;padding:2px 5px}.royal-battle .mk-hand-tile .mk-hand-tile-stars .k27-stage-stars i{font-size:8px!important}.royal-battle .mk-hand-tile .mk-hand-tile-cost{top:6px;right:6px;min-width:22px;height:22px;font-size:11px}.royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:10px!important;bottom:7px!important;left:5px!important;right:5px!important}.royal-battle .mk-unit .mk-unit-stars .k27-stage-stars i{font-size:7px!important}.royal-battle .mk-unit-stats{gap:8px!important;font-size:8px!important;padding:3px 1px 4px!important}}

/* Battle photo fill correction (2026-10-27): override obsolete 42% photo/58% empty split. */
#view .royal-battle.mk-battle-minimal .mk-unit.unit.v90-field-card {
  display: block !important;
  position: relative !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  isolation: isolate;
  overflow: hidden !important;
  background-color: #0b1220 !important;
}
#view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-image {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center 24% !important;
  transform: none !important;
  z-index: 0 !important;
}
#view .royal-battle.mk-battle-minimal .mk-unit.unit.v90-field-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg,rgba(1,4,9,.07) 0%, transparent 48%,rgba(2,6,12,.25) 70%,rgba(2,5,10,.87) 100%) !important;
  pointer-events: none !important;
}
#view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stats {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 5px 2px 6px !important;
  background: linear-gradient(180deg, transparent, rgba(3,7,14,.85)) !important;
  color: #e7eef6 !important;
  text-shadow: 0 1px 2px #000;
}
#view .royal-battle.mk-battle-minimal .mk-unit.enemy-unit .mk-unit-stats {
  color: #ffd4c1 !important;
}
#view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stars {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  z-index: 3 !important;
}
@media (max-width: 700px) {
  #view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stats {
    padding: 3px 1px 4px !important;
    font-size: 8px !important;
  }
}


/* Premium reward / achievement receipt refresh */
.overlay-root .modal:has(.k26-receipt-premium){width:min(520px,calc(100vw - 24px))!important;max-width:520px!important;border-radius:22px!important;background:linear-gradient(180deg,#0d1724,#09111a)!important;border:1px solid rgba(226,187,117,.58)!important;box-shadow:0 34px 110px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,240,208,.04)!important;overflow:hidden!important}
.k26-receipt-premium{position:relative;padding:34px 28px 26px!important;gap:12px!important;background:radial-gradient(circle at 50% -8%,rgba(241,200,121,.18),transparent 38%),linear-gradient(180deg,rgba(13,22,33,.96),rgba(7,13,21,.98))}
.k26-receipt-premium:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 20%,transparent 78%,rgba(229,190,118,.05));}
.k26-receipt-ornament{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;color:#e5c38b;opacity:.92}
.k26-receipt-ornament span{flex:1 1 auto;max-width:118px;height:1px;background:linear-gradient(90deg,transparent,rgba(232,194,126,.72),transparent)}
.k26-receipt-ornament b{font:700 16px/1 Georgia,serif;letter-spacing:.2em;color:#f3d6a0}
.k26-receipt-premium .k26-receipt-mark{width:58px;height:58px;font-size:30px;background:radial-gradient(circle at 45% 30%,rgba(130,95,43,.95),rgba(23,34,47,.96) 74%);box-shadow:0 0 0 7px rgba(221,173,103,.06),0 18px 36px rgba(0,0,0,.35)}
.k26-receipt-premium .k26-receipt-kicker{margin-top:2px;font-size:11px;letter-spacing:3px;color:#d5ba8c}
.k26-receipt-premium h2{font-size:clamp(26px,4.6vw,34px);line-height:1.22;color:#fff0d3}
.k26-receipt-subtitle{max-width:360px;color:#aebfd1!important;font-size:13px!important;line-height:1.7!important}
.k26-receipt-accent{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid rgba(229,189,118,.36);background:linear-gradient(135deg,rgba(100,74,36,.34),rgba(18,27,38,.9));color:#f0d2a0;font-size:12px;letter-spacing:.08em}
.k26-receipt-premium .k26-receipt-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}
.k26-receipt-premium .k26-receipt-items.single{grid-template-columns:minmax(0,1fr);max-width:260px}
.k26-receipt-premium .k26-receipt-items.dense{grid-template-columns:repeat(2,minmax(0,1fr))}
.k26-receipt-premium .k26-receipt-item{min-height:126px;padding:16px 12px 14px;border-radius:16px;border:1px solid rgba(202,169,118,.28);background:linear-gradient(160deg,rgba(19,29,42,.98),rgba(10,18,28,.95));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.k26-receipt-premium .k26-receipt-item small{font-size:11px;line-height:1.45;color:#b5c0ca}
.k26-receipt-premium .k26-receipt-item strong{font-size:25px;color:#f5d6a2}
.k26-receipt-premium .k26-receipt-icon{width:50px;height:50px;font-size:30px}
.k26-achievement-receipt .k26-receipt-mark,.k26-achievement-receipt .k26-receipt-icon{color:#f7d89f}
.k26-achievement-receipt .k26-receipt-accent{background:linear-gradient(135deg,rgba(83,57,24,.44),rgba(18,27,38,.92))}
.k26-legend-receipt .k26-receipt-mark,.k26-legend-receipt .k26-receipt-icon{color:#ffe5b8}
.k26-receipt-note{width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(194,163,110,.18);background:rgba(10,20,32,.6);color:#b9c4cd;font-size:12px;line-height:1.65}
.k26-receipt-premium .k26-receipt-confirm{margin-top:2px;min-height:48px;border-radius:14px;font-size:14px;letter-spacing:.08em;box-shadow:0 10px 28px rgba(196,146,76,.18)}
@media (max-width:760px){.overlay-root .modal:has(.k26-receipt-premium){width:min(100vw - 18px, 420px)!important}.k26-receipt-premium{padding:28px 18px 18px!important}.k26-receipt-premium .k26-receipt-items{gap:10px}.k26-receipt-premium .k26-receipt-item{min-height:112px;padding:14px 10px 12px}.k26-receipt-premium .k26-receipt-item strong{font-size:21px}.k26-receipt-subtitle{font-size:12px!important}}

.k26-receipt-premium .k26-receipt-items:empty{display:none}

/* Performance mode: remove GPU-heavy blur and endless visual animation in gameplay. */
body[data-fx-quality="low"] .topbar,body[data-fx-quality="low"] .sidebar,body[data-fx-quality="low"] .mk-battle-footer,body[data-fx-quality="low"] .v90-screen,body[data-fx-quality="low"] .overlay-shade,body[data-fx-quality="low"] .modal,body[data-fx-quality="low"] .mk-battlefield{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-fx-quality="low"] .mk-atmosphere,body[data-fx-quality="low"] .v90-ambient,body[data-fx-quality="low"] .cin-motes,body[data-fx-quality="low"] .cin-mote{display:none!important}
body[data-fx-quality="low"] .mk-unit.summoned,body[data-fx-quality="low"] .mk-hand-tile,body[data-fx-quality="low"] .game-card,body[data-fx-quality="low"] .mk-battlefield,body[data-fx-quality="low"] .v92-stage-card{animation:none!important;transition-duration:0.06s!important}
body[data-fx-quality="low"] .mk-unit-image,body[data-fx-quality="low"] .mk-hand-tile-art{filter:none!important}
body[data-fx-quality="low"] .game-card:hover:not(:disabled){transform:none!important}
@media(max-width:700px){body .topbar,body .sidebar,body .mk-battle-footer,body .overlay-shade,body .modal{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}


/* ========= premium_finish.css (original load order) ========= */
/* THE MILLENNIAL KINGDOM — refined visual system.
   Restricted to presentation; gameplay and save schemas remain untouched. */
:root {
  --bg: #080f19;
  --bg2: #0c1827;
  --panel: #101c2b;
  --panel2: #152536;
  --ink: #f4ead8;
  --muted: #b7bbbf;
  --sub: #9ca8b4;
  --gold: #d5ad71;
  --gold2: #f2d9a8;
  --border: rgba(204,167,110,.34);
  --body: "Noto Sans CJK KR","Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  --display: "Noto Serif CJK KR",Georgia,"Times New Roman",serif;
}
html,body{background:#070e18;color:var(--ink);text-rendering:optimizeLegibility}
body{font-size:14px;-webkit-font-smoothing:antialiased}
.app-shell{background:radial-gradient(ellipse at 74% 3%,rgba(65,92,115,.14),transparent 47%),#07101a!important}
/* Compact left rail and clean chrome */
.sidebar{border-right:1px solid rgba(218,182,120,.26)!important;background:linear-gradient(180deg,#0e1826 0%,#0a131f 66%,#090f19 100%)!important;box-shadow:9px 0 32px #0004!important}
.sidebar .brand-seal{color:#f8dfad!important;border-color:#cfa66c!important;box-shadow:0 0 18px #d3a75c22,inset 0 0 0 3px #111e2d!important}
.topbar{background:rgba(10,17,28,.97)!important;border-bottom-color:rgba(216,183,125,.23)!important;box-shadow:0 8px 26px rgba(0,0,0,.15);height:68px!important}
.topbar .crumb{color:#c6c6c4!important;font-size:12px!important;letter-spacing:.02em!important}
.topbar .currency{border-color:rgba(200,169,121,.26)!important;background:#091522!important;color:#f1e3cb!important;min-height:36px!important;padding-inline:14px!important}
.topbar .currency strong{font-size:14px!important;font-variant-numeric:tabular-nums}
.topbar .icon-button{border-radius:50%!important;border-color:rgba(207,172,111,.34)!important;background:linear-gradient(160deg,#152437,#0b1522)!important;color:#e5bf84!important;min-width:37px;min-height:37px}
#main-nav .nav-btn{transition:background .16s,border-color .16s,color .16s!important}
#main-nav .nav-btn.active{background:linear-gradient(100deg,rgba(206,162,91,.18),rgba(206,162,91,.035))!important;border-color:rgba(230,190,128,.36)!important;color:#f9e1b6!important}
#main-nav .nav-btn:not(.is-preview):hover{background:rgba(221,171,96,.095)!important}
#main-nav .nav-btn .nav-icon{color:#e0b87e!important}
/* Consistent spacing, contrast and softly lit surfaces */
#view.view{max-width:1580px!important;padding:clamp(14px,1.7vw,27px)!important}
#view>.v90-screen{color:#f3e6d2!important}
#view .v90-ambient{opacity:.42!important;pointer-events:none}
#view .v90-kicker{color:#cda86d!important;letter-spacing:.24em!important;font-size:10px!important;font-weight:650!important}
#view .v90-screen h1,#view .v90-screen h2,#view .v90-screen h3{color:#f2dab2!important;text-wrap:balance}
#view .v90-screen h1{letter-spacing:-.025em!important}
#view .v90-screen p{color:#d2c8b8}
#view .v90-button, #view .v93-pack, #view .k26-inline-toggle,
#overlays .btn,#overlays .v90-button{border-radius:10px!important;transition:filter .16s,transform .16s,border-color .16s,background .16s!important}
#view .v90-button:not(:disabled):hover,#view .v93-pack:not(:disabled):hover,#overlays .btn:not(:disabled):hover{transform:translateY(-2px)!important;filter:brightness(1.12)!important}
#view .v90-button.gold,#view .v93-pack.featured, #view .v93-pack.premium{
  border-color:rgba(249,219,156,.68)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 7px 18px rgba(0,0,0,.24)!important;
}
#view .v90-button.glass{background:linear-gradient(145deg,rgba(32,49,67,.91),rgba(14,24,37,.93))!important;color:#f2e2c4!important;border:1px solid rgba(205,172,118,.5)!important}
#view :is(button,a,[role="button"]):focus-visible,#overlays button:focus-visible{outline:2px solid #f7d99e!important;outline-offset:3px!important}
/* Main lobby */
#view .v91-home-intro{max-width:900px}
#view .v91-home-intro h1{font-size:clamp(40px,3.65vw,60px)!important;line-height:1.18!important;color:#fff0d9!important}
#view .v91-home-intro>p{font-size:14px!important;color:#d4c8b8!important}
#view .v91-home-grid{gap:18px!important;align-items:stretch!important}
#view .v91-commander-panel,
#view .v91-next-stage,
#view .v91-shortcuts button{
  border:1px solid rgba(221,183,121,.40)!important;
  background:linear-gradient(135deg,rgba(20,35,51,.97),rgba(10,20,33,.97))!important;
  border-radius:15px!important;
  box-shadow:inset 0 1px 0 rgba(244,211,152,.12),0 16px 32px rgba(0,0,0,.25)!important;
}
#view .v91-commander-panel{padding:clamp(18px,2vw,32px)!important}
#view .v91-commander-body{gap:22px!important}
#view .v91-commander-portrait{border:1px solid #c19b67!important;border-radius:10px!important;box-shadow:0 9px 22px #0008,0 0 0 3px rgba(225,183,123,.08)!important}
#view .v91-commander-body h2{font-size:clamp(27px,2.8vw,38px)!important;color:#ffe5bb!important}
#view .v91-commander-body p{font-size:13px!important;line-height:1.8!important;color:#c7c5c0!important}
#view .v91-commander-buttons{gap:10px!important}
#view .v91-commander-buttons button{min-height:49px!important;font-size:13px!important;font-weight:700!important}
#view .v91-next-stage{min-height:185px!important}
#view .v91-next-image{border-radius:10px!important;box-shadow:inset 0 0 0 1px #e7d3a335}
#view .v91-next-copy strong{font-size:clamp(22px,2.2vw,31px)!important;color:#ffe1b8!important}
#view .v91-next-copy>span{color:#d7bc8e!important;font-size:12px!important}
#view .v91-next-copy em{color:#f4d59d!important;font-size:12px!important}
#view .v91-shortcuts{gap:12px!important}
#view .v91-shortcuts button{min-height:113px!important;padding:16px!important}
#view .v91-shortcuts strong{font-size:17px!important;color:#f3d9af!important}
#view .v91-shortcuts small{font-size:11px!important;color:#b2b9be!important}
#view .v91-home-foot{opacity:.52;letter-spacing:.15em}
/* Chapter selection: readable chapter tiles without washed-out imagery */
#view .v92-exp-hero{border-radius:15px!important;border:1px solid rgba(221,184,120,.48)!important;box-shadow:0 18px 34px rgba(0,0,0,.3)!important;overflow:hidden!important}
#view .v92-exp-copy{padding:clamp(18px,2.2vw,33px)!important}
#view .v92-exp-copy h1{font-size:clamp(30px,3.3vw,46px)!important;color:#ffe2b7!important}
#view .v92-exp-copy p{font-size:13px!important;color:#d0c4b3!important}
#view .v92-exp-badges{gap:7px!important}
#view .v92-exp-badges span{background:rgba(13,23,37,.76)!important;color:#decbaa!important;border:1px solid rgba(213,177,116,.35)!important;padding:3px 9px!important;border-radius:999px!important;font-size:11px!important}
#view .v92-exp-actions .v90-button{min-height:45px!important}
#view .v92-stage-grid{gap:12px!important}
#view .v92-stage-card{border-radius:12px!important;border:1px solid rgba(189,158,112,.38)!important;box-shadow:0 10px 18px rgba(0,0,0,.17)!important}
#view .v92-stage-card.current{border-color:#e9c487!important;box-shadow:inset 0 0 0 1px #edcc8b32,0 0 19px #dcaf5940!important}
#view .v92-stage-card:not(.locked):hover{transform:translateY(-3px)!important;border-color:#f0cc92!important}
#view .v92-stage-card strong{color:#f4ddbb!important;font-size:16px!important}
#view .v92-stage-card.locked{filter:grayscale(.52) brightness(.75)!important;opacity:.62!important}
/* Summoning: let the summon art breathe and group the decisions. */
#view .v93-summon-topbar{gap:20px!important;align-items:stretch!important}
#view .v93-summon-copy,#view .v93-summon-visual{border:1px solid rgba(219,179,112,.39)!important;border-radius:16px!important;background:linear-gradient(150deg,rgba(17,29,45,.96),rgba(9,18,30,.96))!important;box-shadow:inset 0 1px 0 #f1cf9422,0 20px 35px #0004!important}
#view .v93-summon-copy{padding:22px!important}
#view .v93-summon-copy h1{font-size:clamp(32px,3.2vw,48px)!important;color:#ffe0ae!important}
#view .v93-summon-copy>p{font-size:13px!important;color:#d8ccbb!important}
#view .v93-summon-stats{gap:10px!important}
#view .v93-summon-stats>div{border-radius:11px!important;border:1px solid rgba(207,169,107,.3)!important;background:rgba(12,23,35,.75)!important;padding:10px!important}
#view .v93-summon-stats strong{font-size:23px!important;color:#f6dba8!important}
#view .v93-summon-note{border-radius:10px!important;border:1px solid rgba(192,159,112,.3)!important;background:rgba(9,19,31,.65)!important;color:#d8c5a9!important}
#view .v93-summon-note b{font-size:12px!important;color:#edcf97!important}
#view .v93-summon-note span{font-size:11px!important;color:#aab5bf!important}
#view .v93-summon-packs{gap:9px!important}
#view .v93-pack{min-height:120px!important;background:linear-gradient(160deg,#182838,#0c1725)!important;border:1px solid rgba(215,175,111,.37)!important;color:#eadac0!important}
#view .v93-pack strong{font-size:14px!important;color:#f3d7a8!important}
#view .v93-pack small{font-size:11px!important;color:#c0b2a1!important}
#view .v93-pack em{color:#f5d193!important}
#view .v93-summon-altar{border-radius:13px!important;border:1px solid rgba(211,177,122,.31)!important;overflow:hidden!important}
#view .v93-summon-altar img{filter:contrast(1.06) saturate(1.08)}
/* Deck cards: consistent spacing, quiet information hierarchy */
#view .v92-deck-shell{gap:13px!important}
#view .v92-deck-head{margin-bottom:4px!important}
#view .v92-deck-head h1{font-size:clamp(25px,2.5vw,35px)!important;color:#f3ddb6!important}
#view .v92-deck-head-actions{gap:9px!important}
#view .v92-deck-head-actions button{min-height:41px!important;font-size:12px!important;padding:8px 13px!important}
#view .v92-deck-overview,#view .v92-collection-shell{border-radius:14px!important;border:1px solid rgba(214,179,124,.30)!important;background:linear-gradient(150deg,rgba(13,24,38,.80),rgba(7,15,26,.88))!important;box-shadow:inset 0 1px 0 #ffe8ae13!important}
#view .v96-deck-caption{border:0!important;background:transparent!important;color:#d9c7aa!important}
#view .k27-deck-summary{gap:10px!important;margin:7px 0 11px!important}
#view .k27-deck-summary>div{background:linear-gradient(140deg,rgba(24,40,57,.86),rgba(11,22,36,.88))!important;border:1px solid rgba(199,169,117,.29)!important;border-radius:10px!important;padding:10px 14px!important}
#view .k27-deck-summary small{color:#baa98d!important;font-size:11px!important;letter-spacing:.03em!important}
#view .k27-deck-summary strong{color:#f7dbab!important;font-size:18px!important}
#view .v90-deck-cards.v92-deck-cards{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;align-items:start!important;gap:12px!important}
#view .v90-deck-slot{min-width:0!important;width:100%!important;max-width:none!important}
#view .v90-deck-slot .game-card{width:100%!important;aspect-ratio:.73!important;max-height:none!important;min-height:0!important}
#view .v92-collection-grid{grid-template-columns:repeat(auto-fill,minmax(139px,1fr))!important;gap:12px!important}
#view .v92-collection-grid .game-card{width:100%!important}
#view .v96-deck .game-card .card-info{background:linear-gradient(180deg,rgba(13,18,27,.89),rgba(10,16,26,.99))!important}
#view .v96-deck .game-card .card-name{font-size:11px!important;line-height:1.35!important;color:#f4dec0!important;font-weight:700!important}
#view .v96-deck .game-card .card-type{font-size:9px!important;color:#b6c1c9!important}
#view .v96-deck .game-card .card-stats{font-size:11px!important;line-height:1.3!important;color:#f2c78b!important}
#view .v96-deck .game-card .k27-card-stage{min-height:15px!important}
#view .v96-deck .game-card .k27-card-stage i{font-size:10px!important}
#view .v96-deck .game-card{border-radius:10px!important;transition:transform .16s,border-color .16s!important}
#view .v96-deck .game-card:hover:not(:disabled){transform:translateY(-3px)!important}
#view .v96-deck .game-card.k27-upgrade-ready{border-color:#f3d18a!important}
#view .v96-deck .game-card .k27-upgrade-chip{z-index:11!important;background:linear-gradient(135deg,#6b4c26,#39291b)!important;color:#ffebbd!important;font-size:10px!important;padding:5px 9px!important}
#view .v90-filterbar button{border-radius:99px!important;min-height:30px!important;padding:4px 10px!important;font-size:11px!important;color:#d5c2a4!important;border:1px solid #bc9c6a55!important}
#view .v90-filterbar button.selected{background:#604728!important;color:#fff0c5!important;border-color:#e8bd77!important}
/* Rewards: a cohesive grid with buttons that belong to the game skin. */
#view .v92-reward-head h1{font-size:clamp(26px,2.8vw,38px)!important;color:#f4dfb8!important}
#view .v92-reward-grid{grid-template-columns:minmax(0,1.52fr) minmax(330px,1fr)!important;gap:16px!important;align-items:stretch!important}
#view .v92-daily-board,#view .v92-missions-board{background:linear-gradient(150deg,rgba(17,31,47,.96),rgba(9,20,33,.96))!important;border:1px solid rgba(208,175,119,.35)!important;border-radius:15px!important;box-shadow:inset 0 1px 0 #ffe4b61b,0 12px 27px #0003!important;padding:18px!important;min-width:0!important}
#view .v92-daily-board .v96-board-title,#view .v92-missions-board .v92-missions-head{min-height:58px!important}
#view .v96-board-title h2,#view .v92-missions-head h3{color:#f3d8ac!important;font-size:21px!important;font-weight:650!important}
#view .v96-board-title>strong{font-size:21px!important;color:#f8cc82!important}
#view .v92-daily-foot{border-radius:12px!important;background:linear-gradient(130deg,rgba(37,45,53,.7),rgba(16,28,42,.8))!important;border:1px solid rgba(200,163,106,.31)!important;padding:10px!important}
#view .k26-daily-stat strong{color:#f0d5a5!important;font-size:12px!important}
#view .k26-daily-stat small{color:#bac0c2!important;font-size:11px!important}
#view .v92-daily-actions .v90-button{min-height:40px!important;font-size:12px!important}
#view .k26-record-title{color:#e6d2b0!important;font-size:13px!important;padding-bottom:10px!important}
#view .k26-record-actions{gap:9px!important}
#view .v96-rewards button.k26-inline-toggle,
#view .v96-rewards .v92-missions-head button.k27-mission-toggle{
 border-radius:9px!important;background:linear-gradient(160deg,#2a3542,#172636)!important;color:#f5d9a5!important;
 border:1px solid rgba(230,190,130,.58)!important;box-shadow:inset 0 1px #fff2cf12,0 4px 12px #0002!important;
 font:700 11px/1.35 var(--body)!important;min-width:88px!important;min-height:34px!important;padding:6px 11px!important;
}
#view .v96-rewards button.k26-inline-toggle:hover{border-color:#f9d9a4!important;background:#334355!important}
#view .v93-day-grid{gap:9px!important}
#view .v93-day-card{border:1px solid rgba(197,159,101,.38)!important;border-radius:11px!important;box-shadow:0 7px 17px #0003!important;overflow:hidden!important}
#view .v93-day-card.current{border:1px solid #f9d492!important;box-shadow:0 0 0 1px #f6c87538,0 0 18px #e5b46b2d!important}
#view .v93-day-art{filter:brightness(1.2) saturate(.93)!important}
#view .k26-day-content strong{font-size:12px!important;line-height:1.35!important;color:#fff1d5!important;text-shadow:0 1px 5px #000}
#view .k26-day-content span{font-size:9px!important;color:#f3d59e!important}
#view .v93-day-badge{font-size:9px!important;font-weight:700!important}
#view .v93-day-state{font-size:10px!important;color:#d3cfbd!important}
#view .v92-missions-list{gap:9px!important}
#view .v92-mission-card{background:rgba(13,26,40,.75)!important;border:1px solid rgba(189,158,109,.27)!important;border-radius:11px!important;padding:11px!important;min-height:92px!important}
#view .v92-mission-card strong{font-size:12px!important;color:#e8d8c1!important}
#view .v92-mission-card small{font-size:11px!important;color:#b9c1c6!important}
#view .v92-mission-card .k26-mission-loot{font-size:11px!important;color:#d8c395!important}
#view .v92-mission-card .v92-mission-bottom button{border-radius:7px!important;font-size:10px!important;min-height:29px!important}
#view .v92-mission-card.ready{border-color:#dcb874a8!important;background:linear-gradient(110deg,rgba(70,51,27,.58),rgba(18,35,47,.84))!important}
/* In-game modals and confirmation prompts */
#overlays .modal{background:linear-gradient(155deg,#142337,#091522)!important;border:1px solid rgba(224,186,122,.56)!important;border-radius:17px!important;box-shadow:0 22px 66px #000b,inset 0 1px 0 rgba(250,225,179,.1)!important;color:#f6e5cb!important}
#overlays .modal-title{font-size:24px!important;color:#ffe1ac!important}
#overlays .card-detail{gap:20px!important}
#overlays .k27-star-progress{border-radius:9px!important;background:#102236!important}
#overlays .btn.primary{border-color:#f6d6a0!important}
#kingdom-confirm-layer .kingdom-confirm-dialog{border-radius:17px!important;box-shadow:0 25px 75px #000b!important}
#overlays .v90-settings .v90-settings-options button{background:linear-gradient(140deg,#182a3e,#0c1a2d)!important;color:#f0dcc0!important;border:1px solid rgba(211,170,110,.31)!important}
#overlays .v90-settings .v90-settings-options button:hover{border-color:rgba(248,215,158,.68)!important}
/* Battle: full-bleed portraits, readable miniature combat statistics, selected hand. */
#view .royal-battle .mk-battlefield{border-color:rgba(213,179,123,.58)!important;box-shadow:0 14px 34px #0007!important}
#view .royal-battle .mk-lane{border-color:rgba(225,186,121,.21)!important}
#view .royal-battle .mk-hand-cards .mk-hand-tile{border-radius:11px!important;box-shadow:0 7px 17px #0007,inset 0 0 0 1px #ebd1a61e!important;will-change:auto!important}
#view .royal-battle .mk-hand-tile.is-selected{box-shadow:0 0 0 2px #f4d194,0 0 18px #e5bb6766!important}
#view .royal-battle .mk-hand-tile .mk-hand-tile-art{background-position:center 26%!important}
#view .royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:11px!important;color:#f9e8ce!important}
#view .royal-battle.mk-battle-minimal .mk-unit.unit.v90-field-card{background:#0a1423!important;border:1px solid #d1af7b99!important;border-radius:9px!important}
#view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background-size:cover!important;background-repeat:no-repeat!important;background-position:center 26%!important}
#view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stats{padding:5px 3px 6px!important;font-size:10px!important;font-weight:700!important;gap:8px!important;background:linear-gradient(180deg,rgba(7,12,19,.1),rgba(5,9,18,.9))!important}
#view .royal-battle .mk-commanders{border-bottom:1px solid rgba(217,176,115,.29)!important;background:linear-gradient(100deg,#0c1a2a,#142435 50%,#0b1928)!important}
#view .royal-battle .mk-battle-footer{background:linear-gradient(170deg,#0d1d2e,#091422)!important;border-color:#c3a27088!important;border-radius:14px!important}
#view .royal-battle .mk-turn{border-radius:9px!important}
/* Fine-grained accessibility / mobile constraints */
@media(max-width:1100px) and (min-width:761px){
 #view .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important}
 #view .v92-reward-grid{grid-template-columns:minmax(0,1.25fr) minmax(285px,1fr)!important}
 #view .v92-daily-board,#view .v92-missions-board{padding:13px!important}
 #view .v93-day-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 #view.view{padding:12px 12px 85px!important}
 #view .v91-home-intro h1{font-size:36px!important}
 #view .v91-home-grid{gap:11px!important}
 #view .v91-commander-panel{padding:15px!important}
 #view .v91-commander-body{gap:12px!important}
 #view .v91-commander-body h2{font-size:26px!important}
 #view .v91-shortcuts button{min-height:84px!important;padding:12px!important}
 #view .v93-summon-copy,#view .v93-summon-visual{padding:14px!important}
 #view .v93-summon-copy h1{font-size:30px!important}
 #view .v93-pack{min-height:105px!important}
 #view .v92-reward-grid{display:block!important}
 #view .v92-daily-board,#view .v92-missions-board{min-height:0!important;padding:13px!important}
 #view .v92-missions-board{margin-top:10px!important}
 #view .v93-day-grid.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #view .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 #view .v92-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 #view .v96-deck .game-card .card-name{font-size:10px!important}
 #view .v96-deck .game-card .card-type{font-size:8px!important}
 #view .v96-deck .game-card .card-stats{font-size:9px!important}
 #view .k27-deck-summary{gap:7px!important}
 #view .k27-deck-summary>div{padding:8px 10px!important}
 #view .k27-deck-summary strong{font-size:16px!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:10px!important}
 #view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stats{font-size:8px!important;padding:4px 1px!important}
}
@media(max-width:390px){
 #view .v92-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #view .v93-summon-packs{gap:6px!important}
 #view .v93-pack{padding:7px 3px!important}
 #view .v93-pack strong{font-size:11px!important}
 #view .v96-rewards .v92-missions-head{gap:5px!important}
}
@media(prefers-reduced-motion:reduce){
 #view .v90-button,#view .v93-pack,#view .v92-stage-card,#view .mk-hand-tile{transition:none!important}
}
/* Community and future PVP share the same material language. */
#view .hd-community-start,#view .hd-community-phone,#view .hd-pvp-lock{
  border-radius:17px!important;
  background:linear-gradient(155deg,rgba(24,38,54,.97),rgba(10,21,35,.97))!important;
  border:1px solid rgba(221,183,121,.48)!important;
  box-shadow:inset 0 1px 0 rgba(255,241,205,.13),0 24px 45px rgba(0,0,0,.26)!important;
}
#view .hd-community-start h2,#view .hd-pvp-lock h2{color:#f4dbad!important}
#view .hd-community-start p,#view .hd-pvp-lock p{color:#c8cbd0!important}
#view .hd-community-start-button,#view .hd-pvp-return{
  border-radius:10px!important;box-shadow:inset 0 1px 0 #fff9e44b,0 12px 22px #0003!important;
}
#view .hd-community-identity-field{border-radius:10px!important;color:#f1e8db!important;background:#0d1d2f!important}
#view .hd-community-identity-field:focus-within{border-color:#edc989!important}
#view .hd-pvp-art{border-radius:15px!important;overflow:hidden!important}
/* Do not animate every card during hover on low-end machines. */
@media(hover:none){#view .v92-stage-card,#view .v90-deck-slot .game-card,#view .mk-hand-tile{transition:none!important}}
/* Small screens: put the three battle fronts in sequence before the hand.
   The older sticky footer covered the third front; keep cards accessible. */
@media(max-width:760px){
 #view:has(.royal-battle){height:auto!important;min-height:calc(100dvh - 124px)!important;max-height:none!important;overflow:visible!important;padding:8px 8px 83px!important}
 #view>.royal-battle{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important}
 #view .royal-battle .mk-commanders{margin:0 0 5px!important;padding:6px!important;border-radius:10px!important}
 #view .royal-battle .mk-content.mk-content-minimal{display:block!important;padding:5px 1px 0!important;overflow:visible!important}
 #view .royal-battle .mk-teams-legend{margin:2px 0 6px!important}
 #view .royal-battle .mk-battlefield{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,110px)!important;gap:4px!important;padding:5px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 #view .royal-battle .mk-lane{display:grid!important;grid-template-columns:54px minmax(0,1fr) 16px minmax(0,1fr)!important;grid-template-rows:110px!important;min-height:110px!important;height:110px!important;max-height:110px!important;margin:0!important;border:1px solid rgba(212,172,112,.25)!important;border-radius:8px!important;overflow:hidden!important}
 #view .royal-battle .mk-lane-name{grid-column:1!important;grid-row:1!important;position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:3px!important;min-width:0!important;padding:3px 1px!important;transform:none!important}
 #view .royal-battle .mk-lane-icon{width:24px!important;height:24px!important;font-size:13px!important}
 #view .royal-battle .mk-lane-name strong{font-size:11px!important;line-height:1.3!important}
 #view .royal-battle .mk-lane-name small{font-size:7px!important;line-height:1.25!important;letter-spacing:0!important}
 #view .royal-battle .mk-lane-side.ally-side{grid-column:2!important;grid-row:1!important;position:relative!important;display:flex!important;flex-direction:column!important;gap:2px!important;padding:3px 2px!important;min-height:0!important}
 #view .royal-battle .mk-front-divider{grid-column:3!important;grid-row:1!important;display:flex!important}
 #view .royal-battle .mk-lane-side.enemy-side{grid-column:4!important;grid-row:1!important;position:relative!important;display:flex!important;flex-direction:column!important;gap:2px!important;padding:3px 2px!important;min-height:0!important}
 #view .royal-battle .mk-side-caption{font-size:8px!important;line-height:1!important;margin-bottom:2px!important}
 #view .royal-battle .mk-line-units{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-height:0!important;max-height:88px!important;padding:1px!important;flex:1 1 auto!important}
 #view .royal-battle .mk-unit.unit.v90-field-card{display:block!important;flex:0 1 44px!important;width:min(33%,44px)!important;min-width:20px!important;height:72px!important;min-height:72px!important;max-height:72px!important;overflow:hidden!important}
 #view .royal-battle.mk-battle-minimal .mk-unit .mk-unit-stats{font-size:7px!important;gap:1px!important;padding:3px 0!important}
 #view .royal-battle .mk-unit .mk-unit-stars{top:2px!important;left:2px!important;padding:1px 2px!important}
 #view .royal-battle .mk-unit .mk-unit-stars .k27-stage-stars i{font-size:6px!important}
 #view .royal-battle .mk-battle-footer{position:relative!important;bottom:auto!important;top:auto!important;inset:auto!important;z-index:2!important;margin:8px 0 10px!important;width:100%!important;max-width:none!important;box-shadow:0 9px 22px rgba(0,0,0,.34)!important;backdrop-filter:none!important}
 #view .royal-battle .mk-hand-cards{justify-content:flex-start!important;min-height:0!important}
}


/* ========= mobile_battle_lite.css (original load order) ========= */
/* MOBILE BATTLE LITE: three terrains in a single view, no heavy card tray. */
@media(max-width:820px){
 #view:has(.royal-battle){padding:0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
 #view>.royal-battle{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:3px 0 4px!important}
 #view .royal-battle .mk-commanders{min-height:66px!important;margin:2px 5px 3px!important;padding:3px 5px!important;border-radius:9px!important;gap:3px!important;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) 18px!important}
 #view .royal-battle .mk-commander{gap:4px!important}
 #view .royal-battle .mk-commander img{height:42px!important;width:34px!important;border-radius:5px!important}
 #view .royal-battle .mk-commander-copy>strong{font-size:10px!important}
 #view .royal-battle .mk-hp-label{font-size:8px!important;gap:2px!important}
 #view .royal-battle .mk-hp-track{height:5px!important}
 #view .royal-battle .mk-central-crest{min-height:50px!important}
 #view .royal-battle .mk-central-crest span,#view .royal-battle .mk-central-crest small{font-size:8px!important;letter-spacing:0!important}
 #view .royal-battle .mk-central-crest b{font-size:21px!important}
 #view .royal-battle .mk-retreat{width:18px!important;height:22px!important;font-size:13px!important}
 #view .royal-battle .mk-content.mk-content-minimal{display:block!important;padding:2px 5px 0!important;margin:0!important;width:100%!important;min-height:0!important;flex:0 0 auto!important}
 #view .royal-battle .mk-teams-legend{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:5px!important;margin:0 1px 3px!important;min-height:21px!important;font-size:9px!important}
 #view .royal-battle .mk-teams-legend .mk-field-instruction{display:none!important}
 #view .royal-battle .mk-battlefield{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(3,101px)!important;gap:4px!important;padding:4px!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;border-radius:10px!important;background:rgba(7,17,28,.9)!important}
 #view .royal-battle .mk-lane{display:grid!important;grid-template-columns:54px minmax(0,1fr) 15px minmax(0,1fr)!important;grid-template-rows:91px!important;grid-template-areas:'lane-name ally divider opponent'!important;min-height:0!important;height:96px!important;max-height:96px!important;margin:0!important;padding:2px!important;gap:2px!important;border:1px solid rgba(194,161,108,.24)!important;border-radius:8px!important;overflow:hidden!important;align-items:stretch!important}
 #view .royal-battle .mk-lane-name{grid-area:lane-name!important;grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:2px 0!important;background:rgba(8,19,29,.67)!important;border:0!important}
 #view .royal-battle .mk-lane-icon{width:26px!important;height:26px!important;font-size:14px!important}
 #view .royal-battle .mk-lane-name strong{font-size:11px!important;letter-spacing:0!important;line-height:1!important}
 #view .royal-battle .mk-lane-name .mk-terrain-label{font-size:7px!important;line-height:1.25!important;letter-spacing:0!important;text-align:center!important;display:block!important;margin:0!important}
 #view .royal-battle .mk-lane-side{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:2px!important;min-height:0!important;height:100%!important;max-height:none!important;padding:2px!important;border-radius:6px!important;overflow:hidden!important}
 #view .royal-battle .mk-lane-side.ally-side{grid-area:ally!important;grid-column:2!important;grid-row:1!important;border:1px solid rgba(102,189,231,.48)!important;border-left:2px solid #78c8ec!important;background:rgba(10,50,74,.78)!important}
 #view .royal-battle .mk-lane-side.enemy-side{grid-area:opponent!important;grid-column:4!important;grid-row:1!important;border:1px solid rgba(225,138,129,.43)!important;border-right:2px solid #d99082!important;border-left:0!important;background:rgba(68,26,37,.72)!important}
 #view .royal-battle .mk-front-divider{display:flex!important;grid-area:divider!important;grid-column:3!important;grid-row:1!important;align-self:center!important;justify-content:center!important;font-size:8px!important}
 #view .royal-battle .mk-front-divider::before{display:none!important}
 #view .royal-battle .mk-front-divider span{padding:3px 1px!important;background:none!important}
 #view .royal-battle .mk-side-caption{position:relative!important;top:auto!important;left:auto!important;right:auto!important;display:flex!important;flex:0 0 auto!important;height:14px!important;min-height:14px!important;margin:0!important;padding:0 2px!important;gap:2px!important;font-size:8px!important;line-height:14px!important;background:none!important;white-space:nowrap!important}
 #view .royal-battle .mk-side-caption small{font-size:7px!important}
 #view .royal-battle .mk-line-units{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:stretch!important;gap:2px!important;min-height:0!important;max-height:66px!important;height:66px!important;flex:1 1 auto!important;grid-template-columns:none!important;padding:0!important}
 #view .royal-battle .mk-unit.unit.v90-field-card{flex:1 1 0!important;width:0!important;max-width:none!important;min-width:0!important;height:65px!important;min-height:65px!important;max-height:65px!important;display:block!important;position:relative!important;grid-template-columns:none!important;grid-template-rows:none!important;padding:0!important;border-radius:4px!important;overflow:hidden!important}
 #view .royal-battle .mk-unit .mk-unit-image{position:absolute!important;inset:0!important;background-size:cover!important;background-position:center 20%!important;display:block!important;width:100%!important;height:100%!important;filter:none!important;grid-column:auto!important;grid-row:auto!important}
 #view .royal-battle .mk-unit .mk-unit-stars{display:none!important}
 #view .royal-battle .mk-unit .mk-unit-stats{position:absolute!important;bottom:0!important;left:0!important;right:0!important;z-index:3!important;display:flex!important;justify-content:center!important;gap:3px!important;padding:3px 0 2px!important;font:700 8px/1.1 Georgia,serif!important;background:rgba(5,10,18,.84)!important;grid-column:auto!important;grid-row:auto!important}
 #view .royal-battle .mk-battle-footer{position:relative!important;bottom:auto!important;z-index:2!important;width:calc(100% - 10px)!important;margin:4px auto 3px!important;padding:5px!important;min-height:0!important;border-radius:9px!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 5px 16px rgba(0,0,0,.4)!important;flex:0 0 auto!important}
 #view .royal-battle .mk-hand-heading{height:14px!important;min-height:14px!important;font-size:9px!important}
 #view .royal-battle .mk-hand-heading b{font-size:10px!important}
 #view .royal-battle .mk-hand-cards{height:82px!important;min-height:82px!important;max-height:82px!important;display:flex!important;gap:5px!important;margin:2px 0!important;padding:2px!important;justify-content:flex-start!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{flex:0 0 67px!important;width:67px!important;min-width:67px!important;height:76px!important;min-height:76px!important;max-height:76px!important;border-radius:6px!important;box-shadow:none!important;scroll-snap-align:center!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-stars{top:auto!important;bottom:23px!important;left:50%!important;transform:translateX(-50%)!important;border:0!important;background:rgba(4,10,17,.65)!important;padding:1px 3px!important;gap:0!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-stars .k27-stage-stars i{font-size:7px!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-cost{width:20px!important;height:20px!important;min-width:20px!important;top:3px!important;right:3px!important;padding:0!important;font-size:11px!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-name{bottom:3px!important;left:2px!important;right:2px!important;font-size:9px!important;line-height:1.1!important;max-height:20px!important}
 #view .royal-battle .mk-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr 1.15fr!important;align-items:stretch!important;gap:4px!important;margin-top:2px!important;padding-top:4px!important;min-height:0!important;flex-wrap:nowrap!important}
 #view .royal-battle .mk-command-meter{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:1px!important;border-radius:5px!important}
 #view .royal-battle .mk-command-meter>span{font-size:8px!important;line-height:1.1!important}
 #view .royal-battle .mk-command-meter>strong{font-size:14px!important;line-height:1.15!important}
 #view .royal-battle .mk-command-meter>strong small{font-size:8px!important}
 #view .royal-battle .mk-command-meter>em{display:none!important}
 #view .royal-battle .mk-action,#view .royal-battle .mk-turn{min-height:36px!important;height:36px!important;padding:2px!important;border-radius:5px!important;line-height:1.15!important;font-size:9px!important;white-space:normal!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important}
 #view .royal-battle .mk-action>span{display:none!important}
 #view .royal-battle .mk-action small,#view .royal-battle .mk-turn strong{display:none!important}
}
@media(max-width:360px){#view .royal-battle .mk-lane{grid-template-columns:48px minmax(0,1fr) 12px minmax(0,1fr)!important}#view .royal-battle .mk-hand-cards .mk-hand-tile{flex-basis:61px!important;width:61px!important;min-width:61px!important}}
@media(max-width:820px){
 #view .royal-battle .mk-command-meter{grid-column:auto!important;grid-row:auto!important;width:auto!important;max-width:100%!important}
 #view .royal-battle .mk-actions>*{grid-column:auto!important;grid-row:auto!important}
}
/* Short phones: the terrain is always shown before the hand controls. */
@media(max-width:820px) and (max-height:750px){
 #view .royal-battle .mk-battlefield{grid-template-rows:repeat(3,87px)!important;gap:3px!important;padding:3px!important}
 #view .royal-battle .mk-lane{height:83px!important;max-height:83px!important;grid-template-rows:78px!important}
 #view .royal-battle .mk-line-units{height:53px!important;max-height:53px!important}
 #view .royal-battle .mk-unit.unit.v90-field-card{height:52px!important;min-height:52px!important;max-height:52px!important}
 #view .royal-battle .mk-hand-cards{height:72px!important;min-height:72px!important;max-height:72px!important}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{height:66px!important;min-height:66px!important;max-height:66px!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-stars{bottom:20px!important}
 #view .royal-battle .mk-teams-legend{min-height:20px!important;margin-bottom:1px!important}
 #view .royal-battle .mk-battle-footer{margin-top:2px!important}
}


/* ========= mobile_ui_balance.css (original load order) ========= */
/* Mobile UI balance: normal-size battle text, compact deck and rewards. */
@media(max-width:820px){
 /* Make the battle readable without expanding the board. */
 #view .royal-battle .mk-commanders{min-height:74px!important;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) 24px!important;gap:5px!important}
 #view .royal-battle .mk-commander img{width:38px!important;height:48px!important}
 #view .royal-battle .mk-commander-copy>strong{font-size:12px!important}
 #view .royal-battle .mk-hp-label{font-size:10px!important}
 #view .royal-battle .mk-central-crest b{font-size:25px!important}
 #view .royal-battle .mk-central-crest span,#view .royal-battle .mk-central-crest small{font-size:9px!important}
 #view .royal-battle .mk-retreat{width:23px!important;height:25px!important}
 #view .royal-battle .mk-lane-icon{width:28px!important;height:28px!important;font-size:15px!important}
 #view .royal-battle .mk-lane-name strong{font-size:12px!important}
 #view .royal-battle .mk-lane-name .mk-terrain-label{font-size:9px!important}
 #view .royal-battle .mk-side-caption{font-size:10px!important}
 #view .royal-battle .mk-side-caption small{font-size:9px!important}
 #view .royal-battle .mk-unit .mk-unit-stats{font-size:10px!important}
 #view .royal-battle .mk-hand-heading,#view .royal-battle .mk-hand-heading b{font-size:11px!important}
 #view .royal-battle .mk-hand-cards{height:91px!important;min-height:91px!important;max-height:91px!important}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{flex-basis:74px!important;width:74px!important;min-width:74px!important;height:84px!important;min-height:84px!important;max-height:84px!important}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:10px!important}
 #view .royal-battle .mk-actions .mk-command-meter>span{font-size:10px!important}
 #view .royal-battle .mk-actions .mk-action,#view .royal-battle .mk-actions .mk-turn{font-size:11px!important;min-height:40px!important;height:40px!important}
 #view .royal-battle .mk-actions .mk-command-meter{height:40px!important;min-height:40px!important}
 /* Clear hierarchy above the deck collection; cards roughly 30% shorter. */
 #view .v96-deck .v92-deck-shell{padding-top:12px!important;gap:10px!important}
 #view .v96-deck .v92-deck-head{gap:10px!important;margin-bottom:2px!important}
 #view .v96-deck .v92-deck-head h1{font-size:23px!important;line-height:1.2!important;margin:3px 0!important}
 #view .v96-deck .v92-deck-head-actions{gap:8px!important}
 #view .v96-deck .v92-deck-head-actions button{min-height:38px!important;font-size:11px!important}
 #view .v96-deck .v96-tabbar{margin:2px 0 3px!important}
 #view .v96-deck .v92-collection-shell{padding:11px!important;min-width:0!important}
 #view .v96-deck .v92-collection-top{gap:7px!important}
 #view .v96-deck .v92-collection-top h3{font-size:18px!important}
 #view .v96-deck .v90-filterbar{gap:5px!important;margin:8px 0!important}
 #view .v96-deck .v90-filterbar button{padding:5px 8px!important;font-size:10px!important;min-height:30px!important}
 #view .v96-deck .v92-collection-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 #view .v96-deck .v92-collection-grid .game-card{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;aspect-ratio:auto!important;height:160px!important;min-height:160px!important;max-height:160px!important;overflow:hidden!important}
 #view .v96-deck .v92-collection-grid .game-card .card-art{height:57%!important;min-height:0!important;background-size:cover!important;background-position:center 17%!important}
 #view .v96-deck .v92-collection-grid .game-card .card-info{font-size:10px!important}
 #view .v96-deck .v92-collection-grid .game-card .card-name{font-size:11px!important;line-height:1.15!important}
 #view .v96-deck .v92-collection-grid .game-card .card-stats{font-size:10px!important}
 #view .v96-deck .v92-collection-grid .owned-count{font-size:9px!important}
 #view .v96-deck .v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 #view .v96-deck .v90-deck-slot{min-height:160px!important;max-height:160px!important;overflow:hidden!important}
 #view .v96-deck .v90-deck-slot .game-card{height:160px!important;min-height:160px!important;max-height:160px!important;aspect-ratio:auto!important}
 /* Daily attendance: 3 concise, legible image cards per row. */
 #view .v96-rewards .v92-reward-head{padding-top:12px!important;padding-bottom:12px!important;margin-bottom:9px!important}
 #view .v96-rewards .v92-reward-head h1{font-size:25px!important}
 #view .v96-rewards .v92-reward-grid{margin-top:8px!important}
 #view .v96-rewards .v92-daily-board{padding:13px 11px!important}
 #view .v96-rewards .v93-day-grid.is-compact,#view .v96-rewards .v93-day-grid.is-expanded{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 #view .v96-rewards .v93-day-grid .v93-day-card.k26-day,#view .v96-rewards .v93-day-grid .v93-day-card.legend{aspect-ratio:auto!important;height:124px!important;min-height:124px!important;max-height:124px!important;grid-column:auto!important;border-radius:9px!important}
 #view .v96-rewards .k26-day-content{left:6px!important;right:6px!important;bottom:14px!important;gap:2px!important}
 #view .v96-rewards .k26-day-content strong{font-size:11px!important;line-height:1.2!important}
 #view .v96-rewards .k26-day-content span{font-size:9px!important;line-height:1.2!important}
 #view .v96-rewards .v93-day-badge{font-size:9px!important}
 #view .v96-rewards .v93-day-state{font-size:9px!important}
 #view .v96-rewards .v92-mission-card{min-height:76px!important;padding:9px!important}
 #view .v96-rewards .v92-mission-top strong{font-size:14px!important}
 /* Tutorial is visible but does not block the single highlighted target. */
 .tour-panel{max-height:min(38dvh,240px)!important;overflow-y:auto}
}
@media(max-width:375px){
 #view .v96-deck .v92-collection-grid .game-card{height:150px!important;min-height:150px!important;max-height:150px!important}
 #view .v96-rewards .v93-day-grid .v93-day-card.k26-day{height:112px!important;min-height:112px!important;max-height:112px!important}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{flex-basis:68px!important;width:68px!important;min-width:68px!important}
}
@media(max-width:820px) and (max-height:750px){
 #view .royal-battle .mk-hand-cards{height:76px!important;min-height:76px!important;max-height:76px!important}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{height:70px!important;min-height:70px!important;max-height:70px!important}
 #view .royal-battle .mk-commanders{min-height:66px!important}
}
@media(max-width:820px){
 #view .v96-rewards .k26-day-content{bottom:32px!important}
 #view .v96-rewards .v93-day-state{position:absolute!important;bottom:5px!important;top:auto!important;right:5px!important;padding:2px 5px!important;font-size:9px!important;line-height:1.1!important;background:rgba(8,17,27,.88)!important;border:1px solid rgba(221,190,137,.38)!important;border-radius:4px!important}
 /* Translate-chat demo should be legible on a real phone. */
 #view .hd-community-page .hd-community-header h1{font-size:27px!important}
 #view .hd-community-page .hd-community-header p{font-size:13px!important}
 #view .hd-community-page .hd-community-header>small{font-size:11px!important}
 #view .hd-community-page .hd-community-phone-top strong{font-size:12px!important}
 #view .hd-community-page .hd-community-phone-top small{font-size:10px!important}
 #view .hd-community-page .hd-community-bubble{font-size:12px!important;line-height:1.5!important;padding:9px!important}
 #view .hd-community-page .hd-community-bubble small{font-size:10px!important}
 #view .hd-community-page .hd-community-narration p{font-size:12px!important;line-height:1.5!important}
 #view .hd-community-page .hd-community-controls button{font-size:11px!important;min-height:36px!important}
}
@media(max-width:360px){
 #view .hd-community-page .hd-community-bubble{font-size:11px!important;padding:7px!important}
 #view .hd-community-page .hd-community-phone-top strong{font-size:11px!important}
}


/* ========= royal_typography_finish.css (original load order) ========= */
/*
 * THE MILLENNIAL KINGDOM · Royal Soft Typography / Final presentation layer
 * Only type, surfaces and tiny visual details. No grid, sizing, navigation,
 * combat, reward, save or tutorial behavior is altered.
 * Uses device-installed fonts only: the offline game never fetches web fonts.
 */
:root {
  --kingdom-round: "NanumSquareRound", "나눔스퀘어라운드", "Arial Rounded MT Bold", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", system-ui, sans-serif;
  --kingdom-text: "NanumBarunGothic", "나눔바른고딕", "Pretendard", "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", system-ui, sans-serif;
  --kingdom-royal: "Noto Serif CJK KR", "Noto Serif KR", "Nanum Myeongjo", "나눔명조", "Batang", "바탕", Georgia, serif;
  --kingdom-numeral: "Trebuchet MS", "Segoe UI", Georgia, sans-serif;
  --body: var(--kingdom-text);
  --display: var(--kingdom-royal);
  --serif: var(--kingdom-royal);
  --kingdom-gold-ivory: #fbe9c9;
  --kingdom-muted-warm: #c7c5bf;
}
html, body { font-family:var(--kingdom-text)!important; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; font-synthesis:none; }
button, input, textarea, select { font-family:var(--kingdom-round)!important; -webkit-font-smoothing:antialiased; }
/* Headlines: the atmosphere of an illustrated history book, without cold hairline text. */
#view :is(.v90-screen,.hd-community-page) :is(h1,h2,h3),
#overlays :is(.modal-title,.v90-settings h2,.k26-receipt h2,.mk-result-royal-title),
#kingdom-confirm-layer .kingdom-confirm-dialog h2 {
  font-family:var(--kingdom-round)!important;
  font-weight:750!important;
  letter-spacing:-.042em!important;
  text-shadow:0 2px 13px rgba(0,0,0,.36);
  word-break:keep-all;
}
/* A few ceremonial titles retain a softer, real editorial serif. */
#view :is(.v91-home-intro h1,.v92-exp-copy h1,.v93-summon-copy h1),
#overlays .mk-result-royal-title,
.sidebar .brand-type,
#view .hd-community-page .hd-community-header h1 {
  font-family:var(--kingdom-royal)!important;
  font-weight:700!important;
  letter-spacing:-.052em!important;
  color:var(--kingdom-gold-ivory)!important;
  text-shadow:0 2px 14px rgba(0,0,0,.52), 0 0 22px rgba(226,180,107,.09);
}
/* The in-game brand and top controls feel hand-crafted rather than technical. */
.sidebar .brand-type{line-height:1.27!important}
.sidebar .brand-type small,.sidebar .sidebar-caption,.sidebar .sidebar-motto,
#view .v90-kicker, #view .v90-screen .v90-kicker,
#view .v91-next-copy small,
#overlays .k26-receipt-kicker,
#overlays .v90-settings .v90-kicker {
  font-family:var(--kingdom-numeral)!important;
  font-weight:700!important;
  letter-spacing:.135em!important;
}
.topbar .crumb,#top-crumb {font-family:var(--kingdom-round)!important;font-weight:700!important;letter-spacing:-.025em!important;color:#e3d6c1!important}
.topbar .currency strong,#gold-count,#gem-count{font-family:var(--kingdom-numeral)!important;font-variant-numeric:tabular-nums;font-weight:750!important;letter-spacing:-.015em!important}
.topbar .currency,.topbar .icon-button{box-shadow:inset 0 1px 0 rgba(254,229,186,.09),0 2px 9px rgba(0,0,0,.21)!important}
#main-nav .nav-btn,.bottom-nav .bottom-tab,.bottom-nav button,
#view :is(.v96-tabbar,.v90-filterbar,.v92-deck-head-actions,.v92-daily-actions) button {
  font-family:var(--kingdom-round)!important;
  font-weight:750!important;
  letter-spacing:-.032em!important;
}
#main-nav .nav-btn.active,.bottom-nav button.active,.bottom-nav .bottom-tab.active{color:#ffe3af!important;text-shadow:0 0 13px rgba(240,200,125,.15)}
/* All primary game text: warm cream, calm muted gold, consistent readable spacing. */
#view .v90-screen p, #view .v90-screen li,
#view .hd-community-page p,
#overlays .modal p,
#kingdom-confirm-layer p {
  font-family:var(--kingdom-text)!important;
  letter-spacing:-.02em!important;
  line-height:1.62!important;
  word-break:keep-all;
}
#view .v90-button,#view .v93-pack,
#view :is(.v92-stage-card,.v91-next-stage,.v91-shortcuts) button,
#overlays .btn,
#overlays .k26-receipt-confirm,
#kingdom-confirm-layer button {
  font-family:var(--kingdom-round)!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  text-shadow:none!important;
}
#view :is(.v90-button.gold,.v93-pack.featured),#overlays :is(.btn.primary,.k26-receipt-confirm){
  background-image:linear-gradient(150deg,#f5deaf 0%,#d8af71 49%,#c69a60 100%)!important;
  color:#251c13!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.46),inset 0 -1px 0 rgba(97,65,33,.27),0 3px 11px rgba(0,0,0,.20)!important;
}
#view .v93-pack.featured{color:#1e1b18!important}
#view .v93-pack.featured :is(strong,small,em){color:inherit!important}
/* Cards: warm names and delicate numerals. Do not affect card dimensions. */
#view .game-card :is(.card-name,.card-type),
#overlays .game-card :is(.card-name,.card-type),
#view .mk-hand-tile-name, #view .mk-unit-stats,
#view .v93-day-card :is(.k26-day-content strong,.v93-day-badge),
#view .v92-stage-card strong {
  font-family:var(--kingdom-round)!important;
  letter-spacing:-.055em!important;
  font-weight:750!important;
}
#view .game-card .card-name, #overlays .game-card .card-name {
  color:#ffe7c3!important;
  line-height:1.25!important;
  text-shadow:0 1px 4px rgba(0,0,0,.55);
}
#view .game-card :is(.card-stats,.card-cost,.owned-count),
#view .royal-battle :is(.mk-hand-tile-cost,.mk-unit-stats),
#view .v93-day-badge,
#overlays .k26-receipt-item strong {
  font-family:var(--kingdom-numeral)!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:-.02em!important;
}
#view .v96-deck .game-card .card-type{color:#cfcbbe!important;font-weight:600!important}
#view .v96-deck .game-card .owned-count{color:#e5c899!important}
#view .v96-deck .game-card .k27-upgrade-chip {font-family:var(--kingdom-round)!important;letter-spacing:-.04em!important;font-weight:800!important}
/* Quests and daily rewards: slightly warmer, more celebratory typography. */
#view .v96-rewards :is(.v92-reward-head h1,.v96-board-title h2,.v92-missions-head h3),
#view .v96-deck :is(.v92-deck-head h1,.v92-collection-top h3) {
  color:#ffe3b2!important;
  text-shadow:0 2px 12px rgba(0,0,0,.4);
}
#view .v96-rewards .v92-mission-top strong{font-family:var(--kingdom-round)!important;font-weight:750!important;letter-spacing:-.025em!important}
#view .v96-rewards :is(.k26-day-content strong,.k26-record-title){font-family:var(--kingdom-round)!important;font-weight:750!important;letter-spacing:-.035em!important}
#view .v96-rewards .v92-mission-bottom button,
#view .v96-rewards .v92-daily-actions button{font-family:var(--kingdom-round)!important;font-weight:800!important;letter-spacing:-.025em!important}
#view .v96-rewards .k26-day-content span{letter-spacing:-.02em!important}
/* Battle text gets softness but no geometry changes: critical for mobile performance. */
#view .royal-battle :is(.mk-commander-copy>strong,.mk-lane-name strong,.mk-hand-heading b,.mk-hand-tile-name,.mk-side-caption,.mk-actions button){font-family:var(--kingdom-round)!important;font-weight:750!important;letter-spacing:-.034em!important}
#view .royal-battle .mk-central-crest b{font-family:var(--kingdom-numeral)!important;font-weight:700!important}
#view .royal-battle .mk-hp-label{font-family:var(--kingdom-numeral)!important;font-variant-numeric:tabular-nums!important}
#view .royal-battle .mk-unit .mk-unit-stats{font-weight:800!important;text-shadow:0 1px 3px #000}
#view .royal-battle .mk-hand-tile-name{color:#fff0d7!important;text-shadow:0 1px 3px #02060c,0 2px 8px #02060c}
/* Chat bubble + notices: friendly, not childish. */
#view .hd-community-page :is(.hd-community-phone-top strong,.hd-community-bubble,.hd-community-narration strong,.hd-community-controls button),
#view .hd-community-page .hd-community-header p{font-family:var(--kingdom-round)!important;letter-spacing:-.028em!important}
#view .hd-community-page .hd-community-bubble{line-height:1.54!important;font-weight:550!important}
#view .hd-community-page .hd-community-controls button{font-weight:750!important}
/* Rewards popups, achievement popups, settings and tutorial: consistent warm type. */
#overlays .k26-receipt-premium h2,#overlays .v90-settings h2,#kingdom-confirm-layer h2 {
  font-family:var(--kingdom-round)!important;
  font-weight:800!important;
  color:#fff0d3!important;
}
#overlays .k26-receipt-premium .k26-receipt-item small,
#overlays .k26-receipt-note,#overlays .k26-receipt-subtitle,
#kingdom-confirm-layer .kingdom-confirm-dialog p {font-family:var(--kingdom-text)!important;letter-spacing:-.018em!important}
.tour-panel :is(h3,.tour-panel-foot,.tour-panel-top),.tour-wait,
.tour-battle-ribbon,.tour-pointer{font-family:var(--kingdom-round)!important;letter-spacing:-.028em!important}
.tour-panel h3{font-weight:800!important;color:#ffe3b4!important}
.tour-panel p{font-family:var(--kingdom-text)!important;font-weight:500!important;letter-spacing:-.02em!important;line-height:1.6!important}
/* Better text contrast at the scale already selected in the mobile balance release. */
@media(max-width:820px){
  .topbar .crumb{font-size:12px!important}
  .bottom-nav :is(button,.bottom-tab){font-weight:750!important;letter-spacing:-.03em!important}
  #view .v96-deck .v92-collection-grid .game-card .card-name{font-size:11px!important;line-height:1.24!important}
  #view .v96-deck .v92-collection-grid .game-card .card-type{font-size:9px!important;line-height:1.24!important}
  #view .v96-rewards .k26-day-content strong{font-size:11px!important;line-height:1.28!important}
  #view .v96-rewards .k26-day-content span{font-size:9px!important;line-height:1.24!important}
  #view .royal-battle .mk-hand-tile-name{font-size:10px!important;line-height:1.22!important}
  #view .royal-battle .mk-unit-stats{font-size:10px!important}
  .tour-panel h3{line-height:1.34!important}
}
@media(prefers-reduced-motion:reduce){
  #view .game-card, #view .v90-button, #view .v93-pack,
  #overlays .btn{transition:none!important}
}


/* ========= battle_terrain_premium.css (original load order) ========= */
/* Royal Terrain · 2026-10: compact, readable three-unit lanes for phones.
   Uses existing terrain art; no images, shaders or new JS watchers are loaded. */
@media (max-width:820px){
  #view .royal-battle .mk-battlefield{
    grid-template-rows:repeat(3,145px)!important;
    gap:7px!important;
    padding:6px!important;
    background:linear-gradient(170deg,#08111c,#060c14)!important;
    border:1px solid rgba(218,185,124,.48)!important;
  }
  #view .royal-battle .mk-lane{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 27px minmax(0,1fr)!important;
    grid-template-rows:137px!important;
    grid-template-areas:'ally divider opponent'!important;
    gap:2px!important;
    height:138px!important;max-height:138px!important;
    padding:3px!important;
    border:1px solid rgba(224,194,137,.35)!important;
    border-radius:11px!important;
    position:relative!important;
    isolation:isolate!important;
    background-image:linear-gradient(90deg,rgba(4,16,28,.57) 0%,rgba(5,11,19,.22) 50%,rgba(34,10,13,.57) 100%),var(--mk-lane-image)!important;
    background-size:cover!important;
    background-position:center 46%!important;
    box-shadow:inset 0 0 0 1px rgba(249,209,151,.08),0 4px 10px rgba(0,0,0,.3)!important;
  }
  #view .royal-battle .mk-lane[data-lane="0"]{background-position:center 38%!important}
  #view .royal-battle .mk-lane[data-lane="1"]{background-position:center 58%!important}
  #view .royal-battle .mk-lane[data-lane="2"]{background-position:center 45%!important}
  #view .royal-battle .mk-lane:after{pointer-events:none;background:linear-gradient(180deg,rgba(5,13,23,.12),rgba(5,12,20,.36))!important}
  #view .royal-battle .mk-lane-glaze{display:none!important}
  /* Terrain name remains screen-reader accessible but occupies no column. */
  #view .royal-battle .mk-lane-name{
    position:absolute!important;
    left:calc(50% - 13px)!important;top:9px!important;
    z-index:7!important;
    width:26px!important;height:30px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;border:0!important;background:transparent!important;
    pointer-events:none!important;
    transform:none!important;
  }
  #view .royal-battle .mk-lane-icon{
    width:25px!important;height:25px!important;
    border:1px solid rgba(234,201,143,.82)!important;
    border-radius:50%!important;
    background:radial-gradient(circle at 32% 20%,#37516b,#0c1b2b 73%)!important;
    color:#f6daa4!important;
    box-shadow:0 2px 6px rgba(0,0,0,.65),inset 0 0 0 2px rgba(7,12,20,.75)!important;
    font-size:13px!important;
  }
  #view .royal-battle .mk-lane[data-lane="1"] .mk-lane-icon{background:radial-gradient(circle at 32% 20%,#625341,#20190f 73%)!important}
  #view .royal-battle .mk-lane[data-lane="2"] .mk-lane-icon{background:radial-gradient(circle at 32% 20%,#455548,#132217 73%)!important}
  #view .royal-battle .mk-lane-name strong,
  #view .royal-battle .mk-lane-name .mk-terrain-label,
  #view .royal-battle .mk-lane-name .mk-terrain-picked{display:none!important}
  #view .royal-battle .mk-front-divider{
    grid-area:divider!important;grid-column:2!important;grid-row:1!important;
    position:relative!important;display:flex!important;
    flex-direction:column!important;justify-content:flex-end!important;
    align-items:center!important;padding:0 0 17px!important;
    font-size:9px!important;z-index:5!important;color:rgba(240,201,138,.78)!important;
  }
  #view .royal-battle .mk-front-divider span{font-size:8px!important;padding:0!important;text-shadow:0 1px 5px #05080b}
  #view .royal-battle .mk-lane-side{height:100%!important;min-height:0!important;max-height:none!important;padding:5px 3px!important;gap:5px!important;border-radius:8px!important;justify-content:flex-start!important;overflow:hidden!important;}
  #view .royal-battle .mk-lane-side.ally-side{
    grid-area:ally!important;grid-column:1!important;grid-row:1!important;
    background:linear-gradient(180deg,rgba(9,36,57,.42),rgba(6,29,49,.68))!important;
    border:1px solid rgba(100,188,226,.56)!important;
    box-shadow:inset 0 1px 0 rgba(149,213,234,.13)!important;
  }
  #view .royal-battle .mk-lane-side.enemy-side{
    grid-area:opponent!important;grid-column:3!important;grid-row:1!important;
    background:linear-gradient(180deg,rgba(59,21,32,.46),rgba(48,18,26,.7))!important;
    border:1px solid rgba(221,138,124,.57)!important;
    box-shadow:inset 0 1px 0 rgba(246,187,170,.1)!important;
  }
  #view .royal-battle .mk-side-caption{
    height:16px!important;min-height:16px!important;line-height:16px!important;
    font-size:10px!important;letter-spacing:.03em!important;
    padding:0 3px!important;margin:0!important;
    justify-content:space-between!important;color:#d9eaf7!important;
  }
  #view .royal-battle .enemy-side .mk-side-caption{color:#f3d0c5!important}
  #view .royal-battle .mk-side-caption small{font-size:9px!important}
  #view .royal-battle .mk-line-units{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:minmax(0,1fr)!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    width:100%!important;
    height:104px!important;max-height:104px!important;
    min-height:104px!important;
    gap:3px!important;
    flex:0 0 104px!important;
    overflow:hidden!important;
  }
  #view .royal-battle .mk-unit.unit.v90-field-card{
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:103px!important;min-height:103px!important;max-height:103px!important;
    flex:none!important;
    margin:0!important;
    border:1px solid rgba(229,189,123,.63)!important;
    border-radius:6px!important;
    box-shadow:0 3px 8px rgba(0,0,0,.46),inset 0 0 0 1px rgba(11,14,20,.9)!important;
  }
  #view .royal-battle .mk-unit.enemy-unit{border-color:rgba(234,150,138,.68)!important}
  #view .royal-battle .mk-unit .mk-unit-image{
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;
    background-size:cover!important;
    background-position:50% 23%!important;
  }
  #view .royal-battle .mk-unit .mk-unit-stats{
    position:absolute!important;bottom:0!important;left:0!important;right:0!important;
    z-index:3!important;
    padding:5px 1px!important;
    font-size:10px!important;line-height:1.08!important;
    gap:5px!important;
    background:linear-gradient(180deg,rgba(5,10,18,.1),rgba(5,9,15,.98))!important;
  }
  #view .royal-battle .mk-unit .mk-unit-stats b{white-space:nowrap!important}
  #view .royal-battle .mk-lane.mk-targetable .mk-lane-side.ally-side{border-color:#f1d198!important;box-shadow:inset 0 0 0 1px #f1d19845!important}
  /* Hands get a touch more room but remain below all three rows. */
  #view .royal-battle .mk-battle-footer{margin-top:7px!important;padding:7px!important}
  #view .royal-battle .mk-hand-cards{height:102px!important;min-height:102px!important;max-height:102px!important;gap:7px!important}
  #view .royal-battle .mk-hand-cards .mk-hand-tile{
    height:95px!important;min-height:95px!important;max-height:95px!important;
    width:79px!important;min-width:79px!important;flex:0 0 79px!important;
    border-radius:7px!important;
  }
  #view .royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:10px!important}
  #view .royal-battle .mk-hand-tile .mk-hand-tile-stars{bottom:25px!important}
}
/* Low-cost premium summon: the actual card itself fades/slides into place.
   Animates transform/opacity only; no particles, clone nodes or filters. */
@keyframes royalTerrainSummon{0%{opacity:.12;transform:translateY(13px) scale(.85)}55%{opacity:1;transform:translateY(-3px) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:no-preference){
  #view .royal-battle .mk-unit.summoned,
  body[data-fx-quality="low"] #view .royal-battle .mk-unit.summoned{
    animation:royalTerrainSummon .43s cubic-bezier(.2,.75,.3,1) both!important;
  }
}
@media(max-width:820px) and (max-height:900px){
  #view .royal-battle .mk-battlefield{grid-template-rows:repeat(3,122px)!important;gap:5px!important;padding:5px!important}
  #view .royal-battle .mk-lane{grid-template-rows:115px!important;height:116px!important;max-height:116px!important}
  #view .royal-battle .mk-lane-side{padding:4px 3px!important;gap:3px!important}
  #view .royal-battle .mk-line-units{height:88px!important;min-height:88px!important;max-height:88px!important;flex-basis:88px!important}
  #view .royal-battle .mk-unit.unit.v90-field-card{height:87px!important;min-height:87px!important;max-height:87px!important}
  #view .royal-battle .mk-unit .mk-unit-stats{font-size:9px!important;padding:4px 1px!important;gap:3px!important}
  #view .royal-battle .mk-battle-footer{margin-top:5px!important}
  #view .royal-battle .mk-hand-cards{height:87px!important;min-height:87px!important;max-height:87px!important}
  #view .royal-battle .mk-hand-cards .mk-hand-tile{height:76px!important;min-height:76px!important;max-height:76px!important}
}
@media(max-width:820px) and (max-height:800px){
  #view .royal-battle .mk-battlefield{grid-template-rows:repeat(3,110px)!important;gap:4px!important;padding:4px!important}
  #view .royal-battle .mk-lane{grid-template-rows:103px!important;height:104px!important;max-height:104px!important}
  #view .royal-battle .mk-lane-side{padding:3px 2px!important}
  #view .royal-battle .mk-line-units{height:77px!important;min-height:77px!important;max-height:77px!important;flex-basis:77px!important}
  #view .royal-battle .mk-unit.unit.v90-field-card{height:76px!important;min-height:76px!important;max-height:76px!important}
  #view .royal-battle .mk-hand-cards{height:74px!important;min-height:74px!important;max-height:74px!important}
  #view .royal-battle .mk-hand-cards .mk-hand-tile{height:69px!important;min-height:69px!important;max-height:69px!important}
}
@media(max-width:820px) and (max-height:750px){
  #view .royal-battle .mk-battlefield{grid-template-rows:repeat(3,119px)!important;gap:5px!important;padding:4px!important}
  #view .royal-battle .mk-lane{grid-template-rows:111px!important;height:112px!important;max-height:112px!important;padding:2px!important}
  #view .royal-battle .mk-lane-side{padding:3px 2px!important;gap:3px!important}
  #view .royal-battle .mk-line-units{height:84px!important;min-height:84px!important;max-height:84px!important;flex-basis:84px!important;gap:2px!important}
  #view .royal-battle .mk-unit.unit.v90-field-card{height:83px!important;min-height:83px!important;max-height:83px!important}
  #view .royal-battle .mk-unit .mk-unit-stats{font-size:9px!important;padding:3px 0!important;gap:3px!important}
  #view .royal-battle .mk-hand-cards{height:86px!important;min-height:86px!important;max-height:86px!important}
  #view .royal-battle .mk-hand-cards .mk-hand-tile{height:69px!important;min-height:69px!important;max-height:69px!important}
}
@media(max-width:375px){
  #view .royal-battle .mk-lane{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;gap:1px!important}
  #view .royal-battle .mk-line-units{gap:2px!important}
  #view .royal-battle .mk-unit .mk-unit-stats{font-size:9px!important;gap:2px!important}
  #view .royal-battle .mk-hand-cards .mk-hand-tile{width:74px!important;min-width:74px!important;flex-basis:74px!important}
}
@media(prefers-reduced-motion:reduce){
  #view .royal-battle .mk-unit.summoned{animation:none!important}
}


/* ========= royal_cinematic_fx.css (original load order) ========= */
/* ROYAL CINEMATIC EDITION — layered graphics; game structure is unchanged */
:root{--rc-gold:#ffdf9b;--rc-cream:#fff2d9;--rc-ice:#94d8ff;--rc-amethyst:#c9a2ff;--rc-ruby:#ed8d94}
/* Background treatment and immersive stage */
.ritual-scene:not(.finished){isolation:isolate;background:radial-gradient(ellipse at 50% 43%,#5f421e55,transparent 48%),radial-gradient(ellipse at 18% 80%,#1b3e504b,transparent 56%),linear-gradient(160deg,#070b12,#15202d 50%,#050911)!important}
.ritual-scene:not(.finished):before{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:repeating-conic-gradient(from 12deg at center,rgba(255,220,155,.065) 0deg,transparent 16deg,transparent 33deg);mask-image:radial-gradient(circle at 50% 47%,black,transparent 66%);animation:rcSceneWheel 30s linear infinite}
@keyframes rcSceneWheel{to{transform:rotate(360deg)}}
.ritual-scene.rc-ritual-is-playing>.ritual-center{filter:brightness(.45) saturate(.7)!important;transform:scale(.82)!important;opacity:.25!important;transition:opacity .6s,filter .8s,transform .8s}
.ritual-scene.rc-ritual-is-playing>.ritual-stage-text{opacity:.2;pointer-events:none}
.ritual-scene:not(.finished) .ritual-rewards{opacity:0!important;transform:translateY(15px) scale(.92)!important;pointer-events:none!important}
.rc-ritual-cinema{position:fixed;inset:0;z-index:190;display:grid;place-items:center;pointer-events:none;opacity:0;transform:translateZ(0)}
.ritual-scene.rc-ritual-is-playing .rc-ritual-cinema{opacity:1;animation:rcCinemaIn .5s ease-out both}
@keyframes rcCinemaIn{from{opacity:0}to{opacity:1}}
.rc-ritual-rays{position:absolute;inset:-50%;opacity:.55;pointer-events:none;background:repeating-conic-gradient(from 0deg,transparent 0deg,rgba(244,201,125,.082) 8deg,transparent 15deg,transparent 32deg);mask-image:radial-gradient(ellipse at center,black 4%,transparent 53%);animation:rcRaysSpin 28s linear infinite}
@keyframes rcRaysSpin{to{transform:rotate(360deg)}}
.rc-ritual-focus{position:relative;z-index:1;width:clamp(190px,28vmin,270px);height:clamp(266px,42vmin,376px);transform-style:preserve-3d;perspective:1100px;pointer-events:auto;cursor:pointer;}
.rc-focus-halo{position:absolute;z-index:-2;inset:-70px;filter:blur(20px);background:radial-gradient(circle,#dba35663 0%,#e9bd3440 18%,transparent 68%);animation:rcHaloBreath 2.4s ease-in-out infinite alternate}
@keyframes rcHaloBreath{from{opacity:.55;transform:scale(.85)}to{opacity:1;transform:scale(1.15)}}
.rc-focus-card{position:absolute;inset:0;overflow:hidden;isolation:isolate;border:2px solid #f4d5a0;border-radius:16px;background:#101926;transform-origin:center;box-shadow:0 0 0 5px #17222ae6,0 0 0 7px #c29d6188,0 0 45px #f9d39770,0 34px 80px #000e}
.rc-focus-card::before{content:"";position:absolute;inset:5px;z-index:4;pointer-events:none;border:1px solid #f6dba488;border-radius:11px;box-shadow:inset 0 0 18px #0004}
.rc-focus-card::after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(180deg,#060b130a,#060b1315 40%,#060b1377 70%,#03060deb 100%)}
.rc-focus-image{display:block;position:absolute;inset:0;background-position:center 19%;background-size:cover;filter:saturate(1.14) contrast(1.035)}
.rc-focus-rarity,.rc-focus-name,.rc-focus-status{position:absolute;z-index:5;color:#ffedcd;text-align:center;left:7px;right:7px;text-shadow:0 2px 12px #000}
.rc-focus-rarity{top:10px;left:50%;right:auto;transform:translateX(-50%);width:max-content;border:1px solid #edce9c88;border-radius:100px;background:#06101bdc;padding:5px 14px;font:750 12px/1.2 'Noto Sans KR','Malgun Gothic',sans-serif;letter-spacing:.12em}
.rc-focus-name{bottom:51px;font-size:clamp(19px,2vw,25px);font-weight:850;letter-spacing:-.035em;line-height:1.2}
.rc-focus-status{bottom:20px;font-size:12px;color:#eecb87;letter-spacing:.035em}
.rc-focus-sigil{position:absolute;z-index:5;left:50%;top:-64px;transform:translateX(-50%);font:normal 38px/1 Georgia,serif;color:#ffe5af;text-shadow:0 0 22px #f5b643,0 0 40px #eda94a;animation:rcSigil 2s ease-in-out infinite alternate}
@keyframes rcSigil{to{transform:translateX(-50%) scale(1.16);filter:brightness(1.4)}}
.rc-focus-gleam{position:absolute;inset:-60% -100%;z-index:8;pointer-events:none;opacity:.7;background:linear-gradient(110deg,transparent 37%,rgba(255,255,255,.04) 46%,rgba(255,249,207,.55) 50%,rgba(255,255,255,.03) 54%,transparent 65%);transform:translateX(-130%) rotate(-12deg)}
.rc-focus-enter .rc-focus-card{animation:rcPremiumCardReveal 1.02s cubic-bezier(.12,.75,.18,1) both}
.rc-focus-enter .rc-focus-gleam{animation:rcCardGlint 1.3s .12s ease-out both}
@keyframes rcPremiumCardReveal{0%{opacity:.1;transform:translate3d(0,80px,-150px) rotateY(-115deg) rotateX(16deg) scale(.6);filter:brightness(3)}42%{opacity:1;transform:translate3d(0,-30px,75px) rotateY(13deg) scale(1.21);filter:brightness(2)}72%{transform:translate3d(0,7px,0) rotateY(-5deg) scale(.98);filter:brightness(1.22)}100%{opacity:1;transform:none;filter:none}}
@keyframes rcCardGlint{10%{opacity:0;transform:translateX(-110%) rotate(-12deg)}62%{opacity:.86}100%{opacity:0;transform:translateX(100%) rotate(-12deg)}}
.rc-focus-rare .rc-focus-card{border-color:#8ed6ff;box-shadow:0 0 0 5px #17222a,0 0 0 7px #86ddff77,0 0 65px #74b8ef75,0 35px 85px #000f}
.rc-focus-epic .rc-focus-card{border-color:#d2adff;box-shadow:0 0 0 5px #17202a,0 0 0 8px #ac86ff80,0 0 72px #ac70e68a,0 37px 90px #000f}
.rc-focus-legendary .rc-focus-card,.rc-focus-grand .rc-focus-card{border-color:#ffe7ac;box-shadow:0 0 0 5px #181f29,0 0 0 8px #edc481,0 0 100px #ffc34bb0,0 40px 100px #000f}
.rc-focus-legendary .rc-focus-halo,.rc-focus-grand .rc-focus-halo{background:radial-gradient(circle,#ffc84a9c 0%,#f9c64053 29%,transparent 73%)}
.ritual-scene[data-reveal-rarity="legendary"] .rc-ritual-rays{opacity:.94;animation-duration:9s}
.rc-ritual-caption{position:absolute;z-index:3;top:calc(50% + clamp(157px,24vmin,215px));display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-width:280px;max-width:calc(100vw - 40px);text-align:center;color:#f9dcac;text-shadow:0 2px 10px #000;font-size:12px;letter-spacing:.08em}
.rc-ritual-caption strong{font-weight:800;font-size:16px;letter-spacing:0;color:#fff0d5}
.rc-ritual-controls{display:none;position:fixed;z-index:220;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 28px));gap:10px;align-items:center;justify-content:center;padding:10px;border:1px solid #d6ab688c;border-radius:14px;background:#091522ef;box-shadow:0 14px 45px #000b;backdrop-filter:blur(12px)}
.ritual-scene:not(.finished) .rc-ritual-controls{display:flex}
.rc-ritual-count{padding:0 5px;color:#f7d4a0;font-size:12px;white-space:nowrap}
.rc-ritual-controls button{min-height:43px;flex:1;cursor:pointer;border-radius:9px;border:1px solid #e0c292;color:#1a1c21;background:linear-gradient(145deg,#f6dcab,#d5aa68);font-size:12px;font-weight:800}
.rc-ritual-controls button:last-child{flex:.85;color:#f4dcb4;background:#1c2a38;border-color:#a88b6199}
.rc-ritual-controls button:hover{filter:brightness(1.12)}
.ritual-scene.finished .ritual-rewards{animation:rcResultsArrival .9s cubic-bezier(.2,.8,.24,1) both}
@keyframes rcResultsArrival{from{opacity:0;transform:translateY(36px) scale(.88)}to{opacity:1;transform:none}}
.ritual-scene.finished .ritual-reward.revealed{animation:rcMiniArrival .65s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*70ms)}
@keyframes rcMiniArrival{from{opacity:0;transform:translateY(18px) scale(.86)}to{opacity:1;transform:none}}
.ritual-scene.finished .ritual-reward.legendary:after{content:"";position:absolute;inset:0;border:2px solid #ffe3a3;border-radius:10px;pointer-events:none;animation:rcLegendPulse 2.1s ease-in-out infinite;box-shadow:0 0 30px #ffc44a99}
@keyframes rcLegendPulse{50%{box-shadow:0 0 55px #ffd46aca;opacity:.65}}
/* Combat summons: cinematic flight, rays and impact */
.rc-flight-wrap{position:fixed;z-index:99980;pointer-events:none;width:120px;height:165px;transform-style:preserve-3d;perspective:1000px;will-change:transform,opacity;filter:drop-shadow(0 18px 18px #000c)}
.rc-flight-card{position:absolute;inset:0;border:2px solid #ffdda3;border-radius:11px;overflow:hidden;background:#0b1422;box-shadow:0 0 0 3px #0e1722,0 0 0 5px #c8a66e,0 0 35px #ffe7ab99;transform-style:preserve-3d}
.rc-flight-face{position:absolute;inset:0;background-position:center 23%;background-size:cover;transform:translateZ(6px)}
.rc-flight-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,#040811ef)}
.rc-flight-foil{position:absolute;z-index:2;inset:-60%;background:linear-gradient(112deg,transparent 40%,#fff9c878 50%,transparent 60%);animation:rcFoilShine .8s linear infinite}
@keyframes rcFoilShine{to{transform:translateX(55%)}}
.rc-flight-label{position:absolute;z-index:3;bottom:10px;left:4px;right:4px;text-align:center;color:#ffe6b8;font-size:12px;font-weight:750;text-shadow:0 3px 8px #000}
.rc-flight-halo{position:absolute;inset:-35px;z-index:-1;border-radius:50%;background:radial-gradient(circle,#fff3c887,#e5b54b2d 38%,transparent 68%);filter:blur(11px);animation:rcHaloBreath .7s ease-in-out infinite alternate}
.rc-flight-wrap.rc-rare .rc-flight-card{border-color:#9fd9ff;box-shadow:0 0 0 3px #112033,0 0 0 5px #6bc2f2,0 0 42px #7acbffbd}
.rc-flight-wrap.rc-epic .rc-flight-card{border-color:#d1a4ff;box-shadow:0 0 0 3px #13182a,0 0 0 5px #bb9af3,0 0 50px #caa2ff}
.rc-flight-wrap.rc-grand .rc-flight-card{box-shadow:0 0 0 3px #141a25,0 0 0 6px #ffdc91,0 0 70px #ffce50ef}
.rc-impact{position:fixed;z-index:99970;width:0;height:0;pointer-events:none;transform:translateZ(0);--impact-color:#ffdd92;--impact-rgb:255,215,138}
.rc-impact.lane-0{--impact-color:#9edfff;--impact-rgb:110,204,255}
.rc-impact.lane-1{--impact-color:#ffdd92;--impact-rgb:255,211,126}
.rc-impact.lane-2{--impact-color:#b8e3bd;--impact-rgb:143,221,155}
.rc-impact.is-enemy{--impact-color:#f7a3a1;--impact-rgb:237,112,116}
.rc-impact.is-legend{--impact-color:#ffe2a0;--impact-rgb:255,216,105}
.rc-impact-crown{position:absolute;z-index:2;left:0;top:0;transform:translate(-50%,-50%);font:normal 34px Georgia,serif;color:var(--impact-color);text-shadow:0 0 18px var(--impact-color),0 0 38px var(--impact-color);animation:rcSigilBurst 1s ease-out both}
@keyframes rcSigilBurst{0%{opacity:0;transform:translate(-50%,-50%) scale(.1) rotate(-120deg)}34%{opacity:1;transform:translate(-50%,-50%) scale(1.6) rotate(13deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.15) rotate(38deg)}}
.rc-shockwave{position:absolute;left:0;top:0;width:26px;height:26px;border:3px solid var(--impact-color);border-radius:50%;box-shadow:0 0 12px var(--impact-color),inset 0 0 12px var(--impact-color);transform:translate(-50%,-50%);animation:rcImpactRing 1.05s cubic-bezier(.1,.72,.18,1) both}
.rc-shockwave.second{animation-delay:.12s}
.rc-shockwave.third{animation-delay:.26s}
@keyframes rcImpactRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(8)}}
.rc-impact-vertical{position:absolute;left:0;top:0;width:14px;height:300px;transform:translate(-50%,-50%);background:linear-gradient(180deg,transparent,rgba(var(--impact-rgb),.85),rgba(var(--impact-rgb),.2),transparent);filter:blur(6px);animation:rcVerticalStrike .8s ease-out both}
@keyframes rcVerticalStrike{from{opacity:0;transform:translate(-50%,-62%) scaleY(1.2)}20%{opacity:1}to{opacity:0;transform:translate(-50%,-50%) scaleY(.22)}}
.rc-spark{position:absolute;left:0;top:0;width:4px;height:14px;border-radius:2px;background:var(--impact-color);box-shadow:0 0 9px var(--impact-color);transform:translate(-50%,-50%) rotate(var(--angle));animation:rcSparkFly .95s var(--delay) ease-out both}
@keyframes rcSparkFly{0%{opacity:0;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(.5)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(calc(-1 * var(--travel))) scale(.2)}}
#view .royal-battle .mk-unit.rc-landed{z-index:7!important;animation:rcLandCard .75s cubic-bezier(.15,.8,.3,1) both!important}
@keyframes rcLandCard{0%{filter:brightness(2.6);transform:scale(1.2)}55%{filter:brightness(1.6);transform:scale(.92)}100%{filter:brightness(1);transform:none}}
#view .royal-battle .mk-unit.rc-terrain-blessing{box-shadow:inset 0 0 12px #c6ecb46b,0 0 22px #e8cb8599!important}
#view .royal-battle .mk-unit.rc-foe-enter{animation:rcEnemyArrival .75s ease-out both!important}
@keyframes rcEnemyArrival{from{opacity:0;filter:brightness(3);transform:translateY(-22px) scale(.75)}65%{opacity:1;filter:brightness(1.7);transform:scale(1.09)}to{filter:none;transform:none}}
#view .royal-battle .mk-battlefield.rc-turn-clash{animation:rcTurnClash .7s ease-out both}
#view .royal-battle .mk-battlefield.rc-great-assault{animation:rcGreatClash .85s ease-out both}
@keyframes rcTurnClash{0%,100%{filter:none}30%{filter:brightness(1.26) contrast(1.06)}65%{filter:brightness(.95)}}
@keyframes rcGreatClash{0%,100%{filter:none}32%{filter:brightness(1.72) saturate(1.4)}55%{filter:brightness(1.25)}}
/* Reward collection and evolution as premium milestones */
.k26-receipt-premium .k26-receipt-mark{animation:rcAwardEmblem 1.2s ease-out both}
@keyframes rcAwardEmblem{0%{opacity:0;transform:scale(.4) rotate(-60deg);filter:brightness(3)}62%{opacity:1;transform:scale(1.18) rotate(10deg)}100%{transform:none;filter:none}}
.k26-receipt-premium .k26-receipt-item{animation:rcAwardItem .68s both;animation-delay:.15s}
.k26-receipt-premium .k26-receipt-item:nth-child(2){animation-delay:.3s}
.k26-receipt-premium .k26-receipt-item:nth-child(3){animation-delay:.45s}
@keyframes rcAwardItem{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}
.k27-evolved .card-art{filter:saturate(1.24) drop-shadow(0 0 6px #edc7864d)!important}
.k27-evolved .card-art:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 32%,rgba(255,238,185,.25) 48%,transparent 63%);animation:rcEvolutionShimmer 3.7s ease-in-out infinite}
@keyframes rcEvolutionShimmer{0%,30%{transform:translateX(-120%)}75%,100%{transform:translateX(120%)}}
/* Narrow screens: preserve the existing terrain/hand layout while keeping the reveal dramatic. */
@media(max-width:700px){
 .rc-ritual-focus{width:min(48vw,207px);height:min(67vw,289px)}
 .rc-focus-sigil{top:-42px;font-size:26px}
 .rc-ritual-caption{top:calc(50% + min(36vw,151px));gap:4px}
 .rc-ritual-controls{bottom:max(20px,env(safe-area-inset-bottom));padding:7px;gap:6px}
 .rc-ritual-controls button{min-height:41px;font-size:11px;padding:5px 7px}
 .rc-focus-name{font-size:18px;bottom:44px}
 .rc-focus-status{font-size:10px;bottom:17px}
 .rc-flight-wrap{width:90px;height:123px}
 .rc-flight-label{font-size:10px}
}
@media(max-width:380px){.rc-ritual-focus{width:170px;height:236px}.rc-ritual-caption{top:calc(50% + 124px)}.rc-ritual-controls button{font-size:10px}.rc-ritual-count{font-size:10px}}
@media(prefers-reduced-motion:reduce){.rc-ritual-rays,.rc-focus-halo,.rc-focus-card,.rc-focus-gleam,.rc-flight-foil,.rc-ritual-focus,.rc-impact,.k27-evolved .card-art:after{animation:none!important;transition:none!important}}
/* Correct legacy flex button collapse on the ten-card result panel. */
.ritual-scene.finished .ritual-action-row{width:min(460px,100%)!important;min-height:52px!important;max-width:calc(100vw - 24px)!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:center!important;flex-wrap:nowrap!important;gap:10px!important;margin:16px auto 8px!important}
.ritual-scene.finished .ritual-action-row>button{display:flex!important;flex:0 0 calc(50% - 5px)!important;min-width:0!important;width:calc(50% - 5px)!important;max-width:none!important;min-height:48px!important;height:auto!important;padding:10px 12px!important;justify-content:center!important;align-items:center!important;white-space:normal!important;word-break:keep-all!important;line-height:1.4!important;font-size:12px!important;border-radius:10px!important;box-shadow:0 8px 24px #0007}
.ritual-scene.finished .ritual-action-row>button:only-child{flex-basis:100%!important;width:100%!important}
.ritual-scene.finished .ritual-action-row>button:disabled{opacity:.6}
.ritual-scene.finished .ritual-action-row>button>span,.ritual-scene.finished .ritual-action-row>button>small{white-space:nowrap!important}
html body #overlays .ritual-shade .ritual-scene.finished .ritual-action-row>button.btn{flex:0 0 calc(50% - 5px)!important;width:calc(50% - 5px)!important;min-width:0!important;max-width:none!important;padding:11px 9px!important;min-height:48px!important;font-size:12px!important;letter-spacing:0!important}
html body #overlays .ritual-shade .ritual-scene.finished .ritual-action-row>.ritual-return{max-width:none!important}
html body #overlays .ritual-shade .ritual-scene.finished .ritual-action-row{display:flex!important;align-items:stretch!important;flex:0 0 51px!important;width:calc(100% - 24px)!important;max-width:460px!important;height:51px!important;min-height:51px!important;max-height:51px!important;margin:12px auto 12px!important;gap:10px!important;padding:0!important;position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important}
html body #overlays .ritual-shade .ritual-scene.finished .ritual-action-row>button.btn{height:51px!important;max-height:51px!important;min-height:51px!important;flex:0 0 calc(50% - 5px)!important;width:calc(50% - 5px)!important;font-size:12px!important;line-height:1.1!important}
.rc-damage-layer{position:fixed;inset:0;z-index:99990;pointer-events:none;overflow:hidden}
.rc-damage-number{position:absolute;transform:translate(-50%,-50%);font:900 26px/1 Georgia,serif;letter-spacing:-.03em;color:#fff0c8;text-shadow:0 2px 1px #03060c,0 0 12px currentColor,0 0 25px #000;animation:rcNumberImpact 1s ease-out both}
.rc-damage-number.rc-hit-enemy{color:#ff9d8e}.rc-damage-number.rc-hit-ally{color:#9cdbff}
@keyframes rcNumberImpact{0%{opacity:0;transform:translate(-50%,5px) scale(.45)}18%{opacity:1;transform:translate(-50%,-12px) scale(1.4)}44%{transform:translate(-50%,-20px) scale(1)}100%{opacity:0;transform:translate(-50%,-64px) scale(.86)}}
.rc-upgrade-cinematic{position:fixed;z-index:99991;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:2px;transform:translate(-50%,-50%);color:#ffdea3;text-shadow:0 0 25px #ebbb70,0 6px 20px #000;animation:rcUpgradeBlast 1.65s ease-out both}
.rc-upgrade-cinematic strong{font:normal 64px Georgia,serif}
.rc-upgrade-cinematic span{font:850 18px/1.2 'Noto Sans KR','Malgun Gothic',sans-serif;white-space:nowrap}
.rc-upgrade-cinematic.is-evolved{color:#fff4c7;text-shadow:0 0 30px #ffd86c,0 0 65px #ffc147}
@keyframes rcUpgradeBlast{0%{opacity:0;transform:translate(-50%,-40%) scale(.2) rotate(-25deg)}24%{opacity:1;transform:translate(-50%,-50%) scale(1.3)}65%{opacity:1;transform:translate(-50%,-67%) scale(1)}100%{opacity:0;transform:translate(-50%,-125%) scale(1.05)}}


/* ========= summon_original_cinematic_refined.css (original load order) ========= */
/* RESTORED ROYAL SUMMON · the original summon-core painting, golden book,
   rotating ritual rings, flare, audio, cinematic spotlight and native rewards
   are intentionally preserved. Only the ten-card reveal pacing is new. */
.k-ritual-hybrid .k-ritual-brand{position:absolute;z-index:7;top:clamp(14px,3vh,31px);left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;text-shadow:0 3px 22px #000}
.k-ritual-hybrid .k-ritual-brand>span:first-child{color:#c4a87b;font:9px/1.4 Georgia,serif;letter-spacing:.40em}
.k-ritual-hybrid .k-ritual-brand strong{font:normal clamp(23px,3.5vmin,39px)/1.2 Georgia,'Noto Serif CJK KR',serif;letter-spacing:.20em;color:#f7d9a5;filter:drop-shadow(0 2px 13px #dc9f5c73)}
.k-ritual-hybrid .k-brand-rule{color:#af8959;font-size:9px;letter-spacing:.16em}
.k-ritual-hybrid:not(.finished) .ritual-stage-text{transition:opacity .45s;color:#f7d8a7}
/* The initial book ceremony is identical to the original. */
.k-ritual-hybrid .k-foils{position:relative;z-index:5;width:min(760px,96%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-self:center;justify-content:center;gap:clamp(6px,1.15vw,15px);max-height:0;overflow:hidden;opacity:0;transform:translateY(26px) scale(.91);perspective:1400px;pointer-events:none;transition:opacity .6s ease,transform .8s cubic-bezier(.18,.8,.18,1),max-height .6s cubic-bezier(.18,.8,.18,1)}
.k-ritual-hybrid .k-foils.k-one{grid-template-columns:minmax(0,170px);width:min(200px,90%)}
.k-ritual-hybrid.k-array .ritual-center{height:0;opacity:0;overflow:hidden;transition:height .6s,opacity .38s}
.k-ritual-hybrid.k-array .k-foils{max-height:650px;overflow:visible;opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.k-ritual-hybrid.k-array .ritual-rewards{pointer-events:none}
.k-ritual-hybrid .k-foil{position:relative;aspect-ratio:.695;min-width:0;perspective:1200px;filter:drop-shadow(0 13px 14px #000b);transform:translate3d(0,32px,0) rotate(-8deg) scale(.9);opacity:0;transition:transform .75s cubic-bezier(.19,.86,.25,1),opacity .45s ease;transition-delay:calc(var(--k-index)*58ms)}
.k-ritual-hybrid.k-array .k-foil{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
.k-ritual-hybrid .k-foil-turn{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 1s cubic-bezier(.22,.83,.18,1);transition-delay:calc(var(--k-index)*48ms)}
.k-ritual-hybrid.k-unsealed .k-foil-turn{transform:rotateY(180deg)}
.k-ritual-hybrid .k-foil-back,.k-ritual-hybrid .k-foil-front{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border:2px solid #f4d18c;border-radius:10px;box-shadow:inset 0 0 0 4px #171015, inset 0 0 0 5px #bf945c,0 0 23px #dbab6259,0 18px 22px #0008}
.k-ritual-hybrid .k-foil-back{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(ellipse at 48% 42%,#654a28 3%,#291b1c 47%,#10131b 91%)}
.k-ritual-hybrid .k-foil-back:before{content:'';position:absolute;inset:9px;border:1px solid #ddb8767e;border-radius:5px;background:repeating-conic-gradient(from 10deg at center,#ffd9990c 0deg,transparent 18deg,transparent 40deg)}
.k-ritual-hybrid .k-foil-back:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,#ffdf963c 51%,transparent 65%);animation:kBookLight 5.5s infinite linear}
@keyframes kBookLight{from{transform:translateX(-140%)}to{transform:translateX(150%)}}
.k-ritual-hybrid .k-foil-front{transform:rotateY(180deg);border-color:#a5b0b4;background:#09121b}
.k-ritual-hybrid .k-foil-rare .k-foil-front{border-color:#9bddfb;box-shadow:0 0 22px #60bcec85,0 13px 22px #000b,inset 0 0 0 3px #122334}
.k-ritual-hybrid .k-foil-epic .k-foil-front{border-color:#d0a2ff;box-shadow:0 0 28px #bd81ff9b,0 13px 22px #000b,inset 0 0 0 3px #1c1737}
.k-ritual-hybrid .k-foil-legendary .k-foil-front{border-color:#ffe4a2;box-shadow:0 0 38px #ffc957bc,0 13px 24px #000b,inset 0 0 0 3px #3a260b}
.k-ritual-hybrid .k-foil-image{position:absolute;inset:0;background-size:cover;background-position:center 17%;filter:saturate(1.11)}
.k-ritual-hybrid .k-foil-front:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0008 0%,transparent 23%,transparent 46%,#07101ce0 79%,#080b15 99%);pointer-events:none}
.k-ritual-hybrid .k-foil-grade{position:absolute;z-index:2;top:7px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 10px;font-size:10px;letter-spacing:.15em;font-weight:800;background:#08121bb8;border:1px solid #e9cf9d88;border-radius:18px;color:#ffe6bd;text-shadow:0 1px 8px #000}
.k-ritual-hybrid .k-foil-copy{position:absolute;z-index:2;bottom:5%;left:5px;right:5px;display:flex;flex-direction:column;align-items:center;text-align:center;text-shadow:0 2px 6px #000,0 1px 12px #000}
.k-ritual-hybrid .k-foil-copy b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff1d8;font-size:clamp(9px,1vw,13px);letter-spacing:-.02em}
.k-ritual-hybrid .k-foil-copy small{font-size:clamp(8px,.8vw,10px);color:#e5c48e;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k-ritual-hybrid.k-unsealed .k-foil-legendary{animation:kLegendaryAura 1.8s ease-in-out infinite alternate}
@keyframes kLegendaryAura{to{filter:drop-shadow(0 0 23px #ffc755c9)}}
/* Hero spotlight reuses the original premium card animation and lighting verbatim. */
.k-ritual-hybrid .rc-ritual-controls{z-index:240}
.k-ritual-hybrid .rc-ritual-controls button{flex:none;min-width:min(240px,70vw)}
.k-ritual-hybrid.finished .k-foils{display:none}
.k-ritual-hybrid.finished .rc-ritual-cinema{display:none}
.k-ritual-hybrid.finished .ritual-stage-text{margin-top:clamp(52px,10vh,98px)}
.k-ritual-hybrid.finished .ritual-rewards{margin-top:2px}
/* Mobile: retain two rows of 5 without compressing text or touching other screens. */
@media(max-width:700px){
 .k-ritual-hybrid .k-ritual-brand{top:clamp(14px,4vh,32px)}
 .k-ritual-hybrid .k-ritual-brand strong{font-size:25px}
 .k-ritual-hybrid .k-foils{width:min(520px,calc(100% - 3px));gap:clamp(4px,1.2vw,8px)}
 .k-ritual-hybrid .k-foil-back,.k-ritual-hybrid .k-foil-front{border-radius:6px;border-width:1px}
 .k-ritual-hybrid .k-foil-back{gap:5px}
 .k-ritual-hybrid .k-foil-grade{top:3px;font-size:8px;padding:1px 5px}
 .k-ritual-hybrid .k-foil-copy b{font-size:clamp(8px,2vw,11px)}
 .k-ritual-hybrid .k-foil-copy small{font-size:clamp(7px,1.75vw,9px)}
 .k-ritual-hybrid.k-array .k-foils{max-height:380px}
 .k-ritual-hybrid:not(.finished){min-height:100dvh;padding-top:92px;padding-bottom:82px}
 .k-ritual-hybrid.finished .ritual-stage-text{margin-top:clamp(54px,9vh,90px)}
 .k-ritual-hybrid.finished .ritual-rewards{column-gap:6px;row-gap:24px;max-width:calc(100vw - 20px)}
 .k-ritual-hybrid.finished .ritual-reward-status{bottom:-16px!important;min-width:0!important;width:calc(100% + 2px);height:17px;font-size:0!important;line-height:13px!important;padding:1px 2px!important;letter-spacing:0!important;overflow:hidden;text-overflow:ellipsis}
 .k-ritual-hybrid.finished .ritual-reward-status::before{content:attr(data-small);font-size:9px;line-height:14px;display:block;text-align:center}
 .k-ritual-hybrid.finished .ritual-action-row{margin-top:21px!important}
 .k-ritual-hybrid .rc-ritual-controls{bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(max-width:390px){
 .k-ritual-hybrid .k-foils{width:100%;gap:4px}
 .k-ritual-hybrid .k-foil-copy b{font-size:8px}
 .k-ritual-hybrid .k-foil-copy small{font-size:7px}
}
@media(max-height:600px) and (orientation:landscape){
 .k-ritual-hybrid .k-foils{width:min(560px,82%);gap:6px}
 .k-ritual-hybrid .k-ritual-brand{top:6px}
 .k-ritual-hybrid .k-ritual-brand strong{font-size:19px}
 .k-ritual-hybrid .ritual-stage-text{margin:3px auto 6px}
 .k-ritual-hybrid.k-array .k-foils{max-height:90vh}
}
@media(prefers-reduced-motion:reduce){
 .k-ritual-hybrid .k-foil,.k-ritual-hybrid .k-foil-turn,.k-ritual-hybrid .k-foils{transition:none!important;animation:none!important}
}

/* 2026-10-28 · User-supplied card back; no changes to effects, timing, or rewards. */
.k-ritual-hybrid .k-foil-back {
  border: 0;
  background: #07121d url("royal_summon_card_back.png") center / 100% 100% no-repeat;
  box-shadow: 0 0 24px #d5ad6750, 0 14px 23px #000a;
}
/* The uploaded artwork includes its own ornate frame and central emblem. */
.k-ritual-hybrid .k-foil-back::before { display:none; }
/* Preserve the original gold-shine animation, but let the artwork show. */
.k-ritual-hybrid .k-foil-back::after { opacity:.38; }

/* 2026-10-28 · Premium pull continuity: highlight in the existing grid.
   There is NEVER an opacity-0 handoff to a duplicate hero card. */
.k-ritual-hybrid.k-premium-revealed .k-foils,
.k-ritual-hybrid.k-premium-revealed .k-foil {opacity:1;visibility:visible;filter:none}
.k-ritual-hybrid .k-foil.k-premium-spotlight {
 z-index:12;
 transform:translate3d(0,-4px,0) scale(1.065);
 opacity:1;
 animation:kPremiumStableGlow 1.15s ease-in-out infinite alternate;
}
.k-ritual-hybrid .k-foil.k-premium-spotlight.k-foil-legendary {
 animation-name:kLegendaryStableGlow;
}
.k-ritual-hybrid .k-foil.k-premium-spotlight::after {
 content:"";pointer-events:none;position:absolute;inset:-4px;z-index:3;
 border:1px solid rgba(242,208,147,.78);border-radius:12px;
 box-shadow:0 0 19px rgba(238,189,104,.35);opacity:.84;
}
@keyframes kPremiumStableGlow {
 from{filter:drop-shadow(0 0 7px rgba(179,130,246,.65))}
 to{filter:drop-shadow(0 0 25px rgba(204,150,255,.95))}
}
@keyframes kLegendaryStableGlow {
 from{filter:drop-shadow(0 0 10px rgba(250,185,68,.65))}
 to{filter:drop-shadow(0 0 33px rgba(255,212,116,1))}
}
/* Keep result cards immediately visible when switching from 3D foils.
   Older stacked entrance animations briefly set all results to opacity:0. */
.k-ritual-hybrid.finished .ritual-rewards,
.k-ritual-hybrid.finished .ritual-reward.revealed {
 animation:none!important;
 transition:none!important;
 opacity:1!important;
 filter:none!important;
 transform:none!important;
}
/* One functional shortcut button, with the unused Golden Summon label removed. */
.k-ritual-hybrid .rc-ritual-controls{width:min(360px,calc(100vw - 28px))}
.k-ritual-hybrid .rc-ritual-controls button:only-child {
 flex:1;min-width:0;max-width:none;
 background:linear-gradient(145deg,#f6dcab,#d5aa68);
 border-color:#e0c292;color:#1a1c21;
}
@media(prefers-reduced-motion:reduce){
 .k-ritual-hybrid .k-foil.k-premium-spotlight{animation:none!important}
}

/* PREMIUM SUMMON · a deliberate sealed reveal (not a timed reveal).
   No rarity signal escapes from the covered back, no automatic completion. */
.k-ritual-hybrid.k-premium-summon .k-foils.k-one{
 width:min(274px,65vw);grid-template-columns:minmax(0,1fr);
}
.k-ritual-hybrid.k-premium-summon .k-premium-manual{
 appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;
 margin:0;padding:0;width:100%;display:block;cursor:default;font:inherit;box-sizing:border-box;
}
.k-ritual-hybrid.k-premium-summon.k-awaiting-touch .k-premium-manual{cursor:pointer}
.k-ritual-hybrid.k-premium-summon.k-awaiting-touch .k-premium-manual::after{
 content:'';position:absolute;inset:-6px;border:1px solid #d1a964a8;border-radius:14px;
 box-shadow:0 0 17px #d8ab5680,0 0 40px #cd994436;pointer-events:none;
 animation:kSealedGoldBreath 2.4s ease-in-out infinite alternate;
}
.k-ritual-hybrid.k-premium-summon.k-awaiting-touch .k-premium-manual:focus-visible{
 outline:3px solid #fae0a2;outline-offset:8px;border-radius:12px;
}
.k-ritual-hybrid.k-premium-summon:not(.k-premium-opened) .k-foil-legendary{animation:none}
.k-ritual-hybrid.k-premium-summon.k-awaiting-touch .ritual-stage-text{
 color:#f4d39b;letter-spacing:.06em;text-shadow:0 0 16px #e8ba627a;
 animation:kSealedTextBreath 1.7s ease-in-out infinite alternate;
}
.k-ritual-hybrid.k-premium-summon .rc-ritual-controls:empty{display:none}
.k-ritual-hybrid.k-premium-summon.k-premium-opened .k-premium-manual{cursor:default}
@keyframes kSealedGoldBreath{from{opacity:.35;filter:brightness(.8)}to{opacity:1;filter:brightness(1.18)}}
@keyframes kSealedTextBreath{from{opacity:.7}to{opacity:1}}
@media(max-width:700px){
 .k-ritual-hybrid.k-premium-summon .k-foils.k-one{width:min(225px,62vw)}
}
@media(max-height:600px) and (orientation:landscape){
 .k-ritual-hybrid.k-premium-summon .k-foils.k-one{width:min(170px,34vh)}
}
@media(prefers-reduced-motion:reduce){
 .k-ritual-hybrid.k-premium-summon.k-awaiting-touch .k-premium-manual::after,
 .k-ritual-hybrid.k-premium-summon.k-awaiting-touch .ritual-stage-text{animation:none!important}
}

/* Display guidance only when there is an actionable message. */
.k-ritual-hybrid .ritual-hint:empty{display:none!important}


/* ========= royal_result_forge_v2.css (original load order) ========= */
/* 千年王國 — cinematic battle outcomes / royal rewards / forging (2026). */
:root{--k28-champagne:#f8dda4;--k28-brass:#bd8c45;--k28-night:#050a13}
.overlay-shade:has(.mk-result-v114){background:radial-gradient(ellipse at 50% 42%,rgba(30,36,56,.43),rgba(2,5,13,.94) 74%)!important;backdrop-filter:blur(18px) saturate(.65)!important}
.overlay-shade:has(.mk-result-v114) .modal{position:relative;width:min(780px,calc(100vw - 28px))!important;max-width:780px!important;max-height:min(94dvh,950px)!important;overflow-y:auto!important;padding:0!important;background:#07101d!important;border:1px solid #cfab6d!important;border-radius:16px!important;box-shadow:0 0 0 1px #f9dc9440,0 35px 105px #000e,0 0 120px #d5a95722!important;animation:k28Arrival .65s cubic-bezier(.16,1,.3,1) both}
.overlay-shade:has(.mk-result-v114) .modal:before,.overlay-shade:has(.mk-result-v114) .modal:after{content:"";position:absolute;z-index:5;width:34px;height:34px;pointer-events:none;border:2px solid #f7d59a}
.overlay-shade:has(.mk-result-v114) .modal:before{top:7px;left:7px;border-right:0;border-bottom:0}
.overlay-shade:has(.mk-result-v114) .modal:after{bottom:7px;right:7px;border-left:0;border-top:0}
.overlay-shade:has(.mk-result-v114) .modal-close{position:absolute;z-index:30;top:13px;right:13px;color:#f7dcad!important;background:#06101bb8;border:1px solid #dcbd8177;border-radius:50%;width:34px;height:34px}
.mk-result-v114{--k28-warm:#e4bc77;--k28-bloom:rgba(255,203,108,.45);position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,#08121d,#040c16)!important}
.mk-result-v114.mk-defeat{--k28-warm:#a7c0d9;--k28-bloom:rgba(132,177,217,.22)}
.mk-result-v114 .mk-result-cinematic{position:relative;height:clamp(275px,40vh,360px)!important;padding:28px 15px 16px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:4px!important;background-image:linear-gradient(180deg,#04091440,#03081435 38%,#08111ce8 100%),var(--result-image)!important;background-position:center,center 44%!important;background-size:cover!important;isolation:isolate;overflow:hidden}
.mk-result-v114 .mk-result-cinematic:before{content:"";position:absolute;inset:-100%;z-index:0;background:conic-gradient(from 90deg at 50% 50%,transparent 0deg,transparent 44deg,#ffdc8336 48deg,transparent 52deg,transparent 86deg,#ffdb8833 90deg,transparent 96deg,transparent 145deg,#ffe3a72d 149deg,transparent 154deg);animation:k28Turn 32s linear infinite;pointer-events:none}
.mk-result-v114 .mk-result-cinematic:after{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse 43% 60% at 50% 44%,transparent,rgba(1,7,14,.56) 85%),linear-gradient(180deg,transparent 68%,#08111c);pointer-events:none}
.mk-result-v114.mk-defeat .mk-result-cinematic{filter:saturate(.77)}
.mk-result-v114 .mk-result-cinematic-shade{position:absolute;inset:0;z-index:1;pointer-events:none}
.k28-battle-ribbons{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.k28-battle-ribbons i{position:absolute;top:-60%;width:25%;height:220%;background:linear-gradient(90deg,transparent,var(--k28-bloom),transparent);filter:blur(21px);transform:rotate(-24deg) translateX(-130vw);animation:k28Sweep 3.3s ease-out both}
.k28-battle-ribbons i:nth-child(2){left:25%;animation-delay:.15s;opacity:.46}
.k28-battle-ribbons i:nth-child(3){left:70%;animation-delay:.35s;opacity:.3}
.k28-battle-orbit{position:absolute;left:50%;top:48%;z-index:2;transform:translate(-50%,-50%);width:min(64vw,300px);aspect-ratio:1;pointer-events:none}
.k28-battle-orbit i{position:absolute;inset:8%;border-radius:50%;border:1px solid var(--k28-warm);opacity:.24;box-shadow:0 0 40px var(--k28-bloom),inset 0 0 15px var(--k28-bloom);animation:k28Orbit 8s ease-in-out infinite}
.k28-battle-orbit i:nth-child(2){inset:21%;border-style:dotted;opacity:.44;animation-duration:10s;animation-direction:reverse}
.k28-battle-orbit i:nth-child(3){inset:0;border-style:dashed;opacity:.18;animation-duration:18s}
.k28-battle-crown{position:relative;z-index:4;white-space:nowrap;color:#ffe5b2;letter-spacing:13px;font:24px Georgia,serif;text-shadow:0 0 23px var(--k28-warm);animation:k28FadeUp .9s .05s both}
.mk-result-v114 .mk-result-royal-sigil{position:relative;z-index:4;font:30px/1 Georgia,serif!important;margin:0 0 5px!important;color:#fff2d1;filter:drop-shadow(0 0 13px var(--k28-warm));animation:k28Sigil 1s .1s both}
.mk-result-v114 .mk-result-royal-small{position:relative;z-index:4;letter-spacing:4px!important;font-weight:750!important;color:#ffe5b7!important;text-shadow:0 2px 10px #000}
.mk-result-v114 .mk-result-royal-title{position:relative;z-index:4;margin:2px 0!important;font:900 clamp(66px,9vw,102px)/1.12 "Noto Serif KR",Georgia,serif!important;letter-spacing:.14em!important;text-indent:.14em!important;color:#fff3d9!important;filter:drop-shadow(0 7px 6px #030609);text-shadow:0 0 40px var(--k28-warm),0 1px #fff7e1;animation:k28Title .94s cubic-bezier(.17,.77,.2,1) both}
.mk-result-v114.mk-defeat .mk-result-royal-title{color:#dce8f1!important;text-shadow:0 0 38px #7394b9,0 2px 14px #020610}
.mk-result-v114 .mk-result-royal-sub{position:relative;z-index:4;font-size:13px!important;color:#fcecd4!important;text-shadow:0 2px 10px #000;animation:k28FadeUp .85s .4s both}
.mk-result-v114 .mk-result-royal-body{position:relative;z-index:2;padding:18px clamp(17px,4vw,37px) 25px!important;border-top:1px solid #d9b06b76;background:radial-gradient(ellipse 70% 52% at 50% 0,#a5742620,transparent),linear-gradient(180deg,#0b1726,#07101a)!important}
.k28-result-dash{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--k28-warm);font:10px/1.3 Georgia,serif;letter-spacing:6px;padding:0 0 13px;opacity:.9}
.k28-result-dash span{height:1px;width:clamp(30px,12vw,120px);background:linear-gradient(90deg,transparent,var(--k28-warm),transparent)}
.mk-result-v114 .mk-result-royal-meta{color:#bcb8ae!important;margin:0 0 14px!important}
.mk-result-v114 .mk-result-royal-meta strong{color:#ffdfac!important}
.mk-result-v114 .mk-result-royal-stats{gap:10px!important;margin-bottom:10px!important}
.mk-result-v114 .mk-result-royal-stats>div{position:relative;border:1px solid #d9b87758!important;border-radius:10px!important;background:linear-gradient(145deg,#1a2a3c,#0a1421 66%)!important;min-height:85px!important;box-shadow:inset 0 1px #ffe0a014,0 8px 19px #0005;animation:k28FadeUp .62s both}
.mk-result-v114 .mk-result-royal-stats>div:nth-child(2){animation-delay:.1s}
.mk-result-v114 .mk-result-royal-stats>div:nth-child(3){animation-delay:.2s}
.mk-result-v114 .mk-result-royal-stats strong{font-size:clamp(18px,2.4vw,26px)!important;color:#fce6c5!important}
.mk-result-v114 .mk-result-royal-reward{padding:10px!important;border:1px solid #ddb6758b!important;background:linear-gradient(105deg,#45311fba,#172335b3)!important;box-shadow:0 0 35px #ffbe5130,inset 0 1px #f9df975c;animation:k28FadeUp .7s .3s both}
.mk-result-v114 .mk-result-royal-actions button{border-radius:9px!important;transition:transform .2s,filter .2s,box-shadow .2s}
.mk-result-v114 .mk-result-royal-actions button:hover{transform:translateY(-2px);filter:brightness(1.12)}
.mk-result-v114 .mk-result-royal-primary{background:linear-gradient(105deg,#ffe7b5,#d6a762 56%,#a47238)!important;color:#221608!important;box-shadow:0 8px 20px #a5752d44,inset 0 1px #fff5ca!important}
.mk-result-v114.mk-defeat .mk-result-royal-primary{background:linear-gradient(110deg,#e2e9f1,#a0b5c9)!important;color:#102030!important}

/* Achievement receipt = a reward stage, not a text form. */
.overlay-root .modal:has(.k26-receipt-premium){width:min(575px,calc(100vw - 26px))!important;max-width:575px!important;border:1px solid #e1ba79a6!important;border-radius:19px!important;background:radial-gradient(ellipse at 50% 0,#80551d25,transparent 55%),#07111e!important;box-shadow:0 0 0 1px #fff1c51e,0 40px 120px #000f,0 0 90px #d7a65c1e!important;animation:k28Arrival .6s both}
.k26-receipt-premium{overflow:hidden!important;isolation:isolate;padding:33px 34px 30px!important;background:radial-gradient(circle at 50% 19%,#c7954035,transparent 43%),linear-gradient(145deg,#14243a,#07111d 70%)!important}
.k26-receipt-premium:after{content:"";position:absolute;inset:11px;z-index:-1;pointer-events:none;border:1px solid #dbba7440;border-radius:11px}
.k28-receipt-radiance{position:absolute;z-index:-1;inset:-100px 0 0;pointer-events:none;overflow:hidden}
.k28-receipt-radiance:before{content:"";position:absolute;top:8%;left:50%;width:370px;height:370px;transform:translateX(-50%);border:1px solid #e6b8636b;border-radius:50%;box-shadow:0 0 0 26px #e5b36c08,0 0 70px #ffc76c36,inset 0 0 50px #ffdd8c18;animation:k28Rise .75s ease-out both}
.k28-receipt-radiance i{position:absolute;left:50%;top:0;width:2px;height:75%;background:linear-gradient(#f9d68950,transparent);transform-origin:bottom center;filter:blur(4px);animation:k28FadeUp 1s both}
.k28-receipt-radiance i:first-child{transform:rotate(-31deg)}.k28-receipt-radiance i:nth-child(2){transform:rotate(0)}.k28-receipt-radiance i:nth-child(3){transform:rotate(31deg)}
.k26-receipt-premium .k26-receipt-mark{z-index:2;width:82px!important;height:82px!important;border:2px solid #e7c078!important;border-radius:50%!important;font:44px Georgia,serif!important;box-shadow:0 0 0 7px #f7d18d12,0 0 0 9px #deb7773b,0 0 45px #facd6870,inset 0 0 18px #f4ce8b31!important;animation:k28Medal .95s cubic-bezier(.16,.9,.2,1) both!important}
.k26-achievement-receipt .k26-receipt-mark{background:radial-gradient(circle at 45% 26%,#b8944c,#483117 50%,#101b2b 100%)!important}
.k26-receipt-premium h2{font:750 clamp(30px,4.5vw,41px)/1.18 'Noto Serif KR',serif!important;letter-spacing:-.04em;color:#fff2d7!important;text-shadow:0 4px 14px #000;animation:k28FadeUp .7s .1s both}
.k26-receipt-premium .k26-receipt-kicker{letter-spacing:4px!important;font-weight:750!important}
.k26-receipt-premium .k26-receipt-item{border-radius:11px!important;border:1px solid #e4b56e66!important;background:linear-gradient(138deg,#273344,#111e2c 72%)!important;box-shadow:inset 0 1px #fff8d824,0 15px 20px #0005;animation:k28Tile .78s cubic-bezier(.18,.86,.25,1) both;animation-delay:calc(.22s + var(--k28-order,0)*.13s)}
.k26-receipt-premium .k26-receipt-icon{background:radial-gradient(circle at 38% 31%,#f5d79533,#1b2c42)!important;border:1px solid #f6c87978!important;border-radius:50%!important;box-shadow:0 0 27px #e8b65c3c}
.k26-receipt-premium .k26-receipt-item strong{font:800 clamp(24px,4vw,32px)/1.2 Georgia,serif!important;color:#ffe1a3!important;text-shadow:0 0 15px #e2b36366}
.k26-receipt-premium .k26-receipt-confirm{border:1px solid #ffe3b1!important;border-radius:9px!important;background:linear-gradient(110deg,#ffe9bc,#d3a159 70%,#b38345)!important;color:#23170a!important;font-weight:800!important;box-shadow:0 12px 30px #d5a14e44!important}

/* Forging: real card art, rotating ring, rays and handwritten-like stamps. */
.k28-forge-scene{position:fixed;inset:0;z-index:100800;display:grid;place-items:center;isolation:isolate;background:radial-gradient(circle at 50% 47%,#312410f0,#07111df7 55%,#020611fd);overflow:hidden;color:#ffe8bc;cursor:pointer;animation:k28ForgeBackdrop .55s both}
.k28-forge-scene:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 52%,#fbd58366,transparent 23%),radial-gradient(circle at 50% 52%,#a76b2844,transparent 49%);animation:k28Pulse 1.7s ease-in-out infinite alternate}
.k28-forge-scene:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 190px #000;z-index:1}
.k28-forge-noise{position:absolute;inset:0;opacity:.22;background-image:radial-gradient(#e9c17c 1px,transparent 1px);background-size:31px 31px;mask-image:radial-gradient(circle at center,black,transparent 68%)}
.k28-forge-rays{position:absolute;left:50%;top:50%;width:115vmax;height:115vmax;transform:translate(-50%,-50%);background:repeating-conic-gradient(from 0deg,#fae09a18 0deg,#ffe1a800 9deg,#ffe1a800 19deg);animation:k28Turn 26s linear infinite;filter:blur(9px)}
.k28-forge-circles{position:absolute;left:50%;top:49%;width:min(84vmin,530px);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none}
.k28-forge-circles i{position:absolute;inset:0;border:2px solid #e8bb7385;border-radius:50%;box-shadow:0 0 45px #ecc17b50,inset 0 0 35px #f6c37a39;animation:k28Circle 13s linear infinite}
.k28-forge-circles i:nth-child(2){inset:9%;border-style:dashed;opacity:.55;animation-duration:20s;animation-direction:reverse}
.k28-forge-circles i:nth-child(3){inset:19%;border-style:dotted;opacity:.7;animation-duration:27s}
.k28-forge-center{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:min(95vw,480px);max-height:92dvh;text-align:center;animation:k28ForgeCenter .75s cubic-bezier(.16,.85,.22,1) both}
.k28-forge-legend{font:750 10px/1.3 Georgia,serif;letter-spacing:6px;color:#ffdb9b;text-shadow:0 0 12px #edbe66;margin-bottom:11px}
.k28-forge-card-frame{position:relative;isolation:isolate;width:clamp(115px,19vmin,180px);aspect-ratio:.7;border:3px solid #f9d49a;border-radius:12px;background:#0d1521;box-shadow:0 0 0 4px #182030,0 0 0 6px #ba915b,0 0 60px #f5c16f88,0 25px 65px #000e;overflow:hidden;transform-style:preserve-3d;animation:k28CardAscend 1.35s cubic-bezier(.16,.82,.17,1) both}
.k28-forge-card-art{position:absolute;inset:0;background-position:center 25%;background-size:cover}
.k28-forge-card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 65%,#0b1427ad)}
.k28-forge-sparkline{position:absolute;inset:-75%;z-index:2;background:linear-gradient(114deg,transparent 40%,#fff5d799 49%,transparent 54%);animation:k28Shine 1.4s .65s both}
.k28-forge-heading{font:850 clamp(32px,5vw,55px)/1.25 "Noto Serif KR",Georgia,serif;color:#ffedc6;text-shadow:0 0 24px #fbd175,0 5px 15px #000;letter-spacing:.05em;margin-top:15px;animation:k28FadeUp .8s .35s both}
.k28-forge-center>strong{font-size:clamp(15px,2.4vw,22px);color:#ffe6b7;letter-spacing:-.03em}
.k28-forge-stars{font:29px Georgia,serif;letter-spacing:9px;color:#fff0a9;text-shadow:0 0 13px #ffe49a}
.k28-forge-center>small{font:600 12px/1.5 system-ui,sans-serif;color:#b9c7d2;max-width:90%;overflow-wrap:anywhere}
.k28-forge-footer{position:absolute;z-index:3;bottom:max(18px,env(safe-area-inset-bottom));left:0;right:0;text-align:center;font-size:11px;letter-spacing:1.7px;color:#d7bf98;animation:k28FadeUp .8s .55s both}
.k28-forge-scene.k28-forge-leaving{opacity:0;transition:opacity .25s}
.k28-forge-evolved{background:radial-gradient(circle at 50% 47%,#503115,#090e1af5 55%,#01040b)}
.k28-forge-evolved .k28-forge-card-frame{box-shadow:0 0 0 6px #13213a,0 0 0 9px #f4d28a,0 0 100px #ffd875,0 30px 100px #000}
/* Tactic archive & level chips: upgrade mechanic is now visible and consistent. */
.game-card .k28-tactic-stats{display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:clamp(9px,.9vw,12px)!important;color:#d9c9b0!important;gap:4px}
.k28-tactic-stats b{color:#ffdc83;font-size:1.12em}
.k28-tactic-readout{display:grid;gap:7px;border:1px solid #b38c5377;background:radial-gradient(circle at 100% 0,#dba65c1a,transparent 60%),linear-gradient(160deg,#24364a,#0a1827);border-radius:11px;padding:13px;margin:10px 0 8px;box-shadow:inset 0 1px #ffffff0b}
.k28-tactic-readout small{color:#ddb77d;letter-spacing:1.6px;font:700 9px system-ui,sans-serif}
.k28-tactic-readout strong{color:#ffdfad;font-size:clamp(12px,1.2vw,15px);line-height:1.6}
.k28-tactic-readout span{font-size:10px;color:#91acbc}
.k28-forge-cost{display:flex;gap:9px;flex-wrap:wrap;margin:11px 0}
.k28-forge-cost>span{display:flex;justify-content:space-between;align-items:center;flex:1;min-width:125px;border:1px solid #d2a7683c;padding:9px 12px;border-radius:9px;background:#0c1926;color:#b6c1cc;font-size:11px}
.k28-forge-cost strong{color:#ffe1ad;font-size:12px}
.card-detail .k28-forge-button{display:block;width:100%;min-height:48px!important;font-size:13px!important;letter-spacing:1px!important;background:linear-gradient(135deg,#f7dca9,#ba8540)!important;color:#1d150c!important;border:1px solid #ffe3ac!important;box-shadow:inset 0 1px #fff0c0,0 10px 26px #d69c483b!important;border-radius:9px!important}
.card-detail .k28-forge-button:disabled{background:linear-gradient(135deg,#525261,#35323b)!important;color:#beb5a7!important;border-color:#77707b!important;box-shadow:none!important}
@keyframes k28Arrival{from{opacity:0;transform:translateY(27px) scale(.955)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes k28Turn{to{transform:rotate(360deg)}}
@keyframes k28Orbit{50%{opacity:.4;transform:scale(1.04) rotate(50deg)}}
@keyframes k28Sweep{0%{transform:rotate(-24deg) translateX(-130vw)}100%{transform:rotate(-24deg) translateX(250vw)}}
@keyframes k28FadeUp{from{opacity:0;transform:translateY(17px)}to{opacity:1;transform:translateY(0)}}
@keyframes k28Sigil{0%{opacity:0;transform:scale(.3) rotate(-90deg)}60%{transform:scale(1.15)}100%{opacity:1;transform:scale(1)}}
@keyframes k28Title{0%{opacity:0;transform:scale(1.4);filter:blur(12px)}50%{opacity:1;filter:blur(1px)}100%{transform:scale(1);filter:none}}
@keyframes k28Medal{0%{opacity:0;transform:perspective(200px) rotateY(-130deg) scale(.55)}65%{opacity:1;transform:perspective(200px) rotateY(12deg) scale(1.15)}100%{transform:rotateY(0) scale(1)}}
@keyframes k28Rise{from{opacity:0;scale:.5}to{opacity:1;scale:1}}
@keyframes k28Tile{from{opacity:0;transform:translateY(45px) scale(.87)}to{opacity:1;transform:none}}
@keyframes k28ForgeBackdrop{from{opacity:0}to{opacity:1}}
@keyframes k28Pulse{from{opacity:.6;transform:scale(.95)}to{opacity:1;transform:scale(1.08)}}
@keyframes k28Circle{to{transform:rotate(360deg)}}
@keyframes k28ForgeCenter{from{opacity:0;transform:translateY(52px) scale(.75);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes k28CardAscend{0%{transform:translateY(130px) rotateY(100deg) scale(.42);opacity:0;filter:brightness(3)}45%{opacity:1;transform:translateY(-18px) rotateY(-15deg) scale(1.19);filter:brightness(1.8)}100%{transform:none;opacity:1;filter:brightness(1)}}
@keyframes k28Shine{from{transform:translateX(-80%) rotate(-15deg)}to{transform:translateX(82%) rotate(-15deg)}}
@media(max-width:600px){
 .overlay-shade:has(.mk-result-v114) .modal{width:calc(100vw - 14px)!important;max-height:94dvh!important}
 .mk-result-v114 .mk-result-cinematic{height:clamp(225px,33dvh,280px)!important;padding:17px 11px!important}
 .mk-result-v114 .mk-result-royal-title{font-size:clamp(53px,13vw,78px)!important}
 .k28-battle-crown{font-size:16px;letter-spacing:7px}
 .k28-battle-orbit{width:58vw}
 .mk-result-v114 .mk-result-royal-body{padding:12px 11px 17px!important}
 .mk-result-v114 .mk-result-royal-stats{gap:6px!important}
 .mk-result-v114 .mk-result-royal-stats>div{min-height:70px!important;padding:8px 4px!important}
 .mk-result-v114 .mk-result-royal-stats strong{font-size:17px!important}
 .k28-result-dash{padding-bottom:8px}
 .k26-receipt-premium{padding:26px 19px 20px!important}
 .k26-receipt-premium .k26-receipt-mark{width:66px!important;height:66px!important;font-size:36px!important}
 .k26-receipt-premium .k26-receipt-item{min-height:120px!important}
 .k28-forge-card-frame{width:clamp(120px,24vh,175px)}
 .k28-forge-heading{font-size:clamp(27px,8vw,42px);margin-top:12px}
 .k28-forge-circles{width:93vmin}
}
@media(prefers-reduced-motion:reduce){.mk-result-v114 *, .k26-receipt-premium *, .k28-forge-scene *{animation:none!important;transition:none!important}.mk-result-v114 .mk-result-cinematic:before{display:none}.k28-battle-ribbons{display:none}}
body[data-fx-quality="low"] .mk-result-v114 *,body[data-fx-quality="low"] .k26-receipt-premium *{animation:none!important}


/* ========= battle_cinematic_max_v29.css (original load order) ========= */
/* KINGDOM / ROYAL BATTLE CINEMATIC V29
 * Visual-only effects: all overlays are pointer-events:none.
 * Scaled to fxQuality, OS reduced-motion and mobile viewport.
 */
.royal-battle{position:relative;isolation:isolate;--k29-gold:#ffd99a;--k29-ice:#8fdafa}
.royal-battle .mk-commanders{position:relative;z-index:2;overflow:visible}
.royal-battle .mk-commander{position:relative;box-shadow:inset 0 0 0 1px rgba(238,192,102,.17),0 8px 30px #0008;transition:box-shadow .3s}
.royal-battle .mk-commander.ally:after,.royal-battle .mk-commander.foe:after{content:"";pointer-events:none;position:absolute;inset:1px;border-radius:inherit;box-shadow:inset 0 0 20px rgba(255,212,122,.08);z-index:0}
.royal-battle .mk-battlefield{background-blend-mode:normal;box-shadow:0 20px 70px #0009,0 0 0 1px #c99c5f4d,inset 0 0 55px #e5af3120!important}
.royal-battle .mk-lane{transition:filter .2s}
.royal-battle .mk-lane:before{content:"";pointer-events:none;position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,transparent 3%,rgba(243,190,95,.025) 46%,transparent 90%);background-size:200% 100%;animation:k29LaneLight 11s ease-in-out infinite;opacity:.8}
.royal-battle .mk-lane:nth-child(2):before{animation-delay:-3s}.royal-battle .mk-lane:nth-child(3):before{animation-delay:-6s}
.royal-battle .mk-unit.unit.v90-field-card{transition:box-shadow .18s,border-color .2s,filter .2s;transform-style:preserve-3d}
.royal-battle .mk-unit.unit.v90-field-card:hover{box-shadow:0 7px 24px #000b,0 0 13px #e2a85130!important;filter:brightness(1.075)}
.royal-battle .terrain-empowered.mk-unit.unit.v90-field-card{box-shadow:0 0 0 1px #d5ad5c50,0 8px 22px #0009,inset 0 0 12px #e4c66c0a!important}
.royal-battle.k29-critical-hero .mk-commander.ally,.royal-battle.k29-critical-foe .mk-commander.foe{animation:k29Critical 1.85s ease-in-out infinite}
.royal-battle.k29-critical-hero .mk-hp-track.ally i,.royal-battle.k29-critical-foe .mk-hp-track.foe i{filter:brightness(1.32);animation:k29HpPulse .9s ease-in-out infinite}
@keyframes k29LaneLight{0%,100%{background-position:0% 0}50%{background-position:100% 0}}
@keyframes k29Critical{0%,100%{box-shadow:inset 0 0 0 1px #ea534844,0 6px 26px #000a}50%{box-shadow:inset 0 0 0 1px #ff5844aa,0 0 21px #df282c44}}
@keyframes k29HpPulse{50%{filter:brightness(1.8)}}
/* The compositor layer is fixed; its children remain independent from battle rerenders. */
.k29-fx-layer{position:fixed;inset:0;z-index:8500;pointer-events:none;overflow:hidden;contain:layout style;isolation:isolate}
.k29-fx-layer:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 48%,rgba(7,13,22,0),rgba(4,8,14,.1));animation:k29LayerArrival 1s both;pointer-events:none}
@keyframes k29LayerArrival{from{opacity:0}15%{opacity:1}to{opacity:0}}
.k29-phase-banner{position:absolute;top:clamp(100px,20vh,175px);left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;text-align:center;z-index:3;animation:k29Banner 1s cubic-bezier(.16,.8,.25,1) forwards;text-shadow:0 2px 8px #000}
.k29-phase-banner small{display:block;font:600 9px/1.3 Georgia,serif;letter-spacing:.43em;color:#edc889;margin-bottom:4px}
.k29-phase-banner strong{display:block;font:800 clamp(16px,2.25vw,25px)/1.3 'Noto Serif KR',Georgia,serif;letter-spacing:.19em;color:#ffe4b3;text-shadow:0 0 23px #f4c26c66,0 2px 14px #000}
.k29-phase-banner:before,.k29-phase-banner:after{content:"";position:absolute;top:56%;width:35px;height:1px;background:linear-gradient(90deg,transparent,#f3c37d)}
.k29-phase-banner:before{right:calc(100% + 18px)}.k29-phase-banner:after{left:calc(100% + 18px);transform:scaleX(-1)}
@keyframes k29Banner{0%{opacity:0;filter:blur(6px);transform:translate(-50%,17px) scale(.92)}20%,66%{opacity:1;filter:blur(0);transform:translate(-50%,0) scale(1)}100%{opacity:0;filter:blur(3px);transform:translate(-50%,-18px) scale(1.05)}}
/* Warpath streaks: directed from attacker's lane to the target, with a tapered spear-head. */
.k29-trace{position:absolute;height:4px;transform-origin:0 50%;z-index:6;animation:k29Trace .52s cubic-bezier(.12,.64,.19,1) both;filter:drop-shadow(0 0 9px rgba(255,205,117,.6))}
.k29-trace i{display:block;width:100%;height:100%;border-radius:8px;background:linear-gradient(90deg,transparent,rgba(225,168,84,.38) 18%,#ffefa9 76%,#fff9e2);clip-path:polygon(0 43%,75% 0,100% 48%,75% 100%)}
.k29-trace b{position:absolute;right:-5px;top:-6px;width:18px;height:16px;transform:rotate(45deg);background:linear-gradient(135deg,#fff8d2,#f3a746,#a95d23);filter:drop-shadow(0 0 8px #ffc973)}
.k29-trace.k29-foe{filter:drop-shadow(0 0 8px #ff6b6794)}.k29-trace.k29-foe i{background:linear-gradient(90deg,transparent,#9d6479 30%,#ffc2ba)}.k29-trace.k29-foe b{background:linear-gradient(135deg,#ffddd4,#df6e58,#842e38)}
.k29-trace.k29-naval{height:7px}.k29-trace.k29-cavalry{height:5px}.k29-trace.k29-combo{height:8px;filter:drop-shadow(0 0 13px #f8c56e)}.k29-trace.k29-break{height:9px}
@keyframes k29Trace{0%{opacity:0;clip-path:inset(0 100% 0 0);filter:brightness(2)}8%{opacity:1}60%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:0;clip-path:inset(0 0 0 0);filter:brightness(1)}}
.k29-impact{position:absolute;transform:translate(-50%,-50%);width:1px;height:1px;z-index:8;--k29-spark:#ffe3a0}
.k29-impact.k29-foe{--k29-spark:#ff998c}.k29-impact.k29-block{--k29-spark:#9fd8fa}.k29-impact.k29-naval{--k29-spark:#c1edff}.k29-impact.k29-break{--k29-spark:#fff1ad}
.k29-impact-core{position:absolute;left:-38px;top:-38px;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle,#ffffe8 0,#ffda93 9%,#e3a959 25%,#e8b16240 43%,transparent 72%);mix-blend-mode:screen;animation:k29Core .65s ease-out both}
.k29-impact.k29-foe .k29-impact-core{background:radial-gradient(circle,#fff1e8,#ff9a7d 12%,#d8535329 45%,transparent 74%)}
.k29-impact.k29-block .k29-impact-core{background:radial-gradient(circle,#fff,#a4deff 15%,#5e9dce34 48%,transparent 72%)}
.k29-impact-ring{position:absolute;left:-22px;top:-22px;width:44px;height:44px;border:2px solid var(--k29-spark);border-radius:50%;box-shadow:0 0 19px var(--k29-spark),inset 0 0 13px var(--k29-spark);animation:k29Ring .55s cubic-bezier(.12,.63,.17,1) both}
.k29-ring-late{animation-delay:90ms}
.k29-impact-slash{position:absolute;left:-38px;top:-2px;width:76px;height:5px;transform:rotate(-34deg);background:linear-gradient(90deg,transparent,#fff5da,#fff,transparent);filter:drop-shadow(0 0 9px var(--k29-spark));animation:k29Slash .55s ease-out both}
.k29-burst{position:absolute;left:-2px;top:-2px;width:4px;height:12px;transform-origin:50% 45px;transform:rotate(var(--angle)) translateY(-8px);border-radius:100%;background:linear-gradient(180deg,var(--k29-spark),transparent);box-shadow:0 0 7px var(--k29-spark);animation:k29Burst .7s ease-out both}
.k29-damage-label{position:absolute;left:50%;top:-58px;transform:translateX(-50%);width:max-content;white-space:nowrap;max-width:48vw;font:900 clamp(18px,2.2vw,29px)/1 Georgia,'Noto Serif KR',serif;color:#ffebb9;letter-spacing:.035em;-webkit-text-stroke:.35px #452309;text-shadow:0 3px 4px #000,0 0 16px #fca84d;animation:k29Damage 1.05s cubic-bezier(.16,.72,.18,1) both}
.k29-foe .k29-damage-label{color:#ffc1ad;-webkit-text-stroke:.3px #3c0f16;text-shadow:0 3px 4px #000,0 0 15px #ea6358}
.k29-block .k29-damage-label{color:#bce7ff;text-shadow:0 0 16px #4c9cd9}
@keyframes k29Core{0%{transform:scale(.12);opacity:0}23%{transform:scale(1.05);opacity:1}100%{transform:scale(1.7);opacity:0}}
@keyframes k29Ring{0%{transform:scale(.15);opacity:0}15%{opacity:1}100%{transform:scale(3.3);opacity:0}}
@keyframes k29Slash{0%{transform:rotate(-34deg) scaleX(.2);opacity:0}18%{transform:rotate(-34deg) scaleX(1);opacity:1}100%{transform:rotate(-34deg) scaleX(1.6);opacity:0}}
@keyframes k29Burst{0%{opacity:1;transform:rotate(var(--angle)) translateY(-5px) scale(.6)}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--radius))) scale(.1)}}
@keyframes k29Damage{0%{opacity:0;transform:translate(-50%,22px) scale(.5);filter:blur(2px)}25%{opacity:1;transform:translate(-50%,-3px) scale(1.22);filter:none}52%{opacity:1;transform:translate(-50%,-17px) scale(1)}100%{opacity:0;transform:translate(-50%,-43px) scale(.92)}}
.k29-battle-callout{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);padding:7px 21px;max-width:90vw;white-space:nowrap;border:1px solid #f2c877aa;border-left:0;border-right:0;background:linear-gradient(90deg,transparent,rgba(2,8,17,.89) 19%,rgba(2,8,17,.89) 81%,transparent);color:#ffe6ae;font:800 clamp(14px,2.1vw,24px)/1.4 'Noto Serif KR',Georgia,serif;letter-spacing:.2em;text-align:center;text-shadow:0 0 18px #eaae42aa,0 3px #000;z-index:10;animation:k29Callout .85s ease-out both}
.k29-battle-callout.is-break{color:#fff3cb}.k29-battle-callout.is-combo{color:#cbeaff;border-color:#86d0ef}
@keyframes k29Callout{0%{opacity:0;transform:translate(-50%,-50%) scale(1.6);filter:blur(5px)}20%,65%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:none}100%{opacity:0;transform:translate(-50%,-65%) scale(1.04)}}
/* Unique tactical arts: broad rings / slash / healing glyph, animated only after the cast. */
.k29-spell-scene:before{background:radial-gradient(ellipse at 50% 50%,#1d15173d,#000a 75%);animation:k29SpellShade 1.35s both}
.k29-spell-fire:before{background:radial-gradient(ellipse at 65% 50%,#f7944537,#0009 75%)}
.k29-spell-storm:before{background:radial-gradient(ellipse at 65% 50%,#92a8ff2b,#0009 78%)}
.k29-spell-guard:before,.k29-spell-heal:before{background:radial-gradient(ellipse at 35% 50%,#73b9ef32,#0009 75%)}
@keyframes k29SpellShade{0%{opacity:0}22%{opacity:1}75%{opacity:.72}100%{opacity:0}}
.k29-spell-panel{position:absolute;transform:translate(-50%,-50%);min-width:210px;max-width:76vw;padding:17px 26px 16px;text-align:center;z-index:12;background:radial-gradient(ellipse,#09111de8 40%,#081322b5 70%,transparent);border-block:1px solid #dcb67d88;box-shadow:0 0 40px #0009,0 0 42px #c18d4f33;animation:k29SpellIntro 1.4s cubic-bezier(.1,.8,.3,1) both}
.k29-spell-panel span{display:block;color:#bb9c6c;font:700 10px/1.5 Georgia,serif;letter-spacing:.34em}
.k29-spell-panel b{display:block;margin:1px 0 3px;color:#ffebbf;font:900 clamp(35px,4vw,54px)/1.1 'Noto Serif KR',Georgia,serif;letter-spacing:.23em;text-indent:.23em;text-shadow:0 0 22px #efa64366}
.k29-spell-panel em{display:block;color:#e2d4bd;font:500 12px/1.5 'Noto Serif KR',serif;letter-spacing:.15em;font-style:normal}
@keyframes k29SpellIntro{0%{opacity:0;transform:translate(-50%,-50%) scale(1.5);filter:blur(8px)}25%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)}67%{opacity:1}100%{opacity:0;transform:translate(-50%,-60%) scale(.97)}}
.k29-spell-ring{position:absolute;transform:translate(-50%,-50%);width:80px;height:80px;border-radius:50%;border:2px solid #f1c478;box-shadow:inset 0 0 30px #f4c15b63,0 0 38px #edaa5078;background:radial-gradient(circle,#ffda8b88,#d9822850 35%,transparent 70%);animation:k29SpellRing 1.05s ease-out both;z-index:5}
.k29-spell-ring.k29-fire{background:radial-gradient(circle,#fff6d2,#fc8f27ad 35%,transparent 72%);box-shadow:0 0 45px #f67a2f}
.k29-spell-ring.k29-storm{border-color:#8ccbf6;box-shadow:0 0 41px #7b9ef9;background:conic-gradient(#87d9ffaa,transparent,#acb2ffbb,transparent,#87d9ffaa)}
.k29-spell-ring.k29-arrows,.k29-spell-ring.k29-ambush{border-color:#f4dba6;background:repeating-conic-gradient(#f9f0d188 0 4deg,transparent 4deg 31deg)}
.k29-spell-ring.k29-heal,.k29-spell-ring.k29-guard{border-color:#a6ebfb;background:radial-gradient(circle,#f5ffe999,#73cce377 38%,transparent 70%);box-shadow:0 0 42px #70ceea}
@keyframes k29SpellRing{0%{opacity:0;transform:translate(-50%,-50%) scale(.15) rotate(0)}30%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(90deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(3) rotate(200deg)}}
.k29-spell-loss{position:absolute;transform:translate(-50%,-50%);color:#ffe0a6;font:900 clamp(19px,3vw,31px)/1 Georgia,serif;text-shadow:0 0 17px #f8ad52,0 4px 5px #000;animation:k29Damage 1.25s both;z-index:15}
.k29-spell-loss.k29-healing{color:#b7fff1;text-shadow:0 0 18px #4bcbbe}
/* 20-command total assault / three-lane salvo */
.k29-final-scene:before{background:radial-gradient(ellipse at 50% 50%,#ffc46c29,#06080dda 80%);animation:k29SpellShade 1.8s}
.k29-final-emblem{position:absolute;transform:translate(-50%,-50%);padding:19px 39px;min-width:230px;text-align:center;background:linear-gradient(100deg,transparent,#0b101beb 17%,#0b101beb 83%,transparent);border-block:2px solid #f8d7a0;box-shadow:0 0 70px #ffd78a50;animation:k29Final .95s cubic-bezier(.17,.74,.21,1) both;z-index:12}
.k29-final-emblem span{display:block;font:600 10px Georgia,serif;letter-spacing:.35em;color:#eccb9f}.k29-final-emblem b{display:block;font:900 clamp(46px,6vw,72px)/1.2 'Noto Serif KR',serif;letter-spacing:.18em;color:#fff6d8;text-shadow:0 0 23px #f4b94e}.k29-final-emblem em{font:700 9px Georgia,serif;letter-spacing:.45em;color:#edbf76;font-style:normal}
@keyframes k29Final{from{opacity:0;transform:translate(-50%,-50%) scale(1.65);filter:blur(9px)}28%,75%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:none}to{opacity:0;transform:translate(-50%,-60%) scale(1.04)}}
.k29-final-barrage{position:absolute;z-index:10;transform:translate(-50%,-50%);font:900 30px Georgia,serif;color:#fff7ce;text-shadow:0 0 29px #e89c4f;animation:k29FinalDamage 1.2s cubic-bezier(.1,.75,.16,1) both}
.k29-final-barrage:before{content:"";position:absolute;inset:-65px;border-radius:50%;border:2px solid #e9c06c9e;box-shadow:inset 0 0 40px #ffcb6b44,0 0 20px #e9c06c60;animation:k29Ring .7s ease-out both}
@keyframes k29FinalDamage{0%{opacity:0;transform:translate(-50%,35px) scale(.4)}30%{opacity:1;transform:translate(-50%,-50%) scale(1.4)}80%{opacity:1;transform:translate(-50%,-40px)}100%{opacity:0;transform:translate(-50%,-80px)}}
.royal-battle .mk-battlefield.k29-hitstop{animation:k29FieldStagger .105s steps(2,end) both}
@keyframes k29FieldStagger{0%{filter:brightness(1)}35%{filter:brightness(1.28);transform:translateX(-2px)}70%{filter:brightness(1.08);transform:translateX(2px)}100%{filter:none;transform:none}}
/* Material requirements are explicit, not hidden in a disabled button. */
.k29-cost-detail{display:flex;gap:9px;flex-wrap:wrap}
.k29-cost-detail>span{display:flex;flex-direction:column;flex:1 1 110px;gap:4px;min-width:0;padding:9px 10px;border:1px solid #b48a4b69;border-radius:8px;background:linear-gradient(145deg,#101f30,#0b1523);font-size:11px;color:#ccbeaa}
.k29-cost-detail strong{font:750 clamp(12px,1.3vw,15px) Georgia,'Noto Serif KR',serif;white-space:normal;line-height:1.25}
.k29-cost-detail .k29-insufficient{border-color:#d984657a;background:linear-gradient(145deg,#2a171d,#101923);color:#edba9c}
.k29-cost-detail .k29-insufficient strong{color:#ffb9a5}
.k29-cost-detail .k29-sufficient strong{color:#e8d29e}
.k29-upgrade-reason{border-left:2px solid #e6a173;padding:6px 9px!important;margin:5px 0 7px!important;border-radius:3px;background:#7b493028;color:#f4c4a9!important;font-size:11px!important;line-height:1.5!important}
.k29-upgrade-ready{padding:5px 0!important;margin:4px 0 6px!important;color:#cce8ae!important;font-size:11px!important}
button.k29-upgrade-locked{opacity:.7;filter:saturate(.65);cursor:pointer!important}
button.k29-upgrade-locked:hover{opacity:1;filter:saturate(.9);box-shadow:inset 0 0 0 1px #ffcb8999,0 0 15px #e9a15130}
/* Condensed FX at lower quality and respect reduced motion */
body[data-fx-quality="standard"] .k29-burst:nth-of-type(n+7){display:none}
body[data-fx-quality="standard"] .royal-battle .mk-lane:before{animation:none}
@media(max-width:680px){
 .k29-phase-banner{top:14vh}.k29-phase-banner strong{font-size:15px}
 .k29-phase-banner:before,.k29-phase-banner:after{width:14px}
 .k29-impact-core{left:-25px;top:-25px;width:50px;height:50px}
 .k29-impact-ring{left:-15px;top:-15px;width:30px;height:30px}
 .k29-damage-label{font-size:15px;top:-40px;max-width:80vw;letter-spacing:0}
 .k29-battle-callout{font-size:14px;padding:5px 12px}
 .k29-spell-panel{min-width:155px;padding:10px 17px}
 .k29-spell-panel span{font-size:8px;letter-spacing:.22em}
 .k29-spell-panel b{font-size:32px}.k29-spell-panel em{font-size:10px}
 .k29-spell-ring{width:55px;height:55px}
 .k29-final-emblem{min-width:185px;padding:13px 22px}.k29-final-emblem b{font-size:40px}
 .k29-final-barrage{font-size:20px}
 .k29-cost-detail{gap:6px}.k29-cost-detail>span{padding:7px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.royal-battle .mk-lane:before,.royal-battle.k29-critical-hero .mk-commander.ally,.royal-battle.k29-critical-foe .mk-commander.foe{animation:none!important}.k29-fx-layer{display:none!important}}
body[data-fx-quality="low"] .royal-battle .mk-lane:before,body[data-fx-quality="low"] .royal-battle.k29-critical-hero .mk-commander.ally,body[data-fx-quality="low"] .royal-battle.k29-critical-foe .mk-commander.foe{animation:none!important}
/* Rare hero cut-in: a swift cinematic portrait outside the battle card. */
.k29-commander-cutin{position:absolute;left:max(96px,12vw);top:19vh;width:clamp(210px,28vw,410px);height:clamp(105px,16vh,190px);z-index:15;pointer-events:none;display:flex;overflow:hidden;border:1px solid #edc882ab;background:linear-gradient(115deg,#091423,#202439 60%,#0a111f);clip-path:polygon(0 0,92% 0,100% 18%,100% 100%,8% 100%,0 82%);box-shadow:0 0 48px #a27c4277,0 15px 40px #000a;animation:k29HeroCutin 1.12s cubic-bezier(.15,.74,.2,1) both}
.k29-commander-cutin:before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(102deg,transparent 30%,#ffd39a3c 46%,transparent 64%);transform:translateX(-100%);animation:k29HeroSheen .87s .12s ease-out both}
.k29-cutin-art{width:51%;flex:none;background-position:center 22%;background-size:cover;filter:contrast(1.08) saturate(.9);mask-image:linear-gradient(90deg,#000 65%,transparent)}
.k29-cutin-copy{align-self:center;margin-left:-12px;min-width:0;padding:7px 14px 7px 0;text-shadow:0 2px 7px #000}
.k29-cutin-copy small{display:block;font:600 8px/1.6 Georgia,serif;letter-spacing:.17em;color:#dbb271}.k29-cutin-copy strong{display:block;font:800 clamp(19px,2vw,26px)/1.3 'Noto Serif KR',Georgia,serif;color:#fff1cf;white-space:nowrap}.k29-cutin-copy span{display:block;margin-top:3px;color:#eec287;font-size:10px;letter-spacing:.13em}
@keyframes k29HeroCutin{0%{opacity:0;transform:translateX(-110%) skewX(-8deg);filter:blur(6px)}21%,75%{opacity:1;transform:translateX(0) skewX(0);filter:none}100%{opacity:0;transform:translateX(-25px) scale(1.04)}}
@keyframes k29HeroSheen{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@media(max-width:680px){.k29-commander-cutin{left:6px;top:18vh;width:235px;height:106px}.k29-cutin-copy strong{font-size:18px}.k29-cutin-copy small{font-size:7px}}


/* ========= battle_cinematic_command_v30.css (original load order) ========= */
/* 천년왕국 · ROYAL WAR COMMAND V30. Visual-only additions to the intact V29 combat. */
.k30-war-impact{position:absolute;width:1px;height:1px;transform:translate(-50%,-50%);z-index:11;pointer-events:none;filter:drop-shadow(0 0 10px #f2cd93bb)}
.k30-war-impact>span{position:absolute;display:block;pointer-events:none;transform-origin:center}
/* Naval cannon salvo: a heavy white-hot core followed by two expanding sea rings. */
.k30-war-naval .k30-cannon,.k30-war-siege .k30-cannon{width:96px;height:96px;top:-48px;left:-48px;border-radius:50%;background:radial-gradient(circle,#fff7e9 0 4%,#ffdc9470 9%,#f8a44b38 30%,transparent 65%);mix-blend-mode:screen;animation:k30Flare .6s ease-out both}
.k30-war-naval .k30-wave{width:110px;height:37px;left:-55px;top:-18px;border:2px solid #a5ecffde;border-radius:50%;box-shadow:0 0 23px #85cceccc,inset 0 0 15px #7ac2ff88;animation:k30Wave .78s ease-out both}
.k30-war-naval .k30-wave.delay{animation-delay:.13s;opacity:.5}
.k30-smoke{width:95px;height:65px;top:-36px;left:-47px;border-radius:50%;background:radial-gradient(ellipse,#d5dbd0b8, #a3a7a09a 35%,#656d6a3a 65%,transparent 75%);filter:blur(7px);animation:k30Smoke .82s ease-out both}
.k30-war-siege .k30-debris{width:75px;height:75px;left:-38px;top:-38px;background:repeating-conic-gradient(from 12deg,#f6e0a8cc 0 5deg,transparent 5deg 43deg);clip-path:circle(48%);animation:k30Debris .6s ease-out both}
/* Cavalry: flying grit, ground shock, and an oblique spear streak. */
.k30-war-cavalry .k30-hooves{left:-76px;top:-16px;width:150px;height:28px;border-radius:50%;border-block:2px solid #dfa55f;background:radial-gradient(ellipse,#d9b16d8a,transparent 72%);filter:blur(1px);animation:k30Hooves .65s ease-out both}
.k30-war-cavalry .k30-dust{width:70px;height:50px;left:-34px;top:-28px;border-radius:50%;filter:blur(10px);background:radial-gradient(circle,#f6bd709c,#9c6d466a 42%,transparent 75%);animation:k30Dust .83s ease-out both}
.k30-war-cavalry .k30-dust.d2{animation-delay:.06s;transform:translate(-22px,-8px)}.k30-war-cavalry .k30-dust.d3{animation-delay:.1s;transform:translate(27px,-15px)}
.k30-war-cavalry .k30-spear{width:115px;height:5px;left:-82px;top:-5px;background:linear-gradient(90deg,transparent,#ffe8b6 45%,#fff);transform:rotate(-27deg);clip-path:polygon(0 40%,92% 0,100% 50%,92% 100%,0 60%);filter:drop-shadow(0 0 9px #e6b363);animation:k30Spear .5s ease-out both}
/* Archery spreads as three dart projectiles on impact, not generic bursts. */
.k30-war-archer .k30-arrow{width:75px;height:3px;left:-64px;top:-2px;background:linear-gradient(90deg,transparent,#e6d1a0 43%,#fff4d7);clip-path:polygon(0 40%,80% 0,100% 50%,80% 100%,0 60%);animation:k30Arrow .52s ease-out both}
.k30-war-archer .k30-arrow.a2{top:-15px;left:-77px;transform:rotate(17deg);animation-delay:.055s}.k30-war-archer .k30-arrow.a3{top:13px;left:-77px;transform:rotate(-17deg);animation-delay:.09s}
/* Blades: crossed metallic edge scratches with a tight hit-stop. */
.k30-war-steel .k30-blade{width:140px;height:5px;left:-70px;top:-3px;background:linear-gradient(90deg,transparent,#ffda9e 30%,#f9f9ef 53%,#fff6c4 68%,transparent);box-shadow:0 0 13px #fff1b57a;animation:k30Blade .59s ease-out both}
.k30-war-steel .k30-blade.one{transform:rotate(50deg)}.k30-war-steel .k30-blade.two{transform:rotate(-50deg);animation-delay:.04s}
.k30-shock-flash{position:absolute;width:170px;height:170px;z-index:7;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff8dfad 0%,#ffc56f50 24%,transparent 68%);mix-blend-mode:screen;animation:k30Shock .36s ease-out both;pointer-events:none}
@keyframes k30Flare{0%{transform:scale(.12);opacity:0}17%{transform:scale(1.2);opacity:1}100%{transform:scale(1.7);opacity:0}}
@keyframes k30Wave{0%{opacity:0;transform:scale(.4)}20%{opacity:1}100%{opacity:0;transform:scale(2.3)}}
@keyframes k30Smoke{0%{opacity:0;transform:translateY(5px) scale(.5)}30%{opacity:.8}100%{opacity:0;transform:translateY(-60px) scale(1.8)}}
@keyframes k30Debris{0%{opacity:0;transform:scale(.1) rotate(0)}22%{opacity:1}100%{opacity:0;transform:scale(2.5) rotate(46deg)}}
@keyframes k30Hooves{0%{opacity:0;transform:scaleX(.2) translateX(-50px)}18%{opacity:1}100%{opacity:0;transform:scale(1.7) translateX(35px)}}
@keyframes k30Dust{0%{opacity:0;transform:scale(.1)}22%{opacity:.85}100%{opacity:0;transform:scale(2.2) translateX(-32px)}}
@keyframes k30Spear{0%{opacity:0;transform:rotate(-27deg) translateX(-65px) scaleX(.4)}22%{opacity:1}100%{opacity:0;transform:rotate(-27deg) translateX(58px) scaleX(1.4)}}
@keyframes k30Arrow{0%{opacity:0;filter:blur(6px);translate:-52px 0}20%{opacity:1;filter:none}100%{opacity:0;translate:49px 0}}
@keyframes k30Blade{0%{opacity:0;scale:.15;filter:blur(4px)}20%{opacity:1;scale:1}100%{opacity:0;scale:1.6}}
@keyframes k30Shock{0%{opacity:0;scale:.3}32%{opacity:1;scale:1}100%{opacity:0;scale:1.8}}
/* 2.5D commander portrait. Scene does NOT intercept clicks and does not re-render the battle. */
.k30-commander-scene{position:absolute;inset:0;z-index:28;pointer-events:none;overflow:hidden;isolation:isolate}
.k30-scene-sweep{position:absolute;inset:0;background:linear-gradient(105deg,transparent 15%,#080c16a3 35%,#19243a8f 68%,transparent 89%);animation:k30ScreenTint 1.15s both}
.k30-khan .k30-scene-sweep{background:linear-gradient(105deg,transparent 15%,#170d10c9 35%,#2f1a18a6 68%,transparent 89%)}
.k30-commander-frame{position:absolute;top:clamp(85px,18vh,170px);left:max(28px,11vw);width:min(700px,77vw);height:clamp(210px,30vh,315px);overflow:hidden;transform-origin:left center;background:linear-gradient(114deg,#192c41 0%,#0c1725 70%);clip-path:polygon(0 0,92% 0,100% 22%,100% 100%,9% 100%,0 74%);box-shadow:0 25px 60px #000c;animation:k30PortraitEntrance 1.18s cubic-bezier(.16,.78,.19,1) both}
.k30-khan .k30-commander-frame{left:auto;right:max(28px,11vw);transform-origin:right center;background:linear-gradient(114deg,#31221a,#141316)}
.k30-commander-frame:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-block:2px solid #efd2a0b5;background:linear-gradient(108deg,transparent 18%,#fbe4b31a 58%,transparent 80%)}
.k30-commander-frame:after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(107deg,transparent 20%,#f7e1b736 43%,transparent 64%);animation:k30Gloss 1.1s .14s both}
.k30-commander-art{position:absolute;inset:-9% auto -9% -1%;width:64%;background-position:center 23%;background-size:cover;mask-image:linear-gradient(90deg,#000 45%,transparent 98%);animation:k30Parallax 1.18s ease-out both;filter:contrast(1.12) saturate(1.04)}
.k30-khan .k30-commander-art{left:-2%;filter:contrast(1.1) saturate(.8) sepia(.24)}
.k30-commander-veil{position:absolute;inset:0;background:radial-gradient(circle at 26% 42%,transparent 12%,#111f3390 63%)}
.k30-khan .k30-commander-veil{background:radial-gradient(circle at 27% 44%,transparent 13%,#301c1896 69%)}
.k30-commander-mark{position:absolute;left:64%;top:6%;font-size:clamp(75px,11vw,140px);line-height:1;color:#eec47e12;font-family:Georgia,serif;transform:rotate(-16deg)}
.k30-commander-copy{position:absolute;left:48%;top:50%;z-index:6;transform:translateY(-50%);padding:20px 12px;width:49%;text-shadow:0 2px 12px #000}
.k30-commander-copy small{display:block;font:700 clamp(9px,1.1vw,12px)/1.4 Georgia,serif;letter-spacing:.19em;color:#e8c28b;margin-bottom:10px}
.k30-commander-copy strong{display:block;font:900 clamp(24px,3.8vw,52px)/1.14 'Noto Serif KR',Georgia,serif;letter-spacing:.04em;color:#fff1ca;white-space:nowrap;filter:drop-shadow(0 0 10px #e9ac485e)}
.k30-commander-copy span{display:inline-block;margin-top:12px;border-block:1px solid #d8b57f;padding:8px 13px;color:#fae6c0;font:700 clamp(12px,1.7vw,19px) 'Noto Serif KR',serif;letter-spacing:.24em;white-space:nowrap}
.k30-commander-streak{position:absolute;top:10%;left:-12%;width:125%;height:2px;z-index:7;background:linear-gradient(90deg,transparent,#f6ddb7,transparent);transform:rotate(-15deg);box-shadow:0 0 28px 5px #f3bb696e;animation:k30CrossStreak 1.18s both}
@keyframes k30PortraitEntrance{0%{opacity:0;translate:-55vw 0;scale:.87;filter:blur(12px)}20%,74%{opacity:1;translate:0 0;scale:1;filter:none}100%{opacity:0;translate:6vw -5px;scale:1.04;filter:blur(2px)}}
@keyframes k30Parallax{0%{translate:-14px 12px;scale:1.19}55%{translate:7px 0;scale:1.05}100%{translate:12px -8px;scale:1.07}}
@keyframes k30Gloss{0%{opacity:0;translate:-90% 0}45%{opacity:1}100%{opacity:0;translate:85% 0}}
@keyframes k30CrossStreak{0%{opacity:0;translate:-35% 25px}20%{opacity:.9}100%{opacity:0;translate:50% -65px}}
@keyframes k30ScreenTint{0%{opacity:0}20%,64%{opacity:.92}100%{opacity:0}}
/* Tactical battles inherit the V29 ring effects, augmented with a brief tint sweep. */
.k30-tactic-veil{position:absolute;inset:0;pointer-events:none;z-index:2;background:linear-gradient(180deg,transparent,#d87c2b19 50%,transparent);animation:k30ScreenTint 1.08s both}
.k30-tactic-guard,.k30-tactic-heal{background:radial-gradient(ellipse at 35% 54%,#86d9ff30,transparent 67%)}
.k30-tactic-fire{background:radial-gradient(ellipse at 64% 50%,#ff743a3d,transparent 68%)}
.k30-tactic-storm{background:linear-gradient(100deg,transparent 10%,#8199e431 43%,transparent 70%)}
.k30-tactic-arrows,.k30-tactic-ambush{background:repeating-linear-gradient(112deg,transparent 0 42px,#eddca30c 43px 45px,transparent 46px 95px)}
@media(max-width:680px){
 .k30-commander-frame{left:2vw;right:auto;top:20vh;width:96vw;height:clamp(145px,23vh,200px)}
 .k30-khan .k30-commander-frame{left:2vw;right:auto}
 .k30-commander-art{width:65%;background-position:center 17%}
 .k30-commander-copy{left:44%;width:56%;padding:10px 1px}
 .k30-commander-copy small{font-size:7px;letter-spacing:.07em;margin-bottom:6px}
 .k30-commander-copy strong{font-size:clamp(18px,5.3vw,27px);letter-spacing:0}
 .k30-commander-copy span{font-size:10px;letter-spacing:.08em;margin-top:6px;padding:5px 7px}
 .k30-war-naval .k30-wave{scale:.7}.k30-war-impact{filter:drop-shadow(0 0 6px #f2cd93bb)}
}
@media(prefers-reduced-motion:reduce){.k30-commander-scene,.k30-war-impact,.k30-shock-flash,.k30-tactic-veil{display:none!important}}
body[data-fx-quality="low"] .k30-commander-scene,body[data-fx-quality="low"] .k30-war-impact{display:none!important}


/* ========= kingdom_ultimate_v32.css (original load order) ========= */
/* KINGDOM ULTIMATE V32 · visual-only cinematic polish, scoped to existing components */
:root{--k32-gold:#e7bf77;--k32-ivory:#f5e9d4;--k32-border:rgba(227,180,103,.43);--k32-dark:#06111e}
/* Gentle ambient environment: each front has its own movement language. */
.royal-battle .mk-lane{isolation:isolate;--k32-wind:18px}
.royal-battle .mk-lane .mk-lane-glaze{pointer-events:none}
.k32-weather{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1;opacity:.55;mask-image:linear-gradient(90deg,transparent,#000 27%,#000 74%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 27%,#000 74%,transparent)}
.k32-weather span{position:absolute;left:calc(11% + var(--k32-n,0) * 16%);top:calc(17% + var(--k32-n,0) * 12%);width:2px;height:2px;border-radius:99px;box-shadow:0 0 8px currentColor;color:#c8ddc7;animation:k32Float 6s ease-in-out infinite alternate;opacity:.8}
.k32-weather span:nth-child(2){--k32-n:1;animation-delay:-1.6s;animation-duration:8s}
.k32-weather span:nth-child(3){--k32-n:2;animation-delay:-3s;animation-duration:7s}
.k32-weather span:nth-child(4){--k32-n:3;animation-delay:-5s;animation-duration:9s}
.k32-weather span:nth-child(5){--k32-n:4;animation-delay:-2.1s;animation-duration:5s}
.royal-battle .mk-lane[data-lane="0"] .k32-weather:before{content:"";position:absolute;inset:15% -20% 0;background:repeating-radial-gradient(ellipse 230px 35px at 42% 120%,transparent 0 19px,rgba(151,200,226,.12) 20px 22px,transparent 24px 45px);filter:blur(2px);animation:k32Tide 9s ease-in-out infinite alternate}
.royal-battle .mk-lane[data-lane="1"] .k32-weather span{width:3px;height:3px;opacity:.53;color:#e6b77a;filter:blur(1px);animation-name:k32Ash}
.royal-battle .mk-lane[data-lane="2"] .k32-weather:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(213,194,132,.09) 37%,transparent 44%,transparent 62%,rgba(231,207,143,.07) 65%,transparent 73%);background-size:220% 100%;animation:k32Steppe 9s linear infinite}
@keyframes k32Float{from{transform:translate3d(-16px,11px,0);opacity:.15}to{transform:translate3d(26px,-17px,0);opacity:.8}}
@keyframes k32Ash{from{transform:translate3d(-9px,18px,0);opacity:.15}to{transform:translate3d(12px,-20px,0);opacity:.7}}
@keyframes k32Tide{0%{transform:translateX(-4%) translateY(6px)}100%{transform:translateX(6%) translateY(-2px)}}
@keyframes k32Steppe{to{background-position:220% 0}}
.k32-arena-grain{position:absolute;inset:0;pointer-events:none;opacity:.2;background-image:radial-gradient(#dcc393 0.5px,transparent 0.8px);background-size:22px 22px;z-index:1;mask-image:linear-gradient(0deg,transparent,#000 55%,transparent)}
.royal-battle .mk-lane-side,.royal-battle .mk-front-divider,.royal-battle .mk-lane-name{position:relative;z-index:2}
/* Premium reflection only while hovered. Card remains readable, click zones unchanged. */
.k32-responsive-card{position:relative;isolation:isolate;--k32-x:50%;--k32-y:50%;}
.k32-responsive-card::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;opacity:0;border-radius:inherit;background:radial-gradient(ellipse 62% 48% at var(--k32-x) var(--k32-y),rgba(255,235,180,.32),rgba(222,181,102,.07) 54%,transparent 95%);mix-blend-mode:screen;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){.k32-responsive-card:hover::after{opacity:1}.game-card.k32-responsive-card:hover{box-shadow:0 18px 35px #000b,0 0 23px #d9ac5b36}.mk-unit.k32-responsive-card:hover{filter:brightness(1.1) saturate(1.12)}.mk-hand-tile.k32-responsive-card:hover{filter:brightness(1.09)}}
.k32-responsive-card.legendary::after,.k32-responsive-card.is-evolved::after{background:radial-gradient(ellipse 65% 47% at var(--k32-x) var(--k32-y),rgba(255,227,158,.43),rgba(241,167,56,.09) 60%,transparent 95%)}
/* Expedition ribbon, route glow, boss landmarks */
.k32-map-heading{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:4px 2px 7px;color:var(--k32-gold);font:600 11px Georgia,serif;letter-spacing:.13em}
.k32-map-heading strong{font:600 15px Georgia,serif;letter-spacing:.03em;color:#ffe2ad}
.k32-map-track{position:relative;z-index:2;width:100%;height:4px;margin:0 0 14px;border-radius:20px;background:#192637;border:1px solid #aa85533c;overflow:hidden}
.k32-map-track>i{display:block;position:relative;width:0;height:100%;background:linear-gradient(90deg,#715123,#dfbb78,#fff0bd);box-shadow:0 0 16px #efbc62}
.v92-stage-card{transition:box-shadow .25s,filter .25s,transform .25s;border-color:rgba(206,162,94,.38)!important}
.v92-stage-card:not(:disabled):hover{transform:translateY(-4px);box-shadow:0 16px 36px #000a,0 0 16px rgba(236,179,94,.19)}
.v92-stage-card.k32-boss-node:not(:disabled){border-color:rgba(235,190,114,.7)!important;box-shadow:inset 0 0 28px rgba(196,133,40,.07),0 0 0 1px rgba(224,174,105,.24)}
.v92-stage-card.k32-boss-node .num{color:#ffe0a4;letter-spacing:.11em;text-shadow:0 0 10px #e7a95288}
.v92-stage-card.done:before{content:'✦';position:absolute;right:10px;top:10px;z-index:4;font-size:18px;color:#f4d18e;text-shadow:0 0 17px #f3bd77}
.k32-finale-entry{display:flex;align-items:center;gap:15px;position:relative;overflow:hidden;border:1px solid #d8b679b3;border-radius:13px;width:100%;text-align:left;padding:15px 18px;background:linear-gradient(112deg,#382819,#0d1c29 60%,#382817);color:#f1d9af;cursor:pointer;box-shadow:0 6px 28px #0007}
.k32-finale-entry>span{font-size:11px;letter-spacing:.06em;color:#ddba82}
.k32-finale-entry>strong{font-weight:500;font-size:16px}.k32-finale-entry>i{margin-left:auto;font-size:24px;font-style:normal}
.k32-finale-entry:after{content:'';position:absolute;left:-130%;top:0;width:45%;height:100%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,#fff3d125,transparent);animation:k32Gleam 7s ease-in-out infinite}
@keyframes k32Gleam{0%,67%{left:-130%}85%,100%{left:130%}}
.k32-boss-warning{padding:9px 12px;border:1px solid #c59d5e6b;background:#2e1c1baa;color:#f1c994;border-radius:7px;text-align:center;font-size:12px}
/* Tournament Lab: NOT real PvP. Explicit and prominent local-only labeling. */
.hd-pvp-page{overflow:auto!important;min-height:100%;height:100%!important}.hd-pvp-shell{padding-bottom:26px!important}
.k32-tournament-panel{position:relative;z-index:3;display:flex;align-items:center;gap:18px;padding:19px 22px;margin:16px auto 12px;max-width:830px;border-radius:14px;border:1px solid rgba(221,177,110,.49);background:linear-gradient(120deg,rgba(18,34,48,.95),rgba(20,28,40,.96));box-shadow:0 16px 45px #0007;color:#f2e5cc}
.k32-tourney-mark{flex:none;width:55px;height:55px;display:grid;place-items:center;border-radius:50%;font-size:27px;color:#eac88f;border:1px solid rgba(241,197,124,.49);background:radial-gradient(circle,#4d39225c,#0c1825)}
.k32-tourney-copy{flex:1;min-width:0}.k32-tourney-copy small,.k32-rules-modal>small,.k32-practice-result>small,.k32-battle-report>small{font:11px Georgia,serif;letter-spacing:.14em;color:#dcba80}
.k32-tourney-copy h2{margin:5px 0;color:#ffe3ae;font:500 22px Georgia,'Noto Serif KR',serif}
.k32-tourney-copy p{margin:7px 0 12px;color:#c2cad0;font-size:12px;line-height:1.7}
.k32-rules{display:flex;gap:7px;flex-wrap:wrap}.k32-rules span{border:1px solid #bba37352;border-radius:60px;padding:5px 9px;font-size:10px;color:#e3d1b2;background:#06111e90}
.k32-tourney-actions{display:flex;flex-direction:column;align-items:stretch;min-width:175px;gap:10px}
.k32-tourney-actions button{min-height:40px;border:1px solid #b79a65a1;border-radius:8px;color:#ecce96;background:#162534;padding:9px 13px;font-size:12px;cursor:pointer}
.k32-tourney-actions .k32-tourney-start{background:linear-gradient(120deg,#dfb87e,#92704a);color:#101923;font-weight:700}
.k32-tourney-actions button:disabled{background:#111924;color:#7f8991;border-color:#526170;cursor:not-allowed}
.k32-rules-modal,.k32-battle-report,.k32-practice-result{text-align:center;color:#f1e3cd;padding:12px 6px}
.k32-rules-modal h2,.k32-battle-report h2,.k32-practice-result h2{font:500 clamp(24px,3vw,35px) Georgia,'Noto Serif KR',serif;color:#f6d8a7;margin:14px 0}
.k32-rules-modal p,.k32-battle-report p,.k32-practice-result p{font-size:13px;color:#bbc6cf;line-height:1.75}
.k32-rules-list{display:grid;gap:9px;margin:20px 0}
.k32-rules-list section{display:flex;gap:12px;text-align:left;align-items:center;padding:12px;border:1px solid #bda37151;border-radius:10px;background:linear-gradient(120deg,#142536,#09131d)}
.k32-rules-list section>b{flex:none;font:23px Georgia,serif;color:#d2a663}
.k32-rules-list section span{display:flex;flex-direction:column;gap:6px}
.k32-rules-list section strong{font-weight:600;color:#f3ddb4;font-size:13px}
.k32-rules-list section small{line-height:1.6;font-size:11px;color:#b6c4cc}
.k32-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:19px auto}
.k32-report-grid span{display:grid;gap:8px;padding:14px 8px;border:1px solid #bd9f655f;border-radius:9px;background:#101e2d;font:10px Georgia,serif;color:#dbbb8b;letter-spacing:.11em}
.k32-report-grid strong{font:26px Georgia,serif;color:#f9e2ba;letter-spacing:0}
.k32-practice-disclaimer{border-top:1px solid #c3a16c30;padding-top:13px!important;color:#abb7c1!important}
.k32-report-open{border:1px solid #bd9b6569;background:#112337;border-radius:6px;font-size:11px;color:#d6b781;padding:5px 9px;cursor:pointer;margin-left:9px}
.k32-ornament{font-size:48px;color:#e9c486;filter:drop-shadow(0 0 24px #b48237)}
.k32-codex-entry{border:1px solid #c5a16856;border-radius:9px;background:linear-gradient(110deg,#102333c9,#1f2630b9);padding:11px 12px;margin:12px 0;text-align:left}
.k32-codex-entry small{font:10px Georgia,serif;color:#d9ae70;letter-spacing:.12em}
.k32-codex-entry p{font-size:12px;line-height:1.7;color:#d6d4cf;margin:7px 0 0}
/* Battle entry transition – non-blocking; 1.45s, skippable with one tap */
.k32-entrance{position:fixed;z-index:9995;inset:0;background:#020911;overflow:hidden;display:grid;place-items:center;animation:k32IntroOut 1.45s both;pointer-events:auto;cursor:pointer}
.k32-entrance-art{position:absolute;inset:-3%;background-image:linear-gradient(0deg,#030a11ed,#081424b3 45%,#050b13c4),var(--k32-intro-art);background-size:cover;background-position:center;animation:k32IntroZoom 1.4s ease-out both}
.k32-entrance-copy{z-index:1;text-align:center;padding:22px;text-shadow:0 9px 30px #000;display:grid;gap:13px}
.k32-entrance-copy span{color:#e4ba73;font:12px Georgia,serif;letter-spacing:.24em}
.k32-entrance-copy strong{color:#f8e1bb;font:500 clamp(34px,5.5vw,80px) Georgia,'Noto Serif KR',serif;letter-spacing:-.05em;animation:k32IntroLetter .7s both}
.k32-entrance-copy small{color:#d3c1a7;font:12px Georgia,serif;letter-spacing:.13em}
@keyframes k32IntroOut{0%,68%{opacity:1}100%{opacity:0;visibility:hidden}}
@keyframes k32IntroZoom{from{transform:scale(1.09);filter:blur(6px)}to{transform:scale(1);filter:blur(0)}}
@keyframes k32IntroLetter{from{opacity:0;letter-spacing:.2em;transform:translateY(12px)}to{opacity:1;letter-spacing:-.05em;transform:translateY(0)}}
/* Final chapter: visual epilogue rather than generic prose */
.k32-finale{position:relative;overflow:hidden;isolation:isolate;border:1px solid #d3aa7270;border-radius:13px;min-height:490px;background:#091728;color:#f9e9ca;text-align:center;display:grid;place-items:center}
.k32-finale:before{content:'';position:absolute;inset:0;background-image:linear-gradient(0deg,#07101bf5 1%,#07101bd9 45%,#070c15a9),var(--k32-finale-art);background-position:top center;background-size:cover;opacity:.91;animation:k32FinaleImage 12s ease-in-out infinite alternate}
.k32-finale-shine{position:absolute;inset:-70%;background:conic-gradient(from 10deg,transparent 0 25%,#efc67d12 26%,transparent 38%,#ffe6b50f 42%,transparent 52%);animation:k32Rotate 19s linear infinite}
.k32-finale-copy{z-index:1;position:relative;padding:42px 20px;max-width:610px;display:flex;flex-direction:column;align-items:center;gap:14px}
.k32-finale-copy small{color:#d9af71;letter-spacing:.19em;font:11px Georgia,serif}.k32-finale-sigil{font-size:44px;color:#f6d597;text-shadow:0 0 27px #e9bc5c}
.k32-finale h2{font:500 clamp(34px,6vw,62px) Georgia,'Noto Serif KR',serif;color:#ffedca;margin:0}
.k32-finale strong{font-size:15px;font-weight:500;color:#eacb9b;line-height:1.65}.k32-finale p{max-width:390px;color:#c8d0d1;font-size:13px;line-height:1.9}
.k32-finale-crest{font:28px Georgia,serif;border-bottom:1px solid #c9a46f7b;border-top:1px solid #c9a46f7b;color:#ebc784;min-width:120px;padding:8px}
.k32-final-trigger{padding:10px 12px 15px}.k32-final-trigger .k32-finale-entry{justify-content:center}
@keyframes k32Rotate{to{transform:rotate(360deg)}}
@keyframes k32FinaleImage{from{transform:scale(1)}to{transform:scale(1.07)}}
/* Existing UI feedback and focus refinements */
:where(.v90-screen,.mk-result,.card-detail) button{transition:filter .2s,box-shadow .2s,transform .2s}
:where(.v90-screen,.mk-result,.card-detail) button:not(:disabled):active{transform:scale(.985)}
:where(.k32-tournament-panel,.k32-finale-entry,.k32-rules-modal,.k32-battle-report) button:focus-visible{outline:2px solid #f8d596;outline-offset:3px}
@media(max-width:720px){
 .k32-tournament-panel{margin:13px 10px 20px;display:grid;grid-template-columns:40px 1fr;gap:11px;padding:15px 12px}
 .k32-tourney-mark{width:40px;height:40px;font-size:20px;align-self:start}
 .k32-tourney-copy h2{font-size:20px}.k32-tourney-actions{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:1fr 1fr}.k32-tourney-actions button{padding:9px 5px;font-size:11px;min-height:47px}
 .k32-map-heading{padding:4px 3px}.k32-report-grid{gap:5px}.k32-report-grid span{padding:11px 4px;font-size:9px}.k32-report-grid strong{font-size:19px}
 .k32-finale{min-height:430px}.k32-finale-copy{padding:26px 14px}.k32-finale h2{font-size:31px}
 .k32-finale-entry{padding:11px 12px;gap:9px;flex-wrap:wrap}.k32-finale-entry>strong{font-size:13px}
 .k32-weather{opacity:.3}
}
@media(prefers-reduced-motion:reduce){.k32-weather *, .k32-weather:before,.k32-weather:after,.k32-entrance-art,.k32-entrance-copy strong,.k32-finale:before,.k32-finale-shine,.k32-finale-entry:after{animation:none!important}.k32-entrance{animation:k32IntroOut .1s both}.k32-responsive-card::after{display:none}}
body[data-fx-quality="low"] .k32-weather,body[data-fx-quality="low"] .k32-responsive-card::after,body[data-fx-quality="low"] .k32-finale-shine{display:none!important}

/* Direct card-to-card impact and brief battlefield residue. */
.k32-battle-residue{position:absolute;z-index:2;left:37%;top:40%;width:28%;height:40%;pointer-events:none;border-radius:50%;opacity:0;animation:k32Residue 1.8s ease-out both;mix-blend-mode:screen}
.k32-battle-residue.is-embers{background:radial-gradient(ellipse at center,#f3a65051 0,#b16c3033 30%,transparent 72%);filter:blur(12px)}
.k32-battle-residue.is-mist{background:radial-gradient(ellipse at center,#b5cfe563 0,#a3b9d130 35%,transparent 75%);filter:blur(9px)}
@keyframes k32Residue{0%{transform:scale(.2) translateY(12px);opacity:.8}25%{opacity:.5}100%{transform:scale(1.9) translateY(-24px);opacity:0}}
@media (hover:hover) and (pointer:fine){.game-card.k32-responsive-card:hover{transform:perspective(800px) translateY(-5px) rotateY(var(--k32-ry,0deg)) rotateX(var(--k32-rx,0deg))}}
@media(prefers-reduced-motion:reduce){.k32-battle-residue{display:none}}

.k32-boss-awakening{position:fixed;z-index:9850;left:50%;top:18%;max-width:min(540px,calc(100vw - 24px));width:540px;transform:translateX(-50%);display:flex;align-items:center;gap:18px;padding:18px 22px;border:1px solid #e3b267bb;border-radius:13px;background:linear-gradient(105deg,#341b1af4,#0b1b29f7 75%);box-shadow:0 14px 65px #000a,0 0 44px #b6723047;pointer-events:none;animation:k32BossAlert 1.45s both}
.k32-boss-emblem{font-size:41px;color:#e5ad62;text-shadow:0 0 22px #dd9a53}
.k32-boss-awakening>div:last-child{display:flex;flex-direction:column;gap:7px}.k32-boss-awakening small{font:10px Georgia,serif;letter-spacing:.18em;color:#caa878}.k32-boss-awakening strong{font:500 25px Georgia,'Noto Serif KR',serif;color:#f9ddad}.k32-boss-awakening span{font-size:12px;color:#d2c1b2}
@keyframes k32BossAlert{0%{opacity:0;transform:translate(-50%,-14px) scale(.96)}15%,70%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-14px) scale(.98)}}
@media(max-width:720px){.k32-boss-awakening{top:10%;padding:12px 15px;gap:12px}.k32-boss-emblem{font-size:28px}.k32-boss-awakening strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){.k32-boss-awakening{animation:none!important}}


/* ========= kingdom_masterpiece_v33.css (original load order) ========= */
/* MASTERPIECE POLISH V33: no change to game mechanics */
:root{--k33-gold:#e5c286;--k33-ink:#0c1826;--k33-focus:#ffe0a2}
:where(.v90-screen,.royal-battle,.modal,.main-nav,.bottom-nav) button:focus-visible,
:where(.v90-screen,.royal-battle,.modal) a:focus-visible,
:where(.v90-screen,.modal) input:focus-visible{outline:2px solid var(--k33-focus)!important;outline-offset:3px!important;box-shadow:0 0 0 5px #b69a5633}
:where(.v90-screen,.royal-battle,.modal) button:disabled{cursor:not-allowed;filter:saturate(.62)}
.v90-library .v91-toggle-missing.active,.v90-deck .v91-toggle-missing.active{border-color:#e9c078;color:#ffe4b1;background:linear-gradient(120deg,#38301e,#142839);box-shadow:inset 0 0 17px #deb76c22,0 0 0 1px #cca66524}
.v90-library .v91-toggle-missing,.v90-deck .v91-toggle-missing{transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.k33-collection-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.k33-collection-tools .v91-toggle-missing{min-height:34px;border:1px solid #856f51;color:#d5bc90;border-radius:8px;background:#0c1a27;padding:6px 11px;font-size:11px;cursor:pointer}
.k32-battle-report .k32-report-grid strong{font-variant-numeric:tabular-nums}
.modal:focus-visible{outline:none}
#toast-container{pointer-events:none;max-width:min(440px,calc(100vw - 24px));z-index:11000}
#toast-container .toast{max-width:100%;border:1px solid #d8b57888;box-shadow:0 14px 35px #0009,0 0 28px #bc904121;backdrop-filter:blur(12px);overflow-wrap:anywhere}
:where(.v90-screen,.modal) button:not(:disabled):active{filter:brightness(1.13)}
:where(.v90-screen,.modal) button[aria-disabled="true"]{opacity:.69}
@media(hover:hover) and (pointer:fine){
 .currency{transition:filter .18s ease,transform .18s ease}
 .currency:hover{filter:brightness(1.15);transform:translateY(-1px)}
 .v90-library .v91-toggle-missing:hover,.v90-deck .v91-toggle-missing:hover{border-color:#edc689}
}
@media(max-width:720px){
 .modal{max-width:calc(100vw - 22px)}
 .k32-battle-report .k32-report-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .k32-battle-report .k32-report-grid strong{font-size:clamp(15px,4vw,23px)}
 #toast-container{max-width:calc(100vw - 32px)}
}
@media(prefers-reduced-motion:reduce){
 :where(.v90-screen,.royal-battle,.modal) button{transition:none!important}
 .currency{transition:none!important}
}


/* ========= kingdom_chronicle_pvp_v34.css (original load order) ========= */

/* KINGDOM V34 · CHRONICLE & AI ARENA — inherits original visual system */
.k34-chronicle .k34-archive-controls{display:flex;justify-content:center;margin:24px auto 10px}
.k34-chronicle .k34-archive-heading{letter-spacing:.3em;color:#d9be87;text-align:center;font-size:.75rem;margin:22px 0 16px}
.k34-pvp-panel{position:relative;margin:12px auto 14px;max-width:640px;min-height:248px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;justify-content:center;border:1px solid #94703c90;background:radial-gradient(ellipse at 50% 0%,#70532b45,#111825ed 65%),linear-gradient(145deg,#182535,#101823);padding:30px;border-radius:18px;box-shadow:0 12px 45px #0009,inset 0 1px #ddc28d30}
.k34-pvp-crest{font-size:38px;color:#dfbd7a;text-shadow:0 0 30px #cb943f80}
.k34-pvp-panel h2{margin:0;color:#eedab4;font-size:clamp(25px,3vw,36px);letter-spacing:.03em}
.k34-pvp-panel small{letter-spacing:.2em;font-size:10px;color:#b7a177}
.k34-pvp-panel p{margin:0 0 6px;color:#c2cad4;line-height:1.6;max-width:470px}
.k34-pvp-panel .v90-button{min-width:210px}
.k34-rule-chips,.k34-pvp-stats{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.k34-rule-chips span,.k34-pvp-stats span{border:1px solid #75604075;background:#d1a76016;padding:7px 11px;border-radius:30px;font-size:11px;color:#ded1b5}
.k34-pvp-stats b{font-size:14px;color:#f1d8a8}
.k34-ai-disclaimer{max-width:620px;text-align:center;margin:8px auto 22px;font-size:12px;color:#bbc4d3;line-height:1.7}
.k34-queue-timer{font-size:clamp(56px,9vw,100px);line-height:1.1;font-weight:800;color:#f3d698;font-variant-numeric:tabular-nums;text-shadow:0 0 24px #e7b36178}
.k34-count-track{height:5px;width:min(350px,100%);border-radius:8px;background:#3b4556;overflow:hidden;margin:8px 0}
.k34-count-track i{height:100%;display:block;background:linear-gradient(90deg,#97713a,#f9e0a7);transition:width .15s linear}
.k34-duel-status{z-index:6;position:relative;margin:0 auto 8px;padding:10px 13px;max-width:780px;width:95%;display:grid;grid-template-columns:1fr auto;gap:1px 12px;align-items:center;background:linear-gradient(105deg,#182a3aeF,#4a341cbd);border:1px solid #b38a505a;border-radius:10px;box-shadow:0 4px 20px #0006;color:#f8e1b5}
.k34-duel-status div:first-child{display:flex;flex-direction:column;gap:2px}.k34-duel-status small{font-size:10px;color:#ddc8a6}.k34-duel-status strong{font-size:13px}
.k34-clock{display:flex;align-items:baseline;gap:4px}.k34-clock span{font-weight:900;min-width:36px;font-size:30px;font-variant-numeric:tabular-nums}.k34-clock small{font-size:9px}
.k34-time-track{grid-column:1/-1;height:3px;background:#26323c;overflow:hidden}.k34-time-track i{display:block;width:100%;height:100%;background:#ddbf7e;transition:width .17s linear}
.k34-bot-busy{position:absolute;z-index:12;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#07101bdc;backdrop-filter:blur(7px);color:#f5dfb2;text-align:center;pointer-events:auto}
.k34-bot-sigil{font-size:58px;filter:drop-shadow(0 0 25px #e3af64);animation:k34-bot-pulse 1.6s ease-in-out infinite}
.k34-bot-busy strong{font-size:13px;color:#b5c4d4;font-weight:400}
@keyframes k34-bot-pulse{50%{transform:scale(1.15);opacity:.7}}
.k34-pvp-result,.k34-hidden-finale{text-align:center;padding:24px 12px;color:#dfd3b9}
.k34-result-sigil{display:block;font-size:56px;color:#e6bf7b;filter:drop-shadow(0 0 12px #e6b768)}
.k34-pvp-result small,.k34-hidden-finale small{font-size:11px;letter-spacing:.28em;color:#d7ba82}
.k34-pvp-result h2,.k34-hidden-finale h2{font-size:clamp(26px,5vw,46px);color:#f7e6c3;margin:12px 0}
.k34-pvp-result p,.k34-hidden-finale p{max-width:520px;margin:14px auto;line-height:1.8;color:#c2cbd8}
.k34-result-metrics{display:flex;justify-content:center;gap:12px;margin:20px auto}.k34-result-metrics span{border:1px solid #b9965a55;border-radius:8px;padding:10px 15px;color:#dac6a0}.k34-result-metrics b{display:block;color:#f8e4b6}
.k34-hidden-finale{min-height:330px;background:linear-gradient(#07111bea,#07111be4),var(--k34-ending-art) center/cover;border:1px solid #9f7d4d6b;border-radius:12px}
.k34-hidden-halo{font-size:64px;color:#edc982;animation:k34-bot-pulse 2.3s ease-in-out infinite}
.k34-engraving{font-size:27px;letter-spacing:1.2em;text-indent:1.2em;color:#ecc37b;margin:22px}
@media(max-width:640px){.k34-pvp-panel{padding:20px 12px;border-radius:12px}.k34-duel-status{padding:7px 10px;margin-bottom:5px}.k34-bot-busy{position:fixed;inset:0}.k34-chronicle .v92-stage-grid{gap:9px}}
@media(prefers-reduced-motion:reduce){.k34-bot-sigil,.k34-hidden-halo{animation:none}}


/* ========= kingdom_royal_arena_v35.css (original load order) ========= */
/* V35 Royal Arena — interaction polish, accessibility and responsive framing */
.v91-commander-buttons [data-page=pvp]{background:linear-gradient(110deg,#94703c,#dbb36e)!important;border-color:#f0d89a;color:#131b23!important}
.k35-arena .hd-pvp-shell{position:relative;z-index:1}.k35-arena .hd-pvp-heading>p{color:#d9bf86}.k35-match-panel{overflow:hidden;min-height:292px;isolation:isolate}.k35-match-panel.is-open:before{content:"";position:absolute;inset:-140%;background:conic-gradient(from 160deg,transparent 0%,#bc994517 13%,transparent 27%,#f0cc6119 48%,transparent 65%);animation:k35-panel-glow 24s linear infinite;z-index:-1}
@keyframes k35-panel-glow{to{transform:rotate(360deg)}}
.k35-crest{font-size:66px;color:#f1cc85;line-height:1;filter:drop-shadow(0 0 18px #e7b861aa);animation:k35-crest-float 4s ease-in-out infinite}
@keyframes k35-crest-float{50%{transform:translateY(-6px);filter:drop-shadow(0 0 24px #ffda97)}}
.k35-match-portal{width:160px;height:160px;position:relative;margin:3px auto 14px;display:grid;place-items:center;filter:drop-shadow(0 0 24px #e7b45e55)}
.k35-portal-ring{position:absolute;border:2px solid #d4aa64;border-radius:50%;inset:8px;box-shadow:inset 0 0 19px #f3bc5b44,0 0 13px #cb944e55}.k35-portal-ring.r1{border-style:dashed;animation:k35-spin 5s linear infinite}.k35-portal-ring.r2{inset:23px;border-color:#efd59c;border-width:1px;animation:k35-spin 9s linear infinite reverse}.k35-portal-core{font-size:49px;color:#f6dca8;text-shadow:0 0 25px #f5c36e;animation:k35-breathe 2.5s ease-in-out infinite}.k35-spark{position:absolute;width:6px;height:6px;border-radius:50%;background:#fff1c3;box-shadow:0 0 13px #fff1bf}.k35-spark.s1{top:15px;left:28px}.k35-spark.s2{bottom:26px;right:15px}.k35-spark.s3{top:69px;right:0}
@keyframes k35-spin{to{transform:rotate(360deg)}}@keyframes k35-breathe{50%{transform:scale(1.12);opacity:.6}}
.k35-rank-band{display:flex;justify-content:center;gap:14px;align-items:center;flex-wrap:wrap;margin-top:14px;color:#d8c69d;font-size:12px}.k35-rank-band>*{border-right:1px solid #ab885533;padding-right:12px}.k35-rank-band>*:last-child{border:0}.k35-rank-band strong{color:#ffdf91;font-size:15px}
.k35-arena-info{margin:22px auto;max-width:850px}.k35-rank-card{display:flex;align-items:center;gap:17px;border:1px solid #af8b5a77;background:linear-gradient(118deg,#152736,#111a26);border-radius:16px;padding:17px 22px;box-shadow:inset 0 1px #ffffff0d,0 15px 30px #0005}.k35-rank-card .k35-rank-symbol{font-size:50px;color:#f6d28f;text-shadow:0 0 20px #d6a457}.k35-rank-card small,.k35-recent>small,.k35-mode-grid article>small{font-size:10px;color:#bfa575;letter-spacing:.21em}.k35-rank-card h3,.k35-mode-grid h3,.k35-recent h3{margin:4px 0;color:#f1dbb0;font-size:21px}.k35-rank-card p,.k35-mode-grid p{margin:0;color:#bcc7d1;font-size:12px}.k35-record{margin-left:auto;color:#f1d1a0;font-weight:750;white-space:nowrap}.k35-record i{font-style:normal;color:#786e63;margin:0 6px}
.k35-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px auto}.k35-mode-grid article,.k35-recent{border:1px solid #b2946352;background:#101b29ef;border-radius:15px;padding:18px;min-width:0}.k35-mode-grid article button{border:1px solid #d5ad6599;background:linear-gradient(#4c3f29,#272b31);border-radius:8px;color:#f1ddb5;cursor:pointer;padding:9px 13px;margin-top:13px;font-size:12px}.k35-tasks div{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px 0;color:#d1d1d5;font-size:12px;border-bottom:1px solid #a78b5c2c}.k35-tasks div button{margin:0;padding:6px 10px}.k35-tasks div button:disabled{opacity:.35;cursor:default}
.k35-recent{margin:12px 0 22px}.k35-duel-row{display:grid;grid-template-columns:1fr 70px auto;gap:8px;align-items:center;padding:10px 2px;border-bottom:1px solid #ffffff13;color:#d8dbe2}.k35-duel-row strong{font-size:11px}.k35-duel-row .won{color:#e2bd78}.k35-duel-row .lost{color:#9eacbb}.k35-duel-row small{color:#8795a3}
.k35-timer{width:88px;height:88px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0}.k35-timer svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.k35-timer circle{fill:none;stroke-width:5}.k35-timer-bg{stroke:#9d89664f}.k35-timer-ring{stroke:#f5cf82;stroke-linecap:round;stroke-dasharray:213.63;stroke-dashoffset:0;transition:stroke-dashoffset .18s linear,stroke .3s}.k35-timer strong{font-size:31px;line-height:1.08;color:#fff0cb;font-variant-numeric:tabular-nums;text-shadow:0 0 12px #c6a05b}.k35-timer small{font-size:9px;color:#e9cf9e}.k35-timer.is-urgent{animation:k35-urgent .6s ease-in-out infinite alternate}.k35-timer.is-urgent .k35-timer-ring{stroke:#ff5e61}@keyframes k35-urgent{to{filter:drop-shadow(0 0 11px #ff4343)}}
.k35-alias-modal{text-align:center;padding:20px 12px;color:#e0d4bd}.k35-alias-modal .k35-alias-crest{font-size:64px;color:#e9c77b}.k35-alias-modal small{letter-spacing:.25em;color:#c7ab77}.k35-alias-modal h2{margin:10px 0;color:#f7ddb0}.k35-alias-modal p{color:#bec8d5}.k35-alias-modal label{display:block;text-align:left;max-width:360px;margin:20px auto 6px;color:#f2d8a6}.k35-alias-modal input{display:block;width:100%;max-width:360px;margin:auto;border:1px solid #af8f63;border-radius:9px;background:#101e2e;color:white;font-size:18px;padding:15px;outline-offset:3px}.k35-alias-modal button{max-width:360px;margin:18px auto}.k35-alias-modal .k35-alias-error{color:#ffb2ad;min-height:21px}
.k35-result-scene{position:relative;isolation:isolate;text-align:center;overflow:hidden;border-radius:16px;padding:28px 18px 32px;min-height:470px;background:linear-gradient(180deg,#061222dd,#07111aee),var(--k35-result-bg) center/cover;border:1px solid #cba36377;box-shadow:inset 0 1px #fff2b732;color:#f4dfb3}.k35-result-scene.k35-defeat{border-color:#77899d88;background:linear-gradient(180deg,#08111ae8,#121a28f5),var(--k35-result-bg) center/cover}.k35-result-rays{position:absolute;inset:-90%;z-index:-1;display:grid;place-items:center;animation:k35-panel-glow 26s linear infinite}.k35-result-rays i{height:160%;width:20px;grid-area:1/1;background:linear-gradient(transparent,#ffe09e35,transparent);transform:rotate(0)}.k35-result-rays i:nth-child(2){transform:rotate(45deg)}.k35-result-rays i:nth-child(3){transform:rotate(90deg)}.k35-result-rays i:nth-child(4){transform:rotate(135deg)}.k35-result-medallion{width:110px;height:110px;display:grid;place-items:center;margin:12px auto;border-radius:50%;border:2px solid #efce88;background:radial-gradient(circle,#99753c,#2a2725 65%,#131e2a);box-shadow:0 0 42px #dba856a3,inset 0 0 18px #f2d19777;font-size:57px;animation:k35-crest-float 3s ease-in-out infinite}.k35-defeat .k35-result-medallion{border-color:#8394a4;background:radial-gradient(circle,#4d5a66,#182433 69%);box-shadow:0 0 28px #8192a450}.k35-result-scene>small{color:#d7bb86;letter-spacing:.3em}.k35-result-scene h2{margin:12px 0 3px;font-size:clamp(36px,6vw,65px);text-shadow:0 0 25px #e8bb68aa;color:#ffe6b6}.k35-result-scene.k35-defeat h2{color:#bacbd8;text-shadow:none}.k35-result-scene>p{font-size:14px;color:#e2d8c4}.k35-result-scene>p span{color:#d9ae69;margin:0 12px}.k35-result-rank{display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid #dabb7d33;border-bottom:1px solid #dabb7d33;margin:23px 4px;padding:18px 4px}.k35-result-rank>span{font-size:18px;color:#f7db9e}.k35-result-rank>strong{font-size:26px;color:#e9c36f}.k35-result-rank>small{color:#c9c6ba}.k35-result-stats{display:flex;gap:10px;justify-content:center}.k35-result-stats>span{flex:1;min-width:0;border:1px solid #d3b47b44;background:#141e2b99;border-radius:10px;padding:9px;color:#cbbf9f;font-size:10px;letter-spacing:.1em}.k35-result-stats b{display:block;font-size:23px;color:#f2d6a2;margin-top:4px}.k35-bracket-note{color:#f8d78d!important}.k35-result-continue{margin:25px auto 0;max-width:350px}
@media(max-width:700px){.k35-mode-grid{grid-template-columns:1fr}.k35-rank-card{padding:13px;gap:9px}.k35-rank-card .k35-rank-symbol{font-size:37px}.k35-rank-card h3{font-size:17px}.k35-record{font-size:11px}.k35-timer{width:66px;height:66px}.k35-timer strong{font-size:25px}.k34-duel-status{grid-template-columns:1fr 66px}.k35-result-scene{min-height:410px;padding:20px 12px}.k35-result-stats b{font-size:17px}.k35-match-portal{width:136px;height:136px}.k35-duel-row{grid-template-columns:1fr 52px auto;font-size:12px}.k35-arena .hd-pvp-heading h1{font-size:clamp(30px,9vw,54px)}}
@media(prefers-reduced-motion:reduce){.k35-portal-ring,.k35-portal-core,.k35-result-rays,.k35-result-medallion,.k35-crest,.k35-match-panel:before,.k35-timer.is-urgent{animation:none!important}}

.k35-match-panel{width:min(650px,100%);max-width:650px;margin-left:auto;margin-right:auto}

.k35-result-rays{opacity:.18;pointer-events:none}.k35-result-rays i{width:8px}

.k35-rival-button{margin-top:13px;background:linear-gradient(112deg,#604929,#2b3037);border:1px solid #ad8850;border-radius:8px;padding:9px 14px;color:#f7dba4;font-size:12px;cursor:pointer}


/* ========= kingdom_result_polish_v36.css (original load order) ========= */
/* 千年王國 V36 — Photo-free result layers. Earned card artwork is intentionally preserved. */
:root{--k36-gold:#f1cb86;--k36-gold2:#c79a56;--k36-silver:#b7d0e4}
/* Hide game notices behind any full result so they never cross the bottom reward panel. */
body:has(.mk-result-v114) #toast-container,body:has(.k35-result-scene) #toast-container,body:has(.k32-practice-result) #toast-container,body:has(.k26-receipt-premium) #toast-container{visibility:hidden!important;pointer-events:none!important}
/* Solid, independent outcomes; never reveal the game board behind them. */
#overlays .overlay-shade:has(.mk-result-v114),#overlays .overlay-shade:has(.k35-result-scene),#overlays .overlay-shade:has(.k32-practice-result),#overlays .overlay-shade:has(.k26-receipt-premium){position:fixed;inset:0;background:#030914!important;backdrop-filter:none!important;z-index:100000}
#overlays .overlay-shade:has(.k35-result-scene) .modal,#overlays .overlay-shade:has(.k32-practice-result) .modal,#overlays .overlay-shade:has(.k26-receipt-premium) .modal{width:min(800px,calc(100vw - 28px))!important;max-width:800px!important;max-height:94dvh!important;overflow-y:auto!important;padding:0!important;background:#091525!important;border:1px solid #94784e!important;border-radius:17px!important;box-shadow:0 0 0 1px #e0bc8140,0 24px 90px #000!important}
#overlays .overlay-shade:has(.k35-result-scene) .modal-close,#overlays .overlay-shade:has(.k32-practice-result) .modal-close,#overlays .overlay-shade:has(.k26-receipt-premium) .modal-close{position:absolute;top:15px;right:15px;z-index:35;color:#f7dcac;background:#081522e8;border:1px solid #ad8d5b;border-radius:50%;width:34px;height:34px}
/* Shared immersive stage: ornate, luminous, CSS-only geometry. */
#overlays .mk-result-v114,#overlays .k35-result-scene,#overlays .k32-practice-result,#overlays .k26-receipt-premium{--k36-tone:#d4a65f;--k36-halo:#edbf7060;isolation:isolate;background:radial-gradient(ellipse 50% 28% at 50% 23%,#6a49254f,transparent 90%),radial-gradient(ellipse 75% 48% at 50% 0%,#1c334b,#0c1b2d 64%,#071220 100%)!important;background-image:radial-gradient(ellipse 50% 28% at 50% 23%,#6a49254f,transparent 90%),radial-gradient(ellipse 75% 48% at 50% 0%,#1c334b,#0c1b2d 64%,#071220 100%)!important}
#overlays .mk-result-v114.mk-defeat,#overlays .k35-result-scene.k35-defeat{--k36-tone:#8faec6;--k36-halo:#85a8d050;background:radial-gradient(ellipse 65% 31% at 50% 20%,#6886a12f,transparent 80%),linear-gradient(145deg,#111d30,#081422 68%,#060e1a)!important;background-image:radial-gradient(ellipse 65% 31% at 50% 20%,#6886a12f,transparent 80%),linear-gradient(145deg,#111d30,#081422 68%,#060e1a)!important}
/* Campaign result: remove previous panoramic/chapter art completely. */
#overlays .mk-result-v114 .mk-result-cinematic{background:radial-gradient(circle at 50% 46%,var(--k36-halo),transparent 24%),repeating-radial-gradient(circle at 50% 47%,transparent 0 43px,#d6b37514 44px 45px,transparent 46px 77px),linear-gradient(180deg,#0f2135,#0a1829)!important;background-image:radial-gradient(circle at 50% 46%,var(--k36-halo),transparent 24%),repeating-radial-gradient(circle at 50% 47%,transparent 0 43px,#d6b37514 44px 45px,transparent 46px 77px),linear-gradient(180deg,#0f2135,#0a1829)!important}
#overlays .mk-result-v114.mk-defeat .mk-result-cinematic{background:radial-gradient(circle at 50% 46%,#8ea5c34d,transparent 24%),repeating-radial-gradient(circle at 50% 47%,transparent 0 43px,#bbccde13 44px 45px,transparent 46px 77px),linear-gradient(180deg,#152438,#0a1726)!important;background-image:radial-gradient(circle at 50% 46%,#8ea5c34d,transparent 24%),repeating-radial-gradient(circle at 50% 47%,transparent 0 43px,#bbccde13 44px 45px,transparent 46px 77px),linear-gradient(180deg,#152438,#0a1726)!important}
#overlays .mk-result-v114 .mk-result-cinematic-shade{background:transparent!important}
#overlays .mk-result-v114 .mk-result-cinematic::after{background:linear-gradient(180deg,transparent 70%,#0c1b2b)!important}
#overlays .mk-result-v114 .mk-result-royal-body{background:linear-gradient(180deg,#0b1a2b,#081422)!important}
#overlays .mk-result-v114 .mk-result-royal-stats{flex-wrap:wrap;justify-content:center}
#overlays .mk-result-v114 .mk-result-royal-stats>div{flex:1 1 145px}
#overlays .mk-result-v114 .mk-result-royal-reward{background:linear-gradient(115deg,#142b3b,#0a192a)!important}
/* PVP end screen: no photograph and no layer leaking through the modal. */
#overlays .k35-result-scene{position:relative;border:0!important;border-radius:0;min-height:unset;padding:35px 27px 32px;background:radial-gradient(circle at 50% 16%,#8c602d66,transparent 27%),repeating-radial-gradient(circle at 50% 26%,transparent 0 71px,#caaa6c14 72px 73px,transparent 74px 113px),linear-gradient(180deg,#172e42,#0d1d30 58%,#071423)!important;background-image:radial-gradient(circle at 50% 16%,#8c602d66,transparent 27%),repeating-radial-gradient(circle at 50% 26%,transparent 0 71px,#caaa6c14 72px 73px,transparent 74px 113px),linear-gradient(180deg,#172e42,#0d1d30 58%,#071423)!important}
#overlays .k35-result-scene.k35-defeat{background:radial-gradient(circle at 50% 16%,#6b879f58,transparent 30%),repeating-radial-gradient(circle at 50% 26%,transparent 0 71px,#c2d3ec10 72px 73px,transparent 74px 113px),linear-gradient(180deg,#1b2a3c,#0b1a2a 58%,#07121e)!important;background-image:radial-gradient(circle at 50% 16%,#6b879f58,transparent 30%),repeating-radial-gradient(circle at 50% 26%,transparent 0 71px,#c2d3ec10 72px 73px,transparent 74px 113px),linear-gradient(180deg,#1b2a3c,#0b1a2a 58%,#07121e)!important}
#overlays .k35-result-scene:before{content:'';position:absolute;inset:12px;border:1px solid #bf9d634d;border-radius:10px;pointer-events:none}
#overlays .k35-result-scene:after{content:'';position:absolute;inset:21px;border:1px solid #ddbd6520;border-radius:7px;pointer-events:none}
#overlays .k35-result-medallion{position:relative;width:101px;height:101px;margin:12px auto 19px;box-shadow:0 0 0 7px #e6c18411,0 0 0 9px #d9b26e55,0 0 42px #e1aa5d76,inset 0 0 29px #f4cc8755!important}
#overlays .k35-result-scene.k35-defeat .k35-result-medallion{box-shadow:0 0 0 7px #89accc12,0 0 0 9px #89accc4b,0 0 30px #8baed061,inset 0 0 22px #bed6e63d!important}
#overlays .k35-result-scene h2{position:relative;margin:13px auto 8px;line-height:1.2;letter-spacing:.045em;font-weight:900;color:#fce5b4!important;text-shadow:0 0 29px #edb65e77,0 4px 13px #000!important}
#overlays .k35-result-scene.k35-defeat h2{color:#dce8f5!important;text-shadow:0 0 24px #8caac788,0 4px 13px #000!important}
#overlays .k35-result-scene>p{color:#e1d2b5!important}
#overlays .k35-result-rank{position:relative;background:#091827a6;border:1px solid #d0a96b4a;border-radius:10px;padding:14px 10px;margin:21px 0 14px}
#overlays .k35-result-rank strong{font-size:clamp(27px,4vw,40px)}
#overlays .k35-result-stats>span{background:linear-gradient(165deg,#1b2d41,#0b1a2b)!important;border:1px solid #ba955c66!important}
#overlays .k35-result-continue{min-height:50px;max-width:430px;margin-top:24px;box-shadow:0 10px 33px #0008!important}
/* Other reward surfaces: CSS lights/medals, not old battle imagery. */
#view .v90-rewards{--screen-art:none!important;background:radial-gradient(ellipse at 50% 0%,#3c3b2852,transparent 39%),linear-gradient(150deg,#101f31,#0a1626)!important}
#view .v90-rewards .v90-ambient{background-image:radial-gradient(ellipse 70% 45% at 50% 0%,#ab834622,transparent),linear-gradient(180deg,#14253a,#091524)!important}
#overlays .k26-receipt-premium{background:radial-gradient(circle at 50% 20%,#5d492e62,transparent 42%),linear-gradient(145deg,#17283b,#091725 75%)!important}
#overlays .k32-practice-result{padding:35px 27px!important;background:radial-gradient(circle at 50% 10%,#6e5b3e44,transparent 40%),linear-gradient(155deg,#152a3d,#091723)!important}
@media(max-width:700px){#overlays .k35-result-scene{padding:29px 13px 23px}#overlays .k35-result-scene:before{inset:6px}#overlays .k35-result-scene:after{inset:12px}#overlays .k35-result-rank{gap:8px}#overlays .k35-result-stats>span{padding:9px 5px}#overlays .mk-result-v114 .mk-result-cinematic{height:clamp(200px,29dvh,270px)!important}#overlays .mk-result-v114 .mk-result-royal-stats>div{flex:1 1 95px;min-height:65px!important}}
@media(prefers-reduced-motion:reduce){#overlays .k35-result-rays,#overlays .k35-result-medallion{animation:none!important}}


/* ========= kingdom_nav_unified_v36_2.css (original load order) ========= */
/* V36.2 · PVP uses exactly the same unlocked/active styles as every other nav item.
   Old always-on highlights have been removed from app.css, V35 and V36.1. */
html body #main-nav .nav-btn[data-page="pvp"].k36-pvp-locked:not(.active) {
  color:#8f98a4!important;
  opacity:.7!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html body #main-nav .nav-btn[data-page="pvp"].k36-pvp-locked:not(.active) .nav-icon {
  color:#9d907e!important;
  filter:none!important;
}
html body #bottom-nav .bottom-tab[data-page="pvp"].k36-pvp-locked:not(.active){
  color:#8292a0!important;
  opacity:.72!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}


/* ========= kingdom_royal_achievements_v37.css (original load order) ========= */
/* V37 · Royal Achievement Archive */
.v96-rewards .v92-missions-head{align-items:flex-start!important}
.k37-achieve-sub{display:block;color:#aab5bb;font:11px/1.5 system-ui,sans-serif;margin-top:5px}
.k37-mastery{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;margin:9px 0 12px;background:linear-gradient(120deg,#152436,#0b1522);border:1px solid #ae884c55;border-radius:12px;position:relative;overflow:hidden}
.k37-mastery::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% -40%,#cfa46423,transparent 55%);pointer-events:none}
.k37-mastery>div:not(.k37-mastery-progress){display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.k37-mastery small{font:10px/1.3 system-ui,sans-serif;color:#b7bdbd}
.k37-mastery strong{font:700 23px/1.2 Georgia,serif;color:#efd3a0;white-space:nowrap}
.k37-mastery em{font-size:12px;color:#a5abb2;font-style:normal}
.k37-mastery-progress{grid-column:1 / -1;height:4px;background:#354052;border-radius:3px;overflow:hidden}
.k37-mastery-progress span{display:block;height:100%;background:linear-gradient(90deg,#9c7a4c,#f2d3a1);box-shadow:0 0 12px #e2bb70aa;transition:width .4s ease}
.k37-filters{display:flex;flex-wrap:nowrap;overflow:auto;gap:6px;padding:0 2px 11px;scrollbar-width:thin}
.k37-filter{flex:0 0 auto;border:1px solid #82694878;background:#152436;color:#c8cfce;border-radius:24px;padding:8px 12px;cursor:pointer;font:600 11px/1 system-ui,sans-serif;min-height:34px;transition:background .15s,border-color .15s,color .15s}
.k37-filter small{margin-left:4px;opacity:.72;font-size:9px}
.k37-filter.is-active{background:linear-gradient(140deg,#745631,#b79256);border-color:#efcf8c;color:#140e08;box-shadow:0 3px 15px #b78e3e35}
.k37-filter:focus-visible{outline:2px solid #f7d79f;outline-offset:2px}
.k37-bulk{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 10px;margin-bottom:10px;border:1px solid #bb945766;border-radius:10px;background:#49351b55;color:#e7cf9a;font:11px system-ui,sans-serif}
.k37-bulk button{border:1px solid #f3d39c!important;border-radius:7px;background:linear-gradient(110deg,#d9b77c,#aa8248)!important;color:#24180c!important;padding:8px 12px;font:700 11px system-ui,sans-serif;cursor:pointer}
.v96-rewards .k37-achievement-list{max-height:min(630px,65dvh)!important;overflow:auto;scrollbar-width:thin;min-height:100px}
.v96-rewards .k37-mission{transition:box-shadow .2s,transform .2s}
.v96-rewards .k37-mission:hover{box-shadow:0 4px 20px #b08d4b22!important;transform:translateY(-1px)}
.v96-rewards .k37-mission .v92-mission-top{display:flex;align-items:flex-start;gap:8px}
.k37-task-name{min-width:0;display:flex;flex-direction:column;gap:4px}
.k37-task-name small{font:10px/1.4 system-ui,sans-serif!important;color:#b4b3ac!important;white-space:normal!important;overflow-wrap:anywhere}
.k37-task-name strong{font-size:13px!important;line-height:1.45!important}
.v96-rewards .k37-mission .v92-mission-top>small{font-variant-numeric:tabular-nums;font-size:10px!important;white-space:nowrap}
.k37-empty{color:#a9b5c1;text-align:center;padding:36px 12px;font-size:12px}
@media(max-width:760px){.v96-rewards .k37-achievement-list{max-height:calc(100dvh - 385px)!important;min-height:210px!important;overflow:auto!important}.k37-filter{min-height:37px}.k37-mastery{padding:11px}.v96-rewards .k37-mission{min-height:94px!important}.k37-task-name strong{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.k37-mission,.k37-mastery-progress span,.k37-filter{transition:none!important}}


/* ========= kingdom_royal_attendance_v38.css (original load order) ========= */
/* V38 attendance milestone styling; no result backdrop images */
.v96-rewards .v93-day-card.k38-milestone{border-color:#d2a761aa!important;background:linear-gradient(145deg,#322b20,#14202e 70%)!important;box-shadow:inset 0 1px 0 #f1c77a22,0 3px 18px #9f76321b;position:relative}
.v96-rewards .v93-day-card.k38-milestone.current{box-shadow:0 0 0 1px #e4bc6e,inset 0 0 28px #bd8e3f23,0 3px 26px #dcb86b3a!important}
.k38-milestone-badge{display:inline-block!important;vertical-align:middle;margin-left:7px;padding:3px 6px;font:700 9px/1.2 system-ui,sans-serif;color:#1f1b15;background:linear-gradient(130deg,#f5da9c,#c69955);border-radius:4px;letter-spacing:0;white-space:nowrap}
.v96-rewards .k38-milestone .k26-day-content span{color:#efd19f!important;font-weight:650}
@media(max-width:760px){.k38-milestone-badge{margin-left:4px;font-size:8px;padding:2px 4px}.v96-rewards .k38-milestone .k26-day-content span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.v96-rewards .v93-day-card.k38-milestone{animation:none!important}}


/* ========= kingdom_mythic_event_v39.css (original load order) ========= */
/* Kingdom V39 / ticket-gated mythic event + streamlined PVP naming */
#view .v39-summon-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,250px);align-items:center;gap:clamp(10px,1.6vw,22px);margin-bottom:14px}
#view .v39-summon-heading{min-width:0}
#view .v39-summon-heading h1{font-size:clamp(26px,3.1vw,49px);line-height:1.15;letter-spacing:-.045em;margin:.1em 0 .25em;white-space:normal;word-break:keep-all}
#view .v39-summon-heading p{font-size:clamp(11px,1vw,14px);line-height:1.65;color:#b5c3d3;max-width:42ch}
#view .v39-mythic-event{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:144px;gap:6px;text-align:left;padding:18px 16px;cursor:pointer;color:#f6e8c8;background:radial-gradient(circle at 75% 25%,#7b548045,transparent 52%),linear-gradient(130deg,#292034,#141b2d 67%,#12131d);border:1px solid #a683b6a6;border-radius:13px;box-shadow:inset 0 0 25px #d2a7e910,0 15px 26px #0005;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
#view .v39-mythic-event:before{content:'✧';position:absolute;right:9px;top:6px;font-size:81px;line-height:1;color:#e7d4ff13;pointer-events:none}
#view .v39-mythic-event:focus-visible{outline:2px solid #f4dca4;outline-offset:3px}
#view .v39-mythic-event:hover{transform:translateY(-2px);border-color:#edcaefa8;box-shadow:0 14px 35px #5e427133}
#view .v39-mythic-event small{font:700 9px/1.2 system-ui,sans-serif;letter-spacing:.16em;color:#d0bbdf}
#view .v39-mythic-event strong{font-size:clamp(17px,1.8vw,24px);letter-spacing:-.04em;white-space:normal;line-height:1.3;color:#ffe7ad}
#view .v39-mythic-event>span:not(.v39-mythic-glimmer){font-size:11px;color:#d5c7dc}
#view .v39-mythic-event em{font-size:11px;font-style:normal;color:#f4d89a;border:1px solid #d4a97650;border-radius:99px;padding:5px 10px;background:#14132177}
#view .v39-mythic-event.is-ready{border-color:#e5bff4;box-shadow:inset 0 0 23px #daacef1b,0 0 20px #cb8cee2a}
#view .v39-mythic-event.is-ready .v39-mythic-glimmer{position:absolute;inset:-80% -25%;background:linear-gradient(105deg,transparent 42%,#fff4d517 49%,transparent 57%);animation:v39MythicSweep 5.5s ease-in-out infinite;pointer-events:none}
#view .v39-mythic-event.is-locked{filter:saturate(.72)}
@keyframes v39MythicSweep{0%,25%{transform:translateX(-95%)}65%,100%{transform:translateX(95%)}}
.v39-mythic-modal{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:28px 12px 16px;min-height:330px;color:#f5e7ce}
.v39-mythic-modal .v39-mythic-aura{position:absolute;z-index:-1;inset:-60px -10px;background:radial-gradient(ellipse at 50% 26%,#9877b32a,transparent 58%)}
.v39-mythic-modal>small{letter-spacing:.20em;color:#dfbaf3;font-size:10px}
.v39-mythic-modal .v39-mythic-sigil{display:grid;place-items:center;width:106px;height:106px;margin:4px auto;border-radius:50%;font-size:54px;color:#f8e5b2;background:radial-gradient(circle,#a27ac53c,#49364b44 48%,transparent 71%);border:1px solid #deb8e965;box-shadow:0 0 36px #b48ed22e,inset 0 0 23px #ffdca51c;animation:v39MythicPulse 3.6s ease-in-out infinite}
@keyframes v39MythicPulse{0%,100%{box-shadow:0 0 20px #b48ed220,inset 0 0 18px #ffdca51b}50%{box-shadow:0 0 40px #b48ed255,inset 0 0 32px #ffdca544}}
.v39-mythic-modal h2{font-size:clamp(25px,4vw,39px);line-height:1.25;color:#ffe7b1;margin:0}
.v39-mythic-modal p{font-size:13px;line-height:1.75;color:#c9bfd2;max-width:37ch;margin:0}
.v39-ticket-balance{border:1px solid #e6cb9e69;background:#2c2635a8;padding:11px 20px;border-radius:9px;color:#ffe5af}
.v39-ticket-balance b{font-size:19px;margin-left:13px}
.v39-mythic-modal .v39-mythic-pending{color:#b9bfcd;font-size:11px;max-width:36ch}
.v39-mythic-modal .v39-mythic-close{background:linear-gradient(115deg,#e8cc98,#bb9964);color:#211a1a;border:0;border-radius:8px;font-weight:750;padding:12px 30px;cursor:pointer;min-width:160px}
.k26-receipt-item.k26-ticket{border-color:#d5a6ef7d!important;background:linear-gradient(135deg,#282138,#202535)!important}
.k26-receipt-item.k26-ticket .k26-receipt-icon{color:#e9c6ff}
@media(max-width:900px){#view .v39-summon-header{grid-template-columns:1fr;gap:13px}#view .v39-mythic-event{min-height:116px;padding:14px}#view .v39-summon-heading h1{font-size:clamp(26px,5vw,38px)}}
@media(max-width:600px){#view .v39-mythic-event{min-height:105px;gap:4px;padding:12px 14px}#view .v39-mythic-event strong{font-size:18px}#view .v39-summon-heading h1{font-size:clamp(27px,7vw,33px)}.v39-mythic-modal{min-height:290px;padding:16px 4px}}
@media(prefers-reduced-motion:reduce){#view .v39-mythic-event,.v39-mythic-sigil{animation:none!important;transition:none!important}#view .v39-mythic-event.is-ready .v39-mythic-glimmer{animation:none!important}}


/* ========= kingdom_royal_design_v40.css (original load order) ========= */
/* 千年王國 · V40 ROYAL DESIGN REBORN
   A single late-loading cohesive presentation layer. This intentionally leaves
   battle rules, UI IDs, rewards, localization, navigation and persistence alone.
   No external font fetches / font-file redistribution: use quality local stacks.
*/
:root{
 --k40-ink:#06101c;--k40-panel:#0d1c2c;--k40-panel-2:#142639;
 --k40-rim:#a88959;--k40-line:rgba(222,190,139,.29);
 --k40-ivory:#f7e8ce;--k40-muted:#b9c7d7;--k40-gold:#e4bc7d;
 --k40-royal:"Noto Serif KR","Noto Serif CJK KR","Nanum Myeongjo","KoPub Batang","Batang","바탕",Georgia,serif;
 --k40-sans:"Pretendard Variable","Pretendard","SUIT Variable","SUIT","Noto Sans KR","Noto Sans CJK KR","Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",system-ui,sans-serif;
 --k40-mono:"Segoe UI Variable","Segoe UI","Inter","Arial",sans-serif;
}
html,body,.app-shell,.view,#view,.modal,.sidebar{font-family:var(--k40-sans)!important;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;}
html[lang="mn"],html[lang="mn"] body{font-family:"Noto Sans","Arial",var(--k40-sans)!important;}
button,input,select,textarea{font-family:var(--k40-sans)!important;font-kerning:normal;}
:is(.v90-screen,.modal,.hd-pvp-page) h1,
:is(.v90-screen,.modal,.hd-pvp-page) h2,
:is(.v90-screen,.modal,.hd-pvp-page) h3{word-break:keep-all;text-wrap:balance;}
#view :is(.v90-screen,.hd-pvp-page) :is(h1,h2),
#overlays :is(.k35-result-scene,.mk-result-v114,.k26-receipt-premium,.v39-mythic-modal) h2{
 font-family:var(--k40-royal)!important;font-weight:700!important;
 letter-spacing:-.054em!important;line-height:1.24!important;
 color:var(--k40-ivory)!important;text-shadow:0 3px 13px rgba(0,0,0,.49)!important;
}
#view :is(.v90-screen,.hd-pvp-page) h1{font-size:clamp(30px,3.5vw,54px)!important}
#view :is(.v90-screen,.hd-pvp-page) h2{font-size:clamp(21px,2.2vw,32px)}
#view :is(.v90-screen,.hd-pvp-page) h3{font-size:clamp(17px,1.45vw,23px);letter-spacing:-.035em!important}
#overlays .modal-title{font-family:var(--k40-royal)!important;font-weight:700!important;font-size:clamp(22px,3vw,33px)!important;letter-spacing:-.045em!important}
#view :is(p,small,span),#overlays :is(p,small){text-rendering:optimizeLegibility}
#view :is(.v90-screen,.hd-pvp-page) :is(p,li),#overlays .modal p{line-height:1.62;word-break:keep-all}
#view .v90-kicker,#view .hd-pvp-overline,
#view :is(.v91-panel-kicker,.v92-missions-head,.v96-deck-caption,.v90-screen) small,
#overlays :is(.k35-result-scene,.k26-receipt-premium,.mk-result-v114) > small{
 letter-spacing:.10em;font-weight:650;
}
#view :is(.v90-screen,.hd-pvp-page) :is(button,.v90-button),
#overlays :is(button,.btn,.mk-result-royal-primary,.k26-receipt-confirm){letter-spacing:-.028em!important;font-weight:700!important;}
#view :is(.v91-next-copy,.k35-rank-band,.k35-record,.k37-mastery,.k26-daily-stat) strong,
#overlays :is(.k35-result-scene,.k26-receipt-premium,.mk-result-v114) strong,
#gold-count,#gem-count{font-variant-numeric:tabular-nums;}
/* Shared panels, responsive and refined rather than boxed document paragraphs */
#view :is(.v91-commander-panel,.v91-next-stage,.v92-daily-board,.v92-missions-board,
 .v92-deck-overview,.v92-collection-board,.v92-expedition .v92-stage-card,
 .k35-match-panel,.k35-rank-card,.k35-tourney,.k35-tasks,.v93-summon-preview){
 border-color:var(--k40-line)!important;
 box-shadow:inset 0 1px 0 rgba(255,233,188,.055),0 15px 45px rgba(0,0,0,.12)!important;
}
#view .v90-screen :is(.v90-button,.k35-start,.k35-tourney button,.k35-tasks button,
 .k37-filter,.k26-inline-toggle,.v96-tabbar button){transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}
#view .v90-screen button:not(:disabled):active{transform:translateY(1px) scale(.99)}
#view .v90-screen button:focus-visible,#main-nav button:focus-visible,
#overlays button:focus-visible{outline:2px solid #f5cf91!important;outline-offset:3px}
#view .v90-button.gold,#view .k35-start,#overlays .btn.primary,#overlays .k26-receipt-confirm,
#overlays .mk-result-royal-primary,#overlays .k35-result-continue{
 color:#1d1a16!important;background:linear-gradient(140deg,#f9e7c2 0%,#e8c88f 47%,#bd8f53 100%)!important;
 border:1px solid #edc78a!important;border-radius:9px!important;
 text-shadow:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.43),0 8px 24px rgba(0,0,0,.27)!important;
}
#view :is(.v90-button.gold,.k35-start):hover,#overlays :is(.btn.primary,.k26-receipt-confirm,.mk-result-royal-primary,.k35-result-continue):hover{
 filter:brightness(1.065);box-shadow:0 12px 28px rgba(233,176,87,.17),inset 0 1px 0 #fff8!important;
}
#view :is(.v90-button.glass,.k26-inline-toggle),#overlays .mk-result-royal-secondary{
 border-color:#b4946659!important;color:#f0d9b2!important;
}
#view .v90-screen button:disabled{filter:saturate(.45);cursor:not-allowed}
#view :is(.v91-shortcuts button,.v92-stage-card,.v93-day-card,.v92-collection-grid .game-card):hover{border-color:rgba(234,198,139,.55)!important}
/* Field and archive details */
#view .game-card:not(.unowned){transition:transform .2s ease,box-shadow .22s ease,filter .2s ease;}
#view .v92-collection-grid .game-card:not(.unowned):hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.48),0 0 0 1px #e9c48744!important;}
#view .game-card :is(.card-name,.card-type){letter-spacing:-.033em!important}
#view .v90-screen .muted,#overlays .modal .muted{color:#aebed0!important}
#overlays .card-detail{gap:clamp(12px,3vw,28px)}
#overlays .card-detail>div:last-child{min-width:0;}
#overlays .card-detail .k27-card-description{font-size:13px!important;line-height:1.77!important;color:#d8e0e8!important}
#overlays .card-detail .divider{background:linear-gradient(90deg,transparent,#c2a36b66,transparent);height:1px;border:0}
#overlays .k29-cost-detail{border-radius:12px!important;border:1px solid #bca07344!important;background:linear-gradient(140deg,#15283b,#0c1b2b)!important;padding:12px!important}
#overlays .k29-cost-detail>span{line-height:1.6;font-size:12px!important}
#overlays .k29-upgrade-reason{font-size:12px!important;color:#e9b69a!important}
#overlays .k29-upgrade-ready{color:#e2c38e!important}
#overlays .k27-upgrade-button{min-height:46px!important;border-radius:8px!important}
#overlays .k27-growth-note{font-size:11px!important;color:#aab7c5!important}
/* A consistent visual language for the earned-reward modal (actual wallet numbers). */
#overlays .overlay-shade:has(.k26-receipt-premium),
#overlays .overlay-shade:has(.k35-result-scene),
#overlays .overlay-shade:has(.mk-result-v114){background:#040b14!important;backdrop-filter:none!important}
#overlays .overlay-shade:has(.k26-receipt-premium) .modal,
#overlays .overlay-shade:has(.k35-result-scene) .modal{
 width:min(720px,calc(100vw - 28px))!important;max-width:720px!important;
 max-height:94dvh!important;overflow:auto!important;padding:0!important;
 border:1px solid #a8895b8c!important;border-radius:16px!important;
 box-shadow:0 0 0 1px #241c1477,0 30px 110px #000e!important;background:#0a1726!important;
}
#overlays .k26-receipt-premium,#overlays .k35-result-scene{
 position:relative;isolation:isolate;overflow:hidden;
 border:0!important;box-shadow:none!important;
 background:radial-gradient(ellipse 50% 24% at 50% 14%,#75542e58,transparent 85%),
 linear-gradient(163deg,#17293d 0%,#0b1a2b 55%,#07121e 100%)!important;
}
#overlays .k26-receipt-premium:before,#overlays .k35-result-scene:before{
 content:'';position:absolute;inset:11px;border:1px solid #d8b67a42;border-radius:9px;
 pointer-events:none;z-index:0;
}
#overlays .k26-receipt-premium:after,#overlays .k35-result-scene:after{
 content:'';position:absolute;left:0;right:0;top:0;height:3px;
 background:linear-gradient(90deg,transparent,#cfa76177,#f1d598,transparent);border:0!important;border-radius:0!important;bottom:auto!important;opacity:.85;
 pointer-events:none;
}
#overlays .k26-receipt-premium{width:100%;padding:32px 26px 26px!important;gap:10px!important;}
#overlays .k26-receipt-premium>.k26-receipt-mark{
 width:74px!important;height:74px!important;font-size:36px!important;
 border:1px solid #d6ac6b91!important;border-radius:50%;color:#f8daaa!important;
 background:radial-gradient(circle,#90652e43,transparent 72%);
 box-shadow:0 0 0 7px #e3bb7d0c,0 0 36px #c78b4570,inset 0 0 19px #efc98b1c;
}
#overlays .k26-receipt-premium .k26-receipt-ornament{opacity:.85}
#overlays .k26-receipt-premium h2{
 font-size:clamp(26px,4.1vw,40px)!important;font-family:var(--k40-royal)!important;
 color:#f8e5c5!important;text-shadow:0 4px 20px #000b!important;margin:0 0 2px!important;
}
#overlays .k26-receipt-premium .k26-receipt-kicker{font:700 10px/1.3 var(--k40-mono)!important;letter-spacing:.21em!important;color:#cbaa72!important}
#overlays .k26-receipt-premium .k26-receipt-accent{border:1px solid #b6976355;background:#18283a;font-size:12px!important;color:#f2d5a5!important;padding:7px 18px;border-radius:99px}
#overlays .k26-receipt-premium .k26-receipt-subtitle{font-size:13px!important;color:#bfcad6!important}
#overlays .k26-receipt-premium .k26-receipt-items{
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,142px),1fr))!important;
 gap:11px!important;width:100%;margin:11px 0!important;
}
#overlays .k26-receipt-premium .k26-receipt-item{
 min-width:0!important;gap:8px!important;padding:19px 10px 16px!important;
 background:linear-gradient(165deg,#1a2d40,#0b1929)!important;
 border:1px solid #c5a16c60!important;border-radius:12px!important;
 box-shadow:inset 0 1px 0 #ffdfa01c,0 9px 18px #0004!important;
}
#overlays .k26-receipt-premium .k26-receipt-icon{width:52px!important;height:52px!important;font-size:28px!important;background:radial-gradient(circle,#a87a3544,#172639 67%)!important;border:1px solid #d6ac6b66!important;}
#overlays .k26-receipt-premium .k26-receipt-item small{font-size:11px!important;font-weight:600!important;color:#c4cfd9!important;letter-spacing:0!important;text-align:center;line-height:1.55}
#overlays .k26-receipt-premium .k26-receipt-item strong{font:750 clamp(18px,2.3vw,26px)/1.2 var(--k40-mono)!important;color:#f6dca9!important;letter-spacing:-.025em!important}
#overlays .k26-receipt-premium .k26-receipt-note{max-width:56ch!important;font-size:12px!important;line-height:1.6!important;color:#b8c7d7!important}
#overlays .k26-receipt-premium .k26-receipt-confirm{min-height:47px!important;width:min(100%,340px)!important;margin-top:8px!important}
/* PVP: remove duplicate, documentary-style record section by markup rather than hiding it.
   Results use currency paid during finishBattle, not example or mock numbers. */
#view .k35-arena .hd-pvp-heading{margin-bottom:clamp(12px,2vw,28px)}
#view .k35-arena .hd-pvp-heading h1{letter-spacing:-.055em!important}
#view .k35-arena .hd-pvp-heading p{color:#c9d2dc!important;font-size:13px!important}
#view .k35-arena .k35-rank-card{background:linear-gradient(145deg,#192c40,#101d2b)!important}
#view .k35-arena .k35-rank-card :is(h3,strong){color:#ecd1a0}
#view .k35-arena .k35-mode-grid{gap:12px}
#view .k35-arena :is(.k35-tourney,.k35-tasks){background:linear-gradient(150deg,#18283b,#0d1927)!important}
#view .k35-arena .k35-match-panel{border-radius:17px!important}
#overlays .k35-result-scene{
 width:100%;text-align:center;min-height:0!important;
 padding:clamp(30px,5vw,48px) clamp(18px,4vw,44px) 30px!important;
}
#overlays .k35-result-scene.k35-defeat{background:radial-gradient(ellipse 55% 28% at 50% 15%,#5b7a993a,transparent 79%),linear-gradient(160deg,#172537,#0a1829 63%,#07121f)!important;}
#overlays .k35-result-scene :is(.k35-result-medallion,.k35-result-rank,.k35-result-stats,.k40-arena-rewards,.k35-result-continue){position:relative;z-index:1}
#overlays .k35-result-medallion{width:98px!important;height:98px!important;font-size:46px!important;color:#f7dfb0!important;display:grid;place-items:center;margin:3px auto 17px!important;border:1px solid #d5aa6880!important;background:radial-gradient(circle,#986e2d66,#162638 71%)!important;box-shadow:0 0 0 7px #cfa96d14,0 0 45px #b7833984!important;}
#overlays .k35-result-scene.k35-defeat .k35-result-medallion{color:#d9e9f8!important;background:radial-gradient(circle,#7797b74b,#152538 73%)!important;border-color:#92b3cf88!important;box-shadow:0 0 0 7px #b0c7df11,0 0 34px #7395b759!important;}
#overlays .k35-result-scene>small{display:block;font:650 10px/1.3 var(--k40-mono)!important;letter-spacing:.20em!important;color:#cfb580!important}
#overlays .k35-result-scene h2{font-family:var(--k40-royal)!important;font-size:clamp(40px,6vw,68px)!important;line-height:1.2!important;letter-spacing:-.062em!important;margin:13px 0 10px!important;color:#fae7c2!important;text-shadow:0 0 32px #edb96577,0 4px 17px #000a!important;}
#overlays .k35-result-scene.k35-defeat h2{color:#dce8f7!important;text-shadow:0 0 23px #88a4c85c,0 4px 14px #000a!important}
#overlays .k35-result-scene>p{margin:0 auto 16px!important;font-size:14px!important;color:#d8e0e6!important;font-weight:650!important}
#overlays .k35-result-scene>p span{color:#e1bc7a!important;margin:0 9px}
#overlays .k40-arena-rewards{margin:22px auto 0;max-width:570px}
#overlays .k40-rewards-caption{display:flex;align-items:center;gap:14px;justify-content:center;margin-bottom:12px;color:#e9c98d!important;font-size:12px;letter-spacing:.09em;font-weight:750}
#overlays .k40-rewards-caption span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#d5b67e75)}
#overlays .k40-rewards-caption span:last-child{transform:rotate(180deg)}
#overlays .k40-reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;}
#overlays .k40-reward-tile{padding:17px 8px 15px;display:flex;align-items:center;flex-direction:column;gap:8px;border-radius:12px;border:1px solid #bda06e70;background:linear-gradient(155deg,#21354a,#101e30);box-shadow:inset 0 1px 0 #fff1cd13,0 10px 19px #0004}
#overlays .k40-reward-tile i{font:normal 27px/1 var(--k40-royal);color:#f2d494;text-shadow:0 0 17px #f0b96361}
#overlays .k40-reward-tile.k40-gem{border-color:#89a5d170}
#overlays .k40-reward-tile.k40-gem i{color:#abc9fa;text-shadow:0 0 16px #80aaff88}
#overlays .k40-reward-tile small{font-size:11px!important;color:#becbd9;letter-spacing:0!important}
#overlays .k40-reward-tile strong{font:750 clamp(20px,2.8vw,31px)/1 var(--k40-mono)!important;color:#f8e3bb!important;letter-spacing:-.02em}
#overlays .k40-rank{margin:16px auto 12px!important;padding:12px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;max-width:570px!important;border-radius:10px!important;background:#0b1929bd!important;border:1px solid #b698655d!important}
#overlays .k40-rank span{font-size:13px;color:#f2d8a6;font-weight:750}
#overlays .k40-rank strong{font-size:15px!important;color:#e7c58b}
#overlays .k40-rank small{font-size:11px;color:#aebdcd}
#overlays .k35-result-stats{max-width:570px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:0 auto!important}
#overlays .k35-result-stats>span{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:11px 7px!important;font-size:11px!important;letter-spacing:0!important;color:#aabacc!important;}
#overlays .k35-result-stats b{margin:0!important;font:750 17px/1 var(--k40-mono)!important;color:#eed5a6!important}
#overlays .k35-result-continue{min-height:51px!important;margin:20px auto 0!important;max-width:570px!important;width:100%!important;}
/* Campaign result: title and reward clarity */
#overlays .mk-result-v114 .mk-result-cinematic{background-image:radial-gradient(circle at 50% 42%,#c8a05c4d,transparent 35%),linear-gradient(#15283b,#0b1b2c)!important}
#overlays .mk-result-v114.mk-defeat .mk-result-cinematic{background-image:radial-gradient(circle at 50% 42%,#7793ae39,transparent 35%),linear-gradient(#142437,#0b1726)!important}
#overlays .mk-result-v114 .mk-result-royal-title{font-family:var(--k40-royal)!important;font-weight:700!important;letter-spacing:-.06em!important;text-shadow:0 0 29px #ce995c66,0 3px 16px #000b!important}
#overlays .mk-result-v114 .mk-result-royal-body{background:linear-gradient(180deg,#122336,#091523)!important}
#overlays .mk-result-v114 .mk-result-royal-stats>div{background:linear-gradient(160deg,#203144,#0e1b2b)!important;border-color:#c9a56d4e!important;border-radius:10px!important}
#overlays .mk-result-v114 .mk-result-royal-stats strong{font:700 clamp(20px,2.3vw,29px)/1.3 var(--k40-mono)!important;letter-spacing:-.02em!important}
#overlays .mk-result-v114 .mk-result-royal-reward{border-radius:12px!important;border:1px solid #b6976159!important;padding:14px!important}
/* Achievement cards / daily rewards typography and actions */
#view .v92-missions-board .k37-mastery{border-color:#baa06f57!important;background:linear-gradient(145deg,#1c3043,#0c1a2a)!important}
#view .v92-missions-board .k37-filters{gap:6px}
#view .v92-missions-board .k37-filter{border-color:#bd9e714e!important;border-radius:99px!important;padding:7px 10px!important;line-height:1.4!important}
#view .v92-missions-board .k37-filter.is-active{background:linear-gradient(135deg,#e8c88c,#b99562)!important;color:#211b16!important}
#view .v92-rewards .v93-day-card{border-color:#af935f5c!important;border-radius:12px!important}
#view .v92-rewards .v93-day-card.current{border-color:#eec782!important;box-shadow:0 0 18px #b9924b32!important}
#view .v92-rewards .v93-day-badge{letter-spacing:.12em}
#view .v92-rewards :is(.v92-daily-stat,.k26-board-heading){line-height:1.5}
/* Inputs and archive dialogs reflect a premium UI not a browser form */
#overlays .modal :is(input,select,textarea){border:1px solid #b79a6b77!important;background:#0b192a!important;color:#f7e6ca!important;border-radius:9px!important;padding:11px 12px;min-height:42px;font-size:14px!important}
#overlays .modal :is(input,select,textarea):focus{outline:2px solid #d7b579!important;outline-offset:1px}
/* Motion discipline; high effects in moments that matter, none continuously across static text. */
@keyframes k40RewardArrive{0%{opacity:0;transform:translateY(12px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
#overlays .k40-reward-tile{animation:k40RewardArrive .50s cubic-bezier(.21,.83,.26,1) both}
#overlays .k40-reward-tile:nth-child(2){animation-delay:.09s}
#overlays .k40-reward-tile:nth-child(3){animation-delay:.17s}
@media(max-width:700px){
 #view :is(.v90-screen,.hd-pvp-page) h1{font-size:clamp(29px,7.7vw,41px)!important}
 #overlays .k35-result-scene{padding:33px 15px 24px!important}
 #overlays .k35-result-medallion{width:79px!important;height:79px!important;font-size:37px!important}
 #overlays .k35-result-scene h2{font-size:clamp(37px,10vw,52px)!important}
 #overlays .k40-reward-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}
 #overlays .k40-reward-tile{min-width:0!important;padding:12px 3px!important;gap:7px!important}
 #overlays .k40-reward-tile i{font-size:24px}
 #overlays .k40-reward-tile strong{font-size:clamp(15px,5vw,22px)!important}
 #overlays .k40-rank{padding:11px 7px!important;gap:6px!important;flex-wrap:wrap}
 #overlays .k40-rank span,#overlays .k40-rank strong{font-size:12px!important}
 #overlays .k35-result-stats>span{font-size:10px!important;gap:4px;padding:9px 2px!important}
 #overlays .k35-result-stats b{font-size:15px!important}
 #overlays .k26-receipt-premium{padding:26px 12px 20px!important}
 #overlays .k26-receipt-premium .k26-receipt-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 #overlays .k26-receipt-premium .k26-receipt-item{padding:13px 6px 12px!important}
 #overlays .mk-result-v114 .mk-result-royal-stats>div{min-width:0!important}
}
@media(prefers-reduced-motion:reduce){
 #overlays .k40-reward-tile{animation:none!important}
 #view .v90-screen button,#view .game-card{transition:none!important}
}


/* ========= kingdom_mobile_one_screen_v41.css (original load order) ========= */
/*
 * KINGDOM · V41 MOBILE FRAME
 * Last layer: responsive layout only. Deliberately does not change battle rules,
 * countdowns, rewards, event handlers, localStorage keys or DOM identifiers.
 * A single PHONE VIEWPORT for the primary action, with internal scroll for lists.
 */
@media (max-width:820px) {
 :root { --k41-top:48px; --k41-bottom:calc(58px + env(safe-area-inset-bottom,0px)); --k41-gutter:9px; }
 html {width:100%; height:100%; overscroll-behavior:none;}
 body {width:100%;height:100%;margin:0;overflow:hidden!important;overscroll-behavior:none;}
 .app-shell {height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;display:block!important;}
 .sidebar{display:none!important;}
 .main-shell {width:100%!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;padding:0 0 var(--k41-bottom)!important;display:flex!important;flex-direction:column!important;}
 .topbar {position:relative!important;top:auto!important;flex:0 0 var(--k41-top)!important;height:var(--k41-top)!important;min-height:var(--k41-top)!important;max-height:var(--k41-top)!important;padding:0 8px!important;gap:4px!important;z-index:31!important;}
 .topbar .top-left {gap:5px!important;flex:0 1 auto;min-width:0!important;}
 .topbar .top-right {gap:4px!important;flex:0 0 auto;min-width:0!important;}
 .topbar .mobile-brand {display:none!important;}
 .topbar .crumb {font-size:11px!important;max-width:84px!important;line-height:1.25!important;letter-spacing:0!important;}
 .topbar .top-player {gap:3px!important;}
 .topbar .top-player #player-label{display:none!important;}
 .topbar .player-orb{width:28px!important;height:28px!important;font-size:14px!important;}
 .topbar .currency{min-width:0!important;padding:3px 6px!important;font-size:11px!important;gap:3px!important;}
 .topbar .currency strong{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;}
 .topbar .icon-button{width:29px!important;height:30px!important;min-width:29px!important;padding:0!important;}
 .topbar .royal-music-button{display:none!important;} /* sound remains available under settings */
 #view.view {box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px var(--k41-gutter) 11px!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#765f40 transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
 #view > .v90-screen,#view > .hd-community-page {box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:100%!important;margin:0!important;overflow-x:clip!important;}
 #view .v90-screen .v90-ambient{pointer-events:none!important;}
 .bottom-nav {position:fixed!important;inset:auto 0 0!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;height:var(--k41-bottom)!important;min-height:var(--k41-bottom)!important;padding:4px 3px env(safe-area-inset-bottom,0px)!important;z-index:50!important;gap:1px!important;overflow:hidden!important;border-top:1px solid rgba(217,181,113,.3)!important;background:linear-gradient(180deg,#101d2d,#050b13)!important;backdrop-filter:blur(12px);}
 .bottom-nav .bottom-tab {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;min-height:0!important;height:100%!important;padding:2px 0!important;font-size:10px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border-radius:7px!important;}
 .bottom-nav .bottom-tab span{display:block!important;font-size:18px!important;line-height:1.15!important;}
 .bottom-nav .bottom-tab.active{background:linear-gradient(180deg,rgba(228,188,116,.15),rgba(228,188,116,.04))!important;}
 #view .v90-screen :is(button,.v90-button,.v93-pack){touch-action:manipulation;}
 #view .v90-screen :is(h1,h2,h3){word-break:keep-all;overflow-wrap:break-word;}
 #view .v90-screen h1{font-size:clamp(23px,6.3vw,31px)!important;line-height:1.2!important;margin-top:2px!important;margin-bottom:5px!important;}
 #view .v90-screen .v90-kicker{font-size:10px!important;letter-spacing:.12em!important;}
 #view .v90-screen :is(.v90-button,.v92-exp-actions button){min-height:38px!important;padding:8px 10px!important;font-size:12px!important;}
 /* Home: commander and next-stage actions visible without a long intro. */
 #view .v91-home{display:flex!important;flex-direction:column!important;gap:7px!important;padding:7px 4px 9px!important;}
 #view .v91-home-intro{margin:0!important;padding:0 4px!important;}
 #view .v91-home-intro h1{font-size:clamp(24px,7vw,33px)!important;margin:1px 0 2px!important;}
 #view .v91-home-intro p{margin:0!important;font-size:11px!important;line-height:1.35!important;}
 #view .v91-home-grid{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:0!important;}
 #view .v91-commander-panel{padding:10px!important;min-height:0!important;}
 #view .v91-panel-kicker{margin-bottom:5px!important;font-size:10px!important;}
 #view .v91-commander-body{display:grid!important;grid-template-columns:clamp(68px,21vw,92px) minmax(0,1fr)!important;align-items:center!important;gap:11px!important;min-height:0!important;}
 #view .v91-commander-portrait{height:clamp(87px,16dvh,124px)!important;min-height:0!important;aspect-ratio:auto!important;width:100%!important;}
 #view .v91-commander-body h2{font-size:22px!important;margin:3px 0!important;}
 #view .v91-commander-body p{font-size:11px!important;line-height:1.4!important;margin:2px 0!important;}
 #view .v91-commander-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:7px!important;}
 #view .v91-commander-buttons button{min-height:40px!important;padding:8px 4px!important;font-size:11px!important;}
 #view .v91-home-right{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:0!important;}
 #view .v91-next-stage{min-height:clamp(95px,16dvh,137px)!important;max-height:150px!important;overflow:hidden!important;padding:8px!important;}
 #view .v91-next-copy{padding:7px!important;}
 #view .v91-next-copy strong{font-size:clamp(16px,5vw,22px)!important;line-height:1.2!important;}
 #view .v91-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
 #view .v91-shortcuts button{padding:8px!important;min-width:0!important;min-height:57px!important;gap:6px!important;}
 #view .v91-shortcuts strong{font-size:11px!important;}
 #view .v91-shortcuts small{font-size:10px!important;line-height:1.25!important;}
 #view .v91-home-foot{display:none!important;}
 /* Chronicle: current mission at top; era cards are an independently scrollable panel. */
 #view .v92-expedition{padding:5px!important;display:flex!important;flex-direction:column!important;gap:8px!important;height:100%!important;min-height:0!important;overflow:hidden!important;}
 #view .v92-exp-hero{padding:11px!important;flex:0 0 auto!important;min-height:0!important;max-height:41%!important;overflow:hidden!important;}
 #view .v92-exp-copy{padding:0!important;min-width:0!important;}
 #view .v92-exp-copy h1{font-size:clamp(21px,6vw,28px)!important;line-height:1.18!important;}
 #view .v92-exp-copy p{font-size:11px!important;line-height:1.4!important;margin:2px 0 5px!important;}
 #view .v92-exp-badges{gap:4px!important;margin:4px 0!important;flex-wrap:wrap!important;}
 #view .v92-exp-badges span{font-size:10px!important;padding:3px 6px!important;}
 #view .v92-exp-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:6px 0 0!important;}
 #view .v92-exp-actions button{min-height:37px!important;}
 #view .v92-exp-side{display:none!important;} /* redundant reward facts are already on the stage tiles */
 #view .k32-map-heading{margin:2px 0!important;font-size:11px!important;}
 #view .k32-map-track{height:5px!important;min-height:5px!important;flex:0 0 auto!important;}
 #view .v92-stage-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(95px,auto)!important;align-content:start!important;gap:7px!important;overflow-y:auto!important;overscroll-behavior:contain!important;flex:1 1 0!important;min-height:80px!important;padding:2px 1px 8px!important;scrollbar-width:thin;}
 #view .v92-stage-card{box-sizing:border-box!important;min-width:0!important;min-height:94px!important;height:105px!important;padding:9px!important;}
 #view .v92-stage-card :is(strong,small,em){max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 #view .v92-stage-card strong{font-size:13px!important;line-height:1.2!important;}
 #view .v92-stage-card small{font-size:10px!important;}
 #view .k34-archive-controls,#view .k32-finale-entry{flex:0 0 auto!important;margin:2px 0!important;}
 /* Summoning: show both ticket-gate and choices above the image, not a two-column squeezed page. */
 #view .v93-summon-refined{padding:7px 5px!important;display:flex!important;flex-direction:column!important;gap:7px!important;}
 #view .v93-summon-topbar{display:flex!important;flex-direction:column!important;gap:5px!important;}
 #view .v93-summon-copy{padding:0!important;}
 #view .v39-summon-header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(122px,37%)!important;gap:7px!important;align-items:stretch!important;margin:0 0 6px!important;}
 #view .v39-summon-heading h1{font-size:clamp(20px,5.9vw,26px)!important;margin:2px 0 5px!important;}
 #view .v39-summon-heading p{font-size:10px!important;line-height:1.4!important;margin:0!important;}
 #view .v39-mythic-event{min-height:94px!important;height:auto!important;padding:7px!important;gap:4px!important;border-radius:9px!important;}
 #view .v39-mythic-event small{font-size:8px!important;letter-spacing:.02em!important;}
 #view .v39-mythic-event strong{font-size:14px!important;line-height:1.25!important;}
 #view .v39-mythic-event>span:not(.v39-mythic-glimmer){font-size:9px!important;line-height:1.3!important;}
 #view .v39-mythic-event em{font-size:10px!important;padding:3px 6px!important;}
 #view .v93-summon-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:4px 0!important;}
 #view .v93-summon-stats>div{min-width:0!important;padding:6px 8px!important;}
 #view .v93-summon-stats small{font-size:9px!important;}
 #view .v93-summon-stats strong{font-size:18px!important;}
 #view .v93-summon-note{display:none!important;} /* information already accessible through rules/detail */
 #view .v93-summon-packs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:5px 0!important;}
 #view .v93-pack{min-height:78px!important;height:auto!important;padding:7px 5px!important;gap:2px!important;}
 #view .v93-pack .mark{font-size:19px!important;}
 #view .v93-pack strong{font-size:11px!important;line-height:1.2!important;}
 #view .v93-pack small{font-size:9px!important;line-height:1.15!important;}
 #view .v93-pack em{font-size:12px!important;}
 #view .v93-summon-visual{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;margin:0!important;padding:0!important;}
 #view .v93-summon-altar{box-sizing:border-box!important;min-height:0!important;height:clamp(175px,27dvh,240px)!important;max-height:240px!important;padding:4px!important;}
 #view .v93-summon-altar img{display:block!important;max-height:96%!important;width:auto!important;max-width:90%!important;object-fit:contain!important;margin:auto!important;}
 #view .v93-summon-preview{display:none!important;} /* two featured cards available from Deck; focus on summon altar */
 /* Deck: tabs switch visible content; only card rows scroll, not the whole screen. */
 #view .v96-deck{display:flex!important;flex-direction:column!important;gap:7px!important;height:100%!important;min-height:0!important;overflow:hidden!important;padding:7px 4px!important;}
 #view .v96-deck .v92-deck-shell{display:flex!important;flex-direction:column!important;gap:7px!important;height:100%!important;min-height:0!important;padding:0!important;}
 #view .v96-deck .v92-deck-head{flex:0 0 auto!important;gap:5px!important;margin:0!important;}
 #view .v96-deck .v92-deck-head h1{font-size:23px!important;}
 #view .v96-deck .v92-deck-head-actions{gap:5px!important;}
 #view .v96-deck .v92-deck-head-actions button{font-size:10px!important;padding:6px!important;min-height:35px!important;}
 #view .v96-deck .v96-tabbar{flex:0 0 auto!important;margin:0!important;}
 #view .v96-deck .v92-deck-overview,#view .v96-deck .v92-collection-shell{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin;}
 #view .v96-deck .v90-deck-slot,#view .v96-deck .v90-deck-slot .game-card{height:clamp(135px,24dvh,169px)!important;min-height:0!important;max-height:none!important;}
 #view .v96-deck .v92-collection-grid .game-card{height:clamp(135px,24dvh,169px)!important;min-height:0!important;max-height:none!important;}
 /* Rewards: action and tab stay in viewport, 30 days/148 achievements scroll INSIDE. */
 #view .v96-rewards{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:7px!important;overflow:hidden!important;padding:7px 4px!important;}
 #view .v96-rewards .v92-reward-head{flex:0 0 auto!important;margin:0!important;padding:4px 3px!important;min-height:0!important;}
 #view .v96-rewards .v92-reward-head h1{font-size:23px!important;}
 #view .v96-rewards .v96-tabbar{flex:0 0 auto!important;margin:0!important;}
 #view .v96-rewards .v92-reward-grid{display:block!important;flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;margin:0!important;padding:2px!important;}
 #view .v96-rewards .v92-reward-grid>section{box-sizing:border-box!important;min-width:0!important;}
 #view .v96-rewards .v92-daily-board{padding:10px!important;}
 #view .v96-rewards .v93-day-grid.is-compact,#view .v96-rewards .v93-day-grid.is-expanded{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
 #view .v96-rewards .v93-day-grid .v93-day-card.k26-day{height:clamp(99px,16dvh,125px)!important;min-height:0!important;max-height:none!important;}
 #view .v96-rewards .k26-day-content{bottom:27px!important;}
 #view .v96-rewards .v92-mission-card{min-height:70px!important;padding:8px!important;}
 #view .v96-rewards .k37-filters{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;gap:6px!important;padding-bottom:6px!important;scrollbar-width:none;}
 #view .v96-rewards .k37-filter{flex:0 0 auto!important;min-height:32px!important;}
 /* PVP: entry action visible; other modes and rankings use viewport-scoped scrolling. */
 #view .hd-pvp-page{padding:8px 5px!important;}
 #view .hd-pvp-heading{margin:0 0 7px!important;}
 #view .hd-pvp-heading h1{font-size:clamp(24px,6.5vw,31px)!important;}
 #view .k35-match-panel{min-height:0!important;padding:10px!important;gap:6px!important;}
 #view .k35-crest{font-size:42px!important;}
 #view .k35-match-portal{width:108px!important;height:108px!important;margin:3px auto 7px!important;}
 #view .k35-portal-core{font-size:36px!important;}
 #view .k35-rank-band{gap:7px!important;margin-top:6px!important;}
 #view .k35-rank-card{padding:11px!important;gap:9px!important;margin:8px 0!important;}
 #view .k35-rank-card .k35-rank-symbol{font-size:35px!important;}
 #view .k35-mode-grid{gap:7px!important;margin:8px 0!important;}
 #view .k35-mode-grid article{padding:10px!important;}
 #view .k35-mode-grid h3{font-size:15px!important;}
 #view .k35-mode-grid p{font-size:11px!important;}
 /* Battle: three full lanes + compact hand + critical buttons within 1 phone screen. */
 #view:has(> .royal-battle){padding:0!important;overflow:hidden!important;}
 #view > .royal-battle{
   --k41-lane:clamp(68px,11.8dvh,93px);
   display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
   height:100%!important;max-height:100%!important;min-height:0!important;
   padding:3px 4px!important;gap:2px!important;overflow:hidden!important;
 }
 #view .royal-battle .k34-duel-status{flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:3px 7px!important;}
 #view .royal-battle .k35-timer{width:43px!important;height:43px!important;}
 #view .royal-battle .k35-timer strong{font-size:17px!important;}
 #view .royal-battle .k35-timer small{font-size:7px!important;}
 #view .royal-battle .mk-commanders{flex:0 0 auto!important;min-height:clamp(51px,8.6dvh,69px)!important;height:clamp(51px,8.6dvh,69px)!important;margin:0!important;padding:3px 5px!important;grid-template-columns:minmax(0,1fr) 37px minmax(0,1fr) 23px!important;gap:2px!important;}
 #view .royal-battle .mk-commander img{height:38px!important;width:30px!important;min-width:30px!important;object-fit:cover!important;}
 #view .royal-battle .mk-commander-copy>strong{font-size:11px!important;line-height:1.2!important;}
 #view .royal-battle .mk-hp-label{font-size:9px!important;}
 #view .royal-battle .mk-central-crest b{font-size:20px!important;}
 #view .royal-battle .mk-retreat{width:23px!important;height:27px!important;}
 #view .royal-battle .mk-content.mk-content-minimal{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
 #view .royal-battle .mk-teams-legend{display:none!important;} /* side labels already inside each battlefield lane */
 #view .royal-battle .mk-battlefield{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:repeat(3,minmax(0,1fr))!important;
   height:100%!important;max-height:none!important;min-height:0!important;
   flex:1 1 0!important;gap:3px!important;padding:3px!important;
   overflow:hidden!important;
 }
 #view .royal-battle .mk-lane{
   display:grid!important;grid-template-columns:42px minmax(0,1fr) 11px minmax(0,1fr)!important;
   grid-template-rows:minmax(0,1fr)!important;grid-template-areas:"lane-name ally divider opponent"!important;
   height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;
   padding:2px!important;gap:2px!important;overflow:hidden!important;
 }
 #view .royal-battle .mk-lane-name{padding:2px 0!important;min-height:0!important;gap:2px!important;}
 #view .royal-battle .mk-lane-icon{height:22px!important;width:22px!important;font-size:13px!important;}
 #view .royal-battle .mk-lane-name strong{font-size:10px!important;}
 #view .royal-battle .mk-lane-name .mk-terrain-label{font-size:8px!important;}
 #view .royal-battle .mk-lane-side{min-height:0!important;max-height:none!important;height:100%!important;overflow:hidden!important;padding:1px!important;}
 #view .royal-battle .mk-side-caption{font-size:9px!important;min-height:13px!important;line-height:1!important;}
 #view .royal-battle .mk-line-units{display:flex!important;flex:1!important;align-items:stretch!important;min-height:0!important;max-height:none!important;overflow:hidden!important;gap:1px!important;}
 #view .royal-battle .mk-unit{min-height:0!important;max-height:100%!important;height:100%!important;flex:1 1 0!important;width:0!important;}
 #view .royal-battle .mk-unit .mk-unit-stats{font-size:9px!important;padding:1px!important;line-height:1.1!important;}
 #view .royal-battle .mk-front-divider{width:11px!important;min-width:0!important;overflow:hidden!important;}
 #view .royal-battle .mk-front-divider span{font-size:7px!important;}
 #view .royal-battle .mk-battle-footer{display:flex!important;flex-direction:column!important;gap:2px!important;flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:1px 0 2px!important;}
 #view .royal-battle .mk-hand-heading{min-height:16px!important;margin:0 3px!important;padding:0!important;font-size:10px!important;}
 #view .royal-battle .mk-hand-cards{flex:0 0 auto!important;height:clamp(70px,11dvh,87px)!important;min-height:0!important;max-height:none!important;padding:2px 0!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{height:calc(clamp(70px,11dvh,87px) - 5px)!important;min-height:0!important;max-height:none!important;width:clamp(59px,17vw,72px)!important;flex:0 0 clamp(59px,17vw,72px)!important;min-width:0!important;}
 #view .royal-battle .mk-hand-tile .mk-hand-tile-name{font-size:9px!important;}
 #view .royal-battle .mk-actions{display:grid!important;grid-template-columns:minmax(65px,1fr) repeat(2,minmax(0,1.1fr)) minmax(0,1.3fr)!important;gap:3px!important;min-height:0!important;padding:0!important;}
 #view .royal-battle .mk-actions .mk-command-meter,#view .royal-battle .mk-actions .mk-action,#view .royal-battle .mk-actions .mk-turn{box-sizing:border-box!important;min-height:38px!important;height:38px!important;padding:2px!important;font-size:10px!important;line-height:1.15!important;}
 #view .royal-battle .mk-actions .mk-action small{font-size:8px!important;}
 /* Overlays: only ONE centered, independently scrollable dialog, no leaked battle image. */
 #overlays{max-width:100vw!important;}
 #overlays :is(.modal,.k35-result-scene,.mk-result-v114,.k26-receipt-premium,.v39-mythic-modal){box-sizing:border-box!important;max-width:calc(100vw - 16px)!important;}
 #overlays .modal{max-height:calc(100dvh - 26px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin;}
 #overlays .k35-result-scene{padding:17px 12px!important;gap:8px!important;}
 #overlays .k35-result-medallion{width:60px!important;height:60px!important;font-size:27px!important;}
 #overlays .k35-result-scene h2{font-size:clamp(30px,8.3vw,40px)!important;line-height:1.12!important;}
 #overlays .k35-result-stats{gap:5px!important;}
 #overlays .k35-result-stats>span{padding:7px 3px!important;}
 #overlays .k40-reward-grid{gap:5px!important;}
 #overlays .k40-reward-tile{padding:8px 3px!important;}
 #overlays .k26-receipt-premium{padding:15px 10px!important;}
 #overlays .k26-receipt-item{padding:9px 5px!important;}
 .toast-container{z-index:10000!important;bottom:calc(var(--k41-bottom) + 8px)!important;max-width:calc(100vw - 16px)!important;pointer-events:none;}
}
/* Very short phone windows and landscape: preserve actions first, scroll if needed. */
@media (max-width:820px) and (max-height:650px){
 :root{--k41-top:42px;--k41-bottom:calc(52px + env(safe-area-inset-bottom,0px));}
 #view > .royal-battle .mk-commanders{height:48px!important;min-height:48px!important;}
 #view .royal-battle .mk-hand-cards{height:65px!important;}
 #view .royal-battle .mk-hand-cards .mk-hand-tile{height:60px!important;}
 #view .royal-battle .mk-actions .mk-action,#view .royal-battle .mk-actions .mk-turn,#view .royal-battle .mk-actions .mk-command-meter{height:34px!important;min-height:34px!important;}
 #view .royal-battle .mk-battle-footer{gap:1px!important;}
 #view .v91-home{overflow-y:auto!important;}
}
@media (max-width:820px) and (max-height:500px){
 #view:has(> .royal-battle){overflow-y:auto!important;}
 #view > .royal-battle{height:auto!important;max-height:none!important;min-height:430px!important;overflow:visible!important;}
 #view .royal-battle .mk-battlefield{min-height:216px!important;}
 #view .v92-expedition,#view .v96-deck,#view .v96-rewards{overflow-y:auto!important;height:auto!important;}
}
@media (max-width:350px){
 :root{--k41-gutter:5px;}
 .topbar .crumb{max-width:48px!important;}
 .topbar .currency{padding:2px 4px!important;}
 .bottom-nav .bottom-tab{font-size:9px!important;}
 #view .v39-summon-header{grid-template-columns:minmax(0,1fr) 120px!important;}
 #view .royal-battle .mk-lane{grid-template-columns:37px minmax(0,1fr) 8px minmax(0,1fr)!important;}
 #view .royal-battle .mk-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media (prefers-reduced-motion:reduce){
 #view .v90-screen,#view .v90-screen *,#view .v90-screen *::before,#view .v90-screen *::after{scroll-behavior:auto!important;}
}
/* Final layout correction: old lobby used a large desktop-only top margin. */
@media (max-width:820px){
 #view .v91-home-grid{margin-top:0!important;margin-bottom:0!important;}
 #view .v91-home-intro{flex:0 0 auto!important;}
}
/* Battle-specific desktop override was canceling the bottom bar reservation. */
@media (max-width:820px){
 .main-shell:has(.royal-battle){padding-bottom:var(--k41-bottom)!important;}
 #view:has(> .royal-battle){height:auto!important;min-height:0!important;flex:1 1 auto!important;}
 #view .royal-battle .mk-content.mk-content-minimal{flex:0 0 auto!important;height:calc(var(--k41-lane)*3 + 13px)!important;max-height:none!important;overflow:hidden!important;}
 #view .royal-battle .mk-battlefield{flex:0 0 auto!important;grid-template-rows:repeat(3,var(--k41-lane))!important;height:calc(var(--k41-lane)*3 + 12px)!important;max-height:calc(var(--k41-lane)*3 + 12px)!important;}
 #view .royal-battle .mk-lane{position:relative!important;grid-template-rows:var(--k41-lane)!important;min-height:0!important;height:var(--k41-lane)!important;max-height:var(--k41-lane)!important;}
 #view .royal-battle .mk-lane-glaze,#view .royal-battle .k32-weather{position:absolute!important;inset:0!important;pointer-events:none!important;}
 #view .royal-battle .mk-lane-name{grid-area:lane-name!important;grid-column:1!important;grid-row:1!important;position:relative!important;}
 #view .royal-battle .mk-lane-side.ally-side{grid-area:ally!important;grid-column:2!important;grid-row:1!important;}
 #view .royal-battle .mk-front-divider{grid-area:divider!important;grid-column:3!important;grid-row:1!important;}
 #view .royal-battle .mk-lane-side.enemy-side{grid-area:opponent!important;grid-column:4!important;grid-row:1!important;}
 #view .royal-battle .mk-line-units{height:calc(var(--k41-lane) - 21px)!important;max-height:calc(var(--k41-lane) - 21px)!important;}
 #view .royal-battle .mk-unit.unit.v90-field-card{height:calc(var(--k41-lane) - 24px)!important;min-height:0!important;max-height:calc(var(--k41-lane) - 24px)!important;}
 #view .royal-battle .mk-battle-footer{width:calc(100% - 5px)!important;flex:0 0 auto!important;}
}
/* Compact names without covering the round counter on 320px-wide phones. */
@media (max-width:820px){
 #view .royal-battle .mk-commander{min-width:0!important;overflow:hidden!important;}
 #view .royal-battle .mk-commander-copy{min-width:0!important;overflow:hidden!important;}
 #view .royal-battle .mk-commander-copy>strong{display:block!important;max-width:100%!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
 #view .royal-battle .mk-team-mark{display:none!important;}
 #view .royal-battle .mk-central-crest{min-height:0!important;width:37px!important;max-width:37px!important;padding:1px!important;}
 #view .royal-battle .mk-central-crest span{font-size:7px!important;white-space:nowrap!important;letter-spacing:-.02em!important;}
}
@media (max-width:350px){
 #view .royal-battle .mk-commander img{display:none!important;}
 #view .royal-battle .mk-commanders{grid-template-columns:minmax(0,1fr) 31px minmax(0,1fr) 22px!important;}
 #view .royal-battle .mk-central-crest{width:31px!important;max-width:31px!important;}
 #view .royal-battle .mk-commander-copy>strong{font-size:10px!important;}
}


/* ========= kingdom_mythic_complete_v42.css (original load order) ========= */
/* KINGDOM V42 · MYTHIC CHRONICLE | responsive, no extra large background images */
:root{--mythic-light:#ead8ac;--mythic-violet:#ac91e0}
.game-card.mythic{border:2px solid #e2d6ae!important;box-shadow:0 0 0 1px #8b65b3,0 4px 21px #0b1225,0 0 19px #9977d83d!important;background:#141525!important;position:relative;overflow:hidden}
.game-card.mythic::before{content:"";position:absolute;inset:-100%;background:linear-gradient(110deg,transparent 35%,#fbe2a030 47%,#98bdff55 50%,#ecc5ff38 54%,transparent 65%);transform:translateX(-45%);animation:v42-glisten 7s ease-in-out infinite;pointer-events:none;z-index:7}
.game-card.mythic .card-rarity{background:linear-gradient(110deg,#d4c6fd,#fff1c9,#bd8fe7);color:#261534;font-weight:900;letter-spacing:.08em}
.game-card.mythic .card-art{border-bottom:1px solid #cbabdd8a}
.game-card.mythic .card-cost{background:#151026;color:#f6dfac;border:1px solid #ebd6ac}
.game-card.mythic .card-crest{color:#f8e0ab!important;background:#392653!important}
.mk-hand-tile.mythic,.mk-unit.mythic{border:1px solid #d9b9ef!important;box-shadow:0 0 17px #ba9cff38!important}
.v90-filterbar button[data-value="mythic"].selected{background:#4c365b!important;color:#ffe7b0!important;border-color:#c6abdd!important}
.v39-mythic-event.is-ready{border-color:#d6b981!important;box-shadow:0 0 20px #bd91f02d,inset 0 0 22px #e5be7820!important}
.v42-mythic-room{position:relative;isolation:isolate;overflow:hidden;min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:clamp(12px,3vw,26px);text-align:center;background:radial-gradient(ellipse at 50% 8%,#473754 0%,#171c31 42%,#0a1423 80%);color:#f1e3cc;border:1px solid #aa90bc;border-radius:16px;box-shadow:inset 0 0 0 1px #ecd8a122}
.v42-mythic-room:before{content:"";position:absolute;inset:6px;border:1px solid #ebc37f38;border-radius:11px;pointer-events:none}
.v42-mythic-haze{position:absolute;inset:0;z-index:-1;background:conic-gradient(from 5deg at 50% 55%,transparent,#bf91dc23,transparent,#d8b35b25,transparent);animation:v42-haze 18s linear infinite;pointer-events:none}
.v42-mythic-upper{display:flex;align-items:center;flex-direction:column;gap:8px;color:#d5bfde;font-size:10px;letter-spacing:.24em}
.v42-mythic-upper b{font-size:26px;color:#ebd09b;text-shadow:0 0 21px #ffe6a9}
.v42-mythic-room h2{margin:0!important;color:#f8e3b1!important;font:700 clamp(24px,5.5vw,34px)/1.2 Georgia,'Noto Serif KR',serif!important;letter-spacing:.035em}
.v42-mythic-room p{color:#c8c1d1;line-height:1.65;max-width:410px;font-size:13px;margin:0}
.v42-mythic-locked-icon{height:100px;width:100px;border-radius:50%;display:grid;place-items:center;border:1px solid #a78a89;font-size:55px;background:radial-gradient(circle,#4c3d50,#161c32);color:#d1b9d7;box-shadow:0 0 36px #d7b3b12e}
.v42-ready-icon{box-shadow:0 0 42px #ebcd8566;animation:v42-beat 2s ease-in-out infinite}
.v42-ticket-remaining{display:block;color:#c8af8a;font-weight:600;letter-spacing:.05em;font-size:12px}
.v42-mythic-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;width:100%;max-width:420px}
.v42-mythic-primary,.v42-mythic-secondary{border-radius:8px;padding:12px 16px;min-height:44px;cursor:pointer;font-size:13px;font-weight:700}
.v42-mythic-primary{background:linear-gradient(120deg,#edd4a3,#c3a2d4,#f3dfb0);color:#211726;border:1px solid #f6deb1;flex:1}
.v42-mythic-secondary{background:#161b2b;color:#ddd0b9;border:1px solid #7d6c82}
.v42-mythic-primary:focus-visible,.v42-mythic-secondary:focus-visible,.v42-mythic-flip:focus-visible{outline:3px solid #e6b975;outline-offset:3px}
.v42-mythic-card-wrap{width:min(192px,45vw);aspect-ratio:221/350;perspective:1100px;filter:drop-shadow(0 0 24px #d6b58550);margin:3px auto}
.v42-mythic-flip{width:100%;height:100%;position:relative;display:block;border:none;border-radius:11px;background:transparent;padding:0;cursor:pointer;transform-style:preserve-3d}
.v42-mythic-card-back,.v42-mythic-card-front{display:block;position:absolute;inset:0;border-radius:10px;backface-visibility:hidden;overflow:hidden;border:2px solid #ebd2a0;box-shadow:0 0 0 1px #8968af,inset 0 0 0 4px #0d1627;background-position:center;background-size:cover}
.v42-mythic-card-back{background-image:url('royal_summon_card_back.png');filter:brightness(1.03)}
.v42-mythic-card-front{background-image:linear-gradient(0deg,#070d22f2,#040c1830 38%,transparent 65%),var(--v42-art);transform:rotateY(180deg)}
.v42-card-grade{display:block;position:absolute;top:11px;right:9px;padding:5px 8px;background:#180e2ccc;border:1px solid #ffe0a5;color:#ffe5ba;font-size:9px;letter-spacing:.1em}
.v42-card-title{display:block;position:absolute;bottom:14px;width:100%;font:700 18px/1.3 Georgia,'Noto Serif KR',serif;color:#fff0c9;text-shadow:0 2px 9px #030407;padding:0 8px}
.v42-mythic-flip.is-revealed{animation:v42-flip .95s cubic-bezier(.2,.8,.28,1) forwards;cursor:default}
.v42-mythic-copy{display:flex;flex-direction:column;gap:5px;align-items:center;min-height:48px}
.v42-mythic-copy strong{font-size:15px;color:#f7e6c3}
.v42-mythic-copy span{font-size:12px;color:#c4bdd4}
.v42-is-open .v42-mythic-card-wrap{filter:drop-shadow(0 0 30px #dfc1fe90) drop-shadow(0 0 20px #ffda9970)}
@keyframes v42-flip{0%{transform:rotateY(0) scale(1)}48%{transform:rotateY(88deg) scale(1.13)}100%{transform:rotateY(180deg) scale(1)}}
@keyframes v42-glisten{0%,63%,100%{transform:translateX(-45%)}79%{transform:translateX(45%)}}
@keyframes v42-haze{to{transform:rotate(360deg)}}
@keyframes v42-beat{50%{box-shadow:0 0 70px #ebcd8590}}
@media(max-width:430px){.v42-mythic-room{min-height:0;padding:18px 12px 14px;gap:9px}.v42-mythic-room h2{font-size:25px!important}.v42-mythic-card-wrap{width:min(164px,40vw)}.v42-mythic-actions{flex-direction:column}.v42-mythic-primary,.v42-mythic-secondary{width:100%;padding:9px}.v42-mythic-upper{gap:3px}.v42-mythic-copy{min-height:38px}}
@media(max-height:650px){.v42-mythic-room{gap:6px;padding:11px}.v42-mythic-card-wrap{width:min(155px,34vw)}.v42-mythic-upper b{font-size:19px}}
@media(prefers-reduced-motion:reduce){.v42-mythic-haze,.v42-ready-icon,.game-card.mythic::before{animation:none!important}.v42-mythic-flip.is-revealed{animation:none;transform:rotateY(180deg)}}


/* ========= kingdom_pvp_elite_v43.css (original load order) ========= */
/* V43 — Royal Arena polish. Additive only; no modification to the card economy. */
.k35-timer { isolation:isolate; transition:filter .18s ease, box-shadow .2s ease; }
.k35-timer.is-opponent { filter:drop-shadow(0 0 8px rgba(100,155,198,.38)); }
.k35-timer.is-urgent { filter:drop-shadow(0 0 12px rgba(236,124,65,.6)); }
.k35-result-scene .k40-reward-grid { grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
.k35-result-scene .k40-reward-tile strong { font-variant-numeric:tabular-nums; letter-spacing:.015em; }
.k35-result-scene .k35-result-rank { text-wrap:balance; }
.k35-result-scene .k35-result-stats { font-variant-numeric:tabular-nums; }
@media (max-width:640px){
 .k35-result-scene { max-height:calc(100dvh - 28px); overflow-y:auto; overscroll-behavior:contain; }
 .k35-result-scene .k35-result-continue { min-height:44px; }
 .k35-match-panel button, .k35-arena button { min-height:42px; }
 .k35-result-scene h2 { line-height:1.16; }
}
@media (prefers-reduced-motion: reduce){
 .k35-timer { transition:none; }
}

/* Mythic attacker illustration only: no unrelated commander portrait. */
.k43-mythic-cutin .k29-cutin-art { filter:drop-shadow(0 0 16px rgba(221,183,105,.45)) saturate(1.1); }
.k43-mythic-cutin .k29-cutin-copy { text-shadow:0 2px 12px rgba(0,0,0,.85); }
.k43-mythic-cutin .k29-cutin-copy small { color:#f5d8a2; letter-spacing:.16em; }


/* ========= kingdom_imperial_polish_v44.css (original load order) ========= */

/* V44 IMPERIAL MASTERPIECE — additive polish; no gameplay statistics changed. */
:root{--v44-gold:#e2c38d;--v44-gold-light:#fff0c9;--v44-dark:#0c1828;--v44-ink:#e7e8e8;--v44-serif:"Noto Serif KR","Noto Serif CJK KR","Noto Serif",Georgia,serif;--v44-ui:"Pretendard","Noto Sans KR","Noto Sans CJK KR",Inter,"Segoe UI",sans-serif}
html[lang="mn"]{--v44-serif:"Noto Serif",Georgia,serif;--v44-ui:"Noto Sans",Inter,"Segoe UI",sans-serif}
html,body,button,input,select,textarea{font-family:var(--v44-ui)}
.v90-screen h1,.v90-screen h2,.k35-result-scene h2,.mk-result-royal-title,.k26-receipt h2,.v42-mythic-room h2,.k35-tourney h3,.v92-exp-copy h1{font-family:var(--v44-serif);font-weight:750;letter-spacing:-.035em;text-wrap:balance;text-shadow:0 2px 22px #0008}
.k35-result-scene h2,.mk-result-royal-title,.k26-receipt h2{font-size:clamp(27px,5vw,48px);line-height:1.25}
.k40-reward-tile strong,.mk-result-royal-stats strong,.k26-receipt-item strong{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1;font-weight:800;letter-spacing:-.02em}
button{touch-action:manipulation}button:focus-visible,[role="button"]:focus-visible{outline:2px solid #f0cb80;outline-offset:3px}
.v90-button,.k35-start,.mk-turn,.mk-result-royal-primary,.k26-receipt-confirm,.k35-result-continue{position:relative;overflow:hidden;transition:filter .18s ease,transform .18s ease,box-shadow .18s ease}
.v90-button:not([disabled]):active,.mk-turn:not([disabled]):active,.k26-receipt-confirm:not([disabled]):active{transform:scale(.975)}
/* Dual-surface foil sheen; contained strictly within the true card. */
.mk-hand-tile,.mk-unit,.v90-card,.dc-card,.v90-field-card{isolation:isolate;backface-visibility:hidden;--v44-glint-x:50%;--v44-glint-y:24%;transition:box-shadow .22s ease,filter .2s ease}
.mk-hand-tile::after,.mk-unit::after,.v90-card::after,.dc-card::after,.v90-field-card::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;border-radius:inherit;opacity:0;background:radial-gradient(ellipse 65% 40% at var(--v44-glint-x) var(--v44-glint-y),#ffedb64a,transparent 70%),linear-gradient(115deg,transparent 34%,#fff1c017 49%,transparent 62%);mix-blend-mode:screen;transition:opacity .2s ease}
@media(hover:hover) and (pointer:fine){.mk-hand-tile:hover,.dc-card:hover,.v90-card:hover{transform:perspective(760px) rotateX(var(--v44-tilt-x,0deg)) rotateY(var(--v44-tilt-y,0deg)) translateY(-3px);filter:saturate(1.08)}.mk-hand-tile:hover::after,.mk-unit:hover::after,.v90-card:hover::after,.dc-card:hover::after{opacity:.92}}
.mk-hand-tile.mythic::after,.v90-card.mythic::after,.dc-card.mythic::after{background:radial-gradient(ellipse 65% 50% at var(--v44-glint-x) var(--v44-glint-y),#f9e5ff66,#b1bdff25 38%,transparent 78%),linear-gradient(110deg,transparent 28%,#fff9e224 51%,transparent 66%)}
.mk-hand-tile:active{filter:brightness(1.22);transform:translateY(-4px) scale(.99)}
/* Impact feedback uses a detached fixed overlay; never blocks touch targets. */
.v44-ward-impact{position:fixed;z-index:10002;pointer-events:none;width:78px;height:78px;transform:translate(-50%,-50%);display:grid;place-items:center;animation:v44ward .72s ease-out both}
.v44-ward-impact i{position:absolute;inset:0;border:3px solid #85d7ff;border-radius:50%;box-shadow:0 0 20px #60aaf5aa,0 0 42px #badfff66;background:radial-gradient(circle,#a9dff62b,transparent 72%)}
.v44-ward-impact b{position:relative;color:#def7ff;font-size:31px;text-shadow:0 0 12px #7bd5ff}
@keyframes v44ward{0%{opacity:0;transform:translate(-50%,-50%) scale(.22)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}}
.v44-vanquished{position:fixed;z-index:10001;pointer-events:none;background-size:cover;background-position:center;width:56px;height:76px;border:1px solid #f2cf91;box-shadow:0 0 24px #b56b40;transform:translate(-50%,-50%);animation:v44vanquish .62s ease-in both}
@keyframes v44vanquish{0%{opacity:.7;filter:brightness(1.6) grayscale(.1);clip-path:inset(0)}35%{opacity:.9;filter:brightness(2.6);clip-path:inset(0 12%)}100%{opacity:0;filter:brightness(3);transform:translate(-50%,-80%) rotate(15deg) scale(.76);clip-path:inset(0 48%)}}
.royal-battle .mk-unit:has(.mk-unit-stats) .mk-unit-image{transition:filter .2s ease}
.royal-battle.k29-critical-hero .mk-commander.ally .mk-hp-track{filter:drop-shadow(0 0 7px #de5138b5)}
/* Mythic ritual receives a unique platinum reveal, existing award code unchanged. */
.v42-mythic-room{background-image:radial-gradient(ellipse at 50% 5%,#b7a8791d,transparent 62%)}
.v42-mythic-room .v42-mythic-card-wrap{filter:drop-shadow(0 9px 28px #0007)}
.v42-mythic-room.v44-mythic-awakening:before{content:'';position:absolute;z-index:0;inset:-25%;pointer-events:none;background:conic-gradient(from 10deg,transparent 5%,#ffe6ac12 15%,transparent 22%,#bfcaff24 38%,transparent 51%,#fff9d122 67%,transparent 80%);animation:v44mythicrotate 3s linear infinite}
.v42-mythic-room.v42-is-open .v42-mythic-card-front{box-shadow:0 0 26px #fff7d288,0 0 70px #b4b6ff58,inset 0 0 20px #edd1a05c}
@keyframes v44mythicrotate{to{transform:rotate(360deg)}}
/* Rank, reward and accomplishment hierarchy. All amounts supplied by actual state. */
.k35-result-scene,.mk-result-v114,.k26-receipt-premium{isolation:isolate;overflow:hidden;background-color:#0d1c2c!important}
.k35-result-scene::before,.mk-result-v114::before,.k26-receipt-premium::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 14%,#c9a76b2b,transparent 62%),linear-gradient(180deg,#152639ee,#091522f5)}
.k35-defeat::before,.mk-result-v114.mk-defeat::before{background:radial-gradient(ellipse at 50% 16%,#8c9cac20,transparent 60%),linear-gradient(180deg,#172334,#080f1d)}
.k35-result-medallion,.k26-receipt-ornament{filter:drop-shadow(0 0 22px #e3b76a74)}
.k40-reward-tile,.k26-receipt-item,.mk-result-royal-stats>div{animation:v44rewardRise .48s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--k28-order,0) * 95ms + 150ms)}
.k40-reward-tile:nth-child(2),.mk-result-royal-stats>div:nth-child(2){animation-delay:270ms}
.k40-reward-tile:nth-child(3),.mk-result-royal-stats>div:nth-child(3){animation-delay:360ms}
@keyframes v44rewardRise{from{opacity:0;transform:translateY(15px) scale(.96);filter:brightness(1.4)}to{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}}
.k35-result-stats{font-variant-numeric:tabular-nums}
/* Boss identity: three distinct colors of presentation, irrespective of damage tuning. */
.k32-boss-awakening{box-shadow:0 15px 55px #000b,0 0 38px #d8ad5e30}
.k32-boss-awakening .k32-boss-emblem{animation:v44bossPulse 1s ease-out}
@keyframes v44bossPulse{0%{transform:scale(.5);opacity:0}55%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
/* Mobile results: fit key rewards without crushing accessibility sizes. */
@media(max-width:600px){.k35-result-scene,.mk-result-v114,.k26-receipt-premium{max-height:min(90dvh,850px);overflow-y:auto;overscroll-behavior:contain}.k35-result-scene h2,.mk-result-royal-title{font-size:clamp(26px,7vw,37px)}.k40-reward-grid{gap:7px}.k40-reward-tile{min-width:0}.k40-reward-tile small{font-size:11px}.k40-reward-tile strong{font-size:clamp(16px,4.5vw,24px)}.mk-result-royal-body{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.mk-hand-tile,.mk-unit,.v90-card,.dc-card{transform:none!important}.k40-reward-tile,.k26-receipt-item,.mk-result-royal-stats>div,.v44-ward-impact,.v44-vanquished{animation:none!important}.v42-mythic-room.v44-mythic-awakening:before{animation:none}}


/* ========= kingdom_strategic_dynasty_v45.css (original load order) ========= */
/* V45 STRATEGIC DYNASTY — gameplay panels, existing visual theme preserved */
.v45-deck-presets,.v45-history-entry,.v45-hall-entry{position:relative;z-index:2;border:1px solid #75614380;background:linear-gradient(125deg,#132238ed,#08111eec);border-radius:15px;box-shadow:0 14px 28px #0004;padding:15px;margin:12px 0;color:#efddb4}
.v45-preset-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}.v45-preset-heading span,.v45-kicker,.v45-history-entry small,.v45-hall-entry small{letter-spacing:2px;color:#cfad72;font-size:10px}.v45-preset-heading strong{font-size:15px}.v45-preset-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v45-preset-slot{min-width:0;display:flex;flex-direction:column;gap:6px;background:#091521b3;border:1px solid #67583e69;border-radius:10px;padding:11px}.v45-preset-slot small{color:#c6ad80;font-size:11px}.v45-preset-slot b{font-size:12px;font-weight:500;color:#eae0d1}.v45-preset-slot>div{display:flex;gap:5px;margin-top:5px}.v45-preset-slot button,.v45-history-entry button,.v45-hall-entry button,.v45-mythic-forge button{border:1px solid #a48857ab;border-radius:8px;background:linear-gradient(#3a3023,#201c1b);color:#f5d7a1;font-size:12px;cursor:pointer;padding:8px 10px;min-height:35px}.v45-preset-slot button:disabled,.v45-mythic-forge button:disabled{opacity:.4;cursor:default}.v45-history-entry,.v45-hall-entry{display:flex;align-items:center;gap:14px;justify-content:space-between}.v45-history-entry div{display:flex;flex-direction:column;gap:5px;min-width:0}.v45-history-entry strong,.v45-hall-entry strong{font-size:18px}.v45-history-entry span{font-size:12px;color:#acb7c3}.v45-history-entry button,.v45-hall-entry button{flex-shrink:0}.v45-hall-entry>span{font-size:30px;color:#e8c282}.v45-hall-entry div{flex:1;display:flex;flex-direction:column;gap:5px}
.v45-forecast{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;background:linear-gradient(100deg,#1d2430f2,#132337e6);border:1px solid #b2965880;border-radius:9px;padding:8px 13px;margin-bottom:8px;color:#dfcfb1}.v45-forecast>span{font-size:10px;letter-spacing:1px;color:#eac182}.v45-forecast strong{font-size:13px}.v45-forecast small{font-size:11px;color:#b6c5ca}.v45-combo-action{border-color:#c6a063!important;color:#efce91!important;background:linear-gradient(125deg,#382a26,#151f32)!important;box-shadow:inset 0 0 22px #f8c26413}.v45-combo-action:disabled{opacity:.45}.v45-defeat-review{border-radius:11px;border:1px solid #7395b44d;background:#0b1c2cc7;padding:14px;margin:15px 0;text-align:left;color:#e5d9c7}.v45-defeat-review small{letter-spacing:1.5px;color:#b5c6da}.v45-defeat-review h3{font-size:17px;margin:6px 0}.v45-defeat-review strong{font-size:13px;color:#e7c18a}.v45-defeat-review p,.v45-defeat-review span{display:block;font-size:12px;line-height:1.6;color:#c6ccd6;margin:7px 0 0}.v45-mythic-forge{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #cda7667b;border-radius:12px;background:linear-gradient(145deg,#2b2336b2,#0f2031dc);margin:12px 0}.v45-mythic-forge small{letter-spacing:1px;color:#e4c7a9}.v45-mythic-forge strong{font-size:17px;color:#f3d39c}.v45-mythic-forge p{color:#c6c4ca;font-size:12px;line-height:1.55;margin:0}.game-card.v45-mythic-aura-1{filter:drop-shadow(0 0 4px #c5a9ff75)}.game-card.v45-mythic-aura-2{filter:drop-shadow(0 0 8px #d9adffb0)}.game-card.v45-mythic-aura-3{filter:drop-shadow(0 0 12px #ebcaffcc)}
.v45-modal{color:#eee3cd;text-align:center;max-width:680px;margin:auto}.v45-modal h2{font-size:clamp(24px,4vw,38px);color:#f4dbaf;margin:8px 0 13px;font-family:serif}.v45-muted{font-size:13px;color:#abb7c4;line-height:1.7}.v45-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:20px 0}.v45-archive-grid button{min-height:67px;text-align:left;padding:12px;border:1px solid #82714f85;background:#162538;border-radius:11px;color:#f3d8a4;display:grid;grid-template-columns:1fr auto;gap:3px}.v45-archive-grid button small{font-size:10px;color:#aaacb0;grid-column:1/-1}.v45-archive-grid button strong{font-size:13px}.v45-hall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}.v45-hall-grid>div{background:linear-gradient(145deg,#213149,#101b2d);border:1px solid #92794b76;border-radius:12px;padding:13px 6px;display:flex;flex-direction:column;gap:7px}.v45-hall-grid span{color:#e5b767;font-size:26px}.v45-hall-grid small{color:#bdc1ca;font-size:11px}.v45-hall-grid strong{font-size:clamp(15px,3vw,23px);color:#f7d69b;overflow-wrap:anywhere}.v45-story-crest{font-size:62px;color:#e9bf7c;text-shadow:0 0 32px #e2a54a}.v45-story>p{font-size:15px;line-height:1.9;color:#e4d9cb}.v45-story>small{display:block;color:#a1aeba;margin:17px 0}
@media(max-width:600px){.v45-deck-presets,.v45-history-entry,.v45-hall-entry{padding:10px;border-radius:11px;margin:8px 0}.v45-preset-row{gap:5px}.v45-preset-slot{padding:7px 5px;gap:3px}.v45-preset-slot small{font-size:10px}.v45-preset-slot b{font-size:10px}.v45-preset-slot>div{flex-direction:column;gap:4px}.v45-preset-slot button{padding:5px 3px;min-height:28px;font-size:11px}.v45-preset-heading{margin-bottom:7px}.v45-preset-heading strong{font-size:12px}.v45-history-entry strong,.v45-hall-entry strong{font-size:14px}.v45-history-entry span{font-size:10px}.v45-history-entry button,.v45-hall-entry button{padding:6px;font-size:11px}.v45-forecast{padding:6px 9px;gap:3px 7px;margin-bottom:4px}.v45-forecast strong{font-size:11px}.v45-forecast small{font-size:10px}.v45-hall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v45-archive-grid{grid-template-columns:1fr}.v45-defeat-review{padding:10px;margin:8px 0}.v45-defeat-review span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.v45-mythic-forge,.v45-forecast,.v45-deck-presets{animation:none!important}}



/* V46 canonical UI: consistent typography, accessibility and independent result panels. */
:root{--v46-ui-font:system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans CJK KR","Malgun Gothic",sans-serif;--v46-display-font:"Noto Serif CJK KR","Nanum Myeongjo","Batang",Georgia,serif}
body,button,input,select,textarea,.nav-btn,.bottom-tab,.v90-button,.game-card .card-info,.mk-result-royal-stats{font-family:var(--v46-ui-font)}
.v90-screen h1,.v90-screen h2,.v90-screen h3,.k35-result-scene h2,.mk-result-royal-title,.mk-result-royal-meta>strong{font-family:var(--v46-display-font);font-weight:700;letter-spacing:-.025em;line-height:1.23}
.k35-result-scene h2,.mk-result-royal-title{text-wrap:balance}
.k35-result-scene .k40-reward-tile strong,.mk-result-royal-stats strong,.k35-result-stats b{font-variant-numeric:tabular-nums;letter-spacing:0}
#overlays .k35-result-scene,#overlays .mk-result-v114{background-image:radial-gradient(circle at 50% 15%,#a77c3b3d,transparent 35%),linear-gradient(158deg,#162638,#091524 75%)!important;isolation:isolate}
#overlays .k35-result-scene.k35-defeat,#overlays .mk-result-v114.mk-defeat{background-image:radial-gradient(circle at 50% 15%,#7393b43b,transparent 35%),linear-gradient(158deg,#172738,#071321 75%)!important}
#overlays .k35-result-scene .k40-reward-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}
#overlays .k35-result-scene .k40-reward-tile{min-width:0;border-radius:13px}
#overlays .overlay-shade:has(.k35-result-scene),#overlays .overlay-shade:has(.mk-result-v114){background:#030914!important;backdrop-filter:none!important}
#overlays .k35-result-scene .k35-result-medallion,#overlays .mk-result-v114 .mk-result-royal-sigil{filter:drop-shadow(0 7px 14px #0005)}
.v46-save-alert{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:13px 17px;margin:10px 0;border:1px solid #e0ad685e;border-radius:12px;background:#251c20;color:#ffdfae;font-size:13px;line-height:1.5}
.v46-save-alert strong{white-space:nowrap}.v46-save-alert span{flex:1 1 220px}.v46-save-alert button{border:1px solid #c8a575;background:#c3a06a;color:#141925;border-radius:8px;padding:7px 12px;font-weight:700}
.v46-settings-warning{border:1px solid #c7a46c8c;background:#39291844;border-radius:12px;padding:12px 16px;margin:10px 0;color:#f1d8b1;line-height:1.6}
.v46-settings-warning p{margin:6px 0;font-size:13px}
@media(max-width:480px){.v46-save-alert{margin:4px 2px;padding:9px 11px;font-size:12px}.k35-result-scene h2{font-size:clamp(30px,9vw,47px)!important}#overlays .k35-result-scene .k40-reward-grid{grid-template-columns:repeat(auto-fit,minmax(78px,1fr))}.v90-screen h1{line-height:1.18}}
@media(prefers-reduced-motion:reduce){#overlays .k35-result-rays,#overlays .k35-result-medallion{animation:none!important}}


/* V47 final UI pass — all existing gameplay mechanics unchanged. */
:root{--v47-text:#f4e5ca;--v47-muted:#c5cbd3;--v47-gold:#e6be81;--v47-border:#af8d61}
/* Readable text in the last modal, including the smaller labels. */
#overlays .k35-result-scene>small,#overlays .k35-result-scene>p{position:relative;z-index:5;text-shadow:0 2px 8px #000b!important}
#overlays .k35-result-scene>p{display:table;margin:0 auto 16px!important;padding:5px 14px!important;background:#081725b8;border:1px solid #cfb07926;border-radius:8px}

#overlays .k35-result-scene>small{display:block;color:#eac994!important;opacity:1!important;font-size:11px!important;font-weight:700;letter-spacing:.24em}
#overlays .k35-result-scene>p{color:#e0e8f1!important;opacity:1!important;font-size:clamp(12px,3.4vw,15px);line-height:1.5;overflow-wrap:anywhere}
#overlays .k35-result-scene>p span{color:#e8bd77!important;margin:0 .5em}
#overlays .k35-result-scene .k35-result-rank span,#overlays .k35-result-scene .k35-result-rank small{color:#e7d3b1!important;opacity:1!important}
#overlays .k35-result-scene .k35-result-rank strong{color:#f8d597!important;opacity:1!important}
#overlays .k35-result-scene .k35-result-stats>span{color:#e0d5c1!important;font-size:clamp(10px,2.8vw,13px)!important;line-height:1.35}
#overlays .k35-result-scene .k35-result-stats b{color:#fce6bf!important;font-variant-numeric:tabular-nums}
#overlays .k35-result-scene .k40-rewards-caption{color:#e7c58b!important}
#overlays .k35-result-scene .k40-reward-grid{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(6px,1.8vw,13px)!important;align-items:stretch;justify-content:stretch}
#overlays .k35-result-scene .k40-reward-tile{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0!important;min-height:99px;padding:11px 4px!important;border:1px solid #ac895c88!important;border-radius:11px!important;background:linear-gradient(150deg,#1b3044,#101d30)!important;opacity:1!important;visibility:visible!important;transform:none!important;animation:none!important}
#overlays .k35-result-scene .k40-reward-tile i{font-size:25px!important;color:#f4ca84!important;line-height:1.2}
#overlays .k35-result-scene .k40-reward-tile small{font-size:clamp(10px,2.7vw,12px)!important;color:#e1d6c3!important;font-weight:600;line-height:1.25;white-space:normal;text-wrap:balance}
#overlays .k35-result-scene .k40-reward-tile strong{color:#ffe2ad!important;font-family:var(--v46-ui-font)!important;font-variant-numeric:tabular-nums;font-size:clamp(18px,5vw,26px)!important;font-weight:800!important;line-height:1.2;letter-spacing:-.03em}
#overlays .k35-result-scene .k40-reward-tile.k40-gem{border-color:#668cb9aa!important;background:linear-gradient(150deg,#1a304a,#101d35)!important}
#overlays .k35-result-scene .k40-reward-tile.k40-gem i{color:#9fc6fb!important}
#overlays .k35-result-scene .k40-reward-tile.k40-points{border-color:#b5a4a488!important}
#overlays .k35-result-scene .k35-result-medallion{color:#ffdda1!important}
#overlays .k35-result-scene .k35-result-continue{font-size:clamp(13px,3.5vw,16px)!important;letter-spacing:-.025em!important;font-weight:800!important;min-height:51px}
/* Display an elegant self-contained result, not the old translucent board. */
#overlays .overlay-shade:has(.k35-result-scene),#overlays .overlay-shade:has(.mk-result-v114){background:#040a13!important;backdrop-filter:none!important}
#overlays .k35-result-scene{background:radial-gradient(circle at 50% 12%,#7f582648,transparent 32%),linear-gradient(145deg,#15283c,#081727 75%)!important;max-height:94dvh;overflow-y:auto}
#overlays .k35-result-scene.k35-defeat{background:radial-gradient(circle at 50% 10%,#55718f48,transparent 36%),linear-gradient(145deg,#1c2937,#071421 75%)!important}
/* Touch controls with actual tap areas instead of tiny letter-like links. */
.v90-screen button:not(.game-card):not(.v92-stage-card),#overlays .modal button:not(.game-card){touch-action:manipulation}
.v90-screen button:focus-visible,#overlays .modal button:focus-visible,.nav-btn:focus-visible,.bottom-tab:focus-visible{outline:2px solid #f7d79f!important;outline-offset:3px}
@media(max-width:480px){
 #overlays .k35-result-scene{padding:20px 13px 17px!important}
 #overlays .k35-result-medallion{width:76px!important;height:76px!important;font-size:42px!important;margin:12px auto 16px!important}
 #overlays .k35-result-scene h2{margin:9px 0!important;font-size:clamp(30px,8vw,39px)!important}
 #overlays .k35-result-rank{margin:14px 0 10px!important;padding:10px 7px!important;gap:7px}
 #overlays .k35-result-rank strong{font-size:clamp(19px,5vw,25px)!important}
 #overlays .k35-result-stats>span{padding:8px 3px!important}
 #overlays .k35-result-scene .k40-reward-tile{min-height:89px}
 #overlays .mk-result-v114 .mk-result-royal-body{padding-bottom:max(13px,env(safe-area-inset-bottom))}
}
@media(max-width:340px){
 #overlays .k35-result-scene .k40-reward-tile{padding:8px 2px!important;min-height:84px}
 #overlays .k35-result-scene .k40-reward-tile strong{font-size:17px!important}
}
@media(max-width:380px) and (max-height:620px){
 #overlays .k35-result-scene{padding:9px 9px 10px!important}
 #overlays .k35-result-medallion{width:55px!important;height:55px!important;font-size:28px!important;margin:4px auto 8px!important}
 #overlays .k35-result-scene>small{font-size:9px!important;letter-spacing:.16em}
 #overlays .k35-result-scene h2{font-size:27px!important;margin:4px 0!important}
 #overlays .k35-result-scene>p{margin:0 auto 9px!important;padding:3px 10px!important;font-size:11px!important}
 #overlays .k35-result-scene .k40-rewards-caption{margin:5px auto!important}
 #overlays .k35-result-scene .k40-reward-tile{min-height:70px;padding:6px 3px!important;gap:2px!important}
 #overlays .k35-result-scene .k40-reward-tile i{font-size:17px!important}
 #overlays .k35-result-scene .k40-reward-tile strong{font-size:16px!important}
 #overlays .k35-result-rank{margin:8px 0 6px!important;padding:7px 4px!important}
 #overlays .k35-result-stats>span{padding:4px 2px!important}
 #overlays .k35-result-stats b{font-size:15px!important;margin-top:1px!important}
 #overlays .k35-result-continue{margin:9px auto 0!important;min-height:43px!important}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important}
 #overlays .k35-result-scene .k35-result-rays,#overlays .k35-result-scene .k35-result-medallion{animation:none!important}
}


/* V48 PVP single-view layout. Keeps every PVP function but moves peripheral features to shortcuts. */
#view:has(> .v48-pvp-compact){padding:0!important;overflow:hidden!important;min-height:0!important}
#view .v48-pvp-compact{box-sizing:border-box;min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(9px,1.6vh,20px) clamp(10px,2vw,28px)!important}
#view .v48-pvp-compact *{box-sizing:border-box}
#view .v48-pvp-compact .v90-ambient{pointer-events:none;opacity:.26}
#view .v48-pvp-wrap{position:relative;z-index:1;width:min(100%,1020px);max-height:100%;min-height:0;display:flex;flex-direction:column;gap:clamp(7px,1.4vh,14px);margin:0 auto;color:#e9e0d0}
#view .v48-pvp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;flex-shrink:0}
#view .v48-pvp-head small{font-size:10px;letter-spacing:.17em;font-weight:700;color:#c6a979}
#view .v48-pvp-head h1{margin:2px 0 0!important;font-size:clamp(23px,3.4vw,40px)!important;line-height:1.12!important;letter-spacing:-.035em;color:#f4dfbc}
#view .v48-pvp-identity{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap;min-width:0}
#view .v48-pvp-identity span{font-size:clamp(11px,1.4vw,15px);font-weight:800;color:#ead3a9;max-width:170px;overflow:hidden;text-overflow:ellipsis}
#view .v48-pvp-identity small{font-size:10px;letter-spacing:0;color:#a8aeb9}
#view .v48-pvp-duel{min-height:0;flex:1 1 235px;max-height:340px;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.9fr);gap:0;border:1px solid rgba(213,170,104,.43);background:linear-gradient(135deg,#091420ed,#152435ed);border-radius:17px;overflow:hidden;box-shadow:0 13px 44px #0005,inset 0 1px #fff1}
#view .v48-pvp-visual{position:relative;min-height:0;overflow:hidden;background:linear-gradient(125deg,#101c2c,#070d17)}
#view .v48-pvp-visual:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0002,transparent 38%,#0008),linear-gradient(0deg,#0e1b2eaa,transparent 70%)}
#view .v48-portrait{position:absolute;top:0;bottom:0;width:55%;background-size:cover;background-position:center top;filter:contrast(1.03) saturate(.88)}
#view .v48-portrait.yi{left:0;mask-image:linear-gradient(90deg,#000 78%,transparent)}
#view .v48-portrait.khan{right:0;mask-image:linear-gradient(270deg,#000 78%,transparent)}
#view .v48-vs{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);font-family:Georgia,serif;color:#f6d59b;text-shadow:0 0 22px #d5a051aa,0 3px 14px #000;letter-spacing:.1em;font-size:clamp(22px,3vw,43px)}
#view .v48-pvp-match{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(5px,1vh,11px);padding:14px 20px;min-width:0;text-align:center}
#view .v48-pvp-match>strong{font-size:clamp(19px,2.3vw,28px);letter-spacing:-.02em;color:#f0d7ae;line-height:1.15}
#view .v48-pvp-match>span{font-size:12px;color:#b7c0cb}
#view .v48-pvp-seal{font-size:clamp(28px,3.6vw,44px);line-height:1;color:#d5ad70;text-shadow:0 0 24px #ddb77166}
#view .v48-primary-btn,#view .v48-secondary-btn{min-height:44px;border-radius:9px;font-weight:800;padding:10px 19px;cursor:pointer;max-width:100%;width:min(100%,280px);font-size:14px;display:flex;align-items:center;justify-content:center;gap:13px}
#view .v48-primary-btn{background:linear-gradient(135deg,#f2d59b,#b98546);border:1px solid #f4d4a0;color:#182030;box-shadow:0 3px 16px #dbac5e35}
#view .v48-secondary-btn{background:#152436;border:1px solid #8f7650;color:#e7caa3}
#view .v48-match-search{position:relative;width:62px;height:62px;display:grid;place-items:center;color:#f6d9a3;font-size:26px}
#view .v48-match-search i{position:absolute;inset:0;border:2px solid #e0b86b;border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;animation:v48-spin 2.1s linear infinite}
@keyframes v48-spin{to{transform:rotate(360deg)}}
#view .v48-pvp-rank{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #94744771;background:linear-gradient(90deg,#121f2fcf,#111b28ea);border-radius:12px;padding:10px 16px;min-height:64px}
#view .v48-rank-title{display:flex;align-items:center;gap:10px;min-width:0}
#view .v48-rank-title>span{font-size:28px;color:#dcb87c;line-height:1}
#view .v48-rank-title>div{display:flex;flex-direction:column;gap:3px}
#view .v48-rank-title small,#view .v48-rank-data small{font-size:10px;color:#a8b3bf}
#view .v48-rank-title strong{font-size:15px;line-height:1.1;color:#eed6ac;white-space:nowrap}
#view .v48-rank-data{display:flex;align-items:center;gap:clamp(13px,2.7vw,38px);text-align:center}
#view .v48-rank-data>div{display:flex;flex-direction:column;gap:3px}
#view .v48-rank-data b{font-size:18px;color:#f1debf;font-variant-numeric:tabular-nums;line-height:1}
#view .v48-rank-data em{color:#738197;font-style:normal}
#view .v48-pvp-shortcuts{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#view .v48-pvp-shortcuts button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:9px 7px;color:#e2d5bd;background:linear-gradient(135deg,#182738,#111d2d);border:1px solid #92744d70;border-radius:10px;cursor:pointer}
#view .v48-pvp-shortcuts button span{font-size:20px;color:#d8b16f;line-height:1}
#view .v48-pvp-shortcuts button strong{font-size:12px;font-weight:700;line-height:1.2}
#view .v48-pvp-shortcuts button:disabled{opacity:.38;cursor:not-allowed}
#view .v48-pvp-shortcuts button:not(:disabled):is(:hover,:focus-visible){background:#25354a;border-color:#e5bf83}
#view .v48-pvp-extra{flex-shrink:0;min-height:0;border:1px solid #6f65546b;background:#0d1b2bbd;border-radius:9px;overflow-y:auto}
#view .v48-pvp-extra summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:9px 14px;list-style:none;color:#c8b38f;font-size:12px;font-weight:700;gap:10px}
#view .v48-pvp-extra summary::-webkit-details-marker{display:none}
#view .v48-pvp-extra[open] summary b{transform:rotate(180deg)}
#view .v48-extra-body{display:grid;gap:7px;border-top:1px solid #ffffff17;padding:10px 14px}
#view .v48-extra-honor{font-size:12px;color:#b7c4d3}
#view .v48-extra-honor strong{color:#ead3ad}
#view .v48-extra-task{display:flex;gap:10px;align-items:center;font-size:12px;color:#e2d6c2}
#view .v48-extra-task span{flex:1}
#view .v48-extra-task b{color:#e8c88d}
#view .v48-extra-task button{min-width:72px;background:#28374c;color:#f2dab1;border:1px solid #92744d77;border-radius:7px;padding:5px 9px;font-size:11px}
#view .v48-extra-task button:disabled{opacity:.48}
/* Only in PvP battle: no full-screen bot waiting overlay hiding the battle. Status is already in header. */
#view .royal-battle:has(.k34-duel-status) .k34-bot-busy{display:none!important}
#view .royal-battle:has(.k34-duel-status) .mk-teams-legend .mk-field-instruction{display:none!important}
#view .royal-battle:has(.k34-duel-status) .mk-terrain-help{margin-inline:auto}
@media(max-width:820px){
 #view .v48-pvp-compact{padding:8px 8px!important;align-items:stretch!important}
 #view .v48-pvp-wrap{gap:7px}
 #view .v48-pvp-head h1{font-size:clamp(21px,6.2vw,27px)!important}
 #view .v48-pvp-head small{font-size:8px}
 #view .v48-pvp-identity span{font-size:11px;max-width:120px}
 #view .v48-pvp-identity small{font-size:9px}
 #view .v48-pvp-duel{display:flex;flex-direction:column;flex:1 1 195px;max-height:340px}
 #view .v48-pvp-visual{flex:1 1 44%;min-height:50px}
 #view .v48-pvp-match{flex:1 1 56%;padding:6px 10px;gap:4px}
 #view .v48-pvp-match>strong{font-size:19px}
 #view .v48-pvp-match>span{font-size:10px}
 #view .v48-pvp-seal{font-size:27px}
 #view .v48-primary-btn,#view .v48-secondary-btn{min-height:36px;padding:6px 16px;font-size:13px;width:min(100%,260px)}
 #view .v48-pvp-rank{padding:7px 9px;min-height:48px;gap:5px}
 #view .v48-rank-title{gap:6px}
 #view .v48-rank-title>span{font-size:20px}
 #view .v48-rank-title small,#view .v48-rank-data small{font-size:9px}
 #view .v48-rank-title strong{font-size:12px}
 #view .v48-rank-data{gap:9px}
 #view .v48-rank-data b{font-size:13px}
 #view .v48-pvp-shortcuts{gap:5px}
 #view .v48-pvp-shortcuts button{flex-direction:column;gap:4px;min-height:49px;padding:5px 2px}
 #view .v48-pvp-shortcuts button span{font-size:18px}
 #view .v48-pvp-shortcuts button strong{font-size:10px;white-space:nowrap}
 #view .v48-pvp-extra summary{padding:7px 10px;font-size:11px}
}
@media(max-width:365px){
 #view .v48-pvp-shortcuts button strong{font-size:9px}
 #view .v48-pvp-rank{padding:5px}
 #view .v48-rank-data{gap:6px}
 #view .v48-rank-title strong{font-size:11px}
 #view .v48-rank-data b{font-size:12px}
}
@media(max-height:650px){
 #view .v48-pvp-compact{padding-block:5px!important}
 #view .v48-pvp-wrap{gap:5px}
 #view .v48-pvp-duel{max-height:none;flex-basis:130px}
 #view .v48-pvp-rank{min-height:42px;padding-block:4px}
 #view .v48-pvp-shortcuts button{min-height:41px}
 #view .v48-pvp-extra summary{padding-block:5px}
}
@media(max-width:820px) and (max-height:500px){#view .v48-pvp-compact{overflow:auto!important}#view .v48-pvp-wrap{max-height:none}#view .v48-pvp-duel{flex-basis:140px;min-height:140px}}
@media(prefers-reduced-motion:reduce){#view .v48-match-search i{animation:none}}
/* V48 verified one-screen sizing corrections */
#view .v48-pvp-compact{justify-content:flex-start!important;}
@media(max-width:820px){
 #view .v48-pvp-duel{flex:0 0 clamp(200px,29vh,245px)!important;min-height:200px!important;max-height:245px!important;}
 #view .v48-pvp-visual{flex:1 1 39%!important;min-height:70px!important;}
 #view .v48-pvp-match{flex:1 1 61%!important;min-height:117px!important;padding:6px 8px!important;justify-content:center!important;}
 #view .v48-pvp-match>strong{line-height:1.2!important;}
}
@media(max-width:820px) and (max-height:650px){
 #view .v48-pvp-duel{flex-basis:195px!important;min-height:195px!important;max-height:195px!important;}
}
@media(min-width:821px){
 #view:has(> .royal-battle:has(.k34-duel-status)){overflow:hidden!important;padding:0!important;}
 #view > .royal-battle:has(.k34-duel-status){display:flex!important;flex-direction:column!important;gap:5px!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;padding:5px 11px!important;box-sizing:border-box!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status{flex:0 0 50px!important;height:50px!important;min-height:0!important;max-height:50px!important;width:100%!important;max-width:none!important;margin:0!important;padding:3px 14px!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-commanders{flex:0 0 65px!important;height:65px!important;min-height:0!important;max-height:65px!important;margin:0!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-content{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;margin:0!important;padding:0!important;gap:3px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-teams-legend{flex:0 0 20px!important;min-height:0!important;max-height:20px!important;padding:0 4px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-battlefield{display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;flex:1 1 0!important;min-height:0!important;height:100%!important;max-height:100%!important;gap:4px!important;margin:0!important;padding:4px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-lane{min-height:0!important;height:100%!important;margin:0!important;overflow:hidden!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{flex:0 0 143px!important;height:143px!important;min-height:0!important;max-height:143px!important;overflow:hidden!important;margin:0!important;padding:0!important;gap:3px!important;display:flex!important;flex-direction:column!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-hand-heading{flex:0 0 17px!important;margin:0!important;padding:0 4px!important;min-height:0!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-hand-cards{flex:1 1 0!important;min-height:0!important;max-height:78px!important;height:78px!important;margin:0!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-actions{flex:0 0 41px!important;min-height:41px!important;height:41px!important;margin:0!important;padding:0!important;gap:5px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-actions .mk-action,
 #view .royal-battle:has(.k34-duel-status) .mk-actions .mk-turn,
 #view .royal-battle:has(.k34-duel-status) .mk-actions .mk-command-meter{height:40px!important;min-height:40px!important;padding-top:3px!important;padding-bottom:3px!important;}
}

/* V49 performance polish: high-cost ambient effects are reduced only on narrow/short devices.
   Core attack, damage, card animations and button feedback are preserved. */
@media(max-width:820px){
 .cin-motes .cin-mote:nth-child(n+15){display:none!important}
 .k35-panel-glow, .k35-result-rays{animation-duration:36s!important}
 #view .v48-pvp-visual .v48-portrait{background-repeat:no-repeat}
}
@media(max-width:420px) and (max-height:720px){
 .cin-motes .cin-mote:nth-child(n+9){display:none!important}
 .v90-ambient{opacity:.23!important}
}
@media(prefers-reduced-motion:reduce){
 .k35-result-rays,.k35-result-medallion,.v39-mythic-glimmer,.k32-finale-shine{animation:none!important}
}


/* V50: settings actions, natural guide / backup / import hierarchy. Layout only. */
#overlays .v90-settings .v90-settings-options.v50-settings-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:9px!important;width:100%!important;max-width:520px!important;margin:8px auto 10px!important;
}
#overlays .v90-settings .v50-settings-actions .v50-guide{grid-column:1/-1!important;
 background:linear-gradient(115deg,#27384e,#142336)!important;border-color:rgba(222,178,103,.55)!important;
}
#overlays .v90-settings .v50-settings-actions .v50-damaged-save{grid-column:1/-1!important;}
#overlays .v90-settings .v50-settings-actions button{
 min-width:0!important;min-height:48px!important;padding:9px 11px!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:center!important;gap:8px!important;overflow:hidden!important;
}
#overlays .v90-settings .v50-settings-actions button>span{font-size:21px!important;line-height:1!important;flex:none!important;}
#overlays .v90-settings .v50-settings-actions button strong{font-size:12px!important;white-space:nowrap!important;letter-spacing:-.02em!important;}
#overlays .v90-settings .v50-settings-actions button b{display:none!important;}
/* V50: battle timer occupies one stable row instead of covering commander panels */
#view .royal-battle:has(.k34-duel-status){display:flex!important;flex-direction:column!important;isolation:isolate!important;}
#view .royal-battle:has(.k34-duel-status)>.k34-duel-status{
 position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
 transform:none!important;z-index:3!important;box-sizing:border-box!important;overflow:visible!important;
 display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;
 width:100%!important;max-width:none!important;margin:0!important;
 flex-shrink:0!important;min-height:0!important;
}
#view .royal-battle:has(.k34-duel-status)>.k34-duel-status>div:first-child{min-width:0!important;display:flex!important;flex-direction:row!important;align-items:baseline!important;gap:8px!important;}
#view .royal-battle:has(.k34-duel-status)>.k34-duel-status>div:first-child :is(small,strong){display:block!important;line-height:1.2!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#view .royal-battle:has(.k34-duel-status)>.k34-duel-status .k35-timer{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;margin:0!important;flex:none!important;box-shadow:none!important;}
#view .royal-battle:has(.k34-duel-status)>.mk-commanders{
 position:relative!important;inset:auto!important;top:auto!important;transform:none!important;z-index:2!important;margin:0!important;min-height:0!important;overflow:hidden!important;
}
#view .royal-battle:has(.k34-duel-status)>.mk-content{position:relative!important;z-index:1!important;}
#view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{position:relative!important;z-index:2!important;}
#view .royal-battle:has(.k34-duel-status) .mk-lane{background-position:center!important;}
/* Game in one usable viewport; long auxiliary lists scroll within their section, not under controls. */
@media(max-width:900px){
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status{flex:0 0 35px!important;height:35px!important;max-height:35px!important;padding:2px 9px!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status .k35-timer{width:35px!important;height:35px!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status .k35-timer strong{font-size:13px!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status .k35-timer small{display:none!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-commanders{flex:0 0 52px!important;height:52px!important;max-height:52px!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{flex:0 0 126px!important;height:126px!important;max-height:126px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-hand-cards{max-height:67px!important;height:67px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-actions{height:39px!important;min-height:39px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-team-mark{display:none!important;}
 #overlays .v90-settings .v50-settings-actions button{min-height:44px!important;}
}
@media(max-width:420px){
 #overlays .v90-settings .v50-settings-actions button{min-height:43px!important;padding:6px 5px!important;gap:5px!important;}
 #overlays .v90-settings .v50-settings-actions button strong{font-size:11px!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status>div:first-child :is(small,strong){font-size:10px!important;}
}
@media(max-height:650px){
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status{flex:0 0 30px!important;height:30px!important;max-height:30px!important;padding:1px 6px!important;}
 #view .royal-battle:has(.k34-duel-status)>.k34-duel-status .k35-timer{width:30px!important;height:30px!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-commanders{flex:0 0 46px!important;height:46px!important;max-height:46px!important;}
 #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{flex:0 0 114px!important;height:114px!important;max-height:114px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-hand-cards{height:56px!important;max-height:56px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-actions{height:35px!important;min-height:35px!important;}
 #view .royal-battle:has(.k34-duel-status) .mk-actions :is(button,.mk-command-meter){min-height:35px!important;height:35px!important;}
 #overlays .v90-settings .v90-settings-options.v50-settings-actions{margin-block:5px!important;gap:6px!important;}
 #overlays .v90-settings .v50-settings-actions button{min-height:41px!important;}
}


/* V50.1 responsive polish: balanced proportion for short AND tall mobile viewports. */
@media (max-width:820px){
  #view:has(> .royal-battle:has(.k34-duel-status)){
    overflow:hidden!important;padding:0!important;min-height:0!important;
  }
  #view > .royal-battle:has(.k34-duel-status){
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    height:100%!important;max-height:100%!important;min-height:0!important;
    padding:clamp(3px,.7vh,7px) clamp(4px,1.5vw,9px)!important;
    gap:clamp(2px,.6vh,5px)!important;overflow:hidden!important;
  }
  #view .royal-battle:has(.k34-duel-status)>.k34-duel-status{
    flex:0 0 clamp(30px,4.6vh,39px)!important;
    height:clamp(30px,4.6vh,39px)!important;max-height:39px!important;
    padding:2px 9px!important;border-radius:8px!important;
  }
  #view .royal-battle:has(.k34-duel-status)>.mk-commanders{
    flex:0 0 clamp(45px,7vh,58px)!important;
    height:clamp(45px,7vh,58px)!important;max-height:58px!important;
    min-height:0!important;
  }
  #view .royal-battle:has(.k34-duel-status)>.mk-content{
    display:flex!important;flex-direction:column!important;flex:1 1 0!important;
    height:auto!important;max-height:none!important;min-height:0!important;
    margin:0!important;padding:0!important;gap:3px!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-teams-legend{
    flex:0 0 clamp(0px,2vh,15px)!important;min-height:0!important;
    max-height:15px!important;overflow:hidden!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-battlefield{
    flex:1 1 0!important;display:grid!important;
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    min-height:0!important;height:100%!important;max-height:100%!important;
    margin:0!important;padding:3px!important;gap:clamp(2px,.6vh,5px)!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-lane{
    min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important;
  }
  #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{
    flex:0 0 clamp(110px,17vh,148px)!important;
    height:clamp(110px,17vh,148px)!important;
    max-height:148px!important;min-height:0!important;
    margin:0!important;padding:0!important;gap:3px!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-hand-heading{
    flex:0 0 17px!important;min-height:17px!important;max-height:17px!important;
    margin:0!important;padding:0 3px!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-hand-cards{
    flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;
    margin:0!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-actions{
    flex:0 0 clamp(35px,5.4vh,42px)!important;
    min-height:35px!important;height:clamp(35px,5.4vh,42px)!important;
    max-height:42px!important;margin:0!important;padding:0!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-actions :is(button,.mk-command-meter){
    height:100%!important;min-height:0!important;max-height:100%!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-commander-copy{
    min-width:0!important;overflow:hidden!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-commander-copy>strong{
    display:block!important;max-width:100%!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:clamp(10px,2.8vw,13px)!important;
  }
  #view .royal-battle:has(.k34-duel-status) .mk-commander img{
    max-height:clamp(35px,6vh,52px)!important;max-width:clamp(35px,10vw,55px)!important;
    object-fit:cover!important;
  }
  /* Avoid giant empty areas on tall handsets while keeping button & labels normal-sized. */
  #view:has(> .v48-pvp-compact){overflow:hidden!important;}
  #view .v48-pvp-compact{justify-content:center!important;}
  #view .v48-pvp-wrap{width:100%!important;}
}
@media (max-width:820px) and (min-height:730px){
  #view .v48-pvp-duel{
    flex:0 0 clamp(230px,34vh,285px)!important;
    min-height:230px!important;max-height:285px!important;
  }
  #view .v48-pvp-wrap{gap:clamp(9px,1.3vh,15px)!important;}
}
@media (max-width:820px) and (max-height:620px){
  #view .v48-pvp-compact{justify-content:flex-start!important;}
  #view .royal-battle:has(.k34-duel-status) .mk-teams-legend{display:none!important;}
  #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{
    flex-basis:clamp(105px,18vh,113px)!important;
    height:clamp(105px,18vh,113px)!important;max-height:113px!important;
  }
}
@media (min-width:821px) and (max-height:740px){
  #view .royal-battle:has(.k34-duel-status)>.k34-duel-status{flex-basis:40px!important;height:40px!important;max-height:40px!important;}
  #view .royal-battle:has(.k34-duel-status)>.mk-commanders{flex-basis:56px!important;height:56px!important;max-height:56px!important;}
  #view .royal-battle:has(.k34-duel-status)>.mk-battle-footer{flex-basis:128px!important;height:128px!important;max-height:128px!important;}
}
/* V50.1 visual balance: cap extra-tall battleground and center it in available phone space. */
@media(max-width:820px){
 #view > .royal-battle:has(.k34-duel-status){
   height:min(100%,clamp(410px,80svh,670px))!important;
   max-height:min(100%,670px)!important;
   margin-block:auto!important;
 }
 #view .royal-battle:has(.k34-duel-status)>.mk-commanders{
   min-height:0!important;align-items:center!important;
   grid-template-columns:minmax(0,1fr) clamp(30px,9vw,42px) minmax(0,1fr) 22px!important;
   gap:2px!important;padding:1px 3px!important;
 }
 #view .royal-battle:has(.k34-duel-status) .mk-commander{
   min-width:0!important;min-height:0!important;height:100%!important;
   align-items:center!important;gap:3px!important;
 }
 #view .royal-battle:has(.k34-duel-status) .mk-central-crest{
   min-width:0!important;max-height:100%!important;overflow:hidden!important;
 }
}


/* V51 — Responsive visual balance, not a gameplay rewrite. */
/* Native collapsible deck presets are accessible via the <summary> header; all original save/load actions stay intact. */
#view .v51-deck-presets {margin:0!important;padding:0!important;border-radius:11px!important;overflow:hidden!important;}
#view .v51-preset-summary {cursor:pointer;display:flex;align-items:center;gap:8px;min-height:40px;padding:9px 13px;list-style:none;color:#e6cc9e;user-select:none;}
#view .v51-preset-summary::-webkit-details-marker{display:none}
#view .v51-preset-summary span{font:700 9px Georgia,serif;letter-spacing:.08em;color:#c6a267;}
#view .v51-preset-summary strong{font-size:12px;font-weight:650;letter-spacing:-.02em;}
#view .v51-preset-summary i{font-style:normal;margin-left:auto;font-size:18px;transition:transform .2s;}
#view .v51-deck-presets[open] .v51-preset-summary i{transform:rotate(180deg)}
#view .v51-deck-presets .v45-preset-row{padding:0 10px 10px;}
#view .v51-deck-presets .v45-preset-slot{gap:3px;padding:8px;}
#view .v51-deck-presets .v45-preset-slot>div{margin-top:0;}
#view .v51-deck-presets .v45-preset-slot button{min-height:31px;padding:6px;font-size:11px;}
/* Desktop: controls remain compact, less oversized card slots; collection scrolling remains in section. */
@media(min-width:821px){
 #view .v96-deck .v92-deck-shell{gap:9px!important;}
 #view .v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:980px;}
 #view .v96-deck .v90-deck-slot{min-height:0!important;}
 #view .v96-deck .v90-deck-slot .game-card{height:auto!important;}
}
@media(max-width:820px){
 /* Home: center the content vertically and let the background act as atmosphere, not empty space. */
 #view:has(> .v91-home){padding:0!important;overflow:hidden!important;}
 #view .v91-home{height:100%!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;gap:clamp(8px,1.5svh,18px)!important;padding:clamp(12px,3svh,30px) 10px!important;}
 #view .v91-home-intro{margin:0!important;flex:0 0 auto!important;padding:0 2px!important;}
 #view .v91-home-intro h1{font-size:clamp(26px,6.7vw,34px)!important;margin:3px 0!important;}
 #view .v91-home-grid{flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:clamp(8px,1.4svh,13px)!important;margin:0!important;padding:0!important;}
 #view .v91-commander-panel{padding:clamp(10px,1.7svh,16px)!important;}
 #view .v91-commander-body{margin:8px 0 10px!important;gap:10px!important;}
 #view .v91-commander-portrait{height:clamp(86px,14svh,120px)!important;width:clamp(73px,12vw,90px)!important;}
 #view .v91-commander-body h2{font-size:clamp(22px,5vw,29px)!important;}
 #view .v91-commander-buttons .v90-button{height:clamp(36px,5svh,42px)!important;min-height:36px!important;}
 #view .v91-home-right{gap:8px!important;}
 #view .v91-next-stage{height:clamp(105px,17svh,150px)!important;min-height:105px!important;max-height:150px!important;padding:7px!important;}
 #view .v91-shortcuts button{min-height:clamp(45px,6.6svh,64px)!important;}
 /* PVP: remove enormous blank top. Fit hero and action naturally on both tall and short phones. */
 #view:has(> .v48-pvp-compact){padding:0!important;overflow:hidden!important;}
 #view .v48-pvp-compact{height:100%!important;max-height:100%!important;overflow-y:auto!important;display:flex!important;justify-content:center!important;align-items:stretch!important;padding:clamp(10px,2svh,24px) 10px!important;}
 #view .v48-pvp-wrap{height:auto!important;max-height:none!important;flex:none!important;gap:clamp(8px,1.3svh,14px)!important;}
 #view .v48-pvp-duel{flex:0 0 clamp(235px,35svh,340px)!important;height:clamp(235px,35svh,340px)!important;min-height:235px!important;max-height:340px!important;}
 #view .v48-pvp-visual{background-position:center center!important;}
 #view .v48-pvp-shortcuts button{min-height:clamp(46px,6svh,55px)!important;}
 /* Summon: show entire illustration in the altar without clipping and without magnifying to the container width. */
 #view:has(> .v93-summon-refined){padding:0!important;overflow:hidden!important;}
 #view .v93-summon-refined{height:100%!important;max-height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;display:flex!important;justify-content:center!important;flex-direction:column!important;gap:clamp(5px,1svh,12px)!important;padding:clamp(7px,1.3svh,15px) 9px!important;}
 #view .v93-summon-refined>.v93-summon-topbar{flex:0 0 auto!important;}
 #view .v93-summon-refined .v93-summon-copy{padding:clamp(8px,1.7svh,15px)!important;}
 #view .v93-summon-refined .v39-summon-header{margin-bottom:4px!important;}
 #view .v93-summon-refined .v93-summon-note{margin:5px 0!important;}
 #view .v93-summon-refined .v93-summon-visual{display:block!important;flex:0 0 auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:5px!important;}
 #view .v93-summon-refined .v93-summon-altar{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;height:clamp(175px,26svh,265px)!important;min-height:175px!important;max-height:265px!important;padding:8px!important;overflow:hidden!important;}
 #view .v93-summon-refined .v93-summon-altar img{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;display:block!important;flex:none!important;box-sizing:border-box!important;height:100%!important;max-height:100%!important;width:auto!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;clip-path:none!important;}
 #view .v93-summon-refined .v93-summon-pity{bottom:7px!important;right:9px!important;}
 /* Deck: hide redundant empty gaps, tighter header + cards, presets collapsible; card artwork still legible. */
 #view .v96-deck{padding:6px 5px!important;overflow:hidden!important;gap:5px!important;}
 #view .v96-deck .v92-deck-shell{gap:5px!important;}
 #view .v96-deck .v92-deck-head{display:flex!important;align-items:center!important;gap:7px!important;}
 #view .v96-deck .v92-deck-head h1{font-size:clamp(19px,5vw,24px)!important;margin:0!important;}
 #view .v96-deck .v92-deck-head-actions{display:flex!important;gap:5px!important;}
 #view .v96-deck .v92-deck-head-actions button{min-height:34px!important;padding:5px 9px!important;font-size:11px!important;}
 #view .v96-deck .v51-deck-presets{flex:none!important;}
 #view .v96-deck .v51-preset-summary{min-height:34px!important;padding:6px 10px!important;}
 #view .v96-deck .v51-deck-presets .v45-preset-row{gap:5px!important;}
 #view .v96-deck .v45-preset-slot small,#view .v96-deck .v45-preset-slot b{font-size:9px!important;}
 #view .v96-deck .v96-tabbar{margin:0!important;min-height:36px!important;}
 #view .v96-deck .v92-deck-overview{padding:8px!important;}
 #view .v96-deck .v96-deck-caption{padding:4px!important;}
 #view .v96-deck .k27-deck-summary{margin:5px 0!important;gap:5px!important;}
 #view .v96-deck .k27-deck-summary>div{padding:6px 9px!important;}
 #view .v96-deck .v90-deck-cards.v92-deck-cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;}
 #view .v96-deck .v90-deck-slot,#view .v96-deck .v90-deck-slot .game-card{height:clamp(105px,17svh,143px)!important;min-height:0!important;max-height:143px!important;}
 #view .v96-deck .v92-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
 #view .v96-deck .v92-collection-grid .game-card{height:clamp(125px,20svh,165px)!important;}
 /* Community: no giveaway of full expedition length. Keep completed intro challenge at 10/10. */
 #view .hd-community-status{margin-bottom:0!important;}
}
@media(max-width:820px) and (max-height:690px){
 #view .v91-home{justify-content:flex-start!important;}
 #view .v48-pvp-compact{justify-content:flex-start!important;}
 #view .v48-pvp-duel{flex-basis:clamp(180px,30svh,220px)!important;height:clamp(180px,30svh,220px)!important;min-height:180px!important;}
 #view .v93-summon-refined{justify-content:flex-start!important;}
 #view .v93-summon-refined .v93-summon-altar{height:clamp(150px,25svh,180px)!important;min-height:150px!important;}
 #view .v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 #view .v96-deck .v90-deck-slot,#view .v96-deck .v90-deck-slot .game-card{height:clamp(95px,16svh,115px)!important;}
}
@media(max-width:360px){
 #view .v96-deck .v92-deck-head-actions button{font-size:10px!important;padding-inline:5px!important;}
 #view .v96-deck .v90-deck-cards.v92-deck-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 #view .v96-deck .v90-deck-slot,#view .v96-deck .v90-deck-slot .game-card{height:clamp(110px,20svh,145px)!important;}
}
@media(prefers-reduced-motion:reduce){#view .v51-preset-summary i{transition:none!important}}
/* V51 final edge-case refinements */
@media (max-width:820px) and (max-height:690px){
 #view .v93-summon-refined .v93-summon-altar{height:clamp(115px,21svh,143px)!important;min-height:115px!important;max-height:143px!important;}
 #view .v93-summon-refined .v93-summon-packs{gap:5px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack{min-height:74px!important;padding:5px 3px!important;gap:2px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack .mark{font-size:17px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack strong{font-size:10px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack small{font-size:8px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack em{font-size:10px!important;}
 #view .v93-summon-refined .v93-summon-stats{margin-block:3px!important;}
}
@media (max-width:820px) and (min-height:900px){
 #view .v48-pvp-duel{flex:0 0 clamp(355px,41svh,430px)!important;height:clamp(355px,41svh,430px)!important;max-height:430px!important;}
 #view .v91-home{gap:clamp(15px,2.6svh,28px)!important;}
 #view .v91-home-grid{gap:clamp(13px,2svh,21px)!important;}
}
@media (min-width:821px){
 #view:has(> .v96-deck){overflow-y:auto!important;overscroll-behavior:contain!important;}
}


/* V52 ORIGINAL-IMAGE PRESENTATION — full source image visible, content below. */
/* These three areas are intentional: do not restore cover backgrounds, fixed cropping rectangles or absolute image positioning. */
#view .v48-pvp-duel{
  display:flex!important;flex-direction:column!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;overflow:visible!important;gap:0!important;
}
#view .v48-pvp-visual.v52-portrait-gallery{
  position:relative!important;display:flex!important;align-items:stretch!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;overflow:hidden!important;aspect-ratio:auto!important;
  border-radius:15px 15px 0 0!important;background:#101824!important;
}
#view .v48-pvp-visual.v52-portrait-gallery .v52-portrait{
  position:relative!important;inset:auto!important;display:block!important;width:50%!important;
  height:auto!important;max-height:none!important;min-height:0!important;
  object-fit:contain!important;object-position:center!important;
  background:none!important;filter:none!important;flex:0 0 50%!important;
}
#view .v48-pvp-visual.v52-portrait-gallery:after{background:linear-gradient(0deg,rgba(6,12,23,.18),transparent 36%)!important;}
#view .v48-pvp-visual .v48-vs{z-index:3!important;font-size:clamp(19px,3.5vw,42px)!important;}
#view .v48-pvp-match{
  width:100%!important;height:auto!important;min-height:0!important;
  flex:0 0 auto!important;padding:clamp(10px,1.5vh,20px)!important;
  gap:6px!important;background:linear-gradient(180deg,#101d2d,#0c1a2b)!important;
  border-radius:0 0 15px 15px!important;
}
#view .v48-pvp-compact{overflow-y:auto!important;overflow-x:hidden!important;justify-content:center!important;}
#view .v48-pvp-wrap{max-height:none!important;height:auto!important;flex:0 0 auto!important;}
/* Summon art at natural ratio: scale proportionally, never crop. Pity text sits BELOW illustration. */
#view .v93-summon-refined .v93-summon-visual{
  width:100%!important;max-height:none!important;min-height:0!important;height:auto!important;
  overflow:visible!important;display:block!important;flex:0 0 auto!important;
}
#view .v93-summon-refined .v93-summon-altar{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  gap:4px!important;position:relative!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;padding:8px 7px 4px!important;aspect-ratio:auto!important;
}
#view .v93-summon-refined .v93-summon-altar>img{
  display:block!important;position:relative!important;inset:auto!important;transform:none!important;
  flex:0 0 auto!important;width:min(100%,340px)!important;height:auto!important;
  max-width:100%!important;max-height:none!important;min-height:0!important;
  object-fit:contain!important;object-position:center!important;clip-path:none!important;
  margin:0 auto!important;
}
#view .v93-summon-refined .v93-summon-pity{
  position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  transform:none!important;align-self:center!important;margin:0 auto 4px!important;
  z-index:5!important;
}
#view .v93-summon-refined .v93-summon-core,
#view .v93-summon-refined .v93-summon-aura{pointer-events:none!important;}
#view .v93-summon-refined{overflow-y:auto!important;max-height:none!important;justify-content:flex-start!important;}
/* Home expedition artwork full-width, full-ratio, information below. */
#view .v91-next-stage{
  display:flex!important;flex-direction:column!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;padding:7px!important;overflow:visible!important;gap:0!important;
}
#view .v91-next-image.v52-next-image{
  display:block!important;position:static!important;flex:0 0 auto!important;
  width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;min-height:0!important;
  aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
  background:none!important;overflow:visible!important;border-radius:9px!important;
}
#view .v91-next-copy{
  width:100%!important;flex:0 0 auto!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  gap:3px!important;padding:9px 8px!important;text-align:left!important;
}
#view .v91-next-copy strong{white-space:normal!important;overflow-wrap:anywhere!important;}
#view .v91-home{overflow-y:auto!important;max-height:none!important;justify-content:flex-start!important;}
#view .v91-home-grid{flex:0 0 auto!important;}
@media(max-width:820px){
 #view .v48-pvp-compact{padding:clamp(8px,1.5svh,15px) 10px!important;align-items:stretch!important;}
 #view .v48-pvp-duel{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;}
 #view .v48-pvp-visual.v52-portrait-gallery{flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;}
 #view .v48-pvp-match{padding:clamp(8px,1.1svh,13px) 10px!important;}
 #view .v48-pvp-seal{font-size:23px!important;}
 #view .v48-pvp-match>strong{font-size:17px!important;}
 #view .v48-primary-btn,#view .v48-secondary-btn{min-height:34px!important;}
 #view .v93-summon-refined{height:100%!important;max-height:100%!important;overflow-y:auto!important;}
 #view .v93-summon-refined .v93-summon-altar{height:auto!important;min-height:0!important;max-height:none!important;}
 #view .v93-summon-refined .v93-summon-altar>img{width:min(100%,40svh,340px)!important;height:auto!important;max-height:none!important;}
 #view .v91-home{height:100%!important;max-height:100%!important;min-height:0!important;overflow-y:auto!important;justify-content:flex-start!important;}
 #view .v91-next-stage{height:auto!important;min-height:0!important;max-height:none!important;padding:6px!important;}
 #view .v91-next-copy strong{font-size:clamp(16px,4.2vw,20px)!important;}
 #view .v91-home-grid{flex:0 0 auto!important;}
}
@media(max-width:820px) and (max-height:650px){
 /* Tiny handsets scroll the body of the screen instead of sacrificing imagery. */
 #view .v48-pvp-compact{justify-content:flex-start!important;}
 #view .v93-summon-refined .v93-summon-altar>img{width:min(100%,38svh,340px)!important;}
 #view .v91-home{justify-content:flex-start!important;}
}
/* Very small phones: retain the complete artwork AND the three summon actions without cropping. */
@media(max-width:360px) and (max-height:620px){
 #view .v93-summon-refined{gap:3px!important;padding:4px 5px!important;}
 #view .v93-summon-refined .v93-summon-topbar{gap:2px!important;padding:6px!important;}
 #view .v93-summon-refined .v39-summon-heading p{display:none!important;}
 #view .v93-summon-refined .v39-summon-header{gap:4px!important;margin:0!important;}
 #view .v93-summon-refined .v39-mythic-event{padding:5px!important;min-height:0!important;}
 #view .v93-summon-refined .v93-summon-stats{gap:4px!important;margin:1px 0!important;}
 #view .v93-summon-refined .v93-summon-stats>div{padding:4px 5px!important;}
 #view .v93-summon-refined .v93-summon-stats strong{font-size:15px!important;}
 #view .v93-summon-refined .v93-summon-visual{padding:3px!important;}
 #view .v93-summon-refined .v93-summon-altar{padding:4px!important;gap:1px!important;}
 #view .v93-summon-refined .v93-summon-altar>img{width:min(100%,27svh,340px)!important;}
 #view .v93-summon-refined .v93-summon-pity{font-size:10px!important;padding:4px 8px!important;margin:0 auto!important;}
 #view .v93-summon-refined .v93-summon-packs{gap:4px!important;margin:0!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack{min-height:67px!important;padding:3px!important;gap:1px!important;}
 #view .v93-summon-refined .v93-summon-packs .v93-pack .mark{font-size:15px!important;}
}


/* V53 — Battle and community visual repairs (preserve all game state and rules). */
/* True full-height battle: previously 3 lanes were rigidly compressed into the upper half. */
@media (max-width:820px){
 #view:has(>.royal-battle){display:flex!important;flex-direction:column!important;
   height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;padding:0!important;}
 #view>.royal-battle,#view>.royal-battle:has(.k34-duel-status){
   position:relative!important;display:flex!important;flex-direction:column!important;
   height:100%!important;max-height:100%!important;min-height:0!important;
   width:100%!important;max-width:100%!important;overflow:hidden!important;
   margin:0!important;margin-block:0!important;padding:clamp(3px,.5svh,6px) 6px!important;
   gap:clamp(3px,.5svh,6px)!important;
 }
 #view>.royal-battle>.mk-commanders{
   flex:0 0 clamp(53px,7svh,66px)!important;height:clamp(53px,7svh,66px)!important;
   max-height:66px!important;min-height:0!important;margin:0!important;
 }
 #view>.royal-battle:has(.k34-duel-status)>.k34-duel-status{
   flex:0 0 clamp(31px,4.4svh,38px)!important;height:clamp(31px,4.4svh,38px)!important;
   max-height:38px!important;min-height:0!important;
 }
 #view>.royal-battle>.mk-content,#view>.royal-battle:has(.k34-duel-status)>.mk-content{
   display:flex!important;flex-direction:column!important;
   flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;
   width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
 }
 #view>.royal-battle .mk-battlefield,#view>.royal-battle:has(.k34-duel-status) .mk-battlefield{
   display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;
   flex:1 1 0!important;height:100%!important;max-height:100%!important;min-height:0!important;
   width:100%!important;margin:0!important;padding:3px!important;gap:3px!important;
 }
 #view>.royal-battle .mk-lane,#view>.royal-battle:has(.k34-duel-status) .mk-lane{
   display:grid!important;grid-template-columns:39px minmax(0,1fr) 10px minmax(0,1fr)!important;
   grid-template-rows:minmax(0,1fr)!important;
   min-height:0!important;height:100%!important;max-height:none!important;
   margin:0!important;padding:2px!important;overflow:hidden!important;
 }
 #view>.royal-battle .mk-line-units,#view>.royal-battle:has(.k34-duel-status) .mk-line-units{
   height:100%!important;max-height:100%!important;min-height:0!important;
   align-items:center!important;justify-content:center!important;gap:2px!important;
 }
 #view>.royal-battle .mk-lane-side,#view>.royal-battle:has(.k34-duel-status) .mk-lane-side{
   display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;
   overflow:hidden!important;padding:2px 0!important;gap:2px!important;
 }
 #view>.royal-battle .mk-unit.unit.v90-field-card,#view>.royal-battle:has(.k34-duel-status) .mk-unit.unit.v90-field-card{
   flex:0 1 auto!important;width:auto!important;max-width:31%!important;
   min-width:0!important;height:min(100%,clamp(58px,14svh,177px))!important;
   max-height:100%!important;min-height:0!important;
   aspect-ratio:720/830!important;border-radius:5px!important;
   background:#07111d!important;overflow:hidden!important;
 }
 #view>.royal-battle .mk-unit .mk-unit-image{
   display:block!important;inset:0 0 17px!important;
   width:100%!important;height:auto!important;
   background-size:contain!important;background-position:center center!important;background-repeat:no-repeat!important;
   background-color:#101923!important;
 }
 #view>.royal-battle .mk-unit .mk-unit-stats{font-size:clamp(8px,2vw,10px)!important;line-height:1.15!important;min-height:17px!important;}
 #view>.royal-battle>.mk-battle-footer,#view>.royal-battle:has(.k34-duel-status)>.mk-battle-footer{
   flex:0 0 clamp(127px,20svh,174px)!important;height:clamp(127px,20svh,174px)!important;
   max-height:174px!important;min-height:0!important;
   margin:0!important;padding:2px 2px 3px!important;gap:3px!important;overflow:hidden!important;
 }
 #view>.royal-battle .mk-hand-heading{flex:0 0 17px!important;}
 #view>.royal-battle .mk-hand-cards,#view>.royal-battle:has(.k34-duel-status) .mk-hand-cards{
   flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;
   overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important;
   padding:0 3px!important;gap:4px!important;
 }
 #view>.royal-battle .mk-hand-cards .mk-hand-tile{
   flex:0 0 clamp(58px,16.3vw,84px)!important;width:clamp(58px,16.3vw,84px)!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   overflow:hidden!important;
 }
 #view>.royal-battle .mk-hand-tile-art{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;background-color:#101724!important;}
 #view>.royal-battle .mk-actions,#view>.royal-battle:has(.k34-duel-status) .mk-actions{
   flex:0 0 clamp(36px,5.5svh,46px)!important;height:clamp(36px,5.5svh,46px)!important;
   max-height:46px!important;min-height:0!important;
 }
 #view>.royal-battle .mk-actions :is(button,.mk-command-meter){height:100%!important;min-height:0!important;max-height:100%!important;}
}
/* Full card image, not a crop: same requirement on PC and mobile. */
#view .royal-battle .mk-unit .mk-unit-image,
#view .royal-battle .mk-hand-tile .mk-hand-tile-art{
  background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;
}
/* On larger screens, keep the original card proportions, but fully show the artwork. */
@media(min-width:821px){
 #view .royal-battle .mk-unit.unit.v90-field-card{max-height:96%!important;aspect-ratio:720/830!important;}
 #view .royal-battle .mk-lane-side .mk-line-units{align-items:center!important;}
}
@media(max-width:820px) and (max-height:610px){
 #view>.royal-battle>.mk-commanders{flex-basis:45px!important;height:45px!important;}
 #view>.royal-battle:has(.k34-duel-status)>.k34-duel-status{flex-basis:30px!important;height:30px!important;}
 #view>.royal-battle>.mk-battle-footer{flex-basis:114px!important;height:114px!important;}
 #view>.royal-battle .mk-unit.unit.v90-field-card{height:min(100%,70px)!important;}
 #view>.royal-battle .mk-actions{height:35px!important;flex-basis:35px!important;}
}
/* Community: original landscape beneath title fills intentional gap without cropping or masking text. */
#view .hd-community-page{height:100%!important;min-height:0!important;overflow:auto!important;}
#view .hd-community-shell{min-height:0!important;justify-content:flex-start!important;gap:clamp(8px,1.35svh,14px)!important;}
#view .v53-community-scene{position:relative!important;margin:0!important;padding:0!important;overflow:hidden!important;
  background:#0d1827!important;border:1px solid rgba(211,175,111,.5)!important;border-radius:12px!important;
  box-shadow:0 12px 35px rgba(0,0,0,.33)!important;}
#view .v53-community-scene img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;}
#view .v53-community-scene figcaption{position:absolute;inset:auto 0 0!important;
  display:flex;flex-direction:column;gap:3px;padding:clamp(8px,1.5vw,14px)!important;
  background:linear-gradient(0deg,rgba(3,9,17,.94),rgba(3,9,17,.08))!important;}
#view .v53-community-scene figcaption span{font-size:9px!important;letter-spacing:.16em;color:#d5b67e!important;}
#view .v53-community-scene figcaption strong{font-size:clamp(12px,2.4vw,17px)!important;line-height:1.3;color:#f7e5c5!important;}
@media(max-width:820px){
 #view .hd-community-shell{padding-bottom:10px!important;}
 #view .hd-community-header{padding-top:3px!important;}
 #view .v53-community-scene figcaption{padding:7px 10px!important;}
}
/* V53 layout precedence fix over legacy fixed-height expedition panels. */
@media(max-width:820px){
 #view > .royal-battle .mk-content.mk-content-minimal,
 #view > .royal-battle:has(.k34-duel-status) .mk-content.mk-content-minimal{
  flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;
  overflow:hidden!important;display:flex!important;flex-direction:column!important;
 }
 #view > .royal-battle .mk-line-units:has(> .mk-unit:only-child) > .mk-unit{
  flex:0 1 auto!important;width:min(72%,118px)!important;max-width:min(72%,118px)!important;
  height:min(100%,clamp(66px,19svh,170px))!important;
 }
 #view > .royal-battle .mk-line-units:has(> .mk-unit:nth-child(2):last-child) > .mk-unit{
  flex:0 1 auto!important;width:min(45%,93px)!important;max-width:min(45%,93px)!important;
 }
}
/* V53 desktop expedition: a complete viewport, no hidden footer. */
@media(min-width:821px){
 #view:has(> .royal-battle:not(:has(.k34-duel-status))){padding:4px 8px!important;overflow:hidden!important;}
 #view>.royal-battle:not(:has(.k34-duel-status)){
  display:flex!important;flex-direction:column!important;gap:6px!important;
  height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;
  padding:4px 8px!important;margin:0!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status))>.mk-commanders{
  flex:0 0 83px!important;height:83px!important;min-height:0!important;padding-block:4px!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status))>.mk-content.mk-content-minimal{
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;
  height:auto!important;max-height:none!important;min-height:0!important;
  padding:0!important;margin:0!important;gap:3px!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status)) .mk-battlefield{
  flex:1 1 0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;
  min-height:0!important;height:100%!important;max-height:100%!important;gap:3px!important;margin:0!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status)) .mk-lane{height:100%!important;min-height:0!important;max-height:100%!important;}
 #view>.royal-battle:not(:has(.k34-duel-status))>.mk-battle-footer{
  display:flex!important;flex-direction:column!important;flex:0 0 165px!important;
  height:165px!important;max-height:165px!important;min-height:0!important;
  margin:0!important;padding:5px 10px!important;gap:3px!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status)) .mk-hand-cards{
  flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;
 }
 #view>.royal-battle:not(:has(.k34-duel-status)) .mk-actions{flex:0 0 43px!important;height:43px!important;min-height:43px!important;}
 #view>.royal-battle:not(:has(.k34-duel-status)) .mk-actions :is(button,.mk-command-meter){height:100%!important;min-height:0!important;}
}
/* Community: do not clip the final translated messages to match arbitrary old panel heights. */
#view .hd-community-page .hd-community-stage{
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;flex:none!important;
}
#view .hd-community-page .hd-community-devices{height:auto!important;max-height:none!important;overflow:visible!important;}
#view .hd-community-page .hd-community-phone{height:auto!important;max-height:none!important;}
@media(max-width:820px){
 #view .hd-community-page .hd-community-stage{overflow:visible!important;}
 #view .hd-community-page .hd-community-devices{padding:8px!important;}
 #view .hd-community-page .hd-community-phone{min-height:205px!important;}
 #view .hd-community-page .hd-community-messages{min-height:118px!important;padding:6px!important;gap:5px!important;}
 #view .hd-community-page .hd-community-phone-top{padding:7px!important;}
 #view .hd-community-page .hd-community-bubble{font-size:clamp(10px,2.7vw,12px)!important;padding:7px!important;line-height:1.32!important;}
 #view .hd-community-page .hd-community-composer{margin:0 5px 6px!important;padding:5px!important;}
 #view .hd-community-page .hd-community-status{flex:0 0 auto!important;}
 /* Keep hand labels unobscured by footer controls. */
 #view>.royal-battle .mk-hand-tile-name{font-size:8px!important;line-height:1.05!important;
  padding:2px 1px!important;bottom:0!important;z-index:5!important;background:#060d18db!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
}
/* Hold the community artwork at its natural ratio even when the chat expands. */
#view .hd-community-page .v53-community-scene{display:block!important;flex:0 0 auto!important;flex-shrink:0!important;min-height:0!important;max-height:none!important;}
#view .hd-community-page .v53-community-scene img{width:100%!important;height:auto!important;max-height:none!important;}
#view .hd-community-page .hd-community-shell{height:auto!important;max-height:none!important;min-height:0!important;}
/* Keep all unit frames and hand artwork within the available desktop lane/footer. */
@media(min-width:821px){
 #view>.royal-battle .mk-unit.unit.v90-field-card{
  height:min(94%,94px)!important;max-height:94%!important;min-height:0!important;
  max-width:83px!important;flex:0 1 auto!important;
 }
 #view>.royal-battle .mk-hand-cards .mk-hand-tile{
  height:100%!important;max-height:100%!important;min-height:0!important;
 }
 #view>.royal-battle .mk-hand-tile-name{bottom:0!important;font-size:10px!important;line-height:1.05!important;
  background:#07101ded!important;padding:2px!important;z-index:5!important;}
 #view .hd-community-page .v53-community-scene{max-width:min(100%,780px)!important;align-self:center!important;width:100%!important;}
}
