:root{--bg:#1b0929;--panel:#250d37;--panel2:#311449;--panel3:#3b1951;--gold:#f7bd43;--cream:#fff3d5;--muted:#dec7eb;--pink:#f9a8d4;--line:#79528d;--green:#9ee2a9;--rust:#d75b32;--font:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#110718;color:var(--cream);font-family:var(--font)}button,select,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.67}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff1a8;outline-offset:3px}a{color:#ffe28a}p{line-height:1.52}h1,h2,h3{margin:0}.hidden{display:none!important}.app-shell{height:100dvh;min-height:420px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 45% 0%,#55224c 0%,#240b36 45%,#15071f 100%)}.app-header{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(12px,2.3vw,34px);gap:12px;background:linear-gradient(110deg,#2a0c38,#441432 52%,#250d37);border-bottom:1px solid #b67857;box-shadow:0 2px 16px #14031b80;z-index:20}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;font-size:26px;width:45px;height:45px;background:linear-gradient(145deg,#793e27,#4e143b);border:1px solid #e7a04e;border-radius:15px}.brand-text{display:flex;flex-direction:column;gap:2px;min-width:0}.brand-text strong{font-size:clamp(16px,1.8vw,23px);letter-spacing:.1px;white-space:nowrap}.brand-text em{font-style:normal;color:#ffcc59}.brand-text small{color:#eec58d;font-size:10px;font-weight:750;letter-spacing:2px}.header-actions{display:flex;gap:7px;align-items:center}.header-button,.close-panel,.modal-close{border:1px solid #976286;color:#ffeaca;background:#492449;border-radius:11px;padding:9px 12px;font-size:12px;font-weight:750;min-height:37px;white-space:nowrap}.header-button:hover,.close-panel:hover{background:#713159}.on-mobile{display:none}.workspace{display:grid;grid-template-columns:minmax(205px,245px) minmax(0,1fr) minmax(225px,270px);flex:1;min-height:0;min-width:0}.side-panel{overflow:auto;scrollbar-width:thin;scrollbar-color:#754f7f #2a1436;background:linear-gradient(180deg,#2a123c,#200d32);padding:16px 14px;display:flex;flex-direction:column;gap:0}.setup-panel{border-right:1px solid #75417c}.learn-panel{border-left:1px solid #75417c}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 14px}.panel-top h2{font-size:15px;white-space:nowrap}.panel-section{padding:15px 0;border-top:1px solid #67476d;display:flex;flex-direction:column;gap:10px}.panel-section:first-of-type{border-top:0}.eyebrow{display:block;color:#efc380;font-weight:800;font-size:10px;letter-spacing:1.5px;margin-bottom:2px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.choice{border-radius:12px;color:#e9d6ee;background:#392247;border:1px solid #74527c;padding:11px 5px;display:flex;flex-direction:column;gap:3px;align-items:center;line-height:1.2}.choice strong{font-size:11px}.choice small{font-size:10px;color:#e6c6d6}.choice.active{border:2px solid #f6bd53;background:#673639;color:#fff0ca}.side-panel select{width:100%;background:#341c45;color:#fff3df;border:1px solid #a76c7e;border-radius:10px;padding:10px 12px;min-height:43px}.main-action{background:linear-gradient(140deg,#f3a635,#e57139 60%,#bb3b32);border:1px solid #ffcb77;border-radius:12px;color:#230e1a;padding:11px 12px;box-shadow:0 4px 0 #53262e;min-height:44px;font-size:13px;font-weight:850}.main-action:hover:not(:disabled){filter:brightness(1.09)}.main-action:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #53262e}.tool-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 2px;font-size:12px}.tool-row input{width:20px;height:20px;accent-color:#eaa850}.link-like{display:block;text-align:left;border:1px solid #66456e;border-radius:9px;padding:10px;color:#ffdd9c;background:#361b48;font-size:12px;font-weight:700;min-height:39px}.link-like:hover{background:#543052}.guide-section p{font-size:12px;margin:0;color:#efdeea}.mini-note{color:#cbb8d4!important;font-size:11px!important}.panel-bottom{color:#c2a8cf;font-size:10px;margin-top:auto;padding:14px 0 4px;text-align:center;border-top:1px solid #67476d}.game-stage{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;position:relative;padding:15px clamp(12px,2vw,27px) 18px;scrollbar-width:thin;scrollbar-color:#805477 #291032}.festive-strip{display:flex;align-items:center;justify-content:space-around;gap:5px;color:#f7cd70;font-size:10px;letter-spacing:.8px;font-weight:700;text-align:center;margin-bottom:12px}.festive-strip span:nth-child(2){color:#f9ecdd}.status-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;border:1px solid #e4a953;border-radius:17px;padding:10px 14px;background:linear-gradient(120deg,#5a2443,#401a54 60%,#5e2d39);box-shadow:0 5px 18px #0003}.round-indicator,.pot-indicator{display:flex;align-items:center;gap:9px}.round-icon{font-size:25px}.round-indicator div,.pot-indicator div{display:flex;flex-direction:column;gap:2px}.round-indicator small,.pot-indicator small{font-size:9px;color:#e4c19f;letter-spacing:1.7px;font-weight:800}.round-indicator strong,.pot-indicator strong{font-size:15px;white-space:nowrap}.pot-indicator span{font-size:27px}.status-content{text-align:center;display:flex;flex-direction:column;gap:2px;min-width:0}.status-content strong{font-size:clamp(12px,1.5vw,16px);color:#ffe3a3}.status-content span{font-size:11px;color:#f0d9ea}.score-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:11px 0}.score-pill{border-radius:12px;background:#321743;border:1px solid #66486f;display:flex;gap:8px;align-items:center;justify-content:space-between;padding:7px 10px;min-width:0}.score-pill.turn{background:#614032;border-color:#f1b950}.score-pill.out{opacity:.5}.score-name{display:flex;gap:6px;align-items:center;min-width:0}.score-name span{font-size:19px}.score-name strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-pill small{font-size:10px;color:#ebcfdd;white-space:nowrap}.score-figure{color:#ffdf86;font-size:12px;font-weight:900;white-space:nowrap}.arena{border:1px solid #8f5680;border-radius:22px;position:relative;padding:15px 12px 17px;background:radial-gradient(ellipse at 50% 70%,#64283e 0%,#37143f 45%,#260e3a 100%);overflow:hidden;box-shadow:0 9px 27px #0004}.arena-heading{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;margin:0 6px 12px}.arena-heading h1{font-size:clamp(14px,1.65vw,19px);color:#ffda81}.arena-heading span{font-size:10px;color:#f6d5df}.arena-backdrop{position:absolute;width:370px;height:370px;border-radius:50%;top:10%;left:50%;transform:translateX(-50%);border:5px dotted #efab5833;box-shadow:inset 0 0 0 28px #e5a5580b,inset 0 0 0 65px #e5a55813;pointer-events:none}.arena-cards{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;justify-items:center;align-items:stretch;max-width:700px;margin:auto}.arena-cards.p3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1000px}.arena-cards.p4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1100px}.battle-card{width:100%;min-width:0;max-width:270px;display:flex;flex-direction:column;min-height:340px;padding:9px;border:2px solid #e8a04b;border-radius:18px;background:linear-gradient(146deg,#fff9de 0%,#f8d781 49%,#f4b65c 100%);color:#4b260d;box-shadow:0 6px 0 #9b591c,0 10px 25px #0006;transition:transform .2s}.battle-card.legendary{background:linear-gradient(146deg,#fff8ca,#f8d78b,#f6bd64);border-color:#f8e4a2}.battle-card.rare{background:linear-gradient(146deg,#fff7e7,#ebd4ef 60%,#daa9dc);border-color:#e5a7ef}.battle-card.winner{outline:3px solid #a6f4a4;outline-offset:1px;transform:translateY(-3px)}.battle-card.is-back{background:radial-gradient(circle,#693345,#4a173d 62%,#381129);color:#f7deae;border-color:#edb657;justify-content:space-between}.card-header{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px;font-weight:800;min-height:22px}.player-badge{max-width:67%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-count{white-space:nowrap;background:#642b31;color:#fff2d1;padding:4px 6px;border-radius:7px;font-size:10px}.card-title{text-align:center;margin:6px 0 3px;font-family:Georgia,serif;font-size:clamp(15px,1.85vw,22px);font-weight:900;line-height:1.1;min-height:25px}.card-tagline{text-align:center;font-size:10px;line-height:1.3;min-height:29px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mascot-frame{position:relative;display:grid;place-items:center;background:linear-gradient(#ffedbd,#fffcde);border-radius:55px 55px 13px 13px;border:2px solid #bd8641;margin:7px 0 10px;height:132px;min-height:95px;overflow:hidden}.mascot-svg,.mascot-frame svg{width:100%;height:100%;max-width:160px;max-height:128px}.tier{position:absolute;bottom:3px;padding:3px 8px;border-radius:14px;background:#7f361f;color:#fff0cc;font-weight:900;letter-spacing:.7px;font-size:9px}.rare .tier{background:#8931a6}.legendary .tier{background:#a94420}.card-stats{display:grid;gap:6px;margin-top:auto}.stat-button{display:flex;align-items:center;justify-content:space-between;gap:3px;min-width:0;padding:9px 7px;min-height:37px;background:linear-gradient(90deg,#ffe8a7,#ffce62);border:1px solid #ac7b39;border-radius:10px;color:#522604}.stat-button.clickable{border-color:#ba7c20;box-shadow:0 1px 0 #925726}.stat-button.clickable:hover,.stat-button.clickable:focus-visible{background:#fff0a7;border-color:#ba3020;transform:translateY(-1px)}.stat-button.selected{outline:2px solid #ad483b}.stat-label{font-size:clamp(8px,0.9vw,10px);font-weight:850;text-align:left;line-height:1.1}.stat-value{display:flex;align-items:center;justify-content:end;gap:3px;font-weight:900;font-size:13px;white-space:nowrap}.stat-diyas{font-size:10px;letter-spacing:-2px}.stat-value b{min-width:18px;text-align:center}.back-seal{align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;gap:13px}.back-seal .big-diya{border:3px dotted #edaf58;border-radius:50%;width:116px;height:116px;display:grid;place-items:center;font-size:53px}.back-seal strong{font-family:Georgia,serif;letter-spacing:2px;font-size:19px}.back-seal small{color:#f5d9b8;font-size:10px;letter-spacing:1px}.card-back-foot{text-align:center;font-size:10px;color:#edcb93;border-top:1px solid #b37a67;padding-top:8px}.result-panel{display:flex;align-items:center;gap:12px;margin-top:12px;border:1px solid #dab65f;border-radius:16px;background:#493047;padding:11px 13px}.result-icon{font-size:29px}.result-copy{flex:1;min-width:0}.result-copy strong{font-size:14px;color:#ffe1a4}.result-copy p{margin:4px 0;font-size:11px}.result-copy small{display:block;color:#d8efc5;font-size:11px}.next-action{min-width:123px}.stage-bottom-hint{text-align:center;color:#d2b6d6;font-size:11px;margin:11px 0 0}.learning-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:12px;background:#180d26}.learn-tab{border:0;border-radius:9px;background:transparent;color:#dfbadd;padding:10px 0;font-size:11px;font-weight:800}.learn-tab.active{background:#a76b3b;color:#271123}.learn-content{min-height:215px;border:1px solid #704c76;background:#361f49;border-radius:13px;margin:12px 0;padding:14px}.learn-content .topic-tag{font-size:10px;color:#f4be75;font-weight:800;letter-spacing:1.1px}.learn-content h3{font-size:17px;margin:8px 0;color:#ffdea0;font-family:Georgia,serif}.learn-content p{font-size:12px;margin:7px 0;color:#eee0ed}.learn-content .takeaway{padding:10px;background:#4c3156;color:#fcdfa5;border-radius:10px;font-size:12px;margin-top:11px}.mini-divider{border-top:1px solid #694271}.quick-facts{margin:15px 0}.sweet-name{font-family:Georgia,serif;font-weight:800;font-size:18px;margin:10px 0;color:#ffd48e}.quick-facts p{font-size:12px;color:#e3d1e8}.site-footer{flex-shrink:0;min-height:43px;display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;padding:7px clamp(10px,2vw,25px);border-top:1px solid #a36e65;background:#170c26;color:#e0c8e3;font-size:10px;z-index:15}.site-footer strong{font-size:12px;color:#ffd278;letter-spacing:1.3px}.footer-right{white-space:nowrap}.footer-divider{color:#af6e90;margin:0 3px}.site-footer a{color:#ffe4a8;text-decoration:none}.site-footer a:hover{text-decoration:underline}.confetti-layer{pointer-events:none;position:fixed;inset:0;width:100vw;height:100vh;z-index:50}.modal-backdrop{position:fixed;inset:0;z-index:80;background:#100616d9;display:grid;place-items:center;padding:14px}.modal{width:min(940px,100%);max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;border:2px solid #e8b05d;background:linear-gradient(160deg,#3c1750,#250d38);border-radius:20px;box-shadow:0 15px 60px #000a}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;border-bottom:1px solid #8d5a77}.modal-head h2{font-family:Georgia,serif;color:#ffda87;font-size:clamp(17px,2vw,23px)}.modal-close{font-size:16px}.modal-body{overflow:auto;padding:17px 20px;scrollbar-width:thin}.modal-body p{font-size:13px}.rules-list li{font-size:13px;line-height:1.6;margin:10px 0}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.gallery-entry{border:1px solid #a77967;border-radius:13px;background:#ffe6ae;color:#3f210c;padding:8px;text-align:center;display:flex;flex-direction:column;gap:2px;align-items:center}.gallery-entry:hover{background:#fff4d7}.gallery-entry svg{width:100%;height:92px}.gallery-entry strong{font-size:12px}.gallery-entry small{font-size:10px}.gallery-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.gallery-filter button{padding:8px 11px;border-radius:9px;border:1px solid #b57f53;background:#4c3152;color:#ffe3b1;font-weight:800;font-size:11px}.gallery-filter button.active{background:#e5a552;color:#26101b}.wish-card{border:1px solid #a77e6f;background:#35143d;padding:18px;border-radius:15px;text-align:center}.wish-card h3{color:#ffdb81;font-family:Georgia,serif;font-size:20px}.wish-card .shloka{color:#fff0b5;font-size:19px;line-height:1.65}.wish-card p{line-height:1.5}.modal-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:17px 0 2px}.modal-actions button{min-width:115px}.toast{position:fixed;z-index:100;bottom:60px;left:50%;transform:translateX(-50%);padding:12px 16px;border-radius:12px;background:#0f513f;color:#fff;border:1px solid #95e1b6;box-shadow:0 5px 25px #0008;font-size:12px;max-width:min(95vw,470px);text-align:center}.mobile-scrim{display:none}
@media(min-width:1500px){.arena-cards{max-width:770px;gap:19px}.arena-cards.p3,.arena-cards.p4{max-width:980px}.battle-card{min-height:378px}.mascot-frame{height:147px}.stat-button{min-height:43px}}
@media (max-width:1150px){.workspace{grid-template-columns:185px minmax(0,1fr) 205px}.side-panel{padding:13px 10px}.arena-cards.p4{grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px}.arena-cards.p3{grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px}.arena-cards.p3 .battle-card:last-child{grid-column:1 / -1;justify-self:center;max-width:210px}.festive-strip span:last-child{display:none}.card-title{font-size:18px}.mascot-frame{height:115px}.battle-card{min-height:320px}}
@media(max-width:940px){.workspace{grid-template-columns:minmax(0,1fr)}.on-mobile{display:inline-flex;align-items:center;gap:5px}.side-panel{position:fixed;z-index:52;top:64px;bottom:43px;width:min(84vw,330px);box-shadow:0 9px 50px #000b;transition:transform .25s ease}.setup-panel{left:0;transform:translateX(-110%)}.learn-panel{right:0;transform:translateX(110%)}.setup-panel.is-open,.learn-panel.is-open{transform:translateX(0)}.mobile-scrim:not(.hidden){display:block;position:fixed;inset:64px 0 43px;background:#16081bb7;z-index:51}.game-stage{padding:12px clamp(10px,3vw,30px)}.arena-cards.p4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:970px}.arena-cards.p3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:800px}.arena-cards.p3 .battle-card:last-child{grid-column:auto;max-width:270px}.battle-card{max-width:250px}.mascot-frame{height:118px}.stat-label{font-size:10px}.site-footer{font-size:10px}}
@media(max-width:680px){.app-header{height:58px;padding:0 9px}.brand-mark{width:34px;height:34px;font-size:20px;border-radius:11px}.brand{gap:6px}.brand-text strong{font-size:clamp(12px,3.5vw,17px)}.brand-text small{font-size:8px;letter-spacing:.8px}.header-actions{gap:4px}.header-button{padding:6px 7px;min-height:35px;font-size:11px}.header-button .optional-label,.header-button span{display:none}.header-button{font-size:16px}.side-panel{top:58px}.mobile-scrim:not(.hidden){inset:58px 0 50px}.game-stage{padding:10px 8px 17px}.festive-strip{font-size:9px;margin-bottom:8px}.festive-strip span:nth-child(2){display:none}.status-card{padding:8px 7px;gap:7px;border-radius:12px}.round-icon{font-size:17px}.round-indicator,.pot-indicator{gap:3px}.round-indicator small,.pot-indicator small{font-size:8px}.round-indicator strong,.pot-indicator strong{font-size:11px}.pot-indicator span{font-size:18px}.status-content strong{font-size:11px}.status-content span{font-size:9px}.score-strip{gap:5px;margin:8px 0}.score-pill{gap:3px;padding:5px 6px}.score-name strong{font-size:9px}.score-name span{font-size:14px}.score-pill small{font-size:8px}.score-figure{font-size:10px}.arena{padding:10px 6px 12px;border-radius:15px}.arena-heading{margin:0 3px 10px}.arena-heading h1{font-size:14px}.arena-heading span{font-size:9px}.arena-cards,.arena-cards.p3,.arena-cards.p4{grid-template-columns:repeat(2,minmax(0,1fr));max-width:430px;gap:8px}.arena-cards.p3 .battle-card:last-child{grid-column:1 / -1;justify-self:center;width:calc(50% - 4px);max-width:none}.battle-card{min-height:275px;padding:6px;border-radius:12px;box-shadow:0 4px 0 #9b591c,0 6px 12px #0006;border-width:2px}.card-header{font-size:9px;min-height:20px}.card-count{font-size:8px;padding:3px}.card-title{font-size:clamp(14px,4vw,18px);min-height:18px;margin:5px 0 2px}.card-tagline{font-size:8px;min-height:23px}.mascot-frame{height:104px;min-height:85px;margin:4px 0 6px;border-radius:35px 35px 10px 10px}.tier{font-size:7px;padding:3px 6px}.card-stats{gap:4px}.stat-button{padding:7px 4px;min-height:32px;border-radius:7px}.stat-label{font-size:8px;max-width:70px}.stat-diyas{font-size:8px;letter-spacing:-2px}.stat-value{font-size:11px;gap:2px}.stat-value b{min-width:12px}.back-seal .big-diya{width:92px;height:92px;font-size:42px}.back-seal strong{font-size:14px}.result-panel{flex-wrap:wrap;gap:7px;padding:8px}.result-icon{font-size:21px}.result-copy strong{font-size:12px}.result-copy p{font-size:10px}.next-action{width:100%;min-width:unset}.stage-bottom-hint{font-size:9px}.site-footer{min-height:50px;justify-content:center;text-align:center;padding:5px 8px;font-size:9px;gap:1px}.footer-right{font-size:9px}.modal-body{padding:12px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-entry svg{height:80px}}
@media(max-width:360px){.stat-diyas{display:none}.arena-cards{gap:5px}.card-title{font-size:13px}.brand-text small{display:none}.header-button{padding:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* Detail dialog art and embedded deployment */
.wish-card>svg{display:block;width:170px;max-width:100%;height:135px;margin:0 auto 8px}
.embed-mode .app-header{height:52px}.embed-mode .brand-text small{display:none}.embed-mode .game-stage{padding-top:9px}
[hidden]{display:none!important}
/* Finger-friendly tap targets for the arena and small mobile header. */
.stat-button{touch-action:manipulation}
@media(max-width:680px){.stat-button{min-height:38px}.header-button{min-width:38px;min-height:40px;justify-content:center}}

/* Construct 3 hybrid viewport layer: no iframe, single scroll area. */
#nandax-c3-root{position:fixed;inset:0;width:100vw;height:100dvh;overflow:hidden;z-index:200;pointer-events:auto;color:#fff3d5}
#nandax-c3-root .app-shell{height:100%;min-height:0}
#nandax-c3-root .game-stage{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#nandax-c3-root button,#nandax-c3-root select{touch-action:manipulation}
#nandax-c3-root .arena-cards{touch-action:pan-y}
#nandax-c3-root .site-footer{padding-bottom:max(5px,env(safe-area-inset-bottom))}
#nandax-c3-root .modal-backdrop{z-index:900}
#nandax-c3-root .confetti-layer{z-index:700}
#nandax-c3-root .toast{z-index:1000}
@media(max-width:680px){
  #nandax-c3-root .app-header{height:52px}
  #nandax-c3-root .side-panel{top:52px}
  #nandax-c3-root .mobile-scrim:not(.hidden){inset:52px 0 50px}
  #nandax-c3-root .game-stage{padding-top:6px}
  #nandax-c3-root .score-strip{margin:5px 0}
  #nandax-c3-root .status-card{min-height:46px}
  #nandax-c3-root .arena{padding:7px 5px 9px}
  #nandax-c3-root .arena-heading{margin-bottom:5px}
  #nandax-c3-root .battle-card{min-height:clamp(208px,38dvh,265px)}
  #nandax-c3-root .mascot-frame{height:clamp(63px,12dvh,91px);min-height:0}
  #nandax-c3-root .stat-button{min-height:32px}
  #nandax-c3-root .site-footer{min-height:43px}
  #nandax-c3-root .arena-cards.p3 .battle-card,#nandax-c3-root .arena-cards.p4 .battle-card{min-height:clamp(160px,28dvh,210px)}
  #nandax-c3-root .arena-cards.p3 .mascot-frame,#nandax-c3-root .arena-cards.p4 .mascot-frame{height:clamp(35px,6dvh,66px)}
  #nandax-c3-root .arena-cards.p3 .card-tagline,#nandax-c3-root .arena-cards.p4 .card-tagline{display:none}
  #nandax-c3-root .arena-cards.p3 .stat-button,#nandax-c3-root .arena-cards.p4 .stat-button{min-height:26px;padding:4px 2px}
  #nandax-c3-root .arena-cards.p3 .card-stats,#nandax-c3-root .arena-cards.p4 .card-stats{gap:2px}
  #nandax-c3-root .arena-cards.p3 .card-title,#nandax-c3-root .arena-cards.p4 .card-title{margin:3px 0 1px;font-size:12px}
}
@media(max-width:390px) and (max-height:690px){
  #nandax-c3-root .festive-strip{display:none}
  #nandax-c3-root .stage-bottom-hint{display:none}
  #nandax-c3-root .score-pill small{display:none}
  #nandax-c3-root .arena-cards .card-tagline{display:none}
  #nandax-c3-root .arena-cards .mascot-frame{height:58px}
  #nandax-c3-root .battle-card{min-height:197px}
}

/* White-label project configuration; sticky footer and responsive arena retained. */
#nandax-c3-root .brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:8px}
#nandax-c3-root .brand-text strong{white-space:normal;line-height:1.12;max-height:2.3em;overflow:hidden}
#nandax-c3-root.learning-disabled .workspace{grid-template-columns:minmax(205px,245px) minmax(0,1fr)}
@media(max-width:1150px){#nandax-c3-root.learning-disabled .workspace{grid-template-columns:185px minmax(0,1fr)}}
@media(max-width:940px){#nandax-c3-root.learning-disabled .workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){#nandax-c3-root .brand-text strong{font-size:clamp(11px,3vw,15px);max-width:38vw}#nandax-c3-root .brand-text small{font-size:7px}}

/* v2.2.2: restore first-edition animated Diwali rangoli without JS redraw loops. */
#nandax-c3-root .arena-backdrop{
  display:grid;place-items:center;position:absolute;
  width:min(76vw,720px);height:min(76vw,720px);
  max-width:90%;max-height:none;left:50%;top:50%;
  transform:translate(-50%,-50%);border:0;box-shadow:none;border-radius:0;
  opacity:.40;overflow:visible;pointer-events:none;
}
#nandax-c3-root .arena-backdrop .rangoli-wheel{
  display:block;width:100%;height:100%;color:#f6ba53;
  transform-origin:50% 50%;animation:nxMithaiRangoliSpin 50s linear infinite;
  will-change:transform;
}
@keyframes nxMithaiRangoliSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
#nandax-c3-root .patakha-button{border-color:#d89b48;color:#ffe0a0;background:#6a3250}
#nandax-c3-root .patakha-button:hover{background:#99502d}
@media(max-width:680px){
 #nandax-c3-root .arena-backdrop{width:440px;height:440px;max-width:130%;opacity:.34}
 #nandax-c3-root .patakha-button{padding:6px 7px}
}
@media(prefers-reduced-motion:reduce){
 #nandax-c3-root .arena-backdrop .rangoli-wheel{animation:none;will-change:auto}
}
